ode-explorer 1.0.0-dev.202306300807 → 1.0.0-dev.202306301017

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.
package/dist/index.js CHANGED
@@ -237,9 +237,9 @@ to {
237
237
  > * {
238
238
  pointer-events: auto;
239
239
  }
240
- `,O=16,Ie=({reverseOrder:_e,position:et="top-center",toastOptions:tt,gutter:rt,children:nt,containerStyle:st,containerClassName:ot})=>{let{toasts:at,handlers:ut}=D(tt);return reactExports.createElement("div",{style:{position:"fixed",zIndex:9999,top:O,left:O,right:O,bottom:O,pointerEvents:"none",...st},className:ot,onMouseEnter:ut.startPause,onMouseLeave:ut.endPause},at.map(lt=>{let dt=lt.position||et,ct=ut.calculateOffset(lt,{reverseOrder:_e,gutter:rt,defaultPosition:et}),ft=Re(dt,ct);return reactExports.createElement(Ee,{id:lt.id,key:lt.id,onHeightUpdate:ut.updateHeight,className:lt.visible?ve:"",style:ft},lt.type==="custom"?T(lt.message,lt):nt?nt(lt):reactExports.createElement(F$1,{toast:lt,position:dt}))}))},_t=n$1;function useHotToast(_e){return{hotToast:{success:(et,tt)=>_t.custom(jsxRuntimeExports.jsx(_e,{type:"success",isToast:!0,isDismissible:tt==null?void 0:tt.isDismissible,className:"mb-12",children:et}),{duration:tt==null?void 0:tt.duration}),error:(et,tt)=>_t.custom(jsxRuntimeExports.jsx(_e,{type:"danger",isToast:!0,isDismissible:tt==null?void 0:tt.isDismissible,className:"mb-12",children:et}),{duration:tt==null?void 0:tt.duration}),info:(et,tt)=>_t.custom(jsxRuntimeExports.jsx(_e,{type:"info",isToast:!0,isDismissible:tt==null?void 0:tt.isDismissible,className:"mb-12",children:et}),{duration:tt==null?void 0:tt.duration}),warning:(et,tt)=>_t.custom(jsxRuntimeExports.jsx(_e,{type:"warning",isToast:!0,isDismissible:tt==null?void 0:tt.isDismissible,className:"mb-12",children:et}),{duration:tt==null?void 0:tt.duration}),loading:_t.loading}}}function useHover(){const[_e,et]=reactExports.useState(!1),tt=reactExports.useRef(null),rt=()=>{et(!0)},nt=()=>{et(!1)};return reactExports.useEffect(()=>{const st=tt.current;if(st)return st.addEventListener("mouseover",rt),st.addEventListener("mouseout",nt),()=>{st.removeEventListener("mouseover",rt),st.removeEventListener("mouseout",nt)}},[]),[tt,_e]}function useImage({src:_e,placeholder:et}){const[tt,rt]=reactExports.useState(_e||et),nt=reactExports.useCallback(()=>{rt(et)},[et]);return reactExports.useEffect(()=>{rt(_e)},[_e]),{imgSrc:tt,onError:nt}}function useKeyPress(_e,et){const tt=reactExports.useCallback(({code:rt})=>{et.includes(rt)&&_e()},[_e,et]);reactExports.useEffect(()=>(window.addEventListener("keydown",tt),()=>{window.removeEventListener("keydown",tt)}),[tt])}function useTitle(){const _e=typeof document<"u",[et,tt]=reactExports.useState(()=>document.title);return reactExports.useEffect(()=>{_e&&tt(document.title)},[_e]),et}function useToggle(_e=!1){const[et,tt]=reactExports.useState(_e),rt=reactExports.useCallback(()=>{tt(nt=>!nt)},[]);return[et,rt]}function useTrapFocus(){const _e=reactExports.useRef(null),et='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return reactExports.useEffect(()=>{const tt=_e.current,rt=tt.querySelectorAll(et)[0],nt=tt.querySelectorAll(et),st=_e&&(nt==null?void 0:nt[nt.length-1]),ot=at=>{at.key==="Tab"&&(at.shiftKey?document.activeElement===rt&&(st.focus(),at.preventDefault()):document.activeElement===st&&(rt.focus(),at.preventDefault()))};if(tt)return tt.addEventListener("keydown",ot),()=>{tt.removeEventListener("keydown",ot)}},[]),console.log("ref",{ref:_e}),_e}function useI18n(){const{i18n:_e}=useOdeClient();return{i18n:_e}}function useHeader({user:_e,avatar:et}){const{i18n:tt}=useI18n(),rt=reactExports.useRef(null),nt=useTitle(),[st,ot]=reactExports.useState(!0),[at,ut]=useHover(),[lt,dt]=useHover(),ct=reactExports.useId(),ft=reactExports.useId(),[ht,vt]=reactExports.useState(0),Et=et,xt=_e==null?void 0:_e.username,mt=`${tt("welcome.text.1")} ${_e==null?void 0:_e.username}`,gt=useBookmark(),{workflows:{conversation:yt,zimbra:wt,community:$t,search:Ct}}=useHasWorkflow(),St=$t.view,bt=Ct.view,Ot=yt.view,Tt=wt.view,Lt=wt.preauth,[Dt,Nt]=reactExports.useState(""),At=reactExports.useCallback(async()=>{if(Tt)try{const kt=await odeServices.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});kt.status!==200&&vt(0),vt(kt.count)}catch{console.error("error"),vt(0)}else try{const kt=await odeServices.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});vt(kt.count)}catch{console.error("error"),vt(0)}},[Tt]),jt=reactExports.useCallback(()=>{let kt="";odeServices.http().get("/userbook/preference/zimbra").then(It=>{try{It.preference&&JSON.parse(It.preference).modeExpert&&Lt?kt="/zimbra/preauth":kt=window.location.origin+"/zimbra/zimbra"}catch{kt="/zimbra/zimbra"}}),Nt(kt)},[Lt]);reactExports.useEffect(()=>{(async()=>{try{await At()}catch(kt){console.error(kt)}})(),jt()},[jt,At]);function Ft(){if(rt.current){const kt=rt.current.value;window.location.href=`/searchengine#/${kt}`}}const Pt=reactExports.useCallback(()=>{ot(!st)},[st]),Rt=async()=>{await odeServices.session().logout(),window.location.href="/auth/login"};return reactExports.useMemo(()=>({inputRef:rt,conversation:yt,zimbra:wt,community:$t,title:nt,bookmarkedApps:gt,appsRef:at,isAppsHovered:ut,popoverAppsId:ct,searchRef:lt,isSearchHovered:dt,popoverSearchId:ft,messages:ht,userAvatar:Et,userName:xt,welcomeUser:mt,communityWorkflow:St,conversationWorflow:Ot,zimbraWorkflow:Tt,searchWorkflow:bt,isCollapsed:st,msgLink:Dt,redirectToSearch:Ft,toggleCollapsedNav:Pt,handleLogout:Rt}),[at,gt,$t,St,yt,Ot,ut,st,dt,ht,Dt,ct,ft,lt,bt,nt,Pt,Et,xt,mt,wt,Tt])}function useOdeIcons(){const _e={"last-infos-widget":"ic-widget-actualites",birthday:"ic-star","calendar-widget":"ic-widget-calendar","carnet-de-bord":"ic-widget-carnet-de-bord","record-me":"ic-widget-microphone",mood:"ic-star","my-apps":"ic-widget-apps",notes:"ic-widget-notes","rss-widget":"ic-widget-rss","bookmark-widget":"ic-widget-signets",qwant:"ic-widget-qwant","qwant-junior":"ic-widget-qwant","agenda-widget":"ic-widget-agenda","cursus-widget":"ic-widget-aide-devoirs","maxicours-widget":"ic-widget-maxicours","school-widget":"ic-widget-schoolbook","universalis-widget":"ic-widget-universalis","briefme-widget":"ic-widget-briefme"};function et(at){let ut="";switch(ut=(at==null?void 0:at.icon)!==void 0?at==null?void 0:at.icon.trim().toLowerCase():"placeholder",ut&&ut.length>0?ut.endsWith("-large")&&(ut=ut.replace("-large","")):ut=(at==null?void 0:at.displayName)!==void 0?at==null?void 0:at.displayName.trim().toLowerCase():"",ut){case"admin.title":ut="admin";break;case"banques des savoirs":ut="banquesavoir";break;case"collaborativewall":ut="collaborative-wall";break;case"communautés":ut="community";break;case"directory.user":ut="userbook";break;case"emploi du temps":ut="edt";break;case"messagerie":ut="conversation";break;case"news":ut="actualites";break;case"homeworks":case"cahier de texte":ut="cahier-de-texte";break;case"diary":case"cahier de texte 2d":ut="cahier-textes";break}return ut}function tt(at){return at&&(at.startsWith("/")||at.startsWith("http://")||at.startsWith("https://"))}function rt(at){const ut=et(at);return ut?`color-app-${ut}`:"color-app-placeholder"}function nt(at){const ut=et(at);return ut?`bg-app-${ut}`:"bg-app-placeholder"}function st(at){const ut=et(at);return ut?`bg-light-${ut}`:"bg-light-placeholder"}function ot(at){return _e[at.platformConf.name]}return{getIconClass:rt,getBackgroundIconClass:nt,getBackgroundLightIconClass:st,getIconCode:et,getWidgetIconClass:ot,isIconUrl:tt}}function useXitiTrackPageLoad(){const[_e,et]=reactExports.useState("pending"),{currentApp:tt}=useOdeClient();reactExports.useEffect(()=>{rt()},[]);const rt=async()=>{if(!tt){et("[Xiti] Error, currentApp is not defined.");return}try{await odeServices.analytics().trackPageLoad(window.location.pathname,tt),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),et(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(nt){console.error("[Xiti] Error Tracking Page Load",nt),et(`[Xiti] Error Tracking Page Load: ${nt}`)}};return{xitiStatus:_e}}const ReactQueryDevtools=function(){return null};var createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;function r$1(_e){var et,tt,rt="";if(typeof _e=="string"||typeof _e=="number")rt+=_e;else if(typeof _e=="object")if(Array.isArray(_e))for(et=0;et<_e.length;et++)_e[et]&&(tt=r$1(_e[et]))&&(rt&&(rt+=" "),rt+=tt);else for(et in _e)_e[et]&&(rt&&(rt+=" "),rt+=et);return rt}function clsx(){for(var _e,et,tt=0,rt="";tt<arguments.length;)(_e=arguments[tt++])&&(et=r$1(_e))&&(rt&&(rt+=" "),rt+=et);return rt}function Main({children:_e,className:et,...tt}){const rt=clsx("container-fluid",et);return jsxRuntimeExports.jsx("main",{className:rt,...tt,children:_e})}Main.displayName="Main";const ActionBar=reactExports.forwardRef(({children:_e},et)=>jsxRuntimeExports.jsx("div",{ref:et,className:"actionbar",children:_e}));ActionBar.displayName="ActionBar";const ActionBar$1=ActionBar,SvgAlertCircle=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1ZM11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z",clipRule:"evenodd"})]}),SvgAlertCircle$1=SvgAlertCircle,SvgArrowLeft=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})]}),SvgArrowLeft$1=SvgArrowLeft,SvgArrowRight=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L17.586 12l-6.293-6.293a1 1 0 0 1 0-1.414Z",clipRule:"evenodd"})]}),SvgArrowRight$1=SvgArrowRight,SvgBookmark=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M7 4a1 1 0 0 0-1 1v14.06l5.42-3.87a1 1 0 0 1 1.16 0L18 19.06V5a1 1 0 0 0-1-1H7zM4.88 2.88A3 3 0 0 1 7 2h10a3 3 0 0 1 3 3v16a1 1 0 0 1-1.58.81L12 17.23 5.58 21.8A1 1 0 0 1 4 21V5a3 3 0 0 1 .88-2.12z"})]}),SvgBookmark$1=SvgBookmark,SvgBurgerMenu=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5ZM21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5ZM21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5Z",clipRule:"evenodd"})]}),SvgBurgerMenu$1=SvgBurgerMenu,SvgClose=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.222 4.222a1.1 1.1 0 0 1 1.556 0l14 14a1.1 1.1 0 1 1-1.556 1.556l-14-14a1.1 1.1 0 0 1 0-1.556Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.778 4.222a1.1 1.1 0 0 1 0 1.556l-14 14a1.1 1.1 0 1 1-1.556-1.556l14-14a1.1 1.1 0 0 1 1.556 0Z",clipRule:"evenodd"})]}),SvgClose$1=SvgClose,SvgCopy=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.676 3c.284-.672.853-1 1.263-1h11.423c.566 0 1.438.628 1.438 1.923v13.154c0 1.056-.58 1.668-1.1 1.858V6.923C19.7 4.99 18.3 3 16.061 3H6.676Zm-2.272.007C4.765 1.41 6.056 0 7.939 0h11.423C21.599 0 23 1.99 23 3.923v13.154c0 1.865-1.303 3.782-3.403 3.916C19.235 22.59 17.944 24 16.06 24H4.638C2.401 24 1 22.01 1 20.077V6.923c0-1.865 1.303-3.782 3.404-3.916ZM3.2 6.923C3.2 5.628 4.072 5 4.638 5h11.423c.567 0 1.439.628 1.439 1.923v13.154c0 1.295-.872 1.923-1.439 1.923H4.638c-.566 0-1.438-.628-1.438-1.923V6.923Z",clipRule:"evenodd"})]}),SvgCopy$1=SvgCopy,SvgDelete=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.955.955 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675Zm7.357.675v.954H20.636a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909H7.273v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864Zm-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227H6.318Zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955Zm4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0Z",clipRule:"evenodd"})]}),SvgDelete$1=SvgDelete,SvgEdit=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879Zm-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-9.5 9.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.212l1-4a1 1 0 0 1 .263-.465l9.5-9.5Z",clipRule:"evenodd"})]}),SvgEdit$1=SvgEdit,SvgError=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM8.293 15.707a1 1 0 0 1 0-1.414L10.586 12 8.293 9.707a1 1 0 0 1 1.414-1.414L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414 0Z",clipRule:"evenodd"})]}),SvgError$1=SvgError,SvgFiles=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77.13.29.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32Z",clipRule:"evenodd"})]}),SvgFiles$1=SvgFiles,SvgFolder=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.057 5.5A.057.057 0 0 0 3 5.557v13.03h18V7.875h-8.697a1 1 0 0 1-1-1c0-.759-.615-1.374-1.374-1.374H3.057ZM1 5.557C1 4.42 1.92 3.5 3.057 3.5h6.872c1.515 0 2.797.999 3.223 2.374H21a2 2 0 0 1 2 2v10.714a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5.557Z",clipRule:"evenodd"})]}),SvgFolder$1=SvgFolder,SvgGlobe=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.008 9.008 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71Zm4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71Zm.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11h5.884Zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13ZM7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13Zm7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71ZM12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Z",clipRule:"evenodd"})]}),SvgGlobe$1=SvgGlobe,SvgInfoCircle=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.01 17a1 1 0 0 1-1-1v-5a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1ZM13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1Z",clipRule:"evenodd"})]}),SvgInfoCircle$1=SvgInfoCircle,SvgLoader=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.672 5.558a7.96 7.96 0 0 0-9.841.397 7.95 7.95 0 0 0-1.908 9.66 7.964 7.964 0 0 0 8.949 4.12A7.948 7.948 0 0 0 19.962 12a1.021 1.021 0 1 1 2.045 0A9.994 9.994 0 0 1 7.83 21.083a10.01 10.01 0 0 1-5.634-11.027 9.991 9.991 0 0 1 9.402-8.048c2.244-.09 4.453.577 6.272 1.895a1.022 1.022 0 1 1-1.198 1.655Z",clipRule:"evenodd"})]}),SvgLoader$1=SvgLoader,SvgOptions=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),jsxRuntimeExports.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),jsxRuntimeExports.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),SvgOptions$1=SvgOptions,SvgPlus=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7V4Z",clipRule:"evenodd"})]}),SvgPlus$1=SvgPlus,SvgRafterDown=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z",clipRule:"evenodd"})]}),SvgRafterDown$1=SvgRafterDown,SvgRafterRight=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141Z",clipRule:"evenodd"})]}),SvgRafterRight$1=SvgRafterRight,SvgRafterUp=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.988 17.129a1.5 1.5 0 0 1-2.117-.141L12 10.278l-5.871 6.71a1.5 1.5 0 0 1-2.258-1.976l7-8a1.5 1.5 0 0 1 2.258 0l7 8a1.5 1.5 0 0 1-.141 2.117Z",clipRule:"evenodd"})]}),SvgRafterUp$1=SvgRafterUp,SvgSave=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4H5Zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2H7Zm1 12v6h8v-6H8Z",clipRule:"evenodd"})]}),SvgSave$1=SvgSave,SvgSearch$2=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1Z",clipRule:"evenodd"})]}),SvgSearch$1$1=SvgSearch$2,SvgSuccessOutline=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.59 8.192a1 1 0 0 1 .218 1.397l-4.375 6a1 1 0 0 1-1.584.042L8.224 12.4a1 1 0 0 1 1.552-1.261l1.806 2.223 3.61-4.951a1 1 0 0 1 1.397-.219Z",clipRule:"evenodd"})]}),SvgSuccessOutline$1=SvgSuccessOutline,SvgUsers=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:jsxRuntimeExports.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272ZM15.187 1.384a1 1 0 0 1 1.036-.962 5.129 5.129 0 0 1 2.11 9.71 1 1 0 1 1-.896-1.788 3.129 3.129 0 0 0-1.288-5.924 1 1 0 0 1-.962-1.036ZM1.505 15.694C2.481 14.622 3.825 14 5.25 14h8.5c1.424 0 2.769.622 3.744 1.694.974 1.068 1.506 2.498 1.506 3.973V22a1 1 0 1 1-2 0v-2.333c0-1.001-.363-1.945-.984-2.627-.618-.679-1.436-1.04-2.266-1.04h-8.5c-.83 0-1.648.361-2.266 1.04-.621.682-.984 1.626-.984 2.627V22a1 1 0 1 1-2 0v-2.333c0-1.475.533-2.905 1.505-3.974ZM9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7ZM4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"users_svg__a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),SvgUsers$1=SvgUsers,Alert=reactExports.forwardRef(({type:_e="success",className:et="",children:tt,button:rt,isDismissible:nt=!1,isToast:st=!1,autoClose:ot=!1,autoCloseDelay:at=3e3,onClose:ut,onVisibilityChange:lt},dt)=>{const[ct,ft]=reactExports.useState(!0),ht=reactExports.useRef(null),vt=reactExports.useCallback(()=>{ft(!1),ut==null||ut()},[ut]);reactExports.useImperativeHandle(dt,()=>({show:Et,hide:vt,...ht.current})),reactExports.useLayoutEffect(()=>{lt==null||lt(ct)},[ct,lt]),reactExports.useEffect(()=>{ot&&ct&&setTimeout(()=>{vt()},at)},[ot,at,vt,ct]);const Et=()=>{ft(!0)},xt={success:{icon:jsxRuntimeExports.jsx(SvgSuccessOutline$1,{}),classModifier:"alert-success"},warning:{icon:jsxRuntimeExports.jsx(SvgAlertCircle$1,{}),classModifier:"alert-warning"},info:{icon:jsxRuntimeExports.jsx(SvgInfoCircle$1,{}),classModifier:"alert-info"},danger:{icon:jsxRuntimeExports.jsx(SvgError$1,{}),classModifier:"alert-danger"}},mt={"is-dismissible":nt,"is-toast ":st},gt=clsx("alert gap-12",xt[_e].classModifier,mt,et);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ct?jsxRuntimeExports.jsxs("div",{ref:ht,className:gt,role:"alert",children:[xt[_e].icon,jsxRuntimeExports.jsx("div",{className:"alert-content small",children:tt}),rt&&jsxRuntimeExports.jsx("div",{className:"ms-12",children:rt}),nt&&jsxRuntimeExports.jsx("div",{className:"btn-close-container",children:jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:vt})}),ot&&jsxRuntimeExports.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});Alert.displayName="Alert";const Alert$1=Alert,Context$1=reactExports.createContext({code:"placeholder",displayName:"Application",headingStyle:"h3",icon:"",isHeading:!1,level:"h1",bgCode:""});function useAppCard(){const _e=reactExports.useContext(Context$1);if(!_e)throw new Error("AppCard compound components cannot be rendered outside the AppCard component");return _e}const Heading=reactExports.forwardRef(({level:_e="h1",headingStyle:et="h1",children:tt,className:rt,...nt},st)=>{const ot=clsx(et,rt);return jsxRuntimeExports.jsx(_e,{ref:st,className:ot,...nt,children:tt})});Heading.displayName="Heading";const Heading$1=Heading,AppName=()=>{const{isHeading:_e,level:et,headingStyle:tt,displayName:rt}=useAppCard();return _e?jsxRuntimeExports.jsx(Heading$1,{level:et,headingStyle:tt,children:rt}):jsxRuntimeExports.jsx("p",{children:rt})};AppName.displayName="AppCard.Name";const AppName$1=AppName,Root$3=reactExports.forwardRef(({app:_e,as:et,children:tt,headingStyle:rt,isHeading:nt=!1,level:st,className:ot,...at},ut)=>{const{getIconClass:lt,getBackgroundLightIconClass:dt,getIconCode:ct}=useOdeIcons(),{name:ft,icon:ht}=_e,vt=ft||"Application",Et=clsx("application application-react application-title",lt(_e),ot),xt=reactExports.useMemo(()=>({icon:ht,displayName:vt,isHeading:nt,level:st,headingStyle:rt,code:ct(_e),bgCode:dt(_e)}),[_e,vt,dt,ct,rt,ht,nt,st]),mt=et||"div";return jsxRuntimeExports.jsx(Context$1.Provider,{value:xt,children:jsxRuntimeExports.jsx(mt,{ref:ut,className:Et,...at,children:tt})})}),AppCard=Object.assign(Root$3,{Name:AppName$1});Root$3.displayName="AppCard";const AppCard$1=AppCard,Image=reactExports.forwardRef(({src:_e,alt:et,imgPlaceholder:tt,ratio:rt,objectFit:nt,className:st,...ot},at)=>{const ut=tt??"/assets/themes/ode-bootstrap/images/image-placeholder.png",{imgSrc:lt,onError:dt}=useImage({src:_e,placeholder:ut}),ct={"ratio ratio-1x1":rt==="1","ratio ratio-4x3":rt==="4","ratio ratio-16x9":rt==="16","ratio ratio-21x9":rt==="21"},ft={"object-fit-contain":nt==="contain","object-fit-cover":nt==="cover","object-fit-fill":nt==="fill","object-fit-scale":nt==="scale","object-fit-none":nt==="none"},ht=clsx({...ct}),vt=clsx({...ft},st),Et=jsxRuntimeExports.jsx("img",{alt:et,onError:dt,ref:at,src:lt,className:vt,...ot});return rt?jsxRuntimeExports.jsx("div",{className:ht,children:Et}):Et});Image.displayName="Image";const Image$1=Image,AppIcon=reactExports.forwardRef(({app:_e,size:et="24",iconFit:tt="contain",variant:rt="square"},nt)=>{const{isIconUrl:st,getIconCode:ot}=useOdeIcons(),at=rt==="square",ut=rt==="rounded",lt=rt==="circle",dt=tt==="contain",ct=tt==="ratio",ft={"icon-xs":et==="24","icon-sm":et==="40","icon-md":et==="48","icon-lg":et==="80","icon-xl":et==="160"},ht={square:at,rounded:ut,"rounded-circle":lt},vt={"icon-contain":dt,"icon-ratio":ct},Et=(_e==null?void 0:_e.icon)!==void 0?_e.icon:"placeholder",xt=(_e==null?void 0:_e.displayName)!==void 0?_e.displayName:"",mt=_e?ot(_e):"",gt=st(Et),yt=mt||"placeholder",wt=clsx("app-icon",{...ft,...ht,...vt,[`bg-light-${yt}`]:yt&&!dt,[`color-app-${yt}`]:yt});return gt?jsxRuntimeExports.jsx(Image$1,{src:Et,alt:xt,objectFit:"contain",width:et,height:et,className:"h-full"}):jsxRuntimeExports.jsx("div",{className:wt,style:{width:et+"px",height:et+"px"},children:jsxRuntimeExports.jsx("svg",{ref:nt,width:et,height:et,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:jsxRuntimeExports.jsx("use",{xlinkHref:`/assets/themes/ode-bootstrap/icons/apps.svg#${yt}`})})})});AppIcon.displayName="AppIcon";const AppIcon$1=AppIcon,Avatar=reactExports.forwardRef(({variant:_e="square",size:et="md",alt:tt,src:rt,imgPlaceholder:nt,className:st,...ot},at)=>{const ut=nt||"/assets/themes/ode-bootstrap/images/no-avatar.svg",lt=clsx("avatar",{"avatar-xs":et==="xs","avatar-sm":et==="sm","avatar-md":et==="md","avatar-lg":et==="lg","avatar-xl":et==="xl",square:_e==="square",rounded:_e==="rounded","rounded-circle":_e==="circle"},st);return jsxRuntimeExports.jsx("div",{ref:at,className:lt,children:jsxRuntimeExports.jsx(Image$1,{src:rt||ut,alt:tt,imgPlaceholder:ut,...ot})})});Avatar.displayName="Avatar";const Avatar$1=Avatar,Loading=reactExports.forwardRef((_e,et)=>{const{isLoading:tt,loadingIcon:rt,loadingPosition:nt="left",children:st,...ot}=_e,at=()=>{let lt;return rt?lt=rt:lt=jsxRuntimeExports.jsx(SvgLoader$1,{...ot,"aria-label":"Loading"}),lt},ut=clsx("loading",{"is-loading":tt});return jsxRuntimeExports.jsxs("div",{className:ut,role:"status",ref:et,children:[(!nt||nt==="left")&&at(),st,nt==="right"&&at()]})});Loading.displayName="Loading";const Loading$1=Loading,Button=reactExports.forwardRef(({color:_e="primary",type:et="button",size:tt="md",children:rt,isLoading:nt,loadingIcon:st,loadingPosition:ot,leftIcon:at,rightIcon:ut,className:lt,variant:dt="filled",...ct},ft)=>{const ht=clsx("btn",{[`btn-filled btn-${_e}`]:dt==="filled",[`btn-${dt}-${_e}`]:dt==="outline"||dt==="ghost","btn-icon":!rt,"btn-loading":nt,"btn-lg":tt==="lg","btn-sm":tt==="sm"},lt);return jsxRuntimeExports.jsx("button",{ref:ft,className:ht,type:et,...ct,children:nt?jsxRuntimeExports.jsx(Loading$1,{isLoading:!0,loadingIcon:st,loadingPosition:ot,children:rt}):jsxRuntimeExports.jsxs("span",{children:[at,rt,ut]})})});Button.displayName="Button";const Button$1=Button,IconButton=reactExports.forwardRef(({icon:_e,className:et,...tt},rt)=>{const nt={...tt,className:clsx("btn-icon btn-sm",et)};return jsxRuntimeExports.jsx(Button$1,{ref:rt,...nt,children:_e})});IconButton.displayName="IconButton";const IconButton$1=IconButton,SearchButton=reactExports.forwardRef(({icon:_e=jsxRuntimeExports.jsx(SvgSearch$1$1,{}),onClick:et,...tt},rt)=>{const nt=clsx("btn-search btn-sm");return jsxRuntimeExports.jsx(IconButton$1,{ref:rt,className:nt,icon:_e,...tt,onClick:et})});SearchButton.displayName="SearchButton";const SearchButton$1=SearchButton,SvgCommunity=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.804c.49.705.733 1.474.733 2.307 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624Z"})]}),SvgCommunity$1=SvgCommunity,SvgDisconnect=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z"})]}),SvgDisconnect$1=SvgDisconnect,SvgHome=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111Zm3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363Z"})]}),SvgHome$1=SvgHome,SvgMyApps=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z"})]}),SvgMyApps$1=SvgMyApps,SvgNeoAssistance=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12ZM7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.668.668 0 0 1-.945.121L7.27 8.63a.718.718 0 0 1-.147-.963ZM9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03 0 1.119-.883 2.029-1.968 2.029-1.086 0-1.969-.91-1.969-2.03Z",clipRule:"evenodd"})]}),SvgNeoAssistance$1=SvgNeoAssistance,SvgNeoMessaging=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216H.5Zm0-2.738V8.573l5.848 3.531L.5 18.52Zm0-12.084V3.048h23.023v3.387l-11.511 6.847L.5 6.435Zm17.176 5.67 5.848-3.532v9.946l-5.848-6.415Z"})]}),SvgNeoMessaging$1=SvgNeoMessaging,SvgNewRelease=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53h2.14zm0 4.4v-2.2h-2.14v2.2h2.14zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"})]}),SvgNewRelease$1=SvgNewRelease,SvgOneAssistance=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M11.684 2C8.66 2 6.702 3.277 5.165 5.556A.958.958 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6Zm-.38 14.588c-1.446 0-2.624 1.214-2.624 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706Z"})]}),SvgOneAssistance$1=SvgOneAssistance,SvgOneMessaging=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334Zm10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.995 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837Z",clipRule:"evenodd"})]}),SvgOneMessaging$1=SvgOneMessaging,SvgOneProfile=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51Zm0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3Z"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"one-profile_svg__a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),SvgOneProfile$1=SvgOneProfile,SvgSearch=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628Zm2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486Z"})]}),SvgSearch$1=SvgSearch,SvgUserbook=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z"})]}),SvgUserbook$1=SvgUserbook;var __defProp=Object.defineProperty,__export=(_e,et)=>{for(var tt in et)__defProp(_e,tt,{get:et[tt],enumerable:!0})},globals_exports={};__export(globals_exports,{assign:()=>assign,colors:()=>colors,createStringInterpolator:()=>createStringInterpolator,skipAnimation:()=>skipAnimation,to:()=>to,willAdvance:()=>willAdvance});var updateQueue=makeQueue(),raf=_e=>schedule(_e,updateQueue),writeQueue=makeQueue();raf.write=_e=>schedule(_e,writeQueue);var onStartQueue=makeQueue();raf.onStart=_e=>schedule(_e,onStartQueue);var onFrameQueue=makeQueue();raf.onFrame=_e=>schedule(_e,onFrameQueue);var onFinishQueue=makeQueue();raf.onFinish=_e=>schedule(_e,onFinishQueue);var timeouts=[];raf.setTimeout=(_e,et)=>{const tt=raf.now()+et,rt=()=>{const st=timeouts.findIndex(ot=>ot.cancel==rt);~st&&timeouts.splice(st,1),pendingCount-=~st?1:0},nt={time:tt,handler:_e,cancel:rt};return timeouts.splice(findTimeout(tt),0,nt),pendingCount+=1,start(),nt};var findTimeout=_e=>~(~timeouts.findIndex(et=>et.time>_e)||~timeouts.length);raf.cancel=_e=>{onStartQueue.delete(_e),onFrameQueue.delete(_e),onFinishQueue.delete(_e),updateQueue.delete(_e),writeQueue.delete(_e)};raf.sync=_e=>{sync=!0,raf.batchedUpdates(_e),sync=!1};raf.throttle=_e=>{let et;function tt(){try{_e(...et)}finally{et=null}}function rt(...nt){et=nt,raf.onStart(tt)}return rt.handler=_e,rt.cancel=()=>{onStartQueue.delete(tt),et=null},rt};var nativeRaf=typeof window<"u"?window.requestAnimationFrame:()=>{};raf.use=_e=>nativeRaf=_e;raf.now=typeof performance<"u"?()=>performance.now():Date.now;raf.batchedUpdates=_e=>_e();raf.catch=console.error;raf.frameLoop="always";raf.advance=()=>{raf.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):update()};var ts=-1,pendingCount=0,sync=!1;function schedule(_e,et){sync?(et.delete(_e),_e(0)):(et.add(_e),start())}function start(){ts<0&&(ts=0,raf.frameLoop!=="demand"&&nativeRaf(loop))}function stop(){ts=-1}function loop(){~ts&&(nativeRaf(loop),raf.batchedUpdates(update))}function update(){const _e=ts;ts=raf.now();const et=findTimeout(ts);if(et&&(eachSafely(timeouts.splice(0,et),tt=>tt.handler()),pendingCount-=et),!pendingCount){stop();return}onStartQueue.flush(),updateQueue.flush(_e?Math.min(64,ts-_e):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush()}function makeQueue(){let _e=new Set,et=_e;return{add(tt){pendingCount+=et==_e&&!_e.has(tt)?1:0,_e.add(tt)},delete(tt){return pendingCount-=et==_e&&_e.has(tt)?1:0,_e.delete(tt)},flush(tt){et.size&&(_e=new Set,pendingCount-=et.size,eachSafely(et,rt=>rt(tt)&&_e.add(rt)),pendingCount+=_e.size,et=_e)}}}function eachSafely(_e,et){_e.forEach(tt=>{try{et(tt)}catch(rt){raf.catch(rt)}})}function noop(){}var defineHidden=(_e,et,tt)=>Object.defineProperty(_e,et,{value:tt,writable:!0,configurable:!0}),is={arr:Array.isArray,obj:_e=>!!_e&&_e.constructor.name==="Object",fun:_e=>typeof _e=="function",str:_e=>typeof _e=="string",num:_e=>typeof _e=="number",und:_e=>_e===void 0};function isEqual(_e,et){if(is.arr(_e)){if(!is.arr(et)||_e.length!==et.length)return!1;for(let tt=0;tt<_e.length;tt++)if(_e[tt]!==et[tt])return!1;return!0}return _e===et}var each=(_e,et)=>_e.forEach(et);function eachProp(_e,et,tt){if(is.arr(_e)){for(let rt=0;rt<_e.length;rt++)et.call(tt,_e[rt],`${rt}`);return}for(const rt in _e)_e.hasOwnProperty(rt)&&et.call(tt,_e[rt],rt)}var toArray=_e=>is.und(_e)?[]:is.arr(_e)?_e:[_e];function flush(_e,et){if(_e.size){const tt=Array.from(_e);_e.clear(),each(tt,et)}}var flushCalls=(_e,...et)=>flush(_e,tt=>tt(...et)),isSSR=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),createStringInterpolator,to,colors=null,skipAnimation=!1,willAdvance=noop,assign=_e=>{_e.to&&(to=_e.to),_e.now&&(raf.now=_e.now),_e.colors!==void 0&&(colors=_e.colors),_e.skipAnimation!=null&&(skipAnimation=_e.skipAnimation),_e.createStringInterpolator&&(createStringInterpolator=_e.createStringInterpolator),_e.requestAnimationFrame&&raf.use(_e.requestAnimationFrame),_e.batchedUpdates&&(raf.batchedUpdates=_e.batchedUpdates),_e.willAdvance&&(willAdvance=_e.willAdvance),_e.frameLoop&&(raf.frameLoop=_e.frameLoop)},startQueue=new Set,currentFrame=[],prevFrame=[],priority=0,frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(_e){priority>_e.priority?(startQueue.add(_e),raf.onStart(flushStartQueue)):(startSafely(_e),raf(advance))},advance,sort(_e){if(priority)raf.onFrame(()=>frameLoop.sort(_e));else{const et=currentFrame.indexOf(_e);~et&&(currentFrame.splice(et,1),startUnsafely(_e))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(_e){currentFrame.includes(_e)||startUnsafely(_e)}function startUnsafely(_e){currentFrame.splice(findIndex(currentFrame,et=>et.priority>_e.priority),0,_e)}function advance(_e){const et=prevFrame;for(let tt=0;tt<currentFrame.length;tt++){const rt=currentFrame[tt];priority=rt.priority,rt.idle||(willAdvance(rt),rt.advance(_e),rt.idle||et.push(rt))}return priority=0,prevFrame=currentFrame,prevFrame.length=0,currentFrame=et,currentFrame.length>0}function findIndex(_e,et){const tt=_e.findIndex(et);return tt<0?_e.length:tt}var clamp=(_e,et,tt)=>Math.min(Math.max(tt,_e),et),colors2={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call(..._e){return"\\(\\s*("+_e.join(")\\s*,\\s*(")+")\\s*\\)"}var rgb=new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor(_e){let et;return typeof _e=="number"?_e>>>0===_e&&_e>=0&&_e<=4294967295?_e:null:(et=hex6.exec(_e))?parseInt(et[1]+"ff",16)>>>0:colors&&colors[_e]!==void 0?colors[_e]:(et=rgb.exec(_e))?(parse255(et[1])<<24|parse255(et[2])<<16|parse255(et[3])<<8|255)>>>0:(et=rgba.exec(_e))?(parse255(et[1])<<24|parse255(et[2])<<16|parse255(et[3])<<8|parse1(et[4]))>>>0:(et=hex3.exec(_e))?parseInt(et[1]+et[1]+et[2]+et[2]+et[3]+et[3]+"ff",16)>>>0:(et=hex8.exec(_e))?parseInt(et[1],16)>>>0:(et=hex4.exec(_e))?parseInt(et[1]+et[1]+et[2]+et[2]+et[3]+et[3]+et[4]+et[4],16)>>>0:(et=hsl.exec(_e))?(hslToRgb(parse360(et[1]),parsePercentage(et[2]),parsePercentage(et[3]))|255)>>>0:(et=hsla.exec(_e))?(hslToRgb(parse360(et[1]),parsePercentage(et[2]),parsePercentage(et[3]))|parse1(et[4]))>>>0:null}function hue2rgb(_e,et,tt){return tt<0&&(tt+=1),tt>1&&(tt-=1),tt<1/6?_e+(et-_e)*6*tt:tt<1/2?et:tt<2/3?_e+(et-_e)*(2/3-tt)*6:_e}function hslToRgb(_e,et,tt){const rt=tt<.5?tt*(1+et):tt+et-tt*et,nt=2*tt-rt,st=hue2rgb(nt,rt,_e+1/3),ot=hue2rgb(nt,rt,_e),at=hue2rgb(nt,rt,_e-1/3);return Math.round(st*255)<<24|Math.round(ot*255)<<16|Math.round(at*255)<<8}function parse255(_e){const et=parseInt(_e,10);return et<0?0:et>255?255:et}function parse360(_e){return(parseFloat(_e)%360+360)%360/360}function parse1(_e){const et=parseFloat(_e);return et<0?0:et>1?255:Math.round(et*255)}function parsePercentage(_e){const et=parseFloat(_e);return et<0?0:et>100?1:et/100}function colorToRgba(_e){let et=normalizeColor(_e);if(et===null)return _e;et=et||0;const tt=(et&4278190080)>>>24,rt=(et&16711680)>>>16,nt=(et&65280)>>>8,st=(et&255)/255;return`rgba(${tt}, ${rt}, ${nt}, ${st})`}var createInterpolator=(_e,et,tt)=>{if(is.fun(_e))return _e;if(is.arr(_e))return createInterpolator({range:_e,output:et,extrapolate:tt});if(is.str(_e.output[0]))return createStringInterpolator(_e);const rt=_e,nt=rt.output,st=rt.range||[0,1],ot=rt.extrapolateLeft||rt.extrapolate||"extend",at=rt.extrapolateRight||rt.extrapolate||"extend",ut=rt.easing||(lt=>lt);return lt=>{const dt=findRange(lt,st);return interpolate(lt,st[dt],st[dt+1],nt[dt],nt[dt+1],ut,ot,at,rt.map)}};function interpolate(_e,et,tt,rt,nt,st,ot,at,ut){let lt=ut?ut(_e):_e;if(lt<et){if(ot==="identity")return lt;ot==="clamp"&&(lt=et)}if(lt>tt){if(at==="identity")return lt;at==="clamp"&&(lt=tt)}return rt===nt?rt:et===tt?_e<=et?rt:nt:(et===-1/0?lt=-lt:tt===1/0?lt=lt-et:lt=(lt-et)/(tt-et),lt=st(lt),rt===-1/0?lt=-lt:nt===1/0?lt=lt+rt:lt=lt*(nt-rt)+rt,lt)}function findRange(_e,et){for(var tt=1;tt<et.length-1&&!(et[tt]>=_e);++tt);return tt-1}var steps=(_e,et="end")=>tt=>{tt=et==="end"?Math.min(tt,.999):Math.max(tt,.001);const rt=tt*_e,nt=et==="end"?Math.floor(rt):Math.ceil(rt);return clamp(0,1,nt/_e)},c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*Math.PI/3,c5=2*Math.PI/4.5,bounceOut=_e=>_e<1/2.75?7.5625*_e*_e:_e<2/2.75?7.5625*(_e-=1.5/2.75)*_e+.75:_e<2.5/2.75?7.5625*(_e-=2.25/2.75)*_e+.9375:7.5625*(_e-=2.625/2.75)*_e+.984375,easings={linear:_e=>_e,easeInQuad:_e=>_e*_e,easeOutQuad:_e=>1-(1-_e)*(1-_e),easeInOutQuad:_e=>_e<.5?2*_e*_e:1-Math.pow(-2*_e+2,2)/2,easeInCubic:_e=>_e*_e*_e,easeOutCubic:_e=>1-Math.pow(1-_e,3),easeInOutCubic:_e=>_e<.5?4*_e*_e*_e:1-Math.pow(-2*_e+2,3)/2,easeInQuart:_e=>_e*_e*_e*_e,easeOutQuart:_e=>1-Math.pow(1-_e,4),easeInOutQuart:_e=>_e<.5?8*_e*_e*_e*_e:1-Math.pow(-2*_e+2,4)/2,easeInQuint:_e=>_e*_e*_e*_e*_e,easeOutQuint:_e=>1-Math.pow(1-_e,5),easeInOutQuint:_e=>_e<.5?16*_e*_e*_e*_e*_e:1-Math.pow(-2*_e+2,5)/2,easeInSine:_e=>1-Math.cos(_e*Math.PI/2),easeOutSine:_e=>Math.sin(_e*Math.PI/2),easeInOutSine:_e=>-(Math.cos(Math.PI*_e)-1)/2,easeInExpo:_e=>_e===0?0:Math.pow(2,10*_e-10),easeOutExpo:_e=>_e===1?1:1-Math.pow(2,-10*_e),easeInOutExpo:_e=>_e===0?0:_e===1?1:_e<.5?Math.pow(2,20*_e-10)/2:(2-Math.pow(2,-20*_e+10))/2,easeInCirc:_e=>1-Math.sqrt(1-Math.pow(_e,2)),easeOutCirc:_e=>Math.sqrt(1-Math.pow(_e-1,2)),easeInOutCirc:_e=>_e<.5?(1-Math.sqrt(1-Math.pow(2*_e,2)))/2:(Math.sqrt(1-Math.pow(-2*_e+2,2))+1)/2,easeInBack:_e=>c3*_e*_e*_e-c1*_e*_e,easeOutBack:_e=>1+c3*Math.pow(_e-1,3)+c1*Math.pow(_e-1,2),easeInOutBack:_e=>_e<.5?Math.pow(2*_e,2)*((c2+1)*2*_e-c2)/2:(Math.pow(2*_e-2,2)*((c2+1)*(_e*2-2)+c2)+2)/2,easeInElastic:_e=>_e===0?0:_e===1?1:-Math.pow(2,10*_e-10)*Math.sin((_e*10-10.75)*c4),easeOutElastic:_e=>_e===0?0:_e===1?1:Math.pow(2,-10*_e)*Math.sin((_e*10-.75)*c4)+1,easeInOutElastic:_e=>_e===0?0:_e===1?1:_e<.5?-(Math.pow(2,20*_e-10)*Math.sin((20*_e-11.125)*c5))/2:Math.pow(2,-20*_e+10)*Math.sin((20*_e-11.125)*c5)/2+1,easeInBounce:_e=>1-bounceOut(1-_e),easeOutBounce:bounceOut,easeInOutBounce:_e=>_e<.5?(1-bounceOut(1-2*_e))/2:(1+bounceOut(2*_e-1))/2,steps},$get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=_e=>!!(_e&&_e[$get]),getFluidValue=_e=>_e&&_e[$get]?_e[$get]():_e,getFluidObservers=_e=>_e[$observers]||null;function callFluidObserver(_e,et){_e.eventObserved?_e.eventObserved(et):_e(et)}function callFluidObservers(_e,et){const tt=_e[$observers];tt&&tt.forEach(rt=>{callFluidObserver(rt,et)})}var FluidValue=class{constructor(_e){if(!_e&&!(_e=this.get))throw Error("Unknown getter");setFluidGetter(this,_e)}},setFluidGetter=(_e,et)=>setHidden(_e,$get,et);function addFluidObserver(_e,et){if(_e[$get]){let tt=_e[$observers];tt||setHidden(_e,$observers,tt=new Set),tt.has(et)||(tt.add(et),_e.observerAdded&&_e.observerAdded(tt.size,et))}return et}function removeFluidObserver(_e,et){const tt=_e[$observers];if(tt&&tt.has(et)){const rt=tt.size-1;rt?tt.delete(et):_e[$observers]=null,_e.observerRemoved&&_e.observerRemoved(rt,et)}}var setHidden=(_e,et,tt)=>Object.defineProperty(_e,et,{value:tt,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=_e=>{const[et,tt]=parseCSSVariable(_e);if(!et||isSSR())return _e;const rt=window.getComputedStyle(document.documentElement).getPropertyValue(et);if(rt)return rt.trim();if(tt&&tt.startsWith("--")){const nt=window.getComputedStyle(document.documentElement).getPropertyValue(tt);return nt||_e}else{if(tt&&cssVariableRegex.test(tt))return variableToRgba(tt);if(tt)return tt}return _e},parseCSSVariable=_e=>{const et=cssVariableRegex.exec(_e);if(!et)return[,];const[,tt,rt]=et;return[tt,rt]},namedColorRegex,rgbaRound=(_e,et,tt,rt,nt)=>`rgba(${Math.round(et)}, ${Math.round(tt)}, ${Math.round(rt)}, ${nt})`,createStringInterpolator2=_e=>{namedColorRegex||(namedColorRegex=colors?new RegExp(`(${Object.keys(colors).join("|")})(?!\\w)`,"g"):/^\b$/);const et=_e.output.map(st=>getFluidValue(st).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba)),tt=et.map(st=>st.match(numberRegex).map(Number)),nt=tt[0].map((st,ot)=>tt.map(at=>{if(!(ot in at))throw Error('The arity of each "output" value must be equal');return at[ot]})).map(st=>createInterpolator({..._e,output:st}));return st=>{var ut;const ot=!unitRegex.test(et[0])&&((ut=et.find(lt=>unitRegex.test(lt)))==null?void 0:ut.replace(numberRegex,""));let at=0;return et[0].replace(numberRegex,()=>`${nt[at++](st)}${ot||""}`).replace(rgbaRegex,rgbaRound)}},prefix="react-spring: ",once=_e=>{const et=_e;let tt=!1;if(typeof et!="function")throw new TypeError(`${prefix}once requires a function parameter`);return(...rt)=>{tt||(et(...rt),tt=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function isAnimatedString(_e){return is.str(_e)&&(_e[0]=="#"||/\d/.test(_e)||!isSSR()&&cssVariableRegex.test(_e)||_e in(colors||{}))}var useIsomorphicLayoutEffect=isSSR()?reactExports.useEffect:reactExports.useLayoutEffect,useIsMounted=()=>{const _e=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>(_e.current=!0,()=>{_e.current=!1}),[]),_e};function useForceUpdate(){const _e=reactExports.useState()[1],et=useIsMounted();return()=>{et.current&&_e(Math.random())}}function useMemoOne(_e,et){const[tt]=reactExports.useState(()=>({inputs:et,result:_e()})),rt=reactExports.useRef(),nt=rt.current;let st=nt;return st?et&&st.inputs&&areInputsEqual(et,st.inputs)||(st={inputs:et,result:_e()}):st=tt,reactExports.useEffect(()=>{rt.current=st,nt==tt&&(tt.inputs=tt.result=void 0)},[st]),st.result}function areInputsEqual(_e,et){if(_e.length!==et.length)return!1;for(let tt=0;tt<_e.length;tt++)if(_e[tt]!==et[tt])return!1;return!0}var useOnce=_e=>reactExports.useEffect(_e,emptyDeps),emptyDeps=[];function usePrev(_e){const et=reactExports.useRef();return reactExports.useEffect(()=>{et.current=_e}),et.current}var $node=Symbol.for("Animated:node"),isAnimated=_e=>!!_e&&_e[$node]===_e,getAnimated=_e=>_e&&_e[$node],setAnimated=(_e,et)=>defineHidden(_e,$node,et),getPayload=_e=>_e&&_e[$node]&&_e[$node].getPayload(),Animated=class{constructor(){setAnimated(this,this)}getPayload(){return this.payload||[]}},AnimatedValue=class extends Animated{constructor(_e){super(),this._value=_e,this.done=!0,this.durationProgress=0,is.num(this._value)&&(this.lastPosition=this._value)}static create(_e){return new AnimatedValue(_e)}getPayload(){return[this]}getValue(){return this._value}setValue(_e,et){return is.num(_e)&&(this.lastPosition=_e,et&&(_e=Math.round(_e/et)*et,this.done&&(this.lastPosition=_e))),this._value===_e?!1:(this._value=_e,!0)}reset(){const{done:_e}=this;this.done=!1,is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,_e&&(this.lastVelocity=null),this.v0=null)}},AnimatedString=class extends AnimatedValue{constructor(_e){super(0),this._string=null,this._toString=createInterpolator({output:[_e,_e]})}static create(_e){return new AnimatedString(_e)}getValue(){const _e=this._string;return _e??(this._string=this._toString(this._value))}setValue(_e){if(is.str(_e)){if(_e==this._string)return!1;this._string=_e,this._value=1}else if(super.setValue(_e))this._string=null;else return!1;return!0}reset(_e){_e&&(this._toString=createInterpolator({output:[this.getValue(),_e]})),this._value=0,super.reset()}},TreeContext={dependencies:null},AnimatedObject=class extends Animated{constructor(_e){super(),this.source=_e,this.setValue(_e)}getValue(_e){const et={};return eachProp(this.source,(tt,rt)=>{isAnimated(tt)?et[rt]=tt.getValue(_e):hasFluidValue(tt)?et[rt]=getFluidValue(tt):_e||(et[rt]=tt)}),et}setValue(_e){this.source=_e,this.payload=this._makePayload(_e)}reset(){this.payload&&each(this.payload,_e=>_e.reset())}_makePayload(_e){if(_e){const et=new Set;return eachProp(_e,this._addToPayload,et),Array.from(et)}}_addToPayload(_e){TreeContext.dependencies&&hasFluidValue(_e)&&TreeContext.dependencies.add(_e);const et=getPayload(_e);et&&each(et,tt=>this.add(tt))}},AnimatedArray=class extends AnimatedObject{constructor(_e){super(_e)}static create(_e){return new AnimatedArray(_e)}getValue(){return this.source.map(_e=>_e.getValue())}setValue(_e){const et=this.getPayload();return _e.length==et.length?et.map((tt,rt)=>tt.setValue(_e[rt])).some(Boolean):(super.setValue(_e.map(makeAnimated)),!0)}};function makeAnimated(_e){return(isAnimatedString(_e)?AnimatedString:AnimatedValue).create(_e)}function getAnimatedType(_e){const et=getAnimated(_e);return et?et.constructor:is.arr(_e)?AnimatedArray:isAnimatedString(_e)?AnimatedString:AnimatedValue}var withAnimated=(_e,et)=>{const tt=!is.fun(_e)||_e.prototype&&_e.prototype.isReactComponent;return reactExports.forwardRef((rt,nt)=>{const st=reactExports.useRef(null),ot=tt&&reactExports.useCallback(vt=>{st.current=updateRef(nt,vt)},[nt]),[at,ut]=getAnimatedState(rt,et),lt=useForceUpdate(),dt=()=>{const vt=st.current;if(tt&&!vt)return;(vt?et.applyAnimatedValues(vt,at.getValue(!0)):!1)===!1&&lt()},ct=new PropsObserver(dt,ut),ft=reactExports.useRef();useIsomorphicLayoutEffect(()=>(ft.current=ct,each(ut,vt=>addFluidObserver(vt,ct)),()=>{ft.current&&(each(ft.current.deps,vt=>removeFluidObserver(vt,ft.current)),raf.cancel(ft.current.update))})),reactExports.useEffect(dt,[]),useOnce(()=>()=>{const vt=ft.current;each(vt.deps,Et=>removeFluidObserver(Et,vt))});const ht=et.getComponentProps(at.getValue());return reactExports.createElement(_e,{...ht,ref:ot})})},PropsObserver=class{constructor(_e,et){this.update=_e,this.deps=et}eventObserved(_e){_e.type=="change"&&raf.write(this.update)}};function getAnimatedState(_e,et){const tt=new Set;return TreeContext.dependencies=tt,_e.style&&(_e={..._e,style:et.createAnimatedStyle(_e.style)}),_e=new AnimatedObject(_e),TreeContext.dependencies=null,[_e,tt]}function updateRef(_e,et){return _e&&(is.fun(_e)?_e(et):_e.current=et),et}var cacheKey=Symbol.for("AnimatedComponent"),createHost=(_e,{applyAnimatedValues:et=()=>!1,createAnimatedStyle:tt=nt=>new AnimatedObject(nt),getComponentProps:rt=nt=>nt}={})=>{const nt={applyAnimatedValues:et,createAnimatedStyle:tt,getComponentProps:rt},st=ot=>{const at=getDisplayName(ot)||"Anonymous";return is.str(ot)?ot=st[ot]||(st[ot]=withAnimated(ot,nt)):ot=ot[cacheKey]||(ot[cacheKey]=withAnimated(ot,nt)),ot.displayName=`Animated(${at})`,ot};return eachProp(_e,(ot,at)=>{is.arr(_e)&&(at=getDisplayName(ot)),st[at]=st(ot)}),{animated:st}},getDisplayName=_e=>is.str(_e)?_e:_e&&is.str(_e.displayName)?_e.displayName:is.fun(_e)&&_e.name||null;function callProp(_e,...et){return is.fun(_e)?_e(...et):_e}var matchProp=(_e,et)=>_e===!0||!!(et&&_e&&(is.fun(_e)?_e(et):toArray(_e).includes(et))),resolveProp=(_e,et)=>is.obj(_e)?et&&_e[et]:_e,getDefaultProp=(_e,et)=>_e.default===!0?_e[et]:_e.default?_e.default[et]:void 0,noopTransform=_e=>_e,getDefaultProps=(_e,et=noopTransform)=>{let tt=DEFAULT_PROPS;_e.default&&_e.default!==!0&&(_e=_e.default,tt=Object.keys(_e));const rt={};for(const nt of tt){const st=et(_e[nt],nt);is.und(st)||(rt[nt]=st)}return rt},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function getForwardProps(_e){const et={};let tt=0;if(eachProp(_e,(rt,nt)=>{RESERVED_PROPS[nt]||(et[nt]=rt,tt++)}),tt)return et}function inferTo(_e){const et=getForwardProps(_e);if(et){const tt={to:et};return eachProp(_e,(rt,nt)=>nt in et||(tt[nt]=rt)),tt}return{..._e}}function computeGoal(_e){return _e=getFluidValue(_e),is.arr(_e)?_e.map(computeGoal):isAnimatedString(_e)?globals_exports.createStringInterpolator({range:[0,1],output:[_e,_e]})(1):_e}function hasProps(_e){for(const et in _e)return!0;return!1}function isAsyncTo(_e){return is.fun(_e)||is.arr(_e)&&is.obj(_e[0])}function detachRefs(_e,et){var tt;(tt=_e.ref)==null||tt.delete(_e),et==null||et.delete(_e)}function replaceRef(_e,et){var tt;et&&_e.ref!==et&&((tt=_e.ref)==null||tt.delete(_e),et.add(_e),_e.ref=et)}var config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},defaults={...config.default,mass:1,damping:1,easing:easings.linear,clamp:!1},AnimationConfig=class{constructor(){this.velocity=0,Object.assign(this,defaults)}};function mergeConfig(_e,et,tt){tt&&(tt={...tt},sanitizeConfig(tt,et),et={...tt,...et}),sanitizeConfig(_e,et),Object.assign(_e,et);for(const ot in defaults)_e[ot]==null&&(_e[ot]=defaults[ot]);let{frequency:rt,damping:nt}=_e;const{mass:st}=_e;return is.und(rt)||(rt<.01&&(rt=.01),nt<0&&(nt=0),_e.tension=Math.pow(2*Math.PI/rt,2)*st,_e.friction=4*Math.PI*nt*st/rt),_e}function sanitizeConfig(_e,et){if(!is.und(et.decay))_e.duration=void 0;else{const tt=!is.und(et.tension)||!is.und(et.friction);(tt||!is.und(et.frequency)||!is.und(et.damping)||!is.und(et.mass))&&(_e.duration=void 0,_e.decay=void 0),tt&&(_e.frequency=void 0)}}var emptyArray=[],Animation=class{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.config=new AnimationConfig,this.immediate=!1}};function scheduleProps(_e,{key:et,props:tt,defaultProps:rt,state:nt,actions:st}){return new Promise((ot,at)=>{let ut,lt,dt=matchProp(tt.cancel??(rt==null?void 0:rt.cancel),et);if(dt)ht();else{is.und(tt.pause)||(nt.paused=matchProp(tt.pause,et));let vt=rt==null?void 0:rt.pause;vt!==!0&&(vt=nt.paused||matchProp(vt,et)),ut=callProp(tt.delay||0,et),vt?(nt.resumeQueue.add(ft),st.pause()):(st.resume(),ft())}function ct(){nt.resumeQueue.add(ft),nt.timeouts.delete(lt),lt.cancel(),ut=lt.time-raf.now()}function ft(){ut>0&&!globals_exports.skipAnimation?(nt.delayed=!0,lt=raf.setTimeout(ht,ut),nt.pauseQueue.add(ct),nt.timeouts.add(lt)):ht()}function ht(){nt.delayed&&(nt.delayed=!1),nt.pauseQueue.delete(ct),nt.timeouts.delete(lt),_e<=(nt.cancelId||0)&&(dt=!0);try{st.start({...tt,callId:_e,cancel:dt},ot)}catch(vt){at(vt)}}})}var getCombinedResult=(_e,et)=>et.length==1?et[0]:et.some(tt=>tt.cancelled)?getCancelledResult(_e.get()):et.every(tt=>tt.noop)?getNoopResult(_e.get()):getFinishedResult(_e.get(),et.every(tt=>tt.finished)),getNoopResult=_e=>({value:_e,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(_e,et,tt=!1)=>({value:_e,finished:et,cancelled:tt}),getCancelledResult=_e=>({value:_e,cancelled:!0,finished:!1});function runAsync(_e,et,tt,rt){const{callId:nt,parentId:st,onRest:ot}=et,{asyncTo:at,promise:ut}=tt;return!st&&_e===at&&!et.reset?ut:tt.promise=(async()=>{tt.asyncId=nt,tt.asyncTo=_e;const lt=getDefaultProps(et,(xt,mt)=>mt==="onRest"?void 0:xt);let dt,ct;const ft=new Promise((xt,mt)=>(dt=xt,ct=mt)),ht=xt=>{const mt=nt<=(tt.cancelId||0)&&getCancelledResult(rt)||nt!==tt.asyncId&&getFinishedResult(rt,!1);if(mt)throw xt.result=mt,ct(xt),xt},vt=(xt,mt)=>{const gt=new BailSignal,yt=new SkipAnimationSignal;return(async()=>{if(globals_exports.skipAnimation)throw stopAsync(tt),yt.result=getFinishedResult(rt,!1),ct(yt),yt;ht(gt);const wt=is.obj(xt)?{...xt}:{...mt,to:xt};wt.parentId=nt,eachProp(lt,(Ct,St)=>{is.und(wt[St])&&(wt[St]=Ct)});const $t=await rt.start(wt);return ht(gt),tt.paused&&await new Promise(Ct=>{tt.resumeQueue.add(Ct)}),$t})()};let Et;if(globals_exports.skipAnimation)return stopAsync(tt),getFinishedResult(rt,!1);try{let xt;is.arr(_e)?xt=(async mt=>{for(const gt of mt)await vt(gt)})(_e):xt=Promise.resolve(_e(vt,rt.stop.bind(rt))),await Promise.all([xt.then(dt),ft]),Et=getFinishedResult(rt.get(),!0,!1)}catch(xt){if(xt instanceof BailSignal)Et=xt.result;else if(xt instanceof SkipAnimationSignal)Et=xt.result;else throw xt}finally{nt==tt.asyncId&&(tt.asyncId=st,tt.asyncTo=st?at:void 0,tt.promise=st?ut:void 0)}return is.fun(ot)&&raf.batchedUpdates(()=>{ot(Et,rt,rt.item)}),Et})()}function stopAsync(_e,et){flush(_e.timeouts,tt=>tt.cancel()),_e.pauseQueue.clear(),_e.resumeQueue.clear(),_e.asyncId=_e.asyncTo=_e.promise=void 0,et&&(_e.cancelId=et)}var BailSignal=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},SkipAnimationSignal=class extends Error{constructor(){super("SkipAnimationSignal")}},isFrameValue=_e=>_e instanceof FrameValue,nextId=1,FrameValue=class extends FluidValue{constructor(){super(...arguments),this.id=nextId++,this._priority=0}get priority(){return this._priority}set priority(_e){this._priority!=_e&&(this._priority=_e,this._onPriorityChange(_e))}get(){const _e=getAnimated(this);return _e&&_e.getValue()}to(..._e){return globals_exports.to(this,_e)}interpolate(..._e){return deprecateInterpolate(),globals_exports.to(this,_e)}toJSON(){return this.get()}observerAdded(_e){_e==1&&this._attach()}observerRemoved(_e){_e==0&&this._detach()}_attach(){}_detach(){}_onChange(_e,et=!1){callFluidObservers(this,{type:"change",parent:this,value:_e,idle:et})}_onPriorityChange(_e){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:_e})}},$P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=_e=>(_e[$P]&HAS_ANIMATED)>0,isAnimating=_e=>(_e[$P]&IS_ANIMATING)>0,isPaused=_e=>(_e[$P]&IS_PAUSED)>0,setActiveBit=(_e,et)=>et?_e[$P]|=IS_ANIMATING|HAS_ANIMATED:_e[$P]&=~IS_ANIMATING,setPausedBit=(_e,et)=>et?_e[$P]|=IS_PAUSED:_e[$P]&=~IS_PAUSED,SpringValue=class extends FrameValue{constructor(_e,et){if(super(),this.animation=new Animation,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!is.und(_e)||!is.und(et)){const tt=is.obj(_e)?{..._e}:{...et,from:_e};is.und(tt.default)&&(tt.default=!0),this.start(tt)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const _e=getAnimated(this);return _e instanceof AnimatedValue?_e.lastVelocity||0:_e.getPayload().map(et=>et.lastVelocity||0)}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(_e){let et=!0,tt=!1;const rt=this.animation;let{toValues:nt}=rt;const{config:st}=rt,ot=getPayload(rt.to);!ot&&hasFluidValue(rt.to)&&(nt=toArray(getFluidValue(rt.to))),rt.values.forEach((lt,dt)=>{if(lt.done)return;const ct=lt.constructor==AnimatedString?1:ot?ot[dt].lastPosition:nt[dt];let ft=rt.immediate,ht=ct;if(!ft){if(ht=lt.lastPosition,st.tension<=0){lt.done=!0;return}let vt=lt.elapsedTime+=_e;const Et=rt.fromValues[dt],xt=lt.v0!=null?lt.v0:lt.v0=is.arr(st.velocity)?st.velocity[dt]:st.velocity;let mt;const gt=st.precision||(Et==ct?.005:Math.min(1,Math.abs(ct-Et)*.001));if(is.und(st.duration))if(st.decay){const yt=st.decay===!0?.998:st.decay,wt=Math.exp(-(1-yt)*vt);ht=Et+xt/(1-yt)*(1-wt),ft=Math.abs(lt.lastPosition-ht)<=gt,mt=xt*wt}else{mt=lt.lastVelocity==null?xt:lt.lastVelocity;const yt=st.restVelocity||gt/10,wt=st.clamp?0:st.bounce,$t=!is.und(wt),Ct=Et==ct?lt.v0>0:Et<ct;let St,bt=!1;const Ot=1,Tt=Math.ceil(_e/Ot);for(let Lt=0;Lt<Tt&&(St=Math.abs(mt)>yt,!(!St&&(ft=Math.abs(ct-ht)<=gt,ft)));++Lt){$t&&(bt=ht==ct||ht>ct==Ct,bt&&(mt=-mt*wt,ht=ct));const Dt=-st.tension*1e-6*(ht-ct),Nt=-st.friction*.001*mt,At=(Dt+Nt)/st.mass;mt=mt+At*Ot,ht=ht+mt*Ot}}else{let yt=1;st.duration>0&&(this._memoizedDuration!==st.duration&&(this._memoizedDuration=st.duration,lt.durationProgress>0&&(lt.elapsedTime=st.duration*lt.durationProgress,vt=lt.elapsedTime+=_e)),yt=(st.progress||0)+vt/this._memoizedDuration,yt=yt>1?1:yt<0?0:yt,lt.durationProgress=yt),ht=Et+st.easing(yt)*(ct-Et),mt=(ht-lt.lastPosition)/_e,ft=yt==1}lt.lastVelocity=mt,Number.isNaN(ht)&&(console.warn("Got NaN while animating:",this),ft=!0)}ot&&!ot[dt].done&&(ft=!1),ft?lt.done=!0:et=!1,lt.setValue(ht,st.round)&&(tt=!0)});const at=getAnimated(this),ut=at.getValue();if(et){const lt=getFluidValue(rt.to);(ut!==lt||tt)&&!st.decay?(at.setValue(lt),this._onChange(lt)):tt&&st.decay&&this._onChange(ut),this._stop()}else tt&&this._onChange(ut)}set(_e){return raf.batchedUpdates(()=>{this._stop(),this._focus(_e),this._set(_e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:_e,config:et}=this.animation;raf.batchedUpdates(()=>{this._onStart(),et.decay||this._set(_e,!1),this._stop()})}return this}update(_e){return(this.queue||(this.queue=[])).push(_e),this}start(_e,et){let tt;return is.und(_e)?(tt=this.queue||[],this.queue=[]):tt=[is.obj(_e)?_e:{...et,to:_e}],Promise.all(tt.map(rt=>this._update(rt))).then(rt=>getCombinedResult(this,rt))}stop(_e){const{to:et}=this.animation;return this._focus(this.get()),stopAsync(this._state,_e&&this._lastCallId),raf.batchedUpdates(()=>this._stop(et,_e)),this}reset(){this._update({reset:!0})}eventObserved(_e){_e.type=="change"?this._start():_e.type=="priority"&&(this.priority=_e.priority+1)}_prepareNode(_e){const et=this.key||"";let{to:tt,from:rt}=_e;tt=is.obj(tt)?tt[et]:tt,(tt==null||isAsyncTo(tt))&&(tt=void 0),rt=is.obj(rt)?rt[et]:rt,rt==null&&(rt=void 0);const nt={to:tt,from:rt};return hasAnimated(this)||(_e.reverse&&([tt,rt]=[rt,tt]),rt=getFluidValue(rt),is.und(rt)?getAnimated(this)||this._set(tt):this._set(rt)),nt}_update({..._e},et){const{key:tt,defaultProps:rt}=this;_e.default&&Object.assign(rt,getDefaultProps(_e,(ot,at)=>/^on/.test(at)?resolveProp(ot,tt):ot)),mergeActiveFn(this,_e,"onProps"),sendEvent(this,"onProps",_e,this);const nt=this._prepareNode(_e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const st=this._state;return scheduleProps(++this._lastCallId,{key:tt,props:_e,defaultProps:rt,state:st,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(st.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(st.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,nt)}}).then(ot=>{if(_e.loop&&ot.finished&&!(et&&ot.noop)){const at=createLoopUpdate(_e);if(at)return this._update(at,!0)}return ot})}_merge(_e,et,tt){if(et.cancel)return this.stop(!0),tt(getCancelledResult(this));const rt=!is.und(_e.to),nt=!is.und(_e.from);if(rt||nt)if(et.callId>this._lastToId)this._lastToId=et.callId;else return tt(getCancelledResult(this));const{key:st,defaultProps:ot,animation:at}=this,{to:ut,from:lt}=at;let{to:dt=ut,from:ct=lt}=_e;nt&&!rt&&(!et.default||is.und(dt))&&(dt=ct),et.reverse&&([dt,ct]=[ct,dt]);const ft=!isEqual(ct,lt);ft&&(at.from=ct),ct=getFluidValue(ct);const ht=!isEqual(dt,ut);ht&&this._focus(dt);const vt=isAsyncTo(et.to),{config:Et}=at,{decay:xt,velocity:mt}=Et;(rt||nt)&&(Et.velocity=0),et.config&&!vt&&mergeConfig(Et,callProp(et.config,st),et.config!==ot.config?callProp(ot.config,st):void 0);let gt=getAnimated(this);if(!gt||is.und(dt))return tt(getFinishedResult(this,!0));const yt=is.und(et.reset)?nt&&!et.default:!is.und(ct)&&matchProp(et.reset,st),wt=yt?ct:this.get(),$t=computeGoal(dt),Ct=is.num($t)||is.arr($t)||isAnimatedString($t),St=!vt&&(!Ct||matchProp(ot.immediate||et.immediate,st));if(ht){const Lt=getAnimatedType(dt);if(Lt!==gt.constructor)if(St)gt=this._set($t);else throw Error(`Cannot animate between ${gt.constructor.name} and ${Lt.name}, as the "to" prop suggests`)}const bt=gt.constructor;let Ot=hasFluidValue(dt),Tt=!1;if(!Ot){const Lt=yt||!hasAnimated(this)&&ft;(ht||Lt)&&(Tt=isEqual(computeGoal(wt),$t),Ot=!Tt),(!isEqual(at.immediate,St)&&!St||!isEqual(Et.decay,xt)||!isEqual(Et.velocity,mt))&&(Ot=!0)}if(Tt&&isAnimating(this)&&(at.changed&&!yt?Ot=!0:Ot||this._stop(ut)),!vt&&((Ot||hasFluidValue(ut))&&(at.values=gt.getPayload(),at.toValues=hasFluidValue(dt)?null:bt==AnimatedString?[1]:toArray($t)),at.immediate!=St&&(at.immediate=St,!St&&!yt&&this._set(ut)),Ot)){const{onRest:Lt}=at;each(ACTIVE_EVENTS,Nt=>mergeActiveFn(this,et,Nt));const Dt=getFinishedResult(this,checkFinished(this,ut));flushCalls(this._pendingCalls,Dt),this._pendingCalls.add(tt),at.changed&&raf.batchedUpdates(()=>{var Nt;at.changed=!yt,Lt==null||Lt(Dt,this),yt?callProp(ot.onRest,Dt):(Nt=at.onStart)==null||Nt.call(at,Dt,this)})}yt&&this._set(wt),vt?tt(runAsync(et.to,et,this._state,this)):Ot?this._start():isAnimating(this)&&!ht?this._pendingCalls.add(tt):tt(getNoopResult(wt))}_focus(_e){const et=this.animation;_e!==et.to&&(getFluidObservers(this)&&this._detach(),et.to=_e,getFluidObservers(this)&&this._attach())}_attach(){let _e=0;const{to:et}=this.animation;hasFluidValue(et)&&(addFluidObserver(et,this),isFrameValue(et)&&(_e=et.priority+1)),this.priority=_e}_detach(){const{to:_e}=this.animation;hasFluidValue(_e)&&removeFluidObserver(_e,this)}_set(_e,et=!0){const tt=getFluidValue(_e);if(!is.und(tt)){const rt=getAnimated(this);if(!rt||!isEqual(tt,rt.getValue())){const nt=getAnimatedType(tt);!rt||rt.constructor!=nt?setAnimated(this,nt.create(tt)):rt.setValue(tt),rt&&raf.batchedUpdates(()=>{this._onChange(tt,et)})}}return getAnimated(this)}_onStart(){const _e=this.animation;_e.changed||(_e.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,_e.to)),this))}_onChange(_e,et){et||(this._onStart(),callProp(this.animation.onChange,_e,this)),callProp(this.defaultProps.onChange,_e,this),super._onChange(_e,et)}_start(){const _e=this.animation;getAnimated(this).reset(getFluidValue(_e.to)),_e.immediate||(_e.fromValues=_e.values.map(et=>et.lastPosition)),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals_exports.skipAnimation?this.finish():frameLoop.start(this)}_stop(_e,et){if(isAnimating(this)){setActiveBit(this,!1);const tt=this.animation;each(tt.values,nt=>{nt.done=!0}),tt.toValues&&(tt.onChange=tt.onPause=tt.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const rt=et?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,_e??tt.to));flushCalls(this._pendingCalls,rt),tt.changed&&(tt.changed=!1,sendEvent(this,"onRest",rt,this))}}};function checkFinished(_e,et){const tt=computeGoal(et),rt=computeGoal(_e.get());return isEqual(rt,tt)}function createLoopUpdate(_e,et=_e.loop,tt=_e.to){const rt=callProp(et);if(rt){const nt=rt!==!0&&inferTo(rt),st=(nt||_e).reverse,ot=!nt||nt.reset;return createUpdate({..._e,loop:et,default:!1,pause:void 0,to:!st||isAsyncTo(tt)?tt:void 0,from:ot?_e.from:void 0,reset:ot,...nt})}}function createUpdate(_e){const{to:et,from:tt}=_e=inferTo(_e),rt=new Set;return is.obj(et)&&findDefined(et,rt),is.obj(tt)&&findDefined(tt,rt),_e.keys=rt.size?Array.from(rt):null,_e}function declareUpdate(_e){const et=createUpdate(_e);return is.und(et.default)&&(et.default=getDefaultProps(et)),et}function findDefined(_e,et){eachProp(_e,(tt,rt)=>tt!=null&&et.add(rt))}var ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(_e,et,tt){_e.animation[tt]=et[tt]!==getDefaultProp(et,tt)?resolveProp(et[tt],_e.key):void 0}function sendEvent(_e,et,...tt){var rt,nt,st,ot;(nt=(rt=_e.animation)[et])==null||nt.call(rt,...tt),(ot=(st=_e.defaultProps)[et])==null||ot.call(st,...tt)}var BATCHED_EVENTS=["onStart","onChange","onRest"],nextId2=1,Controller=class{constructor(_e,et){this.id=nextId2++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),et&&(this._flush=et),_e&&this.start({default:!0,..._e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(_e=>_e.idle&&!_e.isDelayed&&!_e.isPaused)}get item(){return this._item}set item(_e){this._item=_e}get(){const _e={};return this.each((et,tt)=>_e[tt]=et.get()),_e}set(_e){for(const et in _e){const tt=_e[et];is.und(tt)||this.springs[et].set(tt)}}update(_e){return _e&&this.queue.push(createUpdate(_e)),this}start(_e){let{queue:et}=this;return _e?et=toArray(_e).map(createUpdate):this.queue=[],this._flush?this._flush(this,et):(prepareKeys(this,et),flushUpdateQueue(this,et))}stop(_e,et){if(_e!==!!_e&&(et=_e),et){const tt=this.springs;each(toArray(et),rt=>tt[rt].stop(!!_e))}else stopAsync(this._state,this._lastAsyncId),this.each(tt=>tt.stop(!!_e));return this}pause(_e){if(is.und(_e))this.start({pause:!0});else{const et=this.springs;each(toArray(_e),tt=>et[tt].pause())}return this}resume(_e){if(is.und(_e))this.start({pause:!1});else{const et=this.springs;each(toArray(_e),tt=>et[tt].resume())}return this}each(_e){eachProp(this.springs,_e)}_onFrame(){const{onStart:_e,onChange:et,onRest:tt}=this._events,rt=this._active.size>0,nt=this._changed.size>0;(rt&&!this._started||nt&&!this._started)&&(this._started=!0,flush(_e,([at,ut])=>{ut.value=this.get(),at(ut,this,this._item)}));const st=!rt&&this._started,ot=nt||st&&tt.size?this.get():null;nt&&et.size&&flush(et,([at,ut])=>{ut.value=ot,at(ut,this,this._item)}),st&&(this._started=!1,flush(tt,([at,ut])=>{ut.value=ot,at(ut,this,this._item)}))}eventObserved(_e){if(_e.type=="change")this._changed.add(_e.parent),_e.idle||this._active.add(_e.parent);else if(_e.type=="idle")this._active.delete(_e.parent);else return;raf.onFrame(this._onFrame)}};function flushUpdateQueue(_e,et){return Promise.all(et.map(tt=>flushUpdate(_e,tt))).then(tt=>getCombinedResult(_e,tt))}async function flushUpdate(_e,et,tt){const{keys:rt,to:nt,from:st,loop:ot,onRest:at,onResolve:ut}=et,lt=is.obj(et.default)&&et.default;ot&&(et.loop=!1),nt===!1&&(et.to=null),st===!1&&(et.from=null);const dt=is.arr(nt)||is.fun(nt)?nt:void 0;dt?(et.to=void 0,et.onRest=void 0,lt&&(lt.onRest=void 0)):each(BATCHED_EVENTS,Et=>{const xt=et[Et];if(is.fun(xt)){const mt=_e._events[Et];et[Et]=({finished:gt,cancelled:yt})=>{const wt=mt.get(xt);wt?(gt||(wt.finished=!1),yt&&(wt.cancelled=!0)):mt.set(xt,{value:null,finished:gt||!1,cancelled:yt||!1})},lt&&(lt[Et]=et[Et])}});const ct=_e._state;et.pause===!ct.paused?(ct.paused=et.pause,flushCalls(et.pause?ct.pauseQueue:ct.resumeQueue)):ct.paused&&(et.pause=!0);const ft=(rt||Object.keys(_e.springs)).map(Et=>_e.springs[Et].start(et)),ht=et.cancel===!0||getDefaultProp(et,"cancel")===!0;(dt||ht&&ct.asyncId)&&ft.push(scheduleProps(++_e._lastAsyncId,{props:et,state:ct,actions:{pause:noop,resume:noop,start(Et,xt){ht?(stopAsync(ct,_e._lastAsyncId),xt(getCancelledResult(_e))):(Et.onRest=at,xt(runAsync(dt,Et,ct,_e)))}}})),ct.paused&&await new Promise(Et=>{ct.resumeQueue.add(Et)});const vt=getCombinedResult(_e,await Promise.all(ft));if(ot&&vt.finished&&!(tt&&vt.noop)){const Et=createLoopUpdate(et,ot,nt);if(Et)return prepareKeys(_e,[Et]),flushUpdate(_e,Et,!0)}return ut&&raf.batchedUpdates(()=>ut(vt,_e,_e.item)),vt}function getSprings(_e,et){const tt={..._e.springs};return et&&each(toArray(et),rt=>{is.und(rt.keys)&&(rt=createUpdate(rt)),is.obj(rt.to)||(rt={...rt,to:void 0}),prepareSprings(tt,rt,nt=>createSpring(nt))}),setSprings(_e,tt),tt}function setSprings(_e,et){eachProp(et,(tt,rt)=>{_e.springs[rt]||(_e.springs[rt]=tt,addFluidObserver(tt,_e))})}function createSpring(_e,et){const tt=new SpringValue;return tt.key=_e,et&&addFluidObserver(tt,et),tt}function prepareSprings(_e,et,tt){et.keys&&each(et.keys,rt=>{(_e[rt]||(_e[rt]=tt(rt)))._prepareNode(et)})}function prepareKeys(_e,et){each(et,tt=>{prepareSprings(_e.springs,tt,rt=>createSpring(rt,_e))})}var SpringContext=({children:_e,...et})=>{const tt=reactExports.useContext(ctx),rt=et.pause||!!tt.pause,nt=et.immediate||!!tt.immediate;et=useMemoOne(()=>({pause:rt,immediate:nt}),[rt,nt]);const{Provider:st}=ctx;return reactExports.createElement(st,{value:et},_e)},ctx=makeContext(SpringContext,{});SpringContext.Provider=ctx.Provider;SpringContext.Consumer=ctx.Consumer;function makeContext(_e,et){return Object.assign(_e,reactExports.createContext(et)),_e.Provider._context=_e,_e.Consumer._context=_e,_e}var SpringRef=()=>{const _e=[],et=function(rt){deprecateDirectCall();const nt=[];return each(_e,(st,ot)=>{if(is.und(rt))nt.push(st.start());else{const at=tt(rt,st,ot);at&&nt.push(st.start(at))}}),nt};et.current=_e,et.add=function(rt){_e.includes(rt)||_e.push(rt)},et.delete=function(rt){const nt=_e.indexOf(rt);~nt&&_e.splice(nt,1)},et.pause=function(){return each(_e,rt=>rt.pause(...arguments)),this},et.resume=function(){return each(_e,rt=>rt.resume(...arguments)),this},et.set=function(rt){each(_e,(nt,st)=>{const ot=is.fun(rt)?rt(st,nt):rt;ot&&nt.set(ot)})},et.start=function(rt){const nt=[];return each(_e,(st,ot)=>{if(is.und(rt))nt.push(st.start());else{const at=this._getProps(rt,st,ot);at&&nt.push(st.start(at))}}),nt},et.stop=function(){return each(_e,rt=>rt.stop(...arguments)),this},et.update=function(rt){return each(_e,(nt,st)=>nt.update(this._getProps(rt,nt,st))),this};const tt=function(rt,nt,st){return is.fun(rt)?rt(st,nt):rt};return et._getProps=tt,et};function useSprings(_e,et,tt){const rt=is.fun(et)&&et;rt&&!tt&&(tt=[]);const nt=reactExports.useMemo(()=>rt||arguments.length==3?SpringRef():void 0,[]),st=reactExports.useRef(0),ot=useForceUpdate(),at=reactExports.useMemo(()=>({ctrls:[],queue:[],flush(mt,gt){const yt=getSprings(mt,gt);return st.current>0&&!at.queue.length&&!Object.keys(yt).some($t=>!mt.springs[$t])?flushUpdateQueue(mt,gt):new Promise($t=>{setSprings(mt,yt),at.queue.push(()=>{$t(flushUpdateQueue(mt,gt))}),ot()})}}),[]),ut=reactExports.useRef([...at.ctrls]),lt=[],dt=usePrev(_e)||0;reactExports.useMemo(()=>{each(ut.current.slice(_e,dt),mt=>{detachRefs(mt,nt),mt.stop(!0)}),ut.current.length=_e,ct(dt,_e)},[_e]),reactExports.useMemo(()=>{ct(0,Math.min(dt,_e))},tt);function ct(mt,gt){for(let yt=mt;yt<gt;yt++){const wt=ut.current[yt]||(ut.current[yt]=new Controller(null,at.flush)),$t=rt?rt(yt,wt):et[yt];$t&&(lt[yt]=declareUpdate($t))}}const ft=ut.current.map((mt,gt)=>getSprings(mt,lt[gt])),ht=reactExports.useContext(SpringContext),vt=usePrev(ht),Et=ht!==vt&&hasProps(ht);useIsomorphicLayoutEffect(()=>{st.current++,at.ctrls=ut.current;const{queue:mt}=at;mt.length&&(at.queue=[],each(mt,gt=>gt())),each(ut.current,(gt,yt)=>{nt==null||nt.add(gt),Et&&gt.start({default:ht});const wt=lt[yt];wt&&(replaceRef(gt,wt.ref),gt.ref?gt.queue.push(wt):gt.start(wt))})}),useOnce(()=>()=>{each(at.ctrls,mt=>mt.stop(!0))});const xt=ft.map(mt=>({...mt}));return nt?[xt,nt]:xt}function useSpring(_e,et){const tt=is.fun(_e),[[rt],nt]=useSprings(1,tt?_e:[_e],tt?et||[]:et);return tt||arguments.length==2?[rt,nt]:rt}function useTransition(_e,et,tt){const rt=is.fun(et)&&et,{reset:nt,sort:st,trail:ot=0,expires:at=!0,exitBeforeEnter:ut=!1,onDestroyed:lt,ref:dt,config:ct}=rt?rt():et,ft=reactExports.useMemo(()=>rt||arguments.length==3?SpringRef():void 0,[]),ht=toArray(_e),vt=[],Et=reactExports.useRef(null),xt=nt?null:Et.current;useIsomorphicLayoutEffect(()=>{Et.current=vt}),useOnce(()=>(each(vt,At=>{ft==null||ft.add(At.ctrl),At.ctrl.ref=ft}),()=>{each(Et.current,At=>{At.expired&&clearTimeout(At.expirationId),detachRefs(At.ctrl,ft),At.ctrl.stop(!0)})}));const mt=getKeys(ht,rt?rt():et,xt),gt=nt&&Et.current||[];useIsomorphicLayoutEffect(()=>each(gt,({ctrl:At,item:jt,key:Ft})=>{detachRefs(At,ft),callProp(lt,jt,Ft)}));const yt=[];if(xt&&each(xt,(At,jt)=>{At.expired?(clearTimeout(At.expirationId),gt.push(At)):(jt=yt[jt]=mt.indexOf(At.key),~jt&&(vt[jt]=At))}),each(ht,(At,jt)=>{vt[jt]||(vt[jt]={key:mt[jt],item:At,phase:"mount",ctrl:new Controller},vt[jt].ctrl.item=At)}),yt.length){let At=-1;const{leave:jt}=rt?rt():et;each(yt,(Ft,Pt)=>{const Rt=xt[Pt];~Ft?(At=vt.indexOf(Rt),vt[At]={...Rt,item:ht[Ft]}):jt&&vt.splice(++At,0,Rt)})}is.fun(st)&&vt.sort((At,jt)=>st(At.item,jt.item));let wt=-ot;const $t=useForceUpdate(),Ct=getDefaultProps(et),St=new Map,bt=reactExports.useRef(new Map),Ot=reactExports.useRef(!1);each(vt,(At,jt)=>{const Ft=At.key,Pt=At.phase,Rt=rt?rt():et;let kt,It;const Bt=callProp(Rt.delay||0,Ft);if(Pt=="mount")kt=Rt.enter,It="enter";else{const zt=mt.indexOf(Ft)<0;if(Pt!="leave")if(zt)kt=Rt.leave,It="leave";else if(kt=Rt.update)It="update";else return;else if(!zt)kt=Rt.enter,It="enter";else return}if(kt=callProp(kt,At.item,jt),kt=is.obj(kt)?inferTo(kt):{to:kt},!kt.config){const zt=ct||Ct.config;kt.config=callProp(zt,At.item,jt,It)}wt+=ot;const Mt={...Ct,delay:Bt+wt,ref:dt,immediate:Rt.immediate,reset:!1,...kt};if(It=="enter"&&is.und(Mt.from)){const zt=rt?rt():et,Qt=is.und(zt.initial)||xt?zt.from:zt.initial;Mt.from=callProp(Qt,At.item,jt)}const{onResolve:Vt}=Mt;Mt.onResolve=zt=>{callProp(Vt,zt);const Qt=Et.current,Ut=Qt.find(Wt=>Wt.key===Ft);if(Ut&&!(zt.cancelled&&Ut.phase!="update")&&Ut.ctrl.idle){const Wt=Qt.every(Ht=>Ht.ctrl.idle);if(Ut.phase=="leave"){const Ht=callProp(at,Ut.item);if(Ht!==!1){const Gt=Ht===!0?0:Ht;if(Ut.expired=!0,!Wt&&Gt>0){Gt<=2147483647&&(Ut.expirationId=setTimeout($t,Gt));return}}}Wt&&Qt.some(Ht=>Ht.expired)&&(bt.current.delete(Ut),ut&&(Ot.current=!0),$t())}};const qt=getSprings(At.ctrl,Mt);It==="leave"&&ut?bt.current.set(At,{phase:It,springs:qt,payload:Mt}):St.set(At,{phase:It,springs:qt,payload:Mt})});const Tt=reactExports.useContext(SpringContext),Lt=usePrev(Tt),Dt=Tt!==Lt&&hasProps(Tt);useIsomorphicLayoutEffect(()=>{Dt&&each(vt,At=>{At.ctrl.start({default:Tt})})},[Tt]),each(St,(At,jt)=>{if(bt.current.size){const Ft=vt.findIndex(Pt=>Pt.key===jt.key);vt.splice(Ft,1)}}),useIsomorphicLayoutEffect(()=>{each(bt.current.size?bt.current:St,({phase:At,payload:jt},Ft)=>{const{ctrl:Pt}=Ft;Ft.phase=At,ft==null||ft.add(Pt),Dt&&At=="enter"&&Pt.start({default:Tt}),jt&&(replaceRef(Pt,jt.ref),(Pt.ref||ft)&&!Ot.current?Pt.update(jt):(Pt.start(jt),Ot.current&&(Ot.current=!1)))})},nt?void 0:tt);const Nt=At=>reactExports.createElement(reactExports.Fragment,null,vt.map((jt,Ft)=>{const{springs:Pt}=St.get(jt)||jt.ctrl,Rt=At({...Pt},jt.item,jt,Ft);return Rt&&Rt.type?reactExports.createElement(Rt.type,{...Rt.props,key:is.str(jt.key)||is.num(jt.key)?jt.key:jt.ctrl.id,ref:Rt.ref}):Rt}));return ft?[Nt,ft]:Nt}var nextKey=1;function getKeys(_e,{key:et,keys:tt=et},rt){if(tt===null){const nt=new Set;return _e.map(st=>{const ot=rt&&rt.find(at=>at.item===st&&at.phase!=="leave"&&!nt.has(at));return ot?(nt.add(ot),ot.key):nextKey++})}return is.und(tt)?_e:is.fun(tt)?_e.map(tt):toArray(tt)}var Interpolation=class extends FrameValue{constructor(_e,et){super(),this.source=_e,this.idle=!0,this._active=new Set,this.calc=createInterpolator(...et);const tt=this._get(),rt=getAnimatedType(tt);setAnimated(this,rt.create(tt))}advance(_e){const et=this._get(),tt=this.get();isEqual(et,tt)||(getAnimated(this).setValue(et),this._onChange(et,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const _e=is.arr(this.source)?this.source.map(getFluidValue):toArray(getFluidValue(this.source));return this.calc(..._e)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each(getPayload(this),_e=>{_e.done=!1}),globals_exports.skipAnimation?(raf.batchedUpdates(()=>this.advance()),becomeIdle(this)):frameLoop.start(this))}_attach(){let _e=1;each(toArray(this.source),et=>{hasFluidValue(et)&&addFluidObserver(et,this),isFrameValue(et)&&(et.idle||this._active.add(et),_e=Math.max(_e,et.priority+1))}),this.priority=_e,this._start()}_detach(){each(toArray(this.source),_e=>{hasFluidValue(_e)&&removeFluidObserver(_e,this)}),this._active.clear(),becomeIdle(this)}eventObserved(_e){_e.type=="change"?_e.idle?this.advance():(this._active.add(_e.parent),this._start()):_e.type=="idle"?this._active.delete(_e.parent):_e.type=="priority"&&(this.priority=toArray(this.source).reduce((et,tt)=>Math.max(et,(isFrameValue(tt)?tt.priority:0)+1),0))}};function isIdle(_e){return _e.idle!==!1}function checkIdle(_e){return!_e.size||Array.from(_e).every(isIdle)}function becomeIdle(_e){_e.idle||(_e.idle=!0,each(getPayload(_e),et=>{et.done=!0}),callFluidObservers(_e,{type:"idle",parent:_e}))}globals_exports.assign({createStringInterpolator:createStringInterpolator2,to:(_e,et)=>new Interpolation(_e,et)});var k=/^--/;function I(_e,et){return et==null||typeof et=="boolean"||et===""?"":typeof et=="number"&&et!==0&&!k.test(_e)&&!(c.hasOwnProperty(_e)&&c[_e])?et+"px":(""+et).trim()}var v$1={};function V(_e,et){if(!_e.nodeType||!_e.setAttribute)return!1;let tt=_e.nodeName==="filter"||_e.parentNode&&_e.parentNode.nodeName==="filter",{style:rt,children:nt,scrollTop:st,scrollLeft:ot,viewBox:at,...ut}=et,lt=Object.values(ut),dt=Object.keys(ut).map(ct=>tt||_e.hasAttribute(ct)?ct:v$1[ct]||(v$1[ct]=ct.replace(/([A-Z])/g,ft=>"-"+ft.toLowerCase())));nt!==void 0&&(_e.textContent=nt);for(let ct in rt)if(rt.hasOwnProperty(ct)){let ft=I(ct,rt[ct]);k.test(ct)?_e.style.setProperty(ct,ft):_e.style[ct]=ft}dt.forEach((ct,ft)=>{_e.setAttribute(ct,lt[ft])}),st!==void 0&&(_e.scrollTop=st),ot!==void 0&&(_e.scrollLeft=ot),at!==void 0&&_e.setAttribute("viewBox",at)}var c={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},F=(_e,et)=>_e+et.charAt(0).toUpperCase()+et.substring(1),L=["Webkit","Ms","Moz","O"];c=Object.keys(c).reduce((_e,et)=>(L.forEach(tt=>_e[F(tt,et)]=_e[et]),_e),c);var _=/^(matrix|translate|scale|rotate|skew)/,$=/^(translate)/,G=/^(rotate|skew)/,y=(_e,et)=>is.num(_e)&&_e!==0?_e+et:_e,h$1=(_e,et)=>is.arr(_e)?_e.every(tt=>h$1(tt,et)):is.num(_e)?_e===et:parseFloat(_e)===et,g=class extends AnimatedObject{constructor({x:_e,y:et,z:tt,...rt}){let nt=[],st=[];(_e||et||tt)&&(nt.push([_e||0,et||0,tt||0]),st.push(ot=>[`translate3d(${ot.map(at=>y(at,"px")).join(",")})`,h$1(ot,0)])),eachProp(rt,(ot,at)=>{if(at==="transform")nt.push([ot||""]),st.push(ut=>[ut,ut===""]);else if(_.test(at)){if(delete rt[at],is.und(ot))return;let ut=$.test(at)?"px":G.test(at)?"deg":"";nt.push(toArray(ot)),st.push(at==="rotate3d"?([lt,dt,ct,ft])=>[`rotate3d(${lt},${dt},${ct},${y(ft,ut)})`,h$1(ft,0)]:lt=>[`${at}(${lt.map(dt=>y(dt,ut)).join(",")})`,h$1(lt,at.startsWith("scale")?1:0)])}}),nt.length&&(rt.transform=new x(nt,st)),super(rt)}},x=class extends FluidValue{constructor(et,tt){super();Kt(this,"_value",null);this.inputs=et,this.transforms=tt}get(){return this._value||(this._value=this._get())}_get(){let et="",tt=!0;return each(this.inputs,(rt,nt)=>{let st=getFluidValue(rt[0]),[ot,at]=this.transforms[nt](is.arr(st)?st:rt.map(getFluidValue));et+=" "+ot,tt=tt&&at}),tt?"none":et}observerAdded(et){et==1&&each(this.inputs,tt=>each(tt,rt=>hasFluidValue(rt)&&addFluidObserver(rt,this)))}observerRemoved(et){et==0&&each(this.inputs,tt=>each(tt,rt=>hasFluidValue(rt)&&removeFluidObserver(rt,this)))}eventObserved(et){et.type=="change"&&(this._value=null),callFluidObservers(this,et)}},C=["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","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"];globals_exports.assign({batchedUpdates:reactDomExports.unstable_batchedUpdates,createStringInterpolator:createStringInterpolator2,colors:colors2});var q$1=createHost(C,{applyAnimatedValues:V,createAnimatedStyle:_e=>new g(_e),getComponentProps:({scrollTop:_e,scrollLeft:et,...tt})=>tt}),it$1=q$1.animated;const Context=reactExports.createContext(null),useFormControl=()=>{const _e=reactExports.useContext(Context);if(!_e)throw new Error("Cannot be rendered outside the FormControl component");return _e},Input=reactExports.forwardRef(({noValidationIcon:_e,placeholder:et,size:tt="md",type:rt="text",className:nt,...st},ot)=>{const{id:at,isRequired:ut,isReadOnly:lt,status:dt}=useFormControl(),ct=clsx({"form-control":!lt,"form-control-lg":tt==="lg","form-control-sm":tt==="sm","is-invalid":dt==="invalid","is-valid":dt==="valid","form-control-plaintext":lt,"no-validation-icon":_e},nt);return jsxRuntimeExports.jsx("input",{ref:ot,id:at,className:ct,type:rt,placeholder:et,required:ut,readOnly:lt,...st})});Input.displayName="Input";const Input$1=Input,Label=reactExports.forwardRef(({leftIcon:_e,optionalText:et="Optional",requiredText:tt="*",children:rt,className:nt},st)=>{const{id:ot,isOptional:at,isRequired:ut}=useFormControl(),lt=clsx("form-label",{"has-icon":_e},nt),dt=at&&!ut,ct=ut&&!at;return reactExports.useEffect(()=>{if(at&&ut)throw new Error("Cannot be optional and required at the same time")},[at,ut]),jsxRuntimeExports.jsxs("label",{ref:st,htmlFor:ot,className:lt,children:[_e,rt,dt&&jsxRuntimeExports.jsxs("em",{className:"optional",children:["- ",et]}),ct&&jsxRuntimeExports.jsx("em",{className:"required",children:tt})]})});Label.displayName="Label";const Label$1=Label,FormText=({children:_e})=>{const{status:et}=useFormControl(),tt=clsx("form-text",{"is-invalid":et==="invalid",valid:et==="valid"});return jsxRuntimeExports.jsx("p",{className:tt,children:jsxRuntimeExports.jsx("em",{children:_e})})};FormText.displayName="Text";const FormText$1=FormText,Root$2=reactExports.forwardRef(({children:_e,className:et,id:tt,isOptional:rt,isReadOnly:nt,isRequired:st,status:ot,...at},ut)=>{const lt=reactExports.useMemo(()=>({id:tt,isOptional:rt,isRequired:st,isReadOnly:nt,status:ot}),[tt,rt,nt,st,ot]);return jsxRuntimeExports.jsx(Context.Provider,{value:lt,children:jsxRuntimeExports.jsx("div",{ref:ut,className:et,...at,children:_e})})}),FormControl=Object.assign(Root$2,{Label:Label$1,Input:Input$1,Text:FormText$1});Root$2.displayName="FormControl";const FormControl$1=FormControl,Grid=({children:_e,className:et,...tt})=>{const rt=clsx("grid",et);return jsxRuntimeExports.jsx("div",{className:rt,...tt,children:_e})},Column=({sm:_e,md:et,lg:tt,xl:rt,children:nt,className:st,as:ot,...at})=>{const ut=ot||"div",lt=clsx({[`g-col-${_e}`]:_e,[et?`g-col-md-${et}`:""]:et,[tt?`g-col-lg-${tt}`:""]:tt,[rt?`g-col-xl-${rt}`:""]:rt},st);return jsxRuntimeExports.jsx(ut,{className:lt,...at,children:nt})};Grid.displayName="Grid";Column.displayName="Grid.Col";Grid.Col=Column;function Badge({children:_e}){return jsxRuntimeExports.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:_e})}function Navbar({children:_e,className:et,...tt}){const rt=clsx("navbar",et);return jsxRuntimeExports.jsx("nav",{className:rt,...tt,children:_e})}function NavBarNav({children:_e,className:et,...tt}){const rt=clsx("navbar-nav",et);return jsxRuntimeExports.jsx("ul",{className:rt,...tt,children:_e})}const NavItem=reactExports.forwardRef(({children:_e,className:et,...tt},rt)=>{const nt=clsx("nav-item",et);return jsxRuntimeExports.jsx("li",{ref:rt,className:nt,...tt,children:_e})});NavItem.displayName="NavItem";const VisuallyHidden=reactExports.forwardRef(({children:_e},et)=>jsxRuntimeExports.jsx("span",{className:"visually-hidden",ref:et,children:_e}));VisuallyHidden.displayName="VisuallyHidden";const VisuallyHidden$1=VisuallyHidden;function NavLink({link:_e,className:et,children:tt,translate:rt,...nt}){const st=clsx("nav-link",et);return jsxRuntimeExports.jsxs("a",{href:_e,className:st,...nt,children:[tt,rt&&jsxRuntimeExports.jsx(VisuallyHidden$1,{children:jsxRuntimeExports.jsx("span",{className:"nav-text",children:rt})})]})}const NavSearch=reactExports.forwardRef(({children:_e},et)=>jsxRuntimeExports.jsxs(FormControl$1,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[jsxRuntimeExports.jsx(FormControl$1.Input,{ref:et,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),_e]}));NavSearch.displayName="NavSearch";const WidgetAppsFooter=()=>{const{i18n:_e}=useI18n();return jsxRuntimeExports.jsx("div",{className:"widget-footer",children:jsxRuntimeExports.jsx("div",{className:"widget-footer-action",children:jsxRuntimeExports.jsx("a",{href:"/welcome",className:"link",children:_e("plus")})})})},WidgetAppsBody=({bookmarkedApps:_e})=>{const{i18n:et}=useI18n();return jsxRuntimeExports.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!_e.length&&jsxRuntimeExports.jsx("div",{className:"text-dark",children:et("navbar.myapps.more")}),_e.slice(0,6).map((tt,rt)=>jsxRuntimeExports.jsx("a",{href:tt.address,className:"bookmarked-app",children:jsxRuntimeExports.jsx(AppIcon$1,{app:tt,size:"32"})},rt))]})};var lib$2={},lib$1={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Doctype=_e.CDATA=_e.Tag=_e.Style=_e.Script=_e.Comment=_e.Directive=_e.Text=_e.Root=_e.isTag=_e.ElementType=void 0;var et;(function(rt){rt.Root="root",rt.Text="text",rt.Directive="directive",rt.Comment="comment",rt.Script="script",rt.Style="style",rt.Tag="tag",rt.CDATA="cdata",rt.Doctype="doctype"})(et=_e.ElementType||(_e.ElementType={}));function tt(rt){return rt.type===et.Tag||rt.type===et.Script||rt.type===et.Style}_e.isTag=tt,_e.Root=et.Root,_e.Text=et.Text,_e.Directive=et.Directive,_e.Comment=et.Comment,_e.Script=et.Script,_e.Style=et.Style,_e.Tag=et.Tag,_e.CDATA=et.CDATA,_e.Doctype=et.Doctype})(lib$1);var node={},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var _e=function(et,tt){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(rt,nt){rt.__proto__=nt}||function(rt,nt){for(var st in nt)Object.prototype.hasOwnProperty.call(nt,st)&&(rt[st]=nt[st])},_e(et,tt)};return function(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Class extends value "+String(tt)+" is not a constructor or null");_e(et,tt);function rt(){this.constructor=et}et.prototype=tt===null?Object.create(tt):(rt.prototype=tt.prototype,new rt)}}(),__assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(_e){for(var et,tt=1,rt=arguments.length;tt<rt;tt++){et=arguments[tt];for(var nt in et)Object.prototype.hasOwnProperty.call(et,nt)&&(_e[nt]=et[nt])}return _e},__assign.apply(this,arguments)};Object.defineProperty(node,"__esModule",{value:!0});node.cloneNode=node.hasChildren=node.isDocument=node.isDirective=node.isComment=node.isText=node.isCDATA=node.isTag=node.Element=node.Document=node.CDATA=node.NodeWithChildren=node.ProcessingInstruction=node.Comment=node.Text=node.DataNode=node.Node=void 0;var domelementtype_1=lib$1,Node=function(){function _e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(_e.prototype,"parentNode",{get:function(){return this.parent},set:function(et){this.parent=et},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"previousSibling",{get:function(){return this.prev},set:function(et){this.prev=et},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"nextSibling",{get:function(){return this.next},set:function(et){this.next=et},enumerable:!1,configurable:!0}),_e.prototype.cloneNode=function(et){return et===void 0&&(et=!1),cloneNode(this,et)},_e}();node.Node=Node;var DataNode=function(_e){__extends(et,_e);function et(tt){var rt=_e.call(this)||this;return rt.data=tt,rt}return Object.defineProperty(et.prototype,"nodeValue",{get:function(){return this.data},set:function(tt){this.data=tt},enumerable:!1,configurable:!0}),et}(Node);node.DataNode=DataNode;var Text$1=function(_e){__extends(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.type=domelementtype_1.ElementType.Text,tt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),et}(DataNode);node.Text=Text$1;var Comment$1=function(_e){__extends(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.type=domelementtype_1.ElementType.Comment,tt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),et}(DataNode);node.Comment=Comment$1;var ProcessingInstruction$1=function(_e){__extends(et,_e);function et(tt,rt){var nt=_e.call(this,rt)||this;return nt.name=tt,nt.type=domelementtype_1.ElementType.Directive,nt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),et}(DataNode);node.ProcessingInstruction=ProcessingInstruction$1;var NodeWithChildren=function(_e){__extends(et,_e);function et(tt){var rt=_e.call(this)||this;return rt.children=tt,rt}return Object.defineProperty(et.prototype,"firstChild",{get:function(){var tt;return(tt=this.children[0])!==null&&tt!==void 0?tt:null},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"childNodes",{get:function(){return this.children},set:function(tt){this.children=tt},enumerable:!1,configurable:!0}),et}(Node);node.NodeWithChildren=NodeWithChildren;var CDATA=function(_e){__extends(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.type=domelementtype_1.ElementType.CDATA,tt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),et}(NodeWithChildren);node.CDATA=CDATA;var Document=function(_e){__extends(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.type=domelementtype_1.ElementType.Root,tt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),et}(NodeWithChildren);node.Document=Document;var Element$1=function(_e){__extends(et,_e);function et(tt,rt,nt,st){nt===void 0&&(nt=[]),st===void 0&&(st=tt==="script"?domelementtype_1.ElementType.Script:tt==="style"?domelementtype_1.ElementType.Style:domelementtype_1.ElementType.Tag);var ot=_e.call(this,nt)||this;return ot.name=tt,ot.attribs=rt,ot.type=st,ot}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"tagName",{get:function(){return this.name},set:function(tt){this.name=tt},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"attributes",{get:function(){var tt=this;return Object.keys(this.attribs).map(function(rt){var nt,st;return{name:rt,value:tt.attribs[rt],namespace:(nt=tt["x-attribsNamespace"])===null||nt===void 0?void 0:nt[rt],prefix:(st=tt["x-attribsPrefix"])===null||st===void 0?void 0:st[rt]}})},enumerable:!1,configurable:!0}),et}(NodeWithChildren);node.Element=Element$1;function isTag(_e){return(0,domelementtype_1.isTag)(_e)}node.isTag=isTag;function isCDATA(_e){return _e.type===domelementtype_1.ElementType.CDATA}node.isCDATA=isCDATA;function isText(_e){return _e.type===domelementtype_1.ElementType.Text}node.isText=isText;function isComment(_e){return _e.type===domelementtype_1.ElementType.Comment}node.isComment=isComment;function isDirective(_e){return _e.type===domelementtype_1.ElementType.Directive}node.isDirective=isDirective;function isDocument(_e){return _e.type===domelementtype_1.ElementType.Root}node.isDocument=isDocument;function hasChildren$1(_e){return Object.prototype.hasOwnProperty.call(_e,"children")}node.hasChildren=hasChildren$1;function cloneNode(_e,et){et===void 0&&(et=!1);var tt;if(isText(_e))tt=new Text$1(_e.data);else if(isComment(_e))tt=new Comment$1(_e.data);else if(isTag(_e)){var rt=et?cloneChildren(_e.children):[],nt=new Element$1(_e.name,__assign({},_e.attribs),rt);rt.forEach(function(ut){return ut.parent=nt}),_e.namespace!=null&&(nt.namespace=_e.namespace),_e["x-attribsNamespace"]&&(nt["x-attribsNamespace"]=__assign({},_e["x-attribsNamespace"])),_e["x-attribsPrefix"]&&(nt["x-attribsPrefix"]=__assign({},_e["x-attribsPrefix"])),tt=nt}else if(isCDATA(_e)){var rt=et?cloneChildren(_e.children):[],st=new CDATA(rt);rt.forEach(function(lt){return lt.parent=st}),tt=st}else if(isDocument(_e)){var rt=et?cloneChildren(_e.children):[],ot=new Document(rt);rt.forEach(function(lt){return lt.parent=ot}),_e["x-mode"]&&(ot["x-mode"]=_e["x-mode"]),tt=ot}else if(isDirective(_e)){var at=new ProcessingInstruction$1(_e.name,_e.data);_e["x-name"]!=null&&(at["x-name"]=_e["x-name"],at["x-publicId"]=_e["x-publicId"],at["x-systemId"]=_e["x-systemId"]),tt=at}else throw new Error("Not implemented yet: ".concat(_e.type));return tt.startIndex=_e.startIndex,tt.endIndex=_e.endIndex,_e.sourceCodeLocation!=null&&(tt.sourceCodeLocation=_e.sourceCodeLocation),tt}node.cloneNode=cloneNode;function cloneChildren(_e){for(var et=_e.map(function(rt){return cloneNode(rt,!0)}),tt=1;tt<et.length;tt++)et[tt].prev=et[tt-1],et[tt-1].next=et[tt];return et}(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(at,ut,lt,dt){dt===void 0&&(dt=lt);var ct=Object.getOwnPropertyDescriptor(ut,lt);(!ct||("get"in ct?!ut.__esModule:ct.writable||ct.configurable))&&(ct={enumerable:!0,get:function(){return ut[lt]}}),Object.defineProperty(at,dt,ct)}:function(at,ut,lt,dt){dt===void 0&&(dt=lt),at[dt]=ut[lt]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(at,ut){for(var lt in at)lt!=="default"&&!Object.prototype.hasOwnProperty.call(ut,lt)&&et(ut,at,lt)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DomHandler=void 0;var rt=lib$1,nt=node;tt(node,_e);var st={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},ot=function(){function at(ut,lt,dt){this.dom=[],this.root=new nt.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof lt=="function"&&(dt=lt,lt=st),typeof ut=="object"&&(lt=ut,ut=void 0),this.callback=ut??null,this.options=lt??st,this.elementCB=dt??null}return at.prototype.onparserinit=function(ut){this.parser=ut},at.prototype.onreset=function(){this.dom=[],this.root=new nt.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},at.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},at.prototype.onerror=function(ut){this.handleCallback(ut)},at.prototype.onclosetag=function(){this.lastNode=null;var ut=this.tagStack.pop();this.options.withEndIndices&&(ut.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(ut)},at.prototype.onopentag=function(ut,lt){var dt=this.options.xmlMode?rt.ElementType.Tag:void 0,ct=new nt.Element(ut,lt,void 0,dt);this.addNode(ct),this.tagStack.push(ct)},at.prototype.ontext=function(ut){var lt=this.lastNode;if(lt&&lt.type===rt.ElementType.Text)lt.data+=ut,this.options.withEndIndices&&(lt.endIndex=this.parser.endIndex);else{var dt=new nt.Text(ut);this.addNode(dt),this.lastNode=dt}},at.prototype.oncomment=function(ut){if(this.lastNode&&this.lastNode.type===rt.ElementType.Comment){this.lastNode.data+=ut;return}var lt=new nt.Comment(ut);this.addNode(lt),this.lastNode=lt},at.prototype.oncommentend=function(){this.lastNode=null},at.prototype.oncdatastart=function(){var ut=new nt.Text(""),lt=new nt.CDATA([ut]);this.addNode(lt),ut.parent=lt,this.lastNode=ut},at.prototype.oncdataend=function(){this.lastNode=null},at.prototype.onprocessinginstruction=function(ut,lt){var dt=new nt.ProcessingInstruction(ut,lt);this.addNode(dt)},at.prototype.handleCallback=function(ut){if(typeof this.callback=="function")this.callback(ut,this.dom);else if(ut)throw ut},at.prototype.addNode=function(ut){var lt=this.tagStack[this.tagStack.length-1],dt=lt.children[lt.children.length-1];this.options.withStartIndices&&(ut.startIndex=this.parser.startIndex),this.options.withEndIndices&&(ut.endIndex=this.parser.endIndex),lt.children.push(ut),dt&&(ut.prev=dt,dt.next=ut),ut.parent=lt,this.lastNode=null},at}();_e.DomHandler=ot,_e.default=ot})(lib$2);var HTML="html",HEAD="head",BODY="body",FIRST_TAG_REGEX=/<([a-zA-Z]+[0-9]?)/,HEAD_TAG_REGEX=/<head[^]*>/i,BODY_TAG_REGEX=/<body[^]*>/i,parseFromDocument=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},parseFromString=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},DOMParser=typeof window=="object"&&window.DOMParser;if(typeof DOMParser=="function"){var domParser=new DOMParser,mimeType="text/html";parseFromString=function(_e,et){return et&&(_e="<"+et+">"+_e+"</"+et+">"),domParser.parseFromString(_e,mimeType)},parseFromDocument=parseFromString}if(typeof document=="object"&&document.implementation){var doc=document.implementation.createHTMLDocument();parseFromDocument=function(_e,et){if(et){var tt=doc.documentElement.querySelector(et);return tt.innerHTML=_e,doc}return doc.documentElement.innerHTML=_e,doc}}var template=typeof document=="object"?document.createElement("template"):{},parseFromTemplate;template.content&&(parseFromTemplate=function(_e){return template.innerHTML=_e,template.content.childNodes});function domparser$1(_e){var et,tt=_e.match(FIRST_TAG_REGEX);tt&&tt[1]&&(et=tt[1].toLowerCase());var rt,nt,st;switch(et){case HTML:return rt=parseFromString(_e),HEAD_TAG_REGEX.test(_e)||(nt=rt.querySelector(HEAD),nt&&nt.parentNode.removeChild(nt)),BODY_TAG_REGEX.test(_e)||(nt=rt.querySelector(BODY),nt&&nt.parentNode.removeChild(nt)),rt.querySelectorAll(HTML);case HEAD:case BODY:return rt=parseFromDocument(_e),st=rt.querySelectorAll(et),BODY_TAG_REGEX.test(_e)&&HEAD_TAG_REGEX.test(_e)?st[0].parentNode.childNodes:st;default:return parseFromTemplate?parseFromTemplate(_e):(nt=parseFromDocument(_e,BODY).querySelector(BODY),nt.childNodes)}}var domparser_1=domparser$1,utilities$5={},constants$1={};constants$1.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];var domhandler$1=lib$2,constants=constants$1,CASE_SENSITIVE_TAG_NAMES=constants.CASE_SENSITIVE_TAG_NAMES,Comment=domhandler$1.Comment,Element=domhandler$1.Element,ProcessingInstruction=domhandler$1.ProcessingInstruction,Text=domhandler$1.Text,caseSensitiveTagNamesMap={},tagName;for(var i=0,len=CASE_SENSITIVE_TAG_NAMES.length;i<len;i++)tagName=CASE_SENSITIVE_TAG_NAMES[i],caseSensitiveTagNamesMap[tagName.toLowerCase()]=tagName;function getCaseSensitiveTagName(_e){return caseSensitiveTagNamesMap[_e]}function formatAttributes(_e){for(var et={},tt,rt=0,nt=_e.length;rt<nt;rt++)tt=_e[rt],et[tt.name]=tt.value;return et}function formatTagName(_e){_e=_e.toLowerCase();var et=getCaseSensitiveTagName(_e);return et||_e}function formatDOM$1(_e,et,tt){et=et||null;for(var rt=[],nt,st=0,ot=_e.length;st<ot;st++){var at=_e[st],ut;switch(at.nodeType){case 1:nt=formatTagName(at.nodeName),ut=new Element(nt,formatAttributes(at.attributes)),ut.children=formatDOM$1(nt==="template"?at.content.childNodes:at.childNodes,ut);break;case 3:ut=new Text(at.nodeValue);break;case 8:ut=new Comment(at.nodeValue);break;default:continue}var lt=rt[st-1]||null;lt&&(lt.next=ut),ut.parent=et,ut.prev=lt,ut.next=null,rt.push(ut)}return tt&&(ut=new ProcessingInstruction(tt.substring(0,tt.indexOf(" ")).toLowerCase(),tt),ut.next=rt[0]||null,ut.parent=et,rt.unshift(ut),rt[1]&&(rt[1].prev=rt[0])),rt}utilities$5.formatAttributes=formatAttributes;utilities$5.formatDOM=formatDOM$1;var domparser=domparser_1,utilities$4=utilities$5,formatDOM=utilities$4.formatDOM,DIRECTIVE_REGEX=/<(![a-zA-Z\s]+)>/;function HTMLDOMParser(_e){if(typeof _e!="string")throw new TypeError("First argument must be a string");if(_e==="")return[];var et=_e.match(DIRECTIVE_REGEX),tt;return et&&et[1]&&(tt=et[1]),formatDOM(domparser(_e),null,tt)}var htmlToDom=HTMLDOMParser,lib={},possibleStandardNamesOptimized$1={},SAME$1=0;possibleStandardNamesOptimized$1.SAME=SAME$1;var CAMELCASE$1=1;possibleStandardNamesOptimized$1.CAMELCASE=CAMELCASE$1;possibleStandardNamesOptimized$1.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};Object.defineProperty(lib,"__esModule",{value:!0});function _slicedToArray(_e,et){return _arrayWithHoles(_e)||_iterableToArrayLimit(_e,et)||_unsupportedIterableToArray(_e,et)||_nonIterableRest()}function _arrayWithHoles(_e){if(Array.isArray(_e))return _e}function _iterableToArrayLimit(_e,et){var tt=_e==null?null:typeof Symbol<"u"&&_e[Symbol.iterator]||_e["@@iterator"];if(tt!=null){var rt=[],nt=!0,st=!1,ot,at;try{for(tt=tt.call(_e);!(nt=(ot=tt.next()).done)&&(rt.push(ot.value),!(et&&rt.length===et));nt=!0);}catch(ut){st=!0,at=ut}finally{try{!nt&&tt.return!=null&&tt.return()}finally{if(st)throw at}}return rt}}function _unsupportedIterableToArray(_e,et){if(_e){if(typeof _e=="string")return _arrayLikeToArray(_e,et);var tt=Object.prototype.toString.call(_e).slice(8,-1);if(tt==="Object"&&_e.constructor&&(tt=_e.constructor.name),tt==="Map"||tt==="Set")return Array.from(_e);if(tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt))return _arrayLikeToArray(_e,et)}}function _arrayLikeToArray(_e,et){(et==null||et>_e.length)&&(et=_e.length);for(var tt=0,rt=new Array(et);tt<et;tt++)rt[tt]=_e[tt];return rt}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
240
+ `,O=16,Ie=({reverseOrder:_e,position:et="top-center",toastOptions:tt,gutter:rt,children:nt,containerStyle:st,containerClassName:ot})=>{let{toasts:at,handlers:ut}=D(tt);return reactExports.createElement("div",{style:{position:"fixed",zIndex:9999,top:O,left:O,right:O,bottom:O,pointerEvents:"none",...st},className:ot,onMouseEnter:ut.startPause,onMouseLeave:ut.endPause},at.map(lt=>{let dt=lt.position||et,ct=ut.calculateOffset(lt,{reverseOrder:_e,gutter:rt,defaultPosition:et}),ft=Re(dt,ct);return reactExports.createElement(Ee,{id:lt.id,key:lt.id,onHeightUpdate:ut.updateHeight,className:lt.visible?ve:"",style:ft},lt.type==="custom"?T(lt.message,lt):nt?nt(lt):reactExports.createElement(F$1,{toast:lt,position:dt}))}))},_t=n$1;function useHotToast(_e){return{hotToast:{success:(et,tt)=>_t.custom(jsxRuntimeExports.jsx(_e,{type:"success",isToast:!0,isDismissible:tt==null?void 0:tt.isDismissible,className:"mb-12",children:et}),{duration:tt==null?void 0:tt.duration}),error:(et,tt)=>_t.custom(jsxRuntimeExports.jsx(_e,{type:"danger",isToast:!0,isDismissible:tt==null?void 0:tt.isDismissible,className:"mb-12",children:et}),{duration:tt==null?void 0:tt.duration}),info:(et,tt)=>_t.custom(jsxRuntimeExports.jsx(_e,{type:"info",isToast:!0,isDismissible:tt==null?void 0:tt.isDismissible,className:"mb-12",children:et}),{duration:tt==null?void 0:tt.duration}),warning:(et,tt)=>_t.custom(jsxRuntimeExports.jsx(_e,{type:"warning",isToast:!0,isDismissible:tt==null?void 0:tt.isDismissible,className:"mb-12",children:et}),{duration:tt==null?void 0:tt.duration}),loading:_t.loading}}}function useHover(){const[_e,et]=reactExports.useState(!1),tt=reactExports.useRef(null),rt=()=>{et(!0)},nt=()=>{et(!1)};return reactExports.useEffect(()=>{const st=tt.current;if(st)return st.addEventListener("mouseover",rt),st.addEventListener("mouseout",nt),()=>{st.removeEventListener("mouseover",rt),st.removeEventListener("mouseout",nt)}},[]),[tt,_e]}function useImage({src:_e,placeholder:et}){const[tt,rt]=reactExports.useState(_e||et),nt=reactExports.useCallback(()=>{rt(et)},[et]);return reactExports.useEffect(()=>{rt(_e)},[_e]),{imgSrc:tt,onError:nt}}function useKeyPress(_e,et){const tt=reactExports.useCallback(({code:rt})=>{et.includes(rt)&&_e()},[_e,et]);reactExports.useEffect(()=>(window.addEventListener("keydown",tt),()=>{window.removeEventListener("keydown",tt)}),[tt])}function useTitle(){const _e=typeof document<"u",[et,tt]=reactExports.useState(()=>document.title);return reactExports.useEffect(()=>{_e&&tt(document.title)},[_e]),et}function useToggle(_e=!1){const[et,tt]=reactExports.useState(_e),rt=reactExports.useCallback(()=>{tt(nt=>!nt)},[]);return[et,rt]}function useTrapFocus(){const _e=reactExports.useRef(null),et='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return reactExports.useEffect(()=>{const tt=_e.current,rt=tt.querySelectorAll(et)[0],nt=tt.querySelectorAll(et),st=_e&&(nt==null?void 0:nt[nt.length-1]),ot=at=>{at.key==="Tab"&&(at.shiftKey?document.activeElement===rt&&(st.focus(),at.preventDefault()):document.activeElement===st&&(rt.focus(),at.preventDefault()))};if(tt)return tt.addEventListener("keydown",ot),()=>{tt.removeEventListener("keydown",ot)}},[]),_e}function useI18n(){const{i18n:_e}=useOdeClient();return{i18n:_e}}function useHeader({user:_e,avatar:et}){const{i18n:tt}=useI18n(),rt=reactExports.useRef(null),nt=useTitle(),[st,ot]=reactExports.useState(!0),[at,ut]=useHover(),[lt,dt]=useHover(),ct=reactExports.useId(),ft=reactExports.useId(),[ht,vt]=reactExports.useState(0),Et=et,xt=_e==null?void 0:_e.username,mt=`${tt("welcome.text.1")} ${_e==null?void 0:_e.username}`,gt=useBookmark(),{workflows:{conversation:yt,zimbra:wt,community:$t,search:Ct}}=useHasWorkflow(),St=$t.view,bt=Ct.view,Ot=yt.view,Tt=wt.view,Lt=wt.preauth,[Dt,Nt]=reactExports.useState(""),At=reactExports.useCallback(async()=>{if(Tt)try{const kt=await odeServices.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});kt.status!==200&&vt(0),vt(kt.count)}catch{console.error("error"),vt(0)}else try{const kt=await odeServices.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});vt(kt.count)}catch{console.error("error"),vt(0)}},[Tt]),jt=reactExports.useCallback(()=>{let kt="";odeServices.http().get("/userbook/preference/zimbra").then(It=>{try{It.preference&&JSON.parse(It.preference).modeExpert&&Lt?kt="/zimbra/preauth":kt=window.location.origin+"/zimbra/zimbra"}catch{kt="/zimbra/zimbra"}}),Nt(kt)},[Lt]);reactExports.useEffect(()=>{(async()=>{try{await At()}catch(kt){console.error(kt)}})(),jt()},[jt,At]);function Ft(){if(rt.current){const kt=rt.current.value;window.location.href=`/searchengine#/${kt}`}}const Pt=reactExports.useCallback(()=>{ot(!st)},[st]),Rt=async()=>{await odeServices.session().logout(),window.location.href="/auth/login"};return reactExports.useMemo(()=>({inputRef:rt,conversation:yt,zimbra:wt,community:$t,title:nt,bookmarkedApps:gt,appsRef:at,isAppsHovered:ut,popoverAppsId:ct,searchRef:lt,isSearchHovered:dt,popoverSearchId:ft,messages:ht,userAvatar:Et,userName:xt,welcomeUser:mt,communityWorkflow:St,conversationWorflow:Ot,zimbraWorkflow:Tt,searchWorkflow:bt,isCollapsed:st,msgLink:Dt,redirectToSearch:Ft,toggleCollapsedNav:Pt,handleLogout:Rt}),[at,gt,$t,St,yt,Ot,ut,st,dt,ht,Dt,ct,ft,lt,bt,nt,Pt,Et,xt,mt,wt,Tt])}function useOdeIcons(){const _e={"last-infos-widget":"ic-widget-actualites",birthday:"ic-star","calendar-widget":"ic-widget-calendar","carnet-de-bord":"ic-widget-carnet-de-bord","record-me":"ic-widget-microphone",mood:"ic-star","my-apps":"ic-widget-apps",notes:"ic-widget-notes","rss-widget":"ic-widget-rss","bookmark-widget":"ic-widget-signets",qwant:"ic-widget-qwant","qwant-junior":"ic-widget-qwant","agenda-widget":"ic-widget-agenda","cursus-widget":"ic-widget-aide-devoirs","maxicours-widget":"ic-widget-maxicours","school-widget":"ic-widget-schoolbook","universalis-widget":"ic-widget-universalis","briefme-widget":"ic-widget-briefme"};function et(at){let ut="";switch(ut=(at==null?void 0:at.icon)!==void 0?at==null?void 0:at.icon.trim().toLowerCase():"placeholder",ut&&ut.length>0?ut.endsWith("-large")&&(ut=ut.replace("-large","")):ut=(at==null?void 0:at.displayName)!==void 0?at==null?void 0:at.displayName.trim().toLowerCase():"",ut){case"admin.title":ut="admin";break;case"banques des savoirs":ut="banquesavoir";break;case"collaborativewall":ut="collaborative-wall";break;case"communautés":ut="community";break;case"directory.user":ut="userbook";break;case"emploi du temps":ut="edt";break;case"messagerie":ut="conversation";break;case"news":ut="actualites";break;case"homeworks":case"cahier de texte":ut="cahier-de-texte";break;case"diary":case"cahier de texte 2d":ut="cahier-textes";break}return ut}function tt(at){return at&&(at.startsWith("/")||at.startsWith("http://")||at.startsWith("https://"))}function rt(at){const ut=et(at);return ut?`color-app-${ut}`:"color-app-placeholder"}function nt(at){const ut=et(at);return ut?`bg-app-${ut}`:"bg-app-placeholder"}function st(at){const ut=et(at);return ut?`bg-light-${ut}`:"bg-light-placeholder"}function ot(at){return _e[at.platformConf.name]}return{getIconClass:rt,getBackgroundIconClass:nt,getBackgroundLightIconClass:st,getIconCode:et,getWidgetIconClass:ot,isIconUrl:tt}}function useXitiTrackPageLoad(){const[_e,et]=reactExports.useState("pending"),{currentApp:tt}=useOdeClient();reactExports.useEffect(()=>{rt()},[]);const rt=async()=>{if(!tt){et("[Xiti] Error, currentApp is not defined.");return}try{await odeServices.analytics().trackPageLoad(window.location.pathname,tt),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),et(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(nt){console.error("[Xiti] Error Tracking Page Load",nt),et(`[Xiti] Error Tracking Page Load: ${nt}`)}};return{xitiStatus:_e}}const ReactQueryDevtools=function(){return null};var createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;function r$1(_e){var et,tt,rt="";if(typeof _e=="string"||typeof _e=="number")rt+=_e;else if(typeof _e=="object")if(Array.isArray(_e))for(et=0;et<_e.length;et++)_e[et]&&(tt=r$1(_e[et]))&&(rt&&(rt+=" "),rt+=tt);else for(et in _e)_e[et]&&(rt&&(rt+=" "),rt+=et);return rt}function clsx(){for(var _e,et,tt=0,rt="";tt<arguments.length;)(_e=arguments[tt++])&&(et=r$1(_e))&&(rt&&(rt+=" "),rt+=et);return rt}function Main({children:_e,className:et,...tt}){const rt=clsx("container-fluid",et);return jsxRuntimeExports.jsx("main",{className:rt,...tt,children:_e})}Main.displayName="Main";const ActionBar=reactExports.forwardRef(({children:_e},et)=>jsxRuntimeExports.jsx("div",{ref:et,className:"actionbar",children:_e}));ActionBar.displayName="ActionBar";const ActionBar$1=ActionBar,SvgAlertCircle=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1ZM11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z",clipRule:"evenodd"})]}),SvgAlertCircle$1=SvgAlertCircle,SvgArrowLeft=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})]}),SvgArrowLeft$1=SvgArrowLeft,SvgArrowRight=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L17.586 12l-6.293-6.293a1 1 0 0 1 0-1.414Z",clipRule:"evenodd"})]}),SvgArrowRight$1=SvgArrowRight,SvgBookmark=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M7 4a1 1 0 0 0-1 1v14.06l5.42-3.87a1 1 0 0 1 1.16 0L18 19.06V5a1 1 0 0 0-1-1H7zM4.88 2.88A3 3 0 0 1 7 2h10a3 3 0 0 1 3 3v16a1 1 0 0 1-1.58.81L12 17.23 5.58 21.8A1 1 0 0 1 4 21V5a3 3 0 0 1 .88-2.12z"})]}),SvgBookmark$1=SvgBookmark,SvgBurgerMenu=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5ZM21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5ZM21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5Z",clipRule:"evenodd"})]}),SvgBurgerMenu$1=SvgBurgerMenu,SvgClose=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.222 4.222a1.1 1.1 0 0 1 1.556 0l14 14a1.1 1.1 0 1 1-1.556 1.556l-14-14a1.1 1.1 0 0 1 0-1.556Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.778 4.222a1.1 1.1 0 0 1 0 1.556l-14 14a1.1 1.1 0 1 1-1.556-1.556l14-14a1.1 1.1 0 0 1 1.556 0Z",clipRule:"evenodd"})]}),SvgClose$1=SvgClose,SvgCopy=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.676 3c.284-.672.853-1 1.263-1h11.423c.566 0 1.438.628 1.438 1.923v13.154c0 1.056-.58 1.668-1.1 1.858V6.923C19.7 4.99 18.3 3 16.061 3H6.676Zm-2.272.007C4.765 1.41 6.056 0 7.939 0h11.423C21.599 0 23 1.99 23 3.923v13.154c0 1.865-1.303 3.782-3.403 3.916C19.235 22.59 17.944 24 16.06 24H4.638C2.401 24 1 22.01 1 20.077V6.923c0-1.865 1.303-3.782 3.404-3.916ZM3.2 6.923C3.2 5.628 4.072 5 4.638 5h11.423c.567 0 1.439.628 1.439 1.923v13.154c0 1.295-.872 1.923-1.439 1.923H4.638c-.566 0-1.438-.628-1.438-1.923V6.923Z",clipRule:"evenodd"})]}),SvgCopy$1=SvgCopy,SvgDelete=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.955.955 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675Zm7.357.675v.954H20.636a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909H7.273v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864Zm-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227H6.318Zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955Zm4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0Z",clipRule:"evenodd"})]}),SvgDelete$1=SvgDelete,SvgEdit=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879Zm-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-9.5 9.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.212l1-4a1 1 0 0 1 .263-.465l9.5-9.5Z",clipRule:"evenodd"})]}),SvgEdit$1=SvgEdit,SvgError=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM8.293 15.707a1 1 0 0 1 0-1.414L10.586 12 8.293 9.707a1 1 0 0 1 1.414-1.414L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414 0Z",clipRule:"evenodd"})]}),SvgError$1=SvgError,SvgFiles=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77.13.29.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32Z",clipRule:"evenodd"})]}),SvgFiles$1=SvgFiles,SvgFolder=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.057 5.5A.057.057 0 0 0 3 5.557v13.03h18V7.875h-8.697a1 1 0 0 1-1-1c0-.759-.615-1.374-1.374-1.374H3.057ZM1 5.557C1 4.42 1.92 3.5 3.057 3.5h6.872c1.515 0 2.797.999 3.223 2.374H21a2 2 0 0 1 2 2v10.714a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5.557Z",clipRule:"evenodd"})]}),SvgFolder$1=SvgFolder,SvgGlobe=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.008 9.008 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71Zm4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71Zm.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11h5.884Zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13ZM7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13Zm7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71ZM12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Z",clipRule:"evenodd"})]}),SvgGlobe$1=SvgGlobe,SvgInfoCircle=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.01 17a1 1 0 0 1-1-1v-5a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1ZM13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1Z",clipRule:"evenodd"})]}),SvgInfoCircle$1=SvgInfoCircle,SvgLoader=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.672 5.558a7.96 7.96 0 0 0-9.841.397 7.95 7.95 0 0 0-1.908 9.66 7.964 7.964 0 0 0 8.949 4.12A7.948 7.948 0 0 0 19.962 12a1.021 1.021 0 1 1 2.045 0A9.994 9.994 0 0 1 7.83 21.083a10.01 10.01 0 0 1-5.634-11.027 9.991 9.991 0 0 1 9.402-8.048c2.244-.09 4.453.577 6.272 1.895a1.022 1.022 0 1 1-1.198 1.655Z",clipRule:"evenodd"})]}),SvgLoader$1=SvgLoader,SvgOptions=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),jsxRuntimeExports.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),jsxRuntimeExports.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),SvgOptions$1=SvgOptions,SvgPlus=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7V4Z",clipRule:"evenodd"})]}),SvgPlus$1=SvgPlus,SvgRafterDown=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z",clipRule:"evenodd"})]}),SvgRafterDown$1=SvgRafterDown,SvgRafterRight=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141Z",clipRule:"evenodd"})]}),SvgRafterRight$1=SvgRafterRight,SvgRafterUp=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.988 17.129a1.5 1.5 0 0 1-2.117-.141L12 10.278l-5.871 6.71a1.5 1.5 0 0 1-2.258-1.976l7-8a1.5 1.5 0 0 1 2.258 0l7 8a1.5 1.5 0 0 1-.141 2.117Z",clipRule:"evenodd"})]}),SvgRafterUp$1=SvgRafterUp,SvgSave=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4H5Zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2H7Zm1 12v6h8v-6H8Z",clipRule:"evenodd"})]}),SvgSave$1=SvgSave,SvgSearch$2=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1Z",clipRule:"evenodd"})]}),SvgSearch$1$1=SvgSearch$2,SvgSuccessOutline=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.59 8.192a1 1 0 0 1 .218 1.397l-4.375 6a1 1 0 0 1-1.584.042L8.224 12.4a1 1 0 0 1 1.552-1.261l1.806 2.223 3.61-4.951a1 1 0 0 1 1.397-.219Z",clipRule:"evenodd"})]}),SvgSuccessOutline$1=SvgSuccessOutline,SvgUsers=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:jsxRuntimeExports.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272ZM15.187 1.384a1 1 0 0 1 1.036-.962 5.129 5.129 0 0 1 2.11 9.71 1 1 0 1 1-.896-1.788 3.129 3.129 0 0 0-1.288-5.924 1 1 0 0 1-.962-1.036ZM1.505 15.694C2.481 14.622 3.825 14 5.25 14h8.5c1.424 0 2.769.622 3.744 1.694.974 1.068 1.506 2.498 1.506 3.973V22a1 1 0 1 1-2 0v-2.333c0-1.001-.363-1.945-.984-2.627-.618-.679-1.436-1.04-2.266-1.04h-8.5c-.83 0-1.648.361-2.266 1.04-.621.682-.984 1.626-.984 2.627V22a1 1 0 1 1-2 0v-2.333c0-1.475.533-2.905 1.505-3.974ZM9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7ZM4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"users_svg__a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),SvgUsers$1=SvgUsers,Alert=reactExports.forwardRef(({type:_e="success",className:et="",children:tt,button:rt,isDismissible:nt=!1,isToast:st=!1,autoClose:ot=!1,autoCloseDelay:at=3e3,onClose:ut,onVisibilityChange:lt},dt)=>{const[ct,ft]=reactExports.useState(!0),ht=reactExports.useRef(null),vt=reactExports.useCallback(()=>{ft(!1),ut==null||ut()},[ut]);reactExports.useImperativeHandle(dt,()=>({show:Et,hide:vt,...ht.current})),reactExports.useLayoutEffect(()=>{lt==null||lt(ct)},[ct,lt]),reactExports.useEffect(()=>{ot&&ct&&setTimeout(()=>{vt()},at)},[ot,at,vt,ct]);const Et=()=>{ft(!0)},xt={success:{icon:jsxRuntimeExports.jsx(SvgSuccessOutline$1,{}),classModifier:"alert-success"},warning:{icon:jsxRuntimeExports.jsx(SvgAlertCircle$1,{}),classModifier:"alert-warning"},info:{icon:jsxRuntimeExports.jsx(SvgInfoCircle$1,{}),classModifier:"alert-info"},danger:{icon:jsxRuntimeExports.jsx(SvgError$1,{}),classModifier:"alert-danger"}},mt={"is-dismissible":nt,"is-toast ":st},gt=clsx("alert gap-12",xt[_e].classModifier,mt,et);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ct?jsxRuntimeExports.jsxs("div",{ref:ht,className:gt,role:"alert",children:[xt[_e].icon,jsxRuntimeExports.jsx("div",{className:"alert-content small",children:tt}),rt&&jsxRuntimeExports.jsx("div",{className:"ms-12",children:rt}),nt&&jsxRuntimeExports.jsx("div",{className:"btn-close-container",children:jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:vt})}),ot&&jsxRuntimeExports.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});Alert.displayName="Alert";const Alert$1=Alert,Context$1=reactExports.createContext({code:"placeholder",displayName:"Application",headingStyle:"h3",icon:"",isHeading:!1,level:"h1",bgCode:""});function useAppCard(){const _e=reactExports.useContext(Context$1);if(!_e)throw new Error("AppCard compound components cannot be rendered outside the AppCard component");return _e}const Heading=reactExports.forwardRef(({level:_e="h1",headingStyle:et="h1",children:tt,className:rt,...nt},st)=>{const ot=clsx(et,rt);return jsxRuntimeExports.jsx(_e,{ref:st,className:ot,...nt,children:tt})});Heading.displayName="Heading";const Heading$1=Heading,AppName=()=>{const{isHeading:_e,level:et,headingStyle:tt,displayName:rt}=useAppCard();return _e?jsxRuntimeExports.jsx(Heading$1,{level:et,headingStyle:tt,children:rt}):jsxRuntimeExports.jsx("p",{children:rt})};AppName.displayName="AppCard.Name";const AppName$1=AppName,Root$3=reactExports.forwardRef(({app:_e,as:et,children:tt,headingStyle:rt,isHeading:nt=!1,level:st,className:ot,...at},ut)=>{const{getIconClass:lt,getBackgroundLightIconClass:dt,getIconCode:ct}=useOdeIcons(),{name:ft,icon:ht}=_e,vt=ft||"Application",Et=clsx("application application-react application-title",lt(_e),ot),xt=reactExports.useMemo(()=>({icon:ht,displayName:vt,isHeading:nt,level:st,headingStyle:rt,code:ct(_e),bgCode:dt(_e)}),[_e,vt,dt,ct,rt,ht,nt,st]),mt=et||"div";return jsxRuntimeExports.jsx(Context$1.Provider,{value:xt,children:jsxRuntimeExports.jsx(mt,{ref:ut,className:Et,...at,children:tt})})}),AppCard=Object.assign(Root$3,{Name:AppName$1});Root$3.displayName="AppCard";const AppCard$1=AppCard,Image=reactExports.forwardRef(({src:_e,alt:et,imgPlaceholder:tt,ratio:rt,objectFit:nt,className:st,...ot},at)=>{const ut=tt??"/assets/themes/ode-bootstrap/images/image-placeholder.png",{imgSrc:lt,onError:dt}=useImage({src:_e,placeholder:ut}),ct={"ratio ratio-1x1":rt==="1","ratio ratio-4x3":rt==="4","ratio ratio-16x9":rt==="16","ratio ratio-21x9":rt==="21"},ft={"object-fit-contain":nt==="contain","object-fit-cover":nt==="cover","object-fit-fill":nt==="fill","object-fit-scale":nt==="scale","object-fit-none":nt==="none"},ht=clsx({...ct}),vt=clsx({...ft},st),Et=jsxRuntimeExports.jsx("img",{alt:et,onError:dt,ref:at,src:lt,className:vt,...ot});return rt?jsxRuntimeExports.jsx("div",{className:ht,children:Et}):Et});Image.displayName="Image";const Image$1=Image,AppIcon=reactExports.forwardRef(({app:_e,size:et="24",iconFit:tt="contain",variant:rt="square"},nt)=>{const{isIconUrl:st,getIconCode:ot}=useOdeIcons(),at=rt==="square",ut=rt==="rounded",lt=rt==="circle",dt=tt==="contain",ct=tt==="ratio",ft={"icon-xs":et==="24","icon-sm":et==="40","icon-md":et==="48","icon-lg":et==="80","icon-xl":et==="160"},ht={square:at,rounded:ut,"rounded-circle":lt},vt={"icon-contain":dt,"icon-ratio":ct},Et=(_e==null?void 0:_e.icon)!==void 0?_e.icon:"placeholder",xt=(_e==null?void 0:_e.displayName)!==void 0?_e.displayName:"",mt=_e?ot(_e):"",gt=st(Et),yt=mt||"placeholder",wt=clsx("app-icon",{...ft,...ht,...vt,[`bg-light-${yt}`]:yt&&!dt,[`color-app-${yt}`]:yt});return gt?jsxRuntimeExports.jsx(Image$1,{src:Et,alt:xt,objectFit:"contain",width:et,height:et,className:"h-full"}):jsxRuntimeExports.jsx("div",{className:wt,style:{width:et+"px",height:et+"px"},children:jsxRuntimeExports.jsx("svg",{ref:nt,width:et,height:et,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:jsxRuntimeExports.jsx("use",{xlinkHref:`/assets/themes/ode-bootstrap/icons/apps.svg#${yt}`})})})});AppIcon.displayName="AppIcon";const AppIcon$1=AppIcon,Avatar=reactExports.forwardRef(({variant:_e="square",size:et="md",alt:tt,src:rt,imgPlaceholder:nt,className:st,...ot},at)=>{const ut=nt||"/assets/themes/ode-bootstrap/images/no-avatar.svg",lt=clsx("avatar",{"avatar-xs":et==="xs","avatar-sm":et==="sm","avatar-md":et==="md","avatar-lg":et==="lg","avatar-xl":et==="xl",square:_e==="square",rounded:_e==="rounded","rounded-circle":_e==="circle"},st);return jsxRuntimeExports.jsx("div",{ref:at,className:lt,children:jsxRuntimeExports.jsx(Image$1,{src:rt||ut,alt:tt,imgPlaceholder:ut,...ot})})});Avatar.displayName="Avatar";const Avatar$1=Avatar,Loading=reactExports.forwardRef((_e,et)=>{const{isLoading:tt,loadingIcon:rt,loadingPosition:nt="left",children:st,...ot}=_e,at=()=>{let lt;return rt?lt=rt:lt=jsxRuntimeExports.jsx(SvgLoader$1,{...ot,"aria-label":"Loading"}),lt},ut=clsx("loading",{"is-loading":tt});return jsxRuntimeExports.jsxs("div",{className:ut,role:"status",ref:et,children:[(!nt||nt==="left")&&at(),st,nt==="right"&&at()]})});Loading.displayName="Loading";const Loading$1=Loading,Button=reactExports.forwardRef(({color:_e="primary",type:et="button",size:tt="md",children:rt,isLoading:nt,loadingIcon:st,loadingPosition:ot,leftIcon:at,rightIcon:ut,className:lt,variant:dt="filled",...ct},ft)=>{const ht=clsx("btn",{[`btn-filled btn-${_e}`]:dt==="filled",[`btn-${dt}-${_e}`]:dt==="outline"||dt==="ghost","btn-icon":!rt,"btn-loading":nt,"btn-lg":tt==="lg","btn-sm":tt==="sm"},lt);return jsxRuntimeExports.jsx("button",{ref:ft,className:ht,type:et,...ct,children:nt?jsxRuntimeExports.jsx(Loading$1,{isLoading:!0,loadingIcon:st,loadingPosition:ot,children:rt}):jsxRuntimeExports.jsxs("span",{children:[at,rt,ut]})})});Button.displayName="Button";const Button$1=Button,IconButton=reactExports.forwardRef(({icon:_e,className:et,...tt},rt)=>{const nt={...tt,className:clsx("btn-icon btn-sm",et)};return jsxRuntimeExports.jsx(Button$1,{ref:rt,...nt,children:_e})});IconButton.displayName="IconButton";const IconButton$1=IconButton,SearchButton=reactExports.forwardRef(({icon:_e=jsxRuntimeExports.jsx(SvgSearch$1$1,{}),onClick:et,...tt},rt)=>{const nt=clsx("btn-search btn-sm");return jsxRuntimeExports.jsx(IconButton$1,{ref:rt,className:nt,icon:_e,...tt,onClick:et})});SearchButton.displayName="SearchButton";const SearchButton$1=SearchButton,SvgCommunity=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.804c.49.705.733 1.474.733 2.307 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624Z"})]}),SvgCommunity$1=SvgCommunity,SvgDisconnect=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z"})]}),SvgDisconnect$1=SvgDisconnect,SvgHome=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111Zm3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363Z"})]}),SvgHome$1=SvgHome,SvgMyApps=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z"})]}),SvgMyApps$1=SvgMyApps,SvgNeoAssistance=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12ZM7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.668.668 0 0 1-.945.121L7.27 8.63a.718.718 0 0 1-.147-.963ZM9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03 0 1.119-.883 2.029-1.968 2.029-1.086 0-1.969-.91-1.969-2.03Z",clipRule:"evenodd"})]}),SvgNeoAssistance$1=SvgNeoAssistance,SvgNeoMessaging=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216H.5Zm0-2.738V8.573l5.848 3.531L.5 18.52Zm0-12.084V3.048h23.023v3.387l-11.511 6.847L.5 6.435Zm17.176 5.67 5.848-3.532v9.946l-5.848-6.415Z"})]}),SvgNeoMessaging$1=SvgNeoMessaging,SvgNewRelease=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53h2.14zm0 4.4v-2.2h-2.14v2.2h2.14zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"})]}),SvgNewRelease$1=SvgNewRelease,SvgOneAssistance=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M11.684 2C8.66 2 6.702 3.277 5.165 5.556A.958.958 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6Zm-.38 14.588c-1.446 0-2.624 1.214-2.624 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706Z"})]}),SvgOneAssistance$1=SvgOneAssistance,SvgOneMessaging=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334Zm10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.995 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837Z",clipRule:"evenodd"})]}),SvgOneMessaging$1=SvgOneMessaging,SvgOneProfile=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51Zm0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3Z"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"one-profile_svg__a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),SvgOneProfile$1=SvgOneProfile,SvgSearch=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628Zm2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486Z"})]}),SvgSearch$1=SvgSearch,SvgUserbook=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z"})]}),SvgUserbook$1=SvgUserbook;var __defProp=Object.defineProperty,__export=(_e,et)=>{for(var tt in et)__defProp(_e,tt,{get:et[tt],enumerable:!0})},globals_exports={};__export(globals_exports,{assign:()=>assign,colors:()=>colors,createStringInterpolator:()=>createStringInterpolator,skipAnimation:()=>skipAnimation,to:()=>to,willAdvance:()=>willAdvance});var updateQueue=makeQueue(),raf=_e=>schedule(_e,updateQueue),writeQueue=makeQueue();raf.write=_e=>schedule(_e,writeQueue);var onStartQueue=makeQueue();raf.onStart=_e=>schedule(_e,onStartQueue);var onFrameQueue=makeQueue();raf.onFrame=_e=>schedule(_e,onFrameQueue);var onFinishQueue=makeQueue();raf.onFinish=_e=>schedule(_e,onFinishQueue);var timeouts=[];raf.setTimeout=(_e,et)=>{const tt=raf.now()+et,rt=()=>{const st=timeouts.findIndex(ot=>ot.cancel==rt);~st&&timeouts.splice(st,1),pendingCount-=~st?1:0},nt={time:tt,handler:_e,cancel:rt};return timeouts.splice(findTimeout(tt),0,nt),pendingCount+=1,start(),nt};var findTimeout=_e=>~(~timeouts.findIndex(et=>et.time>_e)||~timeouts.length);raf.cancel=_e=>{onStartQueue.delete(_e),onFrameQueue.delete(_e),onFinishQueue.delete(_e),updateQueue.delete(_e),writeQueue.delete(_e)};raf.sync=_e=>{sync=!0,raf.batchedUpdates(_e),sync=!1};raf.throttle=_e=>{let et;function tt(){try{_e(...et)}finally{et=null}}function rt(...nt){et=nt,raf.onStart(tt)}return rt.handler=_e,rt.cancel=()=>{onStartQueue.delete(tt),et=null},rt};var nativeRaf=typeof window<"u"?window.requestAnimationFrame:()=>{};raf.use=_e=>nativeRaf=_e;raf.now=typeof performance<"u"?()=>performance.now():Date.now;raf.batchedUpdates=_e=>_e();raf.catch=console.error;raf.frameLoop="always";raf.advance=()=>{raf.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):update()};var ts=-1,pendingCount=0,sync=!1;function schedule(_e,et){sync?(et.delete(_e),_e(0)):(et.add(_e),start())}function start(){ts<0&&(ts=0,raf.frameLoop!=="demand"&&nativeRaf(loop))}function stop(){ts=-1}function loop(){~ts&&(nativeRaf(loop),raf.batchedUpdates(update))}function update(){const _e=ts;ts=raf.now();const et=findTimeout(ts);if(et&&(eachSafely(timeouts.splice(0,et),tt=>tt.handler()),pendingCount-=et),!pendingCount){stop();return}onStartQueue.flush(),updateQueue.flush(_e?Math.min(64,ts-_e):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush()}function makeQueue(){let _e=new Set,et=_e;return{add(tt){pendingCount+=et==_e&&!_e.has(tt)?1:0,_e.add(tt)},delete(tt){return pendingCount-=et==_e&&_e.has(tt)?1:0,_e.delete(tt)},flush(tt){et.size&&(_e=new Set,pendingCount-=et.size,eachSafely(et,rt=>rt(tt)&&_e.add(rt)),pendingCount+=_e.size,et=_e)}}}function eachSafely(_e,et){_e.forEach(tt=>{try{et(tt)}catch(rt){raf.catch(rt)}})}function noop(){}var defineHidden=(_e,et,tt)=>Object.defineProperty(_e,et,{value:tt,writable:!0,configurable:!0}),is={arr:Array.isArray,obj:_e=>!!_e&&_e.constructor.name==="Object",fun:_e=>typeof _e=="function",str:_e=>typeof _e=="string",num:_e=>typeof _e=="number",und:_e=>_e===void 0};function isEqual(_e,et){if(is.arr(_e)){if(!is.arr(et)||_e.length!==et.length)return!1;for(let tt=0;tt<_e.length;tt++)if(_e[tt]!==et[tt])return!1;return!0}return _e===et}var each=(_e,et)=>_e.forEach(et);function eachProp(_e,et,tt){if(is.arr(_e)){for(let rt=0;rt<_e.length;rt++)et.call(tt,_e[rt],`${rt}`);return}for(const rt in _e)_e.hasOwnProperty(rt)&&et.call(tt,_e[rt],rt)}var toArray=_e=>is.und(_e)?[]:is.arr(_e)?_e:[_e];function flush(_e,et){if(_e.size){const tt=Array.from(_e);_e.clear(),each(tt,et)}}var flushCalls=(_e,...et)=>flush(_e,tt=>tt(...et)),isSSR=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),createStringInterpolator,to,colors=null,skipAnimation=!1,willAdvance=noop,assign=_e=>{_e.to&&(to=_e.to),_e.now&&(raf.now=_e.now),_e.colors!==void 0&&(colors=_e.colors),_e.skipAnimation!=null&&(skipAnimation=_e.skipAnimation),_e.createStringInterpolator&&(createStringInterpolator=_e.createStringInterpolator),_e.requestAnimationFrame&&raf.use(_e.requestAnimationFrame),_e.batchedUpdates&&(raf.batchedUpdates=_e.batchedUpdates),_e.willAdvance&&(willAdvance=_e.willAdvance),_e.frameLoop&&(raf.frameLoop=_e.frameLoop)},startQueue=new Set,currentFrame=[],prevFrame=[],priority=0,frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(_e){priority>_e.priority?(startQueue.add(_e),raf.onStart(flushStartQueue)):(startSafely(_e),raf(advance))},advance,sort(_e){if(priority)raf.onFrame(()=>frameLoop.sort(_e));else{const et=currentFrame.indexOf(_e);~et&&(currentFrame.splice(et,1),startUnsafely(_e))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(_e){currentFrame.includes(_e)||startUnsafely(_e)}function startUnsafely(_e){currentFrame.splice(findIndex(currentFrame,et=>et.priority>_e.priority),0,_e)}function advance(_e){const et=prevFrame;for(let tt=0;tt<currentFrame.length;tt++){const rt=currentFrame[tt];priority=rt.priority,rt.idle||(willAdvance(rt),rt.advance(_e),rt.idle||et.push(rt))}return priority=0,prevFrame=currentFrame,prevFrame.length=0,currentFrame=et,currentFrame.length>0}function findIndex(_e,et){const tt=_e.findIndex(et);return tt<0?_e.length:tt}var clamp=(_e,et,tt)=>Math.min(Math.max(tt,_e),et),colors2={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call(..._e){return"\\(\\s*("+_e.join(")\\s*,\\s*(")+")\\s*\\)"}var rgb=new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor(_e){let et;return typeof _e=="number"?_e>>>0===_e&&_e>=0&&_e<=4294967295?_e:null:(et=hex6.exec(_e))?parseInt(et[1]+"ff",16)>>>0:colors&&colors[_e]!==void 0?colors[_e]:(et=rgb.exec(_e))?(parse255(et[1])<<24|parse255(et[2])<<16|parse255(et[3])<<8|255)>>>0:(et=rgba.exec(_e))?(parse255(et[1])<<24|parse255(et[2])<<16|parse255(et[3])<<8|parse1(et[4]))>>>0:(et=hex3.exec(_e))?parseInt(et[1]+et[1]+et[2]+et[2]+et[3]+et[3]+"ff",16)>>>0:(et=hex8.exec(_e))?parseInt(et[1],16)>>>0:(et=hex4.exec(_e))?parseInt(et[1]+et[1]+et[2]+et[2]+et[3]+et[3]+et[4]+et[4],16)>>>0:(et=hsl.exec(_e))?(hslToRgb(parse360(et[1]),parsePercentage(et[2]),parsePercentage(et[3]))|255)>>>0:(et=hsla.exec(_e))?(hslToRgb(parse360(et[1]),parsePercentage(et[2]),parsePercentage(et[3]))|parse1(et[4]))>>>0:null}function hue2rgb(_e,et,tt){return tt<0&&(tt+=1),tt>1&&(tt-=1),tt<1/6?_e+(et-_e)*6*tt:tt<1/2?et:tt<2/3?_e+(et-_e)*(2/3-tt)*6:_e}function hslToRgb(_e,et,tt){const rt=tt<.5?tt*(1+et):tt+et-tt*et,nt=2*tt-rt,st=hue2rgb(nt,rt,_e+1/3),ot=hue2rgb(nt,rt,_e),at=hue2rgb(nt,rt,_e-1/3);return Math.round(st*255)<<24|Math.round(ot*255)<<16|Math.round(at*255)<<8}function parse255(_e){const et=parseInt(_e,10);return et<0?0:et>255?255:et}function parse360(_e){return(parseFloat(_e)%360+360)%360/360}function parse1(_e){const et=parseFloat(_e);return et<0?0:et>1?255:Math.round(et*255)}function parsePercentage(_e){const et=parseFloat(_e);return et<0?0:et>100?1:et/100}function colorToRgba(_e){let et=normalizeColor(_e);if(et===null)return _e;et=et||0;const tt=(et&4278190080)>>>24,rt=(et&16711680)>>>16,nt=(et&65280)>>>8,st=(et&255)/255;return`rgba(${tt}, ${rt}, ${nt}, ${st})`}var createInterpolator=(_e,et,tt)=>{if(is.fun(_e))return _e;if(is.arr(_e))return createInterpolator({range:_e,output:et,extrapolate:tt});if(is.str(_e.output[0]))return createStringInterpolator(_e);const rt=_e,nt=rt.output,st=rt.range||[0,1],ot=rt.extrapolateLeft||rt.extrapolate||"extend",at=rt.extrapolateRight||rt.extrapolate||"extend",ut=rt.easing||(lt=>lt);return lt=>{const dt=findRange(lt,st);return interpolate(lt,st[dt],st[dt+1],nt[dt],nt[dt+1],ut,ot,at,rt.map)}};function interpolate(_e,et,tt,rt,nt,st,ot,at,ut){let lt=ut?ut(_e):_e;if(lt<et){if(ot==="identity")return lt;ot==="clamp"&&(lt=et)}if(lt>tt){if(at==="identity")return lt;at==="clamp"&&(lt=tt)}return rt===nt?rt:et===tt?_e<=et?rt:nt:(et===-1/0?lt=-lt:tt===1/0?lt=lt-et:lt=(lt-et)/(tt-et),lt=st(lt),rt===-1/0?lt=-lt:nt===1/0?lt=lt+rt:lt=lt*(nt-rt)+rt,lt)}function findRange(_e,et){for(var tt=1;tt<et.length-1&&!(et[tt]>=_e);++tt);return tt-1}var steps=(_e,et="end")=>tt=>{tt=et==="end"?Math.min(tt,.999):Math.max(tt,.001);const rt=tt*_e,nt=et==="end"?Math.floor(rt):Math.ceil(rt);return clamp(0,1,nt/_e)},c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*Math.PI/3,c5=2*Math.PI/4.5,bounceOut=_e=>_e<1/2.75?7.5625*_e*_e:_e<2/2.75?7.5625*(_e-=1.5/2.75)*_e+.75:_e<2.5/2.75?7.5625*(_e-=2.25/2.75)*_e+.9375:7.5625*(_e-=2.625/2.75)*_e+.984375,easings={linear:_e=>_e,easeInQuad:_e=>_e*_e,easeOutQuad:_e=>1-(1-_e)*(1-_e),easeInOutQuad:_e=>_e<.5?2*_e*_e:1-Math.pow(-2*_e+2,2)/2,easeInCubic:_e=>_e*_e*_e,easeOutCubic:_e=>1-Math.pow(1-_e,3),easeInOutCubic:_e=>_e<.5?4*_e*_e*_e:1-Math.pow(-2*_e+2,3)/2,easeInQuart:_e=>_e*_e*_e*_e,easeOutQuart:_e=>1-Math.pow(1-_e,4),easeInOutQuart:_e=>_e<.5?8*_e*_e*_e*_e:1-Math.pow(-2*_e+2,4)/2,easeInQuint:_e=>_e*_e*_e*_e*_e,easeOutQuint:_e=>1-Math.pow(1-_e,5),easeInOutQuint:_e=>_e<.5?16*_e*_e*_e*_e*_e:1-Math.pow(-2*_e+2,5)/2,easeInSine:_e=>1-Math.cos(_e*Math.PI/2),easeOutSine:_e=>Math.sin(_e*Math.PI/2),easeInOutSine:_e=>-(Math.cos(Math.PI*_e)-1)/2,easeInExpo:_e=>_e===0?0:Math.pow(2,10*_e-10),easeOutExpo:_e=>_e===1?1:1-Math.pow(2,-10*_e),easeInOutExpo:_e=>_e===0?0:_e===1?1:_e<.5?Math.pow(2,20*_e-10)/2:(2-Math.pow(2,-20*_e+10))/2,easeInCirc:_e=>1-Math.sqrt(1-Math.pow(_e,2)),easeOutCirc:_e=>Math.sqrt(1-Math.pow(_e-1,2)),easeInOutCirc:_e=>_e<.5?(1-Math.sqrt(1-Math.pow(2*_e,2)))/2:(Math.sqrt(1-Math.pow(-2*_e+2,2))+1)/2,easeInBack:_e=>c3*_e*_e*_e-c1*_e*_e,easeOutBack:_e=>1+c3*Math.pow(_e-1,3)+c1*Math.pow(_e-1,2),easeInOutBack:_e=>_e<.5?Math.pow(2*_e,2)*((c2+1)*2*_e-c2)/2:(Math.pow(2*_e-2,2)*((c2+1)*(_e*2-2)+c2)+2)/2,easeInElastic:_e=>_e===0?0:_e===1?1:-Math.pow(2,10*_e-10)*Math.sin((_e*10-10.75)*c4),easeOutElastic:_e=>_e===0?0:_e===1?1:Math.pow(2,-10*_e)*Math.sin((_e*10-.75)*c4)+1,easeInOutElastic:_e=>_e===0?0:_e===1?1:_e<.5?-(Math.pow(2,20*_e-10)*Math.sin((20*_e-11.125)*c5))/2:Math.pow(2,-20*_e+10)*Math.sin((20*_e-11.125)*c5)/2+1,easeInBounce:_e=>1-bounceOut(1-_e),easeOutBounce:bounceOut,easeInOutBounce:_e=>_e<.5?(1-bounceOut(1-2*_e))/2:(1+bounceOut(2*_e-1))/2,steps},$get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=_e=>!!(_e&&_e[$get]),getFluidValue=_e=>_e&&_e[$get]?_e[$get]():_e,getFluidObservers=_e=>_e[$observers]||null;function callFluidObserver(_e,et){_e.eventObserved?_e.eventObserved(et):_e(et)}function callFluidObservers(_e,et){const tt=_e[$observers];tt&&tt.forEach(rt=>{callFluidObserver(rt,et)})}var FluidValue=class{constructor(_e){if(!_e&&!(_e=this.get))throw Error("Unknown getter");setFluidGetter(this,_e)}},setFluidGetter=(_e,et)=>setHidden(_e,$get,et);function addFluidObserver(_e,et){if(_e[$get]){let tt=_e[$observers];tt||setHidden(_e,$observers,tt=new Set),tt.has(et)||(tt.add(et),_e.observerAdded&&_e.observerAdded(tt.size,et))}return et}function removeFluidObserver(_e,et){const tt=_e[$observers];if(tt&&tt.has(et)){const rt=tt.size-1;rt?tt.delete(et):_e[$observers]=null,_e.observerRemoved&&_e.observerRemoved(rt,et)}}var setHidden=(_e,et,tt)=>Object.defineProperty(_e,et,{value:tt,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=_e=>{const[et,tt]=parseCSSVariable(_e);if(!et||isSSR())return _e;const rt=window.getComputedStyle(document.documentElement).getPropertyValue(et);if(rt)return rt.trim();if(tt&&tt.startsWith("--")){const nt=window.getComputedStyle(document.documentElement).getPropertyValue(tt);return nt||_e}else{if(tt&&cssVariableRegex.test(tt))return variableToRgba(tt);if(tt)return tt}return _e},parseCSSVariable=_e=>{const et=cssVariableRegex.exec(_e);if(!et)return[,];const[,tt,rt]=et;return[tt,rt]},namedColorRegex,rgbaRound=(_e,et,tt,rt,nt)=>`rgba(${Math.round(et)}, ${Math.round(tt)}, ${Math.round(rt)}, ${nt})`,createStringInterpolator2=_e=>{namedColorRegex||(namedColorRegex=colors?new RegExp(`(${Object.keys(colors).join("|")})(?!\\w)`,"g"):/^\b$/);const et=_e.output.map(st=>getFluidValue(st).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba)),tt=et.map(st=>st.match(numberRegex).map(Number)),nt=tt[0].map((st,ot)=>tt.map(at=>{if(!(ot in at))throw Error('The arity of each "output" value must be equal');return at[ot]})).map(st=>createInterpolator({..._e,output:st}));return st=>{var ut;const ot=!unitRegex.test(et[0])&&((ut=et.find(lt=>unitRegex.test(lt)))==null?void 0:ut.replace(numberRegex,""));let at=0;return et[0].replace(numberRegex,()=>`${nt[at++](st)}${ot||""}`).replace(rgbaRegex,rgbaRound)}},prefix="react-spring: ",once=_e=>{const et=_e;let tt=!1;if(typeof et!="function")throw new TypeError(`${prefix}once requires a function parameter`);return(...rt)=>{tt||(et(...rt),tt=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function isAnimatedString(_e){return is.str(_e)&&(_e[0]=="#"||/\d/.test(_e)||!isSSR()&&cssVariableRegex.test(_e)||_e in(colors||{}))}var useIsomorphicLayoutEffect=isSSR()?reactExports.useEffect:reactExports.useLayoutEffect,useIsMounted=()=>{const _e=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>(_e.current=!0,()=>{_e.current=!1}),[]),_e};function useForceUpdate(){const _e=reactExports.useState()[1],et=useIsMounted();return()=>{et.current&&_e(Math.random())}}function useMemoOne(_e,et){const[tt]=reactExports.useState(()=>({inputs:et,result:_e()})),rt=reactExports.useRef(),nt=rt.current;let st=nt;return st?et&&st.inputs&&areInputsEqual(et,st.inputs)||(st={inputs:et,result:_e()}):st=tt,reactExports.useEffect(()=>{rt.current=st,nt==tt&&(tt.inputs=tt.result=void 0)},[st]),st.result}function areInputsEqual(_e,et){if(_e.length!==et.length)return!1;for(let tt=0;tt<_e.length;tt++)if(_e[tt]!==et[tt])return!1;return!0}var useOnce=_e=>reactExports.useEffect(_e,emptyDeps),emptyDeps=[];function usePrev(_e){const et=reactExports.useRef();return reactExports.useEffect(()=>{et.current=_e}),et.current}var $node=Symbol.for("Animated:node"),isAnimated=_e=>!!_e&&_e[$node]===_e,getAnimated=_e=>_e&&_e[$node],setAnimated=(_e,et)=>defineHidden(_e,$node,et),getPayload=_e=>_e&&_e[$node]&&_e[$node].getPayload(),Animated=class{constructor(){setAnimated(this,this)}getPayload(){return this.payload||[]}},AnimatedValue=class extends Animated{constructor(_e){super(),this._value=_e,this.done=!0,this.durationProgress=0,is.num(this._value)&&(this.lastPosition=this._value)}static create(_e){return new AnimatedValue(_e)}getPayload(){return[this]}getValue(){return this._value}setValue(_e,et){return is.num(_e)&&(this.lastPosition=_e,et&&(_e=Math.round(_e/et)*et,this.done&&(this.lastPosition=_e))),this._value===_e?!1:(this._value=_e,!0)}reset(){const{done:_e}=this;this.done=!1,is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,_e&&(this.lastVelocity=null),this.v0=null)}},AnimatedString=class extends AnimatedValue{constructor(_e){super(0),this._string=null,this._toString=createInterpolator({output:[_e,_e]})}static create(_e){return new AnimatedString(_e)}getValue(){const _e=this._string;return _e??(this._string=this._toString(this._value))}setValue(_e){if(is.str(_e)){if(_e==this._string)return!1;this._string=_e,this._value=1}else if(super.setValue(_e))this._string=null;else return!1;return!0}reset(_e){_e&&(this._toString=createInterpolator({output:[this.getValue(),_e]})),this._value=0,super.reset()}},TreeContext={dependencies:null},AnimatedObject=class extends Animated{constructor(_e){super(),this.source=_e,this.setValue(_e)}getValue(_e){const et={};return eachProp(this.source,(tt,rt)=>{isAnimated(tt)?et[rt]=tt.getValue(_e):hasFluidValue(tt)?et[rt]=getFluidValue(tt):_e||(et[rt]=tt)}),et}setValue(_e){this.source=_e,this.payload=this._makePayload(_e)}reset(){this.payload&&each(this.payload,_e=>_e.reset())}_makePayload(_e){if(_e){const et=new Set;return eachProp(_e,this._addToPayload,et),Array.from(et)}}_addToPayload(_e){TreeContext.dependencies&&hasFluidValue(_e)&&TreeContext.dependencies.add(_e);const et=getPayload(_e);et&&each(et,tt=>this.add(tt))}},AnimatedArray=class extends AnimatedObject{constructor(_e){super(_e)}static create(_e){return new AnimatedArray(_e)}getValue(){return this.source.map(_e=>_e.getValue())}setValue(_e){const et=this.getPayload();return _e.length==et.length?et.map((tt,rt)=>tt.setValue(_e[rt])).some(Boolean):(super.setValue(_e.map(makeAnimated)),!0)}};function makeAnimated(_e){return(isAnimatedString(_e)?AnimatedString:AnimatedValue).create(_e)}function getAnimatedType(_e){const et=getAnimated(_e);return et?et.constructor:is.arr(_e)?AnimatedArray:isAnimatedString(_e)?AnimatedString:AnimatedValue}var withAnimated=(_e,et)=>{const tt=!is.fun(_e)||_e.prototype&&_e.prototype.isReactComponent;return reactExports.forwardRef((rt,nt)=>{const st=reactExports.useRef(null),ot=tt&&reactExports.useCallback(vt=>{st.current=updateRef(nt,vt)},[nt]),[at,ut]=getAnimatedState(rt,et),lt=useForceUpdate(),dt=()=>{const vt=st.current;if(tt&&!vt)return;(vt?et.applyAnimatedValues(vt,at.getValue(!0)):!1)===!1&&lt()},ct=new PropsObserver(dt,ut),ft=reactExports.useRef();useIsomorphicLayoutEffect(()=>(ft.current=ct,each(ut,vt=>addFluidObserver(vt,ct)),()=>{ft.current&&(each(ft.current.deps,vt=>removeFluidObserver(vt,ft.current)),raf.cancel(ft.current.update))})),reactExports.useEffect(dt,[]),useOnce(()=>()=>{const vt=ft.current;each(vt.deps,Et=>removeFluidObserver(Et,vt))});const ht=et.getComponentProps(at.getValue());return reactExports.createElement(_e,{...ht,ref:ot})})},PropsObserver=class{constructor(_e,et){this.update=_e,this.deps=et}eventObserved(_e){_e.type=="change"&&raf.write(this.update)}};function getAnimatedState(_e,et){const tt=new Set;return TreeContext.dependencies=tt,_e.style&&(_e={..._e,style:et.createAnimatedStyle(_e.style)}),_e=new AnimatedObject(_e),TreeContext.dependencies=null,[_e,tt]}function updateRef(_e,et){return _e&&(is.fun(_e)?_e(et):_e.current=et),et}var cacheKey=Symbol.for("AnimatedComponent"),createHost=(_e,{applyAnimatedValues:et=()=>!1,createAnimatedStyle:tt=nt=>new AnimatedObject(nt),getComponentProps:rt=nt=>nt}={})=>{const nt={applyAnimatedValues:et,createAnimatedStyle:tt,getComponentProps:rt},st=ot=>{const at=getDisplayName(ot)||"Anonymous";return is.str(ot)?ot=st[ot]||(st[ot]=withAnimated(ot,nt)):ot=ot[cacheKey]||(ot[cacheKey]=withAnimated(ot,nt)),ot.displayName=`Animated(${at})`,ot};return eachProp(_e,(ot,at)=>{is.arr(_e)&&(at=getDisplayName(ot)),st[at]=st(ot)}),{animated:st}},getDisplayName=_e=>is.str(_e)?_e:_e&&is.str(_e.displayName)?_e.displayName:is.fun(_e)&&_e.name||null;function callProp(_e,...et){return is.fun(_e)?_e(...et):_e}var matchProp=(_e,et)=>_e===!0||!!(et&&_e&&(is.fun(_e)?_e(et):toArray(_e).includes(et))),resolveProp=(_e,et)=>is.obj(_e)?et&&_e[et]:_e,getDefaultProp=(_e,et)=>_e.default===!0?_e[et]:_e.default?_e.default[et]:void 0,noopTransform=_e=>_e,getDefaultProps=(_e,et=noopTransform)=>{let tt=DEFAULT_PROPS;_e.default&&_e.default!==!0&&(_e=_e.default,tt=Object.keys(_e));const rt={};for(const nt of tt){const st=et(_e[nt],nt);is.und(st)||(rt[nt]=st)}return rt},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function getForwardProps(_e){const et={};let tt=0;if(eachProp(_e,(rt,nt)=>{RESERVED_PROPS[nt]||(et[nt]=rt,tt++)}),tt)return et}function inferTo(_e){const et=getForwardProps(_e);if(et){const tt={to:et};return eachProp(_e,(rt,nt)=>nt in et||(tt[nt]=rt)),tt}return{..._e}}function computeGoal(_e){return _e=getFluidValue(_e),is.arr(_e)?_e.map(computeGoal):isAnimatedString(_e)?globals_exports.createStringInterpolator({range:[0,1],output:[_e,_e]})(1):_e}function hasProps(_e){for(const et in _e)return!0;return!1}function isAsyncTo(_e){return is.fun(_e)||is.arr(_e)&&is.obj(_e[0])}function detachRefs(_e,et){var tt;(tt=_e.ref)==null||tt.delete(_e),et==null||et.delete(_e)}function replaceRef(_e,et){var tt;et&&_e.ref!==et&&((tt=_e.ref)==null||tt.delete(_e),et.add(_e),_e.ref=et)}var config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},defaults={...config.default,mass:1,damping:1,easing:easings.linear,clamp:!1},AnimationConfig=class{constructor(){this.velocity=0,Object.assign(this,defaults)}};function mergeConfig(_e,et,tt){tt&&(tt={...tt},sanitizeConfig(tt,et),et={...tt,...et}),sanitizeConfig(_e,et),Object.assign(_e,et);for(const ot in defaults)_e[ot]==null&&(_e[ot]=defaults[ot]);let{frequency:rt,damping:nt}=_e;const{mass:st}=_e;return is.und(rt)||(rt<.01&&(rt=.01),nt<0&&(nt=0),_e.tension=Math.pow(2*Math.PI/rt,2)*st,_e.friction=4*Math.PI*nt*st/rt),_e}function sanitizeConfig(_e,et){if(!is.und(et.decay))_e.duration=void 0;else{const tt=!is.und(et.tension)||!is.und(et.friction);(tt||!is.und(et.frequency)||!is.und(et.damping)||!is.und(et.mass))&&(_e.duration=void 0,_e.decay=void 0),tt&&(_e.frequency=void 0)}}var emptyArray=[],Animation=class{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.config=new AnimationConfig,this.immediate=!1}};function scheduleProps(_e,{key:et,props:tt,defaultProps:rt,state:nt,actions:st}){return new Promise((ot,at)=>{let ut,lt,dt=matchProp(tt.cancel??(rt==null?void 0:rt.cancel),et);if(dt)ht();else{is.und(tt.pause)||(nt.paused=matchProp(tt.pause,et));let vt=rt==null?void 0:rt.pause;vt!==!0&&(vt=nt.paused||matchProp(vt,et)),ut=callProp(tt.delay||0,et),vt?(nt.resumeQueue.add(ft),st.pause()):(st.resume(),ft())}function ct(){nt.resumeQueue.add(ft),nt.timeouts.delete(lt),lt.cancel(),ut=lt.time-raf.now()}function ft(){ut>0&&!globals_exports.skipAnimation?(nt.delayed=!0,lt=raf.setTimeout(ht,ut),nt.pauseQueue.add(ct),nt.timeouts.add(lt)):ht()}function ht(){nt.delayed&&(nt.delayed=!1),nt.pauseQueue.delete(ct),nt.timeouts.delete(lt),_e<=(nt.cancelId||0)&&(dt=!0);try{st.start({...tt,callId:_e,cancel:dt},ot)}catch(vt){at(vt)}}})}var getCombinedResult=(_e,et)=>et.length==1?et[0]:et.some(tt=>tt.cancelled)?getCancelledResult(_e.get()):et.every(tt=>tt.noop)?getNoopResult(_e.get()):getFinishedResult(_e.get(),et.every(tt=>tt.finished)),getNoopResult=_e=>({value:_e,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(_e,et,tt=!1)=>({value:_e,finished:et,cancelled:tt}),getCancelledResult=_e=>({value:_e,cancelled:!0,finished:!1});function runAsync(_e,et,tt,rt){const{callId:nt,parentId:st,onRest:ot}=et,{asyncTo:at,promise:ut}=tt;return!st&&_e===at&&!et.reset?ut:tt.promise=(async()=>{tt.asyncId=nt,tt.asyncTo=_e;const lt=getDefaultProps(et,(xt,mt)=>mt==="onRest"?void 0:xt);let dt,ct;const ft=new Promise((xt,mt)=>(dt=xt,ct=mt)),ht=xt=>{const mt=nt<=(tt.cancelId||0)&&getCancelledResult(rt)||nt!==tt.asyncId&&getFinishedResult(rt,!1);if(mt)throw xt.result=mt,ct(xt),xt},vt=(xt,mt)=>{const gt=new BailSignal,yt=new SkipAnimationSignal;return(async()=>{if(globals_exports.skipAnimation)throw stopAsync(tt),yt.result=getFinishedResult(rt,!1),ct(yt),yt;ht(gt);const wt=is.obj(xt)?{...xt}:{...mt,to:xt};wt.parentId=nt,eachProp(lt,(Ct,St)=>{is.und(wt[St])&&(wt[St]=Ct)});const $t=await rt.start(wt);return ht(gt),tt.paused&&await new Promise(Ct=>{tt.resumeQueue.add(Ct)}),$t})()};let Et;if(globals_exports.skipAnimation)return stopAsync(tt),getFinishedResult(rt,!1);try{let xt;is.arr(_e)?xt=(async mt=>{for(const gt of mt)await vt(gt)})(_e):xt=Promise.resolve(_e(vt,rt.stop.bind(rt))),await Promise.all([xt.then(dt),ft]),Et=getFinishedResult(rt.get(),!0,!1)}catch(xt){if(xt instanceof BailSignal)Et=xt.result;else if(xt instanceof SkipAnimationSignal)Et=xt.result;else throw xt}finally{nt==tt.asyncId&&(tt.asyncId=st,tt.asyncTo=st?at:void 0,tt.promise=st?ut:void 0)}return is.fun(ot)&&raf.batchedUpdates(()=>{ot(Et,rt,rt.item)}),Et})()}function stopAsync(_e,et){flush(_e.timeouts,tt=>tt.cancel()),_e.pauseQueue.clear(),_e.resumeQueue.clear(),_e.asyncId=_e.asyncTo=_e.promise=void 0,et&&(_e.cancelId=et)}var BailSignal=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},SkipAnimationSignal=class extends Error{constructor(){super("SkipAnimationSignal")}},isFrameValue=_e=>_e instanceof FrameValue,nextId=1,FrameValue=class extends FluidValue{constructor(){super(...arguments),this.id=nextId++,this._priority=0}get priority(){return this._priority}set priority(_e){this._priority!=_e&&(this._priority=_e,this._onPriorityChange(_e))}get(){const _e=getAnimated(this);return _e&&_e.getValue()}to(..._e){return globals_exports.to(this,_e)}interpolate(..._e){return deprecateInterpolate(),globals_exports.to(this,_e)}toJSON(){return this.get()}observerAdded(_e){_e==1&&this._attach()}observerRemoved(_e){_e==0&&this._detach()}_attach(){}_detach(){}_onChange(_e,et=!1){callFluidObservers(this,{type:"change",parent:this,value:_e,idle:et})}_onPriorityChange(_e){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:_e})}},$P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=_e=>(_e[$P]&HAS_ANIMATED)>0,isAnimating=_e=>(_e[$P]&IS_ANIMATING)>0,isPaused=_e=>(_e[$P]&IS_PAUSED)>0,setActiveBit=(_e,et)=>et?_e[$P]|=IS_ANIMATING|HAS_ANIMATED:_e[$P]&=~IS_ANIMATING,setPausedBit=(_e,et)=>et?_e[$P]|=IS_PAUSED:_e[$P]&=~IS_PAUSED,SpringValue=class extends FrameValue{constructor(_e,et){if(super(),this.animation=new Animation,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!is.und(_e)||!is.und(et)){const tt=is.obj(_e)?{..._e}:{...et,from:_e};is.und(tt.default)&&(tt.default=!0),this.start(tt)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const _e=getAnimated(this);return _e instanceof AnimatedValue?_e.lastVelocity||0:_e.getPayload().map(et=>et.lastVelocity||0)}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(_e){let et=!0,tt=!1;const rt=this.animation;let{toValues:nt}=rt;const{config:st}=rt,ot=getPayload(rt.to);!ot&&hasFluidValue(rt.to)&&(nt=toArray(getFluidValue(rt.to))),rt.values.forEach((lt,dt)=>{if(lt.done)return;const ct=lt.constructor==AnimatedString?1:ot?ot[dt].lastPosition:nt[dt];let ft=rt.immediate,ht=ct;if(!ft){if(ht=lt.lastPosition,st.tension<=0){lt.done=!0;return}let vt=lt.elapsedTime+=_e;const Et=rt.fromValues[dt],xt=lt.v0!=null?lt.v0:lt.v0=is.arr(st.velocity)?st.velocity[dt]:st.velocity;let mt;const gt=st.precision||(Et==ct?.005:Math.min(1,Math.abs(ct-Et)*.001));if(is.und(st.duration))if(st.decay){const yt=st.decay===!0?.998:st.decay,wt=Math.exp(-(1-yt)*vt);ht=Et+xt/(1-yt)*(1-wt),ft=Math.abs(lt.lastPosition-ht)<=gt,mt=xt*wt}else{mt=lt.lastVelocity==null?xt:lt.lastVelocity;const yt=st.restVelocity||gt/10,wt=st.clamp?0:st.bounce,$t=!is.und(wt),Ct=Et==ct?lt.v0>0:Et<ct;let St,bt=!1;const Ot=1,Tt=Math.ceil(_e/Ot);for(let Lt=0;Lt<Tt&&(St=Math.abs(mt)>yt,!(!St&&(ft=Math.abs(ct-ht)<=gt,ft)));++Lt){$t&&(bt=ht==ct||ht>ct==Ct,bt&&(mt=-mt*wt,ht=ct));const Dt=-st.tension*1e-6*(ht-ct),Nt=-st.friction*.001*mt,At=(Dt+Nt)/st.mass;mt=mt+At*Ot,ht=ht+mt*Ot}}else{let yt=1;st.duration>0&&(this._memoizedDuration!==st.duration&&(this._memoizedDuration=st.duration,lt.durationProgress>0&&(lt.elapsedTime=st.duration*lt.durationProgress,vt=lt.elapsedTime+=_e)),yt=(st.progress||0)+vt/this._memoizedDuration,yt=yt>1?1:yt<0?0:yt,lt.durationProgress=yt),ht=Et+st.easing(yt)*(ct-Et),mt=(ht-lt.lastPosition)/_e,ft=yt==1}lt.lastVelocity=mt,Number.isNaN(ht)&&(console.warn("Got NaN while animating:",this),ft=!0)}ot&&!ot[dt].done&&(ft=!1),ft?lt.done=!0:et=!1,lt.setValue(ht,st.round)&&(tt=!0)});const at=getAnimated(this),ut=at.getValue();if(et){const lt=getFluidValue(rt.to);(ut!==lt||tt)&&!st.decay?(at.setValue(lt),this._onChange(lt)):tt&&st.decay&&this._onChange(ut),this._stop()}else tt&&this._onChange(ut)}set(_e){return raf.batchedUpdates(()=>{this._stop(),this._focus(_e),this._set(_e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:_e,config:et}=this.animation;raf.batchedUpdates(()=>{this._onStart(),et.decay||this._set(_e,!1),this._stop()})}return this}update(_e){return(this.queue||(this.queue=[])).push(_e),this}start(_e,et){let tt;return is.und(_e)?(tt=this.queue||[],this.queue=[]):tt=[is.obj(_e)?_e:{...et,to:_e}],Promise.all(tt.map(rt=>this._update(rt))).then(rt=>getCombinedResult(this,rt))}stop(_e){const{to:et}=this.animation;return this._focus(this.get()),stopAsync(this._state,_e&&this._lastCallId),raf.batchedUpdates(()=>this._stop(et,_e)),this}reset(){this._update({reset:!0})}eventObserved(_e){_e.type=="change"?this._start():_e.type=="priority"&&(this.priority=_e.priority+1)}_prepareNode(_e){const et=this.key||"";let{to:tt,from:rt}=_e;tt=is.obj(tt)?tt[et]:tt,(tt==null||isAsyncTo(tt))&&(tt=void 0),rt=is.obj(rt)?rt[et]:rt,rt==null&&(rt=void 0);const nt={to:tt,from:rt};return hasAnimated(this)||(_e.reverse&&([tt,rt]=[rt,tt]),rt=getFluidValue(rt),is.und(rt)?getAnimated(this)||this._set(tt):this._set(rt)),nt}_update({..._e},et){const{key:tt,defaultProps:rt}=this;_e.default&&Object.assign(rt,getDefaultProps(_e,(ot,at)=>/^on/.test(at)?resolveProp(ot,tt):ot)),mergeActiveFn(this,_e,"onProps"),sendEvent(this,"onProps",_e,this);const nt=this._prepareNode(_e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const st=this._state;return scheduleProps(++this._lastCallId,{key:tt,props:_e,defaultProps:rt,state:st,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(st.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(st.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,nt)}}).then(ot=>{if(_e.loop&&ot.finished&&!(et&&ot.noop)){const at=createLoopUpdate(_e);if(at)return this._update(at,!0)}return ot})}_merge(_e,et,tt){if(et.cancel)return this.stop(!0),tt(getCancelledResult(this));const rt=!is.und(_e.to),nt=!is.und(_e.from);if(rt||nt)if(et.callId>this._lastToId)this._lastToId=et.callId;else return tt(getCancelledResult(this));const{key:st,defaultProps:ot,animation:at}=this,{to:ut,from:lt}=at;let{to:dt=ut,from:ct=lt}=_e;nt&&!rt&&(!et.default||is.und(dt))&&(dt=ct),et.reverse&&([dt,ct]=[ct,dt]);const ft=!isEqual(ct,lt);ft&&(at.from=ct),ct=getFluidValue(ct);const ht=!isEqual(dt,ut);ht&&this._focus(dt);const vt=isAsyncTo(et.to),{config:Et}=at,{decay:xt,velocity:mt}=Et;(rt||nt)&&(Et.velocity=0),et.config&&!vt&&mergeConfig(Et,callProp(et.config,st),et.config!==ot.config?callProp(ot.config,st):void 0);let gt=getAnimated(this);if(!gt||is.und(dt))return tt(getFinishedResult(this,!0));const yt=is.und(et.reset)?nt&&!et.default:!is.und(ct)&&matchProp(et.reset,st),wt=yt?ct:this.get(),$t=computeGoal(dt),Ct=is.num($t)||is.arr($t)||isAnimatedString($t),St=!vt&&(!Ct||matchProp(ot.immediate||et.immediate,st));if(ht){const Lt=getAnimatedType(dt);if(Lt!==gt.constructor)if(St)gt=this._set($t);else throw Error(`Cannot animate between ${gt.constructor.name} and ${Lt.name}, as the "to" prop suggests`)}const bt=gt.constructor;let Ot=hasFluidValue(dt),Tt=!1;if(!Ot){const Lt=yt||!hasAnimated(this)&&ft;(ht||Lt)&&(Tt=isEqual(computeGoal(wt),$t),Ot=!Tt),(!isEqual(at.immediate,St)&&!St||!isEqual(Et.decay,xt)||!isEqual(Et.velocity,mt))&&(Ot=!0)}if(Tt&&isAnimating(this)&&(at.changed&&!yt?Ot=!0:Ot||this._stop(ut)),!vt&&((Ot||hasFluidValue(ut))&&(at.values=gt.getPayload(),at.toValues=hasFluidValue(dt)?null:bt==AnimatedString?[1]:toArray($t)),at.immediate!=St&&(at.immediate=St,!St&&!yt&&this._set(ut)),Ot)){const{onRest:Lt}=at;each(ACTIVE_EVENTS,Nt=>mergeActiveFn(this,et,Nt));const Dt=getFinishedResult(this,checkFinished(this,ut));flushCalls(this._pendingCalls,Dt),this._pendingCalls.add(tt),at.changed&&raf.batchedUpdates(()=>{var Nt;at.changed=!yt,Lt==null||Lt(Dt,this),yt?callProp(ot.onRest,Dt):(Nt=at.onStart)==null||Nt.call(at,Dt,this)})}yt&&this._set(wt),vt?tt(runAsync(et.to,et,this._state,this)):Ot?this._start():isAnimating(this)&&!ht?this._pendingCalls.add(tt):tt(getNoopResult(wt))}_focus(_e){const et=this.animation;_e!==et.to&&(getFluidObservers(this)&&this._detach(),et.to=_e,getFluidObservers(this)&&this._attach())}_attach(){let _e=0;const{to:et}=this.animation;hasFluidValue(et)&&(addFluidObserver(et,this),isFrameValue(et)&&(_e=et.priority+1)),this.priority=_e}_detach(){const{to:_e}=this.animation;hasFluidValue(_e)&&removeFluidObserver(_e,this)}_set(_e,et=!0){const tt=getFluidValue(_e);if(!is.und(tt)){const rt=getAnimated(this);if(!rt||!isEqual(tt,rt.getValue())){const nt=getAnimatedType(tt);!rt||rt.constructor!=nt?setAnimated(this,nt.create(tt)):rt.setValue(tt),rt&&raf.batchedUpdates(()=>{this._onChange(tt,et)})}}return getAnimated(this)}_onStart(){const _e=this.animation;_e.changed||(_e.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,_e.to)),this))}_onChange(_e,et){et||(this._onStart(),callProp(this.animation.onChange,_e,this)),callProp(this.defaultProps.onChange,_e,this),super._onChange(_e,et)}_start(){const _e=this.animation;getAnimated(this).reset(getFluidValue(_e.to)),_e.immediate||(_e.fromValues=_e.values.map(et=>et.lastPosition)),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals_exports.skipAnimation?this.finish():frameLoop.start(this)}_stop(_e,et){if(isAnimating(this)){setActiveBit(this,!1);const tt=this.animation;each(tt.values,nt=>{nt.done=!0}),tt.toValues&&(tt.onChange=tt.onPause=tt.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const rt=et?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,_e??tt.to));flushCalls(this._pendingCalls,rt),tt.changed&&(tt.changed=!1,sendEvent(this,"onRest",rt,this))}}};function checkFinished(_e,et){const tt=computeGoal(et),rt=computeGoal(_e.get());return isEqual(rt,tt)}function createLoopUpdate(_e,et=_e.loop,tt=_e.to){const rt=callProp(et);if(rt){const nt=rt!==!0&&inferTo(rt),st=(nt||_e).reverse,ot=!nt||nt.reset;return createUpdate({..._e,loop:et,default:!1,pause:void 0,to:!st||isAsyncTo(tt)?tt:void 0,from:ot?_e.from:void 0,reset:ot,...nt})}}function createUpdate(_e){const{to:et,from:tt}=_e=inferTo(_e),rt=new Set;return is.obj(et)&&findDefined(et,rt),is.obj(tt)&&findDefined(tt,rt),_e.keys=rt.size?Array.from(rt):null,_e}function declareUpdate(_e){const et=createUpdate(_e);return is.und(et.default)&&(et.default=getDefaultProps(et)),et}function findDefined(_e,et){eachProp(_e,(tt,rt)=>tt!=null&&et.add(rt))}var ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(_e,et,tt){_e.animation[tt]=et[tt]!==getDefaultProp(et,tt)?resolveProp(et[tt],_e.key):void 0}function sendEvent(_e,et,...tt){var rt,nt,st,ot;(nt=(rt=_e.animation)[et])==null||nt.call(rt,...tt),(ot=(st=_e.defaultProps)[et])==null||ot.call(st,...tt)}var BATCHED_EVENTS=["onStart","onChange","onRest"],nextId2=1,Controller=class{constructor(_e,et){this.id=nextId2++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),et&&(this._flush=et),_e&&this.start({default:!0,..._e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(_e=>_e.idle&&!_e.isDelayed&&!_e.isPaused)}get item(){return this._item}set item(_e){this._item=_e}get(){const _e={};return this.each((et,tt)=>_e[tt]=et.get()),_e}set(_e){for(const et in _e){const tt=_e[et];is.und(tt)||this.springs[et].set(tt)}}update(_e){return _e&&this.queue.push(createUpdate(_e)),this}start(_e){let{queue:et}=this;return _e?et=toArray(_e).map(createUpdate):this.queue=[],this._flush?this._flush(this,et):(prepareKeys(this,et),flushUpdateQueue(this,et))}stop(_e,et){if(_e!==!!_e&&(et=_e),et){const tt=this.springs;each(toArray(et),rt=>tt[rt].stop(!!_e))}else stopAsync(this._state,this._lastAsyncId),this.each(tt=>tt.stop(!!_e));return this}pause(_e){if(is.und(_e))this.start({pause:!0});else{const et=this.springs;each(toArray(_e),tt=>et[tt].pause())}return this}resume(_e){if(is.und(_e))this.start({pause:!1});else{const et=this.springs;each(toArray(_e),tt=>et[tt].resume())}return this}each(_e){eachProp(this.springs,_e)}_onFrame(){const{onStart:_e,onChange:et,onRest:tt}=this._events,rt=this._active.size>0,nt=this._changed.size>0;(rt&&!this._started||nt&&!this._started)&&(this._started=!0,flush(_e,([at,ut])=>{ut.value=this.get(),at(ut,this,this._item)}));const st=!rt&&this._started,ot=nt||st&&tt.size?this.get():null;nt&&et.size&&flush(et,([at,ut])=>{ut.value=ot,at(ut,this,this._item)}),st&&(this._started=!1,flush(tt,([at,ut])=>{ut.value=ot,at(ut,this,this._item)}))}eventObserved(_e){if(_e.type=="change")this._changed.add(_e.parent),_e.idle||this._active.add(_e.parent);else if(_e.type=="idle")this._active.delete(_e.parent);else return;raf.onFrame(this._onFrame)}};function flushUpdateQueue(_e,et){return Promise.all(et.map(tt=>flushUpdate(_e,tt))).then(tt=>getCombinedResult(_e,tt))}async function flushUpdate(_e,et,tt){const{keys:rt,to:nt,from:st,loop:ot,onRest:at,onResolve:ut}=et,lt=is.obj(et.default)&&et.default;ot&&(et.loop=!1),nt===!1&&(et.to=null),st===!1&&(et.from=null);const dt=is.arr(nt)||is.fun(nt)?nt:void 0;dt?(et.to=void 0,et.onRest=void 0,lt&&(lt.onRest=void 0)):each(BATCHED_EVENTS,Et=>{const xt=et[Et];if(is.fun(xt)){const mt=_e._events[Et];et[Et]=({finished:gt,cancelled:yt})=>{const wt=mt.get(xt);wt?(gt||(wt.finished=!1),yt&&(wt.cancelled=!0)):mt.set(xt,{value:null,finished:gt||!1,cancelled:yt||!1})},lt&&(lt[Et]=et[Et])}});const ct=_e._state;et.pause===!ct.paused?(ct.paused=et.pause,flushCalls(et.pause?ct.pauseQueue:ct.resumeQueue)):ct.paused&&(et.pause=!0);const ft=(rt||Object.keys(_e.springs)).map(Et=>_e.springs[Et].start(et)),ht=et.cancel===!0||getDefaultProp(et,"cancel")===!0;(dt||ht&&ct.asyncId)&&ft.push(scheduleProps(++_e._lastAsyncId,{props:et,state:ct,actions:{pause:noop,resume:noop,start(Et,xt){ht?(stopAsync(ct,_e._lastAsyncId),xt(getCancelledResult(_e))):(Et.onRest=at,xt(runAsync(dt,Et,ct,_e)))}}})),ct.paused&&await new Promise(Et=>{ct.resumeQueue.add(Et)});const vt=getCombinedResult(_e,await Promise.all(ft));if(ot&&vt.finished&&!(tt&&vt.noop)){const Et=createLoopUpdate(et,ot,nt);if(Et)return prepareKeys(_e,[Et]),flushUpdate(_e,Et,!0)}return ut&&raf.batchedUpdates(()=>ut(vt,_e,_e.item)),vt}function getSprings(_e,et){const tt={..._e.springs};return et&&each(toArray(et),rt=>{is.und(rt.keys)&&(rt=createUpdate(rt)),is.obj(rt.to)||(rt={...rt,to:void 0}),prepareSprings(tt,rt,nt=>createSpring(nt))}),setSprings(_e,tt),tt}function setSprings(_e,et){eachProp(et,(tt,rt)=>{_e.springs[rt]||(_e.springs[rt]=tt,addFluidObserver(tt,_e))})}function createSpring(_e,et){const tt=new SpringValue;return tt.key=_e,et&&addFluidObserver(tt,et),tt}function prepareSprings(_e,et,tt){et.keys&&each(et.keys,rt=>{(_e[rt]||(_e[rt]=tt(rt)))._prepareNode(et)})}function prepareKeys(_e,et){each(et,tt=>{prepareSprings(_e.springs,tt,rt=>createSpring(rt,_e))})}var SpringContext=({children:_e,...et})=>{const tt=reactExports.useContext(ctx),rt=et.pause||!!tt.pause,nt=et.immediate||!!tt.immediate;et=useMemoOne(()=>({pause:rt,immediate:nt}),[rt,nt]);const{Provider:st}=ctx;return reactExports.createElement(st,{value:et},_e)},ctx=makeContext(SpringContext,{});SpringContext.Provider=ctx.Provider;SpringContext.Consumer=ctx.Consumer;function makeContext(_e,et){return Object.assign(_e,reactExports.createContext(et)),_e.Provider._context=_e,_e.Consumer._context=_e,_e}var SpringRef=()=>{const _e=[],et=function(rt){deprecateDirectCall();const nt=[];return each(_e,(st,ot)=>{if(is.und(rt))nt.push(st.start());else{const at=tt(rt,st,ot);at&&nt.push(st.start(at))}}),nt};et.current=_e,et.add=function(rt){_e.includes(rt)||_e.push(rt)},et.delete=function(rt){const nt=_e.indexOf(rt);~nt&&_e.splice(nt,1)},et.pause=function(){return each(_e,rt=>rt.pause(...arguments)),this},et.resume=function(){return each(_e,rt=>rt.resume(...arguments)),this},et.set=function(rt){each(_e,(nt,st)=>{const ot=is.fun(rt)?rt(st,nt):rt;ot&&nt.set(ot)})},et.start=function(rt){const nt=[];return each(_e,(st,ot)=>{if(is.und(rt))nt.push(st.start());else{const at=this._getProps(rt,st,ot);at&&nt.push(st.start(at))}}),nt},et.stop=function(){return each(_e,rt=>rt.stop(...arguments)),this},et.update=function(rt){return each(_e,(nt,st)=>nt.update(this._getProps(rt,nt,st))),this};const tt=function(rt,nt,st){return is.fun(rt)?rt(st,nt):rt};return et._getProps=tt,et};function useSprings(_e,et,tt){const rt=is.fun(et)&&et;rt&&!tt&&(tt=[]);const nt=reactExports.useMemo(()=>rt||arguments.length==3?SpringRef():void 0,[]),st=reactExports.useRef(0),ot=useForceUpdate(),at=reactExports.useMemo(()=>({ctrls:[],queue:[],flush(mt,gt){const yt=getSprings(mt,gt);return st.current>0&&!at.queue.length&&!Object.keys(yt).some($t=>!mt.springs[$t])?flushUpdateQueue(mt,gt):new Promise($t=>{setSprings(mt,yt),at.queue.push(()=>{$t(flushUpdateQueue(mt,gt))}),ot()})}}),[]),ut=reactExports.useRef([...at.ctrls]),lt=[],dt=usePrev(_e)||0;reactExports.useMemo(()=>{each(ut.current.slice(_e,dt),mt=>{detachRefs(mt,nt),mt.stop(!0)}),ut.current.length=_e,ct(dt,_e)},[_e]),reactExports.useMemo(()=>{ct(0,Math.min(dt,_e))},tt);function ct(mt,gt){for(let yt=mt;yt<gt;yt++){const wt=ut.current[yt]||(ut.current[yt]=new Controller(null,at.flush)),$t=rt?rt(yt,wt):et[yt];$t&&(lt[yt]=declareUpdate($t))}}const ft=ut.current.map((mt,gt)=>getSprings(mt,lt[gt])),ht=reactExports.useContext(SpringContext),vt=usePrev(ht),Et=ht!==vt&&hasProps(ht);useIsomorphicLayoutEffect(()=>{st.current++,at.ctrls=ut.current;const{queue:mt}=at;mt.length&&(at.queue=[],each(mt,gt=>gt())),each(ut.current,(gt,yt)=>{nt==null||nt.add(gt),Et&&gt.start({default:ht});const wt=lt[yt];wt&&(replaceRef(gt,wt.ref),gt.ref?gt.queue.push(wt):gt.start(wt))})}),useOnce(()=>()=>{each(at.ctrls,mt=>mt.stop(!0))});const xt=ft.map(mt=>({...mt}));return nt?[xt,nt]:xt}function useSpring(_e,et){const tt=is.fun(_e),[[rt],nt]=useSprings(1,tt?_e:[_e],tt?et||[]:et);return tt||arguments.length==2?[rt,nt]:rt}function useTransition(_e,et,tt){const rt=is.fun(et)&&et,{reset:nt,sort:st,trail:ot=0,expires:at=!0,exitBeforeEnter:ut=!1,onDestroyed:lt,ref:dt,config:ct}=rt?rt():et,ft=reactExports.useMemo(()=>rt||arguments.length==3?SpringRef():void 0,[]),ht=toArray(_e),vt=[],Et=reactExports.useRef(null),xt=nt?null:Et.current;useIsomorphicLayoutEffect(()=>{Et.current=vt}),useOnce(()=>(each(vt,At=>{ft==null||ft.add(At.ctrl),At.ctrl.ref=ft}),()=>{each(Et.current,At=>{At.expired&&clearTimeout(At.expirationId),detachRefs(At.ctrl,ft),At.ctrl.stop(!0)})}));const mt=getKeys(ht,rt?rt():et,xt),gt=nt&&Et.current||[];useIsomorphicLayoutEffect(()=>each(gt,({ctrl:At,item:jt,key:Ft})=>{detachRefs(At,ft),callProp(lt,jt,Ft)}));const yt=[];if(xt&&each(xt,(At,jt)=>{At.expired?(clearTimeout(At.expirationId),gt.push(At)):(jt=yt[jt]=mt.indexOf(At.key),~jt&&(vt[jt]=At))}),each(ht,(At,jt)=>{vt[jt]||(vt[jt]={key:mt[jt],item:At,phase:"mount",ctrl:new Controller},vt[jt].ctrl.item=At)}),yt.length){let At=-1;const{leave:jt}=rt?rt():et;each(yt,(Ft,Pt)=>{const Rt=xt[Pt];~Ft?(At=vt.indexOf(Rt),vt[At]={...Rt,item:ht[Ft]}):jt&&vt.splice(++At,0,Rt)})}is.fun(st)&&vt.sort((At,jt)=>st(At.item,jt.item));let wt=-ot;const $t=useForceUpdate(),Ct=getDefaultProps(et),St=new Map,bt=reactExports.useRef(new Map),Ot=reactExports.useRef(!1);each(vt,(At,jt)=>{const Ft=At.key,Pt=At.phase,Rt=rt?rt():et;let kt,It;const Bt=callProp(Rt.delay||0,Ft);if(Pt=="mount")kt=Rt.enter,It="enter";else{const zt=mt.indexOf(Ft)<0;if(Pt!="leave")if(zt)kt=Rt.leave,It="leave";else if(kt=Rt.update)It="update";else return;else if(!zt)kt=Rt.enter,It="enter";else return}if(kt=callProp(kt,At.item,jt),kt=is.obj(kt)?inferTo(kt):{to:kt},!kt.config){const zt=ct||Ct.config;kt.config=callProp(zt,At.item,jt,It)}wt+=ot;const Mt={...Ct,delay:Bt+wt,ref:dt,immediate:Rt.immediate,reset:!1,...kt};if(It=="enter"&&is.und(Mt.from)){const zt=rt?rt():et,Qt=is.und(zt.initial)||xt?zt.from:zt.initial;Mt.from=callProp(Qt,At.item,jt)}const{onResolve:Vt}=Mt;Mt.onResolve=zt=>{callProp(Vt,zt);const Qt=Et.current,Ut=Qt.find(Wt=>Wt.key===Ft);if(Ut&&!(zt.cancelled&&Ut.phase!="update")&&Ut.ctrl.idle){const Wt=Qt.every(Ht=>Ht.ctrl.idle);if(Ut.phase=="leave"){const Ht=callProp(at,Ut.item);if(Ht!==!1){const Gt=Ht===!0?0:Ht;if(Ut.expired=!0,!Wt&&Gt>0){Gt<=2147483647&&(Ut.expirationId=setTimeout($t,Gt));return}}}Wt&&Qt.some(Ht=>Ht.expired)&&(bt.current.delete(Ut),ut&&(Ot.current=!0),$t())}};const qt=getSprings(At.ctrl,Mt);It==="leave"&&ut?bt.current.set(At,{phase:It,springs:qt,payload:Mt}):St.set(At,{phase:It,springs:qt,payload:Mt})});const Tt=reactExports.useContext(SpringContext),Lt=usePrev(Tt),Dt=Tt!==Lt&&hasProps(Tt);useIsomorphicLayoutEffect(()=>{Dt&&each(vt,At=>{At.ctrl.start({default:Tt})})},[Tt]),each(St,(At,jt)=>{if(bt.current.size){const Ft=vt.findIndex(Pt=>Pt.key===jt.key);vt.splice(Ft,1)}}),useIsomorphicLayoutEffect(()=>{each(bt.current.size?bt.current:St,({phase:At,payload:jt},Ft)=>{const{ctrl:Pt}=Ft;Ft.phase=At,ft==null||ft.add(Pt),Dt&&At=="enter"&&Pt.start({default:Tt}),jt&&(replaceRef(Pt,jt.ref),(Pt.ref||ft)&&!Ot.current?Pt.update(jt):(Pt.start(jt),Ot.current&&(Ot.current=!1)))})},nt?void 0:tt);const Nt=At=>reactExports.createElement(reactExports.Fragment,null,vt.map((jt,Ft)=>{const{springs:Pt}=St.get(jt)||jt.ctrl,Rt=At({...Pt},jt.item,jt,Ft);return Rt&&Rt.type?reactExports.createElement(Rt.type,{...Rt.props,key:is.str(jt.key)||is.num(jt.key)?jt.key:jt.ctrl.id,ref:Rt.ref}):Rt}));return ft?[Nt,ft]:Nt}var nextKey=1;function getKeys(_e,{key:et,keys:tt=et},rt){if(tt===null){const nt=new Set;return _e.map(st=>{const ot=rt&&rt.find(at=>at.item===st&&at.phase!=="leave"&&!nt.has(at));return ot?(nt.add(ot),ot.key):nextKey++})}return is.und(tt)?_e:is.fun(tt)?_e.map(tt):toArray(tt)}var Interpolation=class extends FrameValue{constructor(_e,et){super(),this.source=_e,this.idle=!0,this._active=new Set,this.calc=createInterpolator(...et);const tt=this._get(),rt=getAnimatedType(tt);setAnimated(this,rt.create(tt))}advance(_e){const et=this._get(),tt=this.get();isEqual(et,tt)||(getAnimated(this).setValue(et),this._onChange(et,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const _e=is.arr(this.source)?this.source.map(getFluidValue):toArray(getFluidValue(this.source));return this.calc(..._e)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each(getPayload(this),_e=>{_e.done=!1}),globals_exports.skipAnimation?(raf.batchedUpdates(()=>this.advance()),becomeIdle(this)):frameLoop.start(this))}_attach(){let _e=1;each(toArray(this.source),et=>{hasFluidValue(et)&&addFluidObserver(et,this),isFrameValue(et)&&(et.idle||this._active.add(et),_e=Math.max(_e,et.priority+1))}),this.priority=_e,this._start()}_detach(){each(toArray(this.source),_e=>{hasFluidValue(_e)&&removeFluidObserver(_e,this)}),this._active.clear(),becomeIdle(this)}eventObserved(_e){_e.type=="change"?_e.idle?this.advance():(this._active.add(_e.parent),this._start()):_e.type=="idle"?this._active.delete(_e.parent):_e.type=="priority"&&(this.priority=toArray(this.source).reduce((et,tt)=>Math.max(et,(isFrameValue(tt)?tt.priority:0)+1),0))}};function isIdle(_e){return _e.idle!==!1}function checkIdle(_e){return!_e.size||Array.from(_e).every(isIdle)}function becomeIdle(_e){_e.idle||(_e.idle=!0,each(getPayload(_e),et=>{et.done=!0}),callFluidObservers(_e,{type:"idle",parent:_e}))}globals_exports.assign({createStringInterpolator:createStringInterpolator2,to:(_e,et)=>new Interpolation(_e,et)});var k=/^--/;function I(_e,et){return et==null||typeof et=="boolean"||et===""?"":typeof et=="number"&&et!==0&&!k.test(_e)&&!(c.hasOwnProperty(_e)&&c[_e])?et+"px":(""+et).trim()}var v$1={};function V(_e,et){if(!_e.nodeType||!_e.setAttribute)return!1;let tt=_e.nodeName==="filter"||_e.parentNode&&_e.parentNode.nodeName==="filter",{style:rt,children:nt,scrollTop:st,scrollLeft:ot,viewBox:at,...ut}=et,lt=Object.values(ut),dt=Object.keys(ut).map(ct=>tt||_e.hasAttribute(ct)?ct:v$1[ct]||(v$1[ct]=ct.replace(/([A-Z])/g,ft=>"-"+ft.toLowerCase())));nt!==void 0&&(_e.textContent=nt);for(let ct in rt)if(rt.hasOwnProperty(ct)){let ft=I(ct,rt[ct]);k.test(ct)?_e.style.setProperty(ct,ft):_e.style[ct]=ft}dt.forEach((ct,ft)=>{_e.setAttribute(ct,lt[ft])}),st!==void 0&&(_e.scrollTop=st),ot!==void 0&&(_e.scrollLeft=ot),at!==void 0&&_e.setAttribute("viewBox",at)}var c={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},F=(_e,et)=>_e+et.charAt(0).toUpperCase()+et.substring(1),L=["Webkit","Ms","Moz","O"];c=Object.keys(c).reduce((_e,et)=>(L.forEach(tt=>_e[F(tt,et)]=_e[et]),_e),c);var _=/^(matrix|translate|scale|rotate|skew)/,$=/^(translate)/,G=/^(rotate|skew)/,y=(_e,et)=>is.num(_e)&&_e!==0?_e+et:_e,h$1=(_e,et)=>is.arr(_e)?_e.every(tt=>h$1(tt,et)):is.num(_e)?_e===et:parseFloat(_e)===et,g=class extends AnimatedObject{constructor({x:_e,y:et,z:tt,...rt}){let nt=[],st=[];(_e||et||tt)&&(nt.push([_e||0,et||0,tt||0]),st.push(ot=>[`translate3d(${ot.map(at=>y(at,"px")).join(",")})`,h$1(ot,0)])),eachProp(rt,(ot,at)=>{if(at==="transform")nt.push([ot||""]),st.push(ut=>[ut,ut===""]);else if(_.test(at)){if(delete rt[at],is.und(ot))return;let ut=$.test(at)?"px":G.test(at)?"deg":"";nt.push(toArray(ot)),st.push(at==="rotate3d"?([lt,dt,ct,ft])=>[`rotate3d(${lt},${dt},${ct},${y(ft,ut)})`,h$1(ft,0)]:lt=>[`${at}(${lt.map(dt=>y(dt,ut)).join(",")})`,h$1(lt,at.startsWith("scale")?1:0)])}}),nt.length&&(rt.transform=new x(nt,st)),super(rt)}},x=class extends FluidValue{constructor(et,tt){super();Kt(this,"_value",null);this.inputs=et,this.transforms=tt}get(){return this._value||(this._value=this._get())}_get(){let et="",tt=!0;return each(this.inputs,(rt,nt)=>{let st=getFluidValue(rt[0]),[ot,at]=this.transforms[nt](is.arr(st)?st:rt.map(getFluidValue));et+=" "+ot,tt=tt&&at}),tt?"none":et}observerAdded(et){et==1&&each(this.inputs,tt=>each(tt,rt=>hasFluidValue(rt)&&addFluidObserver(rt,this)))}observerRemoved(et){et==0&&each(this.inputs,tt=>each(tt,rt=>hasFluidValue(rt)&&removeFluidObserver(rt,this)))}eventObserved(et){et.type=="change"&&(this._value=null),callFluidObservers(this,et)}},C=["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","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"];globals_exports.assign({batchedUpdates:reactDomExports.unstable_batchedUpdates,createStringInterpolator:createStringInterpolator2,colors:colors2});var q$1=createHost(C,{applyAnimatedValues:V,createAnimatedStyle:_e=>new g(_e),getComponentProps:({scrollTop:_e,scrollLeft:et,...tt})=>tt}),it$1=q$1.animated;const Context=reactExports.createContext(null),useFormControl=()=>{const _e=reactExports.useContext(Context);if(!_e)throw new Error("Cannot be rendered outside the FormControl component");return _e},Input=reactExports.forwardRef(({noValidationIcon:_e,placeholder:et,size:tt="md",type:rt="text",className:nt,...st},ot)=>{const{id:at,isRequired:ut,isReadOnly:lt,status:dt}=useFormControl(),ct=clsx({"form-control":!lt,"form-control-lg":tt==="lg","form-control-sm":tt==="sm","is-invalid":dt==="invalid","is-valid":dt==="valid","form-control-plaintext":lt,"no-validation-icon":_e},nt);return jsxRuntimeExports.jsx("input",{ref:ot,id:at,className:ct,type:rt,placeholder:et,required:ut,readOnly:lt,...st})});Input.displayName="Input";const Input$1=Input,Label=reactExports.forwardRef(({leftIcon:_e,optionalText:et="Optional",requiredText:tt="*",children:rt,className:nt},st)=>{const{id:ot,isOptional:at,isRequired:ut}=useFormControl(),lt=clsx("form-label",{"has-icon":_e},nt),dt=at&&!ut,ct=ut&&!at;return reactExports.useEffect(()=>{if(at&&ut)throw new Error("Cannot be optional and required at the same time")},[at,ut]),jsxRuntimeExports.jsxs("label",{ref:st,htmlFor:ot,className:lt,children:[_e,rt,dt&&jsxRuntimeExports.jsxs("em",{className:"optional",children:["- ",et]}),ct&&jsxRuntimeExports.jsx("em",{className:"required",children:tt})]})});Label.displayName="Label";const Label$1=Label,FormText=({children:_e})=>{const{status:et}=useFormControl(),tt=clsx("form-text",{"is-invalid":et==="invalid",valid:et==="valid"});return jsxRuntimeExports.jsx("p",{className:tt,children:jsxRuntimeExports.jsx("em",{children:_e})})};FormText.displayName="Text";const FormText$1=FormText,Root$2=reactExports.forwardRef(({children:_e,className:et,id:tt,isOptional:rt,isReadOnly:nt,isRequired:st,status:ot,...at},ut)=>{const lt=reactExports.useMemo(()=>({id:tt,isOptional:rt,isRequired:st,isReadOnly:nt,status:ot}),[tt,rt,nt,st,ot]);return jsxRuntimeExports.jsx(Context.Provider,{value:lt,children:jsxRuntimeExports.jsx("div",{ref:ut,className:et,...at,children:_e})})}),FormControl=Object.assign(Root$2,{Label:Label$1,Input:Input$1,Text:FormText$1});Root$2.displayName="FormControl";const FormControl$1=FormControl,Grid=({children:_e,className:et,...tt})=>{const rt=clsx("grid",et);return jsxRuntimeExports.jsx("div",{className:rt,...tt,children:_e})},Column=({sm:_e,md:et,lg:tt,xl:rt,children:nt,className:st,as:ot,...at})=>{const ut=ot||"div",lt=clsx({[`g-col-${_e}`]:_e,[et?`g-col-md-${et}`:""]:et,[tt?`g-col-lg-${tt}`:""]:tt,[rt?`g-col-xl-${rt}`:""]:rt},st);return jsxRuntimeExports.jsx(ut,{className:lt,...at,children:nt})};Grid.displayName="Grid";Column.displayName="Grid.Col";Grid.Col=Column;function Badge({children:_e}){return jsxRuntimeExports.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:_e})}function Navbar({children:_e,className:et,...tt}){const rt=clsx("navbar",et);return jsxRuntimeExports.jsx("nav",{className:rt,...tt,children:_e})}function NavBarNav({children:_e,className:et,...tt}){const rt=clsx("navbar-nav",et);return jsxRuntimeExports.jsx("ul",{className:rt,...tt,children:_e})}const NavItem=reactExports.forwardRef(({children:_e,className:et,...tt},rt)=>{const nt=clsx("nav-item",et);return jsxRuntimeExports.jsx("li",{ref:rt,className:nt,...tt,children:_e})});NavItem.displayName="NavItem";const VisuallyHidden=reactExports.forwardRef(({children:_e},et)=>jsxRuntimeExports.jsx("span",{className:"visually-hidden",ref:et,children:_e}));VisuallyHidden.displayName="VisuallyHidden";const VisuallyHidden$1=VisuallyHidden;function NavLink({link:_e,className:et,children:tt,translate:rt,...nt}){const st=clsx("nav-link",et);return jsxRuntimeExports.jsxs("a",{href:_e,className:st,...nt,children:[tt,rt&&jsxRuntimeExports.jsx(VisuallyHidden$1,{children:jsxRuntimeExports.jsx("span",{className:"nav-text",children:rt})})]})}const NavSearch=reactExports.forwardRef(({children:_e},et)=>jsxRuntimeExports.jsxs(FormControl$1,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[jsxRuntimeExports.jsx(FormControl$1.Input,{ref:et,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),_e]}));NavSearch.displayName="NavSearch";const WidgetAppsFooter=()=>{const{i18n:_e}=useI18n();return jsxRuntimeExports.jsx("div",{className:"widget-footer",children:jsxRuntimeExports.jsx("div",{className:"widget-footer-action",children:jsxRuntimeExports.jsx("a",{href:"/welcome",className:"link",children:_e("plus")})})})},WidgetAppsBody=({bookmarkedApps:_e})=>{const{i18n:et}=useI18n();return jsxRuntimeExports.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!_e.length&&jsxRuntimeExports.jsx("div",{className:"text-dark",children:et("navbar.myapps.more")}),_e.slice(0,6).map((tt,rt)=>jsxRuntimeExports.jsx("a",{href:tt.address,className:"bookmarked-app",children:jsxRuntimeExports.jsx(AppIcon$1,{app:tt,size:"32"})},rt))]})};var lib$2={},lib$1={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Doctype=_e.CDATA=_e.Tag=_e.Style=_e.Script=_e.Comment=_e.Directive=_e.Text=_e.Root=_e.isTag=_e.ElementType=void 0;var et;(function(rt){rt.Root="root",rt.Text="text",rt.Directive="directive",rt.Comment="comment",rt.Script="script",rt.Style="style",rt.Tag="tag",rt.CDATA="cdata",rt.Doctype="doctype"})(et=_e.ElementType||(_e.ElementType={}));function tt(rt){return rt.type===et.Tag||rt.type===et.Script||rt.type===et.Style}_e.isTag=tt,_e.Root=et.Root,_e.Text=et.Text,_e.Directive=et.Directive,_e.Comment=et.Comment,_e.Script=et.Script,_e.Style=et.Style,_e.Tag=et.Tag,_e.CDATA=et.CDATA,_e.Doctype=et.Doctype})(lib$1);var node={},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var _e=function(et,tt){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(rt,nt){rt.__proto__=nt}||function(rt,nt){for(var st in nt)Object.prototype.hasOwnProperty.call(nt,st)&&(rt[st]=nt[st])},_e(et,tt)};return function(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Class extends value "+String(tt)+" is not a constructor or null");_e(et,tt);function rt(){this.constructor=et}et.prototype=tt===null?Object.create(tt):(rt.prototype=tt.prototype,new rt)}}(),__assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(_e){for(var et,tt=1,rt=arguments.length;tt<rt;tt++){et=arguments[tt];for(var nt in et)Object.prototype.hasOwnProperty.call(et,nt)&&(_e[nt]=et[nt])}return _e},__assign.apply(this,arguments)};Object.defineProperty(node,"__esModule",{value:!0});node.cloneNode=node.hasChildren=node.isDocument=node.isDirective=node.isComment=node.isText=node.isCDATA=node.isTag=node.Element=node.Document=node.CDATA=node.NodeWithChildren=node.ProcessingInstruction=node.Comment=node.Text=node.DataNode=node.Node=void 0;var domelementtype_1=lib$1,Node=function(){function _e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(_e.prototype,"parentNode",{get:function(){return this.parent},set:function(et){this.parent=et},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"previousSibling",{get:function(){return this.prev},set:function(et){this.prev=et},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"nextSibling",{get:function(){return this.next},set:function(et){this.next=et},enumerable:!1,configurable:!0}),_e.prototype.cloneNode=function(et){return et===void 0&&(et=!1),cloneNode(this,et)},_e}();node.Node=Node;var DataNode=function(_e){__extends(et,_e);function et(tt){var rt=_e.call(this)||this;return rt.data=tt,rt}return Object.defineProperty(et.prototype,"nodeValue",{get:function(){return this.data},set:function(tt){this.data=tt},enumerable:!1,configurable:!0}),et}(Node);node.DataNode=DataNode;var Text$1=function(_e){__extends(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.type=domelementtype_1.ElementType.Text,tt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),et}(DataNode);node.Text=Text$1;var Comment$1=function(_e){__extends(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.type=domelementtype_1.ElementType.Comment,tt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),et}(DataNode);node.Comment=Comment$1;var ProcessingInstruction$1=function(_e){__extends(et,_e);function et(tt,rt){var nt=_e.call(this,rt)||this;return nt.name=tt,nt.type=domelementtype_1.ElementType.Directive,nt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),et}(DataNode);node.ProcessingInstruction=ProcessingInstruction$1;var NodeWithChildren=function(_e){__extends(et,_e);function et(tt){var rt=_e.call(this)||this;return rt.children=tt,rt}return Object.defineProperty(et.prototype,"firstChild",{get:function(){var tt;return(tt=this.children[0])!==null&&tt!==void 0?tt:null},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"childNodes",{get:function(){return this.children},set:function(tt){this.children=tt},enumerable:!1,configurable:!0}),et}(Node);node.NodeWithChildren=NodeWithChildren;var CDATA=function(_e){__extends(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.type=domelementtype_1.ElementType.CDATA,tt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),et}(NodeWithChildren);node.CDATA=CDATA;var Document=function(_e){__extends(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.type=domelementtype_1.ElementType.Root,tt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),et}(NodeWithChildren);node.Document=Document;var Element$1=function(_e){__extends(et,_e);function et(tt,rt,nt,st){nt===void 0&&(nt=[]),st===void 0&&(st=tt==="script"?domelementtype_1.ElementType.Script:tt==="style"?domelementtype_1.ElementType.Style:domelementtype_1.ElementType.Tag);var ot=_e.call(this,nt)||this;return ot.name=tt,ot.attribs=rt,ot.type=st,ot}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"tagName",{get:function(){return this.name},set:function(tt){this.name=tt},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"attributes",{get:function(){var tt=this;return Object.keys(this.attribs).map(function(rt){var nt,st;return{name:rt,value:tt.attribs[rt],namespace:(nt=tt["x-attribsNamespace"])===null||nt===void 0?void 0:nt[rt],prefix:(st=tt["x-attribsPrefix"])===null||st===void 0?void 0:st[rt]}})},enumerable:!1,configurable:!0}),et}(NodeWithChildren);node.Element=Element$1;function isTag(_e){return(0,domelementtype_1.isTag)(_e)}node.isTag=isTag;function isCDATA(_e){return _e.type===domelementtype_1.ElementType.CDATA}node.isCDATA=isCDATA;function isText(_e){return _e.type===domelementtype_1.ElementType.Text}node.isText=isText;function isComment(_e){return _e.type===domelementtype_1.ElementType.Comment}node.isComment=isComment;function isDirective(_e){return _e.type===domelementtype_1.ElementType.Directive}node.isDirective=isDirective;function isDocument(_e){return _e.type===domelementtype_1.ElementType.Root}node.isDocument=isDocument;function hasChildren$1(_e){return Object.prototype.hasOwnProperty.call(_e,"children")}node.hasChildren=hasChildren$1;function cloneNode(_e,et){et===void 0&&(et=!1);var tt;if(isText(_e))tt=new Text$1(_e.data);else if(isComment(_e))tt=new Comment$1(_e.data);else if(isTag(_e)){var rt=et?cloneChildren(_e.children):[],nt=new Element$1(_e.name,__assign({},_e.attribs),rt);rt.forEach(function(ut){return ut.parent=nt}),_e.namespace!=null&&(nt.namespace=_e.namespace),_e["x-attribsNamespace"]&&(nt["x-attribsNamespace"]=__assign({},_e["x-attribsNamespace"])),_e["x-attribsPrefix"]&&(nt["x-attribsPrefix"]=__assign({},_e["x-attribsPrefix"])),tt=nt}else if(isCDATA(_e)){var rt=et?cloneChildren(_e.children):[],st=new CDATA(rt);rt.forEach(function(lt){return lt.parent=st}),tt=st}else if(isDocument(_e)){var rt=et?cloneChildren(_e.children):[],ot=new Document(rt);rt.forEach(function(lt){return lt.parent=ot}),_e["x-mode"]&&(ot["x-mode"]=_e["x-mode"]),tt=ot}else if(isDirective(_e)){var at=new ProcessingInstruction$1(_e.name,_e.data);_e["x-name"]!=null&&(at["x-name"]=_e["x-name"],at["x-publicId"]=_e["x-publicId"],at["x-systemId"]=_e["x-systemId"]),tt=at}else throw new Error("Not implemented yet: ".concat(_e.type));return tt.startIndex=_e.startIndex,tt.endIndex=_e.endIndex,_e.sourceCodeLocation!=null&&(tt.sourceCodeLocation=_e.sourceCodeLocation),tt}node.cloneNode=cloneNode;function cloneChildren(_e){for(var et=_e.map(function(rt){return cloneNode(rt,!0)}),tt=1;tt<et.length;tt++)et[tt].prev=et[tt-1],et[tt-1].next=et[tt];return et}(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(at,ut,lt,dt){dt===void 0&&(dt=lt);var ct=Object.getOwnPropertyDescriptor(ut,lt);(!ct||("get"in ct?!ut.__esModule:ct.writable||ct.configurable))&&(ct={enumerable:!0,get:function(){return ut[lt]}}),Object.defineProperty(at,dt,ct)}:function(at,ut,lt,dt){dt===void 0&&(dt=lt),at[dt]=ut[lt]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(at,ut){for(var lt in at)lt!=="default"&&!Object.prototype.hasOwnProperty.call(ut,lt)&&et(ut,at,lt)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DomHandler=void 0;var rt=lib$1,nt=node;tt(node,_e);var st={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},ot=function(){function at(ut,lt,dt){this.dom=[],this.root=new nt.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof lt=="function"&&(dt=lt,lt=st),typeof ut=="object"&&(lt=ut,ut=void 0),this.callback=ut??null,this.options=lt??st,this.elementCB=dt??null}return at.prototype.onparserinit=function(ut){this.parser=ut},at.prototype.onreset=function(){this.dom=[],this.root=new nt.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},at.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},at.prototype.onerror=function(ut){this.handleCallback(ut)},at.prototype.onclosetag=function(){this.lastNode=null;var ut=this.tagStack.pop();this.options.withEndIndices&&(ut.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(ut)},at.prototype.onopentag=function(ut,lt){var dt=this.options.xmlMode?rt.ElementType.Tag:void 0,ct=new nt.Element(ut,lt,void 0,dt);this.addNode(ct),this.tagStack.push(ct)},at.prototype.ontext=function(ut){var lt=this.lastNode;if(lt&&lt.type===rt.ElementType.Text)lt.data+=ut,this.options.withEndIndices&&(lt.endIndex=this.parser.endIndex);else{var dt=new nt.Text(ut);this.addNode(dt),this.lastNode=dt}},at.prototype.oncomment=function(ut){if(this.lastNode&&this.lastNode.type===rt.ElementType.Comment){this.lastNode.data+=ut;return}var lt=new nt.Comment(ut);this.addNode(lt),this.lastNode=lt},at.prototype.oncommentend=function(){this.lastNode=null},at.prototype.oncdatastart=function(){var ut=new nt.Text(""),lt=new nt.CDATA([ut]);this.addNode(lt),ut.parent=lt,this.lastNode=ut},at.prototype.oncdataend=function(){this.lastNode=null},at.prototype.onprocessinginstruction=function(ut,lt){var dt=new nt.ProcessingInstruction(ut,lt);this.addNode(dt)},at.prototype.handleCallback=function(ut){if(typeof this.callback=="function")this.callback(ut,this.dom);else if(ut)throw ut},at.prototype.addNode=function(ut){var lt=this.tagStack[this.tagStack.length-1],dt=lt.children[lt.children.length-1];this.options.withStartIndices&&(ut.startIndex=this.parser.startIndex),this.options.withEndIndices&&(ut.endIndex=this.parser.endIndex),lt.children.push(ut),dt&&(ut.prev=dt,dt.next=ut),ut.parent=lt,this.lastNode=null},at}();_e.DomHandler=ot,_e.default=ot})(lib$2);var HTML="html",HEAD="head",BODY="body",FIRST_TAG_REGEX=/<([a-zA-Z]+[0-9]?)/,HEAD_TAG_REGEX=/<head[^]*>/i,BODY_TAG_REGEX=/<body[^]*>/i,parseFromDocument=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},parseFromString=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},DOMParser=typeof window=="object"&&window.DOMParser;if(typeof DOMParser=="function"){var domParser=new DOMParser,mimeType="text/html";parseFromString=function(_e,et){return et&&(_e="<"+et+">"+_e+"</"+et+">"),domParser.parseFromString(_e,mimeType)},parseFromDocument=parseFromString}if(typeof document=="object"&&document.implementation){var doc=document.implementation.createHTMLDocument();parseFromDocument=function(_e,et){if(et){var tt=doc.documentElement.querySelector(et);return tt.innerHTML=_e,doc}return doc.documentElement.innerHTML=_e,doc}}var template=typeof document=="object"?document.createElement("template"):{},parseFromTemplate;template.content&&(parseFromTemplate=function(_e){return template.innerHTML=_e,template.content.childNodes});function domparser$1(_e){var et,tt=_e.match(FIRST_TAG_REGEX);tt&&tt[1]&&(et=tt[1].toLowerCase());var rt,nt,st;switch(et){case HTML:return rt=parseFromString(_e),HEAD_TAG_REGEX.test(_e)||(nt=rt.querySelector(HEAD),nt&&nt.parentNode.removeChild(nt)),BODY_TAG_REGEX.test(_e)||(nt=rt.querySelector(BODY),nt&&nt.parentNode.removeChild(nt)),rt.querySelectorAll(HTML);case HEAD:case BODY:return rt=parseFromDocument(_e),st=rt.querySelectorAll(et),BODY_TAG_REGEX.test(_e)&&HEAD_TAG_REGEX.test(_e)?st[0].parentNode.childNodes:st;default:return parseFromTemplate?parseFromTemplate(_e):(nt=parseFromDocument(_e,BODY).querySelector(BODY),nt.childNodes)}}var domparser_1=domparser$1,utilities$5={},constants$1={};constants$1.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];var domhandler$1=lib$2,constants=constants$1,CASE_SENSITIVE_TAG_NAMES=constants.CASE_SENSITIVE_TAG_NAMES,Comment=domhandler$1.Comment,Element=domhandler$1.Element,ProcessingInstruction=domhandler$1.ProcessingInstruction,Text=domhandler$1.Text,caseSensitiveTagNamesMap={},tagName;for(var i=0,len=CASE_SENSITIVE_TAG_NAMES.length;i<len;i++)tagName=CASE_SENSITIVE_TAG_NAMES[i],caseSensitiveTagNamesMap[tagName.toLowerCase()]=tagName;function getCaseSensitiveTagName(_e){return caseSensitiveTagNamesMap[_e]}function formatAttributes(_e){for(var et={},tt,rt=0,nt=_e.length;rt<nt;rt++)tt=_e[rt],et[tt.name]=tt.value;return et}function formatTagName(_e){_e=_e.toLowerCase();var et=getCaseSensitiveTagName(_e);return et||_e}function formatDOM$1(_e,et,tt){et=et||null;for(var rt=[],nt,st=0,ot=_e.length;st<ot;st++){var at=_e[st],ut;switch(at.nodeType){case 1:nt=formatTagName(at.nodeName),ut=new Element(nt,formatAttributes(at.attributes)),ut.children=formatDOM$1(nt==="template"?at.content.childNodes:at.childNodes,ut);break;case 3:ut=new Text(at.nodeValue);break;case 8:ut=new Comment(at.nodeValue);break;default:continue}var lt=rt[st-1]||null;lt&&(lt.next=ut),ut.parent=et,ut.prev=lt,ut.next=null,rt.push(ut)}return tt&&(ut=new ProcessingInstruction(tt.substring(0,tt.indexOf(" ")).toLowerCase(),tt),ut.next=rt[0]||null,ut.parent=et,rt.unshift(ut),rt[1]&&(rt[1].prev=rt[0])),rt}utilities$5.formatAttributes=formatAttributes;utilities$5.formatDOM=formatDOM$1;var domparser=domparser_1,utilities$4=utilities$5,formatDOM=utilities$4.formatDOM,DIRECTIVE_REGEX=/<(![a-zA-Z\s]+)>/;function HTMLDOMParser(_e){if(typeof _e!="string")throw new TypeError("First argument must be a string");if(_e==="")return[];var et=_e.match(DIRECTIVE_REGEX),tt;return et&&et[1]&&(tt=et[1]),formatDOM(domparser(_e),null,tt)}var htmlToDom=HTMLDOMParser,lib={},possibleStandardNamesOptimized$1={},SAME$1=0;possibleStandardNamesOptimized$1.SAME=SAME$1;var CAMELCASE$1=1;possibleStandardNamesOptimized$1.CAMELCASE=CAMELCASE$1;possibleStandardNamesOptimized$1.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};Object.defineProperty(lib,"__esModule",{value:!0});function _slicedToArray(_e,et){return _arrayWithHoles(_e)||_iterableToArrayLimit(_e,et)||_unsupportedIterableToArray(_e,et)||_nonIterableRest()}function _arrayWithHoles(_e){if(Array.isArray(_e))return _e}function _iterableToArrayLimit(_e,et){var tt=_e==null?null:typeof Symbol<"u"&&_e[Symbol.iterator]||_e["@@iterator"];if(tt!=null){var rt=[],nt=!0,st=!1,ot,at;try{for(tt=tt.call(_e);!(nt=(ot=tt.next()).done)&&(rt.push(ot.value),!(et&&rt.length===et));nt=!0);}catch(ut){st=!0,at=ut}finally{try{!nt&&tt.return!=null&&tt.return()}finally{if(st)throw at}}return rt}}function _unsupportedIterableToArray(_e,et){if(_e){if(typeof _e=="string")return _arrayLikeToArray(_e,et);var tt=Object.prototype.toString.call(_e).slice(8,-1);if(tt==="Object"&&_e.constructor&&(tt=_e.constructor.name),tt==="Map"||tt==="Set")return Array.from(_e);if(tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt))return _arrayLikeToArray(_e,et)}}function _arrayLikeToArray(_e,et){(et==null||et>_e.length)&&(et=_e.length);for(var tt=0,rt=new Array(et);tt<et;tt++)rt[tt]=_e[tt];return rt}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
241
241
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var RESERVED=0,STRING=1,BOOLEANISH_STRING=2,BOOLEAN=3,OVERLOADED_BOOLEAN=4,NUMERIC=5,POSITIVE_NUMERIC=6;function getPropertyInfo(_e){return properties.hasOwnProperty(_e)?properties[_e]:null}function PropertyInfoRecord(_e,et,tt,rt,nt,st,ot){this.acceptsBooleans=et===BOOLEANISH_STRING||et===BOOLEAN||et===OVERLOADED_BOOLEAN,this.attributeName=rt,this.attributeNamespace=nt,this.mustUseProperty=tt,this.propertyName=_e,this.type=et,this.sanitizeURL=st,this.removeEmptyString=ot}var properties={},reservedProps=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];reservedProps.forEach(function(_e){properties[_e]=new PropertyInfoRecord(_e,RESERVED,!1,_e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(_e){var et=_slicedToArray(_e,2),tt=et[0],rt=et[1];properties[tt]=new PropertyInfoRecord(tt,STRING,!1,rt,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(_e){properties[_e]=new PropertyInfoRecord(_e,BOOLEANISH_STRING,!1,_e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(_e){properties[_e]=new PropertyInfoRecord(_e,BOOLEANISH_STRING,!1,_e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(_e){properties[_e]=new PropertyInfoRecord(_e,BOOLEAN,!1,_e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(_e){properties[_e]=new PropertyInfoRecord(_e,BOOLEAN,!0,_e,null,!1,!1)});["capture","download"].forEach(function(_e){properties[_e]=new PropertyInfoRecord(_e,OVERLOADED_BOOLEAN,!1,_e,null,!1,!1)});["cols","rows","size","span"].forEach(function(_e){properties[_e]=new PropertyInfoRecord(_e,POSITIVE_NUMERIC,!1,_e,null,!1,!1)});["rowSpan","start"].forEach(function(_e){properties[_e]=new PropertyInfoRecord(_e,NUMERIC,!1,_e.toLowerCase(),null,!1,!1)});var CAMELIZE=/[\-\:]([a-z])/g,capitalize$1=function _e(et){return et[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(_e){var et=_e.replace(CAMELIZE,capitalize$1);properties[et]=new PropertyInfoRecord(et,STRING,!1,_e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(_e){var et=_e.replace(CAMELIZE,capitalize$1);properties[et]=new PropertyInfoRecord(et,STRING,!1,_e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(_e){var et=_e.replace(CAMELIZE,capitalize$1);properties[et]=new PropertyInfoRecord(et,STRING,!1,_e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(_e){properties[_e]=new PropertyInfoRecord(_e,STRING,!1,_e.toLowerCase(),null,!1,!1)});var xlinkHref="xlinkHref";properties[xlinkHref]=new PropertyInfoRecord("xlinkHref",STRING,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(_e){properties[_e]=new PropertyInfoRecord(_e,STRING,!1,_e.toLowerCase(),null,!0,!0)});var _require=possibleStandardNamesOptimized$1,CAMELCASE=_require.CAMELCASE,SAME=_require.SAME,possibleStandardNamesOptimized=_require.possibleStandardNames,ATTRIBUTE_NAME_START_CHAR=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ATTRIBUTE_NAME_CHAR=ATTRIBUTE_NAME_START_CHAR+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",isCustomAttribute=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+ATTRIBUTE_NAME_CHAR+"]*$")),possibleStandardNames=Object.keys(possibleStandardNamesOptimized).reduce(function(_e,et){var tt=possibleStandardNamesOptimized[et];return tt===SAME?_e[et]=et:tt===CAMELCASE?_e[et.toLowerCase()]=et:_e[et]=tt,_e},{});lib.BOOLEAN=BOOLEAN;lib.BOOLEANISH_STRING=BOOLEANISH_STRING;lib.NUMERIC=NUMERIC;lib.OVERLOADED_BOOLEAN=OVERLOADED_BOOLEAN;lib.POSITIVE_NUMERIC=POSITIVE_NUMERIC;lib.RESERVED=RESERVED;lib.STRING=STRING;lib.getPropertyInfo=getPropertyInfo;lib.isCustomAttribute=isCustomAttribute;lib.possibleStandardNames=possibleStandardNames;var cjs={},styleToObject={exports:{}},COMMENT_REGEX=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,NEWLINE_REGEX=/\n/g,WHITESPACE_REGEX=/^\s*/,PROPERTY_REGEX=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,COLON_REGEX=/^:\s*/,VALUE_REGEX=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,SEMICOLON_REGEX=/^[;\s]*/,TRIM_REGEX=/^\s+|\s+$/g,NEWLINE=`
242
- `,FORWARD_SLASH="/",ASTERISK="*",EMPTY_STRING="",TYPE_COMMENT="comment",TYPE_DECLARATION="declaration",inlineStyleParser=function(_e,et){if(typeof _e!="string")throw new TypeError("First argument must be a string");if(!_e)return[];et=et||{};var tt=1,rt=1;function nt(vt){var Et=vt.match(NEWLINE_REGEX);Et&&(tt+=Et.length);var xt=vt.lastIndexOf(NEWLINE);rt=~xt?vt.length-xt:rt+vt.length}function st(){var vt={line:tt,column:rt};return function(Et){return Et.position=new ot(vt),lt(),Et}}function ot(vt){this.start=vt,this.end={line:tt,column:rt},this.source=et.source}ot.prototype.content=_e;function at(vt){var Et=new Error(et.source+":"+tt+":"+rt+": "+vt);if(Et.reason=vt,Et.filename=et.source,Et.line=tt,Et.column=rt,Et.source=_e,!et.silent)throw Et}function ut(vt){var Et=vt.exec(_e);if(Et){var xt=Et[0];return nt(xt),_e=_e.slice(xt.length),Et}}function lt(){ut(WHITESPACE_REGEX)}function dt(vt){var Et;for(vt=vt||[];Et=ct();)Et!==!1&&vt.push(Et);return vt}function ct(){var vt=st();if(!(FORWARD_SLASH!=_e.charAt(0)||ASTERISK!=_e.charAt(1))){for(var Et=2;EMPTY_STRING!=_e.charAt(Et)&&(ASTERISK!=_e.charAt(Et)||FORWARD_SLASH!=_e.charAt(Et+1));)++Et;if(Et+=2,EMPTY_STRING===_e.charAt(Et-1))return at("End of comment missing");var xt=_e.slice(2,Et-2);return rt+=2,nt(xt),_e=_e.slice(Et),rt+=2,vt({type:TYPE_COMMENT,comment:xt})}}function ft(){var vt=st(),Et=ut(PROPERTY_REGEX);if(Et){if(ct(),!ut(COLON_REGEX))return at("property missing ':'");var xt=ut(VALUE_REGEX),mt=vt({type:TYPE_DECLARATION,property:trim(Et[0].replace(COMMENT_REGEX,EMPTY_STRING)),value:xt?trim(xt[0].replace(COMMENT_REGEX,EMPTY_STRING)):EMPTY_STRING});return ut(SEMICOLON_REGEX),mt}}function ht(){var vt=[];dt(vt);for(var Et;Et=ft();)Et!==!1&&(vt.push(Et),dt(vt));return vt}return lt(),ht()};function trim(_e){return _e?_e.replace(TRIM_REGEX,EMPTY_STRING):EMPTY_STRING}var parse=inlineStyleParser;function StyleToObject(_e,et){var tt=null;if(!_e||typeof _e!="string")return tt;for(var rt,nt=parse(_e),st=typeof et=="function",ot,at,ut=0,lt=nt.length;ut<lt;ut++)rt=nt[ut],ot=rt.property,at=rt.value,st?et(ot,at,rt):at&&(tt||(tt={}),tt[ot]=at);return tt}styleToObject.exports=StyleToObject;styleToObject.exports.default=StyleToObject;var styleToObjectExports=styleToObject.exports,utilities$3={};utilities$3.__esModule=!0;utilities$3.camelCase=void 0;var CUSTOM_PROPERTY_REGEX=/^--[a-zA-Z0-9-]+$/,HYPHEN_REGEX=/-([a-z])/g,NO_HYPHEN_REGEX=/^[^-]+$/,VENDOR_PREFIX_REGEX=/^-(webkit|moz|ms|o|khtml)-/,MS_VENDOR_PREFIX_REGEX=/^-(ms)-/,skipCamelCase=function(_e){return!_e||NO_HYPHEN_REGEX.test(_e)||CUSTOM_PROPERTY_REGEX.test(_e)},capitalize=function(_e,et){return et.toUpperCase()},trimHyphen=function(_e,et){return"".concat(et,"-")},camelCase=function(_e,et){return et===void 0&&(et={}),skipCamelCase(_e)?_e:(_e=_e.toLowerCase(),et.reactCompat?_e=_e.replace(MS_VENDOR_PREFIX_REGEX,trimHyphen):_e=_e.replace(VENDOR_PREFIX_REGEX,trimHyphen),_e.replace(HYPHEN_REGEX,capitalize))};utilities$3.camelCase=camelCase;(function(_e){var et=commonjsGlobal&&commonjsGlobal.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};_e.__esModule=!0;var tt=et(styleToObjectExports),rt=utilities$3;function nt(st,ot){var at={};return!st||typeof st!="string"||(0,tt.default)(st,function(ut,lt){ut&&lt&&(at[(0,rt.camelCase)(ut,ot)]=lt)}),at}_e.default=nt})(cjs);var React$1=reactExports,styleToJS=cjs.default;function invertObject(_e,et){if(!_e||typeof _e!="object")throw new TypeError("First argument must be an object");var tt,rt,nt=typeof et=="function",st={},ot={};for(tt in _e){if(rt=_e[tt],nt&&(st=et(tt,rt),st&&st.length===2)){ot[st[0]]=st[1];continue}typeof rt=="string"&&(ot[rt]=tt)}return ot}function isCustomComponent(_e,et){if(_e.indexOf("-")===-1)return et&&typeof et.is=="string";switch(_e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var styleToJSOptions={reactCompat:!0};function setStyleProp$1(_e,et){if(_e!=null)try{et.style=styleToJS(_e,styleToJSOptions)}catch{et.style={}}}var PRESERVE_CUSTOM_ATTRIBUTES=React$1.version.split(".")[0]>=16,elementsWithNoTextChildren=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function canTextBeChildOfNode$1(_e){return!elementsWithNoTextChildren.has(_e.name)}var utilities$2={PRESERVE_CUSTOM_ATTRIBUTES,invertObject,isCustomComponent,setStyleProp:setStyleProp$1,canTextBeChildOfNode:canTextBeChildOfNode$1,elementsWithNoTextChildren},reactProperty=lib,utilities$1=utilities$2,UNCONTROLLED_COMPONENT_ATTRIBUTES=["checked","value"],UNCONTROLLED_COMPONENT_NAMES=["input","select","textarea"],VALUE_ONLY_INPUTS={reset:!0,submit:!0},attributesToProps$3=function _e(et,tt){et=et||{};var rt,nt,st,ot,at,ut={},lt=et.type&&VALUE_ONLY_INPUTS[et.type];for(rt in et){if(st=et[rt],reactProperty.isCustomAttribute(rt)){ut[rt]=st;continue}if(nt=rt.toLowerCase(),ot=getPropName(nt),ot){switch(at=reactProperty.getPropertyInfo(ot),UNCONTROLLED_COMPONENT_ATTRIBUTES.indexOf(ot)!==-1&&UNCONTROLLED_COMPONENT_NAMES.indexOf(tt)!==-1&&!lt&&(ot=getPropName("default"+nt)),ut[ot]=st,at&&at.type){case reactProperty.BOOLEAN:ut[ot]=!0;break;case reactProperty.OVERLOADED_BOOLEAN:st===""&&(ut[ot]=!0);break}continue}utilities$1.PRESERVE_CUSTOM_ATTRIBUTES&&(ut[rt]=st)}return utilities$1.setStyleProp(et.style,ut),ut};function getPropName(_e){return reactProperty.possibleStandardNames[_e]}var React=reactExports,attributesToProps$2=attributesToProps$3,utilities=utilities$2,setStyleProp=utilities.setStyleProp,canTextBeChildOfNode=utilities.canTextBeChildOfNode;function domToReact$2(_e,et){et=et||{};for(var tt=et.library||React,rt=tt.cloneElement,nt=tt.createElement,st=tt.isValidElement,ot=[],at,ut,lt=typeof et.replace=="function",dt,ct,ft,ht=et.trim,vt=0,Et=_e.length;vt<Et;vt++){if(at=_e[vt],lt&&(dt=et.replace(at),st(dt))){Et>1&&(dt=rt(dt,{key:dt.key||vt})),ot.push(dt);continue}if(at.type==="text"){if(ut=!at.data.trim().length,ut&&at.parent&&!canTextBeChildOfNode(at.parent)||ht&&ut)continue;ot.push(at.data);continue}switch(ct=at.attribs,skipAttributesToProps(at)?setStyleProp(ct.style,ct):ct&&(ct=attributesToProps$2(ct,at.name)),ft=null,at.type){case"script":case"style":at.children[0]&&(ct.dangerouslySetInnerHTML={__html:at.children[0].data});break;case"tag":at.name==="textarea"&&at.children[0]?ct.defaultValue=at.children[0].data:at.children&&at.children.length&&(ft=domToReact$2(at.children,et));break;default:continue}Et>1&&(ct.key=vt),ot.push(nt(at.name,ct,ft))}return ot.length===1?ot[0]:ot}function skipAttributesToProps(_e){return utilities.PRESERVE_CUSTOM_ATTRIBUTES&&_e.type==="tag"&&utilities.isCustomComponent(_e.name,_e.attribs)}var domToReact_1=domToReact$2,domhandler=lib$2,htmlToDOM=htmlToDom,attributesToProps$1=attributesToProps$3,domToReact$1=domToReact_1;htmlToDOM=typeof htmlToDOM.default=="function"?htmlToDOM.default:htmlToDOM;var domParserOptions={lowerCaseAttributeNames:!1};function HTMLReactParser(_e,et){if(typeof _e!="string")throw new TypeError("First argument must be a string");return _e===""?[]:(et=et||{},domToReact$1(htmlToDOM(_e,et.htmlparser2||domParserOptions),et))}HTMLReactParser.domToReact=domToReact$1;HTMLReactParser.htmlToDOM=htmlToDOM;HTMLReactParser.attributesToProps=attributesToProps$1;HTMLReactParser.Comment=domhandler.Comment;HTMLReactParser.Element=domhandler.Element;HTMLReactParser.ProcessingInstruction=domhandler.ProcessingInstruction;HTMLReactParser.Text=domhandler.Text;var htmlReactParser=HTMLReactParser;HTMLReactParser.default=HTMLReactParser;const HTMLReactParser$1=getDefaultExportFromCjs$1(htmlReactParser);var domToReact=HTMLReactParser$1.domToReact;HTMLReactParser$1.htmlToDOM;var attributesToProps=HTMLReactParser$1.attributesToProps;HTMLReactParser$1.Comment;HTMLReactParser$1.Element;HTMLReactParser$1.ProcessingInstruction;HTMLReactParser$1.Text;function useHelp(){var ht,vt;const{theme:_e,appCode:et}=useOdeClient(),[tt,rt]=reactExports.useState(""),[nt,st]=reactExports.useState(!0),[ot,at]=reactExports.useState(!1),[ut,lt]=reactExports.useState(!1),dt=_e!=null&&_e.is1d?"/help-1d":"/help-2d";reactExports.useEffect(()=>{(async()=>{let Et="";Et=dt+"/application/"+et+"/",!et&&window.location.pathname!=="/adapter"?Et=dt+"/application/portal/":window.location.pathname==="/adapter"?Et=dt+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?Et=dt+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(Et=dt+"/application/userbook/");try{const xt=await fetch(Et),mt=await xt.text();if(xt.status===404){lt(!0);return}rt(mt),lt(!1)}catch(xt){lt(!0),console.error(xt)}})()},[et,dt]);const ct=(vt=(ht=HTMLReactParser$1(tt,{replace:Et=>{const xt=Et;if(xt.attribs&&xt.attribs.id==="TOC")return jsxRuntimeExports.jsxs("nav",{id:"TOC",children:[jsxRuntimeExports.jsx(Button$1,{onClick:()=>{st(!nt)},children:jsxRuntimeExports.jsx(SvgBurgerMenu$1,{})}),domToReact(xt.children,{replace:mt=>{const gt=mt;if(gt.attribs&&gt.name==="ul")return jsxRuntimeExports.jsx("ul",{id:"TOC-list",style:{display:nt?"block":"none"},children:domToReact(gt.children,{replace:yt=>{const wt=yt;if(wt.attribs&&wt.name==="a")return jsxRuntimeExports.jsx("a",{...attributesToProps(wt.attribs),children:jsxRuntimeExports.jsx("span",{onClick:()=>{st(!1)},children:domToReact(wt.children)})})}})})}})]});if(xt.attribs&&xt.attribs.class==="section level2"){const mt=attributesToProps(Et.attribs);return jsxRuntimeExports.jsx("div",{...mt,className:"section level2",style:{display:xt.attribs.id!=="présentation"?"none":"block"},children:domToReact(xt.children,{replace:gt=>{const yt=gt;if(yt.attribs&&yt.name==="p")return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});if(yt.attribs&&yt.name==="img"){const wt=gt.attribs.src;return jsxRuntimeExports.jsx("img",{...attributesToProps(yt.attribs),src:`${dt}/${wt}`,alt:""})}}})})}}}))==null?void 0:ht.props)==null?void 0:vt.children.find(Et=>Et.type==="body").props.children,ft=ct==null?void 0:ct.find(Et=>Et.type==="p").props.children;return{html:tt,visibility:nt,isModalOpen:ot,setIsModalOpen:at,parsedContent:ct,parsedHeadline:ft,error:ut}}const ModalContext=reactExports.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});ModalContext.displayName="ModalContext";const useModalContext=()=>{const _e=reactExports.useContext(ModalContext);if(!_e)throw new Error("Cannot be rendered outside the Modal component");return _e},ModalBody=_e=>{const{ariaDescriptionId:et}=useModalContext(),{children:tt,className:rt}=_e,nt=clsx("modal-body",rt);return jsxRuntimeExports.jsx("div",{id:et,className:nt,children:tt})};ModalBody.displayName="Modal.Body";const ModalBody$1=ModalBody,ModalFooter=_e=>jsxRuntimeExports.jsx("div",{className:"modal-footer",children:_e.children});ModalFooter.displayName="Modal.Footer";const ModalFooter$1=ModalFooter,ModalHeader=_e=>{const{onModalClose:et,children:tt}=_e,{ariaLabelId:rt,focusId:nt}=useModalContext(),st=reactExports.useRef(null);return reactExports.useEffect(()=>{var ot;nt||((ot=st.current)==null||ot.focus())},[nt]),jsxRuntimeExports.jsxs("div",{className:"modal-header",children:[jsxRuntimeExports.jsx("h2",{id:rt,className:"modal-title",tabIndex:-1,children:tt}),jsxRuntimeExports.jsx("button",{ref:st,type:"button",className:"btn btn-close","aria-label":"Close",onClick:et})]})};ModalHeader.displayName="Modal.Header";const ModalHeader$1=ModalHeader,ModalSubtitle=_e=>jsxRuntimeExports.jsx("p",{className:"modal-subtitle",children:_e.children});ModalSubtitle.displayName="Modal.Subtitle";const ModalSubtitle$1=ModalSubtitle,Root$1=reactExports.forwardRef((_e,et)=>{const{id:tt,isOpen:rt,onModalClose:nt,size:st="md",scrollable:ot,focusId:at,children:ut}=_e,lt=`aria_label_${tt}`,dt=`aria_desc_${tt}`,ct=useClickOutside(nt),ft=useTrapFocus();useKeyPress(nt,["Escape"]),reactExports.useEffect(()=>{var xt;return rt&&(document.body.style.overflow="hidden",at&&((xt=document.getElementById(at))==null||xt.focus())),()=>{document.body.style.overflow=""}},[at,rt]);const ht=clsx("modal-dialog",{[`modal-${st}`]:st,"modal-dialog-scrollable":ot}),vt={ariaLabelId:lt,ariaDescriptionId:dt,focusId:at},Et=useTransition(rt,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return jsxRuntimeExports.jsx(ModalContext.Provider,{value:vt,children:Et((xt,mt)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[mt&&jsxRuntimeExports.jsx(it$1.div,{id:tt,ref:et,role:"dialog","aria-modal":"true","aria-labelledby":lt,"aria-describedby":dt,className:`modal fade ${mt?"show d-block":""}`,style:xt,tabIndex:-1,children:jsxRuntimeExports.jsx("div",{id:`${tt}_ref`,ref:gt=>{ct.current=gt,mt&&(ft.current=gt)},className:ht,children:jsxRuntimeExports.jsx("div",{className:"modal-content",children:ut})})}),mt&&jsxRuntimeExports.jsx(it$1.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),Modal=Object.assign(Root$1,{Header:ModalHeader$1,Subtitle:ModalSubtitle$1,Body:ModalBody$1,Footer:ModalFooter$1});Root$1.displayName="Modal";const Modal$1=Modal;function Help({isHelpOpen:_e,setIsHelpOpen:et,parsedHeadline:tt,parsedContent:rt,error:nt}){const{i18n:st}=useOdeClient(),ot=()=>{et(!1)};return _e?reactDomExports.createPortal(jsxRuntimeExports.jsxs(Modal$1,{id:"help-modal",isOpen:_e,onModalClose:ot,scrollable:!0,size:"xl",children:[jsxRuntimeExports.jsx(Modal$1.Header,{onModalClose:ot,children:st("navbar.help")}),jsxRuntimeExports.jsx(Modal$1.Subtitle,{children:nt?st("help.notfound.title"):tt}),jsxRuntimeExports.jsx(Modal$1.Body,{className:nt?"d-flex":null,children:nt?st("help.notfound.text"):rt})]}),document.getElementById("portal")):null}const Logo=reactExports.forwardRef(({src:_e,is1d:et,translate:tt="Retour accueil"},rt)=>{const nt=clsx("navbar-brand d-none d-md-block");return jsxRuntimeExports.jsx("a",{ref:rt,className:nt,href:"/timeline/timeline","aria-label":tt,children:jsxRuntimeExports.jsx("img",{className:"logo",src:_e,alt:`logo ${et?"ONE":"NEO"}`,width:"300",height:"52"})})});Logo.displayName="Logo";const Logo$1=Logo,PopoverBody=({children:_e,className:et})=>{const tt=clsx("popover-body",et);return jsxRuntimeExports.jsx("div",{className:tt,children:_e})},PopoverFooter=({children:_e,className:et})=>{const tt=clsx("popover-footer p-8",et);return jsxRuntimeExports.jsx("div",{className:tt,children:_e})},Popover=reactExports.forwardRef(({children:_e,className:et,id:tt,isVisible:rt,...nt},st)=>{const ot=clsx("popover d-block position-absolute top-100 start-50 translate-middle-x",et);return useTransition(rt,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}})((at,ut)=>ut&&jsxRuntimeExports.jsx(it$1.div,{ref:st,"aria-labelledby":tt,className:ot,role:"tooltip",style:at,...nt,children:_e}))});Popover.displayName="Popover";function Header({is1d:_e=!1,src:et=""}){const{i18n:tt}=useI18n(),{user:rt,avatar:nt}=useUser(),{inputRef:st,title:ot,bookmarkedApps:at,appsRef:ut,isAppsHovered:lt,popoverAppsId:dt,searchRef:ct,isSearchHovered:ft,popoverSearchId:ht,messages:vt,userAvatar:Et,userName:xt,welcomeUser:mt,communityWorkflow:gt,conversationWorflow:yt,zimbraWorkflow:wt,searchWorkflow:$t,isCollapsed:Ct,msgLink:St,redirectToSearch:bt,toggleCollapsedNav:Ot,handleLogout:Tt}=useHeader({user:rt,avatar:nt}),{isModalOpen:Lt,setIsModalOpen:Dt,parsedContent:Nt,parsedHeadline:At,error:jt}=useHelp(),Ft=clsx("header header-react",{"no-2d":_e,"no-1d":!_e}),Pt=vt>0;return jsxRuntimeExports.jsx("header",{className:Ft,children:_e?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"container-fluid",children:jsxRuntimeExports.jsxs(Navbar,{children:[jsxRuntimeExports.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:ot}),jsxRuntimeExports.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[jsxRuntimeExports.jsx(Avatar$1,{alt:xt,size:"sm",src:Et,variant:"circle",width:"32",height:"32"}),jsxRuntimeExports.jsx("span",{className:"navbar-text",children:mt})]}),jsxRuntimeExports.jsxs(NavBarNav,{className:"gap-8","aria-hidden":"false","aria-label":tt("navbar.main.navigation"),children:[yt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[jsxRuntimeExports.jsx(SvgOneMessaging$1,{className:"icon notification"}),Pt&&jsxRuntimeExports.jsx(Badge,{children:vt}),jsxRuntimeExports.jsx(VisuallyHidden$1,{children:tt("navbar.messages")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx(NavLink,{link:"/userbook/mon-compte",className:"dropdown-item",translate:tt("navbar.myaccount"),children:jsxRuntimeExports.jsx(SvgOneProfile$1,{className:"icon user"})})}),jsxRuntimeExports.jsxs(NavItem,{children:[jsxRuntimeExports.jsxs("button",{className:"nav-link",onClick:()=>{Dt(!0)},children:[jsxRuntimeExports.jsx(SvgOneAssistance$1,{className:"icon help"}),jsxRuntimeExports.jsx(VisuallyHidden$1,{children:tt("navbar.help")})]}),jsxRuntimeExports.jsx(Help,{isHelpOpen:Lt,setIsHelpOpen:Dt,parsedContent:Nt,parsedHeadline:At,error:jt})]}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("button",{className:"nav-link",onClick:Tt,children:[jsxRuntimeExports.jsx(SvgDisconnect$1,{className:"icon logout"}),jsxRuntimeExports.jsx(VisuallyHidden$1,{children:tt("navbar.disconnect")})]})}),jsxRuntimeExports.jsx(NavItem,{className:"d-md-none",children:jsxRuntimeExports.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!Ct,"aria-label":tt("navbar.secondary.navigation"),onClick:Ot,children:jsxRuntimeExports.jsx(SvgRafterDown$1,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),jsxRuntimeExports.jsx(Navbar,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":tt("navbar.secondary.navigation"),children:jsxRuntimeExports.jsx("div",{className:"container-fluid",children:jsxRuntimeExports.jsxs("div",{className:`collapse navbar-collapse ${Ct?"":"show"}`,id:"navbarCollapsed",children:[jsxRuntimeExports.jsx(Logo$1,{is1d:!0,src:`${et}/img/illustrations/logo.png`,translate:tt("navbar.home")}),jsxRuntimeExports.jsxs(NavBarNav,{className:"gap-8",children:[jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/timeline/timeline",className:"button",children:[jsxRuntimeExports.jsx(SvgNewRelease$1,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:odeServices.idiom().translate("portal.header.navigation.whatsnew")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[jsxRuntimeExports.jsx(SvgUserbook$1,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:odeServices.idiom().translate("portal.header.navigation.classMembers")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/welcome",className:"button",children:[jsxRuntimeExports.jsx(SvgMyApps$1,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:odeServices.idiom().translate("portal.header.navigation.myapps")})]})})]})]})})})]}):jsxRuntimeExports.jsx(Navbar,{className:"navbar-expand-md",children:jsxRuntimeExports.jsxs("div",{className:"container-fluid",children:[jsxRuntimeExports.jsx(Logo$1,{src:`${et}/img/illustrations/logo.png`}),jsxRuntimeExports.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:ot}),jsxRuntimeExports.jsxs("ul",{className:"navbar-nav",children:[jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx(NavLink,{link:"/timeline/timeline",translate:tt("navbar.home"),children:jsxRuntimeExports.jsx(SvgHome$1,{color:"#fff"})})}),jsxRuntimeExports.jsxs(NavItem,{className:"position-relative",ref:ut,id:dt,"aria-haspopup":"true","aria-expanded":lt,children:[jsxRuntimeExports.jsx(NavLink,{link:"/welcome",translate:tt("navbar.applications"),children:jsxRuntimeExports.jsx(SvgMyApps$1,{color:"#fff"})}),jsxRuntimeExports.jsxs(Popover,{className:"top-100",id:dt,isVisible:lt,children:[jsxRuntimeExports.jsx(PopoverBody,{children:jsxRuntimeExports.jsx(WidgetAppsBody,{bookmarkedApps:at})}),jsxRuntimeExports.jsx(PopoverFooter,{className:"widget-footer border-top border-ghost",children:jsxRuntimeExports.jsx(WidgetAppsFooter,{})})]})]}),yt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs(NavLink,{className:"position-relative",link:"/conversation/conversation",translate:tt("conversation"),children:[jsxRuntimeExports.jsx(SvgNeoMessaging$1,{color:"#fff"}),Pt&&jsxRuntimeExports.jsx(Badge,{children:vt})]})}),wt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs(NavLink,{className:"position-relative",link:St,translate:tt("conversation"),children:[jsxRuntimeExports.jsx(SvgNeoMessaging$1,{color:"#fff"}),Pt&&jsxRuntimeExports.jsx(Badge,{children:vt})]})}),jsxRuntimeExports.jsxs(NavItem,{children:[jsxRuntimeExports.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{Dt(!0)},children:[jsxRuntimeExports.jsx(SvgNeoAssistance$1,{color:"#fff"}),jsxRuntimeExports.jsx(VisuallyHidden$1,{children:tt("support")})]}),jsxRuntimeExports.jsx(Help,{isHelpOpen:Lt,setIsHelpOpen:Dt,parsedContent:Nt,parsedHeadline:At,error:jt})]}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("div",{className:"dropdown",children:[jsxRuntimeExports.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!Ct,"aria-label":tt("navbar.open.menu"),onClick:Ot,children:jsxRuntimeExports.jsx(SvgRafterDown$1,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),jsxRuntimeExports.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${Ct?"":"show"}`,id:"dropdown-navbar",children:[gt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx(NavLink,{link:"/",className:"dropdown-item",translate:tt("navbar.community"),children:jsxRuntimeExports.jsx(SvgCommunity$1,{className:"icon community"})})}),$t&&jsxRuntimeExports.jsxs(NavItem,{id:ht,className:"position-relative",ref:ct,"aria-haspopup":"true","aria-expanded":ft,children:[jsxRuntimeExports.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(SvgSearch$1,{className:"icon search"}),jsxRuntimeExports.jsx("span",{className:"nav-text",children:tt("navbar.search")})]}),jsxRuntimeExports.jsx(Popover,{id:ht,isVisible:ft,children:jsxRuntimeExports.jsx(NavSearch,{ref:st,children:jsxRuntimeExports.jsx(SearchButton$1,{type:"submit",size:"sm",onClick:bt,"aria-label":tt("navbar.search")})})})]}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(Avatar$1,{alt:xt,size:"sm",src:Et,variant:"circle",className:"bg-white",width:"32",height:"32"}),jsxRuntimeExports.jsx("span",{className:"nav-text",children:tt("navbar.myaccount")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx("hr",{className:"dropdown-divider"})}),jsxRuntimeExports.jsxs(NavItem,{children:[jsxRuntimeExports.jsx("button",{className:"nav-link btn logout","aria-labelledby":"logout-label",onClick:Tt,children:jsxRuntimeExports.jsx(SvgDisconnect$1,{className:"icon logout"})}),jsxRuntimeExports.jsx("span",{id:"logout-label",className:"nav-text",children:tt("navbar.disconnect")})]})]})]})})]})]})})})}const Layout=({children:_e,...et})=>{const{is1d:tt,basePath:rt}=useTheme();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Header,{is1d:tt,src:rt}),jsxRuntimeExports.jsx(Main,{className:clsx("d-flex flex-column bg-white",{"rounded-4 border":tt,"mt-24":tt}),...et,children:_e}),jsxRuntimeExports.jsx(Ie,{toastOptions:{position:"top-right"}})]})};Layout.displayName="Layout";const Layout$1=Layout,LoadingScreen=reactExports.forwardRef(({position:_e=!0},et)=>{const tt="/assets/themes/ode-bootstrap/images/screen-loading.gif",rt=clsx("loading-screen top-0 end-0 start-0 bottom-0 d-grid justify-content-center align-items-center z-2000",{"position-fixed":!_e,"position-static":_e});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{ref:et,className:rt,children:jsxRuntimeExports.jsx("div",{className:"bg-white rounded-circle mx-auto",children:jsxRuntimeExports.jsx("img",{src:tt,alt:"loading"})})}),!_e&&jsxRuntimeExports.jsx("div",{className:"modal-backdrop fade show"})]})});LoadingScreen.displayName="LoadingScreen";const LoadingScreen$1=LoadingScreen;function useTreeItemEvents(_e,et,tt,rt,nt,st,ot,at,ut){const lt=ft=>{ft.preventDefault(),nt==null||nt(_e),ft.stopPropagation()},dt=ft=>{(ft.code==="Enter"||ft.code==="Space")&&(ft.preventDefault(),nt==null||nt(_e),ft.stopPropagation())},ct=()=>{rt(!tt),tt?st==null||st(_e):ot==null||ot(_e)};return{handleItemClick:lt,handleItemKeyDown:dt,handleItemFoldUnfoldClick:ft=>{ft.preventDefault(),ct(),ft.stopPropagation()},handleItemFoldUnfoldKeyDown:ft=>{(ft.code==="Enter"||ft.code==="Space")&&(ft.preventDefault(),ct(),ft.stopPropagation())},handleItemFocus:ft=>{ft.preventDefault(),at==null||at(_e)},handleItemBlur:ft=>{ft.preventDefault(),ut==null||ut(_e)}}}const TreeItem=_e=>{const{nodeId:et,label:tt,children:rt,section:nt,selected:st,onItemSelect:ot,onItemFold:at,onItemUnfold:ut,onItemFocus:lt,onItemBlur:dt,selectedNodesIds:ct}=_e,[ft,ht]=reactExports.useState(!1),{handleItemClick:vt,handleItemKeyDown:Et,handleItemFoldUnfoldClick:xt,handleItemFoldUnfoldKeyDown:mt,handleItemFocus:gt,handleItemBlur:yt}=useTreeItemEvents(et,tt,ft,ht,ot,at,ut,lt,dt);reactExports.useEffect(()=>{if(ct!=null&&ct.length&&(ct==null?void 0:ct.length)>=1){const Ct=ct[ct.length-1];ct.some(St=>St===et&&et!==Ct?(ht(!0),St===et):(ht(!1),!1))}else ht(!1)},[et,ct]);const wt=nt?16:12,$t=()=>jsxRuntimeExports.jsx("li",{id:`listitem_${et}`,role:"treeitem","aria-selected":st,"aria-expanded":ft,children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[jsxRuntimeExports.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:xt,onKeyDown:mt,"aria-label":"fold/unfold button",children:[Array.isArray(rt)&&!ft&&jsxRuntimeExports.jsx(SvgRafterRight$1,{title:"RafterRight",width:wt,height:wt}),Array.isArray(rt)&&ft&&jsxRuntimeExports.jsx(SvgRafterDown$1,{title:"RafterDown",width:wt,height:wt}),!Array.isArray(rt)&&jsxRuntimeExports.jsx(SvgRafterRight$1,{title:"RafterRight",width:wt,height:wt,"aria-hidden":"true",className:"opacity-0"})]}),jsxRuntimeExports.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:vt,onKeyDown:Et,onFocus:gt,onBlur:yt,children:[nt&&jsxRuntimeExports.jsx(SvgFolder$1,{title:"Folder",width:20,height:20}),jsxRuntimeExports.jsx("span",{className:"text-truncate",children:tt})]})]}),Array.isArray(rt)&&jsxRuntimeExports.jsx("ul",{role:"group",children:rt})]})},et);return nt?jsxRuntimeExports.jsx("ul",{role:"tree",className:"m-0 p-0",children:$t()}):$t()};TreeItem.displayName="TreeItem";const TreeItem$1=TreeItem,TreeView=reactExports.forwardRef((_e,et)=>{const{data:tt,onTreeItemSelect:rt,onTreeItemFold:nt,onTreeItemUnfold:st,onTreeItemFocus:ot,onTreeItemBlur:at,selectedNodesIds:ut}=_e,[lt,dt]=reactExports.useState("default");reactExports.useEffect(()=>{ut!=null&&ut.length&&(ut==null?void 0:ut.length)>=1?dt(ut[ut.length-1]):dt("")},[ut]);const ct=mt=>{dt(mt),rt==null||rt(mt)},ft=mt=>{nt==null||nt(mt)},ht=mt=>{st==null||st(mt)},vt=mt=>{ot==null||ot(mt)},Et=mt=>{at==null||at(mt)},xt=mt=>jsxRuntimeExports.jsx(TreeItem$1,{nodeId:mt.id,label:mt.name,section:mt.section,selectedNodesIds:ut,selected:lt===mt.id,onItemSelect:ct,onItemFold:ft,onItemUnfold:ht,onItemFocus:vt,onItemBlur:Et,children:Array.isArray(mt.children)?mt.children.map(gt=>xt(gt)):null},mt.id);return jsxRuntimeExports.jsx("div",{ref:et,id:"treeview",className:"treeview",children:xt(tt)})});TreeView.displayName="TreeView";const TreeView$1=TreeView;class TreeNodeFolderWrapper{constructor(et){Kt(this,"id");Kt(this,"name");Kt(this,"childNumber");Kt(this,"section",!1);Kt(this,"children",[]);this.folder=et,this.id=et.id,this.name=et.name,this.childNumber=et.childNumber}}const searchContext=async _e=>{const et=await odeServices.resource(_e.app).searchContext(_e);return{...et,folders:et.folders.filter(tt=>!tt.trashed)}},createFolder=async({searchParams:_e,name:et,parentId:tt})=>{const rt={name:et,parentId:tt,app:_e.app,type:_e.types[0]};return await odeServices.resource(_e.app).createFolder(rt)},updateFolder=async({folderId:_e,searchParams:et,parentId:tt,name:rt})=>{const nt={folderId:_e,name:rt,parentId:tt,app:et.app,type:et.types[0]};return await odeServices.resource(et.app).updateFolder(nt)},trashAll=async({searchParams:_e,resourceIds:et,folderIds:tt})=>{const rt={application:_e.app,resourceType:_e.types[0],resourceIds:et,folderIds:tt};return await odeServices.resource(_e.app).trashAll(rt)},deleteAll=async({searchParams:_e,resourceIds:et,folderIds:tt})=>{const rt={application:_e.app,resourceType:_e.types[0],resourceIds:et,folderIds:tt};return await odeServices.resource(_e.app).deleteAll(rt)},restoreAll=async({searchParams:_e,resourceIds:et,folderIds:tt})=>{const rt={application:_e.app,resourceType:_e.types[0],resourceIds:et,folderIds:tt};return await odeServices.resource(_e.app).restoreAll(rt)},moveToFolder=async({searchParams:_e,resourceIds:et,folderId:tt,folderIds:rt})=>{const nt={application:_e.app,folderId:tt,resourceIds:et,folderIds:rt};return await odeServices.resource(_e.app).moveToFolder(nt)},shareResource=async({searchParams:_e,entId:et,shares:tt})=>await odeServices.share().saveRights(_e.app,et,tt),updateResource=async({searchParams:_e,params:et})=>await odeServices.resource(_e.app).update(et),sessionHasWorkflowRights=async _e=>await odeServices.rights().sessionHasWorkflowRights(_e),goToResource=({searchParams:_e,assetId:et})=>odeServices.resource(_e.app).gotoView(et),createResource=({searchParams:_e,safeFolderId:et})=>odeServices.resource(_e.app).gotoForm(et),printResource=({searchParams:_e,assetId:et})=>odeServices.resource(_e.app).gotoPrint(et),publishResource=async({searchParams:_e,params:et})=>await odeServices.resource(_e.app).publish(et),getOnboardingTrash=async()=>await odeServices.conf().getPreference("showOnboardingTrash"),saveOnboardingTrash=async({onSuccess:_e})=>{const et=await odeServices.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return _e==null||_e(),et};function arrayUnique(_e){return _e.filter((et,tt)=>_e.indexOf(et)===tt)}function modifyNode(_e,et){return doModify(_e,et)||_e}function doModify(_e,et,tt){var nt;const rt=et(_e,tt);if((nt=rt==null?void 0:rt.children)!=null&&nt.length){const st=[];for(const ot of(rt==null?void 0:rt.children)||[]){const at=doModify(ot,et,rt);at&&st.push(at)}return{...rt,children:st}}return rt}function addNode(_e,{parentId:et,newFolder:tt}){return modifyNode(_e,rt=>{var nt;if(rt.id===et){const st=[...((nt=rt.folder)==null?void 0:nt.ancestors)||[]],ot=arrayUnique([...st,rt.id]);return{...rt,children:[...rt.children||[],new TreeNodeFolderWrapper({...tt,ancestors:ot})]}}else return rt})}function deleteNode(_e,{folders:et}){return modifyNode(_e,tt=>{if(!et.includes(tt.id))return tt})}const rootElement=document.querySelector("[data-ode-app]");let _appParams;function getAppParams(){var _e;if(_appParams)return _appParams;if(_appParams={app:APP.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(_e=rootElement==null?void 0:rootElement.dataset)!=null&&_e.odeApp){const{odeApp:et}=rootElement.dataset;try{const tt=JSON.parse(et);Object.assign(_appParams,tt)}catch(tt){console.error("[AppParams] could not parse app params from root data attributes:",rootElement==null?void 0:rootElement.dataset,tt)}}else console.error("[AppParams] could not found app params from root data attributes:",rootElement==null?void 0:rootElement.dataset);return _appParams}function findNodeById(_e,et){var rt,nt;let tt;return(et==null?void 0:et.id)===_e?et:((rt=et==null?void 0:et.children)!=null&&rt.length&&((nt=et==null?void 0:et.children)==null||nt.every(st=>(tt=findNodeById(_e,st),tt===void 0))),tt)}function moveNode(_e,{destinationId:et,folders:tt}){return modifyNode(_e,(rt,nt)=>{var st,ot;if(et===rt.id){const at=[...((st=rt.folder)==null?void 0:st.ancestors)||[]],ut=arrayUnique([...at,rt.id]),lt=[...rt.children||[]],dt=((ot=rt.children)==null?void 0:ot.map(ft=>ft.id))||[];for(const ft of tt)if(!dt.includes(ft)){const ht=findNodeById(ft,_e);ht&&lt.push({...ht,folder:{...ht==null?void 0:ht.folder,ancestors:ut}})}return{...rt,children:lt}}else return tt.includes(rt.id)&&et!==(nt==null?void 0:nt.id)?void 0:rt})}function updateNode(_e,{folderId:et,newFolder:tt}){return modifyNode(_e,rt=>rt.id===et?new TreeNodeFolderWrapper(tt):rt)}const wrapTreeNode=(_e,et,tt)=>modifyNode(_e,rt=>(rt.id===tt&&(rt.children=et==null?void 0:et.map(nt=>new TreeNodeFolderWrapper(nt))),rt)),createStoreImpl=_e=>{let et;const tt=new Set,rt=(ut,lt)=>{const dt=typeof ut=="function"?ut(et):ut;if(!Object.is(dt,et)){const ct=et;et=lt??typeof dt!="object"?dt:Object.assign({},et,dt),tt.forEach(ft=>ft(et,ct))}},nt=()=>et,at={setState:rt,getState:nt,subscribe:ut=>(tt.add(ut),()=>tt.delete(ut)),destroy:()=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),tt.clear()}};return et=_e(rt,nt,at),at},createStore=_e=>_e?createStoreImpl(_e):createStoreImpl;var withSelector={exports:{}},withSelector_production_min={};/**
242
+ `,FORWARD_SLASH="/",ASTERISK="*",EMPTY_STRING="",TYPE_COMMENT="comment",TYPE_DECLARATION="declaration",inlineStyleParser=function(_e,et){if(typeof _e!="string")throw new TypeError("First argument must be a string");if(!_e)return[];et=et||{};var tt=1,rt=1;function nt(vt){var Et=vt.match(NEWLINE_REGEX);Et&&(tt+=Et.length);var xt=vt.lastIndexOf(NEWLINE);rt=~xt?vt.length-xt:rt+vt.length}function st(){var vt={line:tt,column:rt};return function(Et){return Et.position=new ot(vt),lt(),Et}}function ot(vt){this.start=vt,this.end={line:tt,column:rt},this.source=et.source}ot.prototype.content=_e;function at(vt){var Et=new Error(et.source+":"+tt+":"+rt+": "+vt);if(Et.reason=vt,Et.filename=et.source,Et.line=tt,Et.column=rt,Et.source=_e,!et.silent)throw Et}function ut(vt){var Et=vt.exec(_e);if(Et){var xt=Et[0];return nt(xt),_e=_e.slice(xt.length),Et}}function lt(){ut(WHITESPACE_REGEX)}function dt(vt){var Et;for(vt=vt||[];Et=ct();)Et!==!1&&vt.push(Et);return vt}function ct(){var vt=st();if(!(FORWARD_SLASH!=_e.charAt(0)||ASTERISK!=_e.charAt(1))){for(var Et=2;EMPTY_STRING!=_e.charAt(Et)&&(ASTERISK!=_e.charAt(Et)||FORWARD_SLASH!=_e.charAt(Et+1));)++Et;if(Et+=2,EMPTY_STRING===_e.charAt(Et-1))return at("End of comment missing");var xt=_e.slice(2,Et-2);return rt+=2,nt(xt),_e=_e.slice(Et),rt+=2,vt({type:TYPE_COMMENT,comment:xt})}}function ft(){var vt=st(),Et=ut(PROPERTY_REGEX);if(Et){if(ct(),!ut(COLON_REGEX))return at("property missing ':'");var xt=ut(VALUE_REGEX),mt=vt({type:TYPE_DECLARATION,property:trim(Et[0].replace(COMMENT_REGEX,EMPTY_STRING)),value:xt?trim(xt[0].replace(COMMENT_REGEX,EMPTY_STRING)):EMPTY_STRING});return ut(SEMICOLON_REGEX),mt}}function ht(){var vt=[];dt(vt);for(var Et;Et=ft();)Et!==!1&&(vt.push(Et),dt(vt));return vt}return lt(),ht()};function trim(_e){return _e?_e.replace(TRIM_REGEX,EMPTY_STRING):EMPTY_STRING}var parse=inlineStyleParser;function StyleToObject(_e,et){var tt=null;if(!_e||typeof _e!="string")return tt;for(var rt,nt=parse(_e),st=typeof et=="function",ot,at,ut=0,lt=nt.length;ut<lt;ut++)rt=nt[ut],ot=rt.property,at=rt.value,st?et(ot,at,rt):at&&(tt||(tt={}),tt[ot]=at);return tt}styleToObject.exports=StyleToObject;styleToObject.exports.default=StyleToObject;var styleToObjectExports=styleToObject.exports,utilities$3={};utilities$3.__esModule=!0;utilities$3.camelCase=void 0;var CUSTOM_PROPERTY_REGEX=/^--[a-zA-Z0-9-]+$/,HYPHEN_REGEX=/-([a-z])/g,NO_HYPHEN_REGEX=/^[^-]+$/,VENDOR_PREFIX_REGEX=/^-(webkit|moz|ms|o|khtml)-/,MS_VENDOR_PREFIX_REGEX=/^-(ms)-/,skipCamelCase=function(_e){return!_e||NO_HYPHEN_REGEX.test(_e)||CUSTOM_PROPERTY_REGEX.test(_e)},capitalize=function(_e,et){return et.toUpperCase()},trimHyphen=function(_e,et){return"".concat(et,"-")},camelCase=function(_e,et){return et===void 0&&(et={}),skipCamelCase(_e)?_e:(_e=_e.toLowerCase(),et.reactCompat?_e=_e.replace(MS_VENDOR_PREFIX_REGEX,trimHyphen):_e=_e.replace(VENDOR_PREFIX_REGEX,trimHyphen),_e.replace(HYPHEN_REGEX,capitalize))};utilities$3.camelCase=camelCase;(function(_e){var et=commonjsGlobal&&commonjsGlobal.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};_e.__esModule=!0;var tt=et(styleToObjectExports),rt=utilities$3;function nt(st,ot){var at={};return!st||typeof st!="string"||(0,tt.default)(st,function(ut,lt){ut&&lt&&(at[(0,rt.camelCase)(ut,ot)]=lt)}),at}_e.default=nt})(cjs);var React$1=reactExports,styleToJS=cjs.default;function invertObject(_e,et){if(!_e||typeof _e!="object")throw new TypeError("First argument must be an object");var tt,rt,nt=typeof et=="function",st={},ot={};for(tt in _e){if(rt=_e[tt],nt&&(st=et(tt,rt),st&&st.length===2)){ot[st[0]]=st[1];continue}typeof rt=="string"&&(ot[rt]=tt)}return ot}function isCustomComponent(_e,et){if(_e.indexOf("-")===-1)return et&&typeof et.is=="string";switch(_e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var styleToJSOptions={reactCompat:!0};function setStyleProp$1(_e,et){if(_e!=null)try{et.style=styleToJS(_e,styleToJSOptions)}catch{et.style={}}}var PRESERVE_CUSTOM_ATTRIBUTES=React$1.version.split(".")[0]>=16,elementsWithNoTextChildren=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function canTextBeChildOfNode$1(_e){return!elementsWithNoTextChildren.has(_e.name)}var utilities$2={PRESERVE_CUSTOM_ATTRIBUTES,invertObject,isCustomComponent,setStyleProp:setStyleProp$1,canTextBeChildOfNode:canTextBeChildOfNode$1,elementsWithNoTextChildren},reactProperty=lib,utilities$1=utilities$2,UNCONTROLLED_COMPONENT_ATTRIBUTES=["checked","value"],UNCONTROLLED_COMPONENT_NAMES=["input","select","textarea"],VALUE_ONLY_INPUTS={reset:!0,submit:!0},attributesToProps$3=function _e(et,tt){et=et||{};var rt,nt,st,ot,at,ut={},lt=et.type&&VALUE_ONLY_INPUTS[et.type];for(rt in et){if(st=et[rt],reactProperty.isCustomAttribute(rt)){ut[rt]=st;continue}if(nt=rt.toLowerCase(),ot=getPropName(nt),ot){switch(at=reactProperty.getPropertyInfo(ot),UNCONTROLLED_COMPONENT_ATTRIBUTES.indexOf(ot)!==-1&&UNCONTROLLED_COMPONENT_NAMES.indexOf(tt)!==-1&&!lt&&(ot=getPropName("default"+nt)),ut[ot]=st,at&&at.type){case reactProperty.BOOLEAN:ut[ot]=!0;break;case reactProperty.OVERLOADED_BOOLEAN:st===""&&(ut[ot]=!0);break}continue}utilities$1.PRESERVE_CUSTOM_ATTRIBUTES&&(ut[rt]=st)}return utilities$1.setStyleProp(et.style,ut),ut};function getPropName(_e){return reactProperty.possibleStandardNames[_e]}var React=reactExports,attributesToProps$2=attributesToProps$3,utilities=utilities$2,setStyleProp=utilities.setStyleProp,canTextBeChildOfNode=utilities.canTextBeChildOfNode;function domToReact$2(_e,et){et=et||{};for(var tt=et.library||React,rt=tt.cloneElement,nt=tt.createElement,st=tt.isValidElement,ot=[],at,ut,lt=typeof et.replace=="function",dt,ct,ft,ht=et.trim,vt=0,Et=_e.length;vt<Et;vt++){if(at=_e[vt],lt&&(dt=et.replace(at),st(dt))){Et>1&&(dt=rt(dt,{key:dt.key||vt})),ot.push(dt);continue}if(at.type==="text"){if(ut=!at.data.trim().length,ut&&at.parent&&!canTextBeChildOfNode(at.parent)||ht&&ut)continue;ot.push(at.data);continue}switch(ct=at.attribs,skipAttributesToProps(at)?setStyleProp(ct.style,ct):ct&&(ct=attributesToProps$2(ct,at.name)),ft=null,at.type){case"script":case"style":at.children[0]&&(ct.dangerouslySetInnerHTML={__html:at.children[0].data});break;case"tag":at.name==="textarea"&&at.children[0]?ct.defaultValue=at.children[0].data:at.children&&at.children.length&&(ft=domToReact$2(at.children,et));break;default:continue}Et>1&&(ct.key=vt),ot.push(nt(at.name,ct,ft))}return ot.length===1?ot[0]:ot}function skipAttributesToProps(_e){return utilities.PRESERVE_CUSTOM_ATTRIBUTES&&_e.type==="tag"&&utilities.isCustomComponent(_e.name,_e.attribs)}var domToReact_1=domToReact$2,domhandler=lib$2,htmlToDOM=htmlToDom,attributesToProps$1=attributesToProps$3,domToReact$1=domToReact_1;htmlToDOM=typeof htmlToDOM.default=="function"?htmlToDOM.default:htmlToDOM;var domParserOptions={lowerCaseAttributeNames:!1};function HTMLReactParser(_e,et){if(typeof _e!="string")throw new TypeError("First argument must be a string");return _e===""?[]:(et=et||{},domToReact$1(htmlToDOM(_e,et.htmlparser2||domParserOptions),et))}HTMLReactParser.domToReact=domToReact$1;HTMLReactParser.htmlToDOM=htmlToDOM;HTMLReactParser.attributesToProps=attributesToProps$1;HTMLReactParser.Comment=domhandler.Comment;HTMLReactParser.Element=domhandler.Element;HTMLReactParser.ProcessingInstruction=domhandler.ProcessingInstruction;HTMLReactParser.Text=domhandler.Text;var htmlReactParser=HTMLReactParser;HTMLReactParser.default=HTMLReactParser;const HTMLReactParser$1=getDefaultExportFromCjs$1(htmlReactParser);var domToReact=HTMLReactParser$1.domToReact;HTMLReactParser$1.htmlToDOM;var attributesToProps=HTMLReactParser$1.attributesToProps;HTMLReactParser$1.Comment;HTMLReactParser$1.Element;HTMLReactParser$1.ProcessingInstruction;HTMLReactParser$1.Text;function useHelp(){var ht,vt;const{theme:_e,appCode:et}=useOdeClient(),[tt,rt]=reactExports.useState(""),[nt,st]=reactExports.useState(!0),[ot,at]=reactExports.useState(!1),[ut,lt]=reactExports.useState(!1),dt=_e!=null&&_e.is1d?"/help-1d":"/help-2d";reactExports.useEffect(()=>{(async()=>{let Et="";Et=dt+"/application/"+et+"/",!et&&window.location.pathname!=="/adapter"?Et=dt+"/application/portal/":window.location.pathname==="/adapter"?Et=dt+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?Et=dt+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(Et=dt+"/application/userbook/");try{const xt=await fetch(Et),mt=await xt.text();if(xt.status===404){lt(!0);return}rt(mt),lt(!1)}catch(xt){lt(!0),console.error(xt)}})()},[et,dt]);const ct=(vt=(ht=HTMLReactParser$1(tt,{replace:Et=>{const xt=Et;if(xt.attribs&&xt.attribs.id==="TOC")return jsxRuntimeExports.jsxs("nav",{id:"TOC",children:[jsxRuntimeExports.jsx(Button$1,{onClick:()=>{st(!nt)},children:jsxRuntimeExports.jsx(SvgBurgerMenu$1,{})}),domToReact(xt.children,{replace:mt=>{const gt=mt;if(gt.attribs&&gt.name==="ul")return jsxRuntimeExports.jsx("ul",{id:"TOC-list",style:{display:nt?"block":"none"},children:domToReact(gt.children,{replace:yt=>{const wt=yt;if(wt.attribs&&wt.name==="a")return jsxRuntimeExports.jsx("a",{...attributesToProps(wt.attribs),children:jsxRuntimeExports.jsx("span",{onClick:()=>{st(!1)},children:domToReact(wt.children)})})}})})}})]});if(xt.attribs&&xt.attribs.class==="section level2"){const mt=attributesToProps(Et.attribs);return jsxRuntimeExports.jsx("div",{...mt,className:"section level2",style:{display:xt.attribs.id!=="présentation"?"none":"block"},children:domToReact(xt.children,{replace:gt=>{const yt=gt;if(yt.attribs&&yt.name==="p")return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});if(yt.attribs&&yt.name==="img"){const wt=gt.attribs.src;return jsxRuntimeExports.jsx("img",{...attributesToProps(yt.attribs),src:`${dt}/${wt}`,alt:""})}}})})}}}))==null?void 0:ht.props)==null?void 0:vt.children.find(Et=>Et.type==="body").props.children,ft=ct==null?void 0:ct.find(Et=>Et.type==="p").props.children;return{html:tt,visibility:nt,isModalOpen:ot,setIsModalOpen:at,parsedContent:ct,parsedHeadline:ft,error:ut}}const ModalContext=reactExports.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});ModalContext.displayName="ModalContext";const useModalContext=()=>{const _e=reactExports.useContext(ModalContext);if(!_e)throw new Error("Cannot be rendered outside the Modal component");return _e},ModalBody=_e=>{const{ariaDescriptionId:et}=useModalContext(),{children:tt,className:rt}=_e,nt=clsx("modal-body",rt);return jsxRuntimeExports.jsx("div",{id:et,className:nt,children:tt})};ModalBody.displayName="Modal.Body";const ModalBody$1=ModalBody,ModalFooter=_e=>jsxRuntimeExports.jsx("div",{className:"modal-footer",children:_e.children});ModalFooter.displayName="Modal.Footer";const ModalFooter$1=ModalFooter,ModalHeader=_e=>{const{onModalClose:et,children:tt}=_e,{ariaLabelId:rt,focusId:nt}=useModalContext(),st=reactExports.useRef(null);return reactExports.useEffect(()=>{var ot;nt||((ot=st.current)==null||ot.focus())},[nt]),jsxRuntimeExports.jsxs("div",{className:"modal-header",children:[jsxRuntimeExports.jsx("h2",{id:rt,className:"modal-title",tabIndex:-1,children:tt}),jsxRuntimeExports.jsx("button",{ref:st,type:"button",className:"btn btn-close","aria-label":"Close",onClick:et})]})};ModalHeader.displayName="Modal.Header";const ModalHeader$1=ModalHeader,ModalSubtitle=_e=>jsxRuntimeExports.jsx("p",{className:"modal-subtitle",children:_e.children});ModalSubtitle.displayName="Modal.Subtitle";const ModalSubtitle$1=ModalSubtitle,Root$1=reactExports.forwardRef((_e,et)=>{const{id:tt,isOpen:rt,onModalClose:nt,size:st="md",scrollable:ot,focusId:at,children:ut}=_e,lt=`aria_label_${tt}`,dt=`aria_desc_${tt}`,ct=useClickOutside(nt),ft=useTrapFocus();useKeyPress(nt,["Escape"]),reactExports.useEffect(()=>{var xt;return rt&&(document.body.style.overflow="hidden",at&&((xt=document.getElementById(at))==null||xt.focus())),()=>{document.body.style.overflow=""}},[at,rt]);const ht=clsx("modal-dialog",{[`modal-${st}`]:st,"modal-dialog-scrollable":ot}),vt={ariaLabelId:lt,ariaDescriptionId:dt,focusId:at},Et=useTransition(rt,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return jsxRuntimeExports.jsx(ModalContext.Provider,{value:vt,children:Et((xt,mt)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[mt&&jsxRuntimeExports.jsx(it$1.div,{id:tt,ref:et,role:"dialog","aria-modal":"true","aria-labelledby":lt,"aria-describedby":dt,className:`modal fade ${mt?"show d-block":""}`,style:xt,tabIndex:-1,children:jsxRuntimeExports.jsx("div",{id:`${tt}_ref`,ref:gt=>{ct.current=gt,mt&&(ft.current=gt)},className:ht,children:jsxRuntimeExports.jsx("div",{className:"modal-content",children:ut})})}),mt&&jsxRuntimeExports.jsx(it$1.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),Modal=Object.assign(Root$1,{Header:ModalHeader$1,Subtitle:ModalSubtitle$1,Body:ModalBody$1,Footer:ModalFooter$1});Root$1.displayName="Modal";const Modal$1=Modal;function Help({isHelpOpen:_e,setIsHelpOpen:et,parsedHeadline:tt,parsedContent:rt,error:nt}){const{i18n:st}=useOdeClient(),ot=()=>{et(!1)};return _e?reactDomExports.createPortal(jsxRuntimeExports.jsxs(Modal$1,{id:"help-modal",isOpen:_e,onModalClose:ot,scrollable:!0,size:"xl",children:[jsxRuntimeExports.jsx(Modal$1.Header,{onModalClose:ot,children:st("navbar.help")}),jsxRuntimeExports.jsx(Modal$1.Subtitle,{children:nt?st("help.notfound.title"):tt}),jsxRuntimeExports.jsx(Modal$1.Body,{className:nt?"d-flex":null,children:nt?st("help.notfound.text"):rt})]}),document.getElementById("portal")):null}const Logo=reactExports.forwardRef(({src:_e,is1d:et,translate:tt="Retour accueil"},rt)=>{const nt=clsx("navbar-brand d-none d-md-block");return jsxRuntimeExports.jsx("a",{ref:rt,className:nt,href:"/timeline/timeline","aria-label":tt,children:jsxRuntimeExports.jsx("img",{className:"logo",src:_e,alt:`logo ${et?"ONE":"NEO"}`,width:"300",height:"52"})})});Logo.displayName="Logo";const Logo$1=Logo,PopoverBody=({children:_e,className:et})=>{const tt=clsx("popover-body",et);return jsxRuntimeExports.jsx("div",{className:tt,children:_e})},PopoverFooter=({children:_e,className:et})=>{const tt=clsx("popover-footer p-8",et);return jsxRuntimeExports.jsx("div",{className:tt,children:_e})},Popover=reactExports.forwardRef(({children:_e,className:et,id:tt,isVisible:rt,...nt},st)=>{const ot=clsx("popover d-block position-absolute top-100 start-50 translate-middle-x",et);return useTransition(rt,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}})((at,ut)=>ut&&jsxRuntimeExports.jsx(it$1.div,{ref:st,"aria-labelledby":tt,className:ot,role:"tooltip",style:at,...nt,children:_e}))});Popover.displayName="Popover";function Header({is1d:_e=!1,src:et=""}){const{i18n:tt}=useI18n(),{user:rt,avatar:nt}=useUser(),{inputRef:st,title:ot,bookmarkedApps:at,appsRef:ut,isAppsHovered:lt,popoverAppsId:dt,searchRef:ct,isSearchHovered:ft,popoverSearchId:ht,messages:vt,userAvatar:Et,userName:xt,welcomeUser:mt,communityWorkflow:gt,conversationWorflow:yt,zimbraWorkflow:wt,searchWorkflow:$t,isCollapsed:Ct,msgLink:St,redirectToSearch:bt,toggleCollapsedNav:Ot,handleLogout:Tt}=useHeader({user:rt,avatar:nt}),{isModalOpen:Lt,setIsModalOpen:Dt,parsedContent:Nt,parsedHeadline:At,error:jt}=useHelp(),Ft=clsx("header header-react",{"no-2d":_e,"no-1d":!_e}),Pt=vt>0;return jsxRuntimeExports.jsx("header",{className:Ft,children:_e?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"container-fluid",children:jsxRuntimeExports.jsxs(Navbar,{children:[jsxRuntimeExports.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:ot}),jsxRuntimeExports.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[jsxRuntimeExports.jsx(Avatar$1,{alt:xt,size:"sm",src:Et,variant:"circle",width:"32",height:"32"}),jsxRuntimeExports.jsx("span",{className:"navbar-text",children:mt})]}),jsxRuntimeExports.jsxs(NavBarNav,{className:"gap-8","aria-hidden":"false","aria-label":tt("navbar.main.navigation"),children:[yt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[jsxRuntimeExports.jsx(SvgOneMessaging$1,{className:"icon notification"}),Pt&&jsxRuntimeExports.jsx(Badge,{children:vt}),jsxRuntimeExports.jsx(VisuallyHidden$1,{children:tt("navbar.messages")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx(NavLink,{link:"/userbook/mon-compte",className:"dropdown-item",translate:tt("navbar.myaccount"),children:jsxRuntimeExports.jsx(SvgOneProfile$1,{className:"icon user"})})}),jsxRuntimeExports.jsxs(NavItem,{children:[jsxRuntimeExports.jsxs("button",{className:"nav-link",onClick:()=>{Dt(!0)},children:[jsxRuntimeExports.jsx(SvgOneAssistance$1,{className:"icon help"}),jsxRuntimeExports.jsx(VisuallyHidden$1,{children:tt("navbar.help")})]}),jsxRuntimeExports.jsx(Help,{isHelpOpen:Lt,setIsHelpOpen:Dt,parsedContent:Nt,parsedHeadline:At,error:jt})]}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("button",{className:"nav-link",onClick:Tt,children:[jsxRuntimeExports.jsx(SvgDisconnect$1,{className:"icon logout"}),jsxRuntimeExports.jsx(VisuallyHidden$1,{children:tt("navbar.disconnect")})]})}),jsxRuntimeExports.jsx(NavItem,{className:"d-md-none",children:jsxRuntimeExports.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!Ct,"aria-label":tt("navbar.secondary.navigation"),onClick:Ot,children:jsxRuntimeExports.jsx(SvgRafterDown$1,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),jsxRuntimeExports.jsx(Navbar,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":tt("navbar.secondary.navigation"),children:jsxRuntimeExports.jsx("div",{className:"container-fluid",children:jsxRuntimeExports.jsxs("div",{className:`collapse navbar-collapse ${Ct?"":"show"}`,id:"navbarCollapsed",children:[jsxRuntimeExports.jsx(Logo$1,{is1d:!0,src:`${et}/img/illustrations/logo.png`,translate:tt("navbar.home")}),jsxRuntimeExports.jsxs(NavBarNav,{className:"gap-8",children:[jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/timeline/timeline",className:"button",children:[jsxRuntimeExports.jsx(SvgNewRelease$1,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:odeServices.idiom().translate("portal.header.navigation.whatsnew")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[jsxRuntimeExports.jsx(SvgUserbook$1,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:odeServices.idiom().translate("portal.header.navigation.classMembers")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/welcome",className:"button",children:[jsxRuntimeExports.jsx(SvgMyApps$1,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:odeServices.idiom().translate("portal.header.navigation.myapps")})]})})]})]})})})]}):jsxRuntimeExports.jsx(Navbar,{className:"navbar-expand-md",children:jsxRuntimeExports.jsxs("div",{className:"container-fluid",children:[jsxRuntimeExports.jsx(Logo$1,{src:`${et}/img/illustrations/logo.png`}),jsxRuntimeExports.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:ot}),jsxRuntimeExports.jsxs("ul",{className:"navbar-nav",children:[jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx(NavLink,{link:"/timeline/timeline",translate:tt("navbar.home"),children:jsxRuntimeExports.jsx(SvgHome$1,{color:"#fff"})})}),jsxRuntimeExports.jsxs(NavItem,{className:"position-relative",ref:ut,id:dt,"aria-haspopup":"true","aria-expanded":lt,children:[jsxRuntimeExports.jsx(NavLink,{link:"/welcome",translate:tt("navbar.applications"),children:jsxRuntimeExports.jsx(SvgMyApps$1,{color:"#fff"})}),jsxRuntimeExports.jsxs(Popover,{className:"top-100",id:dt,isVisible:lt,children:[jsxRuntimeExports.jsx(PopoverBody,{children:jsxRuntimeExports.jsx(WidgetAppsBody,{bookmarkedApps:at})}),jsxRuntimeExports.jsx(PopoverFooter,{className:"widget-footer border-top border-ghost",children:jsxRuntimeExports.jsx(WidgetAppsFooter,{})})]})]}),yt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs(NavLink,{className:"position-relative",link:"/conversation/conversation",translate:tt("conversation"),children:[jsxRuntimeExports.jsx(SvgNeoMessaging$1,{color:"#fff"}),Pt&&jsxRuntimeExports.jsx(Badge,{children:vt})]})}),wt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs(NavLink,{className:"position-relative",link:St,translate:tt("conversation"),children:[jsxRuntimeExports.jsx(SvgNeoMessaging$1,{color:"#fff"}),Pt&&jsxRuntimeExports.jsx(Badge,{children:vt})]})}),jsxRuntimeExports.jsxs(NavItem,{children:[jsxRuntimeExports.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{Dt(!0)},children:[jsxRuntimeExports.jsx(SvgNeoAssistance$1,{color:"#fff"}),jsxRuntimeExports.jsx(VisuallyHidden$1,{children:tt("support")})]}),jsxRuntimeExports.jsx(Help,{isHelpOpen:Lt,setIsHelpOpen:Dt,parsedContent:Nt,parsedHeadline:At,error:jt})]}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("div",{className:"dropdown",children:[jsxRuntimeExports.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!Ct,"aria-label":tt("navbar.open.menu"),onClick:Ot,children:jsxRuntimeExports.jsx(SvgRafterDown$1,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),jsxRuntimeExports.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${Ct?"":"show"}`,id:"dropdown-navbar",children:[gt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(SvgCommunity$1,{className:"icon community"}),jsxRuntimeExports.jsx("span",{className:"nav-text",children:tt("navbar.community")})]})}),$t&&jsxRuntimeExports.jsxs(NavItem,{id:ht,className:"position-relative",ref:ct,"aria-haspopup":"true","aria-expanded":ft,children:[jsxRuntimeExports.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(SvgSearch$1,{className:"icon search"}),jsxRuntimeExports.jsx("span",{className:"nav-text",children:tt("navbar.search")})]}),jsxRuntimeExports.jsx(Popover,{id:ht,isVisible:ft,children:jsxRuntimeExports.jsx(NavSearch,{ref:st,children:jsxRuntimeExports.jsx(SearchButton$1,{type:"submit",size:"sm",onClick:bt,"aria-label":tt("navbar.search")})})})]}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(Avatar$1,{alt:xt,size:"sm",src:Et,variant:"circle",className:"bg-white",width:"32",height:"32"}),jsxRuntimeExports.jsx("span",{className:"nav-text",children:tt("navbar.myaccount")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx("hr",{className:"dropdown-divider"})}),jsxRuntimeExports.jsxs(NavItem,{children:[jsxRuntimeExports.jsx("button",{className:"nav-link btn logout","aria-labelledby":"logout-label",onClick:Tt,children:jsxRuntimeExports.jsx(SvgDisconnect$1,{className:"icon logout"})}),jsxRuntimeExports.jsx("span",{id:"logout-label",className:"nav-text",children:tt("navbar.disconnect")})]})]})]})})]})]})})})}const Layout=({children:_e,...et})=>{const{is1d:tt,basePath:rt}=useTheme();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Header,{is1d:tt,src:rt}),jsxRuntimeExports.jsx(Main,{className:clsx("d-flex flex-column bg-white",{"rounded-4 border":tt,"mt-24":tt}),...et,children:_e}),jsxRuntimeExports.jsx(Ie,{toastOptions:{position:"top-right"}})]})};Layout.displayName="Layout";const Layout$1=Layout,LoadingScreen=reactExports.forwardRef(({position:_e=!0},et)=>{const tt="/assets/themes/ode-bootstrap/images/screen-loading.gif",rt=clsx("loading-screen top-0 end-0 start-0 bottom-0 d-grid justify-content-center align-items-center z-2000",{"position-fixed":!_e,"position-static":_e});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{ref:et,className:rt,children:jsxRuntimeExports.jsx("div",{className:"bg-white rounded-circle mx-auto",children:jsxRuntimeExports.jsx("img",{src:tt,alt:"loading"})})}),!_e&&jsxRuntimeExports.jsx("div",{className:"modal-backdrop fade show"})]})});LoadingScreen.displayName="LoadingScreen";const LoadingScreen$1=LoadingScreen;function useTreeItemEvents(_e,et,tt,rt,nt,st,ot,at,ut){const lt=ft=>{ft.preventDefault(),nt==null||nt(_e),ft.stopPropagation()},dt=ft=>{(ft.code==="Enter"||ft.code==="Space")&&(ft.preventDefault(),nt==null||nt(_e),ft.stopPropagation())},ct=()=>{rt(!tt),tt?st==null||st(_e):ot==null||ot(_e)};return{handleItemClick:lt,handleItemKeyDown:dt,handleItemFoldUnfoldClick:ft=>{ft.preventDefault(),ct(),ft.stopPropagation()},handleItemFoldUnfoldKeyDown:ft=>{(ft.code==="Enter"||ft.code==="Space")&&(ft.preventDefault(),ct(),ft.stopPropagation())},handleItemFocus:ft=>{ft.preventDefault(),at==null||at(_e)},handleItemBlur:ft=>{ft.preventDefault(),ut==null||ut(_e)}}}const TreeItem=_e=>{const{nodeId:et,label:tt,children:rt,section:nt,selected:st,onItemSelect:ot,onItemFold:at,onItemUnfold:ut,onItemFocus:lt,onItemBlur:dt,selectedNodesIds:ct}=_e,[ft,ht]=reactExports.useState(!1),{handleItemClick:vt,handleItemKeyDown:Et,handleItemFoldUnfoldClick:xt,handleItemFoldUnfoldKeyDown:mt,handleItemFocus:gt,handleItemBlur:yt}=useTreeItemEvents(et,tt,ft,ht,ot,at,ut,lt,dt);reactExports.useEffect(()=>{if(ct!=null&&ct.length&&(ct==null?void 0:ct.length)>=1){const Ct=ct[ct.length-1];ct.some(St=>St===et&&et!==Ct?(ht(!0),St===et):(ht(!1),!1))}else ht(!1)},[et,ct]);const wt=nt?16:12,$t=()=>jsxRuntimeExports.jsx("li",{id:`listitem_${et}`,role:"treeitem","aria-selected":st,"aria-expanded":ft,children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[jsxRuntimeExports.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:xt,onKeyDown:mt,"aria-label":"fold/unfold button",children:[Array.isArray(rt)&&!ft&&jsxRuntimeExports.jsx(SvgRafterRight$1,{title:"RafterRight",width:wt,height:wt}),Array.isArray(rt)&&ft&&jsxRuntimeExports.jsx(SvgRafterDown$1,{title:"RafterDown",width:wt,height:wt}),!Array.isArray(rt)&&jsxRuntimeExports.jsx(SvgRafterRight$1,{title:"RafterRight",width:wt,height:wt,"aria-hidden":"true",className:"opacity-0"})]}),jsxRuntimeExports.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:vt,onKeyDown:Et,onFocus:gt,onBlur:yt,children:[nt&&jsxRuntimeExports.jsx(SvgFolder$1,{title:"Folder",width:20,height:20}),jsxRuntimeExports.jsx("span",{className:"text-truncate",children:tt})]})]}),Array.isArray(rt)&&jsxRuntimeExports.jsx("ul",{role:"group",children:rt})]})},et);return nt?jsxRuntimeExports.jsx("ul",{role:"tree",className:"m-0 p-0",children:$t()}):$t()};TreeItem.displayName="TreeItem";const TreeItem$1=TreeItem,TreeView=reactExports.forwardRef((_e,et)=>{const{data:tt,onTreeItemSelect:rt,onTreeItemFold:nt,onTreeItemUnfold:st,onTreeItemFocus:ot,onTreeItemBlur:at,selectedNodesIds:ut}=_e,[lt,dt]=reactExports.useState("default");reactExports.useEffect(()=>{ut!=null&&ut.length&&(ut==null?void 0:ut.length)>=1?dt(ut[ut.length-1]):dt("")},[ut]);const ct=mt=>{dt(mt),rt==null||rt(mt)},ft=mt=>{nt==null||nt(mt)},ht=mt=>{st==null||st(mt)},vt=mt=>{ot==null||ot(mt)},Et=mt=>{at==null||at(mt)},xt=mt=>jsxRuntimeExports.jsx(TreeItem$1,{nodeId:mt.id,label:mt.name,section:mt.section,selectedNodesIds:ut,selected:lt===mt.id,onItemSelect:ct,onItemFold:ft,onItemUnfold:ht,onItemFocus:vt,onItemBlur:Et,children:Array.isArray(mt.children)?mt.children.map(gt=>xt(gt)):null},mt.id);return jsxRuntimeExports.jsx("div",{ref:et,id:"treeview",className:"treeview",children:xt(tt)})});TreeView.displayName="TreeView";const TreeView$1=TreeView;class TreeNodeFolderWrapper{constructor(et){Kt(this,"id");Kt(this,"name");Kt(this,"childNumber");Kt(this,"section",!1);Kt(this,"children",[]);this.folder=et,this.id=et.id,this.name=et.name,this.childNumber=et.childNumber}}const searchContext=async _e=>{const et=await odeServices.resource(_e.app).searchContext(_e);return{...et,folders:et.folders.filter(tt=>!tt.trashed)}},createFolder=async({searchParams:_e,name:et,parentId:tt})=>{const rt={name:et,parentId:tt,app:_e.app,type:_e.types[0]};return await odeServices.resource(_e.app).createFolder(rt)},updateFolder=async({folderId:_e,searchParams:et,parentId:tt,name:rt})=>{const nt={folderId:_e,name:rt,parentId:tt,app:et.app,type:et.types[0]};return await odeServices.resource(et.app).updateFolder(nt)},trashAll=async({searchParams:_e,resourceIds:et,folderIds:tt})=>{const rt={application:_e.app,resourceType:_e.types[0],resourceIds:et,folderIds:tt};return await odeServices.resource(_e.app).trashAll(rt)},deleteAll=async({searchParams:_e,resourceIds:et,folderIds:tt})=>{const rt={application:_e.app,resourceType:_e.types[0],resourceIds:et,folderIds:tt};return await odeServices.resource(_e.app).deleteAll(rt)},restoreAll=async({searchParams:_e,resourceIds:et,folderIds:tt})=>{const rt={application:_e.app,resourceType:_e.types[0],resourceIds:et,folderIds:tt};return await odeServices.resource(_e.app).restoreAll(rt)},moveToFolder=async({searchParams:_e,resourceIds:et,folderId:tt,folderIds:rt})=>{const nt={application:_e.app,folderId:tt,resourceIds:et,folderIds:rt};return await odeServices.resource(_e.app).moveToFolder(nt)},shareResource=async({searchParams:_e,entId:et,shares:tt})=>await odeServices.share().saveRights(_e.app,et,tt),updateResource=async({searchParams:_e,params:et})=>await odeServices.resource(_e.app).update(et),sessionHasWorkflowRights=async _e=>await odeServices.rights().sessionHasWorkflowRights(_e),goToResource=({searchParams:_e,assetId:et})=>odeServices.resource(_e.app).gotoView(et),createResource=({searchParams:_e,safeFolderId:et})=>odeServices.resource(_e.app).gotoForm(et),printResource=({searchParams:_e,assetId:et})=>odeServices.resource(_e.app).gotoPrint(et),publishResource=async({searchParams:_e,params:et})=>await odeServices.resource(_e.app).publish(et),getOnboardingTrash=async()=>await odeServices.conf().getPreference("showOnboardingTrash"),saveOnboardingTrash=async({onSuccess:_e})=>{const et=await odeServices.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return _e==null||_e(),et};function arrayUnique(_e){return _e.filter((et,tt)=>_e.indexOf(et)===tt)}function modifyNode(_e,et){return doModify(_e,et)||_e}function doModify(_e,et,tt){var nt;const rt=et(_e,tt);if((nt=rt==null?void 0:rt.children)!=null&&nt.length){const st=[];for(const ot of(rt==null?void 0:rt.children)||[]){const at=doModify(ot,et,rt);at&&st.push(at)}return{...rt,children:st}}return rt}function addNode(_e,{parentId:et,newFolder:tt}){return modifyNode(_e,rt=>{var nt;if(rt.id===et){const st=[...((nt=rt.folder)==null?void 0:nt.ancestors)||[]],ot=arrayUnique([...st,rt.id]);return{...rt,children:[...rt.children||[],new TreeNodeFolderWrapper({...tt,ancestors:ot})]}}else return rt})}function deleteNode(_e,{folders:et}){return modifyNode(_e,tt=>{if(!et.includes(tt.id))return tt})}const rootElement=document.querySelector("[data-ode-app]");let _appParams;function getAppParams(){var _e;if(_appParams)return _appParams;if(_appParams={app:APP.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(_e=rootElement==null?void 0:rootElement.dataset)!=null&&_e.odeApp){const{odeApp:et}=rootElement.dataset;try{const tt=JSON.parse(et);Object.assign(_appParams,tt)}catch(tt){console.error("[AppParams] could not parse app params from root data attributes:",rootElement==null?void 0:rootElement.dataset,tt)}}else console.error("[AppParams] could not found app params from root data attributes:",rootElement==null?void 0:rootElement.dataset);return _appParams}function findNodeById(_e,et){var rt,nt;let tt;return(et==null?void 0:et.id)===_e?et:((rt=et==null?void 0:et.children)!=null&&rt.length&&((nt=et==null?void 0:et.children)==null||nt.every(st=>(tt=findNodeById(_e,st),tt===void 0))),tt)}function moveNode(_e,{destinationId:et,folders:tt}){return modifyNode(_e,(rt,nt)=>{var st,ot;if(et===rt.id){const at=[...((st=rt.folder)==null?void 0:st.ancestors)||[]],ut=arrayUnique([...at,rt.id]),lt=[...rt.children||[]],dt=((ot=rt.children)==null?void 0:ot.map(ft=>ft.id))||[];for(const ft of tt)if(!dt.includes(ft)){const ht=findNodeById(ft,_e);ht&&lt.push({...ht,folder:{...ht==null?void 0:ht.folder,ancestors:ut}})}return{...rt,children:lt}}else return tt.includes(rt.id)&&et!==(nt==null?void 0:nt.id)?void 0:rt})}function updateNode(_e,{folderId:et,newFolder:tt}){return modifyNode(_e,rt=>rt.id===et?new TreeNodeFolderWrapper(tt):rt)}const wrapTreeNode=(_e,et,tt)=>modifyNode(_e,rt=>(rt.id===tt&&(rt.children=et==null?void 0:et.map(nt=>new TreeNodeFolderWrapper(nt))),rt)),createStoreImpl=_e=>{let et;const tt=new Set,rt=(ut,lt)=>{const dt=typeof ut=="function"?ut(et):ut;if(!Object.is(dt,et)){const ct=et;et=lt??typeof dt!="object"?dt:Object.assign({},et,dt),tt.forEach(ft=>ft(et,ct))}},nt=()=>et,at={setState:rt,getState:nt,subscribe:ut=>(tt.add(ut),()=>tt.delete(ut)),destroy:()=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),tt.clear()}};return et=_e(rt,nt,at),at},createStore=_e=>_e?createStoreImpl(_e):createStoreImpl;var withSelector={exports:{}},withSelector_production_min={};/**
243
243
  * @license React
244
244
  * use-sync-external-store-shim/with-selector.production.min.js
245
245
  *
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-feat-explorer-SNAPSHOT 30/06/2023 08:07:52
1
+ ode-explorer=1.0-feat-explorer-SNAPSHOT 30/06/2023 10:17:47
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.0.0-dev.202306300807",
3
+ "version": "1.0.0-dev.202306301017",
4
4
  "description": "Open Digital Education Explorer",
5
5
  "homepage": "https://github.com/opendigitaleducation/explorer#readme",
6
6
  "bugs": {