ode-explorer 1.0.2-dev.202309271551 → 1.0.2-dev.202309271636

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
@@ -221,7 +221,7 @@ to {
221
221
  > * {
222
222
  pointer-events: auto;
223
223
  }
224
- `,po=16,W4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:s,containerClassName:o})=>{let{toasts:a,handlers:l}=S4(n);return b.createElement("div",{style:{position:"fixed",zIndex:9999,top:po,left:po,right:po,bottom:po,pointerEvents:"none",...s},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let c=u.position||t,d=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=q4(c,d);return b.createElement(H4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?Q4:"",style:h},u.type==="custom"?ka(u.message,u):i?i(u):b.createElement(V4,{toast:u,position:c}))}))},gi=nt;function At(e){return{hotToast:{success:(n,r)=>gi.custom(f.jsx(e,{type:"success",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),error:(n,r)=>gi.custom(f.jsx(e,{type:"danger",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),info:(n,r)=>gi.custom(f.jsx(e,{type:"info",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),warning:(n,r)=>gi.custom(f.jsx(e,{type:"warning",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),loading:gi.loading}}}function K4({src:e,placeholder:t}){const[n,r]=b.useState(e||t),i=b.useCallback(()=>{r(t)},[t]);return b.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:i}}function Z4(e,t){const n=b.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);b.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function X4(e=!1){const[t,n]=b.useState(e),r=b.useCallback(()=>{n(i=>!i)},[]);return[t,r]}function G4(e,t){const[n,r]=b.useState(e);return b.useEffect(()=>{const i=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(i)}},[e,t]),n}function Y4(){const e=b.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return b.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],i=n.querySelectorAll(t),s=e&&(i==null?void 0:i[i.length-1]),o=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===r&&(s.focus(),a.preventDefault()):document.activeElement===s&&(r.focus(),a.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function J4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const b0=b.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));b0.displayName="ActionBar";const e3=b0,t3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"}),f.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"})]}),n3=t3,r3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"}),f.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"})]}),i3=r3,s3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"}),f.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"})]}),Ck=s3,o3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),kk=o3,a3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),l3=a3,u3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"}),f.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"})]}),Ok=u3,c3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),Rk=c3,d3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),f3=d3,h3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"}),f.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"})]}),Pk=h3,p3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),m3=p3,g3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),jk=g3,v3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067ZM4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4H4.155Z",clipRule:"evenodd"})]}),y3=v3,w3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),x3=w3,S3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),Nk=S3,b3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"}),f.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"})]}),E3=b3,C3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),k3=C3,O3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),Tk=O3,R3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),P3=R3,j3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),wc=j3,N3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.129 4.012a1.5 1.5 0 0 1-.141 2.117L9.278 12l6.71 5.871a1.5 1.5 0 0 1-1.976 2.258l-8-7a1.5 1.5 0 0 1 0-2.258l8-7a1.5 1.5 0 0 1 2.117.141Z",clipRule:"evenodd"})]}),T3=N3,_3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),yp=_3,I3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),A3=I3,L3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),_k=L3,M3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),D3=M3,F3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"}),f.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"})]}),$3=F3,z3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:f.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"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"users_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),Ik=z3;function E0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=E0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function K(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=E0(e))&&(r&&(r+=" "),r+=t);return r}const C0=b.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:i=!1,isToast:s=!1,autoClose:o=!1,autoCloseDelay:a=3e3,onClose:l,onVisibilityChange:u},c)=>{const[d,h]=b.useState(!0),g=b.useRef(null),p=b.useCallback(()=>{h(!1),l==null||l()},[l]);b.useImperativeHandle(c,()=>({show:y,hide:p,...g.current})),b.useLayoutEffect(()=>{u==null||u(d)},[d,u]),b.useEffect(()=>{o&&d&&setTimeout(()=>{p()},a)},[o,a,p,d]);const y=()=>{h(!0)},x={success:{icon:f.jsx($3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(n3,{}),classModifier:"alert-warning"},info:{icon:f.jsx(E3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(m3,{}),classModifier:"alert-danger"}},m={"is-dismissible":i,"is-toast ":s},v=K("alert gap-12",x[e].classModifier,m,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:g,className:v,role:"alert",children:[x[e].icon,f.jsx("div",{className:"alert-content small",children:n}),r&&f.jsx("div",{className:"ms-12",children:r}),i&&f.jsx("div",{className:"btn-close-container",children:f.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:p})}),o&&f.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});C0.displayName="Alert";const Lt=C0,k0=b.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const i=K("d-flex p-16 border-bottom bg-white",{"justify-content-between":t,"mx-n16":!n,"z-3 top-0 start-0 end-0 position-fixed":n});return f.jsxs("div",{ref:r,className:i,children:[e,t?f.jsx("div",{className:"d-flex align-items-center gap-8",children:t()}):null]})});k0.displayName="AppHeader";const B3=k0,O0=b.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:i,className:s,...o},a)=>{const[l]=Ya(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:c,onError:d}=K4({src:e,placeholder:u}),h={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},g={"object-fit-contain":i==="contain","object-fit-cover":i==="cover","object-fit-fill":i==="fill","object-fit-scale":i==="scale","object-fit-none":i==="none"},p=K({...h}),y=K({...g},s),x=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:y,...o});return r?f.jsx("div",{className:p,children:x}):x});O0.displayName="Image";const R0=O0,P0=b.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},i)=>{const{isIconUrl:s,getIconCode:o}=v0(),[,a]=Ya(),l=r==="square",u=r==="rounded",c=r==="circle",d=n==="contain",h=n==="ratio",g={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},p={square:l,rounded:u,"rounded-circle":c},y={"icon-contain":d,"icon-ratio":h},x=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",m=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",v=e?o(e):"",w=s(x),S=v||"placeholder",C=K("app-icon",{...g,...p,...y,[`bg-light-${S}`]:S&&!d,[`color-app-${S}`]:S});return w?f.jsx(R0,{src:x,alt:m,objectFit:"contain",width:t,height:t,className:"h-full"}):f.jsx("div",{className:C,style:{width:t+"px",height:t+"px"},children:f.jsx("svg",{ref:i,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:f.jsx("use",{xlinkHref:`${a}/apps.svg#${S}`})})})});P0.displayName="AppIcon";const xc=P0,j0=b.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:i,className:s,...o},a)=>{const[l]=Ya(),u=i||`${l}/avatar/no-avatar.svg`,y=K("avatar",{...{"avatar-xs":t==="xs","avatar-sm":t==="sm","avatar-md":t==="md","avatar-lg":t==="lg","avatar-xl":t==="xl"},...{square:e==="square",rounded:e==="rounded","rounded-circle":e==="circle"}},s);return f.jsx("div",{ref:a,className:y,children:f.jsx(R0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});j0.displayName="Avatar";const wp=j0,N0=b.forwardRef(({children:e,className:t,...n},r)=>{const i=K("breadcrumb-item",t);return f.jsx("li",{ref:r,className:i,...n,children:e})});N0.displayName="BreadcrumbItem";const Yl=N0,T0=b.forwardRef(({children:e,className:t},n)=>{const r=K("breadcrumb d-flex align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});T0.displayName="BreadcrumbList";const U3=T0,_0=b.forwardRef(({children:e,app:t,className:n},r)=>{const{t:i}=xe(),{getIconClass:s}=v0(),o=K("d-flex align-items-center mb-0",s(t),n),a={"--edifice-breadcrumb-divider":"-"};return f.jsx("nav",{ref:r,className:o,"aria-label":i("breadcrumb"),style:a,children:e})});_0.displayName="BreadcrumbNav";const V3=_0,I0=b.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:i="left",children:s,...o}=e,a=()=>{let u;return r?u=r:u=f.jsx(k3,{...o,"aria-label":"Loading"}),u},l=K("loading",{"is-loading":n});return f.jsxs("div",{className:l,role:"status",ref:t,children:[(!i||i==="left")&&a(),s,i==="right"&&a()]})});I0.displayName="Loading";const H3=I0,A0=b.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:i,loadingIcon:s,loadingPosition:o,leftIcon:a,rightIcon:l,className:u,variant:c="filled",...d},h)=>{const g=K("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":i,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return f.jsx("button",{ref:h,className:g,type:t,...d,children:i?f.jsx(H3,{isLoading:!0,loadingIcon:s,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});A0.displayName="Button";const ni=A0,L0=b.forwardRef(({icon:e,className:t,...n},r)=>{const i={...n,className:K("btn-icon",t)};return f.jsx(ni,{ref:r,...i,children:e})});L0.displayName="IconButton";const zd=L0,M0=b.forwardRef(({app:e,name:t},n)=>{const{t:r}=xe();return f.jsx(V3,{app:e,ref:n,children:f.jsx(U3,{className:"gap-12",children:t?f.jsxs(f.Fragment,{children:[f.jsx(Yl,{children:f.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[f.jsx(zd,{variant:"ghost",color:"tertiary",icon:f.jsx(T3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(xc,{app:e,size:"40"})]})}),f.jsx(Yl,{className:"h3","aria-current":"page",children:f.jsx("h1",{className:"h3",children:t})})]}):f.jsxs(Yl,{className:"gap-12 d-flex align-items-center",children:[f.jsx(xc,{app:e,size:"40"}),f.jsx("h1",{className:"h3",children:r(e==null?void 0:e.displayName)})]})})})});M0.displayName="Breadcrumb";const q3=M0,D0=b.forwardRef(({icon:e=f.jsx(D3,{}),onClick:t,...n},r)=>{const i=K("btn-search btn-sm");return f.jsx(zd,{ref:r,className:i,icon:e,...n,onClick:t})});D0.displayName="SearchButton";const F0=D0,Q3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),W3=Q3,K3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),xp=K3,Z3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),X3=Z3,G3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),Sp=G3,Y3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),J3=Y3,e5=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),bp=e5,t5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),n5=t5,r5=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),i5=r5,s5=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),o5=s5,a5=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:f.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"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"one-profile_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),l5=a5,u5=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),c5=u5,d5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),f5=d5;var Ep=function(t){return t.reduce(function(n,r){var i=r[0],s=r[1];return n[i]=s,n},{})},Cp=typeof window<"u"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,Ze="top",wt="bottom",xt="right",Xe="left",Bd="auto",Ds=[Ze,wt,xt,Xe],Wr="start",ms="end",h5="clippingParents",$0="viewport",vi="popper",p5="reference",kp=Ds.reduce(function(e,t){return e.concat([t+"-"+Wr,t+"-"+ms])},[]),z0=[].concat(Ds,[Bd]).reduce(function(e,t){return e.concat([t,t+"-"+Wr,t+"-"+ms])},[]),m5="beforeRead",g5="read",v5="afterRead",y5="beforeMain",w5="main",x5="afterMain",S5="beforeWrite",b5="write",E5="afterWrite",C5=[m5,g5,v5,y5,w5,x5,S5,b5,E5];function qt(e){return e?(e.nodeName||"").toLowerCase():null}function st(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ar(e){var t=st(e).Element;return e instanceof t||e instanceof Element}function gt(e){var t=st(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ud(e){if(typeof ShadowRoot>"u")return!1;var t=st(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function k5(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!gt(s)||!qt(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function O5(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(l,u){return l[u]="",l},{});!gt(i)||!qt(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const R5={name:"applyStyles",enabled:!0,phase:"write",fn:k5,effect:O5,requires:["computeStyles"]};function Ht(e){return e.split("-")[0]}var tr=Math.max,Oa=Math.min,Kr=Math.round;function Sc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function B0(){return!/^((?!chrome|android).)*safari/i.test(Sc())}function Zr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&gt(e)&&(i=e.offsetWidth>0&&Kr(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Kr(r.height)/e.offsetHeight||1);var o=ar(e)?st(e):window,a=o.visualViewport,l=!B0()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/i,c=(r.top+(l&&a?a.offsetTop:0))/s,d=r.width/i,h=r.height/s;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u,x:u,y:c}}function Vd(e){var t=Zr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function U0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ud(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function un(e){return st(e).getComputedStyle(e)}function P5(e){return["table","td","th"].indexOf(qt(e))>=0}function zn(e){return((ar(e)?e.ownerDocument:e.document)||window.document).documentElement}function el(e){return qt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ud(e)?e.host:null)||zn(e)}function Op(e){return!gt(e)||un(e).position==="fixed"?null:e.offsetParent}function j5(e){var t=/firefox/i.test(Sc()),n=/Trident/i.test(Sc());if(n&&gt(e)){var r=un(e);if(r.position==="fixed")return null}var i=el(e);for(Ud(i)&&(i=i.host);gt(i)&&["html","body"].indexOf(qt(i))<0;){var s=un(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Fs(e){for(var t=st(e),n=Op(e);n&&P5(n)&&un(n).position==="static";)n=Op(n);return n&&(qt(n)==="html"||qt(n)==="body"&&un(n).position==="static")?t:n||j5(e)||t}function Hd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zi(e,t,n){return tr(e,Oa(t,n))}function N5(e,t,n){var r=zi(e,t,n);return r>n?n:r}function V0(){return{top:0,right:0,bottom:0,left:0}}function H0(e){return Object.assign({},V0(),e)}function q0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var T5=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,H0(typeof t!="number"?t:q0(t,Ds))};function _5(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Ht(n.placement),l=Hd(a),u=[Xe,xt].indexOf(a)>=0,c=u?"height":"width";if(!(!s||!o)){var d=T5(i.padding,n),h=Vd(s),g=l==="y"?Ze:Xe,p=l==="y"?wt:xt,y=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],x=o[l]-n.rects.reference[l],m=Fs(s),v=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,w=y/2-x/2,S=d[g],C=v-h[c]-d[p],k=v/2-h[c]/2+w,O=zi(S,k,C),R=l;n.modifiersData[r]=(t={},t[R]=O,t.centerOffset=O-k,t)}}function I5(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||U0(t.elements.popper,i)&&(t.elements.arrow=i))}const A5={name:"arrow",enabled:!0,phase:"main",fn:_5,effect:I5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xr(e){return e.split("-")[1]}var L5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function M5(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Kr(n*i)/i||0,y:Kr(r*i)/i||0}}function Rp(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,h=o.x,g=h===void 0?0:h,p=o.y,y=p===void 0?0:p,x=typeof c=="function"?c({x:g,y}):{x:g,y};g=x.x,y=x.y;var m=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),w=Xe,S=Ze,C=window;if(u){var k=Fs(n),O="clientHeight",R="clientWidth";if(k===st(n)&&(k=zn(n),un(k).position!=="static"&&a==="absolute"&&(O="scrollHeight",R="scrollWidth")),k=k,i===Ze||(i===Xe||i===xt)&&s===ms){S=wt;var I=d&&k===C&&C.visualViewport?C.visualViewport.height:k[O];y-=I-r.height,y*=l?1:-1}if(i===Xe||(i===Ze||i===wt)&&s===ms){w=xt;var A=d&&k===C&&C.visualViewport?C.visualViewport.width:k[R];g-=A-r.width,g*=l?1:-1}}var M=Object.assign({position:a},u&&L5),z=c===!0?M5({x:g,y},st(n)):{x:g,y};if(g=z.x,y=z.y,l){var B;return Object.assign({},M,(B={},B[S]=v?"0":"",B[w]=m?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",B))}return Object.assign({},M,(t={},t[S]=v?y+"px":"",t[w]=m?g+"px":"",t.transform="",t))}function D5(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:Ht(t.placement),variation:Xr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const F5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:D5,data:{}};var mo={passive:!0};function $5(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=st(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",n.update,mo)}),a&&l.addEventListener("resize",n.update,mo),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",n.update,mo)}),a&&l.removeEventListener("resize",n.update,mo)}}const z5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$5,data:{}};var B5={left:"right",right:"left",bottom:"top",top:"bottom"};function zo(e){return e.replace(/left|right|bottom|top/g,function(t){return B5[t]})}var U5={start:"end",end:"start"};function Pp(e){return e.replace(/start|end/g,function(t){return U5[t]})}function qd(e){var t=st(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Qd(e){return Zr(zn(e)).left+qd(e).scrollLeft}function V5(e,t){var n=st(e),r=zn(e),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var u=B0();(u||!u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+Qd(e),y:l}}function H5(e){var t,n=zn(e),r=qd(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=tr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=tr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Qd(e),l=-r.scrollTop;return un(i||n).direction==="rtl"&&(a+=tr(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function Wd(e){var t=un(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Q0(e){return["html","body","#document"].indexOf(qt(e))>=0?e.ownerDocument.body:gt(e)&&Wd(e)?e:Q0(el(e))}function Bi(e,t){var n;t===void 0&&(t=[]);var r=Q0(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=st(r),o=i?[s].concat(s.visualViewport||[],Wd(r)?r:[]):r,a=t.concat(o);return i?a:a.concat(Bi(el(o)))}function bc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q5(e,t){var n=Zr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jp(e,t,n){return t===$0?bc(V5(e,n)):ar(t)?q5(t,n):bc(H5(zn(e)))}function Q5(e){var t=Bi(el(e)),n=["absolute","fixed"].indexOf(un(e).position)>=0,r=n&&gt(e)?Fs(e):e;return ar(r)?t.filter(function(i){return ar(i)&&U0(i,r)&&qt(i)!=="body"}):[]}function W5(e,t,n,r){var i=t==="clippingParents"?Q5(e):[].concat(t),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(l,u){var c=jp(e,u,r);return l.top=tr(c.top,l.top),l.right=Oa(c.right,l.right),l.bottom=Oa(c.bottom,l.bottom),l.left=tr(c.left,l.left),l},jp(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function W0(e){var t=e.reference,n=e.element,r=e.placement,i=r?Ht(r):null,s=r?Xr(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case Ze:l={x:o,y:t.y-n.height};break;case wt:l={x:o,y:t.y+t.height};break;case xt:l={x:t.x+t.width,y:a};break;case Xe:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=i?Hd(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case Wr:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ms:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function gs(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,o=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?h5:a,u=n.rootBoundary,c=u===void 0?$0:u,d=n.elementContext,h=d===void 0?vi:d,g=n.altBoundary,p=g===void 0?!1:g,y=n.padding,x=y===void 0?0:y,m=H0(typeof x!="number"?x:q0(x,Ds)),v=h===vi?p5:vi,w=e.rects.popper,S=e.elements[p?v:h],C=W5(ar(S)?S:S.contextElement||zn(e.elements.popper),l,c,o),k=Zr(e.elements.reference),O=W0({reference:k,element:w,strategy:"absolute",placement:i}),R=bc(Object.assign({},w,O)),I=h===vi?R:k,A={top:C.top-I.top+m.top,bottom:I.bottom-C.bottom+m.bottom,left:C.left-I.left+m.left,right:I.right-C.right+m.right},M=e.modifiersData.offset;if(h===vi&&M){var z=M[i];Object.keys(A).forEach(function(B){var E=[xt,wt].indexOf(B)>=0?1:-1,P=[Ze,wt].indexOf(B)>=0?"y":"x";A[B]+=z[P]*E})}return A}function K5(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?z0:l,c=Xr(r),d=c?a?kp:kp.filter(function(p){return Xr(p)===c}):Ds,h=d.filter(function(p){return u.indexOf(p)>=0});h.length===0&&(h=d);var g=h.reduce(function(p,y){return p[y]=gs(e,{placement:y,boundary:i,rootBoundary:s,padding:o})[Ht(y)],p},{});return Object.keys(g).sort(function(p,y){return g[p]-g[y]})}function Z5(e){if(Ht(e)===Bd)return[];var t=zo(e);return[Pp(e),t,Pp(t)]}function X5(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=g===void 0?!0:g,y=n.allowedAutoPlacements,x=t.options.placement,m=Ht(x),v=m===x,w=l||(v||!p?[zo(x)]:Z5(x)),S=[x].concat(w).reduce(function(he,J){return he.concat(Ht(J)===Bd?K5(t,{placement:J,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:y}):J)},[]),C=t.rects.reference,k=t.rects.popper,O=new Map,R=!0,I=S[0],A=0;A<S.length;A++){var M=S[A],z=Ht(M),B=Xr(M)===Wr,E=[Ze,wt].indexOf(z)>=0,P=E?"width":"height",L=gs(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),F=E?B?xt:Xe:B?wt:Ze;C[P]>k[P]&&(F=zo(F));var j=zo(F),N=[];if(s&&N.push(L[z]<=0),a&&N.push(L[F]<=0,L[j]<=0),N.every(function(he){return he})){I=M,R=!1;break}O.set(M,N)}if(R)for(var $=p?3:1,W=function(J){var Z=S.find(function(ie){var ge=O.get(ie);if(ge)return ge.slice(0,J).every(function(Fe){return Fe})});if(Z)return I=Z,"break"},H=$;H>0;H--){var Ye=W(H);if(Ye==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const G5={name:"flip",enabled:!0,phase:"main",fn:X5,requiresIfExists:["offset"],data:{_skip:!1}};function Np(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Tp(e){return[Ze,xt,wt,Xe].some(function(t){return e[t]>=0})}function Y5(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=gs(t,{elementContext:"reference"}),a=gs(t,{altBoundary:!0}),l=Np(o,r),u=Np(a,i,s),c=Tp(l),d=Tp(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const J5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Y5};function eb(e,t,n){var r=Ht(e),i=[Xe,Ze].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[Xe,xt].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function tb(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=z0.reduce(function(c,d){return c[d]=eb(d,t.rects,s),c},{}),a=o[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const nb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tb};function rb(e){var t=e.state,n=e.name;t.modifiersData[n]=W0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ib={name:"popperOffsets",enabled:!0,phase:"read",fn:rb,data:{}};function sb(e){return e==="x"?"y":"x"}function ob(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,g=h===void 0?!0:h,p=n.tetherOffset,y=p===void 0?0:p,x=gs(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=Ht(t.placement),v=Xr(t.placement),w=!v,S=Hd(m),C=sb(S),k=t.modifiersData.popperOffsets,O=t.rects.reference,R=t.rects.popper,I=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(s){var B,E=S==="y"?Ze:Xe,P=S==="y"?wt:xt,L=S==="y"?"height":"width",F=k[S],j=F+x[E],N=F-x[P],$=g?-R[L]/2:0,W=v===Wr?O[L]:R[L],H=v===Wr?-R[L]:-O[L],Ye=t.elements.arrow,he=g&&Ye?Vd(Ye):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:V0(),Z=J[E],ie=J[P],ge=zi(0,O[L],he[L]),Fe=w?O[L]/2-$-ge-Z-A.mainAxis:W-ge-Z-A.mainAxis,Mt=w?-O[L]/2+$+ge+ie+A.mainAxis:H+ge+ie+A.mainAxis,bl=t.elements.arrow&&Fs(t.elements.arrow),Ay=bl?S==="y"?bl.clientTop||0:bl.clientLeft||0:0,kf=(B=M==null?void 0:M[S])!=null?B:0,Ly=F+Fe-kf-Ay,My=F+Mt-kf,Of=zi(g?Oa(j,Ly):j,F,g?tr(N,My):N);k[S]=Of,z[S]=Of-F}if(a){var Rf,Dy=S==="x"?Ze:Xe,Fy=S==="x"?wt:xt,Hn=k[C],Ws=C==="y"?"height":"width",Pf=Hn+x[Dy],jf=Hn-x[Fy],El=[Ze,Xe].indexOf(m)!==-1,Nf=(Rf=M==null?void 0:M[C])!=null?Rf:0,Tf=El?Pf:Hn-O[Ws]-R[Ws]-Nf+A.altAxis,_f=El?Hn+O[Ws]+R[Ws]-Nf-A.altAxis:jf,If=g&&El?N5(Tf,Hn,_f):zi(g?Tf:Pf,Hn,g?_f:jf);k[C]=If,z[C]=If-Hn}t.modifiersData[r]=z}}const ab={name:"preventOverflow",enabled:!0,phase:"main",fn:ob,requiresIfExists:["offset"]};function lb(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ub(e){return e===st(e)||!gt(e)?qd(e):lb(e)}function cb(e){var t=e.getBoundingClientRect(),n=Kr(t.width)/e.offsetWidth||1,r=Kr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function db(e,t,n){n===void 0&&(n=!1);var r=gt(t),i=gt(t)&&cb(t),s=zn(t),o=Zr(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((qt(t)!=="body"||Wd(s))&&(a=ub(t)),gt(t)?(l=Zr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Qd(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function fb(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function hb(e){var t=fb(e);return C5.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function pb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mb(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _p={placement:"bottom",modifiers:[],strategy:"absolute"};function Ip(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function gb(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?_p:i;return function(a,l,u){u===void 0&&(u=s);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},_p,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],h=!1,g={state:c,setOptions:function(m){var v=typeof m=="function"?m(c.options):m;y(),c.options=Object.assign({},s,c.options,v),c.scrollParents={reference:ar(a)?Bi(a):a.contextElement?Bi(a.contextElement):[],popper:Bi(l)};var w=hb(mb([].concat(r,c.options.modifiers)));return c.orderedModifiers=w.filter(function(S){return S.enabled}),p(),g.update()},forceUpdate:function(){if(!h){var m=c.elements,v=m.reference,w=m.popper;if(Ip(v,w)){c.rects={reference:db(v,Fs(w),c.options.strategy==="fixed"),popper:Vd(w)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(A){return c.modifiersData[A.name]=Object.assign({},A.data)});for(var S=0;S<c.orderedModifiers.length;S++){if(c.reset===!0){c.reset=!1,S=-1;continue}var C=c.orderedModifiers[S],k=C.fn,O=C.options,R=O===void 0?{}:O,I=C.name;typeof k=="function"&&(c=k({state:c,options:R,name:I,instance:g})||c)}}}},update:pb(function(){return new Promise(function(x){g.forceUpdate(),x(c)})}),destroy:function(){y(),h=!0}};if(!Ip(a,l))return g;g.setOptions(u).then(function(x){!h&&u.onFirstUpdate&&u.onFirstUpdate(x)});function p(){c.orderedModifiers.forEach(function(x){var m=x.name,v=x.options,w=v===void 0?{}:v,S=x.effect;if(typeof S=="function"){var C=S({state:c,name:m,instance:g,options:w}),k=function(){};d.push(C||k)}})}function y(){d.forEach(function(x){return x()}),d=[]}return g}}var vb=[z5,ib,F5,R5,nb,G5,ab,A5,J5],yb=gb({defaultModifiers:vb}),wb=typeof Element<"u",xb=typeof Map=="function",Sb=typeof Set=="function",bb=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Bo(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Bo(e[r],t[r]))return!1;return!0}var s;if(xb&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!Bo(r.value[1],t.get(r.value[0])))return!1;return!0}if(Sb&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(bb&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(wb&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Bo(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Eb=function(t,n){try{return Bo(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return!1;throw r}};const Cb=Ps(Eb);var kb=[],Ob=function(t,n,r){r===void 0&&(r={});var i=b.useRef(null),s={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||kb},o=b.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=o[0],l=o[1],u=b.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(g){var p=g.state,y=Object.keys(p.elements);Ls.flushSync(function(){l({styles:Ep(y.map(function(x){return[x,p.styles[x]||{}]})),attributes:Ep(y.map(function(x){return[x,p.attributes[x]]}))})})},requires:["computeStyles"]}},[]),c=b.useMemo(function(){var h={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Cb(i.current,h)?i.current||h:(i.current=h,h)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,u]),d=b.useRef();return Cp(function(){d.current&&d.current.setOptions(c)},[c]),Cp(function(){if(!(t==null||n==null)){var h=r.createPopper||yb,g=h(t,n,c);return d.current=g,function(){g.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:a.styles,attributes:a.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},Rb=Object.defineProperty,Pb=(e,t)=>{for(var n in t)Rb(e,n,{get:t[n],enumerable:!0})},It={};Pb(It,{assign:()=>Tb,colors:()=>In,createStringInterpolator:()=>ef,skipAnimation:()=>ev,to:()=>J0,willAdvance:()=>tf});var Kd=zs(),V=e=>$s(e,Kd),Zd=zs();V.write=e=>$s(e,Zd);var tl=zs();V.onStart=e=>$s(e,tl);var Xd=zs();V.onFrame=e=>$s(e,Xd);var Gd=zs();V.onFinish=e=>$s(e,Gd);var Dr=[];V.setTimeout=(e,t)=>{const n=V.now()+t,r=()=>{const s=Dr.findIndex(o=>o.cancel==r);~s&&Dr.splice(s,1),En-=~s?1:0},i={time:n,handler:e,cancel:r};return Dr.splice(K0(n),0,i),En+=1,Z0(),i};var K0=e=>~(~Dr.findIndex(t=>t.time>e)||~Dr.length);V.cancel=e=>{tl.delete(e),Xd.delete(e),Gd.delete(e),Kd.delete(e),Zd.delete(e)};V.sync=e=>{Ec=!0,V.batchedUpdates(e),Ec=!1};V.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,V.onStart(n)}return r.handler=e,r.cancel=()=>{tl.delete(n),t=null},r};var Yd=typeof window<"u"?window.requestAnimationFrame:()=>{};V.use=e=>Yd=e;V.now=typeof performance<"u"?()=>performance.now():Date.now;V.batchedUpdates=e=>e();V.catch=console.error;V.frameLoop="always";V.advance=()=>{V.frameLoop!=="demand"||G0()};var bn=-1,En=0,Ec=!1;function $s(e,t){Ec?(t.delete(e),e(0)):(t.add(e),Z0())}function Z0(){bn<0&&(bn=0,V.frameLoop!=="demand"&&Yd(X0))}function jb(){bn=-1}function X0(){~bn&&(Yd(X0),V.batchedUpdates(G0))}function G0(){const e=bn;bn=V.now();const t=K0(bn);if(t&&(Y0(Dr.splice(0,t),n=>n.handler()),En-=t),!En){jb();return}tl.flush(),Kd.flush(e?Math.min(64,bn-e):16.667),Xd.flush(),Zd.flush(),Gd.flush()}function zs(){let e=new Set,t=e;return{add(n){En+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return En-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,En-=t.size,Y0(t,r=>r(n)&&e.add(r)),En+=e.size,t=e)}}}function Y0(e,t){e.forEach(n=>{try{t(n)}catch(r){V.catch(r)}})}function Cc(){}var Nb=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),T={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 Gt(e,t){if(T.arr(e)){if(!T.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var U=(e,t)=>e.forEach(t);function Qt(e,t,n){if(T.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var _e=e=>T.und(e)?[]:T.arr(e)?e:[e];function Ui(e,t){if(e.size){const n=Array.from(e);e.clear(),U(n,t)}}var Ri=(e,...t)=>Ui(e,n=>n(...t)),Jd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ef,J0,In=null,ev=!1,tf=Cc,Tb=e=>{e.to&&(J0=e.to),e.now&&(V.now=e.now),e.colors!==void 0&&(In=e.colors),e.skipAnimation!=null&&(ev=e.skipAnimation),e.createStringInterpolator&&(ef=e.createStringInterpolator),e.requestAnimationFrame&&V.use(e.requestAnimationFrame),e.batchedUpdates&&(V.batchedUpdates=e.batchedUpdates),e.willAdvance&&(tf=e.willAdvance),e.frameLoop&&(V.frameLoop=e.frameLoop)},Vi=new Set,ht=[],Jl=[],Ra=0,nl={get idle(){return!Vi.size&&!ht.length},start(e){Ra>e.priority?(Vi.add(e),V.onStart(_b)):(tv(e),V(kc))},advance:kc,sort(e){if(Ra)V.onFrame(()=>nl.sort(e));else{const t=ht.indexOf(e);~t&&(ht.splice(t,1),nv(e))}},clear(){ht=[],Vi.clear()}};function _b(){Vi.forEach(tv),Vi.clear(),V(kc)}function tv(e){ht.includes(e)||nv(e)}function nv(e){ht.splice(Ib(ht,t=>t.priority>e.priority),0,e)}function kc(e){const t=Jl;for(let n=0;n<ht.length;n++){const r=ht[n];Ra=r.priority,r.idle||(tf(r),r.advance(e),r.idle||t.push(r))}return Ra=0,Jl=ht,Jl.length=0,ht=t,ht.length>0}function Ib(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Ab=(e,t,n)=>Math.min(Math.max(n,e),t),Lb={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},jt="[-+]?\\d*\\.?\\d+",Pa=jt+"%";function rl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Mb=new RegExp("rgb"+rl(jt,jt,jt)),Db=new RegExp("rgba"+rl(jt,jt,jt,jt)),Fb=new RegExp("hsl"+rl(jt,Pa,Pa)),$b=new RegExp("hsla"+rl(jt,Pa,Pa,jt)),zb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Bb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ub=/^#([0-9a-fA-F]{6})$/,Vb=/^#([0-9a-fA-F]{8})$/;function Hb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ub.exec(e))?parseInt(t[1]+"ff",16)>>>0:In&&In[e]!==void 0?In[e]:(t=Mb.exec(e))?(gr(t[1])<<24|gr(t[2])<<16|gr(t[3])<<8|255)>>>0:(t=Db.exec(e))?(gr(t[1])<<24|gr(t[2])<<16|gr(t[3])<<8|Mp(t[4]))>>>0:(t=zb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Vb.exec(e))?parseInt(t[1],16)>>>0:(t=Bb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Fb.exec(e))?(Ap(Lp(t[1]),go(t[2]),go(t[3]))|255)>>>0:(t=$b.exec(e))?(Ap(Lp(t[1]),go(t[2]),go(t[3]))|Mp(t[4]))>>>0:null}function eu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ap(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,s=eu(i,r,e+1/3),o=eu(i,r,e),a=eu(i,r,e-1/3);return Math.round(s*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function gr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Lp(e){return(parseFloat(e)%360+360)%360/360}function Mp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function go(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dp(e){let t=Hb(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${s})`}var vs=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return vs({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return ef(e);const r=e,i=r.output,s=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=Qb(u,s);return qb(u,s[c],s[c+1],i[c],i[c+1],l,o,a,r.map)}};function qb(e,t,n,r,i,s,o,a,l){let u=l?l(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function Qb(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var Wb=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return Ab(0,1,i/e)},ja=1.70158,vo=ja*1.525,Fp=ja+1,$p=2*Math.PI/3,zp=2*Math.PI/4.5,yo=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,Kb={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=>Fp*e*e*e-ja*e*e,easeOutBack:e=>1+Fp*Math.pow(e-1,3)+ja*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((vo+1)*2*e-vo)/2:(Math.pow(2*e-2,2)*((vo+1)*(e*2-2)+vo)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*$p),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*$p)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*zp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*zp)/2+1,easeInBounce:e=>1-yo(1-e),easeOutBounce:yo,easeInOutBounce:e=>e<.5?(1-yo(1-2*e))/2:(1+yo(2*e-1))/2,steps:Wb},ys=Symbol.for("FluidValue.get"),Gr=Symbol.for("FluidValue.observers"),ft=e=>!!(e&&e[ys]),ze=e=>e&&e[ys]?e[ys]():e,Bp=e=>e[Gr]||null;function Zb(e,t){e.eventObserved?e.eventObserved(t):e(t)}function ws(e,t){const n=e[Gr];n&&n.forEach(r=>{Zb(r,t)})}var rv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Xb(this,e)}},Xb=(e,t)=>iv(e,ys,t);function ri(e,t){if(e[ys]){let n=e[Gr];n||iv(e,Gr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function xs(e,t){const n=e[Gr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Gr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var iv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Uo=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Gb=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Up=new RegExp(`(${Uo.source})(%|[a-z]+)`,"i"),Yb=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,il=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,sv=e=>{const[t,n]=Jb(e);if(!t||Jd())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&il.test(n))return sv(n);if(n)return n}return e},Jb=e=>{const t=il.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},tu,eE=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,ov=e=>{tu||(tu=In?new RegExp(`(${Object.keys(In).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>ze(s).replace(il,sv).replace(Gb,Dp).replace(tu,Dp)),n=t.map(s=>s.match(Uo).map(Number)),i=n[0].map((s,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(s=>vs({...e,output:s}));return s=>{var l;const o=!Up.test(t[0])&&((l=t.find(u=>Up.test(u)))==null?void 0:l.replace(Uo,""));let a=0;return t[0].replace(Uo,()=>`${i[a++](s)}${o||""}`).replace(Yb,eE)}},nf="react-spring: ",av=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${nf}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},tE=av(console.warn);function nE(){tE(`${nf}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var rE=av(console.warn);function iE(){rE(`${nf}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 sl(e){return T.str(e)&&(e[0]=="#"||/\d/.test(e)||!Jd()&&il.test(e)||e in(In||{}))}var Yn=Jd()?b.useEffect:b.useLayoutEffect,sE=()=>{const e=b.useRef(!1);return Yn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function rf(){const e=b.useState()[1],t=sE();return()=>{t.current&&e(Math.random())}}function oE(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),i=r.current;let s=i;return s?t&&s.inputs&&aE(t,s.inputs)||(s={inputs:t,result:e()}):s=n,b.useEffect(()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)},[s]),s.result}function aE(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var sf=e=>b.useEffect(e,lE),lE=[];function Oc(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var Ss=Symbol.for("Animated:node"),uE=e=>!!e&&e[Ss]===e,$t=e=>e&&e[Ss],of=(e,t)=>Nb(e,Ss,t),ol=e=>e&&e[Ss]&&e[Ss].getPayload(),lv=class{constructor(){of(this,this)}getPayload(){return this.payload||[]}},Bs=class extends lv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,T.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Bs(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return T.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,T.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},bs=class extends Bs{constructor(e){super(0),this._string=null,this._toString=vs({output:[e,e]})}static create(e){return new bs(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(T.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=vs({output:[this.getValue(),e]})),this._value=0,super.reset()}},Na={dependencies:null},al=class extends lv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Qt(this.source,(n,r)=>{uE(n)?t[r]=n.getValue(e):ft(n)?t[r]=ze(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&U(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Qt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Na.dependencies&&ft(e)&&Na.dependencies.add(e);const t=ol(e);t&&U(t,n=>this.add(n))}},uv=class extends al{constructor(e){super(e)}static create(e){return new uv(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(cE)),!0)}};function cE(e){return(sl(e)?bs:Bs).create(e)}function Rc(e){const t=$t(e);return t?t.constructor:T.arr(e)?uv:sl(e)?bs:Bs}var Vp=(e,t)=>{const n=!T.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,i)=>{const s=b.useRef(null),o=n&&b.useCallback(p=>{s.current=hE(i,p)},[i]),[a,l]=fE(r,t),u=rf(),c=()=>{const p=s.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,a.getValue(!0)):!1)===!1&&u()},d=new dE(c,l),h=b.useRef();Yn(()=>(h.current=d,U(l,p=>ri(p,d)),()=>{h.current&&(U(h.current.deps,p=>xs(p,h.current)),V.cancel(h.current.update))})),b.useEffect(c,[]),sf(()=>()=>{const p=h.current;U(p.deps,y=>xs(y,p))});const g=t.getComponentProps(a.getValue());return b.createElement(e,{...g,ref:o})})},dE=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&V.write(this.update)}};function fE(e,t){const n=new Set;return Na.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new al(e),Na.dependencies=null,[e,n]}function hE(e,t){return e&&(T.fun(e)?e(t):e.current=t),t}var Hp=Symbol.for("AnimatedComponent"),pE=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new al(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=o=>{const a=qp(o)||"Anonymous";return T.str(o)?o=s[o]||(s[o]=Vp(o,i)):o=o[Hp]||(o[Hp]=Vp(o,i)),o.displayName=`Animated(${a})`,o};return Qt(e,(o,a)=>{T.arr(e)&&(a=qp(o)),s[a]=s(o)}),{animated:s}},qp=e=>T.str(e)?e:e&&T.str(e.displayName)?e.displayName:T.fun(e)&&e.name||null;function Be(e,...t){return T.fun(e)?e(...t):e}var Hi=(e,t)=>e===!0||!!(t&&e&&(T.fun(e)?e(t):_e(e).includes(t))),cv=(e,t)=>T.obj(e)?t&&e[t]:e,dv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,mE=e=>e,ll=(e,t=mE)=>{let n=gE;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const s=t(e[i],i);T.und(s)||(r[i]=s)}return r},gE=["config","onProps","onStart","onChange","onPause","onResume","onRest"],vE={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 yE(e){const t={};let n=0;if(Qt(e,(r,i)=>{vE[i]||(t[i]=r,n++)}),n)return t}function af(e){const t=yE(e);if(t){const n={to:t};return Qt(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Es(e){return e=ze(e),T.arr(e)?e.map(Es):sl(e)?It.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function fv(e){for(const t in e)return!0;return!1}function Pc(e){return T.fun(e)||T.arr(e)&&T.obj(e[0])}function jc(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function hv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var wE={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}},Nc={...wE.default,mass:1,damping:1,easing:Kb.linear,clamp:!1},xE=class{constructor(){this.velocity=0,Object.assign(this,Nc)}};function SE(e,t,n){n&&(n={...n},Qp(n,t),t={...n,...t}),Qp(e,t),Object.assign(e,t);for(const o in Nc)e[o]==null&&(e[o]=Nc[o]);let{frequency:r,damping:i}=e;const{mass:s}=e;return T.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*s,e.friction=4*Math.PI*i*s/r),e}function Qp(e,t){if(!T.und(t.decay))e.duration=void 0;else{const n=!T.und(t.tension)||!T.und(t.friction);(n||!T.und(t.frequency)||!T.und(t.damping)||!T.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Wp=[],bE=class{constructor(){this.changed=!1,this.values=Wp,this.toValues=null,this.fromValues=Wp,this.config=new xE,this.immediate=!1}};function pv(e,{key:t,props:n,defaultProps:r,state:i,actions:s}){return new Promise((o,a)=>{let l,u,c=Hi(n.cancel??(r==null?void 0:r.cancel),t);if(c)g();else{T.und(n.pause)||(i.paused=Hi(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||Hi(p,t)),l=Be(n.delay||0,t),p?(i.resumeQueue.add(h),s.pause()):(s.resume(),h())}function d(){i.resumeQueue.add(h),i.timeouts.delete(u),u.cancel(),l=u.time-V.now()}function h(){l>0&&!It.skipAnimation?(i.delayed=!0,u=V.setTimeout(g,l),i.pauseQueue.add(d),i.timeouts.add(u)):g()}function g(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{s.start({...n,callId:e,cancel:c},o)}catch(p){a(p)}}})}var lf=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Fr(e.get()):t.every(n=>n.noop)?mv(e.get()):Pt(e.get(),t.every(n=>n.finished)),mv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Pt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Fr=e=>({value:e,cancelled:!0,finished:!1});function gv(e,t,n,r){const{callId:i,parentId:s,onRest:o}=t,{asyncTo:a,promise:l}=n;return!s&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=ll(t,(x,m)=>m==="onRest"?void 0:x);let c,d;const h=new Promise((x,m)=>(c=x,d=m)),g=x=>{const m=i<=(n.cancelId||0)&&Fr(r)||i!==n.asyncId&&Pt(r,!1);if(m)throw x.result=m,d(x),x},p=(x,m)=>{const v=new Kp,w=new Zp;return(async()=>{if(It.skipAnimation)throw Cs(n),w.result=Pt(r,!1),d(w),w;g(v);const S=T.obj(x)?{...x}:{...m,to:x};S.parentId=i,Qt(u,(k,O)=>{T.und(S[O])&&(S[O]=k)});const C=await r.start(S);return g(v),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),C})()};let y;if(It.skipAnimation)return Cs(n),Pt(r,!1);try{let x;T.arr(e)?x=(async m=>{for(const v of m)await p(v)})(e):x=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([x.then(c),h]),y=Pt(r.get(),!0,!1)}catch(x){if(x instanceof Kp)y=x.result;else if(x instanceof Zp)y=x.result;else throw x}finally{i==n.asyncId&&(n.asyncId=s,n.asyncTo=s?a:void 0,n.promise=s?l:void 0)}return T.fun(o)&&V.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function Cs(e,t){Ui(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Kp=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.")}},Zp=class extends Error{constructor(){super("SkipAnimationSignal")}},Tc=e=>e instanceof uf,EE=1,uf=class extends rv{constructor(){super(...arguments),this.id=EE++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=$t(this);return e&&e.getValue()}to(...e){return It.to(this,e)}interpolate(...e){return nE(),It.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){ws(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||nl.sort(this),ws(this,{type:"priority",parent:this,priority:e})}},lr=Symbol.for("SpringPhase"),vv=1,_c=2,Ic=4,nu=e=>(e[lr]&vv)>0,hn=e=>(e[lr]&_c)>0,yi=e=>(e[lr]&Ic)>0,Xp=(e,t)=>t?e[lr]|=_c|vv:e[lr]&=~_c,Gp=(e,t)=>t?e[lr]|=Ic:e[lr]&=~Ic,CE=class extends uf{constructor(e,t){if(super(),this.animation=new bE,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,!T.und(e)||!T.und(t)){const n=T.obj(e)?{...e}:{...t,from:e};T.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(hn(this)||this._state.asyncTo)||yi(this)}get goal(){return ze(this.animation.to)}get velocity(){const e=$t(this);return e instanceof Bs?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return nu(this)}get isAnimating(){return hn(this)}get isPaused(){return yi(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:s}=r,o=ol(r.to);!o&&ft(r.to)&&(i=_e(ze(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==bs?1:o?o[c].lastPosition:i[c];let h=r.immediate,g=d;if(!h){if(g=u.lastPosition,s.tension<=0){u.done=!0;return}let p=u.elapsedTime+=e;const y=r.fromValues[c],x=u.v0!=null?u.v0:u.v0=T.arr(s.velocity)?s.velocity[c]:s.velocity;let m;const v=s.precision||(y==d?.005:Math.min(1,Math.abs(d-y)*.001));if(T.und(s.duration))if(s.decay){const w=s.decay===!0?.998:s.decay,S=Math.exp(-(1-w)*p);g=y+x/(1-w)*(1-S),h=Math.abs(u.lastPosition-g)<=v,m=x*S}else{m=u.lastVelocity==null?x:u.lastVelocity;const w=s.restVelocity||v/10,S=s.clamp?0:s.bounce,C=!T.und(S),k=y==d?u.v0>0:y<d;let O,R=!1;const I=1,A=Math.ceil(e/I);for(let M=0;M<A&&(O=Math.abs(m)>w,!(!O&&(h=Math.abs(d-g)<=v,h)));++M){C&&(R=g==d||g>d==k,R&&(m=-m*S,g=d));const z=-s.tension*1e-6*(g-d),B=-s.friction*.001*m,E=(z+B)/s.mass;m=m+E*I,g=g+m*I}}else{let w=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,u.durationProgress>0&&(u.elapsedTime=s.duration*u.durationProgress,p=u.elapsedTime+=e)),w=(s.progress||0)+p/this._memoizedDuration,w=w>1?1:w<0?0:w,u.durationProgress=w),g=y+s.easing(w)*(d-y),m=(g-u.lastPosition)/e,h=w==1}u.lastVelocity=m,Number.isNaN(g)&&(h=!0)}o&&!o[c].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(g,s.round)&&(n=!0)});const a=$t(this),l=a.getValue();if(t){const u=ze(r.to);(l!==u||n)&&!s.decay?(a.setValue(u),this._onChange(u)):n&&s.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return V.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(hn(this)){const{to:e,config:t}=this.animation;V.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return T.und(e)?(n=this.queue||[],this.queue=[]):n=[T.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>lf(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Cs(this._state,e&&this._lastCallId),V.batchedUpdates(()=>this._stop(t,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 t=this.key||"";let{to:n,from:r}=e;n=T.obj(n)?n[t]:n,(n==null||Pc(n))&&(n=void 0),r=T.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return nu(this)||(e.reverse&&([n,r]=[r,n]),r=ze(r),T.und(r)?$t(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ll(e,(o,a)=>/^on/.test(a)?cv(o,n):o)),Jp(this,e,"onProps"),xi(this,"onProps",e,this);const i=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 s=this._state;return pv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:s,actions:{pause:()=>{yi(this)||(Gp(this,!0),Ri(s.pauseQueue),xi(this,"onPause",Pt(this,wi(this,this.animation.to)),this))},resume:()=>{yi(this)&&(Gp(this,!1),hn(this)&&this._resume(),Ri(s.resumeQueue),xi(this,"onResume",Pt(this,wi(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=yv(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Fr(this));const r=!T.und(e.to),i=!T.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Fr(this));const{key:s,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;i&&!r&&(!t.default||T.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const h=!Gt(d,u);h&&(a.from=d),d=ze(d);const g=!Gt(c,l);g&&this._focus(c);const p=Pc(t.to),{config:y}=a,{decay:x,velocity:m}=y;(r||i)&&(y.velocity=0),t.config&&!p&&SE(y,Be(t.config,s),t.config!==o.config?Be(o.config,s):void 0);let v=$t(this);if(!v||T.und(c))return n(Pt(this,!0));const w=T.und(t.reset)?i&&!t.default:!T.und(d)&&Hi(t.reset,s),S=w?d:this.get(),C=Es(c),k=T.num(C)||T.arr(C)||sl(C),O=!p&&(!k||Hi(o.immediate||t.immediate,s));if(g){const M=Rc(c);if(M!==v.constructor)if(O)v=this._set(C);else throw Error(`Cannot animate between ${v.constructor.name} and ${M.name}, as the "to" prop suggests`)}const R=v.constructor;let I=ft(c),A=!1;if(!I){const M=w||!nu(this)&&h;(g||M)&&(A=Gt(Es(S),C),I=!A),(!Gt(a.immediate,O)&&!O||!Gt(y.decay,x)||!Gt(y.velocity,m))&&(I=!0)}if(A&&hn(this)&&(a.changed&&!w?I=!0:I||this._stop(l)),!p&&((I||ft(l))&&(a.values=v.getPayload(),a.toValues=ft(c)?null:R==bs?[1]:_e(C)),a.immediate!=O&&(a.immediate=O,!O&&!w&&this._set(l)),I)){const{onRest:M}=a;U(OE,B=>Jp(this,t,B));const z=Pt(this,wi(this,l));Ri(this._pendingCalls,z),this._pendingCalls.add(n),a.changed&&V.batchedUpdates(()=>{var B;a.changed=!w,M==null||M(z,this),w?Be(o.onRest,z):(B=a.onStart)==null||B.call(a,z,this)})}w&&this._set(S),p?n(gv(t.to,t,this._state,this)):I?this._start():hn(this)&&!g?this._pendingCalls.add(n):n(mv(S))}_focus(e){const t=this.animation;e!==t.to&&(Bp(this)&&this._detach(),t.to=e,Bp(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ft(t)&&(ri(t,this),Tc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ft(e)&&xs(e,this)}_set(e,t=!0){const n=ze(e);if(!T.und(n)){const r=$t(this);if(!r||!Gt(n,r.getValue())){const i=Rc(n);!r||r.constructor!=i?of(this,i.create(n)):r.setValue(n),r&&V.batchedUpdates(()=>{this._onChange(n,t)})}}return $t(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,xi(this,"onStart",Pt(this,wi(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Be(this.animation.onChange,e,this)),Be(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;$t(this).reset(ze(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),hn(this)||(Xp(this,!0),yi(this)||this._resume())}_resume(){It.skipAnimation?this.finish():nl.start(this)}_stop(e,t){if(hn(this)){Xp(this,!1);const n=this.animation;U(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),ws(this,{type:"idle",parent:this});const r=t?Fr(this.get()):Pt(this.get(),wi(this,e??n.to));Ri(this._pendingCalls,r),n.changed&&(n.changed=!1,xi(this,"onRest",r,this))}}};function wi(e,t){const n=Es(t),r=Es(e.get());return Gt(r,n)}function yv(e,t=e.loop,n=e.to){const r=Be(t);if(r){const i=r!==!0&&af(r),s=(i||e).reverse,o=!i||i.reset;return ks({...e,loop:t,default:!1,pause:void 0,to:!s||Pc(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function ks(e){const{to:t,from:n}=e=af(e),r=new Set;return T.obj(t)&&Yp(t,r),T.obj(n)&&Yp(n,r),e.keys=r.size?Array.from(r):null,e}function kE(e){const t=ks(e);return T.und(t.default)&&(t.default=ll(t)),t}function Yp(e,t){Qt(e,(n,r)=>n!=null&&t.add(r))}var OE=["onStart","onRest","onChange","onPause","onResume"];function Jp(e,t,n){e.animation[n]=t[n]!==dv(t,n)?cv(t[n],e.key):void 0}function xi(e,t,...n){var r,i,s,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(s=e.defaultProps)[t])==null||o.call(s,...n)}var RE=["onStart","onChange","onRest"],PE=1,wv=class{constructor(e,t){this.id=PE++,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),t&&(this._flush=t),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((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];T.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ks(e)),this}start(e){let{queue:t}=this;return e?t=_e(e).map(ks):this.queue=[],this._flush?this._flush(this,t):(Cv(this,t),Ac(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;U(_e(t),r=>n[r].stop(!!e))}else Cs(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(T.und(e))this.start({pause:!0});else{const t=this.springs;U(_e(e),n=>t[n].pause())}return this}resume(e){if(T.und(e))this.start({pause:!1});else{const t=this.springs;U(_e(e),n=>t[n].resume())}return this}each(e){Qt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Ui(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const s=!r&&this._started,o=i||s&&n.size?this.get():null;i&&t.size&&Ui(t,([a,l])=>{l.value=o,a(l,this,this._item)}),s&&(this._started=!1,Ui(n,([a,l])=>{l.value=o,a(l,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;V.onFrame(this._onFrame)}};function Ac(e,t){return Promise.all(t.map(n=>xv(e,n))).then(n=>lf(e,n))}async function xv(e,t,n){const{keys:r,to:i,from:s,loop:o,onRest:a,onResolve:l}=t,u=T.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);const c=T.arr(i)||T.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):U(RE,y=>{const x=t[y];if(T.fun(x)){const m=e._events[y];t[y]=({finished:v,cancelled:w})=>{const S=m.get(x);S?(v||(S.finished=!1),w&&(S.cancelled=!0)):m.set(x,{value:null,finished:v||!1,cancelled:w||!1})},u&&(u[y]=t[y])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Ri(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),g=t.cancel===!0||dv(t,"cancel")===!0;(c||g&&d.asyncId)&&h.push(pv(++e._lastAsyncId,{props:t,state:d,actions:{pause:Cc,resume:Cc,start(y,x){g?(Cs(d,e._lastAsyncId),x(Fr(e))):(y.onRest=a,x(gv(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const p=lf(e,await Promise.all(h));if(o&&p.finished&&!(n&&p.noop)){const y=yv(t,o,i);if(y)return Cv(e,[y]),xv(e,y,!0)}return l&&V.batchedUpdates(()=>l(p,e,e.item)),p}function Lc(e,t){const n={...e.springs};return t&&U(_e(t),r=>{T.und(r.keys)&&(r=ks(r)),T.obj(r.to)||(r={...r,to:void 0}),Ev(n,r,i=>bv(i))}),Sv(e,n),n}function Sv(e,t){Qt(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ri(n,e))})}function bv(e,t){const n=new CE;return n.key=e,t&&ri(n,t),n}function Ev(e,t,n){t.keys&&U(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Cv(e,t){U(t,n=>{Ev(e.springs,n,r=>bv(r,e))})}var Us=({children:e,...t})=>{const n=b.useContext(Ta),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=oE(()=>({pause:r,immediate:i}),[r,i]);const{Provider:s}=Ta;return b.createElement(s,{value:t},e)},Ta=jE(Us,{});Us.Provider=Ta.Provider;Us.Consumer=Ta.Consumer;function jE(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var kv=()=>{const e=[],t=function(r){iE();const i=[];return U(e,(s,o)=>{if(T.und(r))i.push(s.start());else{const a=n(r,s,o);a&&i.push(s.start(a))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return U(e,r=>r.pause(...arguments)),this},t.resume=function(){return U(e,r=>r.resume(...arguments)),this},t.set=function(r){U(e,(i,s)=>{const o=T.fun(r)?r(s,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return U(e,(s,o)=>{if(T.und(r))i.push(s.start());else{const a=this._getProps(r,s,o);a&&i.push(s.start(a))}}),i},t.stop=function(){return U(e,r=>r.stop(...arguments)),this},t.update=function(r){return U(e,(i,s)=>i.update(this._getProps(r,i,s))),this};const n=function(r,i,s){return T.fun(r)?r(s,i):r};return t._getProps=n,t};function NE(e,t,n){const r=T.fun(t)&&t;r&&!n&&(n=[]);const i=b.useMemo(()=>r||arguments.length==3?kv():void 0,[]),s=b.useRef(0),o=rf(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(m,v){const w=Lc(m,v);return s.current>0&&!a.queue.length&&!Object.keys(w).some(C=>!m.springs[C])?Ac(m,v):new Promise(C=>{Sv(m,w),a.queue.push(()=>{C(Ac(m,v))}),o()})}}),[]),l=b.useRef([...a.ctrls]),u=[],c=Oc(e)||0;b.useMemo(()=>{U(l.current.slice(e,c),m=>{jc(m,i),m.stop(!0)}),l.current.length=e,d(c,e)},[e]),b.useMemo(()=>{d(0,Math.min(c,e))},n);function d(m,v){for(let w=m;w<v;w++){const S=l.current[w]||(l.current[w]=new wv(null,a.flush)),C=r?r(w,S):t[w];C&&(u[w]=kE(C))}}const h=l.current.map((m,v)=>Lc(m,u[v])),g=b.useContext(Us),p=Oc(g),y=g!==p&&fv(g);Yn(()=>{s.current++,a.ctrls=l.current;const{queue:m}=a;m.length&&(a.queue=[],U(m,v=>v())),U(l.current,(v,w)=>{i==null||i.add(v),y&&v.start({default:g});const S=u[w];S&&(hv(v,S.ref),v.ref?v.queue.push(S):v.start(S))})}),sf(()=>()=>{U(a.ctrls,m=>m.stop(!0))});const x=h.map(m=>({...m}));return i?[x,i]:x}function Ak(e,t){const n=T.fun(e),[[r],i]=NE(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}function ul(e,t,n){const r=T.fun(t)&&t,{reset:i,sort:s,trail:o=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,h=b.useMemo(()=>r||arguments.length==3?kv():void 0,[]),g=_e(e),p=[],y=b.useRef(null),x=i?null:y.current;Yn(()=>{y.current=p}),sf(()=>(U(p,E=>{h==null||h.add(E.ctrl),E.ctrl.ref=h}),()=>{U(y.current,E=>{E.expired&&clearTimeout(E.expirationId),jc(E.ctrl,h),E.ctrl.stop(!0)})}));const m=_E(g,r?r():t,x),v=i&&y.current||[];Yn(()=>U(v,({ctrl:E,item:P,key:L})=>{jc(E,h),Be(u,P,L)}));const w=[];if(x&&U(x,(E,P)=>{E.expired?(clearTimeout(E.expirationId),v.push(E)):(P=w[P]=m.indexOf(E.key),~P&&(p[P]=E))}),U(g,(E,P)=>{p[P]||(p[P]={key:m[P],item:E,phase:"mount",ctrl:new wv},p[P].ctrl.item=E)}),w.length){let E=-1;const{leave:P}=r?r():t;U(w,(L,F)=>{const j=x[F];~L?(E=p.indexOf(j),p[E]={...j,item:g[L]}):P&&p.splice(++E,0,j)})}T.fun(s)&&p.sort((E,P)=>s(E.item,P.item));let S=-o;const C=rf(),k=ll(t),O=new Map,R=b.useRef(new Map),I=b.useRef(!1);U(p,(E,P)=>{const L=E.key,F=E.phase,j=r?r():t;let N,$;const W=Be(j.delay||0,L);if(F=="mount")N=j.enter,$="enter";else{const J=m.indexOf(L)<0;if(F!="leave")if(J)N=j.leave,$="leave";else if(N=j.update)$="update";else return;else if(!J)N=j.enter,$="enter";else return}if(N=Be(N,E.item,P),N=T.obj(N)?af(N):{to:N},!N.config){const J=d||k.config;N.config=Be(J,E.item,P,$)}S+=o;const H={...k,delay:W+S,ref:c,immediate:j.immediate,reset:!1,...N};if($=="enter"&&T.und(H.from)){const J=r?r():t,Z=T.und(J.initial)||x?J.from:J.initial;H.from=Be(Z,E.item,P)}const{onResolve:Ye}=H;H.onResolve=J=>{Be(Ye,J);const Z=y.current,ie=Z.find(ge=>ge.key===L);if(ie&&!(J.cancelled&&ie.phase!="update")&&ie.ctrl.idle){const ge=Z.every(Fe=>Fe.ctrl.idle);if(ie.phase=="leave"){const Fe=Be(a,ie.item);if(Fe!==!1){const Mt=Fe===!0?0:Fe;if(ie.expired=!0,!ge&&Mt>0){Mt<=2147483647&&(ie.expirationId=setTimeout(C,Mt));return}}}ge&&Z.some(Fe=>Fe.expired)&&(R.current.delete(ie),l&&(I.current=!0),C())}};const he=Lc(E.ctrl,H);$==="leave"&&l?R.current.set(E,{phase:$,springs:he,payload:H}):O.set(E,{phase:$,springs:he,payload:H})});const A=b.useContext(Us),M=Oc(A),z=A!==M&&fv(A);Yn(()=>{z&&U(p,E=>{E.ctrl.start({default:A})})},[A]),U(O,(E,P)=>{if(R.current.size){const L=p.findIndex(F=>F.key===P.key);p.splice(L,1)}}),Yn(()=>{U(R.current.size?R.current:O,({phase:E,payload:P},L)=>{const{ctrl:F}=L;L.phase=E,h==null||h.add(F),z&&E=="enter"&&F.start({default:A}),P&&(hv(F,P.ref),(F.ref||h)&&!I.current?F.update(P):(F.start(P),I.current&&(I.current=!1)))})},i?void 0:n);const B=E=>b.createElement(b.Fragment,null,p.map((P,L)=>{const{springs:F}=O.get(P)||P.ctrl,j=E({...F},P.item,P,L);return j&&j.type?b.createElement(j.type,{...j.props,key:T.str(P.key)||T.num(P.key)?P.key:P.ctrl.id,ref:j.ref}):j}));return h?[B,h]:B}var TE=1;function _E(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(s=>{const o=r&&r.find(a=>a.item===s&&a.phase!=="leave"&&!i.has(a));return o?(i.add(o),o.key):TE++})}return T.und(n)?e:T.fun(n)?e.map(n):_e(n)}var IE=class extends uf{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=vs(...t);const n=this._get(),r=Rc(n);of(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Gt(t,n)||($t(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&em(this._active)&&ru(this)}_get(){const e=T.arr(this.source)?this.source.map(ze):_e(ze(this.source));return this.calc(...e)}_start(){this.idle&&!em(this._active)&&(this.idle=!1,U(ol(this),e=>{e.done=!1}),It.skipAnimation?(V.batchedUpdates(()=>this.advance()),ru(this)):nl.start(this))}_attach(){let e=1;U(_e(this.source),t=>{ft(t)&&ri(t,this),Tc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){U(_e(this.source),e=>{ft(e)&&xs(e,this)}),this._active.clear(),ru(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=_e(this.source).reduce((t,n)=>Math.max(t,(Tc(n)?n.priority:0)+1),0))}};function AE(e){return e.idle!==!1}function em(e){return!e.size||Array.from(e).every(AE)}function ru(e){e.idle||(e.idle=!0,U(ol(e),t=>{t.done=!0}),ws(e,{type:"idle",parent:e}))}It.assign({createStringInterpolator:ov,to:(e,t)=>new IE(e,t)});var Ov=/^--/;function LE(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Ov.test(e)&&!(qi.hasOwnProperty(e)&&qi[e])?t+"px":(""+t).trim()}var tm={};function ME(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:s,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:tm[d]||(tm[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));i!==void 0&&(e.textContent=i);for(const d in r)if(r.hasOwnProperty(d)){const h=LE(d,r[d]);Ov.test(d)?e.style.setProperty(d,h):e.style[d]=h}c.forEach((d,h)=>{e.setAttribute(d,u[h])}),s!==void 0&&(e.scrollTop=s),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var qi={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},DE=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),FE=["Webkit","Ms","Moz","O"];qi=Object.keys(qi).reduce((e,t)=>(FE.forEach(n=>e[DE(n,t)]=e[t]),e),qi);var $E=/^(matrix|translate|scale|rotate|skew)/,zE=/^(translate)/,BE=/^(rotate|skew)/,iu=(e,t)=>T.num(e)&&e!==0?e+t:e,Vo=(e,t)=>T.arr(e)?e.every(n=>Vo(n,t)):T.num(e)?e===t:parseFloat(e)===t,UE=class extends al{constructor({x:e,y:t,z:n,...r}){const i=[],s=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),s.push(o=>[`translate3d(${o.map(a=>iu(a,"px")).join(",")})`,Vo(o,0)])),Qt(r,(o,a)=>{if(a==="transform")i.push([o||""]),s.push(l=>[l,l===""]);else if($E.test(a)){if(delete r[a],T.und(o))return;const l=zE.test(a)?"px":BE.test(a)?"deg":"";i.push(_e(o)),s.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${iu(h,l)})`,Vo(h,0)]:u=>[`${a}(${u.map(c=>iu(c,l)).join(",")})`,Vo(u,a.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new VE(i,s)),super(r)}},VE=class extends rv{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return U(this.inputs,(n,r)=>{const i=ze(n[0]),[s,o]=this.transforms[r](T.arr(i)?i:n.map(ze));e+=" "+s,t=t&&o}),t?"none":e}observerAdded(e){e==1&&U(this.inputs,t=>U(t,n=>ft(n)&&ri(n,this)))}observerRemoved(e){e==0&&U(this.inputs,t=>U(t,n=>ft(n)&&xs(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),ws(this,e)}},HE=["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"];It.assign({batchedUpdates:Ls.unstable_batchedUpdates,createStringInterpolator:ov,colors:Lb});var qE=pE(HE,{applyAnimatedValues:ME,createAnimatedStyle:e=>new UE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Os=qE.animated;const Rv=({trigger:e,content:t})=>{const[n,r]=b.useState(null),[i,s]=b.useState(null),{styles:o,attributes:a}=Ob(n,i,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,12]}}]}),[l,u]=b.useState(!1),c=ul(l,{from:{opacity:0,y:10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}}),d=()=>{u(g=>!g)},h=Im.cloneElement(e,{ref:r,onClick:d,state:l?"selected":"default"});return b.useEffect(()=>{const g=p=>{i&&!i.contains(p.target)&&n&&!n.contains(p.target)&&u(!1)};return document.addEventListener("mousedown",g,!0),document.addEventListener("touchstart",g,!0),()=>{document.removeEventListener("mousedown",g,!0),document.removeEventListener("touchstart",g,!0)}},[i,n]),f.jsxs(f.Fragment,{children:[h,c((g,p)=>f.jsx(f.Fragment,{children:p&&f.jsx(Os.div,{className:K("bg-white shadow rounded-4 d-block show py-12 px-8","bs-tooltip-auto"),ref:s,style:{...o.popper,...g},...a.popper,children:t})}))]})};Rv.displayName="Dropdown";const QE=Rv,Pv=b.forwardRef(({title:e="",state:t,variant:n,icon:r,size:i="lg",grow:s=!1,badgeContent:o,...a},l)=>{const u=K("dropdown-trigger",t,i,n,s&&"flex-grow-1 justify-content-between");return f.jsxs("button",{ref:l,className:u,...a,type:"button",children:[r&&f.jsx("div",{className:"dropdown-trigger-icon",children:r}),f.jsx("div",{children:e}),o?f.jsx("div",{children:f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:o})}):f.jsx("div",{className:"dropdown-trigger-carret-icon",children:f.jsx(A3,{width:16,height:16})})]})});Pv.displayName="DropdownTrigger";const WE=Pv,jv=({options:e,hideCheckbox:t,isMonoSelection:n,onChange:r,model:i=[]})=>{const[s,o]=b.useState(i),a=l=>{o(n?[l]:u=>{const c=[...u];return u.includes(l)?c.splice(c.indexOf(l),1):c.push(l),c})};return b.useEffect(()=>{r==null||r(s)},[s]),f.jsx(f.Fragment,{children:f.jsx("div",{className:"select-list",children:e==null?void 0:e.map(l=>f.jsxs("div",{className:K("select-list-option",t&&s.includes(l.value)&&"text-secondary fw-bold"),role:"checkbox","aria-checked":s.includes(l.value),onMouseUp:()=>{a(l.value)},tabIndex:0,onKeyDown:u=>{u.key==="Enter"&&a(l.value)},children:[f.jsx("div",{className:"select-list-option-icon",children:l.icon&&Im.createElement(l.icon,{width:"20px",height:"20px"})}),f.jsx("div",{className:"select-list-option-label",children:l.label}),!t&&f.jsx("div",{className:"select-list-option-checkbox",children:f.jsx("input",{readOnly:!0,type:"checkbox",tabIndex:-1,checked:s.includes(l.value),className:"form-check-input c-pointer",id:"option.value"})})]},l.value))})})};jv.displayName="SelectList";const KE=jv,Nv=b.createContext(null),cf=()=>{const e=b.useContext(Nv);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},Tv=({children:e})=>{const{status:t}=cf(),n=K("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return f.jsx("p",{className:n,children:f.jsx("em",{children:e})})};Tv.displayName="Text";const ZE=Tv,_v=b.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:i},s)=>{const{id:o,isOptional:a,isRequired:l}=cf(),u=K("form-label",{"has-icon":e},i),c=a&&!l,d=l&&!a;return b.useEffect(()=>{if(a&&l)throw new Error("Cannot be optional and required at the same time")},[a,l]),f.jsxs("label",{ref:s,htmlFor:o,className:u,children:[e,r,c&&f.jsxs("em",{className:"optional",children:["- ",t]}),d&&f.jsx("em",{className:"required",children:n})]})});_v.displayName="Label";const XE=_v,Iv=b.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:i,...s},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:c}=cf(),d=K({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","is-invalid":c==="invalid","is-valid":c==="valid","form-control-plaintext":u,"no-validation-icon":e},i);return f.jsx("input",{ref:o,id:a,className:d,type:r,placeholder:t,required:l,readOnly:u,...s})});Iv.displayName="Input";const Av=Iv,Lv=b.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:i,isRequired:s,status:o,...a},l)=>{const u=b.useMemo(()=>({id:n,isOptional:r,isRequired:s,isReadOnly:i,status:o}),[n,r,i,s,o]);return f.jsx(Nv.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),GE=Object.assign(Lv,{Label:XE,Input:Av,Text:ZE});Lv.displayName="FormControl";const Mc=GE,Qi=({children:e,className:t,...n})=>{const r=K("grid",t);return f.jsx("div",{className:r,...n,children:e})},Mv=({sm:e,md:t,lg:n,xl:r,children:i,className:s,as:o,...a})=>{const l=o||"div",u=K({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},s);return f.jsx(l,{className:u,...a,children:i})};Qi.displayName="Grid";Mv.displayName="Grid.Col";Qi.Col=Mv;const Dv=b.forwardRef(({position:e=!0},t)=>{const[n]=Ya(),r=`${n}/loading/screen-loading.gif`,i=K("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 f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:t,className:i,children:f.jsx("div",{className:"bg-white rounded-circle mx-auto",children:f.jsx("img",{src:r,alt:"loading"})})}),!e&&f.jsx("div",{className:"modal-backdrop fade show"})]})});Dv.displayName="LoadingScreen";const Ve=Dv,Fv=b.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const i=K("navbar-brand d-none d-md-block"),s=`logo ${t?"ONE":"NEO"}`;return f.jsx("a",{ref:r,className:i,href:"/timeline/timeline","aria-label":n,children:f.jsx("img",{className:"logo",src:e,alt:s,width:"300",height:"52"})})});Fv.displayName="Logo";const nm=Fv,df=b.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});df.displayName="ModalContext";const $v=()=>{const e=b.useContext(df);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},zv=e=>{const{ariaDescriptionId:t}=$v(),{children:n,className:r}=e,i=K("modal-body",r);return f.jsx("div",{id:t,className:i,children:n})};zv.displayName="Modal.Body";const YE=zv,Bv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Bv.displayName="Modal.Footer";const JE=Bv,Uv=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:i}=$v(),s=b.useRef(null);return b.useEffect(()=>{var o;i||(o=s.current)==null||o.focus()},[i]),f.jsxs("div",{className:"modal-header",children:[f.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),f.jsx("button",{ref:s,type:"button",className:"btn btn-close","aria-label":"Close",onClick:t})]})};Uv.displayName="Modal.Header";const eC=Uv,Vv=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Vv.displayName="Modal.Subtitle";const tC=Vv,Hv=b.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:i,size:s="md",scrollable:o,focusId:a,children:l}=e,u=`aria_label_${n}`,c=`aria_desc_${n}`,d=r4(i),h=Y4();Z4(i,["Escape"]),b.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",a)){const x=document.getElementById(a);x==null||x.focus()}return()=>{document.body.style.overflow=""}},[a,r]);const g=K("modal-dialog",{[`modal-${s}`]:s,"modal-dialog-scrollable":o}),p={ariaLabelId:u,ariaDescriptionId:c,focusId:a},y=ul(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return f.jsx(df.Provider,{value:p,children:y((x,m)=>f.jsxs(f.Fragment,{children:[m&&f.jsx(Os.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":u,"aria-describedby":c,className:`modal fade ${m?"show d-block":""}`,style:x,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:v=>{d.current=v,m&&(h.current=v)},className:g,children:f.jsx("div",{className:"modal-content",children:l})})}),m&&f.jsx(Os.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),nC=Object.assign(Hv,{Header:eC,Subtitle:tC,Body:YE,Footer:JE});Hv.displayName="Modal";const Cn=nC,rC=({children:e,className:t})=>{const n=K("popover-body",t);return f.jsx("div",{className:n,children:e})},iC=({children:e,className:t})=>{const n=K("popover-footer p-8",t);return f.jsx("div",{className:n,children:e})},ff=b.forwardRef(({children:e,className:t,id:n,isVisible:r,...i},s)=>{const o=K("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return ul(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}})((l,u)=>u&&f.jsx(Os.div,{ref:s,"aria-labelledby":n,className:o,role:"tooltip",style:l,...i,children:e}))});ff.displayName="Popover";function sC(e,t,n,r,i,s,o,a,l){const u=x=>{x.preventDefault(),i==null||i(e),x.stopPropagation()},c=x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),i==null||i(e),x.stopPropagation())},d=()=>{r(!n),n?s==null||s(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:x=>{x.preventDefault(),d(),x.stopPropagation()},handleItemFoldUnfoldKeyDown:x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),d(),x.stopPropagation())},handleItemFocus:x=>{x.preventDefault(),a==null||a(e)},handleItemBlur:x=>{x.preventDefault(),l==null||l(e)}}}const qv=e=>{const{nodeId:t,label:n,children:r,section:i,selected:s,onItemSelect:o,onItemFold:a,onItemUnfold:l,onItemFocus:u,onItemBlur:c,selectedNodesIds:d}=e,[h,g]=b.useState(!1),{handleItemClick:p,handleItemKeyDown:y,handleItemFoldUnfoldClick:x,handleItemFoldUnfoldKeyDown:m,handleItemFocus:v,handleItemBlur:w}=sC(t,n,h,g,o,a,l,u,c);b.useEffect(()=>{if(d!=null&&d.length&&(d==null?void 0:d.length)>=1){const k=d[d.length-1];d.some(O=>O===t&&t!==k?(g(!0),O===t):(g(!1),!1))}else g(!1)},[t,d]);const S=i?16:12,C=()=>f.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":s,"aria-expanded":h,children:f.jsxs("div",{children:[f.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[f.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:x,onKeyDown:m,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&f.jsx(yp,{title:"RafterRight",width:S,height:S}),Array.isArray(r)&&h&&f.jsx(wc,{title:"RafterDown",width:S,height:S}),!Array.isArray(r)&&f.jsx(yp,{title:"RafterRight",width:S,height:S,"aria-hidden":"true",className:"opacity-0"})]}),f.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:p,onKeyDown:y,onFocus:v,onBlur:w,children:[i&&f.jsx(x3,{title:"Folder",width:20,height:20}),f.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&f.jsx("ul",{role:"group",children:r})]})},t);return i?f.jsx("ul",{role:"tree",className:"m-0 p-0",children:C()}):C()};qv.displayName="TreeItem";const oC=qv,Qv=b.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:i,onTreeItemUnfold:s,onTreeItemFocus:o,onTreeItemBlur:a,selectedNodesIds:l}=e,[u,c]=b.useState("default");b.useEffect(()=>{l!=null&&l.length&&(l==null?void 0:l.length)>=1?c(l[l.length-1]):c("")},[l]);const d=m=>{c(m),r==null||r(m)},h=m=>{i==null||i(m)},g=m=>{s==null||s(m)},p=m=>{o==null||o(m)},y=m=>{a==null||a(m)},x=m=>f.jsx(oC,{nodeId:m.id,label:m.name,section:m.section,selectedNodesIds:l,selected:u===m.id,onItemSelect:d,onItemFold:h,onItemUnfold:g,onItemFocus:p,onItemBlur:y,children:Array.isArray(m.children)?m.children.map(v=>x(v)):null},m.id);return f.jsx("div",{ref:t,id:"treeview",className:"treeview",children:x(n)})});Qv.displayName="TreeView";const aC=Qv,Wv=b.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Wv.displayName="VisuallyHidden";const Pi=Wv,lC=()=>{const e=$i("fr.openent.zimbra.controllers.ZimbraController|view"),t=$i("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=b.useState(0),[i,s]=b.useState(""),o=b.useCallback(async()=>{if(e)try{const l=await G.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});l.status!==200&&r(0),r(l.count)}catch{r(0)}else try{const l=await G.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(l.count)}catch{r(0)}},[e]),a=b.useCallback(()=>{let l="";G.http().get("/userbook/preference/zimbra").then(u=>{try{u.preference&&JSON.parse(u.preference).modeExpert&&t?l="/zimbra/preauth":l=window.location.origin+"/zimbra/zimbra"}catch{l="/zimbra/zimbra"}}),s(l)},[t]);return b.useEffect(()=>{(async()=>{try{await o()}catch{}})(),a()},[a,o]),{messages:n,msgLink:i,zimbraWorkflow:e}},uC=lC;function su({children:e}){return f.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function ou({children:e,className:t,...n}){const r=K("navbar",t);return f.jsx("nav",{className:r,...n,children:e})}function rm({children:e,className:t,...n}){const r=K("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const de=b.forwardRef(({children:e,className:t,...n},r)=>{const i=K("nav-item",t);return f.jsx("li",{ref:r,className:i,...n,children:e})});de.displayName="NavItem";function Si({link:e,className:t,children:n,translate:r,...i}){const s=K("nav-link",t);return f.jsxs("a",{href:e,className:s,...i,children:[n,r&&f.jsx(Pi,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const cC=()=>{const{t:e}=xe();return f.jsx("div",{className:"widget-footer",children:f.jsx("div",{className:"widget-footer-action",children:f.jsx("a",{href:"/welcome",className:"link",children:e("plus")})})})},dC=({bookmarkedApps:e})=>{const{t}=xe();return f.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!e.length&&f.jsx("div",{className:"text-dark",children:t("navbar.myapps.more")}),e.slice(0,6).map((n,r)=>f.jsx("a",{href:n.address,className:"bookmarked-app",children:f.jsx(xc,{app:n,size:"32"})},r))]})};var hf={},pf={};(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 t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(pf);var q={},Bn=He&&He.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wi=He&&He.__assign||function(){return Wi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Wi.apply(this,arguments)};Object.defineProperty(q,"__esModule",{value:!0});q.cloneNode=q.hasChildren=q.isDocument=q.isDirective=q.isComment=q.isText=q.isCDATA=q.isTag=q.Element=q.Document=q.CDATA=q.NodeWithChildren=q.ProcessingInstruction=q.Comment=q.Text=q.DataNode=q.Node=void 0;var Ge=pf,mf=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(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),gf(this,t)},e}();q.Node=mf;var cl=function(e){Bn(t,e);function t(n){var r=e.call(this)||this;return r.data=n,r}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(mf);q.DataNode=cl;var Kv=function(e){Bn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(cl);q.Text=Kv;var Zv=function(e){Bn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(cl);q.Comment=Zv;var Xv=function(e){Bn(t,e);function t(n,r){var i=e.call(this,r)||this;return i.name=n,i.type=Ge.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(cl);q.ProcessingInstruction=Xv;var dl=function(e){Bn(t,e);function t(n){var r=e.call(this)||this;return r.children=n,r}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(mf);q.NodeWithChildren=dl;var Gv=function(e){Bn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(dl);q.CDATA=Gv;var Yv=function(e){Bn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(dl);q.Document=Yv;var Jv=function(e){Bn(t,e);function t(n,r,i,s){i===void 0&&(i=[]),s===void 0&&(s=n==="script"?Ge.ElementType.Script:n==="style"?Ge.ElementType.Style:Ge.ElementType.Tag);var o=e.call(this,i)||this;return o.name=n,o.attribs=r,o.type=s,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var i,s;return{name:r,value:n.attribs[r],namespace:(i=n["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(s=n["x-attribsPrefix"])===null||s===void 0?void 0:s[r]}})},enumerable:!1,configurable:!0}),t}(dl);q.Element=Jv;function ey(e){return(0,Ge.isTag)(e)}q.isTag=ey;function ty(e){return e.type===Ge.ElementType.CDATA}q.isCDATA=ty;function ny(e){return e.type===Ge.ElementType.Text}q.isText=ny;function ry(e){return e.type===Ge.ElementType.Comment}q.isComment=ry;function iy(e){return e.type===Ge.ElementType.Directive}q.isDirective=iy;function sy(e){return e.type===Ge.ElementType.Root}q.isDocument=sy;function fC(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=fC;function gf(e,t){t===void 0&&(t=!1);var n;if(ny(e))n=new Kv(e.data);else if(ry(e))n=new Zv(e.data);else if(ey(e)){var r=t?au(e.children):[],i=new Jv(e.name,Wi({},e.attribs),r);r.forEach(function(l){return l.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Wi({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Wi({},e["x-attribsPrefix"])),n=i}else if(ty(e)){var r=t?au(e.children):[],s=new Gv(r);r.forEach(function(u){return u.parent=s}),n=s}else if(sy(e)){var r=t?au(e.children):[],o=new Yv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(iy(e)){var a=new Xv(e.name,e.data);e["x-name"]!=null&&(a["x-name"]=e["x-name"],a["x-publicId"]=e["x-publicId"],a["x-systemId"]=e["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}q.cloneNode=gf;function au(e){for(var t=e.map(function(r){return gf(r,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}(function(e){var t=He&&He.__createBinding||(Object.create?function(a,l,u,c){c===void 0&&(c=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(a,c,d)}:function(a,l,u,c){c===void 0&&(c=u),a[c]=l[u]}),n=He&&He.__exportStar||function(a,l){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,a,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=pf,i=q;n(q,e);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(l,u,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=s),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??s,this.elementCB=c??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(l){this.handleCallback(l)},a.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},a.prototype.onopentag=function(l,u){var c=this.options.xmlMode?r.ElementType.Tag:void 0,d=new i.Element(l,u,void 0,c);this.addNode(d),this.tagStack.push(d)},a.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new i.Text(l);this.addNode(c),this.lastNode=c}},a.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var u=new i.Comment(l);this.addNode(u),this.lastNode=u},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new i.Text(""),u=new i.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(l,u){var c=new i.ProcessingInstruction(l,u);this.addNode(c)},a.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},a.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),c&&(l.prev=c,c.next=l),l.parent=u,this.lastNode=null},a}();e.DomHandler=o,e.default=o})(hf);var im="html",sm="head",wo="body",hC=/<([a-zA-Z]+[0-9]?)/,om=/<head[^]*>/i,am=/<body[^]*>/i,_a=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Dc=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},lm=typeof window=="object"&&window.DOMParser;if(typeof lm=="function"){var pC=new lm,mC="text/html";Dc=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),pC.parseFromString(e,mC)},_a=Dc}if(typeof document=="object"&&document.implementation){var xo=document.implementation.createHTMLDocument();_a=function(e,t){if(t){var n=xo.documentElement.querySelector(t);return n.innerHTML=e,xo}return xo.documentElement.innerHTML=e,xo}}var lu=typeof document=="object"?document.createElement("template"):{},Fc;lu.content&&(Fc=function(e){return lu.innerHTML=e,lu.content.childNodes});function gC(e){var t,n=e.match(hC);n&&n[1]&&(t=n[1].toLowerCase());var r,i,s;switch(t){case im:return r=Dc(e),om.test(e)||(i=r.querySelector(sm),i&&i.parentNode.removeChild(i)),am.test(e)||(i=r.querySelector(wo),i&&i.parentNode.removeChild(i)),r.querySelectorAll(im);case sm:case wo:return r=_a(e),s=r.querySelectorAll(t),am.test(e)&&om.test(e)?s[0].parentNode.childNodes:s;default:return Fc?Fc(e):(i=_a(e,wo).querySelector(wo),i.childNodes)}}var vC=gC,vf={},oy={};oy.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 fl=hf,yC=oy,um=yC.CASE_SENSITIVE_TAG_NAMES,wC=fl.Comment,xC=fl.Element,SC=fl.ProcessingInstruction,bC=fl.Text,ay={},uu;for(var cu=0,EC=um.length;cu<EC;cu++)uu=um[cu],ay[uu.toLowerCase()]=uu;function CC(e){return ay[e]}function ly(e){for(var t={},n,r=0,i=e.length;r<i;r++)n=e[r],t[n.name]=n.value;return t}function kC(e){e=e.toLowerCase();var t=CC(e);return t||e}function uy(e,t,n){t=t||null;for(var r=[],i,s=0,o=e.length;s<o;s++){var a=e[s],l;switch(a.nodeType){case 1:i=kC(a.nodeName),l=new xC(i,ly(a.attributes)),l.children=uy(i==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new bC(a.nodeValue);break;case 8:l=new wC(a.nodeValue);break;default:continue}var u=r[s-1]||null;u&&(u.next=l),l.parent=t,l.prev=u,l.next=null,r.push(l)}return n&&(l=new SC(n.substring(0,n.indexOf(" ")).toLowerCase(),n),l.next=r[0]||null,l.parent=t,r.unshift(l),r[1]&&(r[1].prev=r[0])),r}vf.formatAttributes=ly;vf.formatDOM=uy;var OC=vC,RC=vf,PC=RC.formatDOM,jC=/<(![a-zA-Z\s]+)>/;function NC(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(jC),n;return t&&t[1]&&(n=t[1]),PC(OC(e),null,n)}var TC=NC,bt={},hl={},_C=0;hl.SAME=_C;var IC=1;hl.CAMELCASE=IC;hl.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(bt,"__esModule",{value:!0});function AC(e,t){return LC(e)||MC(e,t)||DC(e,t)||FC()}function LC(e){if(Array.isArray(e))return e}function MC(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,o,a;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){s=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function DC(e,t){if(e){if(typeof e=="string")return cm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cm(e,t)}}function cm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
224
+ `,po=16,W4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:s,containerClassName:o})=>{let{toasts:a,handlers:l}=S4(n);return b.createElement("div",{style:{position:"fixed",zIndex:9999,top:po,left:po,right:po,bottom:po,pointerEvents:"none",...s},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let c=u.position||t,d=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=q4(c,d);return b.createElement(H4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?Q4:"",style:h},u.type==="custom"?ka(u.message,u):i?i(u):b.createElement(V4,{toast:u,position:c}))}))},gi=nt;function At(e){return{hotToast:{success:(n,r)=>gi.custom(f.jsx(e,{type:"success",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),error:(n,r)=>gi.custom(f.jsx(e,{type:"danger",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),info:(n,r)=>gi.custom(f.jsx(e,{type:"info",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),warning:(n,r)=>gi.custom(f.jsx(e,{type:"warning",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),loading:gi.loading}}}function K4({src:e,placeholder:t}){const[n,r]=b.useState(e||t),i=b.useCallback(()=>{r(t)},[t]);return b.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:i}}function Z4(e,t){const n=b.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);b.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function X4(e=!1){const[t,n]=b.useState(e),r=b.useCallback(()=>{n(i=>!i)},[]);return[t,r]}function G4(e,t){const[n,r]=b.useState(e);return b.useEffect(()=>{const i=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(i)}},[e,t]),n}function Y4(){const e=b.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return b.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],i=n.querySelectorAll(t),s=e&&(i==null?void 0:i[i.length-1]),o=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===r&&(s.focus(),a.preventDefault()):document.activeElement===s&&(r.focus(),a.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function J4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const b0=b.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));b0.displayName="ActionBar";const e3=b0,t3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"}),f.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"})]}),n3=t3,r3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"}),f.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"})]}),i3=r3,s3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"}),f.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"})]}),Ek=s3,o3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),Ck=o3,a3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),l3=a3,u3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"}),f.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"})]}),kk=u3,c3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),Ok=c3,d3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),f3=d3,h3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"}),f.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"})]}),Rk=h3,p3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),m3=p3,g3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),Pk=g3,v3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067ZM4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4H4.155Z",clipRule:"evenodd"})]}),y3=v3,w3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),x3=w3,S3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),jk=S3,b3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"}),f.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"})]}),E3=b3,C3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),k3=C3,O3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),Nk=O3,R3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),P3=R3,j3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),wc=j3,N3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.129 4.012a1.5 1.5 0 0 1-.141 2.117L9.278 12l6.71 5.871a1.5 1.5 0 0 1-1.976 2.258l-8-7a1.5 1.5 0 0 1 0-2.258l8-7a1.5 1.5 0 0 1 2.117.141Z",clipRule:"evenodd"})]}),T3=N3,_3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),yp=_3,I3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),A3=I3,L3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),Tk=L3,M3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),D3=M3,F3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"}),f.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"})]}),$3=F3,z3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:f.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"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"users_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),_k=z3;function E0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=E0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function K(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=E0(e))&&(r&&(r+=" "),r+=t);return r}const C0=b.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:i=!1,isToast:s=!1,autoClose:o=!1,autoCloseDelay:a=3e3,onClose:l,onVisibilityChange:u},c)=>{const[d,h]=b.useState(!0),g=b.useRef(null),p=b.useCallback(()=>{h(!1),l==null||l()},[l]);b.useImperativeHandle(c,()=>({show:y,hide:p,...g.current})),b.useLayoutEffect(()=>{u==null||u(d)},[d,u]),b.useEffect(()=>{o&&d&&setTimeout(()=>{p()},a)},[o,a,p,d]);const y=()=>{h(!0)},x={success:{icon:f.jsx($3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(n3,{}),classModifier:"alert-warning"},info:{icon:f.jsx(E3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(m3,{}),classModifier:"alert-danger"}},m={"is-dismissible":i,"is-toast ":s},v=K("alert gap-12",x[e].classModifier,m,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:g,className:v,role:"alert",children:[x[e].icon,f.jsx("div",{className:"alert-content small",children:n}),r&&f.jsx("div",{className:"ms-12",children:r}),i&&f.jsx("div",{className:"btn-close-container",children:f.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:p})}),o&&f.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});C0.displayName="Alert";const Lt=C0,k0=b.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const i=K("d-flex p-16 border-bottom bg-white",{"justify-content-between":t,"mx-n16":!n,"z-3 top-0 start-0 end-0 position-fixed":n});return f.jsxs("div",{ref:r,className:i,children:[e,t?f.jsx("div",{className:"d-flex align-items-center gap-8",children:t()}):null]})});k0.displayName="AppHeader";const B3=k0,O0=b.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:i,className:s,...o},a)=>{const[l]=Ya(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:c,onError:d}=K4({src:e,placeholder:u}),h={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},g={"object-fit-contain":i==="contain","object-fit-cover":i==="cover","object-fit-fill":i==="fill","object-fit-scale":i==="scale","object-fit-none":i==="none"},p=K({...h}),y=K({...g},s),x=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:y,...o});return r?f.jsx("div",{className:p,children:x}):x});O0.displayName="Image";const R0=O0,P0=b.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},i)=>{const{isIconUrl:s,getIconCode:o}=v0(),[,a]=Ya(),l=r==="square",u=r==="rounded",c=r==="circle",d=n==="contain",h=n==="ratio",g={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},p={square:l,rounded:u,"rounded-circle":c},y={"icon-contain":d,"icon-ratio":h},x=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",m=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",v=e?o(e):"",w=s(x),S=v||"placeholder",C=K("app-icon",{...g,...p,...y,[`bg-light-${S}`]:S&&!d,[`color-app-${S}`]:S});return w?f.jsx(R0,{src:x,alt:m,objectFit:"contain",width:t,height:t,className:"h-full"}):f.jsx("div",{className:C,style:{width:t+"px",height:t+"px"},children:f.jsx("svg",{ref:i,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:f.jsx("use",{xlinkHref:`${a}/apps.svg#${S}`})})})});P0.displayName="AppIcon";const xc=P0,j0=b.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:i,className:s,...o},a)=>{const[l]=Ya(),u=i||`${l}/avatar/no-avatar.svg`,y=K("avatar",{...{"avatar-xs":t==="xs","avatar-sm":t==="sm","avatar-md":t==="md","avatar-lg":t==="lg","avatar-xl":t==="xl"},...{square:e==="square",rounded:e==="rounded","rounded-circle":e==="circle"}},s);return f.jsx("div",{ref:a,className:y,children:f.jsx(R0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});j0.displayName="Avatar";const wp=j0,N0=b.forwardRef(({children:e,className:t,...n},r)=>{const i=K("breadcrumb-item",t);return f.jsx("li",{ref:r,className:i,...n,children:e})});N0.displayName="BreadcrumbItem";const Yl=N0,T0=b.forwardRef(({children:e,className:t},n)=>{const r=K("breadcrumb d-flex align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});T0.displayName="BreadcrumbList";const U3=T0,_0=b.forwardRef(({children:e,app:t,className:n},r)=>{const{t:i}=xe(),{getIconClass:s}=v0(),o=K("d-flex align-items-center mb-0",s(t),n),a={"--edifice-breadcrumb-divider":"-"};return f.jsx("nav",{ref:r,className:o,"aria-label":i("breadcrumb"),style:a,children:e})});_0.displayName="BreadcrumbNav";const V3=_0,I0=b.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:i="left",children:s,...o}=e,a=()=>{let u;return r?u=r:u=f.jsx(k3,{...o,"aria-label":"Loading"}),u},l=K("loading",{"is-loading":n});return f.jsxs("div",{className:l,role:"status",ref:t,children:[(!i||i==="left")&&a(),s,i==="right"&&a()]})});I0.displayName="Loading";const H3=I0,A0=b.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:i,loadingIcon:s,loadingPosition:o,leftIcon:a,rightIcon:l,className:u,variant:c="filled",...d},h)=>{const g=K("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":i,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return f.jsx("button",{ref:h,className:g,type:t,...d,children:i?f.jsx(H3,{isLoading:!0,loadingIcon:s,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});A0.displayName="Button";const ni=A0,L0=b.forwardRef(({icon:e,className:t,...n},r)=>{const i={...n,className:K("btn-icon",t)};return f.jsx(ni,{ref:r,...i,children:e})});L0.displayName="IconButton";const zd=L0,M0=b.forwardRef(({app:e,name:t},n)=>{const{t:r}=xe();return f.jsx(V3,{app:e,ref:n,children:f.jsx(U3,{className:"gap-12",children:t?f.jsxs(f.Fragment,{children:[f.jsx(Yl,{children:f.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[f.jsx(zd,{variant:"ghost",color:"tertiary",icon:f.jsx(T3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(xc,{app:e,size:"40"})]})}),f.jsx(Yl,{className:"h3","aria-current":"page",children:f.jsx("h1",{className:"h3",children:t})})]}):f.jsxs(Yl,{className:"gap-12 d-flex align-items-center",children:[f.jsx(xc,{app:e,size:"40"}),f.jsx("h1",{className:"h3",children:r(e==null?void 0:e.displayName)})]})})})});M0.displayName="Breadcrumb";const q3=M0,D0=b.forwardRef(({icon:e=f.jsx(D3,{}),onClick:t,...n},r)=>{const i=K("btn-search btn-sm");return f.jsx(zd,{ref:r,className:i,icon:e,...n,onClick:t})});D0.displayName="SearchButton";const F0=D0,Q3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),W3=Q3,K3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),xp=K3,Z3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),X3=Z3,G3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),Sp=G3,Y3=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),J3=Y3,e5=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),bp=e5,t5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),n5=t5,r5=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),i5=r5,s5=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),o5=s5,a5=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:f.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"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"one-profile_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),l5=a5,u5=({title:e,titleId:t,...n})=>f.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":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),c5=u5,d5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.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"})]}),f5=d5;var Ep=function(t){return t.reduce(function(n,r){var i=r[0],s=r[1];return n[i]=s,n},{})},Cp=typeof window<"u"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,Ze="top",wt="bottom",xt="right",Xe="left",Bd="auto",Ds=[Ze,wt,xt,Xe],Wr="start",ms="end",h5="clippingParents",$0="viewport",vi="popper",p5="reference",kp=Ds.reduce(function(e,t){return e.concat([t+"-"+Wr,t+"-"+ms])},[]),z0=[].concat(Ds,[Bd]).reduce(function(e,t){return e.concat([t,t+"-"+Wr,t+"-"+ms])},[]),m5="beforeRead",g5="read",v5="afterRead",y5="beforeMain",w5="main",x5="afterMain",S5="beforeWrite",b5="write",E5="afterWrite",C5=[m5,g5,v5,y5,w5,x5,S5,b5,E5];function qt(e){return e?(e.nodeName||"").toLowerCase():null}function st(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ar(e){var t=st(e).Element;return e instanceof t||e instanceof Element}function gt(e){var t=st(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ud(e){if(typeof ShadowRoot>"u")return!1;var t=st(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function k5(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!gt(s)||!qt(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function O5(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(l,u){return l[u]="",l},{});!gt(i)||!qt(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const R5={name:"applyStyles",enabled:!0,phase:"write",fn:k5,effect:O5,requires:["computeStyles"]};function Ht(e){return e.split("-")[0]}var tr=Math.max,Oa=Math.min,Kr=Math.round;function Sc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function B0(){return!/^((?!chrome|android).)*safari/i.test(Sc())}function Zr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&gt(e)&&(i=e.offsetWidth>0&&Kr(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Kr(r.height)/e.offsetHeight||1);var o=ar(e)?st(e):window,a=o.visualViewport,l=!B0()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/i,c=(r.top+(l&&a?a.offsetTop:0))/s,d=r.width/i,h=r.height/s;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u,x:u,y:c}}function Vd(e){var t=Zr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function U0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ud(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function un(e){return st(e).getComputedStyle(e)}function P5(e){return["table","td","th"].indexOf(qt(e))>=0}function zn(e){return((ar(e)?e.ownerDocument:e.document)||window.document).documentElement}function el(e){return qt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ud(e)?e.host:null)||zn(e)}function Op(e){return!gt(e)||un(e).position==="fixed"?null:e.offsetParent}function j5(e){var t=/firefox/i.test(Sc()),n=/Trident/i.test(Sc());if(n&&gt(e)){var r=un(e);if(r.position==="fixed")return null}var i=el(e);for(Ud(i)&&(i=i.host);gt(i)&&["html","body"].indexOf(qt(i))<0;){var s=un(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Fs(e){for(var t=st(e),n=Op(e);n&&P5(n)&&un(n).position==="static";)n=Op(n);return n&&(qt(n)==="html"||qt(n)==="body"&&un(n).position==="static")?t:n||j5(e)||t}function Hd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zi(e,t,n){return tr(e,Oa(t,n))}function N5(e,t,n){var r=zi(e,t,n);return r>n?n:r}function V0(){return{top:0,right:0,bottom:0,left:0}}function H0(e){return Object.assign({},V0(),e)}function q0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var T5=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,H0(typeof t!="number"?t:q0(t,Ds))};function _5(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Ht(n.placement),l=Hd(a),u=[Xe,xt].indexOf(a)>=0,c=u?"height":"width";if(!(!s||!o)){var d=T5(i.padding,n),h=Vd(s),g=l==="y"?Ze:Xe,p=l==="y"?wt:xt,y=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],x=o[l]-n.rects.reference[l],m=Fs(s),v=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,w=y/2-x/2,S=d[g],C=v-h[c]-d[p],k=v/2-h[c]/2+w,O=zi(S,k,C),R=l;n.modifiersData[r]=(t={},t[R]=O,t.centerOffset=O-k,t)}}function I5(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||U0(t.elements.popper,i)&&(t.elements.arrow=i))}const A5={name:"arrow",enabled:!0,phase:"main",fn:_5,effect:I5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xr(e){return e.split("-")[1]}var L5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function M5(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Kr(n*i)/i||0,y:Kr(r*i)/i||0}}function Rp(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,h=o.x,g=h===void 0?0:h,p=o.y,y=p===void 0?0:p,x=typeof c=="function"?c({x:g,y}):{x:g,y};g=x.x,y=x.y;var m=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),w=Xe,S=Ze,C=window;if(u){var k=Fs(n),O="clientHeight",R="clientWidth";if(k===st(n)&&(k=zn(n),un(k).position!=="static"&&a==="absolute"&&(O="scrollHeight",R="scrollWidth")),k=k,i===Ze||(i===Xe||i===xt)&&s===ms){S=wt;var I=d&&k===C&&C.visualViewport?C.visualViewport.height:k[O];y-=I-r.height,y*=l?1:-1}if(i===Xe||(i===Ze||i===wt)&&s===ms){w=xt;var A=d&&k===C&&C.visualViewport?C.visualViewport.width:k[R];g-=A-r.width,g*=l?1:-1}}var M=Object.assign({position:a},u&&L5),z=c===!0?M5({x:g,y},st(n)):{x:g,y};if(g=z.x,y=z.y,l){var B;return Object.assign({},M,(B={},B[S]=v?"0":"",B[w]=m?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",B))}return Object.assign({},M,(t={},t[S]=v?y+"px":"",t[w]=m?g+"px":"",t.transform="",t))}function D5(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:Ht(t.placement),variation:Xr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const F5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:D5,data:{}};var mo={passive:!0};function $5(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=st(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",n.update,mo)}),a&&l.addEventListener("resize",n.update,mo),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",n.update,mo)}),a&&l.removeEventListener("resize",n.update,mo)}}const z5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$5,data:{}};var B5={left:"right",right:"left",bottom:"top",top:"bottom"};function zo(e){return e.replace(/left|right|bottom|top/g,function(t){return B5[t]})}var U5={start:"end",end:"start"};function Pp(e){return e.replace(/start|end/g,function(t){return U5[t]})}function qd(e){var t=st(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Qd(e){return Zr(zn(e)).left+qd(e).scrollLeft}function V5(e,t){var n=st(e),r=zn(e),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var u=B0();(u||!u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+Qd(e),y:l}}function H5(e){var t,n=zn(e),r=qd(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=tr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=tr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Qd(e),l=-r.scrollTop;return un(i||n).direction==="rtl"&&(a+=tr(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function Wd(e){var t=un(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Q0(e){return["html","body","#document"].indexOf(qt(e))>=0?e.ownerDocument.body:gt(e)&&Wd(e)?e:Q0(el(e))}function Bi(e,t){var n;t===void 0&&(t=[]);var r=Q0(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=st(r),o=i?[s].concat(s.visualViewport||[],Wd(r)?r:[]):r,a=t.concat(o);return i?a:a.concat(Bi(el(o)))}function bc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q5(e,t){var n=Zr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jp(e,t,n){return t===$0?bc(V5(e,n)):ar(t)?q5(t,n):bc(H5(zn(e)))}function Q5(e){var t=Bi(el(e)),n=["absolute","fixed"].indexOf(un(e).position)>=0,r=n&&gt(e)?Fs(e):e;return ar(r)?t.filter(function(i){return ar(i)&&U0(i,r)&&qt(i)!=="body"}):[]}function W5(e,t,n,r){var i=t==="clippingParents"?Q5(e):[].concat(t),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(l,u){var c=jp(e,u,r);return l.top=tr(c.top,l.top),l.right=Oa(c.right,l.right),l.bottom=Oa(c.bottom,l.bottom),l.left=tr(c.left,l.left),l},jp(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function W0(e){var t=e.reference,n=e.element,r=e.placement,i=r?Ht(r):null,s=r?Xr(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case Ze:l={x:o,y:t.y-n.height};break;case wt:l={x:o,y:t.y+t.height};break;case xt:l={x:t.x+t.width,y:a};break;case Xe:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=i?Hd(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case Wr:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ms:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function gs(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,o=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?h5:a,u=n.rootBoundary,c=u===void 0?$0:u,d=n.elementContext,h=d===void 0?vi:d,g=n.altBoundary,p=g===void 0?!1:g,y=n.padding,x=y===void 0?0:y,m=H0(typeof x!="number"?x:q0(x,Ds)),v=h===vi?p5:vi,w=e.rects.popper,S=e.elements[p?v:h],C=W5(ar(S)?S:S.contextElement||zn(e.elements.popper),l,c,o),k=Zr(e.elements.reference),O=W0({reference:k,element:w,strategy:"absolute",placement:i}),R=bc(Object.assign({},w,O)),I=h===vi?R:k,A={top:C.top-I.top+m.top,bottom:I.bottom-C.bottom+m.bottom,left:C.left-I.left+m.left,right:I.right-C.right+m.right},M=e.modifiersData.offset;if(h===vi&&M){var z=M[i];Object.keys(A).forEach(function(B){var E=[xt,wt].indexOf(B)>=0?1:-1,P=[Ze,wt].indexOf(B)>=0?"y":"x";A[B]+=z[P]*E})}return A}function K5(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?z0:l,c=Xr(r),d=c?a?kp:kp.filter(function(p){return Xr(p)===c}):Ds,h=d.filter(function(p){return u.indexOf(p)>=0});h.length===0&&(h=d);var g=h.reduce(function(p,y){return p[y]=gs(e,{placement:y,boundary:i,rootBoundary:s,padding:o})[Ht(y)],p},{});return Object.keys(g).sort(function(p,y){return g[p]-g[y]})}function Z5(e){if(Ht(e)===Bd)return[];var t=zo(e);return[Pp(e),t,Pp(t)]}function X5(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=g===void 0?!0:g,y=n.allowedAutoPlacements,x=t.options.placement,m=Ht(x),v=m===x,w=l||(v||!p?[zo(x)]:Z5(x)),S=[x].concat(w).reduce(function(he,J){return he.concat(Ht(J)===Bd?K5(t,{placement:J,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:y}):J)},[]),C=t.rects.reference,k=t.rects.popper,O=new Map,R=!0,I=S[0],A=0;A<S.length;A++){var M=S[A],z=Ht(M),B=Xr(M)===Wr,E=[Ze,wt].indexOf(z)>=0,P=E?"width":"height",L=gs(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),F=E?B?xt:Xe:B?wt:Ze;C[P]>k[P]&&(F=zo(F));var j=zo(F),N=[];if(s&&N.push(L[z]<=0),a&&N.push(L[F]<=0,L[j]<=0),N.every(function(he){return he})){I=M,R=!1;break}O.set(M,N)}if(R)for(var $=p?3:1,W=function(J){var Z=S.find(function(ie){var ge=O.get(ie);if(ge)return ge.slice(0,J).every(function(Fe){return Fe})});if(Z)return I=Z,"break"},H=$;H>0;H--){var Ye=W(H);if(Ye==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const G5={name:"flip",enabled:!0,phase:"main",fn:X5,requiresIfExists:["offset"],data:{_skip:!1}};function Np(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Tp(e){return[Ze,xt,wt,Xe].some(function(t){return e[t]>=0})}function Y5(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=gs(t,{elementContext:"reference"}),a=gs(t,{altBoundary:!0}),l=Np(o,r),u=Np(a,i,s),c=Tp(l),d=Tp(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const J5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Y5};function eb(e,t,n){var r=Ht(e),i=[Xe,Ze].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[Xe,xt].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function tb(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=z0.reduce(function(c,d){return c[d]=eb(d,t.rects,s),c},{}),a=o[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const nb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tb};function rb(e){var t=e.state,n=e.name;t.modifiersData[n]=W0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ib={name:"popperOffsets",enabled:!0,phase:"read",fn:rb,data:{}};function sb(e){return e==="x"?"y":"x"}function ob(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,g=h===void 0?!0:h,p=n.tetherOffset,y=p===void 0?0:p,x=gs(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=Ht(t.placement),v=Xr(t.placement),w=!v,S=Hd(m),C=sb(S),k=t.modifiersData.popperOffsets,O=t.rects.reference,R=t.rects.popper,I=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(s){var B,E=S==="y"?Ze:Xe,P=S==="y"?wt:xt,L=S==="y"?"height":"width",F=k[S],j=F+x[E],N=F-x[P],$=g?-R[L]/2:0,W=v===Wr?O[L]:R[L],H=v===Wr?-R[L]:-O[L],Ye=t.elements.arrow,he=g&&Ye?Vd(Ye):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:V0(),Z=J[E],ie=J[P],ge=zi(0,O[L],he[L]),Fe=w?O[L]/2-$-ge-Z-A.mainAxis:W-ge-Z-A.mainAxis,Mt=w?-O[L]/2+$+ge+ie+A.mainAxis:H+ge+ie+A.mainAxis,bl=t.elements.arrow&&Fs(t.elements.arrow),Ay=bl?S==="y"?bl.clientTop||0:bl.clientLeft||0:0,kf=(B=M==null?void 0:M[S])!=null?B:0,Ly=F+Fe-kf-Ay,My=F+Mt-kf,Of=zi(g?Oa(j,Ly):j,F,g?tr(N,My):N);k[S]=Of,z[S]=Of-F}if(a){var Rf,Dy=S==="x"?Ze:Xe,Fy=S==="x"?wt:xt,Hn=k[C],Ws=C==="y"?"height":"width",Pf=Hn+x[Dy],jf=Hn-x[Fy],El=[Ze,Xe].indexOf(m)!==-1,Nf=(Rf=M==null?void 0:M[C])!=null?Rf:0,Tf=El?Pf:Hn-O[Ws]-R[Ws]-Nf+A.altAxis,_f=El?Hn+O[Ws]+R[Ws]-Nf-A.altAxis:jf,If=g&&El?N5(Tf,Hn,_f):zi(g?Tf:Pf,Hn,g?_f:jf);k[C]=If,z[C]=If-Hn}t.modifiersData[r]=z}}const ab={name:"preventOverflow",enabled:!0,phase:"main",fn:ob,requiresIfExists:["offset"]};function lb(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ub(e){return e===st(e)||!gt(e)?qd(e):lb(e)}function cb(e){var t=e.getBoundingClientRect(),n=Kr(t.width)/e.offsetWidth||1,r=Kr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function db(e,t,n){n===void 0&&(n=!1);var r=gt(t),i=gt(t)&&cb(t),s=zn(t),o=Zr(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((qt(t)!=="body"||Wd(s))&&(a=ub(t)),gt(t)?(l=Zr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Qd(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function fb(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function hb(e){var t=fb(e);return C5.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function pb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mb(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _p={placement:"bottom",modifiers:[],strategy:"absolute"};function Ip(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function gb(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?_p:i;return function(a,l,u){u===void 0&&(u=s);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},_p,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],h=!1,g={state:c,setOptions:function(m){var v=typeof m=="function"?m(c.options):m;y(),c.options=Object.assign({},s,c.options,v),c.scrollParents={reference:ar(a)?Bi(a):a.contextElement?Bi(a.contextElement):[],popper:Bi(l)};var w=hb(mb([].concat(r,c.options.modifiers)));return c.orderedModifiers=w.filter(function(S){return S.enabled}),p(),g.update()},forceUpdate:function(){if(!h){var m=c.elements,v=m.reference,w=m.popper;if(Ip(v,w)){c.rects={reference:db(v,Fs(w),c.options.strategy==="fixed"),popper:Vd(w)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(A){return c.modifiersData[A.name]=Object.assign({},A.data)});for(var S=0;S<c.orderedModifiers.length;S++){if(c.reset===!0){c.reset=!1,S=-1;continue}var C=c.orderedModifiers[S],k=C.fn,O=C.options,R=O===void 0?{}:O,I=C.name;typeof k=="function"&&(c=k({state:c,options:R,name:I,instance:g})||c)}}}},update:pb(function(){return new Promise(function(x){g.forceUpdate(),x(c)})}),destroy:function(){y(),h=!0}};if(!Ip(a,l))return g;g.setOptions(u).then(function(x){!h&&u.onFirstUpdate&&u.onFirstUpdate(x)});function p(){c.orderedModifiers.forEach(function(x){var m=x.name,v=x.options,w=v===void 0?{}:v,S=x.effect;if(typeof S=="function"){var C=S({state:c,name:m,instance:g,options:w}),k=function(){};d.push(C||k)}})}function y(){d.forEach(function(x){return x()}),d=[]}return g}}var vb=[z5,ib,F5,R5,nb,G5,ab,A5,J5],yb=gb({defaultModifiers:vb}),wb=typeof Element<"u",xb=typeof Map=="function",Sb=typeof Set=="function",bb=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Bo(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Bo(e[r],t[r]))return!1;return!0}var s;if(xb&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!Bo(r.value[1],t.get(r.value[0])))return!1;return!0}if(Sb&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(bb&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(wb&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Bo(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Eb=function(t,n){try{return Bo(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return!1;throw r}};const Cb=Ps(Eb);var kb=[],Ob=function(t,n,r){r===void 0&&(r={});var i=b.useRef(null),s={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||kb},o=b.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=o[0],l=o[1],u=b.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(g){var p=g.state,y=Object.keys(p.elements);Ls.flushSync(function(){l({styles:Ep(y.map(function(x){return[x,p.styles[x]||{}]})),attributes:Ep(y.map(function(x){return[x,p.attributes[x]]}))})})},requires:["computeStyles"]}},[]),c=b.useMemo(function(){var h={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Cb(i.current,h)?i.current||h:(i.current=h,h)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,u]),d=b.useRef();return Cp(function(){d.current&&d.current.setOptions(c)},[c]),Cp(function(){if(!(t==null||n==null)){var h=r.createPopper||yb,g=h(t,n,c);return d.current=g,function(){g.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:a.styles,attributes:a.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},Rb=Object.defineProperty,Pb=(e,t)=>{for(var n in t)Rb(e,n,{get:t[n],enumerable:!0})},It={};Pb(It,{assign:()=>Tb,colors:()=>In,createStringInterpolator:()=>ef,skipAnimation:()=>ev,to:()=>J0,willAdvance:()=>tf});var Kd=zs(),V=e=>$s(e,Kd),Zd=zs();V.write=e=>$s(e,Zd);var tl=zs();V.onStart=e=>$s(e,tl);var Xd=zs();V.onFrame=e=>$s(e,Xd);var Gd=zs();V.onFinish=e=>$s(e,Gd);var Dr=[];V.setTimeout=(e,t)=>{const n=V.now()+t,r=()=>{const s=Dr.findIndex(o=>o.cancel==r);~s&&Dr.splice(s,1),En-=~s?1:0},i={time:n,handler:e,cancel:r};return Dr.splice(K0(n),0,i),En+=1,Z0(),i};var K0=e=>~(~Dr.findIndex(t=>t.time>e)||~Dr.length);V.cancel=e=>{tl.delete(e),Xd.delete(e),Gd.delete(e),Kd.delete(e),Zd.delete(e)};V.sync=e=>{Ec=!0,V.batchedUpdates(e),Ec=!1};V.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,V.onStart(n)}return r.handler=e,r.cancel=()=>{tl.delete(n),t=null},r};var Yd=typeof window<"u"?window.requestAnimationFrame:()=>{};V.use=e=>Yd=e;V.now=typeof performance<"u"?()=>performance.now():Date.now;V.batchedUpdates=e=>e();V.catch=console.error;V.frameLoop="always";V.advance=()=>{V.frameLoop!=="demand"||G0()};var bn=-1,En=0,Ec=!1;function $s(e,t){Ec?(t.delete(e),e(0)):(t.add(e),Z0())}function Z0(){bn<0&&(bn=0,V.frameLoop!=="demand"&&Yd(X0))}function jb(){bn=-1}function X0(){~bn&&(Yd(X0),V.batchedUpdates(G0))}function G0(){const e=bn;bn=V.now();const t=K0(bn);if(t&&(Y0(Dr.splice(0,t),n=>n.handler()),En-=t),!En){jb();return}tl.flush(),Kd.flush(e?Math.min(64,bn-e):16.667),Xd.flush(),Zd.flush(),Gd.flush()}function zs(){let e=new Set,t=e;return{add(n){En+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return En-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,En-=t.size,Y0(t,r=>r(n)&&e.add(r)),En+=e.size,t=e)}}}function Y0(e,t){e.forEach(n=>{try{t(n)}catch(r){V.catch(r)}})}function Cc(){}var Nb=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),T={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 Gt(e,t){if(T.arr(e)){if(!T.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var U=(e,t)=>e.forEach(t);function Qt(e,t,n){if(T.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var _e=e=>T.und(e)?[]:T.arr(e)?e:[e];function Ui(e,t){if(e.size){const n=Array.from(e);e.clear(),U(n,t)}}var Ri=(e,...t)=>Ui(e,n=>n(...t)),Jd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ef,J0,In=null,ev=!1,tf=Cc,Tb=e=>{e.to&&(J0=e.to),e.now&&(V.now=e.now),e.colors!==void 0&&(In=e.colors),e.skipAnimation!=null&&(ev=e.skipAnimation),e.createStringInterpolator&&(ef=e.createStringInterpolator),e.requestAnimationFrame&&V.use(e.requestAnimationFrame),e.batchedUpdates&&(V.batchedUpdates=e.batchedUpdates),e.willAdvance&&(tf=e.willAdvance),e.frameLoop&&(V.frameLoop=e.frameLoop)},Vi=new Set,ht=[],Jl=[],Ra=0,nl={get idle(){return!Vi.size&&!ht.length},start(e){Ra>e.priority?(Vi.add(e),V.onStart(_b)):(tv(e),V(kc))},advance:kc,sort(e){if(Ra)V.onFrame(()=>nl.sort(e));else{const t=ht.indexOf(e);~t&&(ht.splice(t,1),nv(e))}},clear(){ht=[],Vi.clear()}};function _b(){Vi.forEach(tv),Vi.clear(),V(kc)}function tv(e){ht.includes(e)||nv(e)}function nv(e){ht.splice(Ib(ht,t=>t.priority>e.priority),0,e)}function kc(e){const t=Jl;for(let n=0;n<ht.length;n++){const r=ht[n];Ra=r.priority,r.idle||(tf(r),r.advance(e),r.idle||t.push(r))}return Ra=0,Jl=ht,Jl.length=0,ht=t,ht.length>0}function Ib(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Ab=(e,t,n)=>Math.min(Math.max(n,e),t),Lb={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},jt="[-+]?\\d*\\.?\\d+",Pa=jt+"%";function rl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Mb=new RegExp("rgb"+rl(jt,jt,jt)),Db=new RegExp("rgba"+rl(jt,jt,jt,jt)),Fb=new RegExp("hsl"+rl(jt,Pa,Pa)),$b=new RegExp("hsla"+rl(jt,Pa,Pa,jt)),zb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Bb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ub=/^#([0-9a-fA-F]{6})$/,Vb=/^#([0-9a-fA-F]{8})$/;function Hb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ub.exec(e))?parseInt(t[1]+"ff",16)>>>0:In&&In[e]!==void 0?In[e]:(t=Mb.exec(e))?(gr(t[1])<<24|gr(t[2])<<16|gr(t[3])<<8|255)>>>0:(t=Db.exec(e))?(gr(t[1])<<24|gr(t[2])<<16|gr(t[3])<<8|Mp(t[4]))>>>0:(t=zb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Vb.exec(e))?parseInt(t[1],16)>>>0:(t=Bb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Fb.exec(e))?(Ap(Lp(t[1]),go(t[2]),go(t[3]))|255)>>>0:(t=$b.exec(e))?(Ap(Lp(t[1]),go(t[2]),go(t[3]))|Mp(t[4]))>>>0:null}function eu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ap(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,s=eu(i,r,e+1/3),o=eu(i,r,e),a=eu(i,r,e-1/3);return Math.round(s*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function gr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Lp(e){return(parseFloat(e)%360+360)%360/360}function Mp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function go(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dp(e){let t=Hb(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${s})`}var vs=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return vs({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return ef(e);const r=e,i=r.output,s=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=Qb(u,s);return qb(u,s[c],s[c+1],i[c],i[c+1],l,o,a,r.map)}};function qb(e,t,n,r,i,s,o,a,l){let u=l?l(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function Qb(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var Wb=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return Ab(0,1,i/e)},ja=1.70158,vo=ja*1.525,Fp=ja+1,$p=2*Math.PI/3,zp=2*Math.PI/4.5,yo=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,Kb={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=>Fp*e*e*e-ja*e*e,easeOutBack:e=>1+Fp*Math.pow(e-1,3)+ja*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((vo+1)*2*e-vo)/2:(Math.pow(2*e-2,2)*((vo+1)*(e*2-2)+vo)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*$p),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*$p)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*zp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*zp)/2+1,easeInBounce:e=>1-yo(1-e),easeOutBounce:yo,easeInOutBounce:e=>e<.5?(1-yo(1-2*e))/2:(1+yo(2*e-1))/2,steps:Wb},ys=Symbol.for("FluidValue.get"),Gr=Symbol.for("FluidValue.observers"),ft=e=>!!(e&&e[ys]),ze=e=>e&&e[ys]?e[ys]():e,Bp=e=>e[Gr]||null;function Zb(e,t){e.eventObserved?e.eventObserved(t):e(t)}function ws(e,t){const n=e[Gr];n&&n.forEach(r=>{Zb(r,t)})}var rv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Xb(this,e)}},Xb=(e,t)=>iv(e,ys,t);function ri(e,t){if(e[ys]){let n=e[Gr];n||iv(e,Gr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function xs(e,t){const n=e[Gr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Gr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var iv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Uo=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Gb=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Up=new RegExp(`(${Uo.source})(%|[a-z]+)`,"i"),Yb=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,il=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,sv=e=>{const[t,n]=Jb(e);if(!t||Jd())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&il.test(n))return sv(n);if(n)return n}return e},Jb=e=>{const t=il.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},tu,eE=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,ov=e=>{tu||(tu=In?new RegExp(`(${Object.keys(In).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>ze(s).replace(il,sv).replace(Gb,Dp).replace(tu,Dp)),n=t.map(s=>s.match(Uo).map(Number)),i=n[0].map((s,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(s=>vs({...e,output:s}));return s=>{var l;const o=!Up.test(t[0])&&((l=t.find(u=>Up.test(u)))==null?void 0:l.replace(Uo,""));let a=0;return t[0].replace(Uo,()=>`${i[a++](s)}${o||""}`).replace(Yb,eE)}},nf="react-spring: ",av=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${nf}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},tE=av(console.warn);function nE(){tE(`${nf}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var rE=av(console.warn);function iE(){rE(`${nf}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 sl(e){return T.str(e)&&(e[0]=="#"||/\d/.test(e)||!Jd()&&il.test(e)||e in(In||{}))}var Yn=Jd()?b.useEffect:b.useLayoutEffect,sE=()=>{const e=b.useRef(!1);return Yn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function rf(){const e=b.useState()[1],t=sE();return()=>{t.current&&e(Math.random())}}function oE(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),i=r.current;let s=i;return s?t&&s.inputs&&aE(t,s.inputs)||(s={inputs:t,result:e()}):s=n,b.useEffect(()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)},[s]),s.result}function aE(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var sf=e=>b.useEffect(e,lE),lE=[];function Oc(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var Ss=Symbol.for("Animated:node"),uE=e=>!!e&&e[Ss]===e,$t=e=>e&&e[Ss],of=(e,t)=>Nb(e,Ss,t),ol=e=>e&&e[Ss]&&e[Ss].getPayload(),lv=class{constructor(){of(this,this)}getPayload(){return this.payload||[]}},Bs=class extends lv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,T.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Bs(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return T.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,T.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},bs=class extends Bs{constructor(e){super(0),this._string=null,this._toString=vs({output:[e,e]})}static create(e){return new bs(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(T.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=vs({output:[this.getValue(),e]})),this._value=0,super.reset()}},Na={dependencies:null},al=class extends lv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Qt(this.source,(n,r)=>{uE(n)?t[r]=n.getValue(e):ft(n)?t[r]=ze(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&U(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Qt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Na.dependencies&&ft(e)&&Na.dependencies.add(e);const t=ol(e);t&&U(t,n=>this.add(n))}},uv=class extends al{constructor(e){super(e)}static create(e){return new uv(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(cE)),!0)}};function cE(e){return(sl(e)?bs:Bs).create(e)}function Rc(e){const t=$t(e);return t?t.constructor:T.arr(e)?uv:sl(e)?bs:Bs}var Vp=(e,t)=>{const n=!T.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,i)=>{const s=b.useRef(null),o=n&&b.useCallback(p=>{s.current=hE(i,p)},[i]),[a,l]=fE(r,t),u=rf(),c=()=>{const p=s.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,a.getValue(!0)):!1)===!1&&u()},d=new dE(c,l),h=b.useRef();Yn(()=>(h.current=d,U(l,p=>ri(p,d)),()=>{h.current&&(U(h.current.deps,p=>xs(p,h.current)),V.cancel(h.current.update))})),b.useEffect(c,[]),sf(()=>()=>{const p=h.current;U(p.deps,y=>xs(y,p))});const g=t.getComponentProps(a.getValue());return b.createElement(e,{...g,ref:o})})},dE=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&V.write(this.update)}};function fE(e,t){const n=new Set;return Na.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new al(e),Na.dependencies=null,[e,n]}function hE(e,t){return e&&(T.fun(e)?e(t):e.current=t),t}var Hp=Symbol.for("AnimatedComponent"),pE=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new al(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=o=>{const a=qp(o)||"Anonymous";return T.str(o)?o=s[o]||(s[o]=Vp(o,i)):o=o[Hp]||(o[Hp]=Vp(o,i)),o.displayName=`Animated(${a})`,o};return Qt(e,(o,a)=>{T.arr(e)&&(a=qp(o)),s[a]=s(o)}),{animated:s}},qp=e=>T.str(e)?e:e&&T.str(e.displayName)?e.displayName:T.fun(e)&&e.name||null;function Be(e,...t){return T.fun(e)?e(...t):e}var Hi=(e,t)=>e===!0||!!(t&&e&&(T.fun(e)?e(t):_e(e).includes(t))),cv=(e,t)=>T.obj(e)?t&&e[t]:e,dv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,mE=e=>e,ll=(e,t=mE)=>{let n=gE;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const s=t(e[i],i);T.und(s)||(r[i]=s)}return r},gE=["config","onProps","onStart","onChange","onPause","onResume","onRest"],vE={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 yE(e){const t={};let n=0;if(Qt(e,(r,i)=>{vE[i]||(t[i]=r,n++)}),n)return t}function af(e){const t=yE(e);if(t){const n={to:t};return Qt(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Es(e){return e=ze(e),T.arr(e)?e.map(Es):sl(e)?It.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function fv(e){for(const t in e)return!0;return!1}function Pc(e){return T.fun(e)||T.arr(e)&&T.obj(e[0])}function jc(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function hv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var wE={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}},Nc={...wE.default,mass:1,damping:1,easing:Kb.linear,clamp:!1},xE=class{constructor(){this.velocity=0,Object.assign(this,Nc)}};function SE(e,t,n){n&&(n={...n},Qp(n,t),t={...n,...t}),Qp(e,t),Object.assign(e,t);for(const o in Nc)e[o]==null&&(e[o]=Nc[o]);let{frequency:r,damping:i}=e;const{mass:s}=e;return T.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*s,e.friction=4*Math.PI*i*s/r),e}function Qp(e,t){if(!T.und(t.decay))e.duration=void 0;else{const n=!T.und(t.tension)||!T.und(t.friction);(n||!T.und(t.frequency)||!T.und(t.damping)||!T.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Wp=[],bE=class{constructor(){this.changed=!1,this.values=Wp,this.toValues=null,this.fromValues=Wp,this.config=new xE,this.immediate=!1}};function pv(e,{key:t,props:n,defaultProps:r,state:i,actions:s}){return new Promise((o,a)=>{let l,u,c=Hi(n.cancel??(r==null?void 0:r.cancel),t);if(c)g();else{T.und(n.pause)||(i.paused=Hi(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||Hi(p,t)),l=Be(n.delay||0,t),p?(i.resumeQueue.add(h),s.pause()):(s.resume(),h())}function d(){i.resumeQueue.add(h),i.timeouts.delete(u),u.cancel(),l=u.time-V.now()}function h(){l>0&&!It.skipAnimation?(i.delayed=!0,u=V.setTimeout(g,l),i.pauseQueue.add(d),i.timeouts.add(u)):g()}function g(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{s.start({...n,callId:e,cancel:c},o)}catch(p){a(p)}}})}var lf=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Fr(e.get()):t.every(n=>n.noop)?mv(e.get()):Pt(e.get(),t.every(n=>n.finished)),mv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Pt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Fr=e=>({value:e,cancelled:!0,finished:!1});function gv(e,t,n,r){const{callId:i,parentId:s,onRest:o}=t,{asyncTo:a,promise:l}=n;return!s&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=ll(t,(x,m)=>m==="onRest"?void 0:x);let c,d;const h=new Promise((x,m)=>(c=x,d=m)),g=x=>{const m=i<=(n.cancelId||0)&&Fr(r)||i!==n.asyncId&&Pt(r,!1);if(m)throw x.result=m,d(x),x},p=(x,m)=>{const v=new Kp,w=new Zp;return(async()=>{if(It.skipAnimation)throw Cs(n),w.result=Pt(r,!1),d(w),w;g(v);const S=T.obj(x)?{...x}:{...m,to:x};S.parentId=i,Qt(u,(k,O)=>{T.und(S[O])&&(S[O]=k)});const C=await r.start(S);return g(v),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),C})()};let y;if(It.skipAnimation)return Cs(n),Pt(r,!1);try{let x;T.arr(e)?x=(async m=>{for(const v of m)await p(v)})(e):x=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([x.then(c),h]),y=Pt(r.get(),!0,!1)}catch(x){if(x instanceof Kp)y=x.result;else if(x instanceof Zp)y=x.result;else throw x}finally{i==n.asyncId&&(n.asyncId=s,n.asyncTo=s?a:void 0,n.promise=s?l:void 0)}return T.fun(o)&&V.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function Cs(e,t){Ui(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Kp=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.")}},Zp=class extends Error{constructor(){super("SkipAnimationSignal")}},Tc=e=>e instanceof uf,EE=1,uf=class extends rv{constructor(){super(...arguments),this.id=EE++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=$t(this);return e&&e.getValue()}to(...e){return It.to(this,e)}interpolate(...e){return nE(),It.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){ws(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||nl.sort(this),ws(this,{type:"priority",parent:this,priority:e})}},lr=Symbol.for("SpringPhase"),vv=1,_c=2,Ic=4,nu=e=>(e[lr]&vv)>0,hn=e=>(e[lr]&_c)>0,yi=e=>(e[lr]&Ic)>0,Xp=(e,t)=>t?e[lr]|=_c|vv:e[lr]&=~_c,Gp=(e,t)=>t?e[lr]|=Ic:e[lr]&=~Ic,CE=class extends uf{constructor(e,t){if(super(),this.animation=new bE,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,!T.und(e)||!T.und(t)){const n=T.obj(e)?{...e}:{...t,from:e};T.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(hn(this)||this._state.asyncTo)||yi(this)}get goal(){return ze(this.animation.to)}get velocity(){const e=$t(this);return e instanceof Bs?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return nu(this)}get isAnimating(){return hn(this)}get isPaused(){return yi(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:s}=r,o=ol(r.to);!o&&ft(r.to)&&(i=_e(ze(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==bs?1:o?o[c].lastPosition:i[c];let h=r.immediate,g=d;if(!h){if(g=u.lastPosition,s.tension<=0){u.done=!0;return}let p=u.elapsedTime+=e;const y=r.fromValues[c],x=u.v0!=null?u.v0:u.v0=T.arr(s.velocity)?s.velocity[c]:s.velocity;let m;const v=s.precision||(y==d?.005:Math.min(1,Math.abs(d-y)*.001));if(T.und(s.duration))if(s.decay){const w=s.decay===!0?.998:s.decay,S=Math.exp(-(1-w)*p);g=y+x/(1-w)*(1-S),h=Math.abs(u.lastPosition-g)<=v,m=x*S}else{m=u.lastVelocity==null?x:u.lastVelocity;const w=s.restVelocity||v/10,S=s.clamp?0:s.bounce,C=!T.und(S),k=y==d?u.v0>0:y<d;let O,R=!1;const I=1,A=Math.ceil(e/I);for(let M=0;M<A&&(O=Math.abs(m)>w,!(!O&&(h=Math.abs(d-g)<=v,h)));++M){C&&(R=g==d||g>d==k,R&&(m=-m*S,g=d));const z=-s.tension*1e-6*(g-d),B=-s.friction*.001*m,E=(z+B)/s.mass;m=m+E*I,g=g+m*I}}else{let w=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,u.durationProgress>0&&(u.elapsedTime=s.duration*u.durationProgress,p=u.elapsedTime+=e)),w=(s.progress||0)+p/this._memoizedDuration,w=w>1?1:w<0?0:w,u.durationProgress=w),g=y+s.easing(w)*(d-y),m=(g-u.lastPosition)/e,h=w==1}u.lastVelocity=m,Number.isNaN(g)&&(h=!0)}o&&!o[c].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(g,s.round)&&(n=!0)});const a=$t(this),l=a.getValue();if(t){const u=ze(r.to);(l!==u||n)&&!s.decay?(a.setValue(u),this._onChange(u)):n&&s.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return V.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(hn(this)){const{to:e,config:t}=this.animation;V.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return T.und(e)?(n=this.queue||[],this.queue=[]):n=[T.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>lf(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Cs(this._state,e&&this._lastCallId),V.batchedUpdates(()=>this._stop(t,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 t=this.key||"";let{to:n,from:r}=e;n=T.obj(n)?n[t]:n,(n==null||Pc(n))&&(n=void 0),r=T.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return nu(this)||(e.reverse&&([n,r]=[r,n]),r=ze(r),T.und(r)?$t(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ll(e,(o,a)=>/^on/.test(a)?cv(o,n):o)),Jp(this,e,"onProps"),xi(this,"onProps",e,this);const i=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 s=this._state;return pv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:s,actions:{pause:()=>{yi(this)||(Gp(this,!0),Ri(s.pauseQueue),xi(this,"onPause",Pt(this,wi(this,this.animation.to)),this))},resume:()=>{yi(this)&&(Gp(this,!1),hn(this)&&this._resume(),Ri(s.resumeQueue),xi(this,"onResume",Pt(this,wi(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=yv(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Fr(this));const r=!T.und(e.to),i=!T.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Fr(this));const{key:s,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;i&&!r&&(!t.default||T.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const h=!Gt(d,u);h&&(a.from=d),d=ze(d);const g=!Gt(c,l);g&&this._focus(c);const p=Pc(t.to),{config:y}=a,{decay:x,velocity:m}=y;(r||i)&&(y.velocity=0),t.config&&!p&&SE(y,Be(t.config,s),t.config!==o.config?Be(o.config,s):void 0);let v=$t(this);if(!v||T.und(c))return n(Pt(this,!0));const w=T.und(t.reset)?i&&!t.default:!T.und(d)&&Hi(t.reset,s),S=w?d:this.get(),C=Es(c),k=T.num(C)||T.arr(C)||sl(C),O=!p&&(!k||Hi(o.immediate||t.immediate,s));if(g){const M=Rc(c);if(M!==v.constructor)if(O)v=this._set(C);else throw Error(`Cannot animate between ${v.constructor.name} and ${M.name}, as the "to" prop suggests`)}const R=v.constructor;let I=ft(c),A=!1;if(!I){const M=w||!nu(this)&&h;(g||M)&&(A=Gt(Es(S),C),I=!A),(!Gt(a.immediate,O)&&!O||!Gt(y.decay,x)||!Gt(y.velocity,m))&&(I=!0)}if(A&&hn(this)&&(a.changed&&!w?I=!0:I||this._stop(l)),!p&&((I||ft(l))&&(a.values=v.getPayload(),a.toValues=ft(c)?null:R==bs?[1]:_e(C)),a.immediate!=O&&(a.immediate=O,!O&&!w&&this._set(l)),I)){const{onRest:M}=a;U(OE,B=>Jp(this,t,B));const z=Pt(this,wi(this,l));Ri(this._pendingCalls,z),this._pendingCalls.add(n),a.changed&&V.batchedUpdates(()=>{var B;a.changed=!w,M==null||M(z,this),w?Be(o.onRest,z):(B=a.onStart)==null||B.call(a,z,this)})}w&&this._set(S),p?n(gv(t.to,t,this._state,this)):I?this._start():hn(this)&&!g?this._pendingCalls.add(n):n(mv(S))}_focus(e){const t=this.animation;e!==t.to&&(Bp(this)&&this._detach(),t.to=e,Bp(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ft(t)&&(ri(t,this),Tc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ft(e)&&xs(e,this)}_set(e,t=!0){const n=ze(e);if(!T.und(n)){const r=$t(this);if(!r||!Gt(n,r.getValue())){const i=Rc(n);!r||r.constructor!=i?of(this,i.create(n)):r.setValue(n),r&&V.batchedUpdates(()=>{this._onChange(n,t)})}}return $t(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,xi(this,"onStart",Pt(this,wi(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Be(this.animation.onChange,e,this)),Be(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;$t(this).reset(ze(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),hn(this)||(Xp(this,!0),yi(this)||this._resume())}_resume(){It.skipAnimation?this.finish():nl.start(this)}_stop(e,t){if(hn(this)){Xp(this,!1);const n=this.animation;U(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),ws(this,{type:"idle",parent:this});const r=t?Fr(this.get()):Pt(this.get(),wi(this,e??n.to));Ri(this._pendingCalls,r),n.changed&&(n.changed=!1,xi(this,"onRest",r,this))}}};function wi(e,t){const n=Es(t),r=Es(e.get());return Gt(r,n)}function yv(e,t=e.loop,n=e.to){const r=Be(t);if(r){const i=r!==!0&&af(r),s=(i||e).reverse,o=!i||i.reset;return ks({...e,loop:t,default:!1,pause:void 0,to:!s||Pc(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function ks(e){const{to:t,from:n}=e=af(e),r=new Set;return T.obj(t)&&Yp(t,r),T.obj(n)&&Yp(n,r),e.keys=r.size?Array.from(r):null,e}function kE(e){const t=ks(e);return T.und(t.default)&&(t.default=ll(t)),t}function Yp(e,t){Qt(e,(n,r)=>n!=null&&t.add(r))}var OE=["onStart","onRest","onChange","onPause","onResume"];function Jp(e,t,n){e.animation[n]=t[n]!==dv(t,n)?cv(t[n],e.key):void 0}function xi(e,t,...n){var r,i,s,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(s=e.defaultProps)[t])==null||o.call(s,...n)}var RE=["onStart","onChange","onRest"],PE=1,wv=class{constructor(e,t){this.id=PE++,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),t&&(this._flush=t),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((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];T.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ks(e)),this}start(e){let{queue:t}=this;return e?t=_e(e).map(ks):this.queue=[],this._flush?this._flush(this,t):(Cv(this,t),Ac(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;U(_e(t),r=>n[r].stop(!!e))}else Cs(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(T.und(e))this.start({pause:!0});else{const t=this.springs;U(_e(e),n=>t[n].pause())}return this}resume(e){if(T.und(e))this.start({pause:!1});else{const t=this.springs;U(_e(e),n=>t[n].resume())}return this}each(e){Qt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Ui(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const s=!r&&this._started,o=i||s&&n.size?this.get():null;i&&t.size&&Ui(t,([a,l])=>{l.value=o,a(l,this,this._item)}),s&&(this._started=!1,Ui(n,([a,l])=>{l.value=o,a(l,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;V.onFrame(this._onFrame)}};function Ac(e,t){return Promise.all(t.map(n=>xv(e,n))).then(n=>lf(e,n))}async function xv(e,t,n){const{keys:r,to:i,from:s,loop:o,onRest:a,onResolve:l}=t,u=T.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);const c=T.arr(i)||T.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):U(RE,y=>{const x=t[y];if(T.fun(x)){const m=e._events[y];t[y]=({finished:v,cancelled:w})=>{const S=m.get(x);S?(v||(S.finished=!1),w&&(S.cancelled=!0)):m.set(x,{value:null,finished:v||!1,cancelled:w||!1})},u&&(u[y]=t[y])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Ri(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),g=t.cancel===!0||dv(t,"cancel")===!0;(c||g&&d.asyncId)&&h.push(pv(++e._lastAsyncId,{props:t,state:d,actions:{pause:Cc,resume:Cc,start(y,x){g?(Cs(d,e._lastAsyncId),x(Fr(e))):(y.onRest=a,x(gv(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const p=lf(e,await Promise.all(h));if(o&&p.finished&&!(n&&p.noop)){const y=yv(t,o,i);if(y)return Cv(e,[y]),xv(e,y,!0)}return l&&V.batchedUpdates(()=>l(p,e,e.item)),p}function Lc(e,t){const n={...e.springs};return t&&U(_e(t),r=>{T.und(r.keys)&&(r=ks(r)),T.obj(r.to)||(r={...r,to:void 0}),Ev(n,r,i=>bv(i))}),Sv(e,n),n}function Sv(e,t){Qt(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ri(n,e))})}function bv(e,t){const n=new CE;return n.key=e,t&&ri(n,t),n}function Ev(e,t,n){t.keys&&U(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Cv(e,t){U(t,n=>{Ev(e.springs,n,r=>bv(r,e))})}var Us=({children:e,...t})=>{const n=b.useContext(Ta),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=oE(()=>({pause:r,immediate:i}),[r,i]);const{Provider:s}=Ta;return b.createElement(s,{value:t},e)},Ta=jE(Us,{});Us.Provider=Ta.Provider;Us.Consumer=Ta.Consumer;function jE(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var kv=()=>{const e=[],t=function(r){iE();const i=[];return U(e,(s,o)=>{if(T.und(r))i.push(s.start());else{const a=n(r,s,o);a&&i.push(s.start(a))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return U(e,r=>r.pause(...arguments)),this},t.resume=function(){return U(e,r=>r.resume(...arguments)),this},t.set=function(r){U(e,(i,s)=>{const o=T.fun(r)?r(s,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return U(e,(s,o)=>{if(T.und(r))i.push(s.start());else{const a=this._getProps(r,s,o);a&&i.push(s.start(a))}}),i},t.stop=function(){return U(e,r=>r.stop(...arguments)),this},t.update=function(r){return U(e,(i,s)=>i.update(this._getProps(r,i,s))),this};const n=function(r,i,s){return T.fun(r)?r(s,i):r};return t._getProps=n,t};function NE(e,t,n){const r=T.fun(t)&&t;r&&!n&&(n=[]);const i=b.useMemo(()=>r||arguments.length==3?kv():void 0,[]),s=b.useRef(0),o=rf(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(m,v){const w=Lc(m,v);return s.current>0&&!a.queue.length&&!Object.keys(w).some(C=>!m.springs[C])?Ac(m,v):new Promise(C=>{Sv(m,w),a.queue.push(()=>{C(Ac(m,v))}),o()})}}),[]),l=b.useRef([...a.ctrls]),u=[],c=Oc(e)||0;b.useMemo(()=>{U(l.current.slice(e,c),m=>{jc(m,i),m.stop(!0)}),l.current.length=e,d(c,e)},[e]),b.useMemo(()=>{d(0,Math.min(c,e))},n);function d(m,v){for(let w=m;w<v;w++){const S=l.current[w]||(l.current[w]=new wv(null,a.flush)),C=r?r(w,S):t[w];C&&(u[w]=kE(C))}}const h=l.current.map((m,v)=>Lc(m,u[v])),g=b.useContext(Us),p=Oc(g),y=g!==p&&fv(g);Yn(()=>{s.current++,a.ctrls=l.current;const{queue:m}=a;m.length&&(a.queue=[],U(m,v=>v())),U(l.current,(v,w)=>{i==null||i.add(v),y&&v.start({default:g});const S=u[w];S&&(hv(v,S.ref),v.ref?v.queue.push(S):v.start(S))})}),sf(()=>()=>{U(a.ctrls,m=>m.stop(!0))});const x=h.map(m=>({...m}));return i?[x,i]:x}function Ik(e,t){const n=T.fun(e),[[r],i]=NE(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}function ul(e,t,n){const r=T.fun(t)&&t,{reset:i,sort:s,trail:o=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,h=b.useMemo(()=>r||arguments.length==3?kv():void 0,[]),g=_e(e),p=[],y=b.useRef(null),x=i?null:y.current;Yn(()=>{y.current=p}),sf(()=>(U(p,E=>{h==null||h.add(E.ctrl),E.ctrl.ref=h}),()=>{U(y.current,E=>{E.expired&&clearTimeout(E.expirationId),jc(E.ctrl,h),E.ctrl.stop(!0)})}));const m=_E(g,r?r():t,x),v=i&&y.current||[];Yn(()=>U(v,({ctrl:E,item:P,key:L})=>{jc(E,h),Be(u,P,L)}));const w=[];if(x&&U(x,(E,P)=>{E.expired?(clearTimeout(E.expirationId),v.push(E)):(P=w[P]=m.indexOf(E.key),~P&&(p[P]=E))}),U(g,(E,P)=>{p[P]||(p[P]={key:m[P],item:E,phase:"mount",ctrl:new wv},p[P].ctrl.item=E)}),w.length){let E=-1;const{leave:P}=r?r():t;U(w,(L,F)=>{const j=x[F];~L?(E=p.indexOf(j),p[E]={...j,item:g[L]}):P&&p.splice(++E,0,j)})}T.fun(s)&&p.sort((E,P)=>s(E.item,P.item));let S=-o;const C=rf(),k=ll(t),O=new Map,R=b.useRef(new Map),I=b.useRef(!1);U(p,(E,P)=>{const L=E.key,F=E.phase,j=r?r():t;let N,$;const W=Be(j.delay||0,L);if(F=="mount")N=j.enter,$="enter";else{const J=m.indexOf(L)<0;if(F!="leave")if(J)N=j.leave,$="leave";else if(N=j.update)$="update";else return;else if(!J)N=j.enter,$="enter";else return}if(N=Be(N,E.item,P),N=T.obj(N)?af(N):{to:N},!N.config){const J=d||k.config;N.config=Be(J,E.item,P,$)}S+=o;const H={...k,delay:W+S,ref:c,immediate:j.immediate,reset:!1,...N};if($=="enter"&&T.und(H.from)){const J=r?r():t,Z=T.und(J.initial)||x?J.from:J.initial;H.from=Be(Z,E.item,P)}const{onResolve:Ye}=H;H.onResolve=J=>{Be(Ye,J);const Z=y.current,ie=Z.find(ge=>ge.key===L);if(ie&&!(J.cancelled&&ie.phase!="update")&&ie.ctrl.idle){const ge=Z.every(Fe=>Fe.ctrl.idle);if(ie.phase=="leave"){const Fe=Be(a,ie.item);if(Fe!==!1){const Mt=Fe===!0?0:Fe;if(ie.expired=!0,!ge&&Mt>0){Mt<=2147483647&&(ie.expirationId=setTimeout(C,Mt));return}}}ge&&Z.some(Fe=>Fe.expired)&&(R.current.delete(ie),l&&(I.current=!0),C())}};const he=Lc(E.ctrl,H);$==="leave"&&l?R.current.set(E,{phase:$,springs:he,payload:H}):O.set(E,{phase:$,springs:he,payload:H})});const A=b.useContext(Us),M=Oc(A),z=A!==M&&fv(A);Yn(()=>{z&&U(p,E=>{E.ctrl.start({default:A})})},[A]),U(O,(E,P)=>{if(R.current.size){const L=p.findIndex(F=>F.key===P.key);p.splice(L,1)}}),Yn(()=>{U(R.current.size?R.current:O,({phase:E,payload:P},L)=>{const{ctrl:F}=L;L.phase=E,h==null||h.add(F),z&&E=="enter"&&F.start({default:A}),P&&(hv(F,P.ref),(F.ref||h)&&!I.current?F.update(P):(F.start(P),I.current&&(I.current=!1)))})},i?void 0:n);const B=E=>b.createElement(b.Fragment,null,p.map((P,L)=>{const{springs:F}=O.get(P)||P.ctrl,j=E({...F},P.item,P,L);return j&&j.type?b.createElement(j.type,{...j.props,key:T.str(P.key)||T.num(P.key)?P.key:P.ctrl.id,ref:j.ref}):j}));return h?[B,h]:B}var TE=1;function _E(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(s=>{const o=r&&r.find(a=>a.item===s&&a.phase!=="leave"&&!i.has(a));return o?(i.add(o),o.key):TE++})}return T.und(n)?e:T.fun(n)?e.map(n):_e(n)}var IE=class extends uf{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=vs(...t);const n=this._get(),r=Rc(n);of(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Gt(t,n)||($t(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&em(this._active)&&ru(this)}_get(){const e=T.arr(this.source)?this.source.map(ze):_e(ze(this.source));return this.calc(...e)}_start(){this.idle&&!em(this._active)&&(this.idle=!1,U(ol(this),e=>{e.done=!1}),It.skipAnimation?(V.batchedUpdates(()=>this.advance()),ru(this)):nl.start(this))}_attach(){let e=1;U(_e(this.source),t=>{ft(t)&&ri(t,this),Tc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){U(_e(this.source),e=>{ft(e)&&xs(e,this)}),this._active.clear(),ru(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=_e(this.source).reduce((t,n)=>Math.max(t,(Tc(n)?n.priority:0)+1),0))}};function AE(e){return e.idle!==!1}function em(e){return!e.size||Array.from(e).every(AE)}function ru(e){e.idle||(e.idle=!0,U(ol(e),t=>{t.done=!0}),ws(e,{type:"idle",parent:e}))}It.assign({createStringInterpolator:ov,to:(e,t)=>new IE(e,t)});var Ov=/^--/;function LE(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Ov.test(e)&&!(qi.hasOwnProperty(e)&&qi[e])?t+"px":(""+t).trim()}var tm={};function ME(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:s,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:tm[d]||(tm[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));i!==void 0&&(e.textContent=i);for(const d in r)if(r.hasOwnProperty(d)){const h=LE(d,r[d]);Ov.test(d)?e.style.setProperty(d,h):e.style[d]=h}c.forEach((d,h)=>{e.setAttribute(d,u[h])}),s!==void 0&&(e.scrollTop=s),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var qi={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},DE=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),FE=["Webkit","Ms","Moz","O"];qi=Object.keys(qi).reduce((e,t)=>(FE.forEach(n=>e[DE(n,t)]=e[t]),e),qi);var $E=/^(matrix|translate|scale|rotate|skew)/,zE=/^(translate)/,BE=/^(rotate|skew)/,iu=(e,t)=>T.num(e)&&e!==0?e+t:e,Vo=(e,t)=>T.arr(e)?e.every(n=>Vo(n,t)):T.num(e)?e===t:parseFloat(e)===t,UE=class extends al{constructor({x:e,y:t,z:n,...r}){const i=[],s=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),s.push(o=>[`translate3d(${o.map(a=>iu(a,"px")).join(",")})`,Vo(o,0)])),Qt(r,(o,a)=>{if(a==="transform")i.push([o||""]),s.push(l=>[l,l===""]);else if($E.test(a)){if(delete r[a],T.und(o))return;const l=zE.test(a)?"px":BE.test(a)?"deg":"";i.push(_e(o)),s.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${iu(h,l)})`,Vo(h,0)]:u=>[`${a}(${u.map(c=>iu(c,l)).join(",")})`,Vo(u,a.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new VE(i,s)),super(r)}},VE=class extends rv{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return U(this.inputs,(n,r)=>{const i=ze(n[0]),[s,o]=this.transforms[r](T.arr(i)?i:n.map(ze));e+=" "+s,t=t&&o}),t?"none":e}observerAdded(e){e==1&&U(this.inputs,t=>U(t,n=>ft(n)&&ri(n,this)))}observerRemoved(e){e==0&&U(this.inputs,t=>U(t,n=>ft(n)&&xs(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),ws(this,e)}},HE=["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"];It.assign({batchedUpdates:Ls.unstable_batchedUpdates,createStringInterpolator:ov,colors:Lb});var qE=pE(HE,{applyAnimatedValues:ME,createAnimatedStyle:e=>new UE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Os=qE.animated;const Rv=({trigger:e,content:t})=>{const[n,r]=b.useState(null),[i,s]=b.useState(null),{styles:o,attributes:a}=Ob(n,i,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,12]}}]}),[l,u]=b.useState(!1),c=ul(l,{from:{opacity:0,y:10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}}),d=()=>{u(g=>!g)},h=Im.cloneElement(e,{ref:r,onClick:d,state:l?"selected":"default"});return b.useEffect(()=>{const g=p=>{i&&!i.contains(p.target)&&n&&!n.contains(p.target)&&u(!1)};return document.addEventListener("mousedown",g,!0),document.addEventListener("touchstart",g,!0),()=>{document.removeEventListener("mousedown",g,!0),document.removeEventListener("touchstart",g,!0)}},[i,n]),f.jsxs(f.Fragment,{children:[h,c((g,p)=>f.jsx(f.Fragment,{children:p&&f.jsx(Os.div,{className:K("bg-white shadow rounded-4 d-block show py-12 px-8","bs-tooltip-auto"),ref:s,style:{...o.popper,...g},...a.popper,children:t})}))]})};Rv.displayName="Dropdown";const QE=Rv,Pv=b.forwardRef(({title:e="",state:t,variant:n,icon:r,size:i="lg",grow:s=!1,badgeContent:o,...a},l)=>{const u=K("dropdown-trigger",t,i,n,s&&"flex-grow-1 justify-content-between");return f.jsxs("button",{ref:l,className:u,...a,type:"button",children:[r&&f.jsx("div",{className:"dropdown-trigger-icon",children:r}),f.jsx("div",{children:e}),o?f.jsx("div",{children:f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:o})}):f.jsx("div",{className:"dropdown-trigger-carret-icon",children:f.jsx(A3,{width:16,height:16})})]})});Pv.displayName="DropdownTrigger";const WE=Pv,jv=({options:e,hideCheckbox:t,isMonoSelection:n,onChange:r,model:i=[]})=>{const[s,o]=b.useState(i),a=l=>{o(n?[l]:u=>{const c=[...u];return u.includes(l)?c.splice(c.indexOf(l),1):c.push(l),c})};return b.useEffect(()=>{r==null||r(s)},[s]),f.jsx(f.Fragment,{children:f.jsx("div",{className:"select-list",children:e==null?void 0:e.map(l=>f.jsxs("div",{className:K("select-list-option",t&&s.includes(l.value)&&"text-secondary fw-bold"),role:"checkbox","aria-checked":s.includes(l.value),onMouseUp:()=>{a(l.value)},tabIndex:0,onKeyDown:u=>{u.key==="Enter"&&a(l.value)},children:[f.jsx("div",{className:"select-list-option-icon",children:l.icon&&Im.createElement(l.icon,{width:"20px",height:"20px"})}),f.jsx("div",{className:"select-list-option-label",children:l.label}),!t&&f.jsx("div",{className:"select-list-option-checkbox",children:f.jsx("input",{readOnly:!0,type:"checkbox",tabIndex:-1,checked:s.includes(l.value),className:"form-check-input c-pointer",id:"option.value"})})]},l.value))})})};jv.displayName="SelectList";const KE=jv,Nv=b.createContext(null),cf=()=>{const e=b.useContext(Nv);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},Tv=({children:e})=>{const{status:t}=cf(),n=K("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return f.jsx("p",{className:n,children:f.jsx("em",{children:e})})};Tv.displayName="Text";const ZE=Tv,_v=b.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:i},s)=>{const{id:o,isOptional:a,isRequired:l}=cf(),u=K("form-label",{"has-icon":e},i),c=a&&!l,d=l&&!a;return b.useEffect(()=>{if(a&&l)throw new Error("Cannot be optional and required at the same time")},[a,l]),f.jsxs("label",{ref:s,htmlFor:o,className:u,children:[e,r,c&&f.jsxs("em",{className:"optional",children:["- ",t]}),d&&f.jsx("em",{className:"required",children:n})]})});_v.displayName="Label";const XE=_v,Iv=b.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:i,...s},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:c}=cf(),d=K({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","is-invalid":c==="invalid","is-valid":c==="valid","form-control-plaintext":u,"no-validation-icon":e},i);return f.jsx("input",{ref:o,id:a,className:d,type:r,placeholder:t,required:l,readOnly:u,...s})});Iv.displayName="Input";const Av=Iv,Lv=b.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:i,isRequired:s,status:o,...a},l)=>{const u=b.useMemo(()=>({id:n,isOptional:r,isRequired:s,isReadOnly:i,status:o}),[n,r,i,s,o]);return f.jsx(Nv.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),GE=Object.assign(Lv,{Label:XE,Input:Av,Text:ZE});Lv.displayName="FormControl";const Mc=GE,Qi=({children:e,className:t,...n})=>{const r=K("grid",t);return f.jsx("div",{className:r,...n,children:e})},Mv=({sm:e,md:t,lg:n,xl:r,children:i,className:s,as:o,...a})=>{const l=o||"div",u=K({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},s);return f.jsx(l,{className:u,...a,children:i})};Qi.displayName="Grid";Mv.displayName="Grid.Col";Qi.Col=Mv;const Dv=b.forwardRef(({position:e=!0},t)=>{const[n]=Ya(),r=`${n}/loading/screen-loading.gif`,i=K("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 f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:t,className:i,children:f.jsx("div",{className:"bg-white rounded-circle mx-auto",children:f.jsx("img",{src:r,alt:"loading"})})}),!e&&f.jsx("div",{className:"modal-backdrop fade show"})]})});Dv.displayName="LoadingScreen";const Ve=Dv,Fv=b.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const i=K("navbar-brand d-none d-md-block"),s=`logo ${t?"ONE":"NEO"}`;return f.jsx("a",{ref:r,className:i,href:"/timeline/timeline","aria-label":n,children:f.jsx("img",{className:"logo",src:e,alt:s,width:"300",height:"52"})})});Fv.displayName="Logo";const nm=Fv,df=b.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});df.displayName="ModalContext";const $v=()=>{const e=b.useContext(df);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},zv=e=>{const{ariaDescriptionId:t}=$v(),{children:n,className:r}=e,i=K("modal-body",r);return f.jsx("div",{id:t,className:i,children:n})};zv.displayName="Modal.Body";const YE=zv,Bv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Bv.displayName="Modal.Footer";const JE=Bv,Uv=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:i}=$v(),s=b.useRef(null);return b.useEffect(()=>{var o;i||(o=s.current)==null||o.focus()},[i]),f.jsxs("div",{className:"modal-header",children:[f.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),f.jsx("button",{ref:s,type:"button",className:"btn btn-close","aria-label":"Close",onClick:t})]})};Uv.displayName="Modal.Header";const eC=Uv,Vv=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Vv.displayName="Modal.Subtitle";const tC=Vv,Hv=b.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:i,size:s="md",scrollable:o,focusId:a,children:l}=e,u=`aria_label_${n}`,c=`aria_desc_${n}`,d=r4(i),h=Y4();Z4(i,["Escape"]),b.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",a)){const x=document.getElementById(a);x==null||x.focus()}return()=>{document.body.style.overflow=""}},[a,r]);const g=K("modal-dialog",{[`modal-${s}`]:s,"modal-dialog-scrollable":o}),p={ariaLabelId:u,ariaDescriptionId:c,focusId:a},y=ul(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return f.jsx(df.Provider,{value:p,children:y((x,m)=>f.jsxs(f.Fragment,{children:[m&&f.jsx(Os.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":u,"aria-describedby":c,className:`modal fade ${m?"show d-block":""}`,style:x,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:v=>{d.current=v,m&&(h.current=v)},className:g,children:f.jsx("div",{className:"modal-content",children:l})})}),m&&f.jsx(Os.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),nC=Object.assign(Hv,{Header:eC,Subtitle:tC,Body:YE,Footer:JE});Hv.displayName="Modal";const Cn=nC,rC=({children:e,className:t})=>{const n=K("popover-body",t);return f.jsx("div",{className:n,children:e})},iC=({children:e,className:t})=>{const n=K("popover-footer p-8",t);return f.jsx("div",{className:n,children:e})},ff=b.forwardRef(({children:e,className:t,id:n,isVisible:r,...i},s)=>{const o=K("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return ul(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}})((l,u)=>u&&f.jsx(Os.div,{ref:s,"aria-labelledby":n,className:o,role:"tooltip",style:l,...i,children:e}))});ff.displayName="Popover";function sC(e,t,n,r,i,s,o,a,l){const u=x=>{x.preventDefault(),i==null||i(e),x.stopPropagation()},c=x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),i==null||i(e),x.stopPropagation())},d=()=>{r(!n),n?s==null||s(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:x=>{x.preventDefault(),d(),x.stopPropagation()},handleItemFoldUnfoldKeyDown:x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),d(),x.stopPropagation())},handleItemFocus:x=>{x.preventDefault(),a==null||a(e)},handleItemBlur:x=>{x.preventDefault(),l==null||l(e)}}}const qv=e=>{const{nodeId:t,label:n,children:r,section:i,selected:s,onItemSelect:o,onItemFold:a,onItemUnfold:l,onItemFocus:u,onItemBlur:c,selectedNodesIds:d}=e,[h,g]=b.useState(!1),{handleItemClick:p,handleItemKeyDown:y,handleItemFoldUnfoldClick:x,handleItemFoldUnfoldKeyDown:m,handleItemFocus:v,handleItemBlur:w}=sC(t,n,h,g,o,a,l,u,c);b.useEffect(()=>{if(d!=null&&d.length&&(d==null?void 0:d.length)>=1){const k=d[d.length-1];d.some(O=>O===t&&t!==k?(g(!0),O===t):(g(!1),!1))}else g(!1)},[t,d]);const S=i?16:12,C=()=>f.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":s,"aria-expanded":h,children:f.jsxs("div",{children:[f.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[f.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:x,onKeyDown:m,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&f.jsx(yp,{title:"RafterRight",width:S,height:S}),Array.isArray(r)&&h&&f.jsx(wc,{title:"RafterDown",width:S,height:S}),!Array.isArray(r)&&f.jsx(yp,{title:"RafterRight",width:S,height:S,"aria-hidden":"true",className:"opacity-0"})]}),f.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:p,onKeyDown:y,onFocus:v,onBlur:w,children:[i&&f.jsx(x3,{title:"Folder",width:20,height:20}),f.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&f.jsx("ul",{role:"group",children:r})]})},t);return i?f.jsx("ul",{role:"tree",className:"m-0 p-0",children:C()}):C()};qv.displayName="TreeItem";const oC=qv,Qv=b.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:i,onTreeItemUnfold:s,onTreeItemFocus:o,onTreeItemBlur:a,selectedNodesIds:l}=e,[u,c]=b.useState("default");b.useEffect(()=>{l!=null&&l.length&&(l==null?void 0:l.length)>=1?c(l[l.length-1]):c("")},[l]);const d=m=>{c(m),r==null||r(m)},h=m=>{i==null||i(m)},g=m=>{s==null||s(m)},p=m=>{o==null||o(m)},y=m=>{a==null||a(m)},x=m=>f.jsx(oC,{nodeId:m.id,label:m.name,section:m.section,selectedNodesIds:l,selected:u===m.id,onItemSelect:d,onItemFold:h,onItemUnfold:g,onItemFocus:p,onItemBlur:y,children:Array.isArray(m.children)?m.children.map(v=>x(v)):null},m.id);return f.jsx("div",{ref:t,id:"treeview",className:"treeview",children:x(n)})});Qv.displayName="TreeView";const aC=Qv,Wv=b.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Wv.displayName="VisuallyHidden";const Pi=Wv,lC=()=>{const e=$i("fr.openent.zimbra.controllers.ZimbraController|view"),t=$i("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=b.useState(0),[i,s]=b.useState(""),o=b.useCallback(async()=>{if(e)try{const l=await G.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});l.status!==200&&r(0),r(l.count)}catch{r(0)}else try{const l=await G.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(l.count)}catch{r(0)}},[e]),a=b.useCallback(()=>{let l="";G.http().get("/userbook/preference/zimbra").then(u=>{try{u.preference&&JSON.parse(u.preference).modeExpert&&t?l="/zimbra/preauth":l=window.location.origin+"/zimbra/zimbra"}catch{l="/zimbra/zimbra"}}),s(l)},[t]);return b.useEffect(()=>{(async()=>{try{await o()}catch{}})(),a()},[a,o]),{messages:n,msgLink:i,zimbraWorkflow:e}},uC=lC;function su({children:e}){return f.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function ou({children:e,className:t,...n}){const r=K("navbar",t);return f.jsx("nav",{className:r,...n,children:e})}function rm({children:e,className:t,...n}){const r=K("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const de=b.forwardRef(({children:e,className:t,...n},r)=>{const i=K("nav-item",t);return f.jsx("li",{ref:r,className:i,...n,children:e})});de.displayName="NavItem";function Si({link:e,className:t,children:n,translate:r,...i}){const s=K("nav-link",t);return f.jsxs("a",{href:e,className:s,...i,children:[n,r&&f.jsx(Pi,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const cC=()=>{const{t:e}=xe();return f.jsx("div",{className:"widget-footer",children:f.jsx("div",{className:"widget-footer-action",children:f.jsx("a",{href:"/welcome",className:"link",children:e("plus")})})})},dC=({bookmarkedApps:e})=>{const{t}=xe();return f.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!e.length&&f.jsx("div",{className:"text-dark",children:t("navbar.myapps.more")}),e.slice(0,6).map((n,r)=>f.jsx("a",{href:n.address,className:"bookmarked-app",children:f.jsx(xc,{app:n,size:"32"})},r))]})};var hf={},pf={};(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 t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(pf);var q={},Bn=He&&He.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wi=He&&He.__assign||function(){return Wi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Wi.apply(this,arguments)};Object.defineProperty(q,"__esModule",{value:!0});q.cloneNode=q.hasChildren=q.isDocument=q.isDirective=q.isComment=q.isText=q.isCDATA=q.isTag=q.Element=q.Document=q.CDATA=q.NodeWithChildren=q.ProcessingInstruction=q.Comment=q.Text=q.DataNode=q.Node=void 0;var Ge=pf,mf=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(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),gf(this,t)},e}();q.Node=mf;var cl=function(e){Bn(t,e);function t(n){var r=e.call(this)||this;return r.data=n,r}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(mf);q.DataNode=cl;var Kv=function(e){Bn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(cl);q.Text=Kv;var Zv=function(e){Bn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(cl);q.Comment=Zv;var Xv=function(e){Bn(t,e);function t(n,r){var i=e.call(this,r)||this;return i.name=n,i.type=Ge.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(cl);q.ProcessingInstruction=Xv;var dl=function(e){Bn(t,e);function t(n){var r=e.call(this)||this;return r.children=n,r}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(mf);q.NodeWithChildren=dl;var Gv=function(e){Bn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(dl);q.CDATA=Gv;var Yv=function(e){Bn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(dl);q.Document=Yv;var Jv=function(e){Bn(t,e);function t(n,r,i,s){i===void 0&&(i=[]),s===void 0&&(s=n==="script"?Ge.ElementType.Script:n==="style"?Ge.ElementType.Style:Ge.ElementType.Tag);var o=e.call(this,i)||this;return o.name=n,o.attribs=r,o.type=s,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var i,s;return{name:r,value:n.attribs[r],namespace:(i=n["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(s=n["x-attribsPrefix"])===null||s===void 0?void 0:s[r]}})},enumerable:!1,configurable:!0}),t}(dl);q.Element=Jv;function ey(e){return(0,Ge.isTag)(e)}q.isTag=ey;function ty(e){return e.type===Ge.ElementType.CDATA}q.isCDATA=ty;function ny(e){return e.type===Ge.ElementType.Text}q.isText=ny;function ry(e){return e.type===Ge.ElementType.Comment}q.isComment=ry;function iy(e){return e.type===Ge.ElementType.Directive}q.isDirective=iy;function sy(e){return e.type===Ge.ElementType.Root}q.isDocument=sy;function fC(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=fC;function gf(e,t){t===void 0&&(t=!1);var n;if(ny(e))n=new Kv(e.data);else if(ry(e))n=new Zv(e.data);else if(ey(e)){var r=t?au(e.children):[],i=new Jv(e.name,Wi({},e.attribs),r);r.forEach(function(l){return l.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Wi({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Wi({},e["x-attribsPrefix"])),n=i}else if(ty(e)){var r=t?au(e.children):[],s=new Gv(r);r.forEach(function(u){return u.parent=s}),n=s}else if(sy(e)){var r=t?au(e.children):[],o=new Yv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(iy(e)){var a=new Xv(e.name,e.data);e["x-name"]!=null&&(a["x-name"]=e["x-name"],a["x-publicId"]=e["x-publicId"],a["x-systemId"]=e["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}q.cloneNode=gf;function au(e){for(var t=e.map(function(r){return gf(r,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}(function(e){var t=He&&He.__createBinding||(Object.create?function(a,l,u,c){c===void 0&&(c=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(a,c,d)}:function(a,l,u,c){c===void 0&&(c=u),a[c]=l[u]}),n=He&&He.__exportStar||function(a,l){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,a,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=pf,i=q;n(q,e);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(l,u,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=s),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??s,this.elementCB=c??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(l){this.handleCallback(l)},a.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},a.prototype.onopentag=function(l,u){var c=this.options.xmlMode?r.ElementType.Tag:void 0,d=new i.Element(l,u,void 0,c);this.addNode(d),this.tagStack.push(d)},a.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new i.Text(l);this.addNode(c),this.lastNode=c}},a.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var u=new i.Comment(l);this.addNode(u),this.lastNode=u},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new i.Text(""),u=new i.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(l,u){var c=new i.ProcessingInstruction(l,u);this.addNode(c)},a.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},a.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),c&&(l.prev=c,c.next=l),l.parent=u,this.lastNode=null},a}();e.DomHandler=o,e.default=o})(hf);var im="html",sm="head",wo="body",hC=/<([a-zA-Z]+[0-9]?)/,om=/<head[^]*>/i,am=/<body[^]*>/i,_a=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Dc=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},lm=typeof window=="object"&&window.DOMParser;if(typeof lm=="function"){var pC=new lm,mC="text/html";Dc=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),pC.parseFromString(e,mC)},_a=Dc}if(typeof document=="object"&&document.implementation){var xo=document.implementation.createHTMLDocument();_a=function(e,t){if(t){var n=xo.documentElement.querySelector(t);return n.innerHTML=e,xo}return xo.documentElement.innerHTML=e,xo}}var lu=typeof document=="object"?document.createElement("template"):{},Fc;lu.content&&(Fc=function(e){return lu.innerHTML=e,lu.content.childNodes});function gC(e){var t,n=e.match(hC);n&&n[1]&&(t=n[1].toLowerCase());var r,i,s;switch(t){case im:return r=Dc(e),om.test(e)||(i=r.querySelector(sm),i&&i.parentNode.removeChild(i)),am.test(e)||(i=r.querySelector(wo),i&&i.parentNode.removeChild(i)),r.querySelectorAll(im);case sm:case wo:return r=_a(e),s=r.querySelectorAll(t),am.test(e)&&om.test(e)?s[0].parentNode.childNodes:s;default:return Fc?Fc(e):(i=_a(e,wo).querySelector(wo),i.childNodes)}}var vC=gC,vf={},oy={};oy.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 fl=hf,yC=oy,um=yC.CASE_SENSITIVE_TAG_NAMES,wC=fl.Comment,xC=fl.Element,SC=fl.ProcessingInstruction,bC=fl.Text,ay={},uu;for(var cu=0,EC=um.length;cu<EC;cu++)uu=um[cu],ay[uu.toLowerCase()]=uu;function CC(e){return ay[e]}function ly(e){for(var t={},n,r=0,i=e.length;r<i;r++)n=e[r],t[n.name]=n.value;return t}function kC(e){e=e.toLowerCase();var t=CC(e);return t||e}function uy(e,t,n){t=t||null;for(var r=[],i,s=0,o=e.length;s<o;s++){var a=e[s],l;switch(a.nodeType){case 1:i=kC(a.nodeName),l=new xC(i,ly(a.attributes)),l.children=uy(i==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new bC(a.nodeValue);break;case 8:l=new wC(a.nodeValue);break;default:continue}var u=r[s-1]||null;u&&(u.next=l),l.parent=t,l.prev=u,l.next=null,r.push(l)}return n&&(l=new SC(n.substring(0,n.indexOf(" ")).toLowerCase(),n),l.next=r[0]||null,l.parent=t,r.unshift(l),r[1]&&(r[1].prev=r[0])),r}vf.formatAttributes=ly;vf.formatDOM=uy;var OC=vC,RC=vf,PC=RC.formatDOM,jC=/<(![a-zA-Z\s]+)>/;function NC(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(jC),n;return t&&t[1]&&(n=t[1]),PC(OC(e),null,n)}var TC=NC,bt={},hl={},_C=0;hl.SAME=_C;var IC=1;hl.CAMELCASE=IC;hl.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(bt,"__esModule",{value:!0});function AC(e,t){return LC(e)||MC(e,t)||DC(e,t)||FC()}function LC(e){if(Array.isArray(e))return e}function MC(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,o,a;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){s=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function DC(e,t){if(e){if(typeof e=="string")return cm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cm(e,t)}}function cm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
225
225
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var cy=0,Un=1,pl=2,ml=3,yf=4,dy=5,fy=6;function $C(e){return Ce.hasOwnProperty(e)?Ce[e]:null}function Me(e,t,n,r,i,s,o){this.acceptsBooleans=t===pl||t===ml||t===yf,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Ce={},zC=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];zC.forEach(function(e){Ce[e]=new Me(e,cy,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=AC(e,2),n=t[0],r=t[1];Ce[n]=new Me(n,Un,!1,r,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Me(e,pl,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Me(e,pl,!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){Ce[e]=new Me(e,ml,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Me(e,ml,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Me(e,yf,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Me(e,fy,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Me(e,dy,!1,e.toLowerCase(),null,!1,!1)});var wf=/[\-\:]([a-z])/g,xf=function(t){return t[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 t=e.replace(wf,xf);Ce[t]=new Me(t,Un,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(wf,xf);Ce[t]=new Me(t,Un,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wf,xf);Ce[t]=new Me(t,Un,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Me(e,Un,!1,e.toLowerCase(),null,!1,!1)});var BC="xlinkHref";Ce[BC]=new Me("xlinkHref",Un,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Me(e,Un,!1,e.toLowerCase(),null,!0,!0)});var Sf=hl,UC=Sf.CAMELCASE,VC=Sf.SAME,dm=Sf.possibleStandardNames,HC=":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",qC=HC+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",QC=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+qC+"]*$")),WC=Object.keys(dm).reduce(function(e,t){var n=dm[t];return n===VC?e[t]=t:n===UC?e[t.toLowerCase()]=t:e[t]=n,e},{});bt.BOOLEAN=ml;bt.BOOLEANISH_STRING=pl;bt.NUMERIC=dy;bt.OVERLOADED_BOOLEAN=yf;bt.POSITIVE_NUMERIC=fy;bt.RESERVED=cy;bt.STRING=Un;bt.getPropertyInfo=$C;bt.isCustomAttribute=QC;bt.possibleStandardNames=WC;var hy={},bf={exports:{}},fm=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,KC=/\n/g,ZC=/^\s*/,XC=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,GC=/^:\s*/,YC=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,JC=/^[;\s]*/,e8=/^\s+|\s+$/g,t8=`
226
226
  `,hm="/",pm="*",Wn="",n8="comment",r8="declaration",i8=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(p){var y=p.match(KC);y&&(n+=y.length);var x=p.lastIndexOf(t8);r=~x?p.length-x:r+p.length}function s(){var p={line:n,column:r};return function(y){return y.position=new o(p),u(),y}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(p){var y=new Error(t.source+":"+n+":"+r+": "+p);if(y.reason=p,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(p){var y=p.exec(e);if(y){var x=y[0];return i(x),e=e.slice(x.length),y}}function u(){l(ZC)}function c(p){var y;for(p=p||[];y=d();)y!==!1&&p.push(y);return p}function d(){var p=s();if(!(hm!=e.charAt(0)||pm!=e.charAt(1))){for(var y=2;Wn!=e.charAt(y)&&(pm!=e.charAt(y)||hm!=e.charAt(y+1));)++y;if(y+=2,Wn===e.charAt(y-1))return a("End of comment missing");var x=e.slice(2,y-2);return r+=2,i(x),e=e.slice(y),r+=2,p({type:n8,comment:x})}}function h(){var p=s(),y=l(XC);if(y){if(d(),!l(GC))return a("property missing ':'");var x=l(YC),m=p({type:r8,property:mm(y[0].replace(fm,Wn)),value:x?mm(x[0].replace(fm,Wn)):Wn});return l(JC),m}}function g(){var p=[];c(p);for(var y;y=h();)y!==!1&&(p.push(y),c(p));return p}return u(),g()};function mm(e){return e?e.replace(e8,Wn):Wn}var s8=i8;function py(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=s8(e),s=typeof t=="function",o,a,l=0,u=i.length;l<u;l++)r=i[l],o=r.property,a=r.value,s?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}bf.exports=py;bf.exports.default=py;var o8=bf.exports,gl={};gl.__esModule=!0;gl.camelCase=void 0;var a8=/^--[a-zA-Z0-9-]+$/,l8=/-([a-z])/g,u8=/^[^-]+$/,c8=/^-(webkit|moz|ms|o|khtml)-/,d8=/^-(ms)-/,f8=function(e){return!e||u8.test(e)||a8.test(e)},h8=function(e,t){return t.toUpperCase()},gm=function(e,t){return"".concat(t,"-")},p8=function(e,t){return t===void 0&&(t={}),f8(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(d8,gm):e=e.replace(c8,gm),e.replace(l8,h8))};gl.camelCase=p8;(function(e){var t=He&&He.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};e.__esModule=!0;var n=t(o8),r=gl;function i(s,o){var a={};return!s||typeof s!="string"||(0,n.default)(s,function(l,u){l&&u&&(a[(0,r.camelCase)(l,o)]=u)}),a}e.default=i})(hy);var m8=b,g8=hy.default;function v8(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,i=typeof t=="function",s={},o={};for(n in e){if(r=e[n],i&&(s=t(n,r),s&&s.length===2)){o[s[0]]=s[1];continue}typeof r=="string"&&(o[r]=n)}return o}function y8(e,t){if(e.indexOf("-")===-1)return t&&typeof t.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 w8={reactCompat:!0};function x8(e,t){if(e!=null)try{t.style=g8(e,w8)}catch{t.style={}}}var S8=m8.version.split(".")[0]>=16,my=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function b8(e){return!my.has(e.name)}var gy={PRESERVE_CUSTOM_ATTRIBUTES:S8,invertObject:v8,isCustomComponent:y8,setStyleProp:x8,canTextBeChildOfNode:b8,elementsWithNoTextChildren:my},ji=bt,vm=gy,E8=["checked","value"],C8=["input","select","textarea"],k8={reset:!0,submit:!0},vy=function(t,n){t=t||{};var r,i,s,o,a,l={},u=t.type&&k8[t.type];for(r in t){if(s=t[r],ji.isCustomAttribute(r)){l[r]=s;continue}if(i=r.toLowerCase(),o=ym(i),o){switch(a=ji.getPropertyInfo(o),E8.indexOf(o)!==-1&&C8.indexOf(n)!==-1&&!u&&(o=ym("default"+i)),l[o]=s,a&&a.type){case ji.BOOLEAN:l[o]=!0;break;case ji.OVERLOADED_BOOLEAN:s===""&&(l[o]=!0);break}continue}vm.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=s)}return vm.setStyleProp(t.style,l),l};function ym(e){return ji.possibleStandardNames[e]}var O8=b,R8=vy,Ia=gy,P8=Ia.setStyleProp,j8=Ia.canTextBeChildOfNode;function yy(e,t){t=t||{};for(var n=t.library||O8,r=n.cloneElement,i=n.createElement,s=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",c,d,h,g=t.trim,p=0,y=e.length;p<y;p++){if(a=e[p],u&&(c=t.replace(a),s(c))){y>1&&(c=r(c,{key:c.key||p})),o.push(c);continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!j8(a.parent)||g&&l)continue;o.push(a.data);continue}switch(d=a.attribs,N8(a)?P8(d.style,d):d&&(d=R8(d,a.name)),h=null,a.type){case"script":case"style":a.children[0]&&(d.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":a.name==="textarea"&&a.children[0]?d.defaultValue=a.children[0].data:a.children&&a.children.length&&(h=yy(a.children,t));break;default:continue}y>1&&(d.key=p),o.push(i(a.name,d,h))}return o.length===1?o[0]:o}function N8(e){return Ia.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Ia.isCustomComponent(e.name,e.attribs)}var T8=yy,vl=hf,Nr=TC,_8=vy,wy=T8;Nr=typeof Nr.default=="function"?Nr.default:Nr;var I8={lowerCaseAttributeNames:!1};function Wt(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},wy(Nr(e,t.htmlparser2||I8),t))}Wt.domToReact=wy;Wt.htmlToDOM=Nr;Wt.attributesToProps=_8;Wt.Comment=vl.Comment;Wt.Element=vl.Element;Wt.ProcessingInstruction=vl.ProcessingInstruction;Wt.Text=vl.Text;var A8=Wt;Wt.default=Wt;const Vn=Ps(A8);var So=Vn.domToReact;Vn.htmlToDOM;var du=Vn.attributesToProps;Vn.Comment;Vn.Element;Vn.ProcessingInstruction;Vn.Text;function L8(){var y;const{appCode:e}=St(),{theme:t}=Fd(),[n,r]=b.useState(""),[i,s]=b.useState(!0),[o,a]=b.useState(!1),[l,u]=b.useState(!1),c=t!=null&&t.is1d?"/help-1d":"/help-2d";b.useEffect(()=>{(async()=>{let x="";x=c+"/application/"+e+"/",!e&&window.location.pathname!=="/adapter"?x=c+"/application/portal/":window.location.pathname==="/adapter"?x=c+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?x=c+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(x=c+"/application/userbook/");try{const m=await fetch(x),v=await m.text();if(m.status===404){u(!0);return}r(v),u(!1)}catch{u(!0)}})()},[e,c]);const h=Vn(n,{replace:x=>{const m=x;if(m.attribs&&m.attribs.id==="TOC")return f.jsxs("nav",{id:"TOC",children:[f.jsx(ni,{onClick:()=>{s(!i)},children:f.jsx(l3,{})}),So(m.children,{replace:v=>{const w=v;if(w.attribs&&w.name==="ul")return f.jsx("ul",{id:"TOC-list",style:{display:i?"block":"none"},children:So(w.children,{replace:S=>{const C=S;if(C.attribs&&C.name==="a")return f.jsx("a",{...du(C.attribs),children:f.jsx("span",{onClick:()=>{s(!1)},children:So(C.children)})})}})})}})]});if(m.attribs&&m.attribs.class==="section level2"){const v=du(x.attribs);return f.jsx("div",{...v,className:"section level2",style:{display:m.attribs.id!=="présentation"?"none":"block"},children:So(m.children,{replace:w=>{const S=w;if(S.attribs&&S.name==="p")return f.jsx(f.Fragment,{});if(S.attribs&&S.name==="img"){const C=w.attribs.src;return f.jsx("img",{...du(S.attribs),src:`${c}/${C}`,alt:""})}}})})}}}),g=(y=h==null?void 0:h.props)==null?void 0:y.children.find(x=>x.type==="body").props.children,p=g==null?void 0:g.find(x=>x.type==="p").props.children;return{html:n,visibility:i,isModalOpen:o,setIsModalOpen:a,parsedContent:g,parsedHeadline:p,error:l}}const xy=()=>{const[e,t]=g0(),n=b.useRef(null),r=b.useId(),{t:i}=xe();function s(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return f.jsxs(de,{id:r,ref:e,className:"position-relative","aria-haspopup":"true","aria-expanded":t,children:[f.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[f.jsx(c5,{className:"icon search"}),f.jsx("span",{className:"nav-text",children:i("navbar.search")})]}),f.jsx(ff,{id:r,isVisible:t,children:f.jsxs(Mc,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[f.jsx(Mc.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),f.jsx(F0,{type:"submit",size:"sm",onClick:s,"aria-label":i("navbar.search")})]})})]})};xy.displayName="SearchEngine";const M8=xy;function wm({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:i}){const{t:s}=xe(),o=()=>{t(!1)};return e?Ls.createPortal(f.jsxs(Cn,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"xl",children:[f.jsx(Cn.Header,{onModalClose:o,children:s("navbar.help")}),f.jsx(Cn.Subtitle,{children:i?s("help.notfound.title"):n}),f.jsx(Cn.Body,{className:i?"d-flex":null,children:i?s("help.notfound.text"):r})]}),document.getElementById("portal")):null}const Sy=({is1d:e=!1,src:t=""})=>{const{t:n}=xe(),{messages:r,msgLink:i,zimbraWorkflow:s}=uC(),{user:o,avatar:a}=$d(),{isModalOpen:l,setIsModalOpen:u,parsedContent:c,parsedHeadline:d,error:h}=L8(),g=K("header",{"no-2d":e,"no-1d":!e}),{title:p,bookmarkedApps:y,appsRef:x,isAppsHovered:m,popoverAppsId:v,userAvatar:w,userName:S,welcomeUser:C,communityWorkflow:k,conversationWorflow:O,searchWorkflow:R,isCollapsed:I,toggleCollapsedNav:A,handleLogout:M}=e4({user:o,avatar:a}),z=r>0;return f.jsx("header",{className:g,children:e?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"container-fluid",children:f.jsxs(ou,{children:[f.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:p}),f.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[f.jsx(wp,{alt:S,size:"sm",src:w,variant:"circle",width:"32",height:"32"}),f.jsx("span",{className:"navbar-text",children:C})]}),f.jsxs(rm,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[O&&f.jsx(de,{children:f.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[f.jsx(o5,{className:"icon notification"}),z&&f.jsx(su,{children:r}),f.jsx(Pi,{children:n("navbar.messages")})]})}),f.jsx(de,{children:f.jsx(Si,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:f.jsx(l5,{className:"icon user"})})}),f.jsxs(de,{children:[f.jsxs("button",{className:"nav-link",onClick:()=>{u(!0)},children:[f.jsx(i5,{className:"icon help"}),f.jsx(Pi,{children:n("navbar.help")})]}),f.jsx(wm,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(de,{children:f.jsxs("button",{className:"nav-link",onClick:M,children:[f.jsx(xp,{className:"icon logout"}),f.jsx(Pi,{children:n("navbar.disconnect")})]})}),f.jsx(de,{className:"d-md-none",children:f.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!I,"aria-label":n("navbar.secondary.navigation"),onClick:A,children:f.jsx(wc,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),f.jsx(ou,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":n("navbar.secondary.navigation"),children:f.jsx("div",{className:"container-fluid",children:f.jsxs("div",{className:`collapse navbar-collapse ${I?"":"show"}`,id:"navbarCollapsed",children:[f.jsx(nm,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),f.jsxs(rm,{className:"gap-8",children:[f.jsx(de,{children:f.jsxs("a",{href:"/timeline/timeline",className:"button",children:[f.jsx(n5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),f.jsx(de,{children:f.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[f.jsx(f5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),f.jsx(de,{children:f.jsxs("a",{href:"/welcome",className:"button",children:[f.jsx(Sp,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):f.jsx(ou,{className:"navbar-expand-md",children:f.jsxs("div",{className:"container-fluid",children:[f.jsx(nm,{src:`${t}/img/illustrations/logo.png`}),f.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:p}),f.jsxs("ul",{className:"navbar-nav",children:[f.jsx(de,{children:f.jsx(Si,{link:"/timeline/timeline",translate:n("navbar.home"),children:f.jsx(X3,{color:"#fff"})})}),f.jsxs(de,{className:"position-relative",ref:x,id:v,"aria-haspopup":"true","aria-expanded":m,children:[f.jsx(Si,{link:"/welcome",translate:n("navbar.applications"),children:f.jsx(Sp,{color:"#fff"})}),f.jsxs(ff,{className:"top-100 widget",id:v,isVisible:m,children:[f.jsx(rC,{children:f.jsx(dC,{bookmarkedApps:y})}),f.jsx(iC,{className:"widget-footer border-top border-ghost",children:f.jsx(cC,{})})]})]}),O&&f.jsx(de,{children:f.jsxs(Si,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[f.jsx(bp,{color:"#fff"}),z&&f.jsx(su,{children:r})]})}),s&&f.jsx(de,{children:f.jsxs(Si,{className:"position-relative",link:i,translate:n("conversation"),children:[f.jsx(bp,{color:"#fff"}),z&&f.jsx(su,{children:r})]})}),f.jsxs(de,{children:[f.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{u(!0)},children:[f.jsx(J3,{color:"#fff"}),f.jsx(Pi,{children:n("support")})]}),f.jsx(wm,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(de,{children:f.jsxs("div",{className:"dropdown",children:[f.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!I,"aria-label":n("navbar.open.menu"),onClick:A,children:f.jsx(wc,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),f.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${I?"":"show"}`,id:"dropdown-navbar",children:[k&&f.jsx(de,{children:f.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[f.jsx(W3,{className:"icon community"}),f.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),R?f.jsx(M8,{}):null,f.jsx(de,{children:f.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[f.jsx(wp,{alt:S,size:"sm",src:w,variant:"circle",className:"bg-white",width:"32",height:"32"}),f.jsx("span",{className:"nav-text",children:n("navbar.myaccount")})]})}),f.jsx(de,{children:f.jsx("hr",{className:"dropdown-divider"})}),f.jsx(de,{children:f.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[f.jsx(xp,{className:"icon logout"}),f.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};Sy.displayName="Header";const D8=Sy;function by({children:e,className:t,...n}){const r=K("container-fluid",t);return f.jsx("main",{className:r,...n,children:e})}by.displayName="Main";const Ey=({children:e,...t})=>{const{theme:n}=Fd();return f.jsxs(f.Fragment,{children:[f.jsx(D8,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),f.jsx(by,{className:K("d-flex flex-column bg-white",{"rounded-4 border":n==null?void 0:n.is1d,"mt-24":n==null?void 0:n.is1d}),...t,children:e}),f.jsx(W4,{toastOptions:{position:"top-right"}})]})};Ey.displayName="Layout";const F8=Ey,$8=function(){return null};var Cy,xm=Ls;Cy=xm.createRoot,xm.hydrateRoot;const bo=document.querySelector("[data-ode-app]");let bi;function Vs(){var e;if(bi)return bi;if(bi={app:Eo.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=bo==null?void 0:bo.dataset)!=null&&e.odeApp){const{odeApp:t}=bo.dataset;try{const n=JSON.parse(t);Object.assign(bi,n)}catch{}}return bi}const Sm=e=>{let t;const n=new Set,r=(l,u)=>{const c=typeof l=="function"?l(t):l;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(h=>h(t,d))}},i=()=>t,a={setState:r,getState:i,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,i,a),a},z8=e=>e?Sm(e):Sm;var ky={exports:{}},Oy={};/**
227
227
  * @license React
@@ -231,4 +231,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
231
231
  *
232
232
  * This source code is licensed under the MIT license found in the
233
233
  * LICENSE file in the root directory of this source tree.
234
- */var yl=b,B8=a0;function U8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var V8=typeof Object.is=="function"?Object.is:U8,H8=B8.useSyncExternalStore,q8=yl.useRef,Q8=yl.useEffect,W8=yl.useMemo,K8=yl.useDebugValue;Oy.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=q8(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=W8(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&o.hasValue){var p=o.value;if(i(p,g))return d=p}return d=g}if(p=d,V8(c,g))return p;var y=r(g);return i!==void 0&&i(p,y)?p:(c=g,d=y)}var u=!1,c,d,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,i]);var a=H8(e,s[0],s[1]);return Q8(function(){o.hasValue=!0,o.value=a},[a]),K8(a),a};ky.exports=Oy;var Z8=ky.exports;const X8=Ps(Z8),{useSyncExternalStoreWithSelector:G8}=X8;function Y8(e,t=e.getState,n){const r=G8(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return b.useDebugValue(r),r}const bm=e=>{const t=typeof e=="function"?z8(e):e,n=(r,i)=>Y8(t,r,i);return Object.assign(n,t),n},J8=e=>e?bm(e):bm,Ry=async e=>{const t=await G.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},e6=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await G.resource(e.app).createFolder(r)},t6=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const i={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await G.resource(t.app).updateFolder(i)},n6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await G.resource(e.app).trashAll(i,n)},r6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await G.resource(e.app).deleteAll(i,n)},i6=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await G.resource(e.app).restoreAll(i,r)},s6=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:i})=>{const s={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await G.resource(e.app).moveToFolder(s,i)},o6=async({searchParams:e,entId:t,shares:n})=>await G.share().saveRights(e.app,t,n),a6=async({searchParams:e,params:t})=>await G.resource(e.app).update(t),l6=async e=>await G.rights().sessionHasWorkflowRights(e),u6=({searchParams:e,assetId:t})=>G.resource(e.app).gotoView(t),c6=({searchParams:e,params:t})=>G.resource(e.app).create(t),d6=({searchParams:e,assetId:t})=>G.resource(e.app).gotoPrint(t),f6=async({searchParams:e,params:t})=>await G.resource(e.app).publish(t),h6=async()=>await G.conf().getPreference("showOnboardingTrash"),p6=async({onSuccess:e})=>{const t=await G.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return e==null||e(),t};function Ef(e){return e.filter((t,n)=>e.indexOf(t)===n)}function Rs(e,t){var r,i;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((i=t==null?void 0:t.children)==null||i.every(s=>(n=Rs(e,s),n===void 0))),n)}function m6(e,t){var r;const n=Rs(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===et.BIN?[et.BIN]:[et.DEFAULT]}function Py(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>Py(t.id,n)):!1}function Hs(e,t){return jy(e,t)||e}function jy(e,t,n){var i;const r=t(e,n);if((i=r==null?void 0:r.children)!=null&&i.length){const s=[];for(const o of(r==null?void 0:r.children)||[]){const a=jy(o,t,r);a&&s.push(a)}return{...r,children:s}}return r}class wl{constructor(t){fr(this,"id");fr(this,"name");fr(this,"childNumber");fr(this,"section",!1);fr(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const Ny=(e,t,n)=>Hs(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(i=>new wl(i))),r)),{app:g6,types:v6,filters:y6,orders:w6}=Vs(),De=J8()((e,t)=>({filters:y6,orders:w6,searchConfig:{minLength:1},searchParams:{app:g6,types:v6,filters:{folder:"default",owner:void 0,shared:void 0,public:void 0},orders:{updatedAt:"desc"},pagination:{startIdx:0,pageSize:48,maxIdx:0},trashed:!1},treeData:{id:et.DEFAULT,name:Kt("explorer.filters.mine"),section:!0,children:[]},selectedNodesIds:["default"],currentFolder:{id:"default"},selectedFolders:[],selectedResources:[],folderIds:[],resourceIds:[],resourceIsTrash:!1,resourceActionDisable:!1,status:void 0,updaters:{setSearchConfig:n=>e(r=>({searchConfig:{...r.searchConfig,...n}})),setTreeData:n=>e(()=>({treeData:n})),setSearchParams:n=>e(({searchParams:r})=>({searchParams:{...r,...n}})),setSelectedFolders:n=>e(()=>({selectedFolders:n})),setSelectedResources:n=>e(()=>({selectedResources:n})),setFolderIds:n=>e(()=>({folderIds:n})),setResourceIds:n=>e(()=>({resourceIds:n})),setResourceIsTrash:n=>e(()=>({resourceIsTrash:n})),setResourceActionDisable:n=>e(()=>({resourceActionDisable:n})),setCurrentFolder:n=>e(()=>({currentFolder:n})),clearSelectedItems:()=>e(()=>({selectedFolders:[],selectedResources:[]})),clearSelectedIds:()=>e(()=>({resourceIds:[],folderIds:[]})),openResource:n=>{try{const{searchParams:r}=t();u6({searchParams:r,assetId:n.assetId})}catch{}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:i}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const s=r.find(o=>o.id===i[0]);d6({searchParams:n,assetId:s.assetId})}catch{}},publishApi:async(n,r)=>{const{searchParams:i}=t();return await f6({searchParams:i,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:i,treeData:s}=t(),o=i.filters.folder,a=m6(n,s),l=Ef([...a,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:r||{id:n},searchParams:{...i,filters:{...i.filters,folder:n},trashed:n===et.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:i,searchParams:s}=t();if(e(o=>({...o,status:"unfold"})),!Py(n,i)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await Ry({...s,filters:{...s.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Ny(i,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||et.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:i}=t().updaters,s=Rs(n,r);J4()(),e(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),i({folder:s,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:i}=t().updaters,s=n.length;if(s<2)return;const o=Rs(n[s-2],r);i({folder:o,folderId:(o==null?void 0:o.id)||et.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],searchParams:{...n.searchParams,filters:{folder:et.BIN},trashed:!0},currentFolder:{id:et.BIN}}))}})),Et=()=>De(e=>e.searchParams),Cf=()=>De(e=>e.selectedNodesIds),ii=()=>De(e=>e.treeData),x6=()=>De(e=>e.selectedFolders),S6=()=>De(e=>e.selectedResources),b6=()=>De(e=>e.searchConfig),qs=()=>De(e=>e.folderIds),Qs=()=>De(e=>e.resourceIds),xl=()=>De(e=>e.selectedResources.map(t=>t.assetId)),Sl=()=>De(e=>e.selectedResources.filter(t=>t.assetId===t.id)),si=()=>De(e=>e.currentFolder),Ne=()=>De(e=>e.updaters),oi=()=>{const e=si();return(e==null?void 0:e.id)===et.BIN},Ty=()=>De(e=>e.resourceIsTrash),E6=()=>De(e=>e.resourceActionDisable),C6=()=>{const e=si();return(e==null?void 0:e.id)==="default"},k6=()=>Cf().length>1,O6=()=>De(e=>e.status);function R6(){const{appCode:e}=St(),{t}=xe(["common",e]),n=Cf(),r=oi(),i=si(),{gotoPreviousFolder:s}=Ne(),o=t("explorer.tree.trash"),a=t("explorer.filters.mine",{ns:e}),l=(i==null?void 0:i.name)||a;return f.jsx("div",{className:"py-16",children:n.length>1&&!r?f.jsxs("div",{className:"d-flex align-items-center gap-8",children:[f.jsx(zd,{icon:f.jsx(i3,{}),variant:"ghost",color:"tertiary","aria-label":t("back"),className:"ms-n16",onClick:s}),f.jsx("p",{className:"body py-8 text-truncate",children:f.jsx("strong",{children:l})})]}):f.jsx("h2",{className:"body py-8 fw-bold",children:r?o:a})})}function P6(e,{parentId:t,newFolder:n}){return Hs(e,r=>{var i;if(r.id===t){const s=[...((i=r.folder)==null?void 0:i.ancestors)||[]],o=Ef([...s,r.id]);return{...r,children:[...r.children||[],new wl({...n,ancestors:o})]}}else return r})}function j6(e,{folders:t}){return Hs(e,n=>{if(!t.includes(n.id))return n})}function N6(e,t){return t=t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[.,\\/#!$%\\^&\\*;:{}=\-_`~()]/g,""),e=e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[.,\\/#!$%\\^&\\*;:{}=\-_`~()]/g,""),e.includes(t)}function T6(e,{destinationId:t,folders:n}){return Hs(e,(r,i)=>{var s,o;if(t===r.id){const a=[...((s=r.folder)==null?void 0:s.ancestors)||[]],l=Ef([...a,r.id]),u=[...r.children||[]],c=((o=r.children)==null?void 0:o.map(h=>h.id))||[];for(const h of n)if(!c.includes(h)){const g=Rs(h,e);g&&u.push({...g,folder:{...g==null?void 0:g.folder,ancestors:l}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(i==null?void 0:i.id)?void 0:r})}function _6(e,{folderId:t,newFolder:n}){return Hs(e,r=>r.id===t?new wl(n):r)}const{actions:Em,app:I6}=Vs(),_y=()=>Dd({queryKey:["actions"],queryFn:async()=>{const e=Em.map(n=>n.workflow);return await l6(e)},select:e=>Em.map(t=>({...t,available:e[t.workflow]}))}),A6=()=>{const{hotToast:e}=At(Lt),{appCode:t}=St(),{t:n}=xe(),r=lt(),i=Et(),s=si(),o=ii(),{setTreeData:a,setSearchParams:l,setSearchConfig:u}=Ne(),{filters:c,trashed:d,search:h}=i,g=["context",{folderId:c.folder,filters:c,trashed:d,search:h}];return ZS({queryKey:g,queryFn:async({pageParam:p=0})=>await Ry({...i,pagination:{...i.pagination,startIdx:p}}),onError(p){typeof p=="string"&&e.error(n(p))},onSuccess:async p=>{var x,m,v,w;await r.cancelQueries({queryKey:g});const y=[...((x=p==null?void 0:p.pages[0])==null?void 0:x.folders)??[]];(m=p==null?void 0:p.pages[0])!=null&&m.folders&&(p.pages[0].folders=p.pages[0].folders.filter(S=>i.search?N6(S.name,i.search.toString()):!0)),(v=p==null?void 0:p.pages[0])!=null&&v.searchConfig&&u(p.pages[0].searchConfig),(s==null?void 0:s.id)==="default"?a({id:et.DEFAULT,section:!0,children:y.map(S=>new wl(S)),name:n("explorer.filters.mine",{ns:t})}):a(Ny(o,y,i.filters.folder||et.DEFAULT)),l({...i,pagination:(w=p==null?void 0:p.pages[(p==null?void 0:p.pages.length)-1])==null?void 0:w.pagination})},retry:!1,getNextPageParam:p=>p.pagination.startIdx+p.pagination.pageSize})},Lk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=ii(),i=qs(),s=xl(),o=Qs(),a=Sl().length>0,l=a?s:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:d,setSearchParams:h}=Ne(),{filters:g,trashed:p}=n,y=["context",{folderId:g.folder,filters:g,trashed:p}];return dn({mutationFn:async()=>await n6({searchParams:n,folderIds:i,resourceIds:l,useAssetIds:a}),onError(x){typeof x=="string"&&e.error(Kt(x))},onSuccess:async x=>{if(await t.cancelQueries({queryKey:y}),t.getQueryData(y))return t.setQueryData(y,v=>{var w;if(v){const S={...v,pages:v==null?void 0:v.pages.map(k=>{var O;return{...k,folders:k.folders.filter(R=>!i.includes(R.id)),pagination:{...k.pagination,maxIdx:((O=k==null?void 0:k.pagination)==null?void 0:O.maxIdx)-x.resources.length},resources:k.resources.filter(R=>a?!s.includes(R.assetId):!l.includes(R.id))}})},C=j6(r,{folders:i});return d(C),h({...n,pagination:{...n.pagination,maxIdx:((w=n.pagination)==null?void 0:w.maxIdx)-x.resources.length}}),S}})},onSettled:()=>{u(),c()}})},L6=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=qs(),i=xl(),s=Qs(),o=Sl().length>0,a=o?i:s,{setFolderIds:l,setResourceIds:u,setSelectedResources:c,setSelectedFolders:d}=Ne(),{filters:h,trashed:g}=n,p=["context",{folderId:h.folder,filters:h,trashed:g}];return dn({mutationFn:async()=>await i6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(y){typeof y=="string"&&e.error(Kt(y))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:p}),t.getQueryData(p))return t.setQueryData(p,x=>{if(x)return{...x,pages:x==null?void 0:x.pages.map(m=>({...m,folders:m.folders.filter(v=>!r.includes(v.id)),resources:m.resources.filter(v=>o?!i.includes(v.assetId):!a.includes(v.id))}))}})},onSettled:()=>{u([]),c([]),l([]),d([])}})},Mk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=qs(),i=xl(),s=Qs(),o=Sl().length>0,a=o?i:s,{clearSelectedItems:l,clearSelectedIds:u}=Ne(),{filters:c,trashed:d}=n,h=["context",{folderId:c.folder,filters:c,trashed:d}];return dn({mutationFn:async()=>await r6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(g){typeof g=="string"&&e.error(Kt(g))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:h}),t.getQueryData(h))return t.setQueryData(h,p=>{if(p)return{...p,pages:p==null?void 0:p.pages.map(x=>({...x,folders:x.folders.filter(m=>!r.includes(m.id)),resources:x.resources.filter(m=>o?!i.includes(m.assetId):!a.includes(m.id))}))}})},onSettled:()=>{l(),u()}})},Dk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=ii(),i=qs(),s=xl(),o=Qs(),a=Sl().length>0,l=a?s:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:d,setSearchParams:h}=Ne(),{filters:g,trashed:p}=n,y=["context",{folderId:g.folder,filters:g,trashed:p}];return dn({mutationFn:async x=>await s6({searchParams:n,folderId:x,folderIds:i,resourceIds:l,useAssetIds:a}),onError(x){typeof x=="string"&&e.error(Kt(x))},onSuccess:async(x,m)=>{if(t.getQueryData(y))return t.setQueryData(y,w=>{var S;if(w){const C=T6(r,{destinationId:m,folders:i}),k={...w,pages:w==null?void 0:w.pages.map(O=>{var R;return{...O,folders:O.folders.filter(I=>!i.includes(I.id)),pagination:{...O.pagination,maxIdx:((R=O.pagination)==null?void 0:R.maxIdx)-x.resources.length},resources:O.resources.filter(I=>a?!s.includes(I.assetId):!l.includes(I.id))}})};return d(C),h({...n,pagination:{...n.pagination,maxIdx:((S=n.pagination)==null?void 0:S.maxIdx)-x.resources.length}}),k}})},onSettled:()=>{c(),u()}})},Fk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=ii(),{setTreeData:i}=Ne(),{filters:s,trashed:o}=n,a=["context",{folderId:s.folder,filters:s,trashed:o}];return dn({mutationFn:async({name:l,parentId:u})=>await e6({searchParams:n,name:l,parentId:u}),onError(l){typeof l=="string"&&e.error(Kt(l))},onSuccess:async(l,u)=>{await t.cancelQueries({queryKey:a});const c=t.getQueryData(a),d={...l,parentId:u.parentId,children:[],rights:[`creator:${l==null?void 0:l.creator_id}`]};if(c)return t.setQueryData(a,h=>{if(h){const g={...h,pages:h==null?void 0:h.pages.map(y=>({...y,folders:[...y.folders,d]}))},p=P6(r,{parentId:u.parentId,newFolder:d});return i(p),g}})}})},$k=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=ii(),{setFolderIds:i,setSelectedFolders:s,setTreeData:o}=Ne(),{filters:a,trashed:l}=n,u=["context",{folderId:a.folder,filters:a,trashed:l}];return dn({mutationFn:async({folderId:c,name:d,parentId:h})=>await t6({searchParams:n,folderId:c,parentId:h,name:d}),onError(c){typeof c=="string"&&e.error(Kt(c))},onSuccess:async(c,d)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,g=>{if(g){const p={...g,pages:g==null?void 0:g.pages.map(x=>({...x,folders:x.folders.map(m=>m.id===c.id?{...c,parentId:d.parentId,rights:m.rights}:m)}))},y=_6(r,{folderId:d.folderId,newFolder:c});return o(y),p}})},onSettled:()=>{i([]),s([])}})},zk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),{setResourceIds:r,setSelectedResources:i}=Ne(),{filters:s,trashed:o}=n,a=["context",{folderId:s.folder,filters:s,trashed:o}];return dn({mutationFn:async({entId:l,shares:u})=>await o6({searchParams:n,entId:l,shares:u}),onError(l){typeof l=="string"&&e.error(Kt(l))},onSuccess:async(l,u)=>{if(await t.cancelQueries({queryKey:a}),t.getQueryData(a))return t.setQueryData(a,d=>{if(d)return{...d,pages:d==null?void 0:d.pages.map(h=>({...h,resources:h.resources.map(g=>{if(g.assetId===(u==null?void 0:u.entId)){let p=[`creator:${g.creatorId}`];return(u==null?void 0:u.shares.length)>=1&&(p=[...p,...u.shares.flatMap(y=>y.actions.map(x=>`${y.type}:${y.id}:${x.id}`))]),{...g,rights:p}}else return g})}))}})},onSettled:()=>{r([]),i([])}})},Bk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),{filters:r,trashed:i}=n,s=["context",{folderId:r.folder,filters:r,trashed:i}];return dn({mutationFn:async o=>await a6({searchParams:n,params:o}),onError(o){typeof o=="string"&&e.error(Kt(o))},onSuccess:async(o,a)=>{if(await t.cancelQueries({queryKey:s}),t.getQueryData(s))return t.setQueryData(s,u=>{if(u)return{...u,pages:u==null?void 0:u.pages.map(c=>({...c,resources:c.resources.map(d=>{if(d.assetId===(a==null?void 0:a.entId)){const{name:h,thumbnail:g,public:p,description:y,slug:x,...m}=a;return{...d,...m,name:h,thumbnail:g,public:p,description:y,slug:x}}else return d})}))}})}})},Uk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),{user:r}=$d(),i=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return dn({mutationFn:async s=>await c6({searchParams:n,params:s}),onError(s){typeof s=="string"&&e.error(Kt(s))},onSuccess:async(s,o)=>{var u,c,d;await t.cancelQueries({queryKey:i});const a=t.getQueryData(i),l={...o,thumbnail:o.thumbnail,application:I6,assetId:s._id||s.entId||"",id:s._id||s.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),modifiedAt:((u=s.modified)==null?void 0:u.$date)||"",modifierId:((c=s.author)==null?void 0:c.userId)||"",modifierName:((d=s.author)==null?void 0:d.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(a)return t.setQueryData(i,h=>{if(h)return{...h,pages:h==null?void 0:h.pages.map(g=>({...g,resources:[l,...g.resources]}))}})}})},{trashActions:M6}=Vs();function Iy(){const[e,t]=b.useState(!1),[n,r]=b.useState("void"),[i,s]=b.useState(),{t:o}=xe(),{hotToast:a}=At(Lt),l=si(),u=Qs(),c=S6(),d=x6(),h=qs(),g=oi(),p=L6(),y=Ty(),{openResource:x,printSelectedResource:m,openFolder:v,clearSelectedItems:w,clearSelectedIds:S}=Ne(),{data:C}=_y();b.useEffect(()=>{if(u.length===0&&h.length===0){t(!1);return}if(y){t(!1);return}t(!0)},[u,h]);async function k(Z){var ie;switch((ie=document.getElementById("root"))==null||ie.setAttribute("aria-hidden","true"),s(Z),Z.id){case $e.OPEN:return u.length>0?x(c[0]):v({folder:d[0],folderId:d[0].id});case $e.MOVE:return r("move");case $e.PRINT:return m();case $e.DELETE:return r("delete");case $e.RESTORE:return await I();case $e.PUBLISH:return r("publish");case $e.UPD_PROPS:case"edit":return he();case $e.SHARE:return r("share");default:throw Error(`Unknown action: ${Z.id}`)}}function O(Z){const ie=u.length+h.length,ge=u.length===1||h.length===1,Fe=ie===1,Mt=h.length===0;switch(Z.id){case $e.OPEN:return Fe;case $e.MANAGE:return ge;case $e.PUBLISH:return ge&&Mt;case $e.UPD_PROPS:return ge&&Mt;case $e.SHARE:return Mt&&ge;case $e.PRINT:return ge&&Mt;case"edit":return Fe;default:return!0}}function R(){return!0}async function I(){try{if(g)await p.mutate(),a.success(o("explorer.trash.toast"));else throw new Error("Cannot restore untrashed resources");A()}catch{}}function A(){var Z;r("void"),i!=null&&i.id&&((Z=document.getElementById(i==null?void 0:i.id))==null||Z.focus())}const M=Z=>()=>{n===Z&&(A(),w(),S())},z=M("move"),B=M("move"),E=M("delete"),P=M("delete"),L=M("publish"),F=M("publish"),j=M("edit_folder"),N=M("edit_folder"),$=M("edit_resource"),W=M("edit_resource"),H=M("share"),Ye=M("share");function he(){u&&u.length>0?r("edit_resource"):r("edit_folder")}function J(Z){return Z.id==="edit"&&h.length>0?"explorer.rename":`explorer.actions.${Z.id}`}return{onRestore:I,actions:g?M6:C,selectedElement:[...c,...d],currentFolderId:l==null?void 0:l.id,overrideLabel:J,handleClick:k,isActivable:g?R:O,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:z,onMoveSuccess:B,isDeleteModalOpen:n==="delete",onDeleteCancel:P,onDeleteSuccess:E,isPublishModalOpen:n==="publish",onPublishCancel:F,onPublishSuccess:L,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:N,onEditFolderSuccess:j,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:W,onEditResourceSuccess:$,isShareResourceOpen:n==="share",onShareResourceCancel:Ye,onShareResourceSuccess:H,onClearActionBar:A}}function D6({roles:e,rights:t,action:n}){const[r,i]=b.useState(!1),{user:s}=$d(),o=oi();b.useEffect(()=>{u()},[e,t]);const a=async function(c){const d=c instanceof Array?c:[c];if(e instanceof Array){const h=await G.rights().sessionHasAtLeastOneResourceRight(e,d);i(h)}else{const h=await G.rights().sessionHasResourceRight(e,d);i(h)}},l=async function(c){if(e instanceof Array){const d=await G.rights().sessionHasAtLeastOneResourceRightForEachList(e,c);i(d)}else{const d=await G.rights().sessionHasResourceRightForEachList(e,c);i(d)}},u=async function(){var c,d,h;if(e===void 0){i(!0);return}if(o&&((d=(c=t[0])==null?void 0:c.trashedBy)!=null&&d.includes(s==null?void 0:s.userId))&&n==="restore"&&!((h=t[0])!=null&&h.trashed)){i(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await a(t);else{const g=t.map(p=>p.rights);await l(g)}else i(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function F6({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:i}){const{t:s}=xe(),{overrideLabel:o}=Iy(),{visible:a}=D6({roles:t,rights:e,action:n==null?void 0:n.id}),{setResourceActionDisable:l}=Ne(),u=oi();return a?f.jsx(f.Fragment,{children:r}):i?i():u&&!a?f.jsx(ni,{type:"button",color:"primary",variant:"filled",onClick:()=>{l(!0)},children:s(o(n))}):f.jsx(f.Fragment,{})}const $6=b.lazy(async()=>await we(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","Heading.js","Tooltip.js"])),z6=b.lazy(async()=>await we(()=>import("./DeleteModal.js"),[])),B6=b.lazy(async()=>await we(()=>import("./MoveModal.js"),[])),U6=b.lazy(async()=>await we(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),V6=b.lazy(async()=>await we(()=>import("./EditResourceModal.js"),["EditResourceModal.js","Heading.js","index.esm.js","TextArea.js"])),H6=b.lazy(async()=>await we(()=>import("./PublishModal.js"),["PublishModal.js","index.esm.js","Heading.js","TextArea.js"]));function q6(){const{t:e}=xe(),{actions:t,selectedElement:n,isMoveModalOpen:r,isDeleteModalOpen:i,isPublishModalOpen:s,isActionBarOpen:o,isEditFolderOpen:a,overrideLabel:l,onEditFolderCancel:u,onEditFolderSuccess:c,isEditResourceOpen:d,onEditResourceCancel:h,onEditResourceSuccess:g,isShareResourceOpen:p,onShareResourceCancel:y,onShareResourceSuccess:x,onMoveCancel:m,onMoveSuccess:v,onDeleteCancel:w,onDeleteSuccess:S,onPublishCancel:C,onPublishSuccess:k,isActivable:O,handleClick:R}=Iy(),I=ul(o,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return f.jsxs(f.Fragment,{children:[I((A,M)=>M&&f.jsx(Os.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:A,children:f.jsx(e3,{children:t==null?void 0:t.filter(z=>z.available&&z.target==="actionbar").map(z=>O(z)&&f.jsx(F6,{resourceRights:n,roleExpected:z.right,action:z,children:f.jsx(ni,{id:z.id,type:"button",color:"primary",variant:"filled",onClick:()=>{R(z)},children:e(l(z))},z.id)},z.id))})})),f.jsxs(b.Suspense,{fallback:f.jsx(Ve,{}),children:[r&&f.jsx(B6,{isOpen:r,onCancel:m,onSuccess:v}),i&&f.jsx(z6,{isOpen:i,onCancel:w,onSuccess:S}),s&&f.jsx(H6,{isOpen:s,onCancel:C,onSuccess:k}),a&&f.jsx(U6,{edit:!0,isOpen:a,onCancel:u,onSuccess:c}),d&&f.jsx(V6,{edit:!0,isOpen:d,onCancel:h,onSuccess:g}),p&&f.jsx($6,{isOpen:p,onCancel:y,onSuccess:x})]})]})}function Q6(e){return e.charAt(0).toUpperCase()+e.slice(1)}const W6=()=>{var a;const{user:e}=St(),t=Q6(Vs().app),n=(a=e.apps.find(l=>l.isExternal&&l.address.includes("library")&&l.name.includes("library")))==null?void 0:a.address.split("?");let r=n==null?void 0:n[0];r!=null&&r.endsWith("/")||(r=`${r}/`);const i=n==null?void 0:n[1],s=`application%5B0%5D=${t}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${r}search/?${i}&${s}`}},K6=b.lazy(async()=>await we(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js","Heading.js"])),Z6=b.lazy(async()=>await we(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","EmptyScreen.js","Heading.js"])),X6=b.lazy(async()=>await we(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","EmptyScreen.js","Heading.js"])),G6=b.lazy(async()=>await we(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js","Heading.js"])),Y6=b.lazy(async()=>await we(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js","Heading.js"])),J6=b.lazy(async()=>await we(()=>import("./FoldersList.js"),["FoldersList.js","Card.js","Tooltip.js"])),ek=b.lazy(async()=>await we(()=>import("./ResourcesList.js"),["ResourcesList.js","Card.js","Tooltip.js"])),tk=()=>{const e=C6(),t=oi(),n=k6(),r=Et(),{data:i,isError:s,isLoading:o,isFetching:a,fetchNextPage:l}=A6(),u=(i==null?void 0:i.pages[0].folders.length)===0,c=(i==null?void 0:i.pages[0].resources.length)===0,d=u&&c;return s?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(X6,{})}):r.search&&d?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Z6,{})}):!d&&!o?f.jsxs(b.Suspense,{fallback:f.jsx(Ve,{}),children:[f.jsx(J6,{data:i,isFetching:a}),f.jsx(ek,{data:i,isFetching:a,fetchNextPage:l})]}):e&&d?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(K6,{})}):n&&d&&!t?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(G6,{})}):t&&(i==null?void 0:i.pages[0].resources.length)===0?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Y6,{})}):null};function nk({isOpen:e,onCancel:t=()=>({})}){const{t:n}=xe();return Ls.createPortal(f.jsxs(Cn,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[f.jsx(Cn.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),f.jsx(Cn.Body,{children:f.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),f.jsx(Cn.Footer,{children:f.jsx(ni,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const rk=()=>{const[e,t]=b.useState(""),n=G4(e,500),r=b6(),i=O6(),s=Et(),{setSearchParams:o}=Ne(),a=c=>{const d=c.target.value;t(d)},l=c=>{(c.key==="Enter"||c.key==="Return")&&(o({search:n||void 0}),c.preventDefault())},u=c=>{o({search:n||void 0}),c.preventDefault()};return b.useEffect(()=>{const d=n.length==0||n.length>=r.minLength?{search:n||void 0}:{};o({...s,...d,filters:{...s.filters,folder:void 0}})},[n,r.minLength]),b.useEffect(()=>{i==="select"&&t("")},[i]),{inputSearch:e,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}},ik=()=>{const{appCode:e,currentApp:t}=St(),{t:n}=xe(),[r,i]=b.useState([0]),s=si(),{setSearchParams:o}=Ne();b.useEffect(()=>{const l=()=>r.includes(1)?!0:void 0,u=()=>r.includes(2)?!0:void 0,c=()=>r.includes(7)?!0:void 0;o({filters:{owner:l(),public:c(),shared:u(),folder:s?s.id:"default"}})},[s,o,r]);const a=[{label:n("explorer.filter.all",{ns:e}),value:0},{label:n("explorer.filter.owner",{ns:e}),value:1},{label:n("explorer.filter.shared",{ns:e}),value:2},...(t==null?void 0:t.displayName)==Eo.EXERCIZER?[{label:"Exercices interactifs",value:3}]:[],...(t==null?void 0:t.displayName)==Eo.EXERCIZER?[{label:"Exercices à rendre",value:4}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets publics",value:5}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets internes",value:6}]:[],...(t==null?void 0:t.displayName)==Eo.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:7}]:[]];return{selectedFilters:r,options:a,setSelectedFilters:i}},sk=()=>{const{appCode:e}=St(),{t}=xe(),{selectedFilters:n,options:r,setSelectedFilters:i}=ik(),{inputSearch:s,handleInputSearchChange:o,handleKeyPress:a,handleSearchSubmit:l}=rk();return f.jsxs("form",{noValidate:!0,className:"bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8",children:[f.jsxs(Mc,{id:"search",className:"input-group",children:[f.jsx(Av,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:s,onChange:o,onKeyDown:a}),f.jsx(F0,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:l})]}),f.jsx(QE,{content:f.jsx(KE,{isMonoSelection:!0,model:n,onChange:u=>i(u),options:r}),trigger:f.jsx(WE,{icon:f.jsx(y3,{width:20}),title:t("Filtres "),variant:"ghost",badgeContent:n.length>0?n.length:void 0})})]})},ok=({id:e,selected:t,onSelect:n})=>{const{t:r}=xe();return f.jsx("div",{className:"treeview",children:f.jsx("ul",{role:"tree",className:"m-0 p-0",children:f.jsx("li",{id:e,role:"treeitem","aria-selected":t,children:f.jsx("div",{children:f.jsx("div",{className:"action-container",children:f.jsx("div",{onClick:n,role:"button",tabIndex:0,children:f.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[f.jsx(f3,{width:"20",height:"20"}),f.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},ak=b.lazy(async()=>await we(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),lk=()=>{const e=lt(),{t}=xe(),[n,r]=X4(),i=ii(),s=oi(),o=Cf(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:c}=Ne(),d=async h=>{await u(h,e)};return i?f.jsxs(f.Fragment,{children:[f.jsx(aC,{data:i,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:c,onTreeItemUnfold:d}),f.jsx(ok,{id:et.BIN,selected:s,onSelect:a}),f.jsx("div",{className:"d-grid my-16",children:f.jsx(ni,{disabled:s,type:"button",color:"primary",variant:"outline",leftIcon:f.jsx(P3,{}),onClick:r,children:t("explorer.folder.new")})}),f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:n&&f.jsx(ak,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},uk=()=>{const e=E6(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=Ne();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},ck=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!0);return b.useEffect(()=>{(async()=>{const s=await h6();if(s){t(JSON.parse(s==null?void 0:s.showOnboardingTrash));return}t(!0)})()},[]),{isOnboardingTrash:e,isOpen:n,handleSavePreference:async()=>{await p6({onSuccess:()=>r(!1)})},setIsOpen:r}},dk=()=>{const e=Ty(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=Ne();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},fk=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},hk=b.lazy(async()=>await we(()=>import("./OnboardingTrash.js"),[])),pk=b.lazy(async()=>await we(()=>import("./AppAction.js"),[])),mk=b.lazy(async()=>await we(()=>import("./Library.js"),[])),gk=b.lazy(async()=>await we(()=>import("./TrashedResourceModal.js"),[]));function vk(){const{currentApp:e}=St(),{isOnboardingTrash:t,isOpen:n,setIsOpen:r,handleSavePreference:i}=ck(),{data:s}=_y(),{isTrashedModalOpen:o,onTrashedCancel:a}=dk(),{isActionDisableModalOpen:l,onActionDisableCancel:u}=uk();n4();const c=s==null?void 0:s.find(h=>h.id==="publish"),{libraryUrl:d}=W6();return f.jsxs(f.Fragment,{children:[f.jsx(B3,{render:()=>fk({workflow:"create",actions:s})?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(pk,{})}):null,children:f.jsx(q3,{app:e})}),f.jsxs(Qi,{className:"flex-grow-1",children:[f.jsxs(Qi.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[f.jsx(lk,{}),(c==null?void 0:c.available)&&d&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(mk,{url:d})})]}),f.jsxs(Qi.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[f.jsx(sk,{}),f.jsx(R6,{}),f.jsx(tk,{})]}),f.jsx(q6,{}),t&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(hk,{isOpen:n,setIsOpen:r,handleSavePreference:i})}),o&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(gk,{isOpen:o,onCancel:a})}),l&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(nk,{isOpen:l,onCancel:u})})]})]})}function yk(){const{init:e}=St();return e?e?f.jsx(F8,{children:f.jsx(vk,{})}):null:f.jsx(Ve,{position:!1})}const wk=document.getElementById("root"),xk=new ww({queryCache:new Ym({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});Cy(wk).render(f.jsx(b.StrictMode,{children:f.jsxs(MS,{client:xk,children:[f.jsx(GS,{params:Vs(),children:f.jsx(t4,{children:f.jsx(yk,{})})}),f.jsx($8,{initialIsOpen:!1})]})}));export{_y as $,Lt as A,ni as B,KE as C,Mk as D,Lk as E,Mc as F,oi as G,Dk as H,R0 as I,x6 as J,Ne as K,Ve as L,Cn as M,lt as N,ii as O,si as P,Fk as Q,Im as R,P3 as S,aC as T,$k as U,Pi as V,XE as W,ZE as X,Rk as Y,Uk as Z,we as _,Ls as a,fk as a0,cf as a1,Q6 as a2,Vs as a3,QE as a4,WE as a5,Pk as a6,f3 as a7,xc as a8,qs as a9,Ak as aa,J4 as ab,Os as ac,He as ad,Ps as ae,Qs as af,jk as ag,Nk as ah,Ik as ai,l5 as aj,Tk as ak,v0 as al,Ob as am,Ya as b,X4 as c,St as d,Ck as e,Fd as f,K as g,Et as h,$d as i,f as j,G4 as k,S6 as l,Bk as m,zk as n,At as o,kk as p,wp as q,b as r,wc as s,zd as t,xe as u,Ok as v,_k as w,E3 as x,Av as y,H3 as z};
234
+ */var yl=b,B8=a0;function U8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var V8=typeof Object.is=="function"?Object.is:U8,H8=B8.useSyncExternalStore,q8=yl.useRef,Q8=yl.useEffect,W8=yl.useMemo,K8=yl.useDebugValue;Oy.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=q8(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=W8(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&o.hasValue){var p=o.value;if(i(p,g))return d=p}return d=g}if(p=d,V8(c,g))return p;var y=r(g);return i!==void 0&&i(p,y)?p:(c=g,d=y)}var u=!1,c,d,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,i]);var a=H8(e,s[0],s[1]);return Q8(function(){o.hasValue=!0,o.value=a},[a]),K8(a),a};ky.exports=Oy;var Z8=ky.exports;const X8=Ps(Z8),{useSyncExternalStoreWithSelector:G8}=X8;function Y8(e,t=e.getState,n){const r=G8(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return b.useDebugValue(r),r}const bm=e=>{const t=typeof e=="function"?z8(e):e,n=(r,i)=>Y8(t,r,i);return Object.assign(n,t),n},J8=e=>e?bm(e):bm,Ry=async e=>{const t=await G.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},e6=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await G.resource(e.app).createFolder(r)},t6=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const i={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await G.resource(t.app).updateFolder(i)},n6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await G.resource(e.app).trashAll(i,n)},r6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await G.resource(e.app).deleteAll(i,n)},i6=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await G.resource(e.app).restoreAll(i,r)},s6=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:i})=>{const s={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await G.resource(e.app).moveToFolder(s,i)},o6=async({searchParams:e,entId:t,shares:n})=>await G.share().saveRights(e.app,t,n),a6=async({searchParams:e,params:t})=>await G.resource(e.app).update(t),l6=async e=>await G.rights().sessionHasWorkflowRights(e),u6=({searchParams:e,assetId:t})=>G.resource(e.app).gotoView(t),c6=({searchParams:e,params:t})=>G.resource(e.app).create(t),d6=({searchParams:e,assetId:t})=>G.resource(e.app).gotoPrint(t),f6=async({searchParams:e,params:t})=>await G.resource(e.app).publish(t),h6=async()=>await G.conf().getPreference("showOnboardingTrash"),p6=async({onSuccess:e})=>{const t=await G.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return e==null||e(),t};function Ef(e){return e.filter((t,n)=>e.indexOf(t)===n)}function Rs(e,t){var r,i;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((i=t==null?void 0:t.children)==null||i.every(s=>(n=Rs(e,s),n===void 0))),n)}function m6(e,t){var r;const n=Rs(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===et.BIN?[et.BIN]:[et.DEFAULT]}function Py(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>Py(t.id,n)):!1}function Hs(e,t){return jy(e,t)||e}function jy(e,t,n){var i;const r=t(e,n);if((i=r==null?void 0:r.children)!=null&&i.length){const s=[];for(const o of(r==null?void 0:r.children)||[]){const a=jy(o,t,r);a&&s.push(a)}return{...r,children:s}}return r}class wl{constructor(t){fr(this,"id");fr(this,"name");fr(this,"childNumber");fr(this,"section",!1);fr(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const Ny=(e,t,n)=>Hs(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(i=>new wl(i))),r)),{app:g6,types:v6,filters:y6,orders:w6}=Vs(),De=J8()((e,t)=>({filters:y6,orders:w6,searchConfig:{minLength:1},searchParams:{app:g6,types:v6,filters:{folder:"default",owner:void 0,shared:void 0,public:void 0},orders:{updatedAt:"desc"},pagination:{startIdx:0,pageSize:48,maxIdx:0},trashed:!1},treeData:{id:et.DEFAULT,name:Kt("explorer.filters.mine"),section:!0,children:[]},selectedNodesIds:["default"],currentFolder:{id:"default"},selectedFolders:[],selectedResources:[],folderIds:[],resourceIds:[],resourceIsTrash:!1,resourceActionDisable:!1,status:void 0,updaters:{setSearchConfig:n=>e(r=>({searchConfig:{...r.searchConfig,...n}})),setTreeData:n=>e(()=>({treeData:n})),setSearchParams:n=>{e(({searchParams:r})=>r.search!=n.search?n.search?{selectedFolders:[],selectedNodesIds:[],selectedResources:[],currentFolder:void 0,searchParams:{...r,...n,filters:{...r.filters,folder:void 0}}}:{selectedFolders:[],selectedNodesIds:[],selectedResources:[],searchParams:{...r,...n,filters:{...r.filters}}}:{searchParams:{...r,...n}})},setSelectedFolders:n=>e(()=>({selectedFolders:n})),setSelectedResources:n=>e(()=>({selectedResources:n})),setFolderIds:n=>e(()=>({folderIds:n})),setResourceIds:n=>e(()=>({resourceIds:n})),setResourceIsTrash:n=>e(()=>({resourceIsTrash:n})),setResourceActionDisable:n=>e(()=>({resourceActionDisable:n})),setCurrentFolder:n=>e(()=>({currentFolder:n})),clearSelectedItems:()=>e(()=>({selectedFolders:[],selectedResources:[]})),clearSelectedIds:()=>e(()=>({resourceIds:[],folderIds:[]})),openResource:n=>{try{const{searchParams:r}=t();u6({searchParams:r,assetId:n.assetId})}catch{}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:i}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const s=r.find(o=>o.id===i[0]);d6({searchParams:n,assetId:s.assetId})}catch{}},publishApi:async(n,r)=>{const{searchParams:i}=t();return await f6({searchParams:i,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:i,treeData:s}=t(),o=i.filters.folder,a=m6(n,s),l=Ef([...a,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:r||{id:n},searchParams:{...i,search:void 0,filters:{...i.filters,folder:n},trashed:n===et.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:i,searchParams:s}=t();if(e(o=>({...o,status:"unfold"})),!Py(n,i)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await Ry({...s,filters:{...s.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Ny(i,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||et.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:i}=t().updaters,s=Rs(n,r);J4()(),e(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),i({folder:s,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:i}=t().updaters,s=n.length;if(s<2)return;const o=Rs(n[s-2],r);i({folder:o,folderId:(o==null?void 0:o.id)||et.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],searchParams:{...n.searchParams,filters:{folder:et.BIN},trashed:!0},currentFolder:{id:et.BIN}}))}})),Et=()=>De(e=>e.searchParams),Cf=()=>De(e=>e.selectedNodesIds),ii=()=>De(e=>e.treeData),x6=()=>De(e=>e.selectedFolders),S6=()=>De(e=>e.selectedResources),b6=()=>De(e=>e.searchConfig),qs=()=>De(e=>e.folderIds),Qs=()=>De(e=>e.resourceIds),xl=()=>De(e=>e.selectedResources.map(t=>t.assetId)),Sl=()=>De(e=>e.selectedResources.filter(t=>t.assetId===t.id)),si=()=>De(e=>e.currentFolder),Ne=()=>De(e=>e.updaters),oi=()=>{const e=si();return(e==null?void 0:e.id)===et.BIN},Ty=()=>De(e=>e.resourceIsTrash),E6=()=>De(e=>e.resourceActionDisable),C6=()=>{const e=si();return(e==null?void 0:e.id)==="default"},k6=()=>Cf().length>1,O6=()=>De(e=>e.status);function R6(){const{appCode:e}=St(),{t}=xe(["common",e]),n=Cf(),r=oi(),i=si(),{gotoPreviousFolder:s}=Ne(),o=t("explorer.tree.trash"),a=t("explorer.filters.mine",{ns:e}),l=(i==null?void 0:i.name)||a;return f.jsx("div",{className:"py-16",children:n.length>1&&!r?f.jsxs("div",{className:"d-flex align-items-center gap-8",children:[f.jsx(zd,{icon:f.jsx(i3,{}),variant:"ghost",color:"tertiary","aria-label":t("back"),className:"ms-n16",onClick:s}),f.jsx("p",{className:"body py-8 text-truncate",children:f.jsx("strong",{children:l})})]}):f.jsx("h2",{className:"body py-8 fw-bold",children:r?o:a})})}function P6(e,{parentId:t,newFolder:n}){return Hs(e,r=>{var i;if(r.id===t){const s=[...((i=r.folder)==null?void 0:i.ancestors)||[]],o=Ef([...s,r.id]);return{...r,children:[...r.children||[],new wl({...n,ancestors:o})]}}else return r})}function j6(e,{folders:t}){return Hs(e,n=>{if(!t.includes(n.id))return n})}function N6(e,{destinationId:t,folders:n}){return Hs(e,(r,i)=>{var s,o;if(t===r.id){const a=[...((s=r.folder)==null?void 0:s.ancestors)||[]],l=Ef([...a,r.id]),u=[...r.children||[]],c=((o=r.children)==null?void 0:o.map(h=>h.id))||[];for(const h of n)if(!c.includes(h)){const g=Rs(h,e);g&&u.push({...g,folder:{...g==null?void 0:g.folder,ancestors:l}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(i==null?void 0:i.id)?void 0:r})}function T6(e,{folderId:t,newFolder:n}){return Hs(e,r=>r.id===t?new wl(n):r)}const{actions:Em,app:_6}=Vs(),_y=()=>Dd({queryKey:["actions"],queryFn:async()=>{const e=Em.map(n=>n.workflow);return await l6(e)},select:e=>Em.map(t=>({...t,available:e[t.workflow]}))}),I6=()=>{const{hotToast:e}=At(Lt),{appCode:t}=St(),{t:n}=xe(),r=lt(),i=Et(),s=si(),o=ii(),{setTreeData:a,setSearchParams:l,setSearchConfig:u}=Ne(),{filters:c,trashed:d,search:h}=i,g=["context",{folderId:c.folder,filters:c,trashed:d,search:h}];return ZS({queryKey:g,queryFn:async({pageParam:p=0})=>await Ry({...i,pagination:{...i.pagination,startIdx:p}}),onError(p){typeof p=="string"&&e.error(n(p))},onSuccess:async p=>{var x,m,v;await r.cancelQueries({queryKey:g});const y=[...((x=p==null?void 0:p.pages[0])==null?void 0:x.folders)??[]];(m=p==null?void 0:p.pages[0])!=null&&m.searchConfig&&u(p.pages[0].searchConfig),i.search||((s==null?void 0:s.id)==="default"?a({id:et.DEFAULT,section:!0,children:y.map(w=>new wl(w)),name:n("explorer.filters.mine",{ns:t})}):a(Ny(o,y,i.filters.folder||et.DEFAULT))),l({...i,pagination:(v=p==null?void 0:p.pages[(p==null?void 0:p.pages.length)-1])==null?void 0:v.pagination})},retry:!1,getNextPageParam:p=>p.pagination.startIdx+p.pagination.pageSize})},Ak=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=ii(),i=qs(),s=xl(),o=Qs(),a=Sl().length>0,l=a?s:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:d,setSearchParams:h}=Ne(),{filters:g,trashed:p}=n,y=["context",{folderId:g.folder,filters:g,trashed:p}];return dn({mutationFn:async()=>await n6({searchParams:n,folderIds:i,resourceIds:l,useAssetIds:a}),onError(x){typeof x=="string"&&e.error(Kt(x))},onSuccess:async x=>{if(await t.cancelQueries({queryKey:y}),t.getQueryData(y))return t.setQueryData(y,v=>{var w;if(v){const S={...v,pages:v==null?void 0:v.pages.map(k=>{var O;return{...k,folders:k.folders.filter(R=>!i.includes(R.id)),pagination:{...k.pagination,maxIdx:((O=k==null?void 0:k.pagination)==null?void 0:O.maxIdx)-x.resources.length},resources:k.resources.filter(R=>a?!s.includes(R.assetId):!l.includes(R.id))}})},C=j6(r,{folders:i});return d(C),h({...n,pagination:{...n.pagination,maxIdx:((w=n.pagination)==null?void 0:w.maxIdx)-x.resources.length}}),S}})},onSettled:()=>{u(),c()}})},A6=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=qs(),i=xl(),s=Qs(),o=Sl().length>0,a=o?i:s,{setFolderIds:l,setResourceIds:u,setSelectedResources:c,setSelectedFolders:d}=Ne(),{filters:h,trashed:g}=n,p=["context",{folderId:h.folder,filters:h,trashed:g}];return dn({mutationFn:async()=>await i6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(y){typeof y=="string"&&e.error(Kt(y))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:p}),t.getQueryData(p))return t.setQueryData(p,x=>{if(x)return{...x,pages:x==null?void 0:x.pages.map(m=>({...m,folders:m.folders.filter(v=>!r.includes(v.id)),resources:m.resources.filter(v=>o?!i.includes(v.assetId):!a.includes(v.id))}))}})},onSettled:()=>{u([]),c([]),l([]),d([])}})},Lk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=qs(),i=xl(),s=Qs(),o=Sl().length>0,a=o?i:s,{clearSelectedItems:l,clearSelectedIds:u}=Ne(),{filters:c,trashed:d}=n,h=["context",{folderId:c.folder,filters:c,trashed:d}];return dn({mutationFn:async()=>await r6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(g){typeof g=="string"&&e.error(Kt(g))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:h}),t.getQueryData(h))return t.setQueryData(h,p=>{if(p)return{...p,pages:p==null?void 0:p.pages.map(x=>({...x,folders:x.folders.filter(m=>!r.includes(m.id)),resources:x.resources.filter(m=>o?!i.includes(m.assetId):!a.includes(m.id))}))}})},onSettled:()=>{l(),u()}})},Mk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=ii(),i=qs(),s=xl(),o=Qs(),a=Sl().length>0,l=a?s:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:d,setSearchParams:h}=Ne(),{filters:g,trashed:p}=n,y=["context",{folderId:g.folder,filters:g,trashed:p}];return dn({mutationFn:async x=>await s6({searchParams:n,folderId:x,folderIds:i,resourceIds:l,useAssetIds:a}),onError(x){typeof x=="string"&&e.error(Kt(x))},onSuccess:async(x,m)=>{if(t.getQueryData(y))return t.setQueryData(y,w=>{var S;if(w){const C=N6(r,{destinationId:m,folders:i}),k={...w,pages:w==null?void 0:w.pages.map(O=>{var R;return{...O,folders:O.folders.filter(I=>!i.includes(I.id)),pagination:{...O.pagination,maxIdx:((R=O.pagination)==null?void 0:R.maxIdx)-x.resources.length},resources:O.resources.filter(I=>a?!s.includes(I.assetId):!l.includes(I.id))}})};return d(C),h({...n,pagination:{...n.pagination,maxIdx:((S=n.pagination)==null?void 0:S.maxIdx)-x.resources.length}}),k}})},onSettled:()=>{c(),u()}})},Dk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=ii(),{setTreeData:i}=Ne(),{filters:s,trashed:o}=n,a=["context",{folderId:s.folder,filters:s,trashed:o}];return dn({mutationFn:async({name:l,parentId:u})=>await e6({searchParams:n,name:l,parentId:u}),onError(l){typeof l=="string"&&e.error(Kt(l))},onSuccess:async(l,u)=>{await t.cancelQueries({queryKey:a});const c=t.getQueryData(a),d={...l,parentId:u.parentId,children:[],rights:[`creator:${l==null?void 0:l.creator_id}`]};if(c)return t.setQueryData(a,h=>{if(h){const g={...h,pages:h==null?void 0:h.pages.map(y=>({...y,folders:[...y.folders,d]}))},p=P6(r,{parentId:u.parentId,newFolder:d});return i(p),g}})}})},Fk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=ii(),{setFolderIds:i,setSelectedFolders:s,setTreeData:o}=Ne(),{filters:a,trashed:l}=n,u=["context",{folderId:a.folder,filters:a,trashed:l}];return dn({mutationFn:async({folderId:c,name:d,parentId:h})=>await t6({searchParams:n,folderId:c,parentId:h,name:d}),onError(c){typeof c=="string"&&e.error(Kt(c))},onSuccess:async(c,d)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,g=>{if(g){const p={...g,pages:g==null?void 0:g.pages.map(x=>({...x,folders:x.folders.map(m=>m.id===c.id?{...c,parentId:d.parentId,rights:m.rights}:m)}))},y=T6(r,{folderId:d.folderId,newFolder:c});return o(y),p}})},onSettled:()=>{i([]),s([])}})},$k=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),{setResourceIds:r,setSelectedResources:i}=Ne(),{filters:s,trashed:o}=n,a=["context",{folderId:s.folder,filters:s,trashed:o}];return dn({mutationFn:async({entId:l,shares:u})=>await o6({searchParams:n,entId:l,shares:u}),onError(l){typeof l=="string"&&e.error(Kt(l))},onSuccess:async(l,u)=>{if(await t.cancelQueries({queryKey:a}),t.getQueryData(a))return t.setQueryData(a,d=>{if(d)return{...d,pages:d==null?void 0:d.pages.map(h=>({...h,resources:h.resources.map(g=>{if(g.assetId===(u==null?void 0:u.entId)){let p=[`creator:${g.creatorId}`];return(u==null?void 0:u.shares.length)>=1&&(p=[...p,...u.shares.flatMap(y=>y.actions.map(x=>`${y.type}:${y.id}:${x.id}`))]),{...g,rights:p}}else return g})}))}})},onSettled:()=>{r([]),i([])}})},zk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),{filters:r,trashed:i}=n,s=["context",{folderId:r.folder,filters:r,trashed:i}];return dn({mutationFn:async o=>await a6({searchParams:n,params:o}),onError(o){typeof o=="string"&&e.error(Kt(o))},onSuccess:async(o,a)=>{if(await t.cancelQueries({queryKey:s}),t.getQueryData(s))return t.setQueryData(s,u=>{if(u)return{...u,pages:u==null?void 0:u.pages.map(c=>({...c,resources:c.resources.map(d=>{if(d.assetId===(a==null?void 0:a.entId)){const{name:h,thumbnail:g,public:p,description:y,slug:x,...m}=a;return{...d,...m,name:h,thumbnail:g,public:p,description:y,slug:x}}else return d})}))}})}})},Bk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),{user:r}=$d(),i=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return dn({mutationFn:async s=>await c6({searchParams:n,params:s}),onError(s){typeof s=="string"&&e.error(Kt(s))},onSuccess:async(s,o)=>{var u,c,d;await t.cancelQueries({queryKey:i});const a=t.getQueryData(i),l={...o,thumbnail:o.thumbnail,application:_6,assetId:s._id||s.entId||"",id:s._id||s.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),modifiedAt:((u=s.modified)==null?void 0:u.$date)||"",modifierId:((c=s.author)==null?void 0:c.userId)||"",modifierName:((d=s.author)==null?void 0:d.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(a)return t.setQueryData(i,h=>{if(h)return{...h,pages:h==null?void 0:h.pages.map(g=>({...g,resources:[l,...g.resources]}))}})}})},{trashActions:L6}=Vs();function Iy(){const[e,t]=b.useState(!1),[n,r]=b.useState("void"),[i,s]=b.useState(),{t:o}=xe(),{hotToast:a}=At(Lt),l=si(),u=Qs(),c=S6(),d=x6(),h=qs(),g=oi(),p=A6(),y=Ty(),{openResource:x,printSelectedResource:m,openFolder:v,clearSelectedItems:w,clearSelectedIds:S}=Ne(),{data:C}=_y();b.useEffect(()=>{if(u.length===0&&h.length===0){t(!1);return}if(y){t(!1);return}t(!0)},[u,h]);async function k(Z){var ie;switch((ie=document.getElementById("root"))==null||ie.setAttribute("aria-hidden","true"),s(Z),Z.id){case $e.OPEN:return u.length>0?x(c[0]):v({folder:d[0],folderId:d[0].id});case $e.MOVE:return r("move");case $e.PRINT:return m();case $e.DELETE:return r("delete");case $e.RESTORE:return await I();case $e.PUBLISH:return r("publish");case $e.UPD_PROPS:case"edit":return he();case $e.SHARE:return r("share");default:throw Error(`Unknown action: ${Z.id}`)}}function O(Z){const ie=u.length+h.length,ge=u.length===1||h.length===1,Fe=ie===1,Mt=h.length===0;switch(Z.id){case $e.OPEN:return Fe;case $e.MANAGE:return ge;case $e.PUBLISH:return ge&&Mt;case $e.UPD_PROPS:return ge&&Mt;case $e.SHARE:return Mt&&ge;case $e.PRINT:return ge&&Mt;case"edit":return Fe;default:return!0}}function R(){return!0}async function I(){try{if(g)await p.mutate(),a.success(o("explorer.trash.toast"));else throw new Error("Cannot restore untrashed resources");A()}catch{}}function A(){var Z;r("void"),i!=null&&i.id&&((Z=document.getElementById(i==null?void 0:i.id))==null||Z.focus())}const M=Z=>()=>{n===Z&&(A(),w(),S())},z=M("move"),B=M("move"),E=M("delete"),P=M("delete"),L=M("publish"),F=M("publish"),j=M("edit_folder"),N=M("edit_folder"),$=M("edit_resource"),W=M("edit_resource"),H=M("share"),Ye=M("share");function he(){u&&u.length>0?r("edit_resource"):r("edit_folder")}function J(Z){return Z.id==="edit"&&h.length>0?"explorer.rename":`explorer.actions.${Z.id}`}return{onRestore:I,actions:g?L6:C,selectedElement:[...c,...d],currentFolderId:l==null?void 0:l.id,overrideLabel:J,handleClick:k,isActivable:g?R:O,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:z,onMoveSuccess:B,isDeleteModalOpen:n==="delete",onDeleteCancel:P,onDeleteSuccess:E,isPublishModalOpen:n==="publish",onPublishCancel:F,onPublishSuccess:L,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:N,onEditFolderSuccess:j,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:W,onEditResourceSuccess:$,isShareResourceOpen:n==="share",onShareResourceCancel:Ye,onShareResourceSuccess:H,onClearActionBar:A}}function M6({roles:e,rights:t,action:n}){const[r,i]=b.useState(!1),{user:s}=$d(),o=oi();b.useEffect(()=>{u()},[e,t]);const a=async function(c){const d=c instanceof Array?c:[c];if(e instanceof Array){const h=await G.rights().sessionHasAtLeastOneResourceRight(e,d);i(h)}else{const h=await G.rights().sessionHasResourceRight(e,d);i(h)}},l=async function(c){if(e instanceof Array){const d=await G.rights().sessionHasAtLeastOneResourceRightForEachList(e,c);i(d)}else{const d=await G.rights().sessionHasResourceRightForEachList(e,c);i(d)}},u=async function(){var c,d,h;if(e===void 0){i(!0);return}if(o&&((d=(c=t[0])==null?void 0:c.trashedBy)!=null&&d.includes(s==null?void 0:s.userId))&&n==="restore"&&!((h=t[0])!=null&&h.trashed)){i(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await a(t);else{const g=t.map(p=>p.rights);await l(g)}else i(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function D6({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:i}){const{t:s}=xe(),{overrideLabel:o}=Iy(),{visible:a}=M6({roles:t,rights:e,action:n==null?void 0:n.id}),{setResourceActionDisable:l}=Ne(),u=oi();return a?f.jsx(f.Fragment,{children:r}):i?i():u&&!a?f.jsx(ni,{type:"button",color:"primary",variant:"filled",onClick:()=>{l(!0)},children:s(o(n))}):f.jsx(f.Fragment,{})}const F6=b.lazy(async()=>await we(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","Heading.js","Tooltip.js"])),$6=b.lazy(async()=>await we(()=>import("./DeleteModal.js"),[])),z6=b.lazy(async()=>await we(()=>import("./MoveModal.js"),[])),B6=b.lazy(async()=>await we(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),U6=b.lazy(async()=>await we(()=>import("./EditResourceModal.js"),["EditResourceModal.js","Heading.js","index.esm.js","TextArea.js"])),V6=b.lazy(async()=>await we(()=>import("./PublishModal.js"),["PublishModal.js","index.esm.js","Heading.js","TextArea.js"]));function H6(){const{t:e}=xe(),{actions:t,selectedElement:n,isMoveModalOpen:r,isDeleteModalOpen:i,isPublishModalOpen:s,isActionBarOpen:o,isEditFolderOpen:a,overrideLabel:l,onEditFolderCancel:u,onEditFolderSuccess:c,isEditResourceOpen:d,onEditResourceCancel:h,onEditResourceSuccess:g,isShareResourceOpen:p,onShareResourceCancel:y,onShareResourceSuccess:x,onMoveCancel:m,onMoveSuccess:v,onDeleteCancel:w,onDeleteSuccess:S,onPublishCancel:C,onPublishSuccess:k,isActivable:O,handleClick:R}=Iy(),I=ul(o,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return f.jsxs(f.Fragment,{children:[I((A,M)=>M&&f.jsx(Os.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:A,children:f.jsx(e3,{children:t==null?void 0:t.filter(z=>z.available&&z.target==="actionbar").map(z=>O(z)&&f.jsx(D6,{resourceRights:n,roleExpected:z.right,action:z,children:f.jsx(ni,{id:z.id,type:"button",color:"primary",variant:"filled",onClick:()=>{R(z)},children:e(l(z))},z.id)},z.id))})})),f.jsxs(b.Suspense,{fallback:f.jsx(Ve,{}),children:[r&&f.jsx(z6,{isOpen:r,onCancel:m,onSuccess:v}),i&&f.jsx($6,{isOpen:i,onCancel:w,onSuccess:S}),s&&f.jsx(V6,{isOpen:s,onCancel:C,onSuccess:k}),a&&f.jsx(B6,{edit:!0,isOpen:a,onCancel:u,onSuccess:c}),d&&f.jsx(U6,{edit:!0,isOpen:d,onCancel:h,onSuccess:g}),p&&f.jsx(F6,{isOpen:p,onCancel:y,onSuccess:x})]})]})}function q6(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Q6=()=>{var a;const{user:e}=St(),t=q6(Vs().app),n=(a=e.apps.find(l=>l.isExternal&&l.address.includes("library")&&l.name.includes("library")))==null?void 0:a.address.split("?");let r=n==null?void 0:n[0];r!=null&&r.endsWith("/")||(r=`${r}/`);const i=n==null?void 0:n[1],s=`application%5B0%5D=${t}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${r}search/?${i}&${s}`}},W6=b.lazy(async()=>await we(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js","Heading.js"])),K6=b.lazy(async()=>await we(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","EmptyScreen.js","Heading.js"])),Z6=b.lazy(async()=>await we(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","EmptyScreen.js","Heading.js"])),X6=b.lazy(async()=>await we(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js","Heading.js"])),G6=b.lazy(async()=>await we(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js","Heading.js"])),Y6=b.lazy(async()=>await we(()=>import("./FoldersList.js"),["FoldersList.js","Card.js","Tooltip.js"])),J6=b.lazy(async()=>await we(()=>import("./ResourcesList.js"),["ResourcesList.js","Card.js","Tooltip.js"])),ek=()=>{const e=C6(),t=oi(),n=k6(),r=Et(),{data:i,isError:s,isLoading:o,isFetching:a,fetchNextPage:l}=I6(),u=(i==null?void 0:i.pages[0].folders.length)===0,c=(i==null?void 0:i.pages[0].resources.length)===0,d=u&&c;return s?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Z6,{})}):r.search&&d?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(K6,{})}):!d&&!o?f.jsxs(b.Suspense,{fallback:f.jsx(Ve,{}),children:[f.jsx(Y6,{data:i,isFetching:a}),f.jsx(J6,{data:i,isFetching:a,fetchNextPage:l})]}):e&&d?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(W6,{})}):n&&d&&!t?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(X6,{})}):t&&(i==null?void 0:i.pages[0].resources.length)===0?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(G6,{})}):null};function tk({isOpen:e,onCancel:t=()=>({})}){const{t:n}=xe();return Ls.createPortal(f.jsxs(Cn,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[f.jsx(Cn.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),f.jsx(Cn.Body,{children:f.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),f.jsx(Cn.Footer,{children:f.jsx(ni,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const nk=()=>{const e=Et(),[t,n]=b.useState(""),r=G4(t,500),i=b6(),s=O6(),{setSearchParams:o}=Ne(),a=c=>{const d=c.target.value;n(d)},l=c=>{(c.key==="Enter"||c.key==="Return")&&(o({search:r||void 0}),c.preventDefault())},u=c=>{o({search:r||void 0}),c.preventDefault()};return b.useEffect(()=>{const d=r.length==0||r.length>=i.minLength?{search:r||void 0}:{};o({...e,...d})},[r,i.minLength]),b.useEffect(()=>{s==="select"&&n("")},[s]),b.useEffect(()=>{n(()=>{var c;return((c=e.search)==null?void 0:c.toString())??""})},[e.search]),{inputSearch:t,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}},rk=()=>{const{appCode:e,currentApp:t}=St(),{t:n}=xe(),[r,i]=b.useState([0]),s=si(),{setSearchParams:o}=Ne();b.useEffect(()=>{const l=()=>r.includes(1)?!0:void 0,u=()=>r.includes(2)?!0:void 0,c=()=>r.includes(7)?!0:void 0;o({filters:{owner:l(),public:c(),shared:u(),folder:s?s.id:"default"}})},[s,o,r]);const a=[{label:n("explorer.filter.all",{ns:e}),value:0},{label:n("explorer.filter.owner",{ns:e}),value:1},{label:n("explorer.filter.shared",{ns:e}),value:2},...(t==null?void 0:t.displayName)==Eo.EXERCIZER?[{label:"Exercices interactifs",value:3}]:[],...(t==null?void 0:t.displayName)==Eo.EXERCIZER?[{label:"Exercices à rendre",value:4}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets publics",value:5}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets internes",value:6}]:[],...(t==null?void 0:t.displayName)==Eo.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:7}]:[]];return{selectedFilters:r,options:a,setSelectedFilters:i}},ik=()=>{const{appCode:e}=St(),{t}=xe(),{selectedFilters:n,options:r,setSelectedFilters:i}=rk(),{inputSearch:s,handleInputSearchChange:o,handleKeyPress:a,handleSearchSubmit:l}=nk();return f.jsxs("form",{noValidate:!0,className:"bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8",children:[f.jsxs(Mc,{id:"search",className:"input-group",children:[f.jsx(Av,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:s,onChange:o,onKeyDown:a}),f.jsx(F0,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:l})]}),f.jsx(QE,{content:f.jsx(KE,{isMonoSelection:!0,model:n,onChange:u=>i(u),options:r}),trigger:f.jsx(WE,{icon:f.jsx(y3,{width:20}),title:t("Filtres "),variant:"ghost",badgeContent:n.length>0?n.length:void 0})})]})},sk=({id:e,selected:t,onSelect:n})=>{const{t:r}=xe();return f.jsx("div",{className:"treeview",children:f.jsx("ul",{role:"tree",className:"m-0 p-0",children:f.jsx("li",{id:e,role:"treeitem","aria-selected":t,children:f.jsx("div",{children:f.jsx("div",{className:"action-container",children:f.jsx("div",{onClick:n,role:"button",tabIndex:0,children:f.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[f.jsx(f3,{width:"20",height:"20"}),f.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},ok=b.lazy(async()=>await we(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),ak=()=>{const e=lt(),{t}=xe(),[n,r]=X4(),i=ii(),s=oi(),o=Cf(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:c}=Ne(),d=async h=>{await u(h,e)};return i?f.jsxs(f.Fragment,{children:[f.jsx(aC,{data:i,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:c,onTreeItemUnfold:d}),f.jsx(sk,{id:et.BIN,selected:s,onSelect:a}),f.jsx("div",{className:"d-grid my-16",children:f.jsx(ni,{disabled:s,type:"button",color:"primary",variant:"outline",leftIcon:f.jsx(P3,{}),onClick:r,children:t("explorer.folder.new")})}),f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:n&&f.jsx(ok,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},lk=()=>{const e=E6(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=Ne();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},uk=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!0);return b.useEffect(()=>{(async()=>{const s=await h6();if(s){t(JSON.parse(s==null?void 0:s.showOnboardingTrash));return}t(!0)})()},[]),{isOnboardingTrash:e,isOpen:n,handleSavePreference:async()=>{await p6({onSuccess:()=>r(!1)})},setIsOpen:r}},ck=()=>{const e=Ty(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=Ne();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},dk=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},fk=b.lazy(async()=>await we(()=>import("./OnboardingTrash.js"),[])),hk=b.lazy(async()=>await we(()=>import("./AppAction.js"),[])),pk=b.lazy(async()=>await we(()=>import("./Library.js"),[])),mk=b.lazy(async()=>await we(()=>import("./TrashedResourceModal.js"),[]));function gk(){const{currentApp:e}=St(),{isOnboardingTrash:t,isOpen:n,setIsOpen:r,handleSavePreference:i}=uk(),{data:s}=_y(),{isTrashedModalOpen:o,onTrashedCancel:a}=ck(),{isActionDisableModalOpen:l,onActionDisableCancel:u}=lk();n4();const c=s==null?void 0:s.find(h=>h.id==="publish"),{libraryUrl:d}=Q6();return f.jsxs(f.Fragment,{children:[f.jsx(B3,{render:()=>dk({workflow:"create",actions:s})?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(hk,{})}):null,children:f.jsx(q3,{app:e})}),f.jsxs(Qi,{className:"flex-grow-1",children:[f.jsxs(Qi.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[f.jsx(ak,{}),(c==null?void 0:c.available)&&d&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(pk,{url:d})})]}),f.jsxs(Qi.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[f.jsx(ik,{}),f.jsx(R6,{}),f.jsx(ek,{})]}),f.jsx(H6,{}),t&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(fk,{isOpen:n,setIsOpen:r,handleSavePreference:i})}),o&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(mk,{isOpen:o,onCancel:a})}),l&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(tk,{isOpen:l,onCancel:u})})]})]})}function vk(){const{init:e}=St();return e?e?f.jsx(F8,{children:f.jsx(gk,{})}):null:f.jsx(Ve,{position:!1})}const yk=document.getElementById("root"),wk=new ww({queryCache:new Ym({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});Cy(yk).render(f.jsx(b.StrictMode,{children:f.jsxs(MS,{client:wk,children:[f.jsx(GS,{params:Vs(),children:f.jsx(t4,{children:f.jsx(vk,{})})}),f.jsx($8,{initialIsOpen:!1})]})}));export{_y as $,Lt as A,ni as B,KE as C,Lk as D,Ak as E,Mc as F,oi as G,Mk as H,R0 as I,x6 as J,Ne as K,Ve as L,Cn as M,lt as N,ii as O,si as P,Dk as Q,Im as R,P3 as S,aC as T,Fk as U,Pi as V,XE as W,ZE as X,Ok as Y,Bk as Z,we as _,Ls as a,dk as a0,cf as a1,q6 as a2,Vs as a3,QE as a4,WE as a5,Rk as a6,f3 as a7,xc as a8,qs as a9,Ik as aa,J4 as ab,Os as ac,He as ad,Ps as ae,Qs as af,Pk as ag,jk as ah,_k as ai,l5 as aj,Nk as ak,v0 as al,Ob as am,Ya as b,X4 as c,St as d,Ek as e,Fd as f,K as g,Et as h,$d as i,f as j,G4 as k,S6 as l,zk as m,$k as n,At as o,Ck as p,wp as q,b as r,wc as s,zd as t,xe as u,kk as v,Tk as w,E3 as x,Av as y,H3 as z};
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-SNAPSHOT 27/09/2023 15:52:02
1
+ ode-explorer=1.0-SNAPSHOT 27/09/2023 16:36:50
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.0.2-dev.202309271551",
3
+ "version": "1.0.2-dev.202309271636",
4
4
  "description": "Open Digital Education Explorer",
5
5
  "homepage": "https://github.com/opendigitaleducation/explorer#readme",
6
6
  "bugs": {