@ukpc-lib/react 0.13.7 → 0.13.8

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 (28) hide show
  1. package/dist/components/Notification/NotificationList/components/NotitficationItem.d.ts +5 -2
  2. package/dist/components/Notification/NotificationList/components/query.d.ts +1 -1
  3. package/dist/components/Notification/models/NotiticationDto.d.ts +2 -2
  4. package/dist/components/index.cjs +20 -20
  5. package/dist/components/index.js +3206 -3223
  6. package/dist/{index.esm2017-9AyxX2BH.js → index.esm2017-81ft1FRl.js} +13279 -13096
  7. package/dist/{index.esm2017-BtTWLbPn.cjs → index.esm2017-CCVnVHX2.cjs} +121 -121
  8. package/dist/share/index.cjs +1 -1
  9. package/dist/share/index.js +13 -13
  10. package/package.json +3 -4
  11. package/web-components-bundle/access-denied/index.js +2 -2
  12. package/web-components-bundle/base-breadcrumbs/index.js +2 -2
  13. package/web-components-bundle/favorite-menu/index.js +4 -4
  14. package/web-components-bundle/global-menu/index.js +4 -4
  15. package/web-components-bundle/global-topbar/index.js +6 -6
  16. package/web-components-bundle/has-permission/index.js +3 -3
  17. package/web-components-bundle/{index-D8L3hULW.js → index-ANQjrjYO.js} +15649 -15104
  18. package/web-components-bundle/{index-Cx0zTfOC.js → index-BSe1av43.js} +1 -1
  19. package/web-components-bundle/{index-DE6E5mlm.js → index-CxiIFyUv.js} +561 -557
  20. package/web-components-bundle/{index-FiNgB-mv.js → index-DnBVPOmu.js} +4 -5
  21. package/web-components-bundle/page-not-found/index.js +3 -2
  22. package/web-components-bundle/{react-to-web-component-D7SoYMky.js → react-to-web-component-CXwKHjZr.js} +1527 -1535
  23. package/web-components-bundle/{react-toastify.esm-Y1WvK90L.js → react-toastify.esm-CrTD7cpE.js} +1 -1
  24. package/web-components-bundle/{setPrototypeOf-BVKdEITT.js → setPrototypeOf-CP0c5ut2.js} +2 -2
  25. package/web-components-bundle/toast-config/index.js +2 -2
  26. package/web-components-bundle/toast-config-notification/index.js +2 -2
  27. package/web-components-bundle/index.css +0 -1
  28. package/web-components-bundle/index2.css +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),T=require("react"),m=require("../index.esm2017-BtTWLbPn.cjs"),X=require("moment"),R=require("@mui/material");require("axios");require("@r2wc/react-to-web-component");const mn=require("react-router-dom");require("react-query");require("react-dom");function $o(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 $=$o(T),Ao=e=>{var r,o;const{tabs:t}=e,n=s=>{e.setCurrentTab(s.target.id)};return console.log("🚀 ~ brandColors:",e.currentTab),l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),C=require("react"),m=require("../index.esm2017-CCVnVHX2.cjs"),N=require("@mui/material");require("@r2wc/react-to-web-component");require("react-query");const gn=require("react-router-dom");require("axios");require("react-dom");const se=require("moment");function No(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 A=No(C),Ro=e=>{var r,o;const{tabs:t}=e,n=i=>{e.setCurrentTab(i.target.id)};return console.log("🚀 ~ brandColors:",e.currentTab),l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
2
2
  .tab-title {
3
3
  min-width: 90px;
4
4
  padding: 5px 16px;
@@ -29,7 +29,7 @@
29
29
  .tab-content {
30
30
  padding: 16px 0;
31
31
  }
32
- `}),l.jsxs("div",{className:"tab-container",children:[l.jsx("div",{style:{display:"flex",width:"100%",height:"50px",borderBottom:`1px solid ${m.color.grey200}`},className:"tab-container__title",children:t.map((s,i)=>l.jsx("button",{id:s.id,disabled:e.currentTab===`${s.id}`,onClick:n,className:`tab-title ${e.currentTab===`${s.id}`?"is-active":""}`,children:s.tabTitle},i))}),l.jsx("div",{className:"tab-content",children:t.map((s,i)=>l.jsx("div",{children:e.currentTab===`${s.id}`&&l.jsx("div",{children:s.children})},i))})]})]})},gn=({baseUrl:e,notiPath:t,setNotiData:n})=>async()=>{var d;const s=e+(t||"/notification-management/api/v1/notifications"),c=(d=(await m.axiosInstance.get(s,{params:{filter:{notificationFilterType:"all"}}})).data)==null?void 0:d.rows,u=c==null?void 0:c.filter(f=>f.isRead===!1);n({all:{rows:c??[],total:(c==null?void 0:c.length)??0},unread:{rows:u??[],total:(u==null?void 0:u.length)??0}})},No=({notification:e,baseUrl:t,notiPath:n,markAllAsReadState:r,brandColors:o})=>{var C,v;const[s,i]=T.useState(!1),[c,u]=T.useState({id:e.id,isRead:e.isRead}),d=c.isRead===!1?"unread":"read",f={borderColor:c.isRead?"#c5c5c5":(o==null?void 0:o.primary500)||m.color.primary500,backgroundColor:c.isRead?"#c5c5c5":(o==null?void 0:o.primary500)||m.color.primary500},{setNotiData:h}=T.useContext(m.CustomOpenList),p=gn({baseUrl:t,notiPath:n,setNotiData:h}),b=async(x,w)=>{try{const M=n||`/notification-management/api/v1/notifications/${x}`,j=t+M;await m.axiosInstance.put(j,{isRead:w})}catch(M){console.log(M),u({id:e.id,isRead:e.isRead})}await p()},g=(x,w)=>{console.log("specificNotificationID",x);const M=!w;u(j=>({...j,isRead:M})),console.log("newIsReadState",M),b(x,M)};T.useEffect(()=>{u(r?x=>({...x,isRead:!0}):{id:e.id,isRead:e.isRead})},[r,e.id,e.isRead]);const a=()=>{i(!s)},y=x=>{const w=X(),M=X(x),j=w.diff(M,"days"),N=w.diff(M,"minutes"),k=w.diff(M,"months"),O=w.diff(M,"years");if(console.log("diffInMonths",k),N<1)return"Just now";if(j===0){if(N<=60)return`${N} minute${N>1?"s":""} ago`;const A=Math.floor(N/60);return console.log("diffIhours",A),`${A} hour${A>1?"s":""} ago`}if(j===1)return"Yesterday";if(j>=2&&j<7)return`${j} days ago`;if(j<30){const A=Math.floor(j/7);return`${A} week${A>1?"s":""} ago`}return k===0||k===1?"1 month ago":k<12?`${k} months ago`:O===0||O===1?"1 year ago":"Over 1 year ago"},S=e!=null&&e.data?(C=e==null?void 0:e.data)==null?void 0:C.length:0,E=(x,w)=>{var M,j;if((x==null?void 0:x.actionKey)!=null){if((M=x==null?void 0:x.data)!=null&&M.brandName)return m.translate(`notificationAdmin.notify.actionKey.${x==null?void 0:x.actionKey}`,{defaultValue:`${x==null?void 0:x.message}`,brandName:x.data.brandName});switch(x==null?void 0:x.notificationType){case"deleteMultiple":return x!=null&&x.data&&((j=x==null?void 0:x.data)==null?void 0:j.length)>1?m.translate(`notificationAdmin.notify.actionKey.${x==null?void 0:x.actionKey}_multiple`,{defaultValue:`${x==null?void 0:x.actionKey}`,count:w}):m.translate(`notificationAdmin.notify.actionKey.${x==null?void 0:x.actionKey}_single`,{defaultValue:`${x==null?void 0:x.actionKey}`});default:return m.translate(`notificationAdmin.notify.actionKey.${x==null?void 0:x.actionKey}`,{defaultValue:`${x==null?void 0:x.message}`})}}return x.message},_=e!=null&&e.contextUrl?"a":"p";return l.jsx(l.Fragment,{children:l.jsxs("div",{className:"notitification-item__container",children:[l.jsx("div",{className:"notification-item__image-container",children:l.jsx("img",{src:!e.actorAvatarUrl||e.actorName==="System"?"https://ukpcsaprod.blob.core.windows.net/account/logo.png":e.actorAvatarUrl,onError:({currentTarget:x})=>{console.log("img on error",x),x.onerror=null,x.src="https://ukpcsaprod.blob.core.windows.net/account/logo.png"},alt:e.actorName})}),l.jsxs("div",{style:{width:"100%"},children:[l.jsxs("div",{className:"notification-item__content-wrapper",children:[l.jsxs("div",{className:"notification-item__content",children:[l.jsx("p",{className:"notification-item__user-name",children:e.actorName}),l.jsxs(_,{href:e.contextUrl,style:{cursor:e!=null&&e.contextUrl?"pointer":"unset"},children:[E(e,S),l.jsx("span",{className:"notification-item__context-link",children:` ${e!=null&&e.context?e.context:""}`})]}),(e==null?void 0:e.notificationType)==="deleteMultiple"&&l.jsxs("button",{style:{color:m.color.primary400,textDecoration:"underline"},onClick:a,children:[s?"Hide":"Show "," details"]})]}),l.jsx("div",{className:"notification-item__time",children:l.jsx("p",{children:y(e.createdAt)})}),l.jsx("button",{className:`${d} notification-item__read-at`,"aria-label":"Mark as read",style:f,onClick:()=>g(e.id,e.isRead)})]}),s&&l.jsx("div",{style:{background:"#fff",width:"100%",padding:"8px",fontSize:"12px",marginTop:"8px"},children:l.jsx("ul",{children:(v=e==null?void 0:e.data)==null?void 0:v.map((x,w)=>l.jsxs("li",{style:{display:"flex",alignItems:"center",marginBottom:"4px"},children:[l.jsx("span",{style:{backgroundColor:m.color.primary400},className:"list-dot"}),l.jsx("span",{style:{width:"calc(100% - 12px)"},children:x.name})]},w))})})]})]})})},An=({notidata:e,baseUrl:t,notiPath:n,brandColors:r,notiUnreadNumber:o})=>{const[s,i]=T.useState(!1);console.log(s);const{setNotiData:c}=T.useContext(m.CustomOpenList),u=gn({baseUrl:t,notiPath:n,setNotiData:c}),d=async()=>{try{const p=t+(n||"/notification-management/api/v1/notifications");await m.axiosInstance.put(p)}catch(h){console.log(h)}await u(),i(!1)},f=()=>{i(!0),d()};return console.log("notiUnreadNumber",o),l.jsxs("div",{children:[l.jsx("div",{className:"mark-all-read",children:l.jsx("button",{onClick:f,style:{visibility:o===0?"hidden":"visible"},children:"Mark all as read"})}),l.jsx("div",{className:"notification-items__wrapper",children:l.jsx("div",{className:"notification-items__content",children:Object.values(e).map((h,p)=>l.jsx(No,{notification:h,baseUrl:t,notiPath:n,markAllAsReadState:s,brandColors:r},p))})})]})},Ro=({baseUrl:e,notiPath:t,brandColors:n})=>{var d,f,h,p;const r=T.useRef(null),{setShowModalFalse:o}=T.useContext(m.CustomOpenList),{notidata:s}=T.useContext(m.CustomOpenList);console.log(s),T.useEffect(()=>{const b=a=>{!(!!a.composedPath?a.composedPath():[a.target]).some(_=>{var C;return _===r.current||((C=_==null?void 0:_.classList)==null?void 0:C.contains("noti-container"))})&&o()},g=setTimeout(()=>{document.addEventListener("mousedown",b)},100);return()=>{clearTimeout(g),document.removeEventListener("mousedown",b)}},[o]);const[i,c]=T.useState("all"),u=[{id:"all",tabTitle:`All (${((d=s==null?void 0:s.all)==null?void 0:d.total)||0})`,children:l.jsx(An,{notidata:((f=s==null?void 0:s.all)==null?void 0:f.rows)||[],baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:s.unread.total})},{id:"unread",tabTitle:`Unread (${((h=s==null?void 0:s.unread)==null?void 0:h.total)||0})`,children:l.jsx(An,{notidata:((p=s==null?void 0:s.unread)==null?void 0:p.rows)||[],baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:s.unread.total})}];return l.jsx(l.Fragment,{children:l.jsx("div",{ref:r,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",zIndex:"100"},children:l.jsxs("div",{className:"list-content",children:[l.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[l.jsx("h3",{style:{fontSize:"24px",fontWeight:"500",color:m.color.textPrimary},className:"list-title",children:"Notifications"}),l.jsx("button",{onClick:o,children:l.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.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"})})})]}),l.jsx(Ao,{tabs:u,setCurrentTab:c,currentTab:i,brandColors:n})]})})})};function zo({iconColor:e="#fff",baseUrl:t,notiPath:n,brandColors:r}){var h,p;const{isOpen:o,toggleOpen:s,setShowModalFalse:i}=T.useContext(m.CustomOpenList),{notidata:c,setNotiData:u}=T.useContext(m.CustomOpenList),d=gn({baseUrl:t,notiPath:n,setNotiData:u}),f=async()=>{var b,g;try{await d()}catch(a){console.log(" NotificationIcon.tsx ~ error:",a),m.pushError(((g=(b=a.response)==null?void 0:b.data)==null?void 0:g.errorMessage)||a.message||"Have error when get notification list")}};return T.useEffect(()=>{f()},[o]),l.jsxs("div",{children:[l.jsxs("div",{className:"noti-container",style:{position:"relative"},children:[l.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:b=>{b.stopPropagation(),s()},style:{cursor:"pointer",color:e},children:[l.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:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(c==null?void 0:c.unread)&&(c==null?void 0:c.unread.total)!=0&&l.jsx("span",{style:{position:"absolute",top:"-9px",right:"-6px",width:"20px",height:"20px",border:"1px solid #fff",borderRadius:"50%",color:"#fff",fontSize:"12px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:m.color.danger},className:"notification-badge",children:((h=c==null?void 0:c.unread)==null?void 0:h.total)>9?"9+":`${(p=c==null?void 0:c.unread)==null?void 0:p.total}`})]}),l.jsx("div",{className:"noti-list-container",children:o&&l.jsx(Ro,{baseUrl:t,notiPath:n,brandColors:r})})]})}const Fo=".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-wrapper{top:0;left:0;width:100%;height:64px;display:flex;z-index:1000;background:#292929;padding-left:2.5rem}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between;position:relative}.logo-container{height:100%;display:flex;align-items:center}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem;transition:width .3s}.userAvatar{width:2.5rem;height:2.5rem;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}#userAvatarNull{width:2.5rem;height:2.5rem;background:#ddd;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}.topbar-search-label{display:flex;position:relative}.topbar-search-input{color:#292929;border-radius:3px;height:40px;outline:none;font-size:14px;text-overflow:ellipsis;max-width:166px}#icon{position:absolute;left:9px;top:8px;width:16px;height:24px}",Lo=".StyledReactSearchAutocomplete ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb{background:#c2c2c2;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb:hover{background:#757575}.StyledReactSearchAutocomplete .container{display:flex;width:100%;height:100vh;justify-content:center;align-items:center}.StyledReactSearchAutocomplete .container>div{width:300px;height:40px}.StyledReactSearchAutocomplete .container>div input{width:100%;height:40px;border:1px solid #ccc;border-radius:5px;font-size:14px;color:#000}.StyledReactSearchAutocomplete .container>div input:focus{outline:1px solid rgb(83,172,255)}.StyledReactSearchAutocomplete .list{display:flex;flex-direction:column;max-height:220px;width:inherit;overflow:auto;overflow-x:hidden;box-shadow:#0000001f 0 1px 3px,#0000003d 0 1px 2px;color:#000}.StyledReactSearchAutocomplete .list button{background:none;border:none;width:100%;height:100%;max-height:3em;padding:10px;text-align:left;cursor:pointer;border-bottom:1px solid #ccc}.StyledReactSearchAutocomplete .list button:hover{background:#f8f8f8}.StyledReactSearchAutocomplete .list button:last-child{border-bottom:none}.StyledReactSearchAutocomplete{position:relative;height:46px}.StyledReactSearchAutocomplete .wrapper{position:absolute;display:flex;flex-direction:column;width:100%;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;margin-top:2px;border-radius:3px}.StyledReactSearchAutocomplete .wrapper:hover,.StyledReactSearchAutocomplete .wrapper:active,.StyledReactSearchAutocomplete .wrapper:focus-within{box-shadow:#20212447 0 1px 6px}.StyledResults{position:absolute;display:flex;flex-direction:column;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;min-width:250px;max-width:400px;top:calc(100% - 2px);left:0}.StyledResults>div.line{border-top-color:#e8eaed;border-top-style:solid;border-top-width:1px;margin:0 20px 0 14px;padding-bottom:4px}.StyledResults>ul{list-style-type:none;margin:0;padding:0 0 16px;max-height:300px;max-width:450px}#autocomplete-results strong,#autocomplete-results li strong,#autocomplete-results li div strong{font-weight:700!important}.StyledResults>ul>li{display:flex;align-items:center;padding:4px 10px 4px 0;font-size:14px;width:100%}.StyledResults>ul>li>div{margin-left:13px;font-size:14px}.StyledResults .ellipsis{text-align:left;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.StyledResults .selectedSearch{color:#fff;text-decoration:none;background-color:#0d6efd}.StyledSearchInput{min-height:40px;width:100%;display:flex;align-items:center}.StyledSearchInput input{width:100%}.StyledSearchInput>input::-moz-placeholder{color:gray;opacity:1}.StyledSearchInput>input::placeholder{color:gray;opacity:1}.StyledSearchInput>input:-ms-input-placeholder{color:gray}.StyledSearchInput>input::-ms-input-placeholder{color:gray}.StyledClearIcon{margin:0 0 0 5px}.StyledClearIcon:hover{cursor:pointer}.StyledClearIcon>svg{fill:gray}.StyledSearchIcon{flex-shrink:0;margin:0 0 0 10px;fill:gray}.search-icon{position:unset!important;float:left;margin-right:5px;margin-left:5px}",Do=':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;color:#292929}.notitification-item__container{display:flex;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notification-item__image-container{width:46px;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__content-wrapper{width:100%;display:flex;align-items:center;justify-content:space-between}.notification-item__context-link{color:#007bff}.notification-item__context-text{color:#292929}.notification-item__content{width:68%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.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}.list-dot{border-radius:50%;width:8px;height:8px;margin-right:4px;display:block}',Bo="._subscription-diaglog_1bysb_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_1bysb_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff;color:#292929}._subscription-title_1bysb_25{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_1bysb_25,._subscription-text_1bysb_34{margin-bottom:24px}._subscription-btn__container_1bysb_38{display:flex;justify-content:space-between;align-items:center}._btn-success_1bysb_44,._btn-cancel_1bysb_45{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}._btn-cancel_1bysb_45{background-color:#ddd}._btn-cancel_1bysb_45:hover{background-color:#c5c5c5}._btn-success_1bysb_44{background-color:#93d500}._btn-success_1bysb_44:hover{background-color:#2e7d32}",Tr='.notification-massage_container{background:#fff;padding:0 64px 0 72px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif;text-decoration:none;color:inherit}.notification-massage_container: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{font-weight:500;font-size:14px;margin:0}.notification-message_service{font-size:12px}.notification-message_button-close{position:absolute;top:12px;right:24px;width:24px;height:24px}';function Ho(e){return l.jsxs("svg",{width:"34",height:"25",viewBox:"0 0 34 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.jsxs("g",{"clip-path":"url(#clip0_16865_28134)",children:[l.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"#1A47B8"}),l.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"}),l.jsx("path",{d:"M1.20635 0.5L34 22.1567V24.5H32.8219L0 2.82089V0.5H1.20635Z",fill:"#F93939"}),l.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"}),l.jsx("path",{d:"M34 0.5H32.9019L0 22.1753V24.5H1.20635L34 2.83842V0.5Z",fill:"#F93939"}),l.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"}),l.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"})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_16865_28134",children:l.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"white"})})})]})}const Vo=T.createContext({}),kr=!0;function Wo({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:s,direction:i,duration:c,enableAnimation:u=kr,customHighlightBackground:d}){const f={};return i==="rtl"&&(f["--animation-direction"]="reverse"),typeof c=="number"&&(f["--animation-duration"]=`${c}s`),u||(f["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(f.width=n),(typeof r=="string"||typeof r=="number")&&(f.height=r),(typeof o=="string"||typeof o=="number")&&(f.borderRadius=o),s&&(f.borderRadius="50%"),typeof e<"u"&&(f["--base-color"]=e),typeof t<"u"&&(f["--highlight-color"]=t),typeof d=="string"&&(f["--custom-highlight-background"]=d),f}function Ir({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:o,circle:s=!1,style:i,...c}){var u,d,f;const h=T.useContext(Vo),p={...c};for(const[_,C]of Object.entries(c))typeof C>"u"&&delete p[_];const b={...h,...p,circle:s},g={...i,...Wo(b)};let a="react-loading-skeleton";n&&(a+=` ${n}`);const y=(u=b.inline)!==null&&u!==void 0?u:!1,S=[],E=Math.ceil(e);for(let _=0;_<E;_++){let C=g;if(E>e&&_===E-1){const x=(d=C.width)!==null&&d!==void 0?d:"100%",w=e%1,M=typeof x=="number"?x*w:`calc(${x} * ${w})`;C={...C,width:M}}const v=T.createElement("span",{className:a,style:C,key:_},"‌");y?S.push(v):S.push(T.createElement(T.Fragment,{key:_},v,T.createElement("br",null)))}return T.createElement("span",{className:r,"data-testid":o,"aria-live":"polite","aria-busy":(f=b.enableAnimation)!==null&&f!==void 0?f:kr},t?S.map((_,C)=>T.createElement(t,{key:C},_)):S)}const Uo='@keyframes react-loading-skeleton{to{transform:translate(100%)}}.react-loading-skeleton{--base-color: #ebebeb;--highlight-color: #f5f5f5;--animation-duration: 1.5s;--animation-direction: normal;--pseudo-element-display: block;background-color:var(--base-color);width:100%;border-radius:.25rem;display:inline-flex;line-height:1;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}.react-loading-skeleton:after{content:" ";display:var(--pseudo-element-display);position:absolute;top:0;left:0;right:0;height:100%;background-repeat:no-repeat;background-image:var( --custom-highlight-background, linear-gradient( 90deg, var(--base-color) 0%, var(--highlight-color) 50%, var(--base-color) 100% ) );transform:translate(-100%);animation-name:react-loading-skeleton;animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite}@media (prefers-reduced-motion){.react-loading-skeleton{--pseudo-element-display: none}}',Ko=({baseUrl:e,searchPath:t})=>{const[n,r]=T.useState(!1);console.log("hasPermission state",n);const o=async()=>{const i=e+(t||"/user-management/api/v1/users/my-account/access-stella-search");try{const c=await m.axiosInstance.get(i);console.log("hasPermission data",c.data),r(c.data)}catch(c){console.log(c)}};return T.useEffect(()=>{o()},[e,t]),{hasPermission:n}};function Mr({childrenClass:e,action:t,childrenOpenClass:n}){const r=document.querySelector("#topbar-wrapper"),o=r==null?void 0:r.shadowRoot,s=o==null?void 0:o.querySelector(`.${e}`),i=o==null?void 0:o.querySelector(`.${n}`),c=o==null?void 0:o.querySelector("nav"),u=d=>{c==null||c.addEventListener("click",function(f){if(n&&i&&i.contains(f.target)){if(s&&!s.contains(f.target))return}else s&&!s.contains(f.target)&&t()}),r&&!r.contains(d.target)&&t()};document.addEventListener("click",u,!0)}function Yo(e){return l.jsxs("svg",{width:"34",height:"24",viewBox:"0 0 34 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.jsxs("g",{"clip-path":"url(#clip0_16886_62505)",children:[l.jsx("rect",{width:"34",height:"24",rx:"3",fill:"#F93939"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 16H34V24H0V16Z",fill:"#FFDA2C"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H34V8H0V0Z",fill:"#151515"})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_16886_62505",children:l.jsx("rect",{width:"34",height:"24",rx:"3",fill:"white"})})})]})}const qo=".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}";function ye(e){return Array.isArray?Array.isArray(e):Pr(e)==="[object Array]"}function Go(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Zo(e){return e==null?"":Go(e)}function he(e){return typeof e=="string"}function jr(e){return typeof e=="number"}function Xo(e){return e===!0||e===!1||Jo(e)&&Pr(e)=="[object Boolean]"}function Or(e){return typeof e=="object"}function Jo(e){return Or(e)&&e!==null}function ne(e){return e!=null}function Vt(e){return!e.trim().length}function Pr(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Qo="Incorrect 'index' type",es=e=>`Invalid value for key ${e}`,ts=e=>`Pattern length exceeds max of ${e}.`,ns=e=>`Missing ${e} property in key`,rs=e=>`Property 'weight' in key '${e}' must be a positive integer`,Nn=Object.prototype.hasOwnProperty;class os{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=$r(r);n+=o.weight,this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function $r(e){let t=null,n=null,r=null,o=1,s=null;if(he(e)||ye(e))r=e,t=Rn(e),n=Zt(e);else{if(!Nn.call(e,"name"))throw new Error(ns("name"));const i=e.name;if(r=i,Nn.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(rs(i));t=Rn(i),n=Zt(i),s=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:s}}function Rn(e){return ye(e)?e:e.split(".")}function Zt(e){return ye(e)?e.join("."):e}function ss(e,t){let n=[],r=!1;const o=(s,i,c)=>{if(ne(s))if(!i[c])n.push(s);else{let u=i[c];const d=s[u];if(!ne(d))return;if(c===i.length-1&&(he(d)||jr(d)||Xo(d)))n.push(Zo(d));else if(ye(d)){r=!0;for(let f=0,h=d.length;f<h;f+=1)o(d[f],i,c+1)}else i.length&&o(d,i,c+1)}};return o(e,he(t)?t.split("."):t,0),r?n:n[0]}const is={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},as={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},ls={location:0,threshold:.6,distance:100},cs={useExtendedSearch:!1,getFn:ss,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var P={...as,...is,...ls,...cs};const us=/[^ ]+/g;function ds(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(o){const s=o.match(us).length;if(n.has(s))return n.get(s);const i=1/Math.pow(s,.5*e),c=parseFloat(Math.round(i*r)/r);return n.set(s,c),c},clear(){n.clear()}}}class yn{constructor({getFn:t=P.getFn,fieldNormWeight:n=P.fieldNormWeight}={}){this.norm=ds(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,he(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();he(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!ne(t)||Vt(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((o,s)=>{let i=o.getFn?o.getFn(t):this.getFn(t,o.path);if(ne(i)){if(ye(i)){let c=[];const u=[{nestedArrIndex:-1,value:i}];for(;u.length;){const{nestedArrIndex:d,value:f}=u.pop();if(ne(f))if(he(f)&&!Vt(f)){let h={v:f,i:d,n:this.norm.get(f)};c.push(h)}else ye(f)&&f.forEach((h,p)=>{u.push({nestedArrIndex:p,value:h})})}r.$[s]=c}else if(he(i)&&!Vt(i)){let c={v:i,n:this.norm.get(i)};r.$[s]=c}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Ar(e,t,{getFn:n=P.getFn,fieldNormWeight:r=P.fieldNormWeight}={}){const o=new yn({getFn:n,fieldNormWeight:r});return o.setKeys(e.map($r)),o.setSources(t),o.create(),o}function fs(e,{getFn:t=P.getFn,fieldNormWeight:n=P.fieldNormWeight}={}){const{keys:r,records:o}=e,s=new yn({getFn:t,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(o),s}function ut(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=P.distance,ignoreLocation:s=P.ignoreLocation}={}){const i=t/e.length;if(s)return i;const c=Math.abs(r-n);return o?i+c/o:c?1:i}function hs(e=[],t=P.minMatchCharLength){let n=[],r=-1,o=-1,s=0;for(let i=e.length;s<i;s+=1){let c=e[s];c&&r===-1?r=s:!c&&r!==-1&&(o=s-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[s-1]&&s-r>=t&&n.push([r,s-1]),n}const ke=32;function ps(e,t,n,{location:r=P.location,distance:o=P.distance,threshold:s=P.threshold,findAllMatches:i=P.findAllMatches,minMatchCharLength:c=P.minMatchCharLength,includeMatches:u=P.includeMatches,ignoreLocation:d=P.ignoreLocation}={}){if(t.length>ke)throw new Error(ts(ke));const f=t.length,h=e.length,p=Math.max(0,Math.min(r,h));let b=s,g=p;const a=c>1||u,y=a?Array(h):[];let S;for(;(S=e.indexOf(t,g))>-1;){let w=ut(t,{currentLocation:S,expectedLocation:p,distance:o,ignoreLocation:d});if(b=Math.min(w,b),g=S+f,a){let M=0;for(;M<f;)y[S+M]=1,M+=1}}g=-1;let E=[],_=1,C=f+h;const v=1<<f-1;for(let w=0;w<f;w+=1){let M=0,j=C;for(;M<j;)ut(t,{errors:w,currentLocation:p+j,expectedLocation:p,distance:o,ignoreLocation:d})<=b?M=j:C=j,j=Math.floor((C-M)/2+M);C=j;let N=Math.max(1,p-j+1),k=i?h:Math.min(p+j,h)+f,O=Array(k+2);O[k+1]=(1<<w)-1;for(let W=k;W>=N;W-=1){let ee=W-1,ce=n[e.charAt(ee)];if(a&&(y[ee]=+!!ce),O[W]=(O[W+1]<<1|1)&ce,w&&(O[W]|=(E[W+1]|E[W])<<1|1|E[W+1]),O[W]&v&&(_=ut(t,{errors:w,currentLocation:ee,expectedLocation:p,distance:o,ignoreLocation:d}),_<=b)){if(b=_,g=ee,g<=p)break;N=Math.max(1,2*p-g)}}if(ut(t,{errors:w+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:d})>b)break;E=O}const x={isMatch:g>=0,score:Math.max(.001,_)};if(a){const w=hs(y,c);w.length?u&&(x.indices=w):x.isMatch=!1}return x}function ms(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}class Nr{constructor(t,{location:n=P.location,threshold:r=P.threshold,distance:o=P.distance,includeMatches:s=P.includeMatches,findAllMatches:i=P.findAllMatches,minMatchCharLength:c=P.minMatchCharLength,isCaseSensitive:u=P.isCaseSensitive,ignoreLocation:d=P.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:s,findAllMatches:i,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:d},this.pattern=u?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const f=(p,b)=>{this.chunks.push({pattern:p,alphabet:ms(p),startIndex:b})},h=this.pattern.length;if(h>ke){let p=0;const b=h%ke,g=h-b;for(;p<g;)f(this.pattern.substr(p,ke),p),p+=ke;if(b){const a=h-ke;f(this.pattern.substr(a),a)}}else f(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,includeMatches:r}=this.options;if(n||(t=t.toLowerCase()),this.pattern===t){let g={isMatch:!0,score:0};return r&&(g.indices=[[0,t.length-1]]),g}const{location:o,distance:s,threshold:i,findAllMatches:c,minMatchCharLength:u,ignoreLocation:d}=this.options;let f=[],h=0,p=!1;this.chunks.forEach(({pattern:g,alphabet:a,startIndex:y})=>{const{isMatch:S,score:E,indices:_}=ps(t,g,a,{location:o+y,distance:s,threshold:i,findAllMatches:c,minMatchCharLength:u,includeMatches:r,ignoreLocation:d});S&&(p=!0),h+=E,S&&_&&(f=[...f,..._])});let b={isMatch:p,score:p?h/this.chunks.length:1};return p&&r&&(b.indices=f),b}}class _e{constructor(t){this.pattern=t}static isMultiMatch(t){return zn(t,this.multiRegex)}static isSingleMatch(t){return zn(t,this.singleRegex)}search(){}}function zn(e,t){const n=e.match(t);return n?n[1]:null}class gs extends _e{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class ys extends _e{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class xs extends _e{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class bs extends _e{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class vs extends _e{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Ss extends _e{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Rr extends _e{constructor(t,{location:n=P.location,threshold:r=P.threshold,distance:o=P.distance,includeMatches:s=P.includeMatches,findAllMatches:i=P.findAllMatches,minMatchCharLength:c=P.minMatchCharLength,isCaseSensitive:u=P.isCaseSensitive,ignoreLocation:d=P.ignoreLocation}={}){super(t),this._bitapSearch=new Nr(t,{location:n,threshold:r,distance:o,includeMatches:s,findAllMatches:i,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:d})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class zr extends _e{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const o=[],s=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+s,o.push([r,n-1]);const i=!!o.length;return{isMatch:i,score:i?0:1,indices:o}}}const Xt=[gs,zr,xs,bs,Ss,vs,ys,Rr],Fn=Xt.length,ws=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,_s="|";function Es(e,t={}){return e.split(_s).map(n=>{let r=n.trim().split(ws).filter(s=>s&&!!s.trim()),o=[];for(let s=0,i=r.length;s<i;s+=1){const c=r[s];let u=!1,d=-1;for(;!u&&++d<Fn;){const f=Xt[d];let h=f.isMultiMatch(c);h&&(o.push(new f(h,t)),u=!0)}if(!u)for(d=-1;++d<Fn;){const f=Xt[d];let h=f.isSingleMatch(c);if(h){o.push(new f(h,t));break}}}return o})}const Cs=new Set([Rr.type,zr.type]);class Ts{constructor(t,{isCaseSensitive:n=P.isCaseSensitive,includeMatches:r=P.includeMatches,minMatchCharLength:o=P.minMatchCharLength,ignoreLocation:s=P.ignoreLocation,findAllMatches:i=P.findAllMatches,location:c=P.location,threshold:u=P.threshold,distance:d=P.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:r,minMatchCharLength:o,findAllMatches:i,ignoreLocation:s,location:c,threshold:u,distance:d},this.pattern=n?t:t.toLowerCase(),this.query=Es(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:o}=this.options;t=o?t:t.toLowerCase();let s=0,i=[],c=0;for(let u=0,d=n.length;u<d;u+=1){const f=n[u];i.length=0,s=0;for(let h=0,p=f.length;h<p;h+=1){const b=f[h],{isMatch:g,indices:a,score:y}=b.search(t);if(g){if(s+=1,c+=y,r){const S=b.constructor.type;Cs.has(S)?i=[...i,...a]:i.push(a)}}else{c=0,s=0,i.length=0;break}}if(s){let h={isMatch:!0,score:c/s};return r&&(h.indices=i),h}}return{isMatch:!1,score:1}}}const Jt=[];function ks(...e){Jt.push(...e)}function Qt(e,t){for(let n=0,r=Jt.length;n<r;n+=1){let o=Jt[n];if(o.condition(e,t))return new o(e,t)}return new Nr(e,t)}const vt={AND:"$and",OR:"$or"},en={PATH:"$path",PATTERN:"$val"},tn=e=>!!(e[vt.AND]||e[vt.OR]),Is=e=>!!e[en.PATH],Ms=e=>!ye(e)&&Or(e)&&!tn(e),Ln=e=>({[vt.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Fr(e,t,{auto:n=!0}={}){const r=o=>{let s=Object.keys(o);const i=Is(o);if(!i&&s.length>1&&!tn(o))return r(Ln(o));if(Ms(o)){const u=i?o[en.PATH]:s[0],d=i?o[en.PATTERN]:o[u];if(!he(d))throw new Error(es(u));const f={keyId:Zt(u),pattern:d};return n&&(f.searcher=Qt(d,t)),f}let c={children:[],operator:s[0]};return s.forEach(u=>{const d=o[u];ye(d)&&d.forEach(f=>{c.children.push(r(f))})}),c};return tn(e)||(e=Ln(e)),r(e)}function js(e,{ignoreFieldNorm:t=P.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:s,score:i})=>{const c=o?o.weight:null;r*=Math.pow(i===0&&c?Number.EPSILON:i,(c||1)*(t?1:s))}),n.score=r})}function Os(e,t){const n=e.matches;t.matches=[],ne(n)&&n.forEach(r=>{if(!ne(r.indices)||!r.indices.length)return;const{indices:o,value:s}=r;let i={indices:o,value:s};r.key&&(i.key=r.key.src),r.idx>-1&&(i.refIndex=r.idx),t.matches.push(i)})}function Ps(e,t){t.score=e.score}function $s(e,t,{includeMatches:n=P.includeMatches,includeScore:r=P.includeScore}={}){const o=[];return n&&o.push(Os),r&&o.push(Ps),e.map(s=>{const{idx:i}=s,c={item:t[i],refIndex:i};return o.length&&o.forEach(u=>{u(s,c)}),c})}class We{constructor(t,n={},r){this.options={...P,...n},this.options.useExtendedSearch,this._keyStore=new os(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof yn))throw new Error(Qo);this._myIndex=n||Ar(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){ne(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,o=this._docs.length;r<o;r+=1){const s=this._docs[r];t(s,r)&&(this.removeAt(r),r-=1,o-=1,n.push(s))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:o,shouldSort:s,sortFn:i,ignoreFieldNorm:c}=this.options;let u=he(t)?he(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return js(u,{ignoreFieldNorm:c}),s&&u.sort(i),jr(n)&&n>-1&&(u=u.slice(0,n)),$s(u,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=Qt(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:s,i,n:c})=>{if(!ne(s))return;const{isMatch:u,score:d,indices:f}=n.searchIn(s);u&&o.push({item:s,idx:i,matches:[{score:d,value:s,norm:c,indices:f}]})}),o}_searchLogical(t){const n=Fr(t,this.options),r=(c,u,d)=>{if(!c.children){const{keyId:h,searcher:p}=c,b=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(u,h),searcher:p});return b&&b.length?[{idx:d,item:u,matches:b}]:[]}const f=[];for(let h=0,p=c.children.length;h<p;h+=1){const b=c.children[h],g=r(b,u,d);if(g.length)f.push(...g);else if(c.operator===vt.AND)return[]}return f},o=this._myIndex.records,s={},i=[];return o.forEach(({$:c,i:u})=>{if(ne(c)){let d=r(n,c,u);d.length&&(s[u]||(s[u]={idx:u,item:c,matches:[]},i.push(s[u])),d.forEach(({matches:f})=>{s[u].matches.push(...f)}))}}),i}_searchObjectList(t){const n=Qt(t,this.options),{keys:r,records:o}=this._myIndex,s=[];return o.forEach(({$:i,i:c})=>{if(!ne(i))return;let u=[];r.forEach((d,f)=>{u.push(...this._findMatches({key:d,value:i[f],searcher:n}))}),u.length&&s.push({idx:c,item:i,matches:u})}),s}_findMatches({key:t,value:n,searcher:r}){if(!ne(n))return[];let o=[];if(ye(n))n.forEach(({v:s,i,n:c})=>{if(!ne(s))return;const{isMatch:u,score:d,indices:f}=r.searchIn(s);u&&o.push({score:d,key:t,value:s,idx:i,norm:c,indices:f})});else{const{v:s,n:i}=n,{isMatch:c,score:u,indices:d}=r.searchIn(s);c&&o.push({score:u,key:t,value:s,norm:i,indices:d})}return o}}We.version="6.6.2";We.createIndex=Ar;We.parseIndex=fs;We.config=P;We.parseQuery=Fr;ks(Ts);const Dn={shouldSort:!0,threshold:.6,location:0,distance:100,minMatchCharLength:1,keys:["name"]};function As(e,t,n){let r;return function(){const o=this,s=arguments,i=function(){r=null,e.apply(o,s)};r&&clearTimeout(r),r=setTimeout(i,t)}}const Ns="data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='7.89222'%20cy='8.34901'%20r='5.59901'%20stroke='%2385858A'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.6428%2013.1855L14.4568%2014.9995'%20stroke='%2385858A'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",nn=({showIcon:e})=>e?l.jsx("img",{id:"icon",className:"StyledSearchIcon search-icon",width:20,height:20,src:Ns,alt:"icon"}):null;function Rs({results:e=[],onClick:t,setSearchString:n,showIcon:r,maxResults:o,resultStringKeyName:s="name",highlightedItem:i,setHighlightedItem:c,formatResult:u,showNoResultsFlag:d=!0,showNoResultsText:f="No results"}){const h=u||(g=>g[s]),p=g=>{t(g),n(g[s])},b=({event:g,result:a})=>{g.button===0&&(g.preventDefault(),p(a))};return d?l.jsx(Bn,{children:l.jsxs("li",{"data-test":"no-results-message",children:[l.jsx(nn,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:f})]})}):(e==null?void 0:e.length)<=0&&!d?null:l.jsx(Bn,{children:e.slice(0,o).map((g,a)=>l.jsxs("li",{className:i===a?"selectedSearch":"",id:i===a?"selectedSearch":"",onMouseEnter:()=>c({index:a}),"data-test":"result",onMouseDown:y=>b({event:y,result:g}),onClick:()=>p(g),children:[l.jsx(nn,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:h(g)})]},`rsa-result-${g.entityId}`))})}const Bn=({children:e})=>l.jsxs("div",{className:"StyledResults",children:[l.jsx("div",{className:"line"}),l.jsx("ul",{id:"autocomplete-results",children:e})]}),zs=({showClear:e,setSearchString:t,searchString:n,setFocus:r,onClear:o})=>{const s=()=>{t({target:{value:""}}),r(),o()};return!e||!n||(n==null?void 0:n.length)<=0?null:l.jsx("div",{className:"StyledClearIcon clear-icon",onClick:s,children:l.jsx("svg",{width:20,height:20,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:l.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.58 12 5 17.58 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})};function Fs({searchString:e,setSearchString:t,setHighlightedItem:n,eraseResults:r,autoFocus:o,onFocus:s,onClear:i,placeholder:c,showIcon:u=!0,showClear:d=!0,maxLength:f,baseUrl:h}){const p=T.useRef(null);let b=!0;const g=()=>{b=!1,p!=null&&p.current&&p.current.focus(),b=!0},a=S=>{b&&s(S)},y=f?{maxLength:f}:{};return T.useEffect(()=>{document.querySelector("global-topbar");const S=E=>{const _=document.getElementById("AddTagButton"),C=document.getElementsByClassName("btn-edit");["a","e","t"].includes(E.key.toLowerCase())&&((C==null?void 0:C.length)>0&&C[0].addEventListener("click",x=>{const w=document.querySelector("global-topbar"),M=w!=null?w.shadowRoot:document,j=M.getElementById("GlobalSearchInput");M.activeElement===j?(x.preventDefault(),x.stopPropagation(),console.log("Shadow DOM keydown:",x.key)):x.click()},!0),_!=null&&_.addEventListener("click",x=>{const w=document.querySelector("global-topbar"),M=w!=null?w.shadowRoot:document,j=M.getElementById("GlobalSearchInput");M.activeElement===j?(x.preventDefault(),x.stopPropagation(),console.log("Shadow DOM keydown:",x.key)):x.click()},!0))};return document.addEventListener("keydown",S,!0),()=>document.removeEventListener("keydown",S,!0)},[]),l.jsxs("div",{className:"StyledSearchInput",children:[l.jsx(nn,{showIcon:u}),l.jsx("input",{type:"text",name:"topbar-search",className:"topbar-search-input",id:"GlobalSearchInput",ref:p,spellCheck:!1,autoComplete:"off",value:e.replace(/(<([^>]+)>)/gi,""),onChange:t,onFocus:a,placeholder:c,autoFocus:o,onBlur:()=>r(),onKeyDown:S=>{if(S.key==="Enter"){const E=document.querySelector("global-topbar");if((E!=null?E.shadowRoot:document).getElementById("selectedSearch")===null){console.log("enter",S);const C=S.currentTarget.value;window.location.href=`${h}/stella/page/Search/Index?Term=${C}`;return}}n({event:S})},"data-test":"search-input",...y}),l.jsx(zs,{showClear:d,setSearchString:t,searchString:e,onClear:i,setFocus:g})]})}const Ls=200,Ds=10;function Bs({items:e=[],fuseOptions:t=Dn,inputDebounce:n=Ls,onSearch:r=()=>{},onHover:o=()=>{},onSelect:s=()=>{},onFocus:i=()=>{},onClear:c=()=>{},searchOnFocus:u=!0,showIcon:d=!0,showClear:f=!0,maxResults:h=Ds,placeholder:p="",autoFocus:b=!1,styling:g={},resultStringKeyName:a="name",inputSearchString:y="",formatResult:S,showNoResults:E=!0,showNoResultsText:_="No results",showItemsOnFocus:C=!1,maxLength:v=0,baseUrl:x=""}){({...g});const w={...Dn,...t},M=new We(e,w);M.setCollection(e);const[j,N]=T.useState(y),[k,O]=T.useState([]),[A,W]=T.useState(-1),[ee,ce]=T.useState(!1),[Ce,ge]=T.useState(!1),[qe,be]=T.useState(!1),[Ie,Me]=T.useState(!1);T.useEffect(()=>{N(y);const z=setTimeout(()=>O(lt(y)),0);return()=>clearTimeout(z)},[y]),T.useEffect(()=>{(j==null?void 0:j.length)>=3?e&&(e==null?void 0:e.length)>0&&O(e):O([])},[e]),T.useEffect(()=>{const z=()=>{Pe(),Me(!1)};return document.addEventListener("click",z),()=>document.removeEventListener("click",z)},[]),T.useEffect(()=>{(()=>{E&&j.length>0&&!Ce&&k.length===0&&!ee?be(!0):be(!1),C&&k.length===0&&j.length===0&&Ie&&O(e.slice(0,h))})()},[Ce,E,ee,j,k,C,Ie]);const je=z=>{u&&i(z),Me(!0)},ue=z=>{let I=[];(z==null?void 0:z.length)>0&&(I=lt(z)),O(I),r(z,I),ge(!1)},Oe=T.useCallback(n>0?As(z=>ue(z),n):z=>ue(z),[e]),Bt=z=>{Pe(),s(z),N(z[a]),W(0)},lt=z=>M.search(z,{limit:h}).map(I=>({...I.item})).slice(0,h),Ht=({target:z})=>{const I=z.value;N(I),Oe(I),ge(!0),ee&&ce(!1)},Pe=()=>{O([]),ce(!0)},ct=({index:z,event:I})=>{let ve=-1;const Te=$e=>{W($e),k!=null&&k[$e]&&o(k[$e])};if(z!==void 0)W(z),k!=null&&k[z]&&o(k[z]);else if(I)switch(I.key){case"Enter":k.length>0&&k[A]?(I.preventDefault(),s(k[A])):r(j,k),W(-1),Pe();break;case"ArrowUp":I.preventDefault(),ve=A>-1?A-1:k.length-1,Te(ve);break;case"ArrowDown":I.preventDefault(),ve=A<k.length-1?A+1:-1,Te(ve);break}};return l.jsx(l.Fragment,{children:l.jsxs("div",{className:"StyledReactSearchAutocomplete",children:[l.jsx("div",{className:"wrapper",children:l.jsx(Fs,{searchString:j,setSearchString:Ht,eraseResults:Pe,autoFocus:b,onFocus:je,onClear:c,placeholder:p,showIcon:!0,showClear:f,setHighlightedItem:ct,maxLength:v,baseUrl:x})}),l.jsx(Rs,{results:k,onClick:Bt,setSearchString:N,showIcon:d,maxResults:h,resultStringKeyName:a,formatResult:S,highlightedItem:A,setHighlightedItem:ct,showNoResultsFlag:qe,showNoResultsText:_})]})})}function Hs({classNames:e="",...t}){const{logo:n,user:r,baseUrl:o,notiPath:s,style:i,customColors:c,notiprops:u,isBrand:d,logout:f,disabledLogoClick:h=!1}=t,p={...i,color:(c==null?void 0:c.headerTextColor)||"white",backgroundColor:(c==null?void 0:c.headerBgColor)||"black"},[b,g]=T.useState(!1),{Term:a}=mn.useParams();console.log("term",a);const[y,S]=T.useState([]),[E,_]=T.useState([]),C=Ko({baseUrl:o});console.log("searchPermission",C.hasPermission),T.useEffect(()=>{y.length>=3?v(y):_([])},[y]);const v=async k=>{await fetch(`${o}/stella/page/Search/Suggestions?term=${k}`).then(O=>O.json()).then(O=>{_(O),console.log(O)}).catch(O=>{console.error(O)})},x=k=>{console.log(k)},w=(k,O)=>{S(k),console.log(k,O)},M=k=>{const O=k.entityType,A=k.entityId;switch(O){case"Zone":document.location.href=o+"/stella/page/SiteManagement/Zone/Details/"+A;return;case"Location":document.location.href=o+"/stella/page/SiteManagement/Location/Details/"+A;return;case"Company":document.location.href=o+"/stella/page/SiteManagement/Company/Details/"+A;return;default:console.log(`Unsure how to navigate to ${O} ${A}`);return}},j=()=>{const k=document.querySelector("global-topbar"),A=(k!=null?k.shadowRoot:document).getElementById("GlobalSearchInput");A&&A.value.length>=3&&(setTimeout(()=>{},1e3),v(A.value))},N=k=>k.entityType==="Location"?l.jsxs(l.Fragment,{children:[l.jsx("div",{dangerouslySetInnerHTML:{__html:k.name}})," ",l.jsxs("div",{style:{fontSize:"0.6em"},children:["Status: ",k.entityStatus]})]}):l.jsx(l.Fragment,{children:l.jsx("div",{dangerouslySetInnerHTML:{__html:k.name}})});return l.jsxs(m.StyleWrapper,{styles:[Fo,Do,Tr,Bo,Uo,Lo],style:{zIndex:1202},id:"topbar-wrapper",children:[l.jsx("nav",{className:`navbar-wrapper ${e}`,style:c?p:i,children:l.jsxs("div",{className:"navbar-container",children:[h?l.jsx("div",{className:"logo-container",children:l.jsx("img",{src:n||"#",alt:" ",style:{maxHeight:"40px"}})}):l.jsx("a",{href:"/home",className:"logo-container",children:l.jsx("img",{src:n||"#",alt:" ",style:{maxHeight:"40px"}})}),l.jsxs("div",{className:"right-side-container",children:[d&&C.hasPermission?l.jsx("span",{children:l.jsx("label",{className:"topbar-search-label",htmlFor:"topbar-search",children:l.jsx("div",{id:"autocomplete",style:{width:223},children:l.jsx(Bs,{items:E,onSearch:w,onHover:x,onSelect:M,onFocus:j,autoFocus:!0,inputDebounce:300,placeholder:"Search",formatResult:N,searchOnFocus:!0,showIcon:!1,showNoResults:!1})})})}):"",t.customElement,l.jsx("span",{children:l.jsxs(m.CustomOpenListProvider,{children:[l.jsx(Oo,{baseUrl:u.baseUrl,path:u.path,apiKey:u.apiKey,authDomain:u.authDomain,projectId:u.projectId,storageBucket:u.storageBucket,messagingSenderId:u.messagingSenderId,appId:u.appId,measurementId:u.measurementId,vapidKey:u.vapidKey}),l.jsx(zo,{iconColor:c==null?void 0:c.headerTextColor,baseUrl:o,notiPath:s,brandColors:c})]})}),l.jsx(Lr,{}),l.jsxs("div",{className:"userContainer",children:[l.jsx(Vs,{primaryColor:c==null?void 0:c.headerTextColor,avatarUrl:r==null?void 0:r.avatarUrl,userName:r==null?void 0:r.firstName,setShowConfirmModal:g}),l.jsx("p",{className:"userFullName",style:{color:c==null?void 0:c.headerTextColor,width:t.isFetching?"100px":"auto"},children:t.isFetching?l.jsx(Ir,{baseColor:"#ebebeb26",highlightColor:"#f5f5f57d",style:{lineHeight:"unset"}}):r?r.firstName+" "+r.lastName:"Unknown User"})]})]})]})}),l.jsx(m.LogoutConfirmModal,{isOpen:b,onClose:()=>g(!1),onConfirm:f})]})}function Lr(){var u;const e=[{value:m.Language.en,element:l.jsx(Ho,{})},{value:m.Language.de,element:l.jsx(Yo,{})}],[t,n]=T.useState(!1),[r,o]=T.useState(new Array(e.length).fill(!1)),{language:s,setLanguage:i}=m.useCustomTranslation();T.useEffect(()=>{Mr({childrenClass:"languageDropdown",action(){n(!1)}})},[]);const c=(u=e.find(d=>d.value==s))==null?void 0:u.element;return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:qo}),l.jsx("div",{className:"languageDropdownContainer",style:{position:"relative"},children:l.jsx("div",{className:"languageDropdown",onClick:()=>{n(!t)},children:c})})]})}function Vs({avatarUrl:e,userName:t}){const[n,r]=T.useState(!1),o=T.useRef(null);T.useRef(null);const[s,i]=T.useState(!1),[c,u]=T.useState(!1);return T.useEffect(()=>{Mr({childrenClass:"userAvatar",action(){r(!1)}})},[]),l.jsx(l.Fragment,{children:l.jsx("div",{style:{position:"relative"},children:e?l.jsx("img",{onClick:()=>r(!n),ref:o,alt:"user avatar",className:"userAvatar",src:e}):l.jsx("div",{onClick:()=>r(!n),ref:o,className:"userAvatar",id:"userAvatarNull",children:(t==null?void 0:t.charAt(0))??""})})})}function Ws(e){const{user:t,logout:n,isFetching:r}=m.useAuth();return l.jsx(Hs,{...e,isFetching:r,user:t,logout:n})}const Us=e=>l.jsx(m.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit"},...e}),Ks=e=>l.jsx(m.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit",width:"610px"},containerId:"toastifyNotification",...e}),Ys=({children:e})=>l.jsxs(R.Stack,{justifyContent:"center",alignItems:"center",sx:{backgroundColor:"#FAFAFA",minHeight:"450px"},children:[l.jsx(qs,{}),e]});function qs(){return l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"150",height:"150",fill:"none",viewBox:"0 0 150 150",children:[l.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"}),l.jsx("path",{fill:"#DDD",d:"M73.354 34.489l-2.13 13.355H57.378L73.354 34.49z"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.jsx("path",{fill:"#DDD",d:"M108.03 109.039l3.503 4.775H58.8l-3.503-4.775h52.733z"}),l.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"}),l.jsx("path",{fill:"#F7F9FC",d:"M118.776 41.663l-10.746 67.376H55.297l.59-3.704h48.895l10.154-63.672h3.84z"}),l.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"}),l.jsx("path",{fill:"#EEE",d:"M118.776 41.663l3.503 4.775-10.746 67.376-3.503-4.775 10.746-67.376z"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.jsx("path",{fill:"#DDD",d:"M104.782 105.335H51.517l-2.716-3.702h52.731l3.25 3.702z"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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 Gs=typeof m.commonjsGlobal=="object"&&m.commonjsGlobal&&m.commonjsGlobal.Object===Object&&m.commonjsGlobal,Zs=typeof self=="object"&&self&&self.Object===Object&&self;Gs||Zs||Function("return this")();function Xs(e){const[t,n]=T.useState(!!e),r=T.useCallback(()=>{n(!0)},[]),o=T.useCallback(()=>{n(!1)},[]),s=T.useCallback(()=>{n(i=>!i)},[]);return{value:t,setValue:n,setTrue:r,setFalse:o,toggle:s}}function Js(e){var t;return l.jsxs(R.Dialog,{...e.dialogProps,open:e.open,children:[!e.hideTitle&&l.jsxs(R.DialogTitle,{component:R.Stack,sx:{...e.titleProps,textAlign:"center"},children:[typeof e.title=="string"?l.jsx(R.Typography,{variant:"h4",children:e.title}):e.title,typeof e.subTitle=="string"?l.jsx(R.Typography,{color:"success.main",variant:"body1",...e.subTitleProps,children:e.subTitle}):e.subTitle]}),l.jsx(R.DialogContent,{sx:{...e.contentProps,overflowY:e.fixOverflow?"unset":void 0},children:e.desc}),!(e.hideClose&&e.hideConfirm)&&l.jsx(R.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:l.jsxs(l.Fragment,{children:[!e.hideClose&&l.jsx(R.Button,{color:"error",onClick:e.onClose,children:"Close"}),!e.hideConfirm&&l.jsx(R.Button,{color:"primary",onClick:e.onConfirm,children:"Submit"})]})})]})}function Qs(e){const t=Xs(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}}function ei({rootPath:e}){return l.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center"},children:[l.jsx("h1",{children:"404 - Not Found"}),l.jsx("p",{children:"Sorry, the page you are looking for does not exist."}),l.jsx(R.Box,{height:"16px"}),l.jsx(mn.Link,{to:e,children:l.jsx(R.Button,{variant:"contained",color:"primary",children:"Go to Home"})})]})}function ti(){const{colors:e}=m.useTheme();return l.jsx("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"calc(100vh - 144px)",alignItems:"center",justifyContent:"center",zIndex:100},children:l.jsx("h1",{style:{color:`${e==null?void 0:e.primary300}`,fontSize:"82px",fontWeight:700,textTransform:"uppercase",marginTop:0,marginBottom:0,textAlign:"center"},children:"Welcome to the Intelli-Verse"})})}const ni=()=>{const{t:e}=m.useTranslation();return l.jsx("div",{className:"unauth__container "+m.styles["page-container"],children:l.jsxs("div",{className:"unauth__main-content "+m.styles["page-main-content"],children:[l.jsx(ri,{}),l.jsxs("div",{className:"unauth__main-text",children:[l.jsx("h2",{className:"unauth__main-text__title "+m.styles["page-title"],children:e("components.unauthorizedPage.title")}),l.jsxs("p",{className:"unauth__main-text__desc "+m.styles["text-base"],children:[e("components.unauthorizedPage.description1")," ",l.jsx("br",{})," ",e("components.unauthorizedPage.description2")]})]})]})})},ri=()=>l.jsxs("svg",{width:"61",height:"60",viewBox:"0 0 61 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxs("g",{filter:"url(#filter0_d_10800_50471)",children:[l.jsx("rect",{x:"2.5",y:"1",width:"56",height:"56",rx:"28",fill:"white"}),l.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"})]}),l.jsx("defs",{children:l.jsxs("filter",{id:"filter0_d_10800_50471",x:"0.5",y:"0",width:"60",height:"60",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[l.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),l.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"}),l.jsx("feOffset",{dy:"1"}),l.jsx("feGaussianBlur",{stdDeviation:"1"}),l.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"}),l.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_10800_50471"}),l.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_10800_50471",result:"shape"})]})})]});function Se(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 Dr(e){if($.isValidElement(e)||!Se(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Dr(e[n])}),t}function pe(e,t,n={clone:!0}){const r=n.clone?m._extends({},e):e;return Se(e)&&Se(t)&&Object.keys(t).forEach(o=>{$.isValidElement(t[o])?r[o]=t[o]:Se(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Se(e[o])?r[o]=pe(e[o],t[o],n):n.clone?r[o]=Se(t[o])?Dr(t[o]):t[o]:r[o]=t[o]}),r}const oi=Object.freeze(Object.defineProperty({__proto__:null,default:pe,isPlainObject:Se},Symbol.toStringTag,{value:"Module"}));function Je(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 si=Object.freeze(Object.defineProperty({__proto__:null,default:Je},Symbol.toStringTag,{value:"Module"}));var rn={exports:{}},H={};/**
32
+ `}),l.jsxs("div",{className:"tab-container",children:[l.jsx("div",{style:{display:"flex",width:"100%",height:"50px",borderBottom:`1px solid ${m.color.grey200}`},className:"tab-container__title",children:t.map((i,s)=>l.jsx("button",{id:i.id,disabled:e.currentTab===`${i.id}`,onClick:n,className:`tab-title ${e.currentTab===`${i.id}`?"is-active":""}`,children:i.tabTitle},s))}),l.jsx("div",{className:"tab-content",children:t.map((i,s)=>l.jsx("div",{children:e.currentTab===`${i.id}`&&l.jsx("div",{children:i.children})},s))})]})]})},Tr=({baseUrl:e,notiPath:t,setNotiData:n})=>async(o=1,i=20,s="all")=>{const u=e+(t||"/notification-management/api/v1/notifications"),f=(await m.axiosInstance.get(u,{params:{page:o,pageSize:i,filter:{notificationFilterType:s}}})).data;return n(s==="all"?h=>({...h,all:{total:(f==null?void 0:f.total)??0}}):h=>({...h,unread:{total:(f==null?void 0:f.total)??0}})),f};var $n=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function zo(e,t){return!!(e===t||$n(e)&&$n(t))}function Lo(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!zo(e[n],t[n]))return!1;return!0}function Vt(e,t){t===void 0&&(t=Lo);var n,r=[],o,i=!1;function s(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return i&&n===this&&t(c,r)||(o=e.apply(this,c),i=!0,n=this,r=c),o}return s}var Fo=typeof performance=="object"&&typeof performance.now=="function",Nn=Fo?function(){return performance.now()}:function(){return Date.now()};function Rn(e){cancelAnimationFrame(e.id)}function Do(e,t){var n=Nn();function r(){Nn()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var Wt=-1;function zn(e){if(e===void 0&&(e=!1),Wt===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Wt=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Wt}var Ne=null;function Ln(e){if(e===void 0&&(e=!1),Ne===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"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Ne="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Ne="negative":Ne="positive-ascending"),document.body.removeChild(t),Ne}return Ne}process.env.NODE_ENV;var Ho=150,Bo=function(t,n){return t},pt=null,mt=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(pt=new WeakSet,mt=new WeakSet);function Vo(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,c=e.getStopIndexForStartIndex,u=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(h){m._inheritsLoose(p,h);function p(g){var a;return a=h.call(this,g)||this,a._instanceProps=u(a.props,m._assertThisInitialized(a)),a._outerRef=void 0,a._resetIsScrollingTimeoutId=null,a.state={instance:m._assertThisInitialized(a),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof a.props.initialScrollOffset=="number"?a.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},a._callOnItemsRendered=void 0,a._callOnItemsRendered=Vt(function(y,v,w,_){return a.props.onItemsRendered({overscanStartIndex:y,overscanStopIndex:v,visibleStartIndex:w,visibleStopIndex:_})}),a._callOnScroll=void 0,a._callOnScroll=Vt(function(y,v,w){return a.props.onScroll({scrollDirection:y,scrollOffset:v,scrollUpdateWasRequested:w})}),a._getItemStyle=void 0,a._getItemStyle=function(y){var v=a.props,w=v.direction,_=v.itemSize,T=v.layout,b=a._getItemStyleCache(d&&_,d&&T,d&&w),S;if(b.hasOwnProperty(y))S=b[y];else{var E=n(a.props,y,a._instanceProps),M=o(a.props,y,a._instanceProps),j=w==="horizontal"||T==="horizontal",L=w==="rtl",I=j?E:0;b[y]=S={position:"absolute",left:L?void 0:I,right:L?I:void 0,top:j?0:E,height:j?"100%":M,width:j?M:"100%"}}return S},a._getItemStyleCache=void 0,a._getItemStyleCache=Vt(function(y,v,w){return{}}),a._onScrollHorizontal=function(y){var v=y.currentTarget,w=v.clientWidth,_=v.scrollLeft,T=v.scrollWidth;a.setState(function(b){if(b.scrollOffset===_)return null;var S=a.props.direction,E=_;if(S==="rtl")switch(Ln()){case"negative":E=-_;break;case"positive-descending":E=T-w-_;break}return E=Math.max(0,Math.min(E,T-w)),{isScrolling:!0,scrollDirection:b.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._onScrollVertical=function(y){var v=y.currentTarget,w=v.clientHeight,_=v.scrollHeight,T=v.scrollTop;a.setState(function(b){if(b.scrollOffset===T)return null;var S=Math.max(0,Math.min(T,_-w));return{isScrolling:!0,scrollDirection:b.scrollOffset<S?"forward":"backward",scrollOffset:S,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._outerRefSetter=function(y){var v=a.props.outerRef;a._outerRef=y,typeof v=="function"?v(y):v!=null&&typeof v=="object"&&v.hasOwnProperty("current")&&(v.current=y)},a._resetIsScrollingDebounced=function(){a._resetIsScrollingTimeoutId!==null&&Rn(a._resetIsScrollingTimeoutId),a._resetIsScrollingTimeoutId=Do(a._resetIsScrolling,Ho)},a._resetIsScrolling=function(){a._resetIsScrollingTimeoutId=null,a.setState({isScrolling:!1},function(){a._getItemStyleCache(-1,null)})},a}p.getDerivedStateFromProps=function(a,y){return Wo(a,y),f(a),null};var x=p.prototype;return x.scrollTo=function(a){a=Math.max(0,a),this.setState(function(y){return y.scrollOffset===a?null:{scrollDirection:y.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},x.scrollToItem=function(a,y){y===void 0&&(y="auto");var v=this.props,w=v.itemCount,_=v.layout,T=this.state.scrollOffset;a=Math.max(0,Math.min(a,w-1));var b=0;if(this._outerRef){var S=this._outerRef;_==="vertical"?b=S.scrollWidth>S.clientWidth?zn():0:b=S.scrollHeight>S.clientHeight?zn():0}this.scrollTo(i(this.props,a,y,T,this._instanceProps,b))},x.componentDidMount=function(){var a=this.props,y=a.direction,v=a.initialScrollOffset,w=a.layout;if(typeof v=="number"&&this._outerRef!=null){var _=this._outerRef;y==="horizontal"||w==="horizontal"?_.scrollLeft=v:_.scrollTop=v}this._callPropsCallbacks()},x.componentDidUpdate=function(){var a=this.props,y=a.direction,v=a.layout,w=this.state,_=w.scrollOffset,T=w.scrollUpdateWasRequested;if(T&&this._outerRef!=null){var b=this._outerRef;if(y==="horizontal"||v==="horizontal")if(y==="rtl")switch(Ln()){case"negative":b.scrollLeft=-_;break;case"positive-ascending":b.scrollLeft=_;break;default:var S=b.clientWidth,E=b.scrollWidth;b.scrollLeft=E-S-_;break}else b.scrollLeft=_;else b.scrollTop=_}this._callPropsCallbacks()},x.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Rn(this._resetIsScrollingTimeoutId)},x.render=function(){var a=this.props,y=a.children,v=a.className,w=a.direction,_=a.height,T=a.innerRef,b=a.innerElementType,S=a.innerTagName,E=a.itemCount,M=a.itemData,j=a.itemKey,L=j===void 0?Bo:j,I=a.layout,P=a.outerElementType,R=a.outerTagName,K=a.style,re=a.useIsScrolling,ce=a.width,_e=this.state.isScrolling,$=w==="horizontal"||I==="horizontal",z=$?this._onScrollHorizontal:this._onScrollVertical,W=this._getRangeToRender(),le=W[0],oe=W[1],te=[];if(E>0)for(var Q=le;Q<=oe;Q++)te.push(C.createElement(y,{data:M,key:L(Q,M),index:Q,isScrolling:re?_e:void 0,style:this._getItemStyle(Q)}));var ye=r(this.props,this._instanceProps);return C.createElement(P||R||"div",{className:v,onScroll:z,ref:this._outerRefSetter,style:m._extends({position:"relative",height:_,width:ce,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:w},K)},C.createElement(b||S||"div",{children:te,ref:T,style:{height:$?"100%":ye,pointerEvents:_e?"none":void 0,width:$?ye:"100%"}}))},x._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var a=this.props.itemCount;if(a>0){var y=this._getRangeToRender(),v=y[0],w=y[1],_=y[2],T=y[3];this._callOnItemsRendered(v,w,_,T)}}if(typeof this.props.onScroll=="function"){var b=this.state,S=b.scrollDirection,E=b.scrollOffset,M=b.scrollUpdateWasRequested;this._callOnScroll(S,E,M)}},x._getRangeToRender=function(){var a=this.props,y=a.itemCount,v=a.overscanCount,w=this.state,_=w.isScrolling,T=w.scrollDirection,b=w.scrollOffset;if(y===0)return[0,0,0,0];var S=s(this.props,b,this._instanceProps),E=c(this.props,S,b,this._instanceProps),M=!_||T==="backward"?Math.max(1,v):1,j=!_||T==="forward"?Math.max(1,v):1;return[Math.max(0,S-M),Math.max(0,Math.min(y-1,E+j)),S,E]},p}(C.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Wo=function(t,n){var r=t.children,o=t.direction,i=t.height,s=t.layout,c=t.innerTagName,u=t.outerTagName,d=t.width,f=n.instance;if(process.env.NODE_ENV!=="production"){(c!=null||u!=null)&&mt&&!mt.has(f)&&(mt.add(f),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var h=o==="horizontal"||s==="horizontal";switch(o){case"horizontal":case"vertical":pt&&!pt.has(f)&&(pt.add(f),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". '+('"'+o+'" 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(h&&typeof d!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(d===null?"null":typeof d)+'" was specified.'));if(!h&&typeof i!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(i===null?"null":typeof i)+'" was specified.'))}},Uo=50,He=function(t,n,r){var o=t,i=o.itemSize,s=r.itemMetadataMap,c=r.lastMeasuredIndex;if(n>c){var u=0;if(c>=0){var d=s[c];u=d.offset+d.size}for(var f=c+1;f<=n;f++){var h=i(f);s[f]={offset:u,size:h},u+=h}r.lastMeasuredIndex=n}return s[n]},Go=function(t,n,r){var o=n.itemMetadataMap,i=n.lastMeasuredIndex,s=i>0?o[i].offset:0;return s>=r?Ir(t,n,i,0,r):Ko(t,n,Math.max(0,i),r)},Ir=function(t,n,r,o,i){for(;o<=r;){var s=o+Math.floor((r-o)/2),c=He(t,s,n).offset;if(c===i)return s;c<i?o=s+1:c>i&&(r=s-1)}return o>0?o-1:0},Ko=function(t,n,r,o){for(var i=t.itemCount,s=1;r<i&&He(t,r,n).offset<o;)r+=s,s*=2;return Ir(t,n,Math.min(r,i-1),Math.floor(r/2),o)},Fn=function(t,n){var r=t.itemCount,o=n.itemMetadataMap,i=n.estimatedItemSize,s=n.lastMeasuredIndex,c=0;if(s>=r&&(s=r-1),s>=0){var u=o[s];c=u.offset+u.size}var d=r-s-1,f=d*i;return c+f},kr=Vo({getItemOffset:function(t,n,r){return He(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:Fn,getOffsetForIndexAndAlignment:function(t,n,r,o,i,s){var c=t.direction,u=t.height,d=t.layout,f=t.width,h=c==="horizontal"||d==="horizontal",p=h?f:u,x=He(t,n,i),g=Fn(t,i),a=Math.max(0,Math.min(g-p,x.offset)),y=Math.max(0,x.offset-p+x.size+s);switch(r==="smart"&&(o>=y-p&&o<=a+p?r="auto":r="center"),r){case"start":return a;case"end":return y;case"center":return Math.round(y+(a-y)/2);case"auto":default:return o>=y&&o<=a?o:o<y?y:a}},getStartIndexForOffset:function(t,n,r){return Go(t,r,n)},getStopIndexForStartIndex:function(t,n,r,o){for(var i=t.direction,s=t.height,c=t.itemCount,u=t.layout,d=t.width,f=i==="horizontal"||u==="horizontal",h=f?d:s,p=He(t,n,o),x=r+h,g=p.offset+p.size,a=n;a<c-1&&g<x;)a++,g+=He(t,a,o).size;return a},initInstanceProps:function(t,n){var r=t,o=r.estimatedItemSize,i={itemMetadataMap:{},estimatedItemSize:o||Uo,lastMeasuredIndex:-1};return n.resetAfterIndex=function(s,c){c===void 0&&(c=!0),i.lastMeasuredIndex=Math.min(i.lastMeasuredIndex,s-1),n._getItemStyleCache(-1),c&&n.forceUpdate()},i},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.'))}});const Ut=20,Dn=({baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:r,tabType:o,popupRef:i})=>{const[s,c]=C.useState(!1),[u,d]=C.useState(0);C.useEffect(()=>{const $=()=>{i&&i.current&&d(i.current.offsetHeight-200)};return $(),window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[]);const[f,h]=C.useState([]),[p,x]=C.useState(!0),[g,a]=C.useState(!1),[y,v]=C.useState(1),[w,_]=C.useState({}),T=C.useRef(null),{setNotiData:b}=C.useContext(m.CustomOpenList),S=Tr({baseUrl:e,notiPath:t,setNotiData:b}),E=C.useRef(null),M=C.useCallback(async()=>{if(!(g||!p)){a(!0);try{const $=f.length===0?1:y+1,z=await S($,Ut,o),W=(z==null?void 0:z.rows)||[];E.current=(z==null?void 0:z.count)||(z==null?void 0:z.total)||null,h(le=>[...le,...W]),v($),(W.length<Ut||E.current&&f.length+W.length>=E.current)&&x(!1)}catch{x(!1)}finally{a(!1)}}},[g,p,y,S,f.length,o]),j=p?f.length+1:f.length,L=$=>!p||$<f.length,I=async()=>{try{const W=e+(t||"/notification-management/api/v1/notifications");await m.axiosInstance.put(W)}catch(z){console.log(z)}const $=await S(1,Ut,o);h(($==null?void 0:$.rows)||[]),b(z=>({...z,unread:{total:0}})),v(1),x(!0),c(!1)},P=()=>{c(!0),I()},R=({style:$})=>l.jsxs(N.Box,{style:$,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",py:4,className:"notification-loading-item",children:[l.jsx(N.CircularProgress,{style:{color:n==null?void 0:n.primary500}}),l.jsx(N.Typography,{color:"text.first",variant:"body2",children:"Loading..."})]}),K=async($,z,W)=>{h(o==="unread"&&z?te=>te.filter(Q=>Q.id!==$):te=>te.map(Q=>Q.id===$?{...Q,isRead:z}:Q)),b(te=>{let Q=0;const ye=f.find(qe=>qe.id===$);return ye&&(!ye.isRead&&z&&(Q=-1),ye.isRead&&!z&&(Q=1)),{...te,unread:{...te.unread,total:Math.max(0,(te.unread.total||0)+Q)}}});const le=W||`/notification-management/api/v1/notifications/${$}`,oe=e+le;await m.axiosInstance.put(oe,{isRead:z})},re=$=>{var te;const oe=f[$];return oe&&oe.notificationType==="deleteMultiple"&&w[oe.id]?90+38*(((te=oe.data)==null?void 0:te.length)??0)+8:90},ce=($,z)=>{_(W=>{const le={...W,[$]:!W[$]};return setTimeout(()=>{var oe;(oe=T.current)==null||oe.resetAfterIndex(z)},0),le})},_e=({index:$,style:z})=>{if(!L($))return l.jsx(R,{style:z});const W=f[$];return l.jsx("div",{style:z,children:l.jsx(m.NotitficationItem,{notification:W,notiPath:t,markAllAsReadState:s,brandColors:n,onMark:K,showDetail:!!w[W.id],onToggleDetail:()=>ce(W.id,$)},W.id||$)})};return l.jsxs("div",{children:[l.jsx("div",{className:"mark-all-read",children:l.jsx("button",{onClick:P,style:{visibility:r===0?"hidden":"visible"},children:"Mark all as read"})}),l.jsx("div",{className:"notification-items__wrapper",style:{height:"100%"},children:l.jsx("div",{className:"notification-items__content",style:{height:"100%"},children:l.jsx(m.InfiniteLoader,{isItemLoaded:L,itemCount:j,loadMoreItems:M,threshold:10,children:({onItemsRendered:$,ref:z})=>l.jsx(kr,{height:u,itemCount:j,itemSize:re,width:"100%",onItemsRendered:$,ref:W=>{T.current=W,typeof z=="function"&&z(W)},children:_e})})})})]})},Yo=({baseUrl:e,notiPath:t,brandColors:n})=>{var d,f;const r=C.useRef(null),{setShowModalFalse:o}=C.useContext(m.CustomOpenList),{notidata:i}=C.useContext(m.CustomOpenList);console.log(i),C.useEffect(()=>{const h=x=>{!(!!x.composedPath?x.composedPath():[x.target]).some(v=>{var w;return v===r.current||((w=v==null?void 0:v.classList)==null?void 0:w.contains("noti-container"))})&&o()},p=setTimeout(()=>{document.addEventListener("mousedown",h)},100);return()=>{clearTimeout(p),document.removeEventListener("mousedown",h)}},[o]);const[s,c]=C.useState("all"),u=[{id:"all",tabTitle:`All (${((d=i==null?void 0:i.all)==null?void 0:d.total)||0})`,children:l.jsx(Dn,{baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:i.unread.total,tabType:"all",popupRef:r})},{id:"unread",tabTitle:`Unread (${((f=i==null?void 0:i.unread)==null?void 0:f.total)||0})`,children:l.jsx(Dn,{baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:i.unread.total,tabType:"unread",popupRef:r})}];return l.jsx(l.Fragment,{children:l.jsx("div",{ref:r,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",zIndex:"100"},children:l.jsxs("div",{className:"list-content",children:[l.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[l.jsx("h3",{style:{fontSize:"24px",fontWeight:"500",color:m.color.textPrimary},className:"list-title",children:"Notifications"}),l.jsx("button",{onClick:o,children:l.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.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"})})})]}),l.jsx(Ro,{tabs:u,setCurrentTab:c,currentTab:s,brandColors:n})]})})})};function qo({iconColor:e="#fff",baseUrl:t,notiPath:n,brandColors:r}){var f,h;const{isOpen:o,toggleOpen:i,setShowModalFalse:s}=C.useContext(m.CustomOpenList),{notidata:c,setNotiData:u}=C.useContext(m.CustomOpenList),d=Tr({baseUrl:t,notiPath:n,setNotiData:u});return C.useEffect(()=>{(async()=>{var x,g;try{const[a]=await Promise.all([d(1,20,"unread")]);u(()=>({all:{total:0},unread:{total:(a==null?void 0:a.total)||0}}))}catch(a){m.pushError(((g=(x=a.response)==null?void 0:x.data)==null?void 0:g.errorMessage)||"Have error when get notification list")}})()},[]),l.jsxs("div",{children:[l.jsxs("div",{className:"noti-container",style:{position:"relative"},children:[l.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:p=>{p.stopPropagation(),i()},style:{cursor:"pointer",color:e},children:[l.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:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(c==null?void 0:c.unread)&&(c==null?void 0:c.unread.total)!=0&&l.jsx("span",{style:{position:"absolute",top:"-9px",right:"-6px",width:"20px",height:"20px",border:"1px solid #fff",borderRadius:"50%",color:"#fff",fontSize:"12px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:m.color.danger},className:"notification-badge",children:((f=c==null?void 0:c.unread)==null?void 0:f.total)>9?"9+":`${(h=c==null?void 0:c.unread)==null?void 0:h.total}`})]}),l.jsx("div",{className:"noti-list-container",children:o&&l.jsx(Yo,{baseUrl:t,notiPath:n,brandColors:r})})]})}const Zo=".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-wrapper{position:fixed;top:0;left:0;width:100%;height:64px;display:flex;z-index:1000;background:#292929;padding-left:2.5rem}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between;position:relative}.logo-container{height:100%;display:flex;align-items:center}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem;transition:width .3s}.userAvatar{width:2.5rem;height:2.5rem;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}#userAvatarNull{width:2.5rem;height:2.5rem;background:#ddd;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}.topbar-search-label{display:flex;position:relative}.topbar-search-input{color:#292929;border-radius:3px;height:40px;outline:none;font-size:14px;text-overflow:ellipsis;max-width:166px}#icon{position:absolute;left:9px;top:8px;width:16px;height:24px}",Xo=".StyledReactSearchAutocomplete ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb{background:#c2c2c2;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb:hover{background:#757575}.StyledReactSearchAutocomplete .container{display:flex;width:100%;height:100vh;justify-content:center;align-items:center}.StyledReactSearchAutocomplete .container>div{width:300px;height:40px}.StyledReactSearchAutocomplete .container>div input{width:100%;height:40px;border:1px solid #ccc;border-radius:5px;font-size:14px;color:#000}.StyledReactSearchAutocomplete .container>div input:focus{outline:1px solid rgb(83,172,255)}.StyledReactSearchAutocomplete .list{display:flex;flex-direction:column;max-height:220px;width:inherit;overflow:auto;overflow-x:hidden;box-shadow:#0000001f 0 1px 3px,#0000003d 0 1px 2px;color:#000}.StyledReactSearchAutocomplete .list button{background:none;border:none;width:100%;height:100%;max-height:3em;padding:10px;text-align:left;cursor:pointer;border-bottom:1px solid #ccc}.StyledReactSearchAutocomplete .list button:hover{background:#f8f8f8}.StyledReactSearchAutocomplete .list button:last-child{border-bottom:none}.StyledReactSearchAutocomplete{position:relative;height:46px}.StyledReactSearchAutocomplete .wrapper{position:absolute;display:flex;flex-direction:column;width:100%;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;margin-top:2px;border-radius:3px}.StyledReactSearchAutocomplete .wrapper:hover,.StyledReactSearchAutocomplete .wrapper:active,.StyledReactSearchAutocomplete .wrapper:focus-within{box-shadow:#20212447 0 1px 6px}.StyledResults{position:absolute;display:flex;flex-direction:column;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;min-width:250px;max-width:400px;top:calc(100% - 2px);left:0}.StyledResults>div.line{border-top-color:#e8eaed;border-top-style:solid;border-top-width:1px;margin:0 20px 0 14px;padding-bottom:4px}.StyledResults>ul{list-style-type:none;margin:0;padding:0 0 16px;max-height:300px;max-width:450px}#autocomplete-results strong,#autocomplete-results li strong,#autocomplete-results li div strong{font-weight:700!important}.StyledResults>ul>li{display:flex;align-items:center;padding:4px 10px 4px 0;font-size:14px;width:100%}.StyledResults>ul>li>div{margin-left:13px;font-size:14px}.StyledResults .ellipsis{text-align:left;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.StyledResults .selectedSearch{color:#fff;text-decoration:none;background-color:#0d6efd}.StyledSearchInput{min-height:40px;width:100%;display:flex;align-items:center}.StyledSearchInput input{width:100%}.StyledSearchInput>input::-moz-placeholder{color:gray;opacity:1}.StyledSearchInput>input::placeholder{color:gray;opacity:1}.StyledSearchInput>input:-ms-input-placeholder{color:gray}.StyledSearchInput>input::-ms-input-placeholder{color:gray}.StyledClearIcon{margin:0 0 0 5px}.StyledClearIcon:hover{cursor:pointer}.StyledClearIcon>svg{fill:gray}.StyledSearchIcon{flex-shrink:0;margin:0 0 0 10px;fill:gray}.search-icon{position:unset!important;float:left;margin-right:5px;margin-left:5px}",Jo=':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;color:#292929}.notitification-item__container{display:flex;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.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__content-wrapper{width:100%;display:flex;align-items:center;justify-content:space-between}.notification-item__context-link{color:#007bff}.notification-item__context-text{color:#292929}.notification-item__content{width:68%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.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}.list-dot{border-radius:50%;width:8px;height:8px;margin-right:4px;display:block}',Qo="._subscription-diaglog_1bysb_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_1bysb_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff;color:#292929}._subscription-title_1bysb_25{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_1bysb_25,._subscription-text_1bysb_34{margin-bottom:24px}._subscription-btn__container_1bysb_38{display:flex;justify-content:space-between;align-items:center}._btn-success_1bysb_44,._btn-cancel_1bysb_45{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}._btn-cancel_1bysb_45{background-color:#ddd}._btn-cancel_1bysb_45:hover{background-color:#c5c5c5}._btn-success_1bysb_44{background-color:#93d500}._btn-success_1bysb_44:hover{background-color:#2e7d32}",Mr='.notification-massage_container{background:#fff;padding:0 64px 0 72px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif;text-decoration:none;color:inherit}.notification-massage_container: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{font-weight:500;font-size:14px;margin:0}.notification-message_service{font-size:12px}.notification-message_button-close{position:absolute;top:12px;right:24px;width:24px;height:24px}';function ei(e){return l.jsxs("svg",{width:"34",height:"25",viewBox:"0 0 34 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.jsxs("g",{"clip-path":"url(#clip0_16865_28134)",children:[l.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"#1A47B8"}),l.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"}),l.jsx("path",{d:"M1.20635 0.5L34 22.1567V24.5H32.8219L0 2.82089V0.5H1.20635Z",fill:"#F93939"}),l.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"}),l.jsx("path",{d:"M34 0.5H32.9019L0 22.1753V24.5H1.20635L34 2.83842V0.5Z",fill:"#F93939"}),l.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"}),l.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"})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_16865_28134",children:l.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"white"})})})]})}const ti=C.createContext({}),jr=!0;function ni({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:i,direction:s,duration:c,enableAnimation:u=jr,customHighlightBackground:d}){const f={};return s==="rtl"&&(f["--animation-direction"]="reverse"),typeof c=="number"&&(f["--animation-duration"]=`${c}s`),u||(f["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(f.width=n),(typeof r=="string"||typeof r=="number")&&(f.height=r),(typeof o=="string"||typeof o=="number")&&(f.borderRadius=o),i&&(f.borderRadius="50%"),typeof e<"u"&&(f["--base-color"]=e),typeof t<"u"&&(f["--highlight-color"]=t),typeof d=="string"&&(f["--custom-highlight-background"]=d),f}function Pr({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:o,circle:i=!1,style:s,...c}){var u,d,f;const h=C.useContext(ti),p={...c};for(const[_,T]of Object.entries(c))typeof T>"u"&&delete p[_];const x={...h,...p,circle:i},g={...s,...ni(x)};let a="react-loading-skeleton";n&&(a+=` ${n}`);const y=(u=x.inline)!==null&&u!==void 0?u:!1,v=[],w=Math.ceil(e);for(let _=0;_<w;_++){let T=g;if(w>e&&_===w-1){const S=(d=T.width)!==null&&d!==void 0?d:"100%",E=e%1,M=typeof S=="number"?S*E:`calc(${S} * ${E})`;T={...T,width:M}}const b=C.createElement("span",{className:a,style:T,key:_},"‌");y?v.push(b):v.push(C.createElement(C.Fragment,{key:_},b,C.createElement("br",null)))}return C.createElement("span",{className:r,"data-testid":o,"aria-live":"polite","aria-busy":(f=x.enableAnimation)!==null&&f!==void 0?f:jr},t?v.map((_,T)=>C.createElement(t,{key:T},_)):v)}const ri='@keyframes react-loading-skeleton{to{transform:translate(100%)}}.react-loading-skeleton{--base-color: #ebebeb;--highlight-color: #f5f5f5;--animation-duration: 1.5s;--animation-direction: normal;--pseudo-element-display: block;background-color:var(--base-color);width:100%;border-radius:.25rem;display:inline-flex;line-height:1;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}.react-loading-skeleton:after{content:" ";display:var(--pseudo-element-display);position:absolute;top:0;left:0;right:0;height:100%;background-repeat:no-repeat;background-image:var( --custom-highlight-background, linear-gradient( 90deg, var(--base-color) 0%, var(--highlight-color) 50%, var(--base-color) 100% ) );transform:translate(-100%);animation-name:react-loading-skeleton;animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite}@media (prefers-reduced-motion){.react-loading-skeleton{--pseudo-element-display: none}}',oi=({baseUrl:e,searchPath:t})=>{const[n,r]=C.useState(!1);console.log("hasPermission state",n);const o=async()=>{const s=e+(t||"/user-management/api/v1/users/my-account/access-stella-search");try{const c=await m.axiosInstance.get(s);console.log("hasPermission data",c.data),r(c.data)}catch(c){console.log(c)}};return C.useEffect(()=>{o()},[e,t]),{hasPermission:n}};function Or({childrenClass:e,action:t,childrenOpenClass:n}){const r=document.querySelector("#topbar-wrapper"),o=r==null?void 0:r.shadowRoot,i=o==null?void 0:o.querySelector(`.${e}`),s=o==null?void 0:o.querySelector(`.${n}`),c=o==null?void 0:o.querySelector("nav"),u=d=>{c==null||c.addEventListener("click",function(f){if(n&&s&&s.contains(f.target)){if(i&&!i.contains(f.target))return}else i&&!i.contains(f.target)&&t()}),r&&!r.contains(d.target)&&t()};document.addEventListener("click",u,!0)}function ii(e){return l.jsxs("svg",{width:"34",height:"24",viewBox:"0 0 34 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.jsxs("g",{"clip-path":"url(#clip0_16886_62505)",children:[l.jsx("rect",{width:"34",height:"24",rx:"3",fill:"#F93939"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 16H34V24H0V16Z",fill:"#FFDA2C"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H34V8H0V0Z",fill:"#151515"})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_16886_62505",children:l.jsx("rect",{width:"34",height:"24",rx:"3",fill:"white"})})})]})}const si=".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}";function Ee(e){return Array.isArray?Array.isArray(e):Nr(e)==="[object Array]"}function ai(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ci(e){return e==null?"":ai(e)}function ve(e){return typeof e=="string"}function Ar(e){return typeof e=="number"}function li(e){return e===!0||e===!1||ui(e)&&Nr(e)=="[object Boolean]"}function $r(e){return typeof e=="object"}function ui(e){return $r(e)&&e!==null}function ue(e){return e!=null}function Gt(e){return!e.trim().length}function Nr(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const di="Incorrect 'index' type",fi=e=>`Invalid value for key ${e}`,hi=e=>`Pattern length exceeds max of ${e}.`,pi=e=>`Missing ${e} property in key`,mi=e=>`Property 'weight' in key '${e}' must be a positive integer`,Hn=Object.prototype.hasOwnProperty;class gi{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=Rr(r);n+=o.weight,this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Rr(e){let t=null,n=null,r=null,o=1,i=null;if(ve(e)||Ee(e))r=e,t=Bn(e),n=Xt(e);else{if(!Hn.call(e,"name"))throw new Error(pi("name"));const s=e.name;if(r=s,Hn.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(mi(s));t=Bn(s),n=Xt(s),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function Bn(e){return Ee(e)?e:e.split(".")}function Xt(e){return Ee(e)?e.join("."):e}function yi(e,t){let n=[],r=!1;const o=(i,s,c)=>{if(ue(i))if(!s[c])n.push(i);else{let u=s[c];const d=i[u];if(!ue(d))return;if(c===s.length-1&&(ve(d)||Ar(d)||li(d)))n.push(ci(d));else if(Ee(d)){r=!0;for(let f=0,h=d.length;f<h;f+=1)o(d[f],s,c+1)}else s.length&&o(d,s,c+1)}};return o(e,ve(t)?t.split("."):t,0),r?n:n[0]}const xi={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},bi={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},vi={location:0,threshold:.6,distance:100},Si={useExtendedSearch:!1,getFn:yi,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var O={...bi,...xi,...vi,...Si};const wi=/[^ ]+/g;function _i(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(o){const i=o.match(wi).length;if(n.has(i))return n.get(i);const s=1/Math.pow(i,.5*e),c=parseFloat(Math.round(s*r)/r);return n.set(i,c),c},clear(){n.clear()}}}class yn{constructor({getFn:t=O.getFn,fieldNormWeight:n=O.fieldNormWeight}={}){this.norm=_i(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,ve(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();ve(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!ue(t)||Gt(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((o,i)=>{let s=o.getFn?o.getFn(t):this.getFn(t,o.path);if(ue(s)){if(Ee(s)){let c=[];const u=[{nestedArrIndex:-1,value:s}];for(;u.length;){const{nestedArrIndex:d,value:f}=u.pop();if(ue(f))if(ve(f)&&!Gt(f)){let h={v:f,i:d,n:this.norm.get(f)};c.push(h)}else Ee(f)&&f.forEach((h,p)=>{u.push({nestedArrIndex:p,value:h})})}r.$[i]=c}else if(ve(s)&&!Gt(s)){let c={v:s,n:this.norm.get(s)};r.$[i]=c}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function zr(e,t,{getFn:n=O.getFn,fieldNormWeight:r=O.fieldNormWeight}={}){const o=new yn({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(Rr)),o.setSources(t),o.create(),o}function Ei(e,{getFn:t=O.getFn,fieldNormWeight:n=O.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new yn({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i}function dt(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=O.distance,ignoreLocation:i=O.ignoreLocation}={}){const s=t/e.length;if(i)return s;const c=Math.abs(r-n);return o?s+c/o:c?1:s}function Ci(e=[],t=O.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let s=e.length;i<s;i+=1){let c=e[i];c&&r===-1?r=i:!c&&r!==-1&&(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}const Oe=32;function Ti(e,t,n,{location:r=O.location,distance:o=O.distance,threshold:i=O.threshold,findAllMatches:s=O.findAllMatches,minMatchCharLength:c=O.minMatchCharLength,includeMatches:u=O.includeMatches,ignoreLocation:d=O.ignoreLocation}={}){if(t.length>Oe)throw new Error(hi(Oe));const f=t.length,h=e.length,p=Math.max(0,Math.min(r,h));let x=i,g=p;const a=c>1||u,y=a?Array(h):[];let v;for(;(v=e.indexOf(t,g))>-1;){let E=dt(t,{currentLocation:v,expectedLocation:p,distance:o,ignoreLocation:d});if(x=Math.min(E,x),g=v+f,a){let M=0;for(;M<f;)y[v+M]=1,M+=1}}g=-1;let w=[],_=1,T=f+h;const b=1<<f-1;for(let E=0;E<f;E+=1){let M=0,j=T;for(;M<j;)dt(t,{errors:E,currentLocation:p+j,expectedLocation:p,distance:o,ignoreLocation:d})<=x?M=j:T=j,j=Math.floor((T-M)/2+M);T=j;let L=Math.max(1,p-j+1),I=s?h:Math.min(p+j,h)+f,P=Array(I+2);P[I+1]=(1<<E)-1;for(let K=I;K>=L;K-=1){let re=K-1,ce=n[e.charAt(re)];if(a&&(y[re]=+!!ce),P[K]=(P[K+1]<<1|1)&ce,E&&(P[K]|=(w[K+1]|w[K])<<1|1|w[K+1]),P[K]&b&&(_=dt(t,{errors:E,currentLocation:re,expectedLocation:p,distance:o,ignoreLocation:d}),_<=x)){if(x=_,g=re,g<=p)break;L=Math.max(1,2*p-g)}}if(dt(t,{errors:E+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:d})>x)break;w=P}const S={isMatch:g>=0,score:Math.max(.001,_)};if(a){const E=Ci(y,c);E.length?u&&(S.indices=E):S.isMatch=!1}return S}function Ii(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}class Lr{constructor(t,{location:n=O.location,threshold:r=O.threshold,distance:o=O.distance,includeMatches:i=O.includeMatches,findAllMatches:s=O.findAllMatches,minMatchCharLength:c=O.minMatchCharLength,isCaseSensitive:u=O.isCaseSensitive,ignoreLocation:d=O.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:d},this.pattern=u?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const f=(p,x)=>{this.chunks.push({pattern:p,alphabet:Ii(p),startIndex:x})},h=this.pattern.length;if(h>Oe){let p=0;const x=h%Oe,g=h-x;for(;p<g;)f(this.pattern.substr(p,Oe),p),p+=Oe;if(x){const a=h-Oe;f(this.pattern.substr(a),a)}}else f(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,includeMatches:r}=this.options;if(n||(t=t.toLowerCase()),this.pattern===t){let g={isMatch:!0,score:0};return r&&(g.indices=[[0,t.length-1]]),g}const{location:o,distance:i,threshold:s,findAllMatches:c,minMatchCharLength:u,ignoreLocation:d}=this.options;let f=[],h=0,p=!1;this.chunks.forEach(({pattern:g,alphabet:a,startIndex:y})=>{const{isMatch:v,score:w,indices:_}=Ti(t,g,a,{location:o+y,distance:i,threshold:s,findAllMatches:c,minMatchCharLength:u,includeMatches:r,ignoreLocation:d});v&&(p=!0),h+=w,v&&_&&(f=[...f,..._])});let x={isMatch:p,score:p?h/this.chunks.length:1};return p&&r&&(x.indices=f),x}}class Me{constructor(t){this.pattern=t}static isMultiMatch(t){return Vn(t,this.multiRegex)}static isSingleMatch(t){return Vn(t,this.singleRegex)}search(){}}function Vn(e,t){const n=e.match(t);return n?n[1]:null}class ki extends Me{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Mi extends Me{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class ji extends Me{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Pi extends Me{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Oi extends Me{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Ai extends Me{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Fr extends Me{constructor(t,{location:n=O.location,threshold:r=O.threshold,distance:o=O.distance,includeMatches:i=O.includeMatches,findAllMatches:s=O.findAllMatches,minMatchCharLength:c=O.minMatchCharLength,isCaseSensitive:u=O.isCaseSensitive,ignoreLocation:d=O.ignoreLocation}={}){super(t),this._bitapSearch=new Lr(t,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:d})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Dr extends Me{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const o=[],i=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+i,o.push([r,n-1]);const s=!!o.length;return{isMatch:s,score:s?0:1,indices:o}}}const Jt=[ki,Dr,ji,Pi,Ai,Oi,Mi,Fr],Wn=Jt.length,$i=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Ni="|";function Ri(e,t={}){return e.split(Ni).map(n=>{let r=n.trim().split($i).filter(i=>i&&!!i.trim()),o=[];for(let i=0,s=r.length;i<s;i+=1){const c=r[i];let u=!1,d=-1;for(;!u&&++d<Wn;){const f=Jt[d];let h=f.isMultiMatch(c);h&&(o.push(new f(h,t)),u=!0)}if(!u)for(d=-1;++d<Wn;){const f=Jt[d];let h=f.isSingleMatch(c);if(h){o.push(new f(h,t));break}}}return o})}const zi=new Set([Fr.type,Dr.type]);class Li{constructor(t,{isCaseSensitive:n=O.isCaseSensitive,includeMatches:r=O.includeMatches,minMatchCharLength:o=O.minMatchCharLength,ignoreLocation:i=O.ignoreLocation,findAllMatches:s=O.findAllMatches,location:c=O.location,threshold:u=O.threshold,distance:d=O.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:r,minMatchCharLength:o,findAllMatches:s,ignoreLocation:i,location:c,threshold:u,distance:d},this.pattern=n?t:t.toLowerCase(),this.query=Ri(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:o}=this.options;t=o?t:t.toLowerCase();let i=0,s=[],c=0;for(let u=0,d=n.length;u<d;u+=1){const f=n[u];s.length=0,i=0;for(let h=0,p=f.length;h<p;h+=1){const x=f[h],{isMatch:g,indices:a,score:y}=x.search(t);if(g){if(i+=1,c+=y,r){const v=x.constructor.type;zi.has(v)?s=[...s,...a]:s.push(a)}}else{c=0,i=0,s.length=0;break}}if(i){let h={isMatch:!0,score:c/i};return r&&(h.indices=s),h}}return{isMatch:!1,score:1}}}const Qt=[];function Fi(...e){Qt.push(...e)}function en(e,t){for(let n=0,r=Qt.length;n<r;n+=1){let o=Qt[n];if(o.condition(e,t))return new o(e,t)}return new Lr(e,t)}const St={AND:"$and",OR:"$or"},tn={PATH:"$path",PATTERN:"$val"},nn=e=>!!(e[St.AND]||e[St.OR]),Di=e=>!!e[tn.PATH],Hi=e=>!Ee(e)&&$r(e)&&!nn(e),Un=e=>({[St.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Hr(e,t,{auto:n=!0}={}){const r=o=>{let i=Object.keys(o);const s=Di(o);if(!s&&i.length>1&&!nn(o))return r(Un(o));if(Hi(o)){const u=s?o[tn.PATH]:i[0],d=s?o[tn.PATTERN]:o[u];if(!ve(d))throw new Error(fi(u));const f={keyId:Xt(u),pattern:d};return n&&(f.searcher=en(d,t)),f}let c={children:[],operator:i[0]};return i.forEach(u=>{const d=o[u];Ee(d)&&d.forEach(f=>{c.children.push(r(f))})}),c};return nn(e)||(e=Un(e)),r(e)}function Bi(e,{ignoreFieldNorm:t=O.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:i,score:s})=>{const c=o?o.weight:null;r*=Math.pow(s===0&&c?Number.EPSILON:s,(c||1)*(t?1:i))}),n.score=r})}function Vi(e,t){const n=e.matches;t.matches=[],ue(n)&&n.forEach(r=>{if(!ue(r.indices)||!r.indices.length)return;const{indices:o,value:i}=r;let s={indices:o,value:i};r.key&&(s.key=r.key.src),r.idx>-1&&(s.refIndex=r.idx),t.matches.push(s)})}function Wi(e,t){t.score=e.score}function Ui(e,t,{includeMatches:n=O.includeMatches,includeScore:r=O.includeScore}={}){const o=[];return n&&o.push(Vi),r&&o.push(Wi),e.map(i=>{const{idx:s}=i,c={item:t[s],refIndex:s};return o.length&&o.forEach(u=>{u(i,c)}),c})}class Ue{constructor(t,n={},r){this.options={...O,...n},this.options.useExtendedSearch,this._keyStore=new gi(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof yn))throw new Error(di);this._myIndex=n||zr(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){ue(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,o=this._docs.length;r<o;r+=1){const i=this._docs[r];t(i,r)&&(this.removeAt(r),r-=1,o-=1,n.push(i))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:o,shouldSort:i,sortFn:s,ignoreFieldNorm:c}=this.options;let u=ve(t)?ve(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Bi(u,{ignoreFieldNorm:c}),i&&u.sort(s),Ar(n)&&n>-1&&(u=u.slice(0,n)),Ui(u,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=en(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:i,i:s,n:c})=>{if(!ue(i))return;const{isMatch:u,score:d,indices:f}=n.searchIn(i);u&&o.push({item:i,idx:s,matches:[{score:d,value:i,norm:c,indices:f}]})}),o}_searchLogical(t){const n=Hr(t,this.options),r=(c,u,d)=>{if(!c.children){const{keyId:h,searcher:p}=c,x=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(u,h),searcher:p});return x&&x.length?[{idx:d,item:u,matches:x}]:[]}const f=[];for(let h=0,p=c.children.length;h<p;h+=1){const x=c.children[h],g=r(x,u,d);if(g.length)f.push(...g);else if(c.operator===St.AND)return[]}return f},o=this._myIndex.records,i={},s=[];return o.forEach(({$:c,i:u})=>{if(ue(c)){let d=r(n,c,u);d.length&&(i[u]||(i[u]={idx:u,item:c,matches:[]},s.push(i[u])),d.forEach(({matches:f})=>{i[u].matches.push(...f)}))}}),s}_searchObjectList(t){const n=en(t,this.options),{keys:r,records:o}=this._myIndex,i=[];return o.forEach(({$:s,i:c})=>{if(!ue(s))return;let u=[];r.forEach((d,f)=>{u.push(...this._findMatches({key:d,value:s[f],searcher:n}))}),u.length&&i.push({idx:c,item:s,matches:u})}),i}_findMatches({key:t,value:n,searcher:r}){if(!ue(n))return[];let o=[];if(Ee(n))n.forEach(({v:i,i:s,n:c})=>{if(!ue(i))return;const{isMatch:u,score:d,indices:f}=r.searchIn(i);u&&o.push({score:d,key:t,value:i,idx:s,norm:c,indices:f})});else{const{v:i,n:s}=n,{isMatch:c,score:u,indices:d}=r.searchIn(i);c&&o.push({score:u,key:t,value:i,norm:s,indices:d})}return o}}Ue.version="6.6.2";Ue.createIndex=zr;Ue.parseIndex=Ei;Ue.config=O;Ue.parseQuery=Hr;Fi(Li);const Gn={shouldSort:!0,threshold:.6,location:0,distance:100,minMatchCharLength:1,keys:["name"]};function Gi(e,t,n){let r;return function(){const o=this,i=arguments,s=function(){r=null,e.apply(o,i)};r&&clearTimeout(r),r=setTimeout(s,t)}}const Ki="data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='7.89222'%20cy='8.34901'%20r='5.59901'%20stroke='%2385858A'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.6428%2013.1855L14.4568%2014.9995'%20stroke='%2385858A'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",rn=({showIcon:e})=>e?l.jsx("img",{id:"icon",className:"StyledSearchIcon search-icon",width:20,height:20,src:Ki,alt:"icon"}):null;function Yi({results:e=[],onClick:t,setSearchString:n,showIcon:r,maxResults:o,resultStringKeyName:i="name",highlightedItem:s,setHighlightedItem:c,formatResult:u,showNoResultsFlag:d=!0,showNoResultsText:f="No results"}){const h=u||(g=>g[i]),p=g=>{t(g),n(g[i])},x=({event:g,result:a})=>{g.button===0&&(g.preventDefault(),p(a))};return d?l.jsx(Kn,{children:l.jsxs("li",{"data-test":"no-results-message",children:[l.jsx(rn,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:f})]})}):(e==null?void 0:e.length)<=0&&!d?null:l.jsx(Kn,{children:e.slice(0,o).map((g,a)=>l.jsxs("li",{className:s===a?"selectedSearch":"",id:s===a?"selectedSearch":"",onMouseEnter:()=>c({index:a}),"data-test":"result",onMouseDown:y=>x({event:y,result:g}),onClick:()=>p(g),children:[l.jsx(rn,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:h(g)})]},`rsa-result-${g.entityId}`))})}const Kn=({children:e})=>l.jsxs("div",{className:"StyledResults",children:[l.jsx("div",{className:"line"}),l.jsx("ul",{id:"autocomplete-results",children:e})]}),qi=({showClear:e,setSearchString:t,searchString:n,setFocus:r,onClear:o})=>{const i=()=>{t({target:{value:""}}),r(),o()};return!e||!n||(n==null?void 0:n.length)<=0?null:l.jsx("div",{className:"StyledClearIcon clear-icon",onClick:i,children:l.jsx("svg",{width:20,height:20,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:l.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.58 12 5 17.58 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})};function Zi({searchString:e,setSearchString:t,setHighlightedItem:n,eraseResults:r,autoFocus:o,onFocus:i,onClear:s,placeholder:c,showIcon:u=!0,showClear:d=!0,maxLength:f,baseUrl:h}){const p=C.useRef(null);let x=!0;const g=()=>{x=!1,p!=null&&p.current&&p.current.focus(),x=!0},a=v=>{x&&i(v)},y=f?{maxLength:f}:{};return C.useEffect(()=>{document.querySelector("global-topbar");const v=w=>{const _=document.getElementById("AddTagButton"),T=document.getElementsByClassName("btn-edit");["a","e","t"].includes(w.key.toLowerCase())&&((T==null?void 0:T.length)>0&&T[0].addEventListener("click",S=>{const E=document.querySelector("global-topbar"),M=E!=null?E.shadowRoot:document,j=M.getElementById("GlobalSearchInput");M.activeElement===j?(S.preventDefault(),S.stopPropagation(),console.log("Shadow DOM keydown:",S.key)):S.click()},!0),_!=null&&_.addEventListener("click",S=>{const E=document.querySelector("global-topbar"),M=E!=null?E.shadowRoot:document,j=M.getElementById("GlobalSearchInput");M.activeElement===j?(S.preventDefault(),S.stopPropagation(),console.log("Shadow DOM keydown:",S.key)):S.click()},!0))};return document.addEventListener("keydown",v,!0),()=>document.removeEventListener("keydown",v,!0)},[]),l.jsxs("div",{className:"StyledSearchInput",children:[l.jsx(rn,{showIcon:u}),l.jsx("input",{type:"text",name:"topbar-search",className:"topbar-search-input",id:"GlobalSearchInput",ref:p,spellCheck:!1,autoComplete:"off",value:e.replace(/(<([^>]+)>)/gi,""),onChange:t,onFocus:a,placeholder:c,autoFocus:o,onBlur:()=>r(),onKeyDown:v=>{if(v.key==="Enter"){const w=document.querySelector("global-topbar");if((w!=null?w.shadowRoot:document).getElementById("selectedSearch")===null){console.log("enter",v);const T=v.currentTarget.value;window.location.href=`${h}/stella/page/Search/Index?Term=${T}`;return}}n({event:v})},"data-test":"search-input",...y}),l.jsx(qi,{showClear:d,setSearchString:t,searchString:e,onClear:s,setFocus:g})]})}const Xi=200,Ji=10;function Qi({items:e=[],fuseOptions:t=Gn,inputDebounce:n=Xi,onSearch:r=()=>{},onHover:o=()=>{},onSelect:i=()=>{},onFocus:s=()=>{},onClear:c=()=>{},searchOnFocus:u=!0,showIcon:d=!0,showClear:f=!0,maxResults:h=Ji,placeholder:p="",autoFocus:x=!1,styling:g={},resultStringKeyName:a="name",inputSearchString:y="",formatResult:v,showNoResults:w=!0,showNoResultsText:_="No results",showItemsOnFocus:T=!1,maxLength:b=0,baseUrl:S=""}){({...g});const E={...Gn,...t},M=new Ue(e,E);M.setCollection(e);const[j,L]=C.useState(y),[I,P]=C.useState([]),[R,K]=C.useState(-1),[re,ce]=C.useState(!1),[_e,$]=C.useState(!1),[z,W]=C.useState(!1),[le,oe]=C.useState(!1);C.useEffect(()=>{L(y);const F=setTimeout(()=>P(lt(y)),0);return()=>clearTimeout(F)},[y]),C.useEffect(()=>{(j==null?void 0:j.length)>=3?e&&(e==null?void 0:e.length)>0&&P(e):P([])},[e]),C.useEffect(()=>{const F=()=>{Ae(),oe(!1)};return document.addEventListener("click",F),()=>document.removeEventListener("click",F)},[]),C.useEffect(()=>{(()=>{w&&j.length>0&&!_e&&I.length===0&&!re?W(!0):W(!1),T&&I.length===0&&j.length===0&&le&&P(e.slice(0,h))})()},[_e,w,re,j,I,T,le]);const te=F=>{u&&s(F),oe(!0)},Q=F=>{let k=[];(F==null?void 0:F.length)>0&&(k=lt(F)),P(k),r(F,k),$(!1)},ye=C.useCallback(n>0?Gi(F=>Q(F),n):F=>Q(F),[e]),qe=F=>{Ae(),i(F),L(F[a]),K(0)},lt=F=>M.search(F,{limit:h}).map(k=>({...k.item})).slice(0,h),Bt=({target:F})=>{const k=F.value;L(k),ye(k),$(!0),re&&ce(!1)},Ae=()=>{P([]),ce(!0)},ut=({index:F,event:k})=>{let Te=-1;const Pe=$e=>{K($e),I!=null&&I[$e]&&o(I[$e])};if(F!==void 0)K(F),I!=null&&I[F]&&o(I[F]);else if(k)switch(k.key){case"Enter":I.length>0&&I[R]?(k.preventDefault(),i(I[R])):r(j,I),K(-1),Ae();break;case"ArrowUp":k.preventDefault(),Te=R>-1?R-1:I.length-1,Pe(Te);break;case"ArrowDown":k.preventDefault(),Te=R<I.length-1?R+1:-1,Pe(Te);break}};return l.jsx(l.Fragment,{children:l.jsxs("div",{className:"StyledReactSearchAutocomplete",children:[l.jsx("div",{className:"wrapper",children:l.jsx(Zi,{searchString:j,setSearchString:Bt,eraseResults:Ae,autoFocus:x,onFocus:te,onClear:c,placeholder:p,showIcon:!0,showClear:f,setHighlightedItem:ut,maxLength:b,baseUrl:S})}),l.jsx(Yi,{results:I,onClick:qe,setSearchString:L,showIcon:d,maxResults:h,resultStringKeyName:a,formatResult:v,highlightedItem:R,setHighlightedItem:ut,showNoResultsFlag:z,showNoResultsText:_})]})})}function es({classNames:e="",...t}){const{logo:n,user:r,baseUrl:o,notiPath:i,style:s,customColors:c,notiprops:u,isBrand:d,logout:f,disabledLogoClick:h=!1}=t,p={...s,color:(c==null?void 0:c.headerTextColor)||"white",backgroundColor:(c==null?void 0:c.headerBgColor)||"black"},[x,g]=C.useState(!1),{Term:a}=gn.useParams();console.log("term",a);const[y,v]=C.useState([]),[w,_]=C.useState([]),T=oi({baseUrl:o});console.log("searchPermission",T.hasPermission),C.useEffect(()=>{y.length>=3?b(y):_([])},[y]);const b=async I=>{await fetch(`${o}/stella/page/Search/Suggestions?term=${I}`).then(P=>P.json()).then(P=>{_(P),console.log(P)}).catch(P=>{console.error(P)})},S=I=>{console.log(I)},E=(I,P)=>{v(I),console.log(I,P)},M=I=>{const P=I.entityType,R=I.entityId;switch(P){case"Zone":document.location.href=o+"/stella/page/SiteManagement/Zone/Details/"+R;return;case"Location":document.location.href=o+"/stella/page/SiteManagement/Location/Details/"+R;return;case"Company":document.location.href=o+"/stella/page/SiteManagement/Company/Details/"+R;return;default:console.log(`Unsure how to navigate to ${P} ${R}`);return}},j=()=>{const I=document.querySelector("global-topbar"),R=(I!=null?I.shadowRoot:document).getElementById("GlobalSearchInput");R&&R.value.length>=3&&(setTimeout(()=>{},1e3),b(R.value))},L=I=>I.entityType==="Location"?l.jsxs(l.Fragment,{children:[l.jsx("div",{dangerouslySetInnerHTML:{__html:I.name}})," ",l.jsxs("div",{style:{fontSize:"0.6em"},children:["Status: ",I.entityStatus]})]}):l.jsx(l.Fragment,{children:l.jsx("div",{dangerouslySetInnerHTML:{__html:I.name}})});return l.jsxs(m.StyleWrapper,{styles:[Zo,Jo,Mr,Qo,ri,Xo],style:{zIndex:1202},id:"topbar-wrapper",children:[l.jsx("nav",{className:`navbar-wrapper ${e}`,style:c?p:s,children:l.jsxs("div",{className:"navbar-container",children:[h?l.jsx("div",{className:"logo-container",children:l.jsx("img",{src:n||"#",alt:" ",style:{maxHeight:"40px"}})}):l.jsx("a",{href:"/home",className:"logo-container",children:l.jsx("img",{src:n||"#",alt:" ",style:{maxHeight:"40px"}})}),l.jsxs("div",{className:"right-side-container",children:[d&&T.hasPermission?l.jsx("span",{children:l.jsx("label",{className:"topbar-search-label",htmlFor:"topbar-search",children:l.jsx("div",{id:"autocomplete",style:{width:223},children:l.jsx(Qi,{items:w,onSearch:E,onHover:S,onSelect:M,onFocus:j,autoFocus:!0,inputDebounce:300,placeholder:"Search",formatResult:L,searchOnFocus:!0,showIcon:!1,showNoResults:!1})})})}):"",t.customElement,l.jsx("span",{children:l.jsxs(m.CustomOpenListProvider,{children:[l.jsx(Ao,{baseUrl:u.baseUrl,path:u.path,apiKey:u.apiKey,authDomain:u.authDomain,projectId:u.projectId,storageBucket:u.storageBucket,messagingSenderId:u.messagingSenderId,appId:u.appId,measurementId:u.measurementId,vapidKey:u.vapidKey}),l.jsx(qo,{iconColor:c==null?void 0:c.headerTextColor,baseUrl:o,notiPath:i,brandColors:c})]})}),l.jsx(Br,{}),l.jsxs("div",{className:"userContainer",children:[l.jsx(ts,{primaryColor:c==null?void 0:c.headerTextColor,avatarUrl:r==null?void 0:r.avatarUrl,userName:r==null?void 0:r.firstName,setShowConfirmModal:g}),l.jsx("p",{className:"userFullName",style:{color:c==null?void 0:c.headerTextColor,width:t.isFetching?"100px":"auto"},children:t.isFetching?l.jsx(Pr,{baseColor:"#ebebeb26",highlightColor:"#f5f5f57d",style:{lineHeight:"unset"}}):r?r.firstName+" "+r.lastName:"Unknown User"})]})]})]})}),l.jsx(m.LogoutConfirmModal,{isOpen:x,onClose:()=>g(!1),onConfirm:f})]})}function Br(){var u;const e=[{value:m.Language.en,element:l.jsx(ei,{})},{value:m.Language.de,element:l.jsx(ii,{})}],[t,n]=C.useState(!1),[r,o]=C.useState(new Array(e.length).fill(!1)),{language:i,setLanguage:s}=m.useCustomTranslation();C.useEffect(()=>{Or({childrenClass:"languageDropdown",action(){n(!1)}})},[]);const c=(u=e.find(d=>d.value==i))==null?void 0:u.element;return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:si}),l.jsx("div",{className:"languageDropdownContainer",style:{position:"relative"},children:l.jsx("div",{className:"languageDropdown",onClick:()=>{n(!t)},children:c})})]})}function ts({avatarUrl:e,userName:t}){const[n,r]=C.useState(!1),o=C.useRef(null);C.useRef(null);const[i,s]=C.useState(!1),[c,u]=C.useState(!1);return C.useEffect(()=>{Or({childrenClass:"userAvatar",action(){r(!1)}})},[]),l.jsx(l.Fragment,{children:l.jsx("div",{style:{position:"relative"},children:e?l.jsx("img",{onClick:()=>r(!n),ref:o,alt:"user avatar",className:"userAvatar",src:e}):l.jsx("div",{onClick:()=>r(!n),ref:o,className:"userAvatar",id:"userAvatarNull",children:(t==null?void 0:t.charAt(0))??""})})})}function ns(e){const{user:t,logout:n,isFetching:r}=m.useAuth();return l.jsx(es,{...e,isFetching:r,user:t,logout:n})}const rs=e=>l.jsx(m.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit"},...e}),os=e=>l.jsx(m.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit",width:"610px"},containerId:"toastifyNotification",...e}),is=({children:e})=>l.jsxs(N.Stack,{justifyContent:"center",alignItems:"center",sx:{backgroundColor:"#FAFAFA",minHeight:"450px"},children:[l.jsx(ss,{}),e]});function ss(){return l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"150",height:"150",fill:"none",viewBox:"0 0 150 150",children:[l.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"}),l.jsx("path",{fill:"#DDD",d:"M73.354 34.489l-2.13 13.355H57.378L73.354 34.49z"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.jsx("path",{fill:"#DDD",d:"M108.03 109.039l3.503 4.775H58.8l-3.503-4.775h52.733z"}),l.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"}),l.jsx("path",{fill:"#F7F9FC",d:"M118.776 41.663l-10.746 67.376H55.297l.59-3.704h48.895l10.154-63.672h3.84z"}),l.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"}),l.jsx("path",{fill:"#EEE",d:"M118.776 41.663l3.503 4.775-10.746 67.376-3.503-4.775 10.746-67.376z"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.jsx("path",{fill:"#DDD",d:"M104.782 105.335H51.517l-2.716-3.702h52.731l3.25 3.702z"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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 as=typeof m.commonjsGlobal=="object"&&m.commonjsGlobal&&m.commonjsGlobal.Object===Object&&m.commonjsGlobal,cs=typeof self=="object"&&self&&self.Object===Object&&self;as||cs||Function("return this")();function ls(e){const[t,n]=C.useState(!!e),r=C.useCallback(()=>{n(!0)},[]),o=C.useCallback(()=>{n(!1)},[]),i=C.useCallback(()=>{n(s=>!s)},[]);return{value:t,setValue:n,setTrue:r,setFalse:o,toggle:i}}function us(e){var t;return l.jsxs(N.Dialog,{...e.dialogProps,open:e.open,children:[!e.hideTitle&&l.jsxs(N.DialogTitle,{component:N.Stack,sx:{...e.titleProps,textAlign:"center"},children:[typeof e.title=="string"?l.jsx(N.Typography,{variant:"h4",children:e.title}):e.title,typeof e.subTitle=="string"?l.jsx(N.Typography,{color:"success.main",variant:"body1",...e.subTitleProps,children:e.subTitle}):e.subTitle]}),l.jsx(N.DialogContent,{sx:{...e.contentProps,overflowY:e.fixOverflow?"unset":void 0},children:e.desc}),!(e.hideClose&&e.hideConfirm)&&l.jsx(N.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:l.jsxs(l.Fragment,{children:[!e.hideClose&&l.jsx(N.Button,{color:"error",onClick:e.onClose,children:"Close"}),!e.hideConfirm&&l.jsx(N.Button,{color:"primary",onClick:e.onConfirm,children:"Submit"})]})})]})}function ds(e){const t=ls(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}}function fs({rootPath:e}){return l.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center"},children:[l.jsx("h1",{children:"404 - Not Found"}),l.jsx("p",{children:"Sorry, the page you are looking for does not exist."}),l.jsx(N.Box,{height:"16px"}),l.jsx(gn.Link,{to:e,children:l.jsx(N.Button,{variant:"contained",color:"primary",children:"Go to Home"})})]})}function hs(){const{colors:e}=m.useTheme();return l.jsx("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"calc(100vh - 144px)",alignItems:"center",justifyContent:"center",zIndex:100},children:l.jsx("h1",{style:{color:`${e==null?void 0:e.primary300}`,fontSize:"82px",fontWeight:700,textTransform:"uppercase",marginTop:0,marginBottom:0,textAlign:"center"},children:"Welcome to the Intelli-Verse"})})}const ps=()=>{const{t:e}=m.useTranslation();return l.jsx("div",{className:"unauth__container "+m.styles["page-container"],children:l.jsxs("div",{className:"unauth__main-content "+m.styles["page-main-content"],children:[l.jsx(ms,{}),l.jsxs("div",{className:"unauth__main-text",children:[l.jsx("h2",{className:"unauth__main-text__title "+m.styles["page-title"],children:e("components.unauthorizedPage.title")}),l.jsxs("p",{className:"unauth__main-text__desc "+m.styles["text-base"],children:[e("components.unauthorizedPage.description1")," ",l.jsx("br",{})," ",e("components.unauthorizedPage.description2")]})]})]})})},ms=()=>l.jsxs("svg",{width:"61",height:"60",viewBox:"0 0 61 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxs("g",{filter:"url(#filter0_d_10800_50471)",children:[l.jsx("rect",{x:"2.5",y:"1",width:"56",height:"56",rx:"28",fill:"white"}),l.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"})]}),l.jsx("defs",{children:l.jsxs("filter",{id:"filter0_d_10800_50471",x:"0.5",y:"0",width:"60",height:"60",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[l.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),l.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"}),l.jsx("feOffset",{dy:"1"}),l.jsx("feGaussianBlur",{stdDeviation:"1"}),l.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"}),l.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_10800_50471"}),l.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_10800_50471",result:"shape"})]})})]});function Ie(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 Vr(e){if(A.isValidElement(e)||!Ie(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Vr(e[n])}),t}function Se(e,t,n={clone:!0}){const r=n.clone?m._extends({},e):e;return Ie(e)&&Ie(t)&&Object.keys(t).forEach(o=>{A.isValidElement(t[o])?r[o]=t[o]:Ie(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ie(e[o])?r[o]=Se(e[o],t[o],n):n.clone?r[o]=Ie(t[o])?Vr(t[o]):t[o]:r[o]=t[o]}),r}const gs=Object.freeze(Object.defineProperty({__proto__:null,default:Se,isPlainObject:Ie},Symbol.toStringTag,{value:"Module"}));function Qe(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 ys=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"}));var on={exports:{}},U={};/**
33
33
  * @license React
34
34
  * react-is.production.js
35
35
  *
@@ -37,7 +37,7 @@
37
37
  *
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
- */var Hn;function ii(){if(Hn)return H;Hn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");function g(a){if(typeof a=="object"&&a!==null){var y=a.$$typeof;switch(y){case e:switch(a=a.type,a){case n:case o:case r:case u:case d:return a;default:switch(a=a&&a.$$typeof,a){case i:case c:case h:case f:return a;case s:return a;default:return y}}case t:return y}}}return H.ContextConsumer=s,H.ContextProvider=i,H.Element=e,H.ForwardRef=c,H.Fragment=n,H.Lazy=h,H.Memo=f,H.Portal=t,H.Profiler=o,H.StrictMode=r,H.Suspense=u,H.SuspenseList=d,H.isContextConsumer=function(a){return g(a)===s},H.isContextProvider=function(a){return g(a)===i},H.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===e},H.isForwardRef=function(a){return g(a)===c},H.isFragment=function(a){return g(a)===n},H.isLazy=function(a){return g(a)===h},H.isMemo=function(a){return g(a)===f},H.isPortal=function(a){return g(a)===t},H.isProfiler=function(a){return g(a)===o},H.isStrictMode=function(a){return g(a)===r},H.isSuspense=function(a){return g(a)===u},H.isSuspenseList=function(a){return g(a)===d},H.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===n||a===o||a===r||a===u||a===d||a===p||typeof a=="object"&&a!==null&&(a.$$typeof===h||a.$$typeof===f||a.$$typeof===i||a.$$typeof===s||a.$$typeof===c||a.$$typeof===b||a.getModuleId!==void 0)},H.typeOf=g,H}var V={};/**
40
+ */var Yn;function xs(){if(Yn)return U;Yn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),x=Symbol.for("react.client.reference");function g(a){if(typeof a=="object"&&a!==null){var y=a.$$typeof;switch(y){case e:switch(a=a.type,a){case n:case o:case r:case u:case d:return a;default:switch(a=a&&a.$$typeof,a){case s:case c:case h:case f:return a;case i:return a;default:return y}}case t:return y}}}return U.ContextConsumer=i,U.ContextProvider=s,U.Element=e,U.ForwardRef=c,U.Fragment=n,U.Lazy=h,U.Memo=f,U.Portal=t,U.Profiler=o,U.StrictMode=r,U.Suspense=u,U.SuspenseList=d,U.isContextConsumer=function(a){return g(a)===i},U.isContextProvider=function(a){return g(a)===s},U.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===e},U.isForwardRef=function(a){return g(a)===c},U.isFragment=function(a){return g(a)===n},U.isLazy=function(a){return g(a)===h},U.isMemo=function(a){return g(a)===f},U.isPortal=function(a){return g(a)===t},U.isProfiler=function(a){return g(a)===o},U.isStrictMode=function(a){return g(a)===r},U.isSuspense=function(a){return g(a)===u},U.isSuspenseList=function(a){return g(a)===d},U.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===n||a===o||a===r||a===u||a===d||a===p||typeof a=="object"&&a!==null&&(a.$$typeof===h||a.$$typeof===f||a.$$typeof===s||a.$$typeof===i||a.$$typeof===c||a.$$typeof===x||a.getModuleId!==void 0)},U.typeOf=g,U}var G={};/**
41
41
  * @license React
42
42
  * react-is.development.js
43
43
  *
@@ -45,37 +45,37 @@
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var Vn;function ai(){return Vn||(Vn=1,process.env.NODE_ENV!=="production"&&function(){function e(a){if(typeof a=="object"&&a!==null){var y=a.$$typeof;switch(y){case t:switch(a=a.type,a){case r:case s:case o:case d:case f:return a;default:switch(a=a&&a.$$typeof,a){case c:case u:case p:case h:return a;case i:return a;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g=Symbol.for("react.client.reference");V.ContextConsumer=i,V.ContextProvider=c,V.Element=t,V.ForwardRef=u,V.Fragment=r,V.Lazy=p,V.Memo=h,V.Portal=n,V.Profiler=s,V.StrictMode=o,V.Suspense=d,V.SuspenseList=f,V.isContextConsumer=function(a){return e(a)===i},V.isContextProvider=function(a){return e(a)===c},V.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===t},V.isForwardRef=function(a){return e(a)===u},V.isFragment=function(a){return e(a)===r},V.isLazy=function(a){return e(a)===p},V.isMemo=function(a){return e(a)===h},V.isPortal=function(a){return e(a)===n},V.isProfiler=function(a){return e(a)===s},V.isStrictMode=function(a){return e(a)===o},V.isSuspense=function(a){return e(a)===d},V.isSuspenseList=function(a){return e(a)===f},V.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===r||a===s||a===o||a===d||a===f||a===b||typeof a=="object"&&a!==null&&(a.$$typeof===p||a.$$typeof===h||a.$$typeof===c||a.$$typeof===i||a.$$typeof===u||a.$$typeof===g||a.getModuleId!==void 0)},V.typeOf=e}()),V}process.env.NODE_ENV==="production"?rn.exports=ii():rn.exports=ai();var Wn=rn.exports;const li=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Br(e){const t=`${e}`.match(li);return t&&t[1]||""}function Hr(e,t=""){return e.displayName||e.name||Br(e)||t}function Un(e,t,n){const r=Hr(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function ci(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Hr(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Wn.ForwardRef:return Un(e,e.render,"ForwardRef");case Wn.Memo:return Un(e,e.type,"memo");default:return}}}const ui=Object.freeze(Object.defineProperty({__proto__:null,default:ci,getFunctionName:Br},Symbol.toStringTag,{value:"Module"}));function we(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Je(7));return e.charAt(0).toUpperCase()+e.slice(1)}const di=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"}));function fi(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function hi(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function pi(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,s,i)=>{const c=o||"<<anonymous>>",u=i||r;return typeof n[r]<"u"?new Error(`The ${s} \`${u}\` of \`${c}\` is deprecated. ${t}`):null}}function mi(e,t){var n,r;return $.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Vr(e){return e&&e.ownerDocument||document}function gi(e){return Vr(e).defaultView||window}function yi(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?m._extends({},t.propTypes):null;return o=>(s,i,c,u,d,...f)=>{const h=d||i,p=n==null?void 0:n[h];if(p){const b=p(s,i,c,u,d,...f);if(b)return b}return typeof s[i]<"u"&&!s[o]?new Error(`The prop \`${h}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function Wr(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ur=typeof window<"u"?$.useLayoutEffect:$.useEffect;let Kn=0;function xi(e){const[t,n]=$.useState(e),r=e||t;return $.useEffect(()=>{t==null&&(Kn+=1,n(`mui-${Kn}`))},[t]),r}const Yn=$.useId;function bi(e){if(Yn!==void 0){const t=Yn();return e??t}return xi(e)}function vi(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const s=o||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function Si({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=$.useRef(e!==void 0),[s,i]=$.useState(t),c=o?e:s;if(process.env.NODE_ENV!=="production"){$.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
49
- `))},[r,n,e]);const{current:d}=$.useRef(t);$.useEffect(()=>{!o&&!Object.is(d,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
50
- `))},[JSON.stringify(t)])}const u=$.useCallback(d=>{o||i(d)},[]);return[c,u]}function wi(e){const t=$.useRef(e);return Ur(()=>{t.current=e}),$.useRef((...n)=>(0,t.current)(...n)).current}function _i(...e){return $.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Wr(n,t)})},e)}class xn{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new xn}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let Tt=!0,on=!1;const Ei=new xn,Ci={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ti(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Ci[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ki(e){e.metaKey||e.altKey||e.ctrlKey||(Tt=!0)}function Wt(){Tt=!1}function Ii(){this.visibilityState==="hidden"&&on&&(Tt=!0)}function Mi(e){e.addEventListener("keydown",ki,!0),e.addEventListener("mousedown",Wt,!0),e.addEventListener("pointerdown",Wt,!0),e.addEventListener("touchstart",Wt,!0),e.addEventListener("visibilitychange",Ii,!0)}function ji(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Tt||Ti(t)}function Oi(){const e=$.useCallback(o=>{o!=null&&Mi(o.ownerDocument)},[]),t=$.useRef(!1);function n(){return t.current?(on=!0,Ei.start(100,()=>{on=!1}),t.current=!1,!0):!1}function r(o){return ji(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function sn(e,t){const n=m._extends({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=m._extends({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=m._extends({},s),Object.keys(o).forEach(i=>{n[r][i]=sn(o[i],s[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Pi(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((s,i)=>{if(i){const c=t(i);c!==""&&s.push(c),n&&n[i]&&s.push(n[i])}return s},[]).join(" ")}),r}const qn=e=>e,$i=()=>{let e=qn;return{configure(t){e=t},generate(t){return e(t)},reset(){e=qn}}},Kr=$i(),Ai={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 bn(e,t,n="Mui"){const r=Ai[t];return r?`${n}-${r}`:`${Kr.generate(e)}-${t}`}function Ni(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=bn(e,o,n)}),r}function Ri(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const zi=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),Fi=$.createContext(void 0);process.env.NODE_ENV!=="production"&&(m.PropTypes.node,m.PropTypes.object);function Li(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?sn(o.defaultProps,r):!o.styleOverrides&&!o.variants?sn(o,r):r}function Di({props:e,name:t}){const n=$.useContext(Fi);return Li({props:e,name:t,theme:{components:n}})}process.env.NODE_ENV!=="production"&&(m.PropTypes.node,m.PropTypes.object.isRequired);function Bi(e){return Di(e)}var rt={},Yr={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})(Yr);var vn=Yr.exports;const Hi=m.getAugmentedNamespace(m._extends$1),Vi=m.getAugmentedNamespace(m.objectWithoutPropertiesLoose);function Wi(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 Ui(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 Ki=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0: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(Ui(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Wi(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Q="-ms-",St="-moz-",F="-webkit-",qr="comm",Sn="rule",wn="decl",Yi="@import",Gr="@keyframes",qi="@layer",Gi=Math.abs,kt=String.fromCharCode,Zi=Object.assign;function Xi(e,t){return J(e,0)^45?(((t<<2^J(e,0))<<2^J(e,1))<<2^J(e,2))<<2^J(e,3):0}function Zr(e){return e.trim()}function Ji(e,t){return(e=t.exec(e))?e[0]:e}function L(e,t,n){return e.replace(t,n)}function an(e,t){return e.indexOf(t)}function J(e,t){return e.charCodeAt(t)|0}function Qe(e,t,n){return e.slice(t,n)}function de(e){return e.length}function _n(e){return e.length}function dt(e,t){return t.push(e),e}function Qi(e,t){return e.map(t).join("")}var It=1,Ve=1,Xr=0,te=0,Z=0,Ue="";function Mt(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:It,column:Ve,length:i,return:""}}function Ge(e,t){return Zi(Mt("",null,null,"",null,null,0),e,{length:-e.length},t)}function ea(){return Z}function ta(){return Z=te>0?J(Ue,--te):0,Ve--,Z===10&&(Ve=1,It--),Z}function oe(){return Z=te<Xr?J(Ue,te++):0,Ve++,Z===10&&(Ve=1,It++),Z}function me(){return J(Ue,te)}function ht(){return te}function ot(e,t){return Qe(Ue,e,t)}function et(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 Jr(e){return It=Ve=1,Xr=de(Ue=e),te=0,[]}function Qr(e){return Ue="",e}function pt(e){return Zr(ot(te-1,ln(e===91?e+2:e===40?e+1:e)))}function na(e){for(;(Z=me())&&Z<33;)oe();return et(e)>2||et(Z)>3?"":" "}function ra(e,t){for(;--t&&oe()&&!(Z<48||Z>102||Z>57&&Z<65||Z>70&&Z<97););return ot(e,ht()+(t<6&&me()==32&&oe()==32))}function ln(e){for(;oe();)switch(Z){case e:return te;case 34:case 39:e!==34&&e!==39&&ln(Z);break;case 40:e===41&&ln(e);break;case 92:oe();break}return te}function oa(e,t){for(;oe()&&e+Z!==57;)if(e+Z===84&&me()===47)break;return"/*"+ot(t,te-1)+"*"+kt(e===47?e:oe())}function sa(e){for(;!et(me());)oe();return ot(e,te)}function ia(e){return Qr(mt("",null,null,null,[""],e=Jr(e),0,[0],e))}function mt(e,t,n,r,o,s,i,c,u){for(var d=0,f=0,h=i,p=0,b=0,g=0,a=1,y=1,S=1,E=0,_="",C=o,v=s,x=r,w=_;y;)switch(g=E,E=oe()){case 40:if(g!=108&&J(w,h-1)==58){an(w+=L(pt(E),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:w+=pt(E);break;case 9:case 10:case 13:case 32:w+=na(g);break;case 92:w+=ra(ht()-1,7);continue;case 47:switch(me()){case 42:case 47:dt(aa(oa(oe(),ht()),t,n),u);break;default:w+="/"}break;case 123*a:c[d++]=de(w)*S;case 125*a:case 59:case 0:switch(E){case 0:case 125:y=0;case 59+f:S==-1&&(w=L(w,/\f/g,"")),b>0&&de(w)-h&&dt(b>32?Zn(w+";",r,n,h-1):Zn(L(w," ","")+";",r,n,h-2),u);break;case 59:w+=";";default:if(dt(x=Gn(w,t,n,d,f,o,c,_,C=[],v=[],h),s),E===123)if(f===0)mt(w,t,x,x,C,s,h,c,v);else switch(p===99&&J(w,3)===110?100:p){case 100:case 108:case 109:case 115:mt(e,x,x,r&&dt(Gn(e,x,x,0,0,o,c,_,o,C=[],h),v),o,v,h,c,r?C:v);break;default:mt(w,x,x,x,[""],v,0,c,v)}}d=f=b=0,a=S=1,_=w="",h=i;break;case 58:h=1+de(w),b=g;default:if(a<1){if(E==123)--a;else if(E==125&&a++==0&&ta()==125)continue}switch(w+=kt(E),E*a){case 38:S=f>0?1:(w+="\f",-1);break;case 44:c[d++]=(de(w)-1)*S,S=1;break;case 64:me()===45&&(w+=pt(oe())),p=me(),f=h=de(_=w+=sa(ht())),E++;break;case 45:g===45&&de(w)==2&&(a=0)}}return s}function Gn(e,t,n,r,o,s,i,c,u,d,f){for(var h=o-1,p=o===0?s:[""],b=_n(p),g=0,a=0,y=0;g<r;++g)for(var S=0,E=Qe(e,h+1,h=Gi(a=i[g])),_=e;S<b;++S)(_=Zr(a>0?p[S]+" "+E:L(E,/&\f/g,p[S])))&&(u[y++]=_);return Mt(e,t,n,o===0?Sn:c,u,d,f)}function aa(e,t,n){return Mt(e,t,n,qr,kt(ea()),Qe(e,2,-2),0)}function Zn(e,t,n,r){return Mt(e,t,n,wn,Qe(e,0,r),Qe(e,r+1,-1),r)}function Be(e,t){for(var n="",r=_n(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function la(e,t,n,r){switch(e.type){case qi:if(e.children.length)break;case Yi:case wn:return e.return=e.return||e.value;case qr:return"";case Gr:return e.return=e.value+"{"+Be(e.children,r)+"}";case Sn:e.value=e.props.join(",")}return de(n=Be(e.children,r))?e.return=e.value+"{"+n+"}":""}function ca(e){var t=_n(e);return function(n,r,o,s){for(var i="",c=0;c<t;c++)i+=e[c](n,r,o,s)||"";return i}}function ua(e){return function(t){t.root||(t=t.return)&&e(t)}}function eo(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var da=function(t,n,r){for(var o=0,s=0;o=s,s=me(),o===38&&s===12&&(n[r]=1),!et(s);)oe();return ot(t,te)},fa=function(t,n){var r=-1,o=44;do switch(et(o)){case 0:o===38&&me()===12&&(n[r]=1),t[r]+=da(te-1,n,r);break;case 2:t[r]+=pt(o);break;case 4:if(o===44){t[++r]=me()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=kt(o)}while(o=oe());return t},ha=function(t,n){return Qr(fa(Jr(t),n))},Xn=new WeakMap,pa=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=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&&!Xn.get(r))&&!o){Xn.set(t,!0);for(var s=[],i=ha(n,s),c=r.props,u=0,d=0;u<i.length;u++)for(var f=0;f<c.length;f++,d++)t.props[d]=s[u]?i[u].replace(/&\f/g,c[f]):c[f]+" "+i[u]}}},ma=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function to(e,t){switch(Xi(e,t)){case 5103:return F+"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 F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+St+e+Q+e+e;case 6828:case 4268:return F+e+Q+e+e;case 6165:return F+e+Q+"flex-"+e+e;case 5187:return F+e+L(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+Q+"flex-$1$2")+e;case 5443:return F+e+Q+"flex-item-"+L(e,/flex-|-self/,"")+e;case 4675:return F+e+Q+"flex-line-pack"+L(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+Q+L(e,"shrink","negative")+e;case 5292:return F+e+Q+L(e,"basis","preferred-size")+e;case 6060:return F+"box-"+L(e,"-grow","")+F+e+Q+L(e,"grow","positive")+e;case 4554:return F+L(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return L(L(L(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return L(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return L(L(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+Q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return L(e,/(.+)-inline(.+)/,F+"$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(de(e)-1-t>6)switch(J(e,t+1)){case 109:if(J(e,t+4)!==45)break;case 102:return L(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+St+(J(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~an(e,"stretch")?to(L(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(J(e,t+1)!==115)break;case 6444:switch(J(e,de(e)-3-(~an(e,"!important")&&10))){case 107:return L(e,":",":"+F)+e;case 101:return L(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(J(e,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+Q+"$2box$3")+e}break;case 5936:switch(J(e,t+11)){case 114:return F+e+Q+L(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+Q+L(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+Q+L(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+Q+e+e}return e}var ga=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case wn:t.return=to(t.value,t.length);break;case Gr:return Be([Ge(t,{value:L(t.value,"@","@"+F)})],o);case Sn:if(t.length)return Qi(t.props,function(s){switch(Ji(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Be([Ge(t,{props:[L(s,/:(read-\w+)/,":"+St+"$1")]})],o);case"::placeholder":return Be([Ge(t,{props:[L(s,/:(plac\w+)/,":"+F+"input-$1")]}),Ge(t,{props:[L(s,/:(plac\w+)/,":"+St+"$1")]}),Ge(t,{props:[L(s,/:(plac\w+)/,Q+"input-$1")]})],o)}return""})}},ya=[ga],no=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(a){var y=a.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(a),a.setAttribute("data-s",""))})}var o=t.stylisPlugins||ya,s={},i,c=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(a){for(var y=a.getAttribute("data-emotion").split(" "),S=1;S<y.length;S++)s[y[S]]=!0;c.push(a)});var u,d=[pa,ma];{var f,h=[la,ua(function(a){f.insert(a)})],p=ca(d.concat(o,h)),b=function(y){return Be(ia(y),p)};u=function(y,S,E,_){f=E,b(y?y+"{"+S.styles+"}":S.styles),_&&(g.inserted[S.name]=!0)}}var g={key:n,sheet:new Ki({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:u};return g.sheet.hydrate(c),g},cn={exports:{}},D={};/** @license React v16.13.1
48
+ */var qn;function bs(){return qn||(qn=1,process.env.NODE_ENV!=="production"&&function(){function e(a){if(typeof a=="object"&&a!==null){var y=a.$$typeof;switch(y){case t:switch(a=a.type,a){case r:case i:case o:case d:case f:return a;default:switch(a=a&&a.$$typeof,a){case c:case u:case p:case h:return a;case s:return a;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),g=Symbol.for("react.client.reference");G.ContextConsumer=s,G.ContextProvider=c,G.Element=t,G.ForwardRef=u,G.Fragment=r,G.Lazy=p,G.Memo=h,G.Portal=n,G.Profiler=i,G.StrictMode=o,G.Suspense=d,G.SuspenseList=f,G.isContextConsumer=function(a){return e(a)===s},G.isContextProvider=function(a){return e(a)===c},G.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===t},G.isForwardRef=function(a){return e(a)===u},G.isFragment=function(a){return e(a)===r},G.isLazy=function(a){return e(a)===p},G.isMemo=function(a){return e(a)===h},G.isPortal=function(a){return e(a)===n},G.isProfiler=function(a){return e(a)===i},G.isStrictMode=function(a){return e(a)===o},G.isSuspense=function(a){return e(a)===d},G.isSuspenseList=function(a){return e(a)===f},G.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===r||a===i||a===o||a===d||a===f||a===x||typeof a=="object"&&a!==null&&(a.$$typeof===p||a.$$typeof===h||a.$$typeof===c||a.$$typeof===s||a.$$typeof===u||a.$$typeof===g||a.getModuleId!==void 0)},G.typeOf=e}()),G}process.env.NODE_ENV==="production"?on.exports=xs():on.exports=bs();var Zn=on.exports;const vs=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Wr(e){const t=`${e}`.match(vs);return t&&t[1]||""}function Ur(e,t=""){return e.displayName||e.name||Wr(e)||t}function Xn(e,t,n){const r=Ur(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Ss(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ur(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Zn.ForwardRef:return Xn(e,e.render,"ForwardRef");case Zn.Memo:return Xn(e,e.type,"memo");default:return}}}const ws=Object.freeze(Object.defineProperty({__proto__:null,default:Ss,getFunctionName:Wr},Symbol.toStringTag,{value:"Module"}));function ke(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Qe(7));return e.charAt(0).toUpperCase()+e.slice(1)}const _s=Object.freeze(Object.defineProperty({__proto__:null,default:ke},Symbol.toStringTag,{value:"Module"}));function Es(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Cs(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Ts(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,i,s)=>{const c=o||"<<anonymous>>",u=s||r;return typeof n[r]<"u"?new Error(`The ${i} \`${u}\` of \`${c}\` is deprecated. ${t}`):null}}function Is(e,t){var n,r;return A.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Gr(e){return e&&e.ownerDocument||document}function ks(e){return Gr(e).defaultView||window}function Ms(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?m._extends({},t.propTypes):null;return o=>(i,s,c,u,d,...f)=>{const h=d||s,p=n==null?void 0:n[h];if(p){const x=p(i,s,c,u,d,...f);if(x)return x}return typeof i[s]<"u"&&!i[o]?new Error(`The prop \`${h}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function Kr(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Yr=typeof window<"u"?A.useLayoutEffect:A.useEffect;let Jn=0;function js(e){const[t,n]=A.useState(e),r=e||t;return A.useEffect(()=>{t==null&&(Jn+=1,n(`mui-${Jn}`))},[t]),r}const Qn=A.useId;function Ps(e){if(Qn!==void 0){const t=Qn();return e??t}return js(e)}function Os(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function As({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=A.useRef(e!==void 0),[i,s]=A.useState(t),c=o?e:i;if(process.env.NODE_ENV!=="production"){A.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
49
+ `))},[r,n,e]);const{current:d}=A.useRef(t);A.useEffect(()=>{!o&&!Object.is(d,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
50
+ `))},[JSON.stringify(t)])}const u=A.useCallback(d=>{o||s(d)},[]);return[c,u]}function $s(e){const t=A.useRef(e);return Yr(()=>{t.current=e}),A.useRef((...n)=>(0,t.current)(...n)).current}function Ns(...e){return A.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Kr(n,t)})},e)}class xn{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new xn}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let It=!0,sn=!1;const Rs=new xn,zs={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ls(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&zs[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Fs(e){e.metaKey||e.altKey||e.ctrlKey||(It=!0)}function Kt(){It=!1}function Ds(){this.visibilityState==="hidden"&&sn&&(It=!0)}function Hs(e){e.addEventListener("keydown",Fs,!0),e.addEventListener("mousedown",Kt,!0),e.addEventListener("pointerdown",Kt,!0),e.addEventListener("touchstart",Kt,!0),e.addEventListener("visibilitychange",Ds,!0)}function Bs(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return It||Ls(t)}function Vs(){const e=A.useCallback(o=>{o!=null&&Hs(o.ownerDocument)},[]),t=A.useRef(!1);function n(){return t.current?(sn=!0,Rs.start(100,()=>{sn=!1}),t.current=!1,!0):!1}function r(o){return Bs(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function an(e,t){const n=m._extends({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=m._extends({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=m._extends({},i),Object.keys(o).forEach(s=>{n[r][s]=an(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ws(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const c=t(s);c!==""&&i.push(c),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const er=e=>e,Us=()=>{let e=er;return{configure(t){e=t},generate(t){return e(t)},reset(){e=er}}},qr=Us(),Gs={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 bn(e,t,n="Mui"){const r=Gs[t];return r?`${n}-${r}`:`${qr.generate(e)}-${t}`}function Ks(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=bn(e,o,n)}),r}function Ys(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const qs=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Zs=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(m.PropTypes.node,m.PropTypes.object);function Xs(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?an(o.defaultProps,r):!o.styleOverrides&&!o.variants?an(o,r):r}function Js({props:e,name:t}){const n=A.useContext(Zs);return Xs({props:e,name:t,theme:{components:n}})}process.env.NODE_ENV!=="production"&&(m.PropTypes.node,m.PropTypes.object.isRequired);function Qs(e){return Js(e)}var ot={},Zr={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})(Zr);var vn=Zr.exports;const ea=m.getAugmentedNamespace(m._extends$1),ta=m.getAugmentedNamespace(m.objectWithoutPropertiesLoose);function na(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 ra(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 oa=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0: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(ra(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=na(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ie="-ms-",wt="-moz-",D="-webkit-",Xr="comm",Sn="rule",wn="decl",ia="@import",Jr="@keyframes",sa="@layer",aa=Math.abs,kt=String.fromCharCode,ca=Object.assign;function la(e,t){return ne(e,0)^45?(((t<<2^ne(e,0))<<2^ne(e,1))<<2^ne(e,2))<<2^ne(e,3):0}function Qr(e){return e.trim()}function ua(e,t){return(e=t.exec(e))?e[0]:e}function H(e,t,n){return e.replace(t,n)}function cn(e,t){return e.indexOf(t)}function ne(e,t){return e.charCodeAt(t)|0}function et(e,t,n){return e.slice(t,n)}function xe(e){return e.length}function _n(e){return e.length}function ft(e,t){return t.push(e),e}function da(e,t){return e.map(t).join("")}var Mt=1,We=1,eo=0,ae=0,ee=0,Ge="";function jt(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Mt,column:We,length:s,return:""}}function Ze(e,t){return ca(jt("",null,null,"",null,null,0),e,{length:-e.length},t)}function fa(){return ee}function ha(){return ee=ae>0?ne(Ge,--ae):0,We--,ee===10&&(We=1,Mt--),ee}function fe(){return ee=ae<eo?ne(Ge,ae++):0,We++,ee===10&&(We=1,Mt++),ee}function we(){return ne(Ge,ae)}function gt(){return ae}function it(e,t){return et(Ge,e,t)}function tt(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 to(e){return Mt=We=1,eo=xe(Ge=e),ae=0,[]}function no(e){return Ge="",e}function yt(e){return Qr(it(ae-1,ln(e===91?e+2:e===40?e+1:e)))}function pa(e){for(;(ee=we())&&ee<33;)fe();return tt(e)>2||tt(ee)>3?"":" "}function ma(e,t){for(;--t&&fe()&&!(ee<48||ee>102||ee>57&&ee<65||ee>70&&ee<97););return it(e,gt()+(t<6&&we()==32&&fe()==32))}function ln(e){for(;fe();)switch(ee){case e:return ae;case 34:case 39:e!==34&&e!==39&&ln(ee);break;case 40:e===41&&ln(e);break;case 92:fe();break}return ae}function ga(e,t){for(;fe()&&e+ee!==57;)if(e+ee===84&&we()===47)break;return"/*"+it(t,ae-1)+"*"+kt(e===47?e:fe())}function ya(e){for(;!tt(we());)fe();return it(e,ae)}function xa(e){return no(xt("",null,null,null,[""],e=to(e),0,[0],e))}function xt(e,t,n,r,o,i,s,c,u){for(var d=0,f=0,h=s,p=0,x=0,g=0,a=1,y=1,v=1,w=0,_="",T=o,b=i,S=r,E=_;y;)switch(g=w,w=fe()){case 40:if(g!=108&&ne(E,h-1)==58){cn(E+=H(yt(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=yt(w);break;case 9:case 10:case 13:case 32:E+=pa(g);break;case 92:E+=ma(gt()-1,7);continue;case 47:switch(we()){case 42:case 47:ft(ba(ga(fe(),gt()),t,n),u);break;default:E+="/"}break;case 123*a:c[d++]=xe(E)*v;case 125*a:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+f:v==-1&&(E=H(E,/\f/g,"")),x>0&&xe(E)-h&&ft(x>32?nr(E+";",r,n,h-1):nr(H(E," ","")+";",r,n,h-2),u);break;case 59:E+=";";default:if(ft(S=tr(E,t,n,d,f,o,c,_,T=[],b=[],h),i),w===123)if(f===0)xt(E,t,S,S,T,i,h,c,b);else switch(p===99&&ne(E,3)===110?100:p){case 100:case 108:case 109:case 115:xt(e,S,S,r&&ft(tr(e,S,S,0,0,o,c,_,o,T=[],h),b),o,b,h,c,r?T:b);break;default:xt(E,S,S,S,[""],b,0,c,b)}}d=f=x=0,a=v=1,_=E="",h=s;break;case 58:h=1+xe(E),x=g;default:if(a<1){if(w==123)--a;else if(w==125&&a++==0&&ha()==125)continue}switch(E+=kt(w),w*a){case 38:v=f>0?1:(E+="\f",-1);break;case 44:c[d++]=(xe(E)-1)*v,v=1;break;case 64:we()===45&&(E+=yt(fe())),p=we(),f=h=xe(_=E+=ya(gt())),w++;break;case 45:g===45&&xe(E)==2&&(a=0)}}return i}function tr(e,t,n,r,o,i,s,c,u,d,f){for(var h=o-1,p=o===0?i:[""],x=_n(p),g=0,a=0,y=0;g<r;++g)for(var v=0,w=et(e,h+1,h=aa(a=s[g])),_=e;v<x;++v)(_=Qr(a>0?p[v]+" "+w:H(w,/&\f/g,p[v])))&&(u[y++]=_);return jt(e,t,n,o===0?Sn:c,u,d,f)}function ba(e,t,n){return jt(e,t,n,Xr,kt(fa()),et(e,2,-2),0)}function nr(e,t,n,r){return jt(e,t,n,wn,et(e,0,r),et(e,r+1,-1),r)}function Be(e,t){for(var n="",r=_n(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function va(e,t,n,r){switch(e.type){case sa:if(e.children.length)break;case ia:case wn:return e.return=e.return||e.value;case Xr:return"";case Jr:return e.return=e.value+"{"+Be(e.children,r)+"}";case Sn:e.value=e.props.join(",")}return xe(n=Be(e.children,r))?e.return=e.value+"{"+n+"}":""}function Sa(e){var t=_n(e);return function(n,r,o,i){for(var s="",c=0;c<t;c++)s+=e[c](n,r,o,i)||"";return s}}function wa(e){return function(t){t.root||(t=t.return)&&e(t)}}function ro(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var _a=function(t,n,r){for(var o=0,i=0;o=i,i=we(),o===38&&i===12&&(n[r]=1),!tt(i);)fe();return it(t,ae)},Ea=function(t,n){var r=-1,o=44;do switch(tt(o)){case 0:o===38&&we()===12&&(n[r]=1),t[r]+=_a(ae-1,n,r);break;case 2:t[r]+=yt(o);break;case 4:if(o===44){t[++r]=we()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=kt(o)}while(o=fe());return t},Ca=function(t,n){return no(Ea(to(t),n))},rr=new WeakMap,Ta=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=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&&!rr.get(r))&&!o){rr.set(t,!0);for(var i=[],s=Ca(n,i),c=r.props,u=0,d=0;u<s.length;u++)for(var f=0;f<c.length;f++,d++)t.props[d]=i[u]?s[u].replace(/&\f/g,c[f]):c[f]+" "+s[u]}}},Ia=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function oo(e,t){switch(la(e,t)){case 5103:return D+"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 D+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return D+e+wt+e+ie+e+e;case 6828:case 4268:return D+e+ie+e+e;case 6165:return D+e+ie+"flex-"+e+e;case 5187:return D+e+H(e,/(\w+).+(:[^]+)/,D+"box-$1$2"+ie+"flex-$1$2")+e;case 5443:return D+e+ie+"flex-item-"+H(e,/flex-|-self/,"")+e;case 4675:return D+e+ie+"flex-line-pack"+H(e,/align-content|flex-|-self/,"")+e;case 5548:return D+e+ie+H(e,"shrink","negative")+e;case 5292:return D+e+ie+H(e,"basis","preferred-size")+e;case 6060:return D+"box-"+H(e,"-grow","")+D+e+ie+H(e,"grow","positive")+e;case 4554:return D+H(e,/([^-])(transform)/g,"$1"+D+"$2")+e;case 6187:return H(H(H(e,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),e,"")+e;case 5495:case 3959:return H(e,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return H(H(e,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+ie+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+e+e;case 4095:case 3583:case 4068:case 2532:return H(e,/(.+)-inline(.+)/,D+"$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(xe(e)-1-t>6)switch(ne(e,t+1)){case 109:if(ne(e,t+4)!==45)break;case 102:return H(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+wt+(ne(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cn(e,"stretch")?oo(H(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ne(e,t+1)!==115)break;case 6444:switch(ne(e,xe(e)-3-(~cn(e,"!important")&&10))){case 107:return H(e,":",":"+D)+e;case 101:return H(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(ne(e,14)===45?"inline-":"")+"box$3$1"+D+"$2$3$1"+ie+"$2box$3")+e}break;case 5936:switch(ne(e,t+11)){case 114:return D+e+ie+H(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+ie+H(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+ie+H(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return D+e+ie+e+e}return e}var ka=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case wn:t.return=oo(t.value,t.length);break;case Jr:return Be([Ze(t,{value:H(t.value,"@","@"+D)})],o);case Sn:if(t.length)return da(t.props,function(i){switch(ua(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Be([Ze(t,{props:[H(i,/:(read-\w+)/,":"+wt+"$1")]})],o);case"::placeholder":return Be([Ze(t,{props:[H(i,/:(plac\w+)/,":"+D+"input-$1")]}),Ze(t,{props:[H(i,/:(plac\w+)/,":"+wt+"$1")]}),Ze(t,{props:[H(i,/:(plac\w+)/,ie+"input-$1")]})],o)}return""})}},Ma=[ka],io=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(a){var y=a.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(a),a.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ma,i={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(a){for(var y=a.getAttribute("data-emotion").split(" "),v=1;v<y.length;v++)i[y[v]]=!0;c.push(a)});var u,d=[Ta,Ia];{var f,h=[va,wa(function(a){f.insert(a)})],p=Sa(d.concat(o,h)),x=function(y){return Be(xa(y),p)};u=function(y,v,w,_){f=w,x(y?y+"{"+v.styles+"}":v.styles),_&&(g.inserted[v.name]=!0)}}var g={key:n,sheet:new oa({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return g.sheet.hydrate(c),g},un={exports:{}},B={};/** @license React v16.13.1
51
51
  * react-is.production.min.js
52
52
  *
53
53
  * Copyright (c) Facebook, Inc. and its affiliates.
54
54
  *
55
55
  * This source code is licensed under the MIT license found in the
56
56
  * LICENSE file in the root directory of this source tree.
57
- */var Jn;function xa(){if(Jn)return D;Jn=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,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,a=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function _(v){if(typeof v=="object"&&v!==null){var x=v.$$typeof;switch(x){case t:switch(v=v.type,v){case u:case d:case r:case s:case o:case h:return v;default:switch(v=v&&v.$$typeof,v){case c:case f:case g:case b:case i:return v;default:return x}}case n:return x}}}function C(v){return _(v)===d}return D.AsyncMode=u,D.ConcurrentMode=d,D.ContextConsumer=c,D.ContextProvider=i,D.Element=t,D.ForwardRef=f,D.Fragment=r,D.Lazy=g,D.Memo=b,D.Portal=n,D.Profiler=s,D.StrictMode=o,D.Suspense=h,D.isAsyncMode=function(v){return C(v)||_(v)===u},D.isConcurrentMode=C,D.isContextConsumer=function(v){return _(v)===c},D.isContextProvider=function(v){return _(v)===i},D.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},D.isForwardRef=function(v){return _(v)===f},D.isFragment=function(v){return _(v)===r},D.isLazy=function(v){return _(v)===g},D.isMemo=function(v){return _(v)===b},D.isPortal=function(v){return _(v)===n},D.isProfiler=function(v){return _(v)===s},D.isStrictMode=function(v){return _(v)===o},D.isSuspense=function(v){return _(v)===h},D.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===d||v===s||v===o||v===h||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===g||v.$$typeof===b||v.$$typeof===i||v.$$typeof===c||v.$$typeof===f||v.$$typeof===y||v.$$typeof===S||v.$$typeof===E||v.$$typeof===a)},D.typeOf=_,D}var B={};/** @license React v16.13.1
57
+ */var or;function ja(){if(or)return B;or=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,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,a=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function _(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case t:switch(b=b.type,b){case u:case d:case r:case i:case o:case h:return b;default:switch(b=b&&b.$$typeof,b){case c:case f:case g:case x:case s:return b;default:return S}}case n:return S}}}function T(b){return _(b)===d}return B.AsyncMode=u,B.ConcurrentMode=d,B.ContextConsumer=c,B.ContextProvider=s,B.Element=t,B.ForwardRef=f,B.Fragment=r,B.Lazy=g,B.Memo=x,B.Portal=n,B.Profiler=i,B.StrictMode=o,B.Suspense=h,B.isAsyncMode=function(b){return T(b)||_(b)===u},B.isConcurrentMode=T,B.isContextConsumer=function(b){return _(b)===c},B.isContextProvider=function(b){return _(b)===s},B.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},B.isForwardRef=function(b){return _(b)===f},B.isFragment=function(b){return _(b)===r},B.isLazy=function(b){return _(b)===g},B.isMemo=function(b){return _(b)===x},B.isPortal=function(b){return _(b)===n},B.isProfiler=function(b){return _(b)===i},B.isStrictMode=function(b){return _(b)===o},B.isSuspense=function(b){return _(b)===h},B.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===d||b===i||b===o||b===h||b===p||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===x||b.$$typeof===s||b.$$typeof===c||b.$$typeof===f||b.$$typeof===y||b.$$typeof===v||b.$$typeof===w||b.$$typeof===a)},B.typeOf=_,B}var V={};/** @license React v16.13.1
58
58
  * react-is.development.js
59
59
  *
60
60
  * Copyright (c) Facebook, Inc. and its affiliates.
61
61
  *
62
62
  * This source code is licensed under the MIT license found in the
63
63
  * LICENSE file in the root directory of this source tree.
64
- */var Qn;function ba(){return Qn||(Qn=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,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,a=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function _(I){return typeof I=="string"||typeof I=="function"||I===r||I===d||I===s||I===o||I===h||I===p||typeof I=="object"&&I!==null&&(I.$$typeof===g||I.$$typeof===b||I.$$typeof===i||I.$$typeof===c||I.$$typeof===f||I.$$typeof===y||I.$$typeof===S||I.$$typeof===E||I.$$typeof===a)}function C(I){if(typeof I=="object"&&I!==null){var ve=I.$$typeof;switch(ve){case t:var Te=I.type;switch(Te){case u:case d:case r:case s:case o:case h:return Te;default:var $e=Te&&Te.$$typeof;switch($e){case c:case f:case g:case b:case i:return $e;default:return ve}}case n:return ve}}}var v=u,x=d,w=c,M=i,j=t,N=f,k=r,O=g,A=b,W=n,ee=s,ce=o,Ce=h,ge=!1;function qe(I){return ge||(ge=!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.")),be(I)||C(I)===u}function be(I){return C(I)===d}function Ie(I){return C(I)===c}function Me(I){return C(I)===i}function je(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function ue(I){return C(I)===f}function Oe(I){return C(I)===r}function Bt(I){return C(I)===g}function lt(I){return C(I)===b}function Ht(I){return C(I)===n}function Pe(I){return C(I)===s}function ct(I){return C(I)===o}function z(I){return C(I)===h}B.AsyncMode=v,B.ConcurrentMode=x,B.ContextConsumer=w,B.ContextProvider=M,B.Element=j,B.ForwardRef=N,B.Fragment=k,B.Lazy=O,B.Memo=A,B.Portal=W,B.Profiler=ee,B.StrictMode=ce,B.Suspense=Ce,B.isAsyncMode=qe,B.isConcurrentMode=be,B.isContextConsumer=Ie,B.isContextProvider=Me,B.isElement=je,B.isForwardRef=ue,B.isFragment=Oe,B.isLazy=Bt,B.isMemo=lt,B.isPortal=Ht,B.isProfiler=Pe,B.isStrictMode=ct,B.isSuspense=z,B.isValidElementType=_,B.typeOf=C}()),B}process.env.NODE_ENV==="production"?cn.exports=xa():cn.exports=ba();var va=cn.exports,ro=va,Sa={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},oo={};oo[ro.ForwardRef]=Sa;oo[ro.Memo]=wa;var _a=!0;function so(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var En=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||_a===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Cn=function(t,n,r){En(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Ea(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 Ca={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,scale: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},Ta=/[A-Z]|^ms/g,ka=/_EMO_([^_]+?)_([^]*?)_EMO_/g,io=function(t){return t.charCodeAt(1)===45},er=function(t){return t!=null&&typeof t!="boolean"},Ut=eo(function(e){return io(e)?e:e.replace(Ta,"-$&").toLowerCase()}),tr=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ka,function(r,o,s){return fe={name:o,styles:s,next:fe},o})}return Ca[t]!==1&&!io(t)&&typeof n=="number"&&n!==0?n+"px":n};function tt(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return fe={name:o.name,styles:o.styles,next:fe},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)fe={name:i.name,styles:i.styles,next:fe},i=i.next;var c=s.styles+";";return c}return Ia(e,t,n)}case"function":{if(e!==void 0){var u=fe,d=n(e);return fe=u,tt(e,t,d)}break}}var f=n;if(t==null)return f;var h=t[f];return h!==void 0?h:f}function Ia(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=tt(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var c=i;t!=null&&t[c]!==void 0?r+=s+"{"+t[c]+"}":er(c)&&(r+=Ut(s)+":"+tr(s,c)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var u=0;u<i.length;u++)er(i[u])&&(r+=Ut(s)+":"+tr(s,i[u])+";");else{var d=tt(e,t,i);switch(s){case"animation":case"animationName":{r+=Ut(s)+":"+d+";";break}default:r+=s+"{"+d+"}"}}}return r}var nr=/label:\s*([^\s;{]+)\s*(;|$)/g,fe;function jt(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";fe=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=tt(n,t,s);else{var i=s;o+=i[0]}for(var c=1;c<e.length;c++)if(o+=tt(n,t,e[c]),r){var u=s;o+=u[c]}nr.lastIndex=0;for(var d="",f;(f=nr.exec(o))!==null;)d+="-"+f[1];var h=Ea(o)+d;return{name:h,styles:o,next:fe}}var Ma=function(t){return t()},ao=$.useInsertionEffect?$.useInsertionEffect:!1,lo=ao||Ma,rr=ao||$.useLayoutEffect,co=$.createContext(typeof HTMLElement<"u"?no({key:"css"}):null),ja=co.Provider,Tn=function(t){return T.forwardRef(function(n,r){var o=T.useContext(co);return t(n,o,r)})},Ot=$.createContext({}),kn={}.hasOwnProperty,un="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Oa=function(t,n){var r={};for(var o in n)kn.call(n,o)&&(r[o]=n[o]);return r[un]=t,r},Pa=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return En(n,r,o),lo(function(){return Cn(n,r,o)}),null},$a=Tn(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[un],s=[r],i="";typeof e.className=="string"?i=so(t.registered,s,e.className):e.className!=null&&(i=e.className+" ");var c=jt(s,void 0,$.useContext(Ot));i+=t.key+"-"+c.name;var u={};for(var d in e)kn.call(e,d)&&d!=="css"&&d!==un&&(u[d]=e[d]);return u.className=i,n&&(u.ref=n),$.createElement($.Fragment,null,$.createElement(Pa,{cache:t,serialized:c,isStringTag:typeof o=="string"}),$.createElement(o,u))}),Aa=$a,or=function(t,n){var r=arguments;if(n==null||!kn.call(n,"css"))return $.createElement.apply(void 0,r);var o=r.length,s=new Array(o);s[0]=Aa,s[1]=Oa(t,n);for(var i=2;i<o;i++)s[i]=r[i];return $.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(or||(or={}));var Na=Tn(function(e,t){var n=e.styles,r=jt([n],void 0,$.useContext(Ot)),o=$.useRef();return rr(function(){var s=t.key+"-global",i=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,u=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),u!==null&&(c=!0,u.setAttribute("data-emotion",s),i.hydrate([u])),o.current=[i,c],function(){i.flush()}},[t]),rr(function(){var s=o.current,i=s[0],c=s[1];if(c){s[1]=!1;return}if(r.next!==void 0&&Cn(t,r.next,!0),i.tags.length){var u=i.tags[i.tags.length-1].nextElementSibling;i.before=u,i.flush()}t.insert("",r,i,!1)},[t,r.name]),null});function uo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return jt(t)}function Ra(){var e=uo.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var za=/^((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|fetchpriority|fetchPriority|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)-.*))$/,Fa=eo(function(e){return za.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),La=Fa,Da=function(t){return t!=="theme"},sr=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?La:Da},ir=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(i){return t.__emotion_forwardProp(i)&&s(i)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Ba=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return En(n,r,o),lo(function(){return Cn(n,r,o)}),null},Ha=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,i;n!==void 0&&(s=n.label,i=n.target);var c=ir(t,n,r),u=c||sr(o),d=!u("as");return function(){var f=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{var p=f[0];h.push(p[0]);for(var b=f.length,g=1;g<b;g++)h.push(f[g],p[g])}var a=Tn(function(y,S,E){var _=d&&y.as||o,C="",v=[],x=y;if(y.theme==null){x={};for(var w in y)x[w]=y[w];x.theme=$.useContext(Ot)}typeof y.className=="string"?C=so(S.registered,v,y.className):y.className!=null&&(C=y.className+" ");var M=jt(h.concat(v),S.registered,x);C+=S.key+"-"+M.name,i!==void 0&&(C+=" "+i);var j=d&&c===void 0?sr(_):u,N={};for(var k in y)d&&k==="as"||j(k)&&(N[k]=y[k]);return N.className=C,E&&(N.ref=E),$.createElement($.Fragment,null,$.createElement(Ba,{cache:S,serialized:M,isStringTag:typeof _=="string"}),$.createElement(_,N))});return a.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",a.defaultProps=t.defaultProps,a.__emotion_real=a,a.__emotion_base=o,a.__emotion_styles=h,a.__emotion_forwardProp=c,Object.defineProperty(a,"toString",{value:function(){return"."+i}}),a.withComponent=function(y,S){var E=e(y,m._extends({},n,S,{shouldForwardProp:ir(a,S,!0)}));return E.apply(void 0,h)},a}},Va=["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"],dn=Ha.bind(null);Va.forEach(function(e){dn[e]=dn(e)});let fn;typeof document=="object"&&(fn=no({key:"css",prepend:!0}));function fo(e){const{injectFirst:t,children:n}=e;return t&&fn?l.jsx(ja,{value:fn,children:n}):n}process.env.NODE_ENV!=="production"&&(fo.propTypes={children:m.PropTypes.node,injectFirst:m.PropTypes.bool});function Wa(e){return e==null||Object.keys(e).length===0}function ho(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(Wa(o)?n:o):t;return l.jsx(Na,{styles:r})}process.env.NODE_ENV!=="production"&&(ho.propTypes={defaultTheme:m.PropTypes.object,styles:m.PropTypes.oneOfType([m.PropTypes.array,m.PropTypes.string,m.PropTypes.object,m.PropTypes.func])});/**
64
+ */var ir;function Pa(){return ir||(ir=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,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,a=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function _(k){return typeof k=="string"||typeof k=="function"||k===r||k===d||k===i||k===o||k===h||k===p||typeof k=="object"&&k!==null&&(k.$$typeof===g||k.$$typeof===x||k.$$typeof===s||k.$$typeof===c||k.$$typeof===f||k.$$typeof===y||k.$$typeof===v||k.$$typeof===w||k.$$typeof===a)}function T(k){if(typeof k=="object"&&k!==null){var Te=k.$$typeof;switch(Te){case t:var Pe=k.type;switch(Pe){case u:case d:case r:case i:case o:case h:return Pe;default:var $e=Pe&&Pe.$$typeof;switch($e){case c:case f:case g:case x:case s:return $e;default:return Te}}case n:return Te}}}var b=u,S=d,E=c,M=s,j=t,L=f,I=r,P=g,R=x,K=n,re=i,ce=o,_e=h,$=!1;function z(k){return $||($=!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.")),W(k)||T(k)===u}function W(k){return T(k)===d}function le(k){return T(k)===c}function oe(k){return T(k)===s}function te(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Q(k){return T(k)===f}function ye(k){return T(k)===r}function qe(k){return T(k)===g}function lt(k){return T(k)===x}function Bt(k){return T(k)===n}function Ae(k){return T(k)===i}function ut(k){return T(k)===o}function F(k){return T(k)===h}V.AsyncMode=b,V.ConcurrentMode=S,V.ContextConsumer=E,V.ContextProvider=M,V.Element=j,V.ForwardRef=L,V.Fragment=I,V.Lazy=P,V.Memo=R,V.Portal=K,V.Profiler=re,V.StrictMode=ce,V.Suspense=_e,V.isAsyncMode=z,V.isConcurrentMode=W,V.isContextConsumer=le,V.isContextProvider=oe,V.isElement=te,V.isForwardRef=Q,V.isFragment=ye,V.isLazy=qe,V.isMemo=lt,V.isPortal=Bt,V.isProfiler=Ae,V.isStrictMode=ut,V.isSuspense=F,V.isValidElementType=_,V.typeOf=T}()),V}process.env.NODE_ENV==="production"?un.exports=ja():un.exports=Pa();var Oa=un.exports,so=Oa,Aa={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ao={};ao[so.ForwardRef]=Aa;ao[so.Memo]=$a;var Na=!0;function co(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var En=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Na===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Cn=function(t,n,r){En(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Ra(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 za={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,scale: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},La=/[A-Z]|^ms/g,Fa=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lo=function(t){return t.charCodeAt(1)===45},sr=function(t){return t!=null&&typeof t!="boolean"},Yt=ro(function(e){return lo(e)?e:e.replace(La,"-$&").toLowerCase()}),ar=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Fa,function(r,o,i){return be={name:o,styles:i,next:be},o})}return za[t]!==1&&!lo(t)&&typeof n=="number"&&n!==0?n+"px":n};function nt(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return be={name:o.name,styles:o.styles,next:be},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)be={name:s.name,styles:s.styles,next:be},s=s.next;var c=i.styles+";";return c}return Da(e,t,n)}case"function":{if(e!==void 0){var u=be,d=n(e);return be=u,nt(e,t,d)}break}}var f=n;if(t==null)return f;var h=t[f];return h!==void 0?h:f}function Da(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=nt(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var c=s;t!=null&&t[c]!==void 0?r+=i+"{"+t[c]+"}":sr(c)&&(r+=Yt(i)+":"+ar(i,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)sr(s[u])&&(r+=Yt(i)+":"+ar(i,s[u])+";");else{var d=nt(e,t,s);switch(i){case"animation":case"animationName":{r+=Yt(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var cr=/label:\s*([^\s;{]+)\s*(;|$)/g,be;function Pt(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";be=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=nt(n,t,i);else{var s=i;o+=s[0]}for(var c=1;c<e.length;c++)if(o+=nt(n,t,e[c]),r){var u=i;o+=u[c]}cr.lastIndex=0;for(var d="",f;(f=cr.exec(o))!==null;)d+="-"+f[1];var h=Ra(o)+d;return{name:h,styles:o,next:be}}var Ha=function(t){return t()},uo=A.useInsertionEffect?A.useInsertionEffect:!1,fo=uo||Ha,lr=uo||A.useLayoutEffect,ho=A.createContext(typeof HTMLElement<"u"?io({key:"css"}):null),Ba=ho.Provider,Tn=function(t){return C.forwardRef(function(n,r){var o=C.useContext(ho);return t(n,o,r)})},Ot=A.createContext({}),In={}.hasOwnProperty,dn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Va=function(t,n){var r={};for(var o in n)In.call(n,o)&&(r[o]=n[o]);return r[dn]=t,r},Wa=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return En(n,r,o),fo(function(){return Cn(n,r,o)}),null},Ua=Tn(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[dn],i=[r],s="";typeof e.className=="string"?s=co(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var c=Pt(i,void 0,A.useContext(Ot));s+=t.key+"-"+c.name;var u={};for(var d in e)In.call(e,d)&&d!=="css"&&d!==dn&&(u[d]=e[d]);return u.className=s,n&&(u.ref=n),A.createElement(A.Fragment,null,A.createElement(Wa,{cache:t,serialized:c,isStringTag:typeof o=="string"}),A.createElement(o,u))}),Ga=Ua,ur=function(t,n){var r=arguments;if(n==null||!In.call(n,"css"))return A.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=Ga,i[1]=Va(t,n);for(var s=2;s<o;s++)i[s]=r[s];return A.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ur||(ur={}));var Ka=Tn(function(e,t){var n=e.styles,r=Pt([n],void 0,A.useContext(Ot)),o=A.useRef();return lr(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,u=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),u!==null&&(c=!0,u.setAttribute("data-emotion",i),s.hydrate([u])),o.current=[s,c],function(){s.flush()}},[t]),lr(function(){var i=o.current,s=i[0],c=i[1];if(c){i[1]=!1;return}if(r.next!==void 0&&Cn(t,r.next,!0),s.tags.length){var u=s.tags[s.tags.length-1].nextElementSibling;s.before=u,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function po(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Pt(t)}function Ya(){var e=po.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var qa=/^((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|fetchpriority|fetchPriority|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)-.*))$/,Za=ro(function(e){return qa.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Xa=Za,Ja=function(t){return t!=="theme"},dr=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Xa:Ja},fr=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Qa=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return En(n,r,o),fo(function(){return Cn(n,r,o)}),null},ec=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var c=fr(t,n,r),u=c||dr(o),d=!u("as");return function(){var f=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{var p=f[0];h.push(p[0]);for(var x=f.length,g=1;g<x;g++)h.push(f[g],p[g])}var a=Tn(function(y,v,w){var _=d&&y.as||o,T="",b=[],S=y;if(y.theme==null){S={};for(var E in y)S[E]=y[E];S.theme=A.useContext(Ot)}typeof y.className=="string"?T=co(v.registered,b,y.className):y.className!=null&&(T=y.className+" ");var M=Pt(h.concat(b),v.registered,S);T+=v.key+"-"+M.name,s!==void 0&&(T+=" "+s);var j=d&&c===void 0?dr(_):u,L={};for(var I in y)d&&I==="as"||j(I)&&(L[I]=y[I]);return L.className=T,w&&(L.ref=w),A.createElement(A.Fragment,null,A.createElement(Qa,{cache:v,serialized:M,isStringTag:typeof _=="string"}),A.createElement(_,L))});return a.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",a.defaultProps=t.defaultProps,a.__emotion_real=a,a.__emotion_base=o,a.__emotion_styles=h,a.__emotion_forwardProp=c,Object.defineProperty(a,"toString",{value:function(){return"."+s}}),a.withComponent=function(y,v){var w=e(y,m._extends({},n,v,{shouldForwardProp:fr(a,v,!0)}));return w.apply(void 0,h)},a}},tc=["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"],fn=ec.bind(null);tc.forEach(function(e){fn[e]=fn(e)});let hn;typeof document=="object"&&(hn=io({key:"css",prepend:!0}));function mo(e){const{injectFirst:t,children:n}=e;return t&&hn?l.jsx(Ba,{value:hn,children:n}):n}process.env.NODE_ENV!=="production"&&(mo.propTypes={children:m.PropTypes.node,injectFirst:m.PropTypes.bool});function nc(e){return e==null||Object.keys(e).length===0}function go(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(nc(o)?n:o):t;return l.jsx(Ka,{styles:r})}process.env.NODE_ENV!=="production"&&(go.propTypes={defaultTheme:m.PropTypes.object,styles:m.PropTypes.oneOfType([m.PropTypes.array,m.PropTypes.string,m.PropTypes.object,m.PropTypes.func])});/**
65
65
  * @mui/styled-engine v5.16.14
66
66
  *
67
67
  * @license MIT
68
68
  * This source code is licensed under the MIT license found in the
69
69
  * LICENSE file in the root directory of this source tree.
70
- */function Ua(e,t){const n=dn(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
71
- `)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const Ka=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Ya=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ho,StyledEngineProvider:fo,ThemeContext:Ot,css:uo,default:Ua,internal_processStyles:Ka,keyframes:Ra},Symbol.toStringTag,{value:"Module"})),qa=m.getAugmentedNamespace(Ya),Ga=m.getAugmentedNamespace(oi),Za=m.getAugmentedNamespace(di),Xa=m.getAugmentedNamespace(ui),Ja=["values","unit","step"],Qa=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)=>m._extends({},n,{[r.key]:r.val}),{})};function po(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=m._objectWithoutPropertiesLoose(e,Ja),s=Qa(t),i=Object.keys(s);function c(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function d(p,b){const g=i.indexOf(b);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:b)-r/100}${n})`}function f(p){return i.indexOf(p)+1<i.length?d(p,i[i.indexOf(p)+1]):c(p)}function h(p){const b=i.indexOf(p);return b===0?c(i[1]):b===i.length-1?u(i[b]):d(p,i[i.indexOf(p)+1]).replace("@media","@media not all and")}return m._extends({keys:i,values:s,up:c,down:u,between:d,only:f,not:h,unit:n},o)}const el={borderRadius:4},Ee=process.env.NODE_ENV!=="production"?m.PropTypes.oneOfType([m.PropTypes.number,m.PropTypes.string,m.PropTypes.object,m.PropTypes.array]):{};function Xe(e,t){return t?pe(e,t,{clone:!1}):e}const In={xs:0,sm:600,md:900,lg:1200,xl:1536},ar={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${In[e]}px)`};function xe(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||ar;return t.reduce((i,c,u)=>(i[s.up(s.keys[u])]=n(t[u]),i),{})}if(typeof t=="object"){const s=r.breakpoints||ar;return Object.keys(t).reduce((i,c)=>{if(Object.keys(s.values||In).indexOf(c)!==-1){const u=s.up(c);i[u]=n(t[c],c)}else{const u=c;i[u]=t[u]}return i},{})}return n(t)}function tl(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function nl(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Pt(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function wt(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Pt(e,n)||r,t&&(o=t(o,r,e)),o}function q(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const c=i[t],u=i.theme,d=Pt(u,r)||{};return xe(i,c,h=>{let p=wt(d,o,h);return h===p&&typeof h=="string"&&(p=wt(d,o,`${t}${h==="default"?"":we(h)}`,h)),n===!1?p:{[n]:p}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ee}:{},s.filterProps=[t],s}function rl(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const ol={m:"margin",p:"padding"},sl={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},il=rl(e=>{if(e.length>2)if(lr[e])e=lr[e];else return[e];const[t,n]=e.split(""),r=ol[t],o=sl[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),$t=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],At=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],al=[...$t,...At];function st(e,t,n,r){var o;const s=(o=Pt(e,t,!1))!=null?o:n;return typeof s=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),s*i):Array.isArray(s)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>s.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${i} > ${s.length-1}, you need to add the missing values.`].join(`
70
+ */function rc(e,t){const n=fn(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
71
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const oc=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},ic=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:go,StyledEngineProvider:mo,ThemeContext:Ot,css:po,default:rc,internal_processStyles:oc,keyframes:Ya},Symbol.toStringTag,{value:"Module"})),sc=m.getAugmentedNamespace(ic),ac=m.getAugmentedNamespace(gs),cc=m.getAugmentedNamespace(_s),lc=m.getAugmentedNamespace(ws),uc=["values","unit","step"],dc=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)=>m._extends({},n,{[r.key]:r.val}),{})};function yo(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=m._objectWithoutPropertiesLoose(e,uc),i=dc(t),s=Object.keys(i);function c(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function d(p,x){const g=s.indexOf(x);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:x)-r/100}${n})`}function f(p){return s.indexOf(p)+1<s.length?d(p,s[s.indexOf(p)+1]):c(p)}function h(p){const x=s.indexOf(p);return x===0?c(s[1]):x===s.length-1?u(s[x]):d(p,s[s.indexOf(p)+1]).replace("@media","@media not all and")}return m._extends({keys:s,values:i,up:c,down:u,between:d,only:f,not:h,unit:n},o)}const fc={borderRadius:4},je=process.env.NODE_ENV!=="production"?m.PropTypes.oneOfType([m.PropTypes.number,m.PropTypes.string,m.PropTypes.object,m.PropTypes.array]):{};function Je(e,t){return t?Se(e,t,{clone:!1}):e}const kn={xs:0,sm:600,md:900,lg:1200,xl:1536},hr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${kn[e]}px)`};function Ce(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||hr;return t.reduce((s,c,u)=>(s[i.up(i.keys[u])]=n(t[u]),s),{})}if(typeof t=="object"){const i=r.breakpoints||hr;return Object.keys(t).reduce((s,c)=>{if(Object.keys(i.values||kn).indexOf(c)!==-1){const u=i.up(c);s[u]=n(t[c],c)}else{const u=c;s[u]=t[u]}return s},{})}return n(t)}function hc(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function pc(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function At(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function _t(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=At(e,n)||r,t&&(o=t(o,r,e)),o}function X(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const c=s[t],u=s.theme,d=At(u,r)||{};return Ce(s,c,h=>{let p=_t(d,o,h);return h===p&&typeof h=="string"&&(p=_t(d,o,`${t}${h==="default"?"":ke(h)}`,h)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:je}:{},i.filterProps=[t],i}function mc(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const gc={m:"margin",p:"padding"},yc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xc=mc(e=>{if(e.length>2)if(pr[e])e=pr[e];else return[e];const[t,n]=e.split(""),r=gc[t],o=yc[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),$t=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Nt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],bc=[...$t,...Nt];function st(e,t,n,r){var o;const i=(o=At(e,t,!1))!=null?o:n;return typeof i=="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}.`),i*s):Array.isArray(i)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(`
72
72
  `)):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(`
73
- `))),s[i]):typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
74
- `)),()=>{})}function mo(e){return st(e,"spacing",8,"spacing")}function it(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 ll(e,t){return n=>e.reduce((r,o)=>(r[o]=it(t,n),r),{})}function cl(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=il(n),s=ll(o,r),i=e[n];return xe(e,i,s)}function go(e,t){const n=mo(e.theme);return Object.keys(e).map(r=>cl(e,t,r,n)).reduce(Xe,{})}function K(e){return go(e,$t)}K.propTypes=process.env.NODE_ENV!=="production"?$t.reduce((e,t)=>(e[t]=Ee,e),{}):{};K.filterProps=$t;function Y(e){return go(e,At)}Y.propTypes=process.env.NODE_ENV!=="production"?At.reduce((e,t)=>(e[t]=Ee,e),{}):{};Y.filterProps=At;process.env.NODE_ENV!=="production"&&al.reduce((e,t)=>(e[t]=Ee,e),{});function ul(e=8){if(e.mui)return e;const t=mo({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(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function Nt(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Xe(o,t[s](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ie(e){return typeof e!="number"?e:`${e}px solid`}function le(e,t){return q({prop:e,themeKey:"borders",transform:t})}const dl=le("border",ie),fl=le("borderTop",ie),hl=le("borderRight",ie),pl=le("borderBottom",ie),ml=le("borderLeft",ie),gl=le("borderColor"),yl=le("borderTopColor"),xl=le("borderRightColor"),bl=le("borderBottomColor"),vl=le("borderLeftColor"),Sl=le("outline",ie),wl=le("outlineColor"),Rt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=st(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:it(t,r)});return xe(e,e.borderRadius,n)}return null};Rt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ee}:{};Rt.filterProps=["borderRadius"];Nt(dl,fl,hl,pl,ml,gl,yl,xl,bl,vl,Rt,Sl,wl);const zt=e=>{if(e.gap!==void 0&&e.gap!==null){const t=st(e.theme,"spacing",8,"gap"),n=r=>({gap:it(t,r)});return xe(e,e.gap,n)}return null};zt.propTypes=process.env.NODE_ENV!=="production"?{gap:Ee}:{};zt.filterProps=["gap"];const Ft=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=st(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:it(t,r)});return xe(e,e.columnGap,n)}return null};Ft.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ee}:{};Ft.filterProps=["columnGap"];const Lt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=st(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:it(t,r)});return xe(e,e.rowGap,n)}return null};Lt.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ee}:{};Lt.filterProps=["rowGap"];const _l=q({prop:"gridColumn"}),El=q({prop:"gridRow"}),Cl=q({prop:"gridAutoFlow"}),Tl=q({prop:"gridAutoColumns"}),kl=q({prop:"gridAutoRows"}),Il=q({prop:"gridTemplateColumns"}),Ml=q({prop:"gridTemplateRows"}),jl=q({prop:"gridTemplateAreas"}),Ol=q({prop:"gridArea"});Nt(zt,Ft,Lt,_l,El,Cl,Tl,kl,Il,Ml,jl,Ol);function He(e,t){return t==="grey"?t:e}const Pl=q({prop:"color",themeKey:"palette",transform:He}),$l=q({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:He}),Al=q({prop:"backgroundColor",themeKey:"palette",transform:He});Nt(Pl,$l,Al);function re(e){return e<=1&&e!==0?`${e*100}%`:e}const Nl=q({prop:"width",transform:re}),Mn=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||In[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:re(n)}};return xe(e,e.maxWidth,t)}return null};Mn.filterProps=["maxWidth"];const Rl=q({prop:"minWidth",transform:re}),zl=q({prop:"height",transform:re}),Fl=q({prop:"maxHeight",transform:re}),Ll=q({prop:"minHeight",transform:re});q({prop:"size",cssProperty:"width",transform:re});q({prop:"size",cssProperty:"height",transform:re});const Dl=q({prop:"boxSizing"});Nt(Nl,Mn,Rl,zl,Fl,Ll,Dl);const at={border:{themeKey:"borders",transform:ie},borderTop:{themeKey:"borders",transform:ie},borderRight:{themeKey:"borders",transform:ie},borderBottom:{themeKey:"borders",transform:ie},borderLeft:{themeKey:"borders",transform:ie},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ie},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Rt},color:{themeKey:"palette",transform:He},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:He},backgroundColor:{themeKey:"palette",transform:He},p:{style:Y},pt:{style:Y},pr:{style:Y},pb:{style:Y},pl:{style:Y},px:{style:Y},py:{style:Y},padding:{style:Y},paddingTop:{style:Y},paddingRight:{style:Y},paddingBottom:{style:Y},paddingLeft:{style:Y},paddingX:{style:Y},paddingY:{style:Y},paddingInline:{style:Y},paddingInlineStart:{style:Y},paddingInlineEnd:{style:Y},paddingBlock:{style:Y},paddingBlockStart:{style:Y},paddingBlockEnd:{style:Y},m:{style:K},mt:{style:K},mr:{style:K},mb:{style:K},ml:{style:K},mx:{style:K},my:{style:K},margin:{style:K},marginTop:{style:K},marginRight:{style:K},marginBottom:{style:K},marginLeft:{style:K},marginX:{style:K},marginY:{style:K},marginInline:{style:K},marginInlineStart:{style:K},marginInlineEnd:{style:K},marginBlock:{style:K},marginBlockStart:{style:K},marginBlockEnd:{style:K},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:zt},rowGap:{style:Lt},columnGap:{style:Ft},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:re},maxWidth:{style:Mn},minWidth:{transform:re},height:{transform:re},maxHeight:{transform:re},minHeight:{transform:re},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Bl(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Hl(e,t){return typeof e=="function"?e(t):e}function yo(){function e(n,r,o,s){const i={[n]:r,theme:o},c=s[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:f,style:h}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const p=Pt(o,d)||{};return h?h(i):xe(i,r,g=>{let a=wt(p,f,g);return g===a&&typeof g=="string"&&(a=wt(p,f,`${n}${g==="default"?"":we(g)}`,g)),u===!1?a:{[u]:a}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const i=(r=s.unstable_sxConfig)!=null?r:at;function c(u){let d=u;if(typeof u=="function")d=u(s);else if(typeof u!="object")return u;if(!d)return null;const f=tl(s.breakpoints),h=Object.keys(f);let p=f;return Object.keys(d).forEach(b=>{const g=Hl(d[b],s);if(g!=null)if(typeof g=="object")if(i[b])p=Xe(p,e(b,g,s,i));else{const a=xe({theme:s},g,y=>({[b]:y}));Bl(a,g)?p[b]=t({sx:g,theme:s}):p=Xe(p,a)}else p=Xe(p,e(b,g,s,i))}),nl(h,p)}return Array.isArray(o)?o.map(c):c(o)}return t}const Dt=yo();Dt.filterProps=["sx"];function xo(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 Vl=["breakpoints","palette","spacing","shape"];function bo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,i=m._objectWithoutPropertiesLoose(e,Vl),c=po(n),u=ul(o);let d=pe({breakpoints:c,direction:"ltr",components:{},palette:m._extends({mode:"light"},r),spacing:u,shape:m._extends({},el,s)},i);return d.applyStyles=xo,d=t.reduce((f,h)=>pe(f,h),d),d.unstable_sxConfig=m._extends({},at,i==null?void 0:i.unstable_sxConfig),d.unstable_sx=function(h){return Dt({sx:h,theme:this})},d}const Wl=Object.freeze(Object.defineProperty({__proto__:null,default:bo,private_createBreakpoints:po,unstable_applyStyles:xo},Symbol.toStringTag,{value:"Module"})),Ul=m.getAugmentedNamespace(Wl),Kl=["sx"],Yl=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:at;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function ql(e){const{sx:t}=e,n=m._objectWithoutPropertiesLoose(e,Kl),{systemProps:r,otherProps:o}=Yl(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const c=t(...i);return Se(c)?m._extends({},r,c):r}:s=m._extends({},r,t),m._extends({},o,{sx:s})}const Gl=Object.freeze(Object.defineProperty({__proto__:null,default:Dt,extendSxProp:ql,unstable_createStyleFunctionSx:yo,unstable_defaultSxConfig:at},Symbol.toStringTag,{value:"Module"})),Zl=m.getAugmentedNamespace(Gl);var Ke=vn;Object.defineProperty(rt,"__esModule",{value:!0});var Xl=rt.default=dc;rt.shouldForwardProp=gt;rt.systemDefaultTheme=void 0;var se=Ke(Hi),hn=Ke(Vi),cr=ic(qa),Jl=Ga,Ql=Ke(Za),ec=Ke(Xa),tc=Ke(Ul),nc=Ke(Zl);const rc=["ownerState"],oc=["variants"],sc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function vo(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(vo=function(r){return r?n:t})(e)}function ic(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=vo(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(r,s,i):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function ac(e){return Object.keys(e).length===0}function lc(e){return typeof e=="string"&&e.charCodeAt(0)>96}function gt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const cc=rt.systemDefaultTheme=(0,tc.default)(),ur=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ft({defaultTheme:e,theme:t,themeId:n}){return ac(t)?e:t[n]||t}function uc(e){return e?(t,n)=>n[e]:null}function yt(e,t){let{ownerState:n}=t,r=(0,hn.default)(t,rc);const o=typeof e=="function"?e((0,se.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(s=>yt(s,(0,se.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:s=[]}=o;let c=(0,hn.default)(o,oc);return s.forEach(u=>{let d=!0;typeof u.props=="function"?d=u.props((0,se.default)({ownerState:n},r,n)):Object.keys(u.props).forEach(f=>{(n==null?void 0:n[f])!==u.props[f]&&r[f]!==u.props[f]&&(d=!1)}),d&&(Array.isArray(c)||(c=[c]),c.push(typeof u.style=="function"?u.style((0,se.default)({ownerState:n},r,n)):u.style))}),c}return o}function dc(e={}){const{themeId:t,defaultTheme:n=cc,rootShouldForwardProp:r=gt,slotShouldForwardProp:o=gt}=e,s=i=>(0,nc.default)((0,se.default)({},i,{theme:ft((0,se.default)({},i,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(i,c={})=>{(0,cr.internal_processStyles)(i,v=>v.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:u,slot:d,skipVariantsResolver:f,skipSx:h,overridesResolver:p=uc(ur(d))}=c,b=(0,hn.default)(c,sc),g=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,a=h||!1;let y;process.env.NODE_ENV!=="production"&&u&&(y=`${u}-${ur(d||"Root")}`);let S=gt;d==="Root"||d==="root"?S=r:d?S=o:lc(i)&&(S=void 0);const E=(0,cr.default)(i,(0,se.default)({shouldForwardProp:S,label:y},b)),_=v=>typeof v=="function"&&v.__emotion_real!==v||(0,Jl.isPlainObject)(v)?x=>yt(v,(0,se.default)({},x,{theme:ft({theme:x.theme,defaultTheme:n,themeId:t})})):v,C=(v,...x)=>{let w=_(v);const M=x?x.map(_):[];u&&p&&M.push(k=>{const O=ft((0,se.default)({},k,{defaultTheme:n,themeId:t}));if(!O.components||!O.components[u]||!O.components[u].styleOverrides)return null;const A=O.components[u].styleOverrides,W={};return Object.entries(A).forEach(([ee,ce])=>{W[ee]=yt(ce,(0,se.default)({},k,{theme:O}))}),p(k,W)}),u&&!g&&M.push(k=>{var O;const A=ft((0,se.default)({},k,{defaultTheme:n,themeId:t})),W=A==null||(O=A.components)==null||(O=O[u])==null?void 0:O.variants;return yt({variants:W},(0,se.default)({},k,{theme:A}))}),a||M.push(s);const j=M.length-x.length;if(Array.isArray(v)&&j>0){const k=new Array(j).fill("");w=[...v,...k],w.raw=[...v.raw,...k]}const N=E(w,...M);if(process.env.NODE_ENV!=="production"){let k;u&&(k=`${u}${(0,Ql.default)(d||"")}`),k===void 0&&(k=`Styled(${(0,ec.default)(i)})`),N.displayName=k}return i.muiName&&(N.muiName=i.muiName),N};return E.withConfig&&(C.withConfig=E.withConfig),C}}function fc(e,t){return m._extends({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var G={};const hc=m.getAugmentedNamespace(si),pc=m.getAugmentedNamespace(zi);var So=vn;Object.defineProperty(G,"__esModule",{value:!0});G.alpha=Co;G.blend=Tc;G.colorChannel=void 0;var mc=G.darken=On;G.decomposeColor=ae;G.emphasize=To;var dr=G.getContrastRatio=Sc;G.getLuminance=_t;G.hexToRgb=wo;G.hslToRgb=Eo;var gc=G.lighten=Pn;G.private_safeAlpha=wc;G.private_safeColorChannel=void 0;G.private_safeDarken=_c;G.private_safeEmphasize=Cc;G.private_safeLighten=Ec;G.recomposeColor=Ye;G.rgbToHex=vc;var fr=So(hc),yc=So(pc);function jn(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,yc.default)(e,t,n)}function wo(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,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function xc(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ae(e){if(e.type)return e;if(e.charAt(0)==="#")return ae(wo(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.
75
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,fr.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=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(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
76
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,fr.default)(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const _o=e=>{const t=ae(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};G.colorChannel=_o;const bc=(e,t)=>{try{return _o(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};G.private_safeColorChannel=bc;function Ye(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<3?parseInt(o,10):o):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 vc(e){if(e.indexOf("#")===0)return e;const{values:t}=ae(e);return`#${t.map((n,r)=>xc(r===3?Math.round(255*n):n)).join("")}`}function Eo(e){e=ae(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(d,f=(d+n/30)%12)=>o-s*Math.max(Math.min(f-3,9-f,1),-1);let c="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),Ye({type:c,values:u})}function _t(e){e=ae(e);let t=e.type==="hsl"||e.type==="hsla"?ae(Eo(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 Sc(e,t){const n=_t(e),r=_t(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Co(e,t){return e=ae(e),t=jn(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ye(e)}function wc(e,t,n){try{return Co(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function On(e,t){if(e=ae(e),t=jn(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 Ye(e)}function _c(e,t,n){try{return On(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Pn(e,t){if(e=ae(e),t=jn(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 Ye(e)}function Ec(e,t,n){try{return Pn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function To(e,t=.15){return _t(e)>.5?On(e,t):Pn(e,t)}function Cc(e,t,n){try{return To(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Tc(e,t,n,r=1){const o=(u,d)=>Math.round((u**(1/r)*(1-n)+d**(1/r)*n)**r),s=ae(e),i=ae(t),c=[o(s.values[0],i.values[0]),o(s.values[1],i.values[1]),o(s.values[2],i.values[2])];return Ye({type:"rgb",values:c})}const nt={black:"#000",white:"#fff"},kc={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"},Ae={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ne={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ze={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Re={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ze={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Fe={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Ic=["mode","contrastThreshold","tonalOffset"],hr={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:nt.white,default:nt.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}},Kt={text:{primary:nt.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:nt.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 pr(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=gc(e.main,o):t==="dark"&&(e.dark=mc(e.main,s)))}function Mc(e="light"){return e==="dark"?{main:Re[200],light:Re[50],dark:Re[400]}:{main:Re[700],light:Re[400],dark:Re[800]}}function jc(e="light"){return e==="dark"?{main:Ae[200],light:Ae[50],dark:Ae[400]}:{main:Ae[500],light:Ae[300],dark:Ae[700]}}function Oc(e="light"){return e==="dark"?{main:Ne[500],light:Ne[300],dark:Ne[700]}:{main:Ne[700],light:Ne[400],dark:Ne[800]}}function Pc(e="light"){return e==="dark"?{main:ze[400],light:ze[300],dark:ze[700]}:{main:ze[700],light:ze[500],dark:ze[900]}}function $c(e="light"){return e==="dark"?{main:Fe[400],light:Fe[300],dark:Fe[700]}:{main:Fe[800],light:Fe[500],dark:Fe[900]}}function Ac(e="light"){return e==="dark"?{main:Ze[400],light:Ze[300],dark:Ze[700]}:{main:"#ed6c02",light:Ze[500],dark:Ze[900]}}function Nc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=m._objectWithoutPropertiesLoose(e,Ic),s=e.primary||Mc(t),i=e.secondary||jc(t),c=e.error||Oc(t),u=e.info||Pc(t),d=e.success||$c(t),f=e.warning||Ac(t);function h(a){const y=dr(a,Kt.text.primary)>=n?Kt.text.primary:hr.text.primary;if(process.env.NODE_ENV!=="production"){const S=dr(a,y);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${y} on ${a}`,"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(`
77
- `))}return y}const p=({color:a,name:y,mainShade:S=500,lightShade:E=300,darkShade:_=700})=>{if(a=m._extends({},a),!a.main&&a[S]&&(a.main=a[S]),!a.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
78
- The color object needs to have a \`main\` property or a \`${S}\` property.`:Je(11,y?` (${y})`:"",S));if(typeof a.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
73
+ `))),i[s]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
74
+ `)),()=>{})}function xo(e){return st(e,"spacing",8,"spacing")}function at(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 vc(e,t){return n=>e.reduce((r,o)=>(r[o]=at(t,n),r),{})}function Sc(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=xc(n),i=vc(o,r),s=e[n];return Ce(e,s,i)}function bo(e,t){const n=xo(e.theme);return Object.keys(e).map(r=>Sc(e,t,r,n)).reduce(Je,{})}function q(e){return bo(e,$t)}q.propTypes=process.env.NODE_ENV!=="production"?$t.reduce((e,t)=>(e[t]=je,e),{}):{};q.filterProps=$t;function Z(e){return bo(e,Nt)}Z.propTypes=process.env.NODE_ENV!=="production"?Nt.reduce((e,t)=>(e[t]=je,e),{}):{};Z.filterProps=Nt;process.env.NODE_ENV!=="production"&&bc.reduce((e,t)=>(e[t]=je,e),{});function wc(e=8){if(e.mui)return e;const t=xo({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(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function Rt(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Je(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function pe(e){return typeof e!="number"?e:`${e}px solid`}function ge(e,t){return X({prop:e,themeKey:"borders",transform:t})}const _c=ge("border",pe),Ec=ge("borderTop",pe),Cc=ge("borderRight",pe),Tc=ge("borderBottom",pe),Ic=ge("borderLeft",pe),kc=ge("borderColor"),Mc=ge("borderTopColor"),jc=ge("borderRightColor"),Pc=ge("borderBottomColor"),Oc=ge("borderLeftColor"),Ac=ge("outline",pe),$c=ge("outlineColor"),zt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=st(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:at(t,r)});return Ce(e,e.borderRadius,n)}return null};zt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:je}:{};zt.filterProps=["borderRadius"];Rt(_c,Ec,Cc,Tc,Ic,kc,Mc,jc,Pc,Oc,zt,Ac,$c);const Lt=e=>{if(e.gap!==void 0&&e.gap!==null){const t=st(e.theme,"spacing",8,"gap"),n=r=>({gap:at(t,r)});return Ce(e,e.gap,n)}return null};Lt.propTypes=process.env.NODE_ENV!=="production"?{gap:je}:{};Lt.filterProps=["gap"];const Ft=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=st(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:at(t,r)});return Ce(e,e.columnGap,n)}return null};Ft.propTypes=process.env.NODE_ENV!=="production"?{columnGap:je}:{};Ft.filterProps=["columnGap"];const Dt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=st(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:at(t,r)});return Ce(e,e.rowGap,n)}return null};Dt.propTypes=process.env.NODE_ENV!=="production"?{rowGap:je}:{};Dt.filterProps=["rowGap"];const Nc=X({prop:"gridColumn"}),Rc=X({prop:"gridRow"}),zc=X({prop:"gridAutoFlow"}),Lc=X({prop:"gridAutoColumns"}),Fc=X({prop:"gridAutoRows"}),Dc=X({prop:"gridTemplateColumns"}),Hc=X({prop:"gridTemplateRows"}),Bc=X({prop:"gridTemplateAreas"}),Vc=X({prop:"gridArea"});Rt(Lt,Ft,Dt,Nc,Rc,zc,Lc,Fc,Dc,Hc,Bc,Vc);function Ve(e,t){return t==="grey"?t:e}const Wc=X({prop:"color",themeKey:"palette",transform:Ve}),Uc=X({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ve}),Gc=X({prop:"backgroundColor",themeKey:"palette",transform:Ve});Rt(Wc,Uc,Gc);function de(e){return e<=1&&e!==0?`${e*100}%`:e}const Kc=X({prop:"width",transform:de}),Mn=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||kn[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:de(n)}};return Ce(e,e.maxWidth,t)}return null};Mn.filterProps=["maxWidth"];const Yc=X({prop:"minWidth",transform:de}),qc=X({prop:"height",transform:de}),Zc=X({prop:"maxHeight",transform:de}),Xc=X({prop:"minHeight",transform:de});X({prop:"size",cssProperty:"width",transform:de});X({prop:"size",cssProperty:"height",transform:de});const Jc=X({prop:"boxSizing"});Rt(Kc,Mn,Yc,qc,Zc,Xc,Jc);const ct={border:{themeKey:"borders",transform:pe},borderTop:{themeKey:"borders",transform:pe},borderRight:{themeKey:"borders",transform:pe},borderBottom:{themeKey:"borders",transform:pe},borderLeft:{themeKey:"borders",transform:pe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:pe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zt},color:{themeKey:"palette",transform:Ve},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ve},backgroundColor:{themeKey:"palette",transform:Ve},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:q},mt:{style:q},mr:{style:q},mb:{style:q},ml:{style:q},mx:{style:q},my:{style:q},margin:{style:q},marginTop:{style:q},marginRight:{style:q},marginBottom:{style:q},marginLeft:{style:q},marginX:{style:q},marginY:{style:q},marginInline:{style:q},marginInlineStart:{style:q},marginInlineEnd:{style:q},marginBlock:{style:q},marginBlockStart:{style:q},marginBlockEnd:{style:q},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:Lt},rowGap:{style:Dt},columnGap:{style:Ft},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:de},maxWidth:{style:Mn},minWidth:{transform:de},height:{transform:de},maxHeight:{transform:de},minHeight:{transform:de},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Qc(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function el(e,t){return typeof e=="function"?e(t):e}function vo(){function e(n,r,o,i){const s={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:f,style:h}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const p=At(o,d)||{};return h?h(s):Ce(s,r,g=>{let a=_t(p,f,g);return g===a&&typeof g=="string"&&(a=_t(p,f,`${n}${g==="default"?"":ke(g)}`,g)),u===!1?a:{[u]:a}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:ct;function c(u){let d=u;if(typeof u=="function")d=u(i);else if(typeof u!="object")return u;if(!d)return null;const f=hc(i.breakpoints),h=Object.keys(f);let p=f;return Object.keys(d).forEach(x=>{const g=el(d[x],i);if(g!=null)if(typeof g=="object")if(s[x])p=Je(p,e(x,g,i,s));else{const a=Ce({theme:i},g,y=>({[x]:y}));Qc(a,g)?p[x]=t({sx:g,theme:i}):p=Je(p,a)}else p=Je(p,e(x,g,i,s))}),pc(h,p)}return Array.isArray(o)?o.map(c):c(o)}return t}const Ht=vo();Ht.filterProps=["sx"];function So(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 tl=["breakpoints","palette","spacing","shape"];function wo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=m._objectWithoutPropertiesLoose(e,tl),c=yo(n),u=wc(o);let d=Se({breakpoints:c,direction:"ltr",components:{},palette:m._extends({mode:"light"},r),spacing:u,shape:m._extends({},fc,i)},s);return d.applyStyles=So,d=t.reduce((f,h)=>Se(f,h),d),d.unstable_sxConfig=m._extends({},ct,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return Ht({sx:h,theme:this})},d}const nl=Object.freeze(Object.defineProperty({__proto__:null,default:wo,private_createBreakpoints:yo,unstable_applyStyles:So},Symbol.toStringTag,{value:"Module"})),rl=m.getAugmentedNamespace(nl),ol=["sx"],il=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ct;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function sl(e){const{sx:t}=e,n=m._objectWithoutPropertiesLoose(e,ol),{systemProps:r,otherProps:o}=il(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const c=t(...s);return Ie(c)?m._extends({},r,c):r}:i=m._extends({},r,t),m._extends({},o,{sx:i})}const al=Object.freeze(Object.defineProperty({__proto__:null,default:Ht,extendSxProp:sl,unstable_createStyleFunctionSx:vo,unstable_defaultSxConfig:ct},Symbol.toStringTag,{value:"Module"})),cl=m.getAugmentedNamespace(al);var Ke=vn;Object.defineProperty(ot,"__esModule",{value:!0});var ll=ot.default=_l;ot.shouldForwardProp=bt;ot.systemDefaultTheme=void 0;var he=Ke(ea),pn=Ke(ta),mr=xl(sc),ul=ac,dl=Ke(cc),fl=Ke(lc),hl=Ke(rl),pl=Ke(cl);const ml=["ownerState"],gl=["variants"],yl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _o(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(_o=function(r){return r?n:t})(e)}function xl(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=_o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function bl(e){return Object.keys(e).length===0}function vl(e){return typeof e=="string"&&e.charCodeAt(0)>96}function bt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sl=ot.systemDefaultTheme=(0,hl.default)(),gr=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ht({defaultTheme:e,theme:t,themeId:n}){return bl(t)?e:t[n]||t}function wl(e){return e?(t,n)=>n[e]:null}function vt(e,t){let{ownerState:n}=t,r=(0,pn.default)(t,ml);const o=typeof e=="function"?e((0,he.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>vt(i,(0,he.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let c=(0,pn.default)(o,gl);return i.forEach(u=>{let d=!0;typeof u.props=="function"?d=u.props((0,he.default)({ownerState:n},r,n)):Object.keys(u.props).forEach(f=>{(n==null?void 0:n[f])!==u.props[f]&&r[f]!==u.props[f]&&(d=!1)}),d&&(Array.isArray(c)||(c=[c]),c.push(typeof u.style=="function"?u.style((0,he.default)({ownerState:n},r,n)):u.style))}),c}return o}function _l(e={}){const{themeId:t,defaultTheme:n=Sl,rootShouldForwardProp:r=bt,slotShouldForwardProp:o=bt}=e,i=s=>(0,pl.default)((0,he.default)({},s,{theme:ht((0,he.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,c={})=>{(0,mr.internal_processStyles)(s,b=>b.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:u,slot:d,skipVariantsResolver:f,skipSx:h,overridesResolver:p=wl(gr(d))}=c,x=(0,pn.default)(c,yl),g=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,a=h||!1;let y;process.env.NODE_ENV!=="production"&&u&&(y=`${u}-${gr(d||"Root")}`);let v=bt;d==="Root"||d==="root"?v=r:d?v=o:vl(s)&&(v=void 0);const w=(0,mr.default)(s,(0,he.default)({shouldForwardProp:v,label:y},x)),_=b=>typeof b=="function"&&b.__emotion_real!==b||(0,ul.isPlainObject)(b)?S=>vt(b,(0,he.default)({},S,{theme:ht({theme:S.theme,defaultTheme:n,themeId:t})})):b,T=(b,...S)=>{let E=_(b);const M=S?S.map(_):[];u&&p&&M.push(I=>{const P=ht((0,he.default)({},I,{defaultTheme:n,themeId:t}));if(!P.components||!P.components[u]||!P.components[u].styleOverrides)return null;const R=P.components[u].styleOverrides,K={};return Object.entries(R).forEach(([re,ce])=>{K[re]=vt(ce,(0,he.default)({},I,{theme:P}))}),p(I,K)}),u&&!g&&M.push(I=>{var P;const R=ht((0,he.default)({},I,{defaultTheme:n,themeId:t})),K=R==null||(P=R.components)==null||(P=P[u])==null?void 0:P.variants;return vt({variants:K},(0,he.default)({},I,{theme:R}))}),a||M.push(i);const j=M.length-S.length;if(Array.isArray(b)&&j>0){const I=new Array(j).fill("");E=[...b,...I],E.raw=[...b.raw,...I]}const L=w(E,...M);if(process.env.NODE_ENV!=="production"){let I;u&&(I=`${u}${(0,dl.default)(d||"")}`),I===void 0&&(I=`Styled(${(0,fl.default)(s)})`),L.displayName=I}return s.muiName&&(L.muiName=s.muiName),L};return w.withConfig&&(T.withConfig=w.withConfig),T}}function El(e,t){return m._extends({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var J={};const Cl=m.getAugmentedNamespace(ys),Tl=m.getAugmentedNamespace(qs);var Eo=vn;Object.defineProperty(J,"__esModule",{value:!0});J.alpha=ko;J.blend=Ll;J.colorChannel=void 0;var Il=J.darken=Pn;J.decomposeColor=me;J.emphasize=Mo;var yr=J.getContrastRatio=Al;J.getLuminance=Et;J.hexToRgb=Co;J.hslToRgb=Io;var kl=J.lighten=On;J.private_safeAlpha=$l;J.private_safeColorChannel=void 0;J.private_safeDarken=Nl;J.private_safeEmphasize=zl;J.private_safeLighten=Rl;J.recomposeColor=Ye;J.rgbToHex=Ol;var xr=Eo(Cl),Ml=Eo(Tl);function jn(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,Ml.default)(e,t,n)}function Co(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,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function jl(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function me(e){if(e.type)return e;if(e.charAt(0)==="#")return me(Co(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.
75
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,xr.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=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(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
76
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,xr.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const To=e=>{const t=me(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};J.colorChannel=To;const Pl=(e,t)=>{try{return To(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};J.private_safeColorChannel=Pl;function Ye(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):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 Ol(e){if(e.indexOf("#")===0)return e;const{values:t}=me(e);return`#${t.map((n,r)=>jl(r===3?Math.round(255*n):n)).join("")}`}function Io(e){e=me(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(d,f=(d+n/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let c="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),Ye({type:c,values:u})}function Et(e){e=me(e);let t=e.type==="hsl"||e.type==="hsla"?me(Io(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 Al(e,t){const n=Et(e),r=Et(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ko(e,t){return e=me(e),t=jn(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ye(e)}function $l(e,t,n){try{return ko(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Pn(e,t){if(e=me(e),t=jn(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 Ye(e)}function Nl(e,t,n){try{return Pn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function On(e,t){if(e=me(e),t=jn(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 Ye(e)}function Rl(e,t,n){try{return On(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Mo(e,t=.15){return Et(e)>.5?Pn(e,t):On(e,t)}function zl(e,t,n){try{return Mo(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ll(e,t,n,r=1){const o=(u,d)=>Math.round((u**(1/r)*(1-n)+d**(1/r)*n)**r),i=me(e),s=me(t),c=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return Ye({type:"rgb",values:c})}const rt={black:"#000",white:"#fff"},Fl={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"},Re={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ze={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Xe={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Le={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Fe={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},De={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Dl=["mode","contrastThreshold","tonalOffset"],br={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:rt.white,default:rt.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}},qt={text:{primary:rt.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:rt.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 vr(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=kl(e.main,o):t==="dark"&&(e.dark=Il(e.main,i)))}function Hl(e="light"){return e==="dark"?{main:Le[200],light:Le[50],dark:Le[400]}:{main:Le[700],light:Le[400],dark:Le[800]}}function Bl(e="light"){return e==="dark"?{main:Re[200],light:Re[50],dark:Re[400]}:{main:Re[500],light:Re[300],dark:Re[700]}}function Vl(e="light"){return e==="dark"?{main:ze[500],light:ze[300],dark:ze[700]}:{main:ze[700],light:ze[400],dark:ze[800]}}function Wl(e="light"){return e==="dark"?{main:Fe[400],light:Fe[300],dark:Fe[700]}:{main:Fe[700],light:Fe[500],dark:Fe[900]}}function Ul(e="light"){return e==="dark"?{main:De[400],light:De[300],dark:De[700]}:{main:De[800],light:De[500],dark:De[900]}}function Gl(e="light"){return e==="dark"?{main:Xe[400],light:Xe[300],dark:Xe[700]}:{main:"#ed6c02",light:Xe[500],dark:Xe[900]}}function Kl(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=m._objectWithoutPropertiesLoose(e,Dl),i=e.primary||Hl(t),s=e.secondary||Bl(t),c=e.error||Vl(t),u=e.info||Wl(t),d=e.success||Ul(t),f=e.warning||Gl(t);function h(a){const y=yr(a,qt.text.primary)>=n?qt.text.primary:br.text.primary;if(process.env.NODE_ENV!=="production"){const v=yr(a,y);v<3&&console.error([`MUI: The contrast ratio of ${v}:1 for ${y} on ${a}`,"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(`
77
+ `))}return y}const p=({color:a,name:y,mainShade:v=500,lightShade:w=300,darkShade:_=700})=>{if(a=m._extends({},a),!a.main&&a[v]&&(a.main=a[v]),!a.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
78
+ The color object needs to have a \`main\` property or a \`${v}\` property.`:Qe(11,y?` (${y})`:"",v));if(typeof a.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
79
79
  \`color.main\` should be a string, but \`${JSON.stringify(a.main)}\` was provided instead.
80
80
 
81
81
  Did you intend to use one of the following approaches?
@@ -88,7 +88,7 @@ const theme1 = createTheme({ palette: {
88
88
 
89
89
  const theme2 = createTheme({ palette: {
90
90
  primary: { main: green[500] },
91
- } });`:Je(12,y?` (${y})`:"",JSON.stringify(a.main)));return pr(a,"light",E,r),pr(a,"dark",_,r),a.contrastText||(a.contrastText=h(a.main)),a},b={dark:Kt,light:hr};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),pe(m._extends({common:m._extends({},nt),mode:t,primary:p({color:s,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:c,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:d,name:"success"}),grey:kc,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r},b[t]),o)}const Rc=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function zc(e){return Math.round(e*1e5)/1e5}const mr={textTransform:"uppercase"},gr='"Roboto", "Helvetica", "Arial", sans-serif';function Fc(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=gr,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:f,pxToRem:h}=n,p=m._objectWithoutPropertiesLoose(n,Rc);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=o/14,g=h||(S=>`${S/d*b}rem`),a=(S,E,_,C,v)=>m._extends({fontFamily:r,fontWeight:S,fontSize:g(E),lineHeight:_},r===gr?{letterSpacing:`${zc(C/E)}em`}:{},v,f),y={h1:a(s,96,1.167,-1.5),h2:a(s,60,1.2,-.5),h3:a(i,48,1.167,0),h4:a(i,34,1.235,.25),h5:a(i,24,1.334,0),h6:a(c,20,1.6,.15),subtitle1:a(i,16,1.75,.15),subtitle2:a(c,14,1.57,.1),body1:a(i,16,1.5,.15),body2:a(i,14,1.43,.15),button:a(c,14,1.75,.4,mr),caption:a(i,12,1.66,.4),overline:a(i,12,2.66,1,mr),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return pe(m._extends({htmlFontSize:d,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:c,fontWeightBold:u},y),p,{clone:!1})}const Lc=.2,Dc=.14,Bc=.12;function U(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Lc})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Dc})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Bc})`].join(",")}const Hc=["none",U(0,2,1,-1,0,1,1,0,0,1,3,0),U(0,3,1,-2,0,2,2,0,0,1,5,0),U(0,3,3,-2,0,3,4,0,0,1,8,0),U(0,2,4,-1,0,4,5,0,0,1,10,0),U(0,3,5,-1,0,5,8,0,0,1,14,0),U(0,3,5,-1,0,6,10,0,0,1,18,0),U(0,4,5,-2,0,7,10,1,0,2,16,1),U(0,5,5,-3,0,8,10,1,0,3,14,2),U(0,5,6,-3,0,9,12,1,0,3,16,2),U(0,6,6,-3,0,10,14,1,0,4,18,3),U(0,6,7,-4,0,11,15,1,0,4,20,3),U(0,7,8,-4,0,12,17,2,0,5,22,4),U(0,7,8,-4,0,13,19,2,0,5,24,4),U(0,7,9,-4,0,14,21,2,0,5,26,4),U(0,8,9,-5,0,15,22,2,0,6,28,5),U(0,8,10,-5,0,16,24,2,0,6,30,5),U(0,8,11,-5,0,17,26,2,0,6,32,5),U(0,9,11,-5,0,18,28,2,0,7,34,6),U(0,9,12,-6,0,19,29,2,0,7,36,6),U(0,10,13,-6,0,20,31,3,0,8,38,7),U(0,10,13,-6,0,21,33,3,0,8,40,7),U(0,10,14,-6,0,22,35,3,0,8,42,7),U(0,11,14,-7,0,23,36,3,0,9,44,8),U(0,11,15,-7,0,24,38,3,0,9,46,8)],Vc=["duration","easing","delay"],Wc={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)"},Uc={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yr(e){return`${Math.round(e)}ms`}function Kc(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Yc(e){const t=m._extends({},Wc,e.easing),n=m._extends({},Uc,e.duration),r=(o=["all"],s={})=>{const{duration:i=n.standard,easing:c=t.easeInOut,delay:u=0}=s,d=m._objectWithoutPropertiesLoose(s,Vc);if(process.env.NODE_ENV!=="production"){const f=p=>typeof p=="string",h=p=>!isNaN(parseFloat(p));!f(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(i)&&!f(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),f(c)||console.error('MUI: Argument "easing" must be a string.'),!h(u)&&!f(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="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(`
92
- `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof i=="string"?i:yr(i)} ${c} ${typeof u=="string"?u:yr(u)}`).join(",")};return m._extends({getAutoHeightDuration:Kc,create:r},e,{easing:t,duration:n})}const qc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Gc=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Zc(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,i=m._objectWithoutPropertiesLoose(e,Gc);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.":Je(18));const c=Nc(r),u=bo(e);let d=pe(u,{mixins:fc(u.breakpoints,n),palette:c,shadows:Hc.slice(),typography:Fc(c,s),transitions:Yc(o),zIndex:m._extends({},qc)});if(d=pe(d,i),d=t.reduce((f,h)=>pe(f,h),d),process.env.NODE_ENV!=="production"){const f=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(p,b)=>{let g;for(g in p){const a=p[g];if(f.indexOf(g)!==-1&&Object.keys(a).length>0){if(process.env.NODE_ENV!=="production"){const y=bn("",g);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${g}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${y}' syntax:`,JSON.stringify({root:{[`&.${y}`]:a}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
93
- `))}p[g]={}}}};Object.keys(d.components).forEach(p=>{const b=d.components[p].styleOverrides;b&&p.indexOf("Mui")===0&&h(b,p)})}return d.unstable_sxConfig=m._extends({},at,i==null?void 0:i.unstable_sxConfig),d.unstable_sx=function(h){return Dt({sx:h,theme:this})},d}const Xc=Zc(),Jc="$$material";function Qc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const e0=e=>Qc(e)&&e!=="classes",t0=Xl({themeId:Jc,defaultTheme:Xc,rootShouldForwardProp:e0});function n0(e){return bn("MuiSvgIcon",e)}Ni("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const r0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],o0=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${we(t)}`,`fontSize${we(n)}`]};return Pi(o,n0,r)},s0=t0("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${we(n.color)}`],t[`fontSize${we(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,s,i,c,u,d,f,h,p,b,g;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:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem",large:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}[t.fontSize],color:(h=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?h:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Et=$.forwardRef(function(t,n){const r=Bi({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:c="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:h,viewBox:p="0 0 24 24"}=r,b=m._objectWithoutPropertiesLoose(r,r0),g=$.isValidElement(o)&&o.type==="svg",a=m._extends({},r,{color:i,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:g}),y={};f||(y.viewBox=p);const S=o0(a);return l.jsxs(s0,m._extends({as:c,className:m.clsx(S.root,s),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},y,b,g&&o.props,{ownerState:a,children:[g?o.props.children:o,h?l.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(Et.propTypes={children:m.PropTypes.node,classes:m.PropTypes.object,className:m.PropTypes.string,color:m.PropTypes.oneOfType([m.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.PropTypes.string]),component:m.PropTypes.elementType,fontSize:m.PropTypes.oneOfType([m.PropTypes.oneOf(["inherit","large","medium","small"]),m.PropTypes.string]),htmlColor:m.PropTypes.string,inheritViewBox:m.PropTypes.bool,shapeRendering:m.PropTypes.string,sx:m.PropTypes.oneOfType([m.PropTypes.arrayOf(m.PropTypes.oneOfType([m.PropTypes.func,m.PropTypes.object,m.PropTypes.bool])),m.PropTypes.func,m.PropTypes.object]),titleAccess:m.PropTypes.string,viewBox:m.PropTypes.string});Et.muiName="SvgIcon";function ko(e,t){function n(r,o){return l.jsx(Et,m._extends({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Et.muiName,$.memo($.forwardRef(n))}const i0={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
94
- `)),Kr.configure(e)}},a0=Object.freeze(Object.defineProperty({__proto__:null,capitalize:we,createChainedFunction:fi,createSvgIcon:ko,debounce:hi,deprecatedPropType:pi,isMuiElement:mi,ownerDocument:Vr,ownerWindow:gi,requirePropFactory:yi,setRef:Wr,unstable_ClassNameGenerator:i0,unstable_useEnhancedEffect:Ur,unstable_useId:bi,unsupportedProp:vi,useControlled:Si,useEventCallback:wi,useForkRef:_i,useIsFocusVisible:Oi},Symbol.toStringTag,{value:"Module"})),l0=ko(l.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var xr=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function c0(e,t){return!!(e===t||xr(e)&&xr(t))}function u0(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!c0(e[n],t[n]))return!1;return!0}function Yt(e,t){t===void 0&&(t=u0);var n,r=[],o,s=!1;function i(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return s&&n===this&&t(c,r)||(o=e.apply(this,c),s=!0,n=this,r=c),o}return i}var d0=typeof performance=="object"&&typeof performance.now=="function",br=d0?function(){return performance.now()}:function(){return Date.now()};function vr(e){cancelAnimationFrame(e.id)}function f0(e,t){var n=br();function r(){br()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var qt=-1;function Sr(e){if(e===void 0&&(e=!1),qt===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),qt=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return qt}var Le=null;function wr(e){if(e===void 0&&(e=!1),Le===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"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Le="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Le="negative":Le="positive-ascending"),document.body.removeChild(t),Le}return Le}process.env.NODE_ENV;var h0=150,p0=function(t,n){return t},xt=null,bt=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(xt=new WeakSet,bt=new WeakSet);function m0(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,s=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,c=e.getStopIndexForStartIndex,u=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(h){m._inheritsLoose(p,h);function p(g){var a;return a=h.call(this,g)||this,a._instanceProps=u(a.props,m._assertThisInitialized(a)),a._outerRef=void 0,a._resetIsScrollingTimeoutId=null,a.state={instance:m._assertThisInitialized(a),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof a.props.initialScrollOffset=="number"?a.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},a._callOnItemsRendered=void 0,a._callOnItemsRendered=Yt(function(y,S,E,_){return a.props.onItemsRendered({overscanStartIndex:y,overscanStopIndex:S,visibleStartIndex:E,visibleStopIndex:_})}),a._callOnScroll=void 0,a._callOnScroll=Yt(function(y,S,E){return a.props.onScroll({scrollDirection:y,scrollOffset:S,scrollUpdateWasRequested:E})}),a._getItemStyle=void 0,a._getItemStyle=function(y){var S=a.props,E=S.direction,_=S.itemSize,C=S.layout,v=a._getItemStyleCache(d&&_,d&&C,d&&E),x;if(v.hasOwnProperty(y))x=v[y];else{var w=n(a.props,y,a._instanceProps),M=o(a.props,y,a._instanceProps),j=E==="horizontal"||C==="horizontal",N=E==="rtl",k=j?w:0;v[y]=x={position:"absolute",left:N?void 0:k,right:N?k:void 0,top:j?0:w,height:j?"100%":M,width:j?M:"100%"}}return x},a._getItemStyleCache=void 0,a._getItemStyleCache=Yt(function(y,S,E){return{}}),a._onScrollHorizontal=function(y){var S=y.currentTarget,E=S.clientWidth,_=S.scrollLeft,C=S.scrollWidth;a.setState(function(v){if(v.scrollOffset===_)return null;var x=a.props.direction,w=_;if(x==="rtl")switch(wr()){case"negative":w=-_;break;case"positive-descending":w=C-E-_;break}return w=Math.max(0,Math.min(w,C-E)),{isScrolling:!0,scrollDirection:v.scrollOffset<w?"forward":"backward",scrollOffset:w,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._onScrollVertical=function(y){var S=y.currentTarget,E=S.clientHeight,_=S.scrollHeight,C=S.scrollTop;a.setState(function(v){if(v.scrollOffset===C)return null;var x=Math.max(0,Math.min(C,_-E));return{isScrolling:!0,scrollDirection:v.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._outerRefSetter=function(y){var S=a.props.outerRef;a._outerRef=y,typeof S=="function"?S(y):S!=null&&typeof S=="object"&&S.hasOwnProperty("current")&&(S.current=y)},a._resetIsScrollingDebounced=function(){a._resetIsScrollingTimeoutId!==null&&vr(a._resetIsScrollingTimeoutId),a._resetIsScrollingTimeoutId=f0(a._resetIsScrolling,h0)},a._resetIsScrolling=function(){a._resetIsScrollingTimeoutId=null,a.setState({isScrolling:!1},function(){a._getItemStyleCache(-1,null)})},a}p.getDerivedStateFromProps=function(a,y){return g0(a,y),f(a),null};var b=p.prototype;return b.scrollTo=function(a){a=Math.max(0,a),this.setState(function(y){return y.scrollOffset===a?null:{scrollDirection:y.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},b.scrollToItem=function(a,y){y===void 0&&(y="auto");var S=this.props,E=S.itemCount,_=S.layout,C=this.state.scrollOffset;a=Math.max(0,Math.min(a,E-1));var v=0;if(this._outerRef){var x=this._outerRef;_==="vertical"?v=x.scrollWidth>x.clientWidth?Sr():0:v=x.scrollHeight>x.clientHeight?Sr():0}this.scrollTo(s(this.props,a,y,C,this._instanceProps,v))},b.componentDidMount=function(){var a=this.props,y=a.direction,S=a.initialScrollOffset,E=a.layout;if(typeof S=="number"&&this._outerRef!=null){var _=this._outerRef;y==="horizontal"||E==="horizontal"?_.scrollLeft=S:_.scrollTop=S}this._callPropsCallbacks()},b.componentDidUpdate=function(){var a=this.props,y=a.direction,S=a.layout,E=this.state,_=E.scrollOffset,C=E.scrollUpdateWasRequested;if(C&&this._outerRef!=null){var v=this._outerRef;if(y==="horizontal"||S==="horizontal")if(y==="rtl")switch(wr()){case"negative":v.scrollLeft=-_;break;case"positive-ascending":v.scrollLeft=_;break;default:var x=v.clientWidth,w=v.scrollWidth;v.scrollLeft=w-x-_;break}else v.scrollLeft=_;else v.scrollTop=_}this._callPropsCallbacks()},b.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&vr(this._resetIsScrollingTimeoutId)},b.render=function(){var a=this.props,y=a.children,S=a.className,E=a.direction,_=a.height,C=a.innerRef,v=a.innerElementType,x=a.innerTagName,w=a.itemCount,M=a.itemData,j=a.itemKey,N=j===void 0?p0:j,k=a.layout,O=a.outerElementType,A=a.outerTagName,W=a.style,ee=a.useIsScrolling,ce=a.width,Ce=this.state.isScrolling,ge=E==="horizontal"||k==="horizontal",qe=ge?this._onScrollHorizontal:this._onScrollVertical,be=this._getRangeToRender(),Ie=be[0],Me=be[1],je=[];if(w>0)for(var ue=Ie;ue<=Me;ue++)je.push(T.createElement(y,{data:M,key:N(ue,M),index:ue,isScrolling:ee?Ce:void 0,style:this._getItemStyle(ue)}));var Oe=r(this.props,this._instanceProps);return T.createElement(O||A||"div",{className:S,onScroll:qe,ref:this._outerRefSetter,style:m._extends({position:"relative",height:_,width:ce,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:E},W)},T.createElement(v||x||"div",{children:je,ref:C,style:{height:ge?"100%":Oe,pointerEvents:Ce?"none":void 0,width:ge?Oe:"100%"}}))},b._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var a=this.props.itemCount;if(a>0){var y=this._getRangeToRender(),S=y[0],E=y[1],_=y[2],C=y[3];this._callOnItemsRendered(S,E,_,C)}}if(typeof this.props.onScroll=="function"){var v=this.state,x=v.scrollDirection,w=v.scrollOffset,M=v.scrollUpdateWasRequested;this._callOnScroll(x,w,M)}},b._getRangeToRender=function(){var a=this.props,y=a.itemCount,S=a.overscanCount,E=this.state,_=E.isScrolling,C=E.scrollDirection,v=E.scrollOffset;if(y===0)return[0,0,0,0];var x=i(this.props,v,this._instanceProps),w=c(this.props,x,v,this._instanceProps),M=!_||C==="backward"?Math.max(1,S):1,j=!_||C==="forward"?Math.max(1,S):1;return[Math.max(0,x-M),Math.max(0,Math.min(y-1,w+j)),x,w]},p}(T.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var g0=function(t,n){var r=t.children,o=t.direction,s=t.height,i=t.layout,c=t.innerTagName,u=t.outerTagName,d=t.width,f=n.instance;if(process.env.NODE_ENV!=="production"){(c!=null||u!=null)&&bt&&!bt.has(f)&&(bt.add(f),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var h=o==="horizontal"||i==="horizontal";switch(o){case"horizontal":case"vertical":xt&&!xt.has(f)&&(xt.add(f),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". '+('"'+o+'" was specified.'))}switch(i){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+i+'" 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(h&&typeof d!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(d===null?"null":typeof d)+'" was specified.'));if(!h&&typeof s!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(s===null?"null":typeof s)+'" was specified.'))}},y0=50,De=function(t,n,r){var o=t,s=o.itemSize,i=r.itemMetadataMap,c=r.lastMeasuredIndex;if(n>c){var u=0;if(c>=0){var d=i[c];u=d.offset+d.size}for(var f=c+1;f<=n;f++){var h=s(f);i[f]={offset:u,size:h},u+=h}r.lastMeasuredIndex=n}return i[n]},x0=function(t,n,r){var o=n.itemMetadataMap,s=n.lastMeasuredIndex,i=s>0?o[s].offset:0;return i>=r?Io(t,n,s,0,r):b0(t,n,Math.max(0,s),r)},Io=function(t,n,r,o,s){for(;o<=r;){var i=o+Math.floor((r-o)/2),c=De(t,i,n).offset;if(c===s)return i;c<s?o=i+1:c>s&&(r=i-1)}return o>0?o-1:0},b0=function(t,n,r,o){for(var s=t.itemCount,i=1;r<s&&De(t,r,n).offset<o;)r+=i,i*=2;return Io(t,n,Math.min(r,s-1),Math.floor(r/2),o)},_r=function(t,n){var r=t.itemCount,o=n.itemMetadataMap,s=n.estimatedItemSize,i=n.lastMeasuredIndex,c=0;if(i>=r&&(i=r-1),i>=0){var u=o[i];c=u.offset+u.size}var d=r-i-1,f=d*s;return c+f},v0=m0({getItemOffset:function(t,n,r){return De(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:_r,getOffsetForIndexAndAlignment:function(t,n,r,o,s,i){var c=t.direction,u=t.height,d=t.layout,f=t.width,h=c==="horizontal"||d==="horizontal",p=h?f:u,b=De(t,n,s),g=_r(t,s),a=Math.max(0,Math.min(g-p,b.offset)),y=Math.max(0,b.offset-p+b.size+i);switch(r==="smart"&&(o>=y-p&&o<=a+p?r="auto":r="center"),r){case"start":return a;case"end":return y;case"center":return Math.round(y+(a-y)/2);case"auto":default:return o>=y&&o<=a?o:o<y?y:a}},getStartIndexForOffset:function(t,n,r){return x0(t,r,n)},getStopIndexForStartIndex:function(t,n,r,o){for(var s=t.direction,i=t.height,c=t.itemCount,u=t.layout,d=t.width,f=s==="horizontal"||u==="horizontal",h=f?d:i,p=De(t,n,o),b=r+h,g=p.offset+p.size,a=n;a<c-1&&g<b;)a++,g+=De(t,a,o).size;return a},initInstanceProps:function(t,n){var r=t,o=r.estimatedItemSize,s={itemMetadataMap:{},estimatedItemSize:o||y0,lastMeasuredIndex:-1};return n.resetAfterIndex=function(i,c){c===void 0&&(c=!0),s.lastMeasuredIndex=Math.min(s.lastMeasuredIndex,i-1),n._getItemStyleCache(-1),c&&n.forceUpdate()},s},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 pn(e){const{colors:t}=m.useTheme();return l.jsx(R.Stack,{sx:{cursor:"pointer"},onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,e.option)},...e.stackProps,children:l.jsx(R.Stack,{sx:{p:1,transition:"0.2s",borderRadius:"5px",cursor:"pointer",...m.activeStyles({backgroundColor:t.primary200},e.select),":hover":{backgroundColor:"#eeeeee80",borderColor:"transparent"}},children:e.renderOption(e.option)})})}const Ct=37,S0=(e,t)=>{const i=document.createElement("p");i.innerText=t,i.style.width=`${e-16-16-4}px`,document.body.appendChild(i);const c=i.offsetHeight;return document.body.removeChild(i),c>21?Ct+21:Ct};function w0(e){const[t,n]=T.useState(!1),[r,o]=T.useState(""),[s,i]=T.useState(""),[c,u]=T.useState(!1),{isRequired:d=!1}=e,f=T.useCallback(m._.debounce(x=>{var w;(w=e.handleChangeSearch)==null||w.call(e,x)},300),[e.handleChangeSearch]),h=()=>{n(!t)},p=()=>{n(!1),i(""),f("")};T.useEffect(()=>{o(e.value?e.getOptionLabel(e.value):"")},[e.value]),T.useEffect(()=>{t||o(e.value?e.getOptionLabel(e.value):"")},[t]),T.useEffect(()=>{u(e.searchLoading)},[e.paging.rows,e.searchLoading]);const b=e.paging.rows,{hasNextPage:g}=e,a=g?b.length+1:b.length,y=()=>e.isNextPageLoading?void 0:e.loadNextPage(s),S=x=>!g||x<b.length,E=x=>{o(x.target.value),t&&(i(x.target.value),f(x.target.value),u(!0))},_=T.useRef(null),C=T.useRef(null),v=T.useRef(null);return T.useEffect(()=>{var x,w,M,j;t?((x=C.current)==null||x.classList.add("Mui-focused"),(w=v.current)==null||w.classList.add("Mui-focused")):((M=C.current)==null||M.classList.remove("Mui-focused"),(j=v.current)==null||j.classList.remove("Mui-focused"))},[t]),l.jsx(R.ClickAwayListener,{onClickAway:p,mouseEvent:"onMouseDown",touchEvent:"onTouchEnd",children:l.jsx("div",{ref:_,style:{width:e.wrapperWidth??"auto"},children:l.jsxs(R.Stack,{sx:{position:"relative"},children:[l.jsx(R.TextField,{required:d,label:e.label,value:r,disabled:e.loading||e.disabled||e.readOnly,fullWidth:!0,error:e.error,helperText:e.helperText,onFocus:x=>{e.loading||e.disabled||e.readOnly||(x.preventDefault(),x.stopPropagation(),n(!0))},autoComplete:"off",onChange:E,placeholder:e.placeholder||"All options",sx:{"& input:not(:focus)":{"&::placeholder":{color:e.placeHolderColor||"#C5C5C5",opacity:1}}},InputLabelProps:{ref:C,shrink:!0},InputProps:{readOnly:e.readOnly,ref:v,endAdornment:l.jsx(R.IconButton,{size:"small",sx:{padding:"1px"},onClick:x=>{var w;x.preventDefault(),x.stopPropagation(),h(),(w=_.current)==null||w.focus()},disabled:e.loading||e.disabled||e.readOnly,children:e.loading?l.jsx(R.CircularProgress,{size:"16px"}):l.jsx(l0,{fontSize:"small",style:{transition:"0.3s"},className:t?"rotate":""})})}}),l.jsx(R.Fade,{in:t,timeout:0,unmountOnExit:!1,children:l.jsxs(R.Paper,{sx:{position:"absolute",top:"calc(100% + 2px)",zIndex:2,left:0,right:0,p:1},children:[!e.disabledAllOption&&l.jsx(R.Stack,{sx:{...m.activeStyles({display:"none"},!!c)},children:l.jsx(R.Stack,{children:l.jsx(pn,{option:void 0,select:!e.value,renderOption:()=>l.jsx(R.Typography,{children:e.placeholder||"All options"}),onClick:()=>{var x,w;p(),(x=e.onChange)==null||x.call(e,void 0),(w=e.handleChangeSearch)==null||w.call(e,"")}})})}),!c&&l.jsx(m.InfiniteLoader,{isItemLoaded:S,itemCount:a,loadMoreItems:y,threshold:5,children:({onItemsRendered:x,ref:w})=>l.jsx(v0,{ref:w,onItemsRendered:x,height:Ct*Math.min(e.itemsNumber||6,a),itemCount:a,itemSize:M=>{var j;return S0((j=_.current)==null?void 0:j.offsetWidth,b[M]?e.getOptionLabel(b[M]):"")},width:"100%",className:"styled-scroll",children:({index:M,style:j})=>{var k;const N=b[M];return S(M)?l.jsx(pn,{stackProps:{style:j},option:N,renderOption:O=>{var A;return l.jsxs(R.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[l.jsx(R.Typography,{children:e.getOptionLabel(O)}),(A=e.renderOptionTooltip)==null?void 0:A.call(e,O)]})},onClick:O=>{var A;p(),(A=e.onChange)==null||A.call(e,O)},select:((k=e.isEqual)==null?void 0:k.call(e,N,e.value))??m._.isEqual(N,e.value)}):l.jsx(R.Stack,{style:j,sx:{height:Ct,pl:1},justifyContent:"center",children:l.jsx(R.Typography,{children:"Loading..."})})}})}),l.jsx(R.Stack,{sx:{height:30,display:"flex",justifyContent:"center",paddingLeft:"5px",...m.activeStyles({display:"none"},!c)},children:l.jsx(R.Typography,{color:"grayText",children:"Searching..."})}),l.jsx(R.Stack,{sx:{height:30,display:"flex",justifyContent:"center",paddingLeft:"5px",...m.activeStyles({display:"none"},!!(b.length||e.loading||c))},children:l.jsx(R.Typography,{color:"grayText",children:"No options"})})]})})]})})})}function _0(e){var f;const{listProps:t}=e,[n,r]=T.useState({initLoading:!e.disabled,searchLoading:!1,hasNextPage:!1,isNextPageLoading:!1,paging:{page:1,pageSize:((f=e.listProps)==null?void 0:f.pageSize)||20,rows:[],total:0,totalPages:1}}),o=async(h,p)=>{var b,g;if(e.list)r(()=>{var S;const a=((S=h==null?void 0:h.search)==null?void 0:S.content)||"";return{hasNextPage:!1,isNextPageLoading:!1,paging:{page:1,pageSize:1e5,rows:e.list.options.filter(E=>e.list.searchOption?e.list.searchOption(E,a):m.search(E,a,e.list.searchFields)),total:e.list.options.length,totalPages:1},searchLoading:!1,initLoading:!1}});else{r(a=>({...a,isNextPageLoading:!0}));try{const a={page:1,pageSize:20,filter:{...t==null?void 0:t.filter,...h==null?void 0:h.filter},...m.lodashExports.omit(t,"filter"),...m.lodashExports.omit(h,"filter"),search:{fields:((b=t==null?void 0:t.search)==null?void 0:b.fields)??[],content:((g=h==null?void 0:h.search)==null?void 0:g.content)??""}};p&&(a.filter={},a.search&&(a.search.content=""),a.page=1);const y=await e.getList(a);r(S=>({initLoading:!1,searchLoading:!1,isNextPageLoading:!1,paging:{...y,rows:(h==null?void 0:h.page)===1?y.rows:S.paging.rows.concat(y.rows)},hasNextPage:y.page<y.totalPages}))}catch{}}},s=()=>(r(h=>({...h,initLoading:!0})),o(void 0,!0)),i=h=>(r(p=>({...p,initLoading:!0})),o(h)),c=h=>{o({page:n.paging.page+1,search:{content:h}})},u=h=>{r(p=>({...p,searchLoading:!0})),o({page:1,search:{content:h}})};T.useEffect(()=>{e.disabled||(r(h=>({...h,initLoading:!0})),o({page:1}))},[...e.dependencyList||[]]);const d=()=>{r(h=>({...h,initLoading:!h.initLoading}))};return{...e,loadNextPage:c,handleChangeSearch:u,paging:n.paging,hasNextPage:n.hasNextPage,isNextPageLoading:n.isNextPageLoading,searchLoading:n.searchLoading,loading:e.loading||n.initLoading,getList:i,reset:s,toggleLoading:d}}function E0(e){return l.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.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"}),l.jsx("path",{d:"M4.5 1.83337V4.16671",stroke:"#85858A",strokeLinecap:"round"}),l.jsx("path",{d:"M2.5 6.16663H13.5",stroke:"#85858A",strokeLinecap:"round"}),l.jsx("path",{d:"M11.8333 1.83337V4.16671",stroke:"#85858A",strokeLinecap:"round"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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 C0="Reset date";function T0(e){var c,u;const[t,n]=T.useState(e.value),r=!(t!=null&&t.startDate)||!(t!=null&&t.endDate)?"":X(t==null?void 0:t.startDate).format("DD/MM/YYYY")+" ~ "+X(t==null?void 0:t.endDate).format("DD/MM/YYYY");T.useEffect(()=>{n(e.value)},[e.value]);const o=T.useRef(null),s=T.useRef(null),i=T.useRef(null);return console.log("inputRef",o),console.log("labelRef",s),l.jsx(m.DateRangePicker,{initialSettings:{autoApply:!0,ranges:{Today:[X(),X()],Yesterday:[X().subtract(1,"days"),X().subtract(1,"days")],"Last 7 days":[X().subtract(6,"days"),X()],"Last 30 days":[X().subtract(29,"days"),X()],"This month":[X().startOf("month"),X().endOf("month")],"Last month":[X().subtract(1,"month").startOf("month"),X().subtract(1,"month").endOf("month")],"Reset date":[((c=e.dateReset)==null?void 0:c.startDate)??void 0,((u=e.dateReset)==null?void 0:u.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",maxDate:X(),...e.initialSettings},onApply:(d,f)=>{var y,S,E;const h=f.chosenLabel===C0,{startDate:p,endDate:b}=f,g=h?((y=e.dateReset)==null?void 0:y.startDate)??void 0:p.toDate(),a=h?((S=e.dateReset)==null?void 0:S.endDate)??void 0:b.toDate();n({startDate:g,endDate:a}),(E=e.onChange)==null||E.call(e,{startDate:g,endDate:a})},children:l.jsx(R.TextField,{inputRef:o,label:e.label??"Permit date",placeholder:"Select date range",value:r,InputLabelProps:{ref:s,shrink:!0},InputProps:{readOnly:!0,ref:i,endAdornment:l.jsx(E0,{onClick:()=>{var d;return(d=o.current)==null?void 0:d.focus()},width:24,height:24,color:"gray"})},fullWidth:!0,sx:{"& *":{cursor:"pointer"},display:"flex",justifyContent:"center",minWidth:"250px"}})})}function Mo(e){return l.jsx("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.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 jo(e){return l.jsxs("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.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:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M9 12L11 14L15 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function k0(e){return l.jsx(R.Checkbox,{sx:{"& input:disabled ~ svg":{fill:"#ddd"}},color:"primary",icon:l.jsx(Mo,{fontSize:"small"}),checkedIcon:l.jsx(jo,{fontSize:"small"}),style:{padding:0},...e})}const Er=e=>{"serviceWorker"in navigator&&navigator.serviceWorker.register(e.path).then(function(t){console.log("Registration successful, scope is:",t.scope),console.log("initialize service worker props ",e);const n=m.getMessagingInWindow(m.initializeApp({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));m.getToken(n,{serviceWorkerRegistration:t,vapidKey:e.vapidKey}).then(async r=>{if(r){console.log("current token for client: ",r);try{const s=e.baseUrl+"/notification-management/api/v1/notifications/registrations";await m.axiosInstance.post(s,{deviceToken:r})}catch(o){console.log(o)}}else console.log("No registration token available. Request permission to generate one.")}).catch(r=>{console.log("An error occurred while retrieving token. ",r)})}).catch(function(t){console.log("Service worker registration failed, error:",t)})},I0=e=>{const t=new BroadcastChannel("my-channel");t.onmessage=n=>{console.log("Broadcast chanel message",n),n&&e(r=>({...r,unread:{...r.unread,total:r.unread.total+1}}))}},M0=e=>new Promise(t=>{const n=m.getMessagingInWindow(m.initializeApp({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));m.onMessage(n,r=>{console.log("payload",r),t(r)})}),Oo=e=>{const[t,n]=T.useState({actorName:"",message:"",context:"",contextUrl:""});console.log(t);const{setNotiData:r}=T.useContext(m.CustomOpenList);function o(){const s=l.jsxs("div",{className:"notification-massage_content",children:[l.jsx("h6",{className:"notification-name",children:t==null?void 0:t.actorName}),l.jsxs("div",{className:"notification-message_service",children:[l.jsxs("span",{children:[`${t==null?void 0:t.message} `," "]}),l.jsx("span",{children:t==null?void 0:t.context})]})]});return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:Tr}),t!=null&&t.contextUrl?l.jsx("a",{className:"notification-massage_container",href:t.contextUrl,style:{display:"block"},children:s}):l.jsx("div",{className:"notification-massage_container",style:{width:"100%",display:"block"},children:s})]})}return T.useEffect(()=>{t&&Notification.permission==="granted"&&(t.actorName||t.message||t.context||t.contextUrl)&&m.notify(l.jsx(o,{}))},[t]),T.useEffect(()=>{"Notification"in window&&(console.log("notification permission",Notification.permission),Notification.permission==="default"?Notification.requestPermission(function(s){s==="granted"&&Er(e)}):Notification.permission==="granted"&&Er(e))},[Notification.permission]),T.useEffect(()=>{I0(r)},[]),M0(e).then(s=>{var i,c,u,d,f,h,p;console.log("aaa",s),n({actorName:(i=s==null?void 0:s.data)==null?void 0:i.actorName,message:(c=s==null?void 0:s.data)!=null&&c.actionKey?m.translate(`notificationAdmin.notify.actionKey.${(u=s==null?void 0:s.data)==null?void 0:u.actionKey}`,{defaultValue:`${(d=s==null?void 0:s.data)==null?void 0:d.message}`}):(f=s==null?void 0:s.data)==null?void 0:f.message,context:(h=s==null?void 0:s.data)==null?void 0:h.context,contextUrl:(p=s==null?void 0:s.data)==null?void 0:p.contextUrl}),r(b=>{var g;return{...b,unread:{...b.unread,total:((g=b.unread)==null?void 0:g.total)+1}}})}).catch(s=>console.log("failed: ",s)),l.jsx(l.Fragment,{})},j0=(e,t)=>T.cloneElement(t,{},e),O0=({children:e,providers:t})=>l.jsx(l.Fragment,{children:t.reduceRight(j0,e)}),P0=".pnf-button-primary{font-size:14px;background-color:var(--primary300);color:var(--buttonText);padding:8px 24px;border-radius:4px;border:none;cursor:pointer;transition:background-color .25s cubic-bezier(.4,0,.2,1),box-shadow .25s cubic-bezier(.4,0,.2,1),border-color .25s cubic-bezier(.4,0,.2,1),color .25s cubic-bezier(.4,0,.2,1)}.pnf-button-primary:hover{background-color:var(--buttonHover)}.pnf-container{padding-top:16px;padding-bottom:16px;gap:16px;display:flex;flex-direction:column;align-items:center;font-family:inherit}.pnf-content-wrapper{display:flex;flex-direction:column;gap:8px;align-items:center}.pnf-title{text-align:center;font-size:1.25rem;font-weight:500;margin:0}.pnf-description{text-align:center;color:#85858a;font-size:.875rem;font-weight:400;margin:0}",$0=()=>{const e=()=>{window.location.href=`${window.location.origin}/home`};return console.log("window.location.origin",window.location.origin),l.jsx(m.StyleWrapper,{styles:[P0],children:l.jsxs("div",{className:"pnf-container",children:[l.jsx("img",{width:120,height:120,src:"https://ukpcsaprod.blob.core.windows.net/lib/images/page-not-found.png",alt:"Page not found"}),l.jsxs("div",{className:"pnf-content-wrapper",children:[l.jsx("h4",{className:"pnf-title",children:"Page Not Found"}),l.jsxs("p",{className:"pnf-description",children:["We’re sorry. The page you requested could not be found. ",l.jsx("br",{}),"Please go back to the home page"]}),l.jsx("button",{className:"pnf-button-primary",onClick:e,children:"Go to homepage"})]})]})})};var $n={},Gt={};const A0=m.getAugmentedNamespace(a0);var Cr;function N0(){return Cr||(Cr=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=A0}(Gt)),Gt}var R0=vn;Object.defineProperty($n,"__esModule",{value:!0});var Po=$n.default=void 0,z0=R0(N0()),F0=l;Po=$n.default=(0,z0.default)((0,F0.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");function L0({index:e,href:t,title:n,ssr:r}){return r?l.jsx("a",{style:{color:m.color.linkPrimary,textDecoration:"none",fontSize:"inherit"},href:t,children:n},e):l.jsx(mn.Link,{style:{color:m.color.linkPrimary,textDecoration:"none",fontSize:"inherit"},to:t,children:n},e)}function D0(e){return console.log("BaseBreadcrumbs",e),e.isLoading?l.jsx(Ir,{width:300}):l.jsx(l.Fragment,{children:l.jsx(R.Breadcrumbs,{sx:{fontSize:"12px",fontFamily:"inherit"},separator:l.jsx(Po,{sx:{color:m.color.linkPrimary,fontSize:"inherit"}}),"aria-label":"breadcrumb",color:m.color.linkPrimary,children:e.data.map((t,n)=>t.onClick?l.jsx(R.Typography,{style:{color:m.color.linkPrimary,textDecoration:"none",cursor:"pointer",fontSize:"inherit",fontFamily:"inherit"},onClick:t.onClick,children:t.title||""},n):t.href?l.jsx(L0,{index:n,href:t.href,title:t.title,ssr:e.ssr}):l.jsx(R.Typography,{style:{color:t.highlight?m.color.linkPrimary:m.color.textPrimary,textDecoration:"none",fontSize:"inherit",fontFamily:"inherit"},children:t.title},n))})})}exports.FavoriteMenu=m.FavoriteMenu;exports.GlobalMenu=m.GlobalMenu;exports.IconComponent=m.IconComponent;exports.notify=m.notify;exports.pushError=m.pushError;exports.pushSuccess=m.pushSuccess;exports.pushWarning=m.pushWarning;exports.updateFavoriteItems=m.updateFavoriteItems;exports.AutocompleteOption=pn;exports.BaseBreadcrumbs=D0;exports.BaseCheckbox=k0;exports.CheckedIcon=jo;exports.HomePage=ti;exports.LanguageDropdown=Lr;exports.MultiProvider=O0;exports.NoData=Ys;exports.NotFoundPage=ei;exports.NotificationBase=Oo;exports.PageNotFound=$0;exports.PopUpBase=Js;exports.StyledAutocomplete=w0;exports.StyledDateRangePicker=T0;exports.ToastConfig=Us;exports.ToastConfigNotification=Ks;exports.TopBar=Ws;exports.UnauthorizedPage=ni;exports.UncheckedIcon=Mo;exports.usePopUp=Qs;exports.useStyledAutocomplete=_0;
91
+ } });`:Qe(12,y?` (${y})`:"",JSON.stringify(a.main)));return vr(a,"light",w,r),vr(a,"dark",_,r),a.contrastText||(a.contrastText=h(a.main)),a},x={dark:qt,light:br};return process.env.NODE_ENV!=="production"&&(x[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Se(m._extends({common:m._extends({},rt),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:c,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:d,name:"success"}),grey:Fl,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r},x[t]),o)}const Yl=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function ql(e){return Math.round(e*1e5)/1e5}const Sr={textTransform:"uppercase"},wr='"Roboto", "Helvetica", "Arial", sans-serif';function Zl(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=wr,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:f,pxToRem:h}=n,p=m._objectWithoutPropertiesLoose(n,Yl);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const x=o/14,g=h||(v=>`${v/d*x}rem`),a=(v,w,_,T,b)=>m._extends({fontFamily:r,fontWeight:v,fontSize:g(w),lineHeight:_},r===wr?{letterSpacing:`${ql(T/w)}em`}:{},b,f),y={h1:a(i,96,1.167,-1.5),h2:a(i,60,1.2,-.5),h3:a(s,48,1.167,0),h4:a(s,34,1.235,.25),h5:a(s,24,1.334,0),h6:a(c,20,1.6,.15),subtitle1:a(s,16,1.75,.15),subtitle2:a(c,14,1.57,.1),body1:a(s,16,1.5,.15),body2:a(s,14,1.43,.15),button:a(c,14,1.75,.4,Sr),caption:a(s,12,1.66,.4),overline:a(s,12,2.66,1,Sr),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Se(m._extends({htmlFontSize:d,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:u},y),p,{clone:!1})}const Xl=.2,Jl=.14,Ql=.12;function Y(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Xl})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Jl})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ql})`].join(",")}const e0=["none",Y(0,2,1,-1,0,1,1,0,0,1,3,0),Y(0,3,1,-2,0,2,2,0,0,1,5,0),Y(0,3,3,-2,0,3,4,0,0,1,8,0),Y(0,2,4,-1,0,4,5,0,0,1,10,0),Y(0,3,5,-1,0,5,8,0,0,1,14,0),Y(0,3,5,-1,0,6,10,0,0,1,18,0),Y(0,4,5,-2,0,7,10,1,0,2,16,1),Y(0,5,5,-3,0,8,10,1,0,3,14,2),Y(0,5,6,-3,0,9,12,1,0,3,16,2),Y(0,6,6,-3,0,10,14,1,0,4,18,3),Y(0,6,7,-4,0,11,15,1,0,4,20,3),Y(0,7,8,-4,0,12,17,2,0,5,22,4),Y(0,7,8,-4,0,13,19,2,0,5,24,4),Y(0,7,9,-4,0,14,21,2,0,5,26,4),Y(0,8,9,-5,0,15,22,2,0,6,28,5),Y(0,8,10,-5,0,16,24,2,0,6,30,5),Y(0,8,11,-5,0,17,26,2,0,6,32,5),Y(0,9,11,-5,0,18,28,2,0,7,34,6),Y(0,9,12,-6,0,19,29,2,0,7,36,6),Y(0,10,13,-6,0,20,31,3,0,8,38,7),Y(0,10,13,-6,0,21,33,3,0,8,40,7),Y(0,10,14,-6,0,22,35,3,0,8,42,7),Y(0,11,14,-7,0,23,36,3,0,9,44,8),Y(0,11,15,-7,0,24,38,3,0,9,46,8)],t0=["duration","easing","delay"],n0={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)"},r0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _r(e){return`${Math.round(e)}ms`}function o0(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function i0(e){const t=m._extends({},n0,e.easing),n=m._extends({},r0,e.duration),r=(o=["all"],i={})=>{const{duration:s=n.standard,easing:c=t.easeInOut,delay:u=0}=i,d=m._objectWithoutPropertiesLoose(i,t0);if(process.env.NODE_ENV!=="production"){const f=p=>typeof p=="string",h=p=>!isNaN(parseFloat(p));!f(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(s)&&!f(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),f(c)||console.error('MUI: Argument "easing" must be a string.'),!h(u)&&!f(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="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(`
92
+ `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof s=="string"?s:_r(s)} ${c} ${typeof u=="string"?u:_r(u)}`).join(",")};return m._extends({getAutoHeightDuration:o0,create:r},e,{easing:t,duration:n})}const s0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},a0=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function c0(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=m._objectWithoutPropertiesLoose(e,a0);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.":Qe(18));const c=Kl(r),u=wo(e);let d=Se(u,{mixins:El(u.breakpoints,n),palette:c,shadows:e0.slice(),typography:Zl(c,i),transitions:i0(o),zIndex:m._extends({},s0)});if(d=Se(d,s),d=t.reduce((f,h)=>Se(f,h),d),process.env.NODE_ENV!=="production"){const f=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(p,x)=>{let g;for(g in p){const a=p[g];if(f.indexOf(g)!==-1&&Object.keys(a).length>0){if(process.env.NODE_ENV!=="production"){const y=bn("",g);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${g}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${y}' syntax:`,JSON.stringify({root:{[`&.${y}`]:a}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
93
+ `))}p[g]={}}}};Object.keys(d.components).forEach(p=>{const x=d.components[p].styleOverrides;x&&p.indexOf("Mui")===0&&h(x,p)})}return d.unstable_sxConfig=m._extends({},ct,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return Ht({sx:h,theme:this})},d}const l0=c0(),u0="$$material";function d0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const f0=e=>d0(e)&&e!=="classes",h0=ll({themeId:u0,defaultTheme:l0,rootShouldForwardProp:f0});function p0(e){return bn("MuiSvgIcon",e)}Ks("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const m0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g0=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ke(t)}`,`fontSize${ke(n)}`]};return Ws(o,p0,r)},y0=h0("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ke(n.color)}`],t[`fontSize${ke(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,c,u,d,f,h,p,x,g;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:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem",large:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}[t.fontSize],color:(h=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?h:{action:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Ct=A.forwardRef(function(t,n){const r=Qs({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:c="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:h,viewBox:p="0 0 24 24"}=r,x=m._objectWithoutPropertiesLoose(r,m0),g=A.isValidElement(o)&&o.type==="svg",a=m._extends({},r,{color:s,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:g}),y={};f||(y.viewBox=p);const v=g0(a);return l.jsxs(y0,m._extends({as:c,className:m.clsx(v.root,i),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},y,x,g&&o.props,{ownerState:a,children:[g?o.props.children:o,h?l.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(Ct.propTypes={children:m.PropTypes.node,classes:m.PropTypes.object,className:m.PropTypes.string,color:m.PropTypes.oneOfType([m.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.PropTypes.string]),component:m.PropTypes.elementType,fontSize:m.PropTypes.oneOfType([m.PropTypes.oneOf(["inherit","large","medium","small"]),m.PropTypes.string]),htmlColor:m.PropTypes.string,inheritViewBox:m.PropTypes.bool,shapeRendering:m.PropTypes.string,sx:m.PropTypes.oneOfType([m.PropTypes.arrayOf(m.PropTypes.oneOfType([m.PropTypes.func,m.PropTypes.object,m.PropTypes.bool])),m.PropTypes.func,m.PropTypes.object]),titleAccess:m.PropTypes.string,viewBox:m.PropTypes.string});Ct.muiName="SvgIcon";function jo(e,t){function n(r,o){return l.jsx(Ct,m._extends({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ct.muiName,A.memo(A.forwardRef(n))}const x0={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
94
+ `)),qr.configure(e)}},b0=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ke,createChainedFunction:Es,createSvgIcon:jo,debounce:Cs,deprecatedPropType:Ts,isMuiElement:Is,ownerDocument:Gr,ownerWindow:ks,requirePropFactory:Ms,setRef:Kr,unstable_ClassNameGenerator:x0,unstable_useEnhancedEffect:Yr,unstable_useId:Ps,unsupportedProp:Os,useControlled:As,useEventCallback:$s,useForkRef:Ns,useIsFocusVisible:Vs},Symbol.toStringTag,{value:"Module"})),v0=jo(l.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");function mn(e){const{colors:t}=m.useTheme();return l.jsx(N.Stack,{sx:{cursor:"pointer"},onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,e.option)},...e.stackProps,children:l.jsx(N.Stack,{sx:{p:1,transition:"0.2s",borderRadius:"5px",cursor:"pointer",...m.activeStyles({backgroundColor:t.primary200},e.select),":hover":{backgroundColor:"#eeeeee80",borderColor:"transparent"}},children:e.renderOption(e.option)})})}const Tt=37,S0=(e,t)=>{const s=document.createElement("p");s.innerText=t,s.style.width=`${e-16-16-4}px`,document.body.appendChild(s);const c=s.offsetHeight;return document.body.removeChild(s),c>21?Tt+21:Tt};function w0(e){const[t,n]=C.useState(!1),[r,o]=C.useState(""),[i,s]=C.useState(""),[c,u]=C.useState(!1),{isRequired:d=!1}=e,f=C.useCallback(m._.debounce(S=>{var E;(E=e.handleChangeSearch)==null||E.call(e,S)},300),[e.handleChangeSearch]),h=()=>{n(!t)},p=()=>{n(!1),s(""),f("")};C.useEffect(()=>{o(e.value?e.getOptionLabel(e.value):"")},[e.value]),C.useEffect(()=>{t||o(e.value?e.getOptionLabel(e.value):"")},[t]),C.useEffect(()=>{u(e.searchLoading)},[e.paging.rows,e.searchLoading]);const x=e.paging.rows,{hasNextPage:g}=e,a=g?x.length+1:x.length,y=()=>e.isNextPageLoading?void 0:e.loadNextPage(i),v=S=>!g||S<x.length,w=S=>{o(S.target.value),t&&(s(S.target.value),f(S.target.value),u(!0))},_=C.useRef(null),T=C.useRef(null),b=C.useRef(null);return C.useEffect(()=>{var S,E,M,j;t?((S=T.current)==null||S.classList.add("Mui-focused"),(E=b.current)==null||E.classList.add("Mui-focused")):((M=T.current)==null||M.classList.remove("Mui-focused"),(j=b.current)==null||j.classList.remove("Mui-focused"))},[t]),l.jsx(N.ClickAwayListener,{onClickAway:p,mouseEvent:"onMouseDown",touchEvent:"onTouchEnd",children:l.jsx("div",{ref:_,style:{width:e.wrapperWidth??"auto"},children:l.jsxs(N.Stack,{sx:{position:"relative"},children:[l.jsx(N.TextField,{required:d,label:e.label,value:r,disabled:e.loading||e.disabled||e.readOnly,fullWidth:!0,error:e.error,helperText:e.helperText,onFocus:S=>{e.loading||e.disabled||e.readOnly||(S.preventDefault(),S.stopPropagation(),n(!0))},autoComplete:"off",onChange:w,placeholder:e.placeholder||"All options",sx:{"& input:not(:focus)":{"&::placeholder":{color:e.placeHolderColor||"#C5C5C5",opacity:1}}},InputLabelProps:{ref:T,shrink:!0},InputProps:{readOnly:e.readOnly,ref:b,endAdornment:l.jsx(N.IconButton,{size:"small",sx:{padding:"1px"},onClick:S=>{var E;S.preventDefault(),S.stopPropagation(),h(),(E=_.current)==null||E.focus()},disabled:e.loading||e.disabled||e.readOnly,children:e.loading?l.jsx(N.CircularProgress,{size:"16px"}):l.jsx(v0,{fontSize:"small",style:{transition:"0.3s"},className:t?"rotate":""})})}}),l.jsx(N.Fade,{in:t,timeout:0,unmountOnExit:!1,children:l.jsxs(N.Paper,{sx:{position:"absolute",top:"calc(100% + 2px)",zIndex:2,left:0,right:0,p:1},children:[!e.disabledAllOption&&l.jsx(N.Stack,{sx:{...m.activeStyles({display:"none"},!!c)},children:l.jsx(N.Stack,{children:l.jsx(mn,{option:void 0,select:!e.value,renderOption:()=>l.jsx(N.Typography,{children:e.placeholder||"All options"}),onClick:()=>{var S,E;p(),(S=e.onChange)==null||S.call(e,void 0),(E=e.handleChangeSearch)==null||E.call(e,"")}})})}),!c&&l.jsx(m.InfiniteLoader,{isItemLoaded:v,itemCount:a,loadMoreItems:y,threshold:5,children:({onItemsRendered:S,ref:E})=>l.jsx(kr,{ref:E,onItemsRendered:S,height:Tt*Math.min(e.itemsNumber||6,a),itemCount:a,itemSize:M=>{var j;return S0((j=_.current)==null?void 0:j.offsetWidth,x[M]?e.getOptionLabel(x[M]):"")},width:"100%",className:"styled-scroll",children:({index:M,style:j})=>{var I;const L=x[M];return v(M)?l.jsx(mn,{stackProps:{style:j},option:L,renderOption:P=>{var R;return l.jsxs(N.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[l.jsx(N.Typography,{children:e.getOptionLabel(P)}),(R=e.renderOptionTooltip)==null?void 0:R.call(e,P)]})},onClick:P=>{var R;p(),(R=e.onChange)==null||R.call(e,P)},select:((I=e.isEqual)==null?void 0:I.call(e,L,e.value))??m._.isEqual(L,e.value)}):l.jsx(N.Stack,{style:j,sx:{height:Tt,pl:1},justifyContent:"center",children:l.jsx(N.Typography,{children:"Loading..."})})}})}),l.jsx(N.Stack,{sx:{height:30,display:"flex",justifyContent:"center",paddingLeft:"5px",...m.activeStyles({display:"none"},!c)},children:l.jsx(N.Typography,{color:"grayText",children:"Searching..."})}),l.jsx(N.Stack,{sx:{height:30,display:"flex",justifyContent:"center",paddingLeft:"5px",...m.activeStyles({display:"none"},!!(x.length||e.loading||c))},children:l.jsx(N.Typography,{color:"grayText",children:"No options"})})]})})]})})})}function _0(e){var f;const{listProps:t}=e,[n,r]=C.useState({initLoading:!e.disabled,searchLoading:!1,hasNextPage:!1,isNextPageLoading:!1,paging:{page:1,pageSize:((f=e.listProps)==null?void 0:f.pageSize)||20,rows:[],total:0,totalPages:1}}),o=async(h,p)=>{var x,g;if(e.list)r(()=>{var v;const a=((v=h==null?void 0:h.search)==null?void 0:v.content)||"";return{hasNextPage:!1,isNextPageLoading:!1,paging:{page:1,pageSize:1e5,rows:e.list.options.filter(w=>e.list.searchOption?e.list.searchOption(w,a):m.search(w,a,e.list.searchFields)),total:e.list.options.length,totalPages:1},searchLoading:!1,initLoading:!1}});else{r(a=>({...a,isNextPageLoading:!0}));try{const a={page:1,pageSize:20,filter:{...t==null?void 0:t.filter,...h==null?void 0:h.filter},...m.lodashExports.omit(t,"filter"),...m.lodashExports.omit(h,"filter"),search:{fields:((x=t==null?void 0:t.search)==null?void 0:x.fields)??[],content:((g=h==null?void 0:h.search)==null?void 0:g.content)??""}};p&&(a.filter={},a.search&&(a.search.content=""),a.page=1);const y=await e.getList(a);r(v=>({initLoading:!1,searchLoading:!1,isNextPageLoading:!1,paging:{...y,rows:(h==null?void 0:h.page)===1?y.rows:v.paging.rows.concat(y.rows)},hasNextPage:y.page<y.totalPages}))}catch{}}},i=()=>(r(h=>({...h,initLoading:!0})),o(void 0,!0)),s=h=>(r(p=>({...p,initLoading:!0})),o(h)),c=h=>{o({page:n.paging.page+1,search:{content:h}})},u=h=>{r(p=>({...p,searchLoading:!0})),o({page:1,search:{content:h}})};C.useEffect(()=>{e.disabled||(r(h=>({...h,initLoading:!0})),o({page:1}))},[...e.dependencyList||[]]);const d=()=>{r(h=>({...h,initLoading:!h.initLoading}))};return{...e,loadNextPage:c,handleChangeSearch:u,paging:n.paging,hasNextPage:n.hasNextPage,isNextPageLoading:n.isNextPageLoading,searchLoading:n.searchLoading,loading:e.loading||n.initLoading,getList:s,reset:i,toggleLoading:d}}function E0(e){return l.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.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"}),l.jsx("path",{d:"M4.5 1.83337V4.16671",stroke:"#85858A",strokeLinecap:"round"}),l.jsx("path",{d:"M2.5 6.16663H13.5",stroke:"#85858A",strokeLinecap:"round"}),l.jsx("path",{d:"M11.8333 1.83337V4.16671",stroke:"#85858A",strokeLinecap:"round"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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 C0="Reset date";function T0(e){var c,u;const[t,n]=C.useState(e.value),r=!(t!=null&&t.startDate)||!(t!=null&&t.endDate)?"":se(t==null?void 0:t.startDate).format("DD/MM/YYYY")+" ~ "+se(t==null?void 0:t.endDate).format("DD/MM/YYYY");C.useEffect(()=>{n(e.value)},[e.value]);const o=C.useRef(null),i=C.useRef(null),s=C.useRef(null);return console.log("inputRef",o),console.log("labelRef",i),l.jsx(m.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":[((c=e.dateReset)==null?void 0:c.startDate)??void 0,((u=e.dateReset)==null?void 0:u.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",maxDate:se(),...e.initialSettings},onApply:(d,f)=>{var y,v,w;const h=f.chosenLabel===C0,{startDate:p,endDate:x}=f,g=h?((y=e.dateReset)==null?void 0:y.startDate)??void 0:p.toDate(),a=h?((v=e.dateReset)==null?void 0:v.endDate)??void 0:x.toDate();n({startDate:g,endDate:a}),(w=e.onChange)==null||w.call(e,{startDate:g,endDate:a})},children:l.jsx(N.TextField,{inputRef:o,label:e.label??"Permit date",placeholder:"Select date range",value:r,InputLabelProps:{ref:i,shrink:!0},InputProps:{readOnly:!0,ref:s,endAdornment:l.jsx(E0,{onClick:()=>{var d;return(d=o.current)==null?void 0:d.focus()},width:24,height:24,color:"gray"})},fullWidth:!0,sx:{"& *":{cursor:"pointer"},display:"flex",justifyContent:"center",minWidth:"250px"}})})}function Po(e){return l.jsx("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.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 Oo(e){return l.jsxs("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.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:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M9 12L11 14L15 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function I0(e){return l.jsx(N.Checkbox,{sx:{"& input:disabled ~ svg":{fill:"#ddd"}},color:"primary",icon:l.jsx(Po,{fontSize:"small"}),checkedIcon:l.jsx(Oo,{fontSize:"small"}),style:{padding:0},...e})}const Er=e=>{"serviceWorker"in navigator&&navigator.serviceWorker.register(e.path).then(function(t){console.log("Registration successful, scope is:",t.scope),console.log("initialize service worker props ",e);const n=m.getMessagingInWindow(m.initializeApp({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));m.getToken(n,{serviceWorkerRegistration:t,vapidKey:e.vapidKey}).then(async r=>{if(r){console.log("current token for client: ",r);try{const i=e.baseUrl+"/notification-management/api/v1/notifications/registrations";await m.axiosInstance.post(i,{deviceToken:r})}catch(o){console.log(o)}}else console.log("No registration token available. Request permission to generate one.")}).catch(r=>{console.log("An error occurred while retrieving token. ",r)})}).catch(function(t){console.log("Service worker registration failed, error:",t)})},k0=e=>{const t=new BroadcastChannel("my-channel");t.onmessage=n=>{console.log("Broadcast chanel message",n),n&&e(r=>({...r,unread:{...r.unread,total:r.unread.total+1}}))}},M0=e=>new Promise(t=>{const n=m.getMessagingInWindow(m.initializeApp({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));m.onMessage(n,r=>{console.log("payload",r),t(r)})}),Ao=e=>{const[t,n]=C.useState({actorName:"",message:"",context:"",contextUrl:""});console.log(t);const{setNotiData:r}=C.useContext(m.CustomOpenList);function o(){const s=l.jsxs("div",{className:"notification-massage_content",children:[l.jsx("h6",{className:"notification-name",children:t==null?void 0:t.actorName}),l.jsxs("div",{className:"notification-message_service",children:[l.jsxs("span",{children:[`${t==null?void 0:t.message} `," "]}),l.jsx("span",{children:t==null?void 0:t.context})]})]});return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:Mr}),t!=null&&t.contextUrl?l.jsx("a",{className:"notification-massage_container",href:t.contextUrl,style:{display:"block"},children:s}):l.jsx("div",{className:"notification-massage_container",style:{width:"100%",display:"block"},children:s})]})}C.useEffect(()=>{t&&Notification.permission==="granted"&&(t.actorName||t.message||t.context||t.contextUrl)&&m.notify(l.jsx(o,{}))},[t]),C.useEffect(()=>{"Notification"in window&&(console.log("notification permission",Notification.permission),Notification.permission==="default"?Notification.requestPermission(function(s){s==="granted"&&Er(e)}):Notification.permission==="granted"&&Er(e))},[Notification.permission]),C.useEffect(()=>{k0(r)},[]);const i=(s,c)=>{var u,d;if((s==null?void 0:s.actionKey)!=null){if((u=s==null?void 0:s.data)!=null&&u.brandName)return m.translate(`notificationAdmin.notify.actionKey.${s==null?void 0:s.actionKey}`,{defaultValue:`${s==null?void 0:s.message}`,brandName:s.data.brandName});switch(s==null?void 0:s.notificationType){case"deleteMultiple":return s!=null&&s.data&&((d=s==null?void 0:s.data)==null?void 0:d.length)>1?m.translate(`notificationAdmin.notify.actionKey.${s==null?void 0:s.actionKey}_multiple`,{defaultValue:`${s==null?void 0:s.actionKey}`,count:c}):m.translate(`notificationAdmin.notify.actionKey.${s==null?void 0:s.actionKey}_single`,{defaultValue:`${s==null?void 0:s.actionKey}`});default:return m.translate(`notificationAdmin.notify.actionKey.${s==null?void 0:s.actionKey}`,{defaultValue:`${s==null?void 0:s.message}`})}}return s.message};return M0(e).then(s=>{var u;console.log("aaa",s);const c=s==null?void 0:s.data;n({actorName:c==null?void 0:c.actorName,message:i(c,c!=null&&c.data?(u=c.data)==null?void 0:u.length:0),context:c==null?void 0:c.context,contextUrl:c==null?void 0:c.contextUrl}),r(d=>{var f;return{...d,unread:{...d.unread,total:((f=d.unread)==null?void 0:f.total)+1}}})}).catch(s=>console.log("failed: ",s)),l.jsx(l.Fragment,{})},j0=(e,t)=>C.cloneElement(t,{},e),P0=({children:e,providers:t})=>l.jsx(l.Fragment,{children:t.reduceRight(j0,e)}),O0=".pnf-button-primary{font-size:14px;background-color:var(--primary300);color:var(--buttonText);padding:8px 24px;border-radius:4px;border:none;cursor:pointer;transition:background-color .25s cubic-bezier(.4,0,.2,1),box-shadow .25s cubic-bezier(.4,0,.2,1),border-color .25s cubic-bezier(.4,0,.2,1),color .25s cubic-bezier(.4,0,.2,1)}.pnf-button-primary:hover{background-color:var(--buttonHover)}.pnf-container{padding-top:16px;padding-bottom:16px;gap:16px;display:flex;flex-direction:column;align-items:center;font-family:inherit}.pnf-content-wrapper{display:flex;flex-direction:column;gap:8px;align-items:center}.pnf-title{text-align:center;font-size:1.25rem;font-weight:500;margin:0}.pnf-description{text-align:center;color:#85858a;font-size:.875rem;font-weight:400;margin:0}",A0=()=>{const e=()=>{window.location.href=`${window.location.origin}/home`};return console.log("window.location.origin",window.location.origin),l.jsx(m.StyleWrapper,{styles:[O0],children:l.jsxs("div",{className:"pnf-container",children:[l.jsx("img",{width:120,height:120,src:"https://ukpcsaprod.blob.core.windows.net/lib/images/page-not-found.png",alt:"Page not found"}),l.jsxs("div",{className:"pnf-content-wrapper",children:[l.jsx("h4",{className:"pnf-title",children:"Page Not Found"}),l.jsxs("p",{className:"pnf-description",children:["We’re sorry. The page you requested could not be found. ",l.jsx("br",{}),"Please go back to the home page"]}),l.jsx("button",{className:"pnf-button-primary",onClick:e,children:"Go to homepage"})]})]})})};var An={},Zt={};const $0=m.getAugmentedNamespace(b0);var Cr;function N0(){return Cr||(Cr=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=$0}(Zt)),Zt}var R0=vn;Object.defineProperty(An,"__esModule",{value:!0});var $o=An.default=void 0,z0=R0(N0()),L0=l;$o=An.default=(0,z0.default)((0,L0.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");function F0({index:e,href:t,title:n,ssr:r}){return r?l.jsx("a",{style:{color:m.color.linkPrimary,textDecoration:"none",fontSize:"inherit"},href:t,children:n},e):l.jsx(gn.Link,{style:{color:m.color.linkPrimary,textDecoration:"none",fontSize:"inherit"},to:t,children:n},e)}function D0(e){return console.log("BaseBreadcrumbs",e),e.isLoading?l.jsx(Pr,{width:300}):l.jsx(l.Fragment,{children:l.jsx(N.Breadcrumbs,{sx:{fontSize:"12px",fontFamily:"inherit"},separator:l.jsx($o,{sx:{color:m.color.linkPrimary,fontSize:"inherit"}}),"aria-label":"breadcrumb",color:m.color.linkPrimary,children:e.data.map((t,n)=>t.onClick?l.jsx(N.Typography,{style:{color:m.color.linkPrimary,textDecoration:"none",cursor:"pointer",fontSize:"inherit",fontFamily:"inherit"},onClick:t.onClick,children:t.title||""},n):t.href?l.jsx(F0,{index:n,href:t.href,title:t.title,ssr:e.ssr}):l.jsx(N.Typography,{style:{color:t.highlight?m.color.linkPrimary:m.color.textPrimary,textDecoration:"none",fontSize:"inherit",fontFamily:"inherit"},children:t.title},n))})})}exports.FavoriteMenu=m.FavoriteMenu;exports.GlobalMenu=m.GlobalMenu;exports.IconComponent=m.IconComponent;exports.notify=m.notify;exports.pushError=m.pushError;exports.pushSuccess=m.pushSuccess;exports.pushWarning=m.pushWarning;exports.updateFavoriteItems=m.updateFavoriteItems;exports.AutocompleteOption=mn;exports.BaseBreadcrumbs=D0;exports.BaseCheckbox=I0;exports.CheckedIcon=Oo;exports.HomePage=hs;exports.LanguageDropdown=Br;exports.MultiProvider=P0;exports.NoData=is;exports.NotFoundPage=fs;exports.NotificationBase=Ao;exports.PageNotFound=A0;exports.PopUpBase=us;exports.StyledAutocomplete=w0;exports.StyledDateRangePicker=T0;exports.ToastConfig=rs;exports.ToastConfigNotification=os;exports.TopBar=ns;exports.UnauthorizedPage=ps;exports.UncheckedIcon=Po;exports.usePopUp=ds;exports.useStyledAutocomplete=_0;