@gamecrafters/base-ui 0.0.30 → 0.0.31
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/build/main.cjs.js
CHANGED
|
@@ -23,7 +23,7 @@ process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return
|
|
|
23
23
|
<%s {...props} />
|
|
24
24
|
React keys must be passed directly to JSX without using spread:
|
|
25
25
|
let props = %s;
|
|
26
|
-
<%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require("react"),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),q=o(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?Ot():kt()}))();const At={root:`accordion`};function jt(e,t){let{as:n=`div`,className:r,value:i,defaultValue:a,onChange:o,multiple:s=!1,disabled:c,headingLevel:u=`h3`,keepMounted:d=!0,hiddenUntilFound:f=!1,...p}=e,m=i!==void 0,[h,g]=l.useState(()=>a??[]),_=m?i:h,v=(e,t)=>{if(c||_.includes(e)===t)return;let n=t?s?[..._,e]:[e]:_.filter(t=>t!==e);m||g(n),o?.(n)},y={open:_,setOpen:v,toggle:e=>v(e,!_.includes(e)),disabled:c,headingLevel:u,keepMounted:d,hiddenUntilFound:f};return(0,q.jsx)(Dt.Provider,{value:y,children:(0,q.jsx)(n,{ref:t,className:G(At.root,r),"data-component":`Accordion`,"data-multiple":s,"data-disabled":!!c,...p})})}jt.displayName=`Accordion`;var Mt=K(jt);function J(e,t,n){let r=n(),i=Object.keys(r),a=u.default.forwardRef(({"aria-label":e,"aria-labelledby":n,tabIndex:a,className:o=``,fill:s=`currentColor`,size:c=16,id:l,title:d,style:f,...p},m)=>{let h=c,g=Nt(i,h),_=r[g].width,v=_/parseInt(g,10)*h,y=r[g].path,b=e||n,x=b?`img`:void 0,S=`${t} ${o}`.trim();return u.default.createElement(`svg`,{ref:m,...p,"aria-hidden":b?void 0:`true`,tabIndex:a,focusable:(a??-1)>=0?`true`:`false`,"aria-label":e,"aria-labelledby":n,className:S,role:x,viewBox:`0 0 ${_} ${g}`,width:v,height:h,fill:s,id:l,display:`inline-block`,overflow:`visible`,style:f},d?u.default.createElement(`title`,null,d):null,y)});return a.displayName=e,a}function Nt(e,t){return e.map(e=>parseInt(e,10)).reduce((e,n)=>n<=t?n:e,parseInt(e[0],10)).toString()}const Pt=J(`AddRegular`,`icon icon-add-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 3.25a.75.75 0 0 1 .75.75v7.25H20a.75.75 0 0 1 0 1.5h-7.25V20a.75.75 0 0 1-1.5 0v-7.25H4a.75.75 0 0 1 0-1.5h7.25V4a.75.75 0 0 1 .75-.75`})}})),Ft=J(`ArchiveRegular`,`icon icon-archive-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M10.25 11a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5zM3 5.25A2.25 2.25 0 0 1 5.25 3h13.5A2.25 2.25 0 0 1 21 5.25v1.5c0 .78-.397 1.467-1 1.871v8.629A3.75 3.75 0 0 1 16.25 21h-8.5A3.75 3.75 0 0 1 4 17.25V8.621A2.25 2.25 0 0 1 3 6.75zM5.5 9v8.25a2.25 2.25 0 0 0 2.25 2.25h8.5a2.25 2.25 0 0 0 2.25-2.25V9zm-.25-4.5a.75.75 0 0 0-.75.75v1.5c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-1.5a.75.75 0 0 0-.75-.75z`})}})),It=J(`ArrowClockwiseRegular`,`icon icon-arrow-clockwise-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 4.5a7.5 7.5 0 1 0 7.419 6.392c-.067-.454.265-.892.724-.892.37 0 .696.256.752.623Q21 11.297 21 12a9 9 0 1 1-3-6.708V4.25a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.47 7.47 0 0 0-5.1-2`})}})),Lt=J(`ArrowDownRegular`,`icon icon-arrow-down-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M19.79 13.267a.75.75 0 0 0-1.086-1.034l-5.954 6.251V3.75a.75.75 0 1 0-1.5 0v14.734l-5.955-6.251a.75.75 0 1 0-1.086 1.034l7.067 7.42c.16.168.366.268.58.3a.8.8 0 0 0 .29-.001 1 1 0 0 0 .578-.3z`})}})),Rt=J(`ArrowLeftRegular`,`icon icon-arrow-left-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M10.733 19.79a.75.75 0 0 0 1.034-1.086L5.516 12.75H20.25a.75.75 0 0 0 0-1.5H5.516l6.251-5.955a.75.75 0 0 0-1.034-1.086l-7.42 7.067a1 1 0 0 0-.3.58.8.8 0 0 0 .001.289 1 1 0 0 0 .3.579z`})}})),zt=J(`ArrowMaximizeRegular`,`icon icon-arrow-maximize-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M19.25 4a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0V6.56L6.56 18.5h5.69a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 1.5 0v5.69L17.44 5.5h-5.69a.75.75 0 0 1 0-1.5z`})}})),Bt=J(`ArrowMinimizeRegular`,`icon icon-arrow-minimize-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M10.25 13a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0v-5.69l-6.22 6.22a.75.75 0 1 1-1.06-1.06l6.22-6.22H2.75a.75.75 0 0 1 0-1.5zM20.72 2.22a.75.75 0 1 1 1.06 1.06L15.56 9.5h5.69a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 1.5 0v5.69z`})}})),Vt=J(`ArrowMoveRegular`,`icon icon-arrow-move-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M15.28 6.03a.75.75 0 0 1-1.06 0l-1.47-1.47v3.69a.75.75 0 0 1-1.5 0V4.56L9.78 6.03a.75.75 0 0 1-1.06-1.06l2.75-2.75a.75.75 0 0 1 1.06 0l2.75 2.75a.75.75 0 0 1 0 1.06m-9.25 8.19a.75.75 0 1 1-1.06 1.06l-2.75-2.75a.75.75 0 0 1 0-1.06l2.75-2.75a.75.75 0 0 1 1.06 1.06l-1.47 1.47h3.69a.75.75 0 0 1 0 1.5H4.56zm11.94 1.06a.75.75 0 0 1 0-1.06l1.47-1.47h-3.69a.75.75 0 0 1 0-1.5h3.69l-1.47-1.47a.75.75 0 0 1 1.06-1.06l2.75 2.75a.75.75 0 0 1 0 1.06l-2.75 2.75a.75.75 0 0 1-1.06 0m-2.69 2.69a.75.75 0 0 0-1.06 0l-1.47 1.47v-3.69a.75.75 0 0 0-1.5 0v3.69l-1.47-1.47a.75.75 0 0 0-1.06 1.06l2.75 2.75a.75.75 0 0 0 1.06 0l2.75-2.75a.75.75 0 0 0 0-1.06`})}})),Ht=J(`ArrowRedoRegular`,`icon icon-arrow-redo-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M19.25 2a.75.75 0 0 0-.743.648l-.007.102v5.69l-4.574-4.56a6.41 6.41 0 0 0-8.878-.179l-.186.18a6.41 6.41 0 0 0 0 9.063l8.845 8.84a.75.75 0 0 0 1.06-1.062l-8.845-8.838a4.91 4.91 0 0 1 6.766-7.112l.178.17L17.438 9.5H11.75a.75.75 0 0 0-.743.648L11 10.25c0 .38.282.694.648.743l.102.007h7.5a.75.75 0 0 0 .743-.648L20 10.25v-7.5a.75.75 0 0 0-.75-.75`})}})),Ut=J(`ArrowSortDownRegular`,`icon icon-arrow-sort-down-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`m11.65 4.007.1-.007a.75.75 0 0 1 .744.648l.007.102-.001 12.696 3.22-3.221a.75.75 0 0 1 .976-.073l.084.072a.75.75 0 0 1 .073.977l-.072.084-4.497 4.5a.75.75 0 0 1-.976.073l-.084-.073-4.504-4.5a.75.75 0 0 1 .976-1.133l.084.072L11 17.442V4.75a.75.75 0 0 1 .65-.743l.1-.007z`})}})),Wt=J(`ArrowSortUpRegular`,`icon icon-arrow-sort-up-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`m6.72 8.715 4.494-4.495a.75.75 0 0 1 .976-.073l.085.072 4.504 4.495a.75.75 0 0 1-.975 1.134l-.084-.072-3.223-3.217v12.696a.75.75 0 0 1-.648.743l-.101.007a.75.75 0 0 1-.743-.648l-.007-.102-.001-12.698L7.78 9.775a.75.75 0 0 1-.976.073l-.084-.073a.75.75 0 0 1-.073-.976zl4.494-4.495z`})}})),Gt=J(`ArrowUndoRegular`,`icon icon-arrow-undo-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M4.75 2a.75.75 0 0 1 .743.648l.007.102v5.69l4.574-4.56a6.41 6.41 0 0 1 8.879-.179l.186.18a6.41 6.41 0 0 1 0 9.063l-8.846 8.84a.75.75 0 0 1-1.06-1.062l8.845-8.838a4.91 4.91 0 0 0-6.766-7.112l-.178.17L6.562 9.5h5.688a.75.75 0 0 1 .743.648l.007.102a.75.75 0 0 1-.648.743L12.25 11h-7.5a.75.75 0 0 1-.743-.648L4 10.25v-7.5A.75.75 0 0 1 4.75 2`})}})),Kt=J(`ArrowUpRegular`,`icon icon-arrow-up-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M4.209 10.733a.75.75 0 0 0 1.086 1.034l5.954-6.251V20.25a.75.75 0 0 0 1.5 0V5.516l5.955 6.251a.75.75 0 0 0 1.087-1.034l-7.067-7.42a1 1 0 0 0-.58-.3.8.8 0 0 0-.29.001 1 1 0 0 0-.578.3z`})}})),qt=J(`ArrowUploadRegular`,`icon icon-arrow-upload-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M18.25 3.51a.75.75 0 1 0 0-1.5l-13-.004a.75.75 0 1 0 0 1.5zm-6.602 18.488.102.007a.75.75 0 0 0 .743-.649l.007-.101-.001-13.685 3.722 3.72a.75.75 0 0 0 .976.073l.085-.073a.75.75 0 0 0 .072-.977l-.073-.084-4.997-4.996a.75.75 0 0 0-.976-.073l-.085.072L6.22 10.23a.75.75 0 0 0 .976 1.134l.084-.073 3.719-3.713L11 21.255c0 .38.282.693.648.743`})}})),Jt=J(`BranchRegular`,`icon icon-branch-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M4 5.5a3.5 3.5 0 1 1 4.489 3.358 5.5 5.5 0 0 0 5.261 3.892h.33a3.501 3.501 0 0 1 6.92.75 3.5 3.5 0 0 1-6.92.75h-.33a6.99 6.99 0 0 1-5.5-2.67v3.5A3.501 3.501 0 0 1 7.5 22a3.5 3.5 0 0 1-.75-6.92V8.92A3.5 3.5 0 0 1 4 5.5m3.5-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 13a2 2 0 1 0 0 4 2 2 0 0 0 0-4m8-3a2 2 0 1 0 4 0 2 2 0 0 0-4 0`})}})),Yt=J(`CalendarLtrRegular`,`icon icon-calendar-ltr-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M17.75 3A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3zm1.75 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h11.5a1.75 1.75 0 0 0 1.75-1.75zm-11.75 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m-4.25-4a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m1.5-6H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75`})}})),Xt=J(`CheckmarkCircleRegular`,`icon icon-checkmark-circle-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-1.25 9.94 4.47-4.47a.75.75 0 0 1 1.133.976l-.073.084-5 5a.75.75 0 0 1-.976.073l-.084-.073-2.5-2.5a.75.75 0 0 1 .976-1.133l.084.073zl4.47-4.47z`})}})),Zt=J(`CheckmarkRegular`,`icon icon-checkmark-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M4.53 12.97a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l11-11a.75.75 0 0 0-1.06-1.06L8.5 16.94z`})}})),Qt=J(`ChevronDownRegular`,`icon icon-chevron-down-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M4.22 8.47a.75.75 0 0 1 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06`})}})),$t=J(`ChevronLeftRegular`,`icon icon-chevron-left-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0`})}})),en=J(`ChevronRightRegular`,`icon icon-chevron-right-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M8.47 4.22a.75.75 0 0 0 0 1.06L15.19 12l-6.72 6.72a.75.75 0 1 0 1.06 1.06l7.25-7.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0`})}})),tn=J(`ChevronUpRegular`,`icon icon-chevron-up-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M4.22 15.53a.75.75 0 0 0 1.06 0L12 8.81l6.72 6.72a.75.75 0 1 0 1.06-1.06l-7.25-7.25a.75.75 0 0 0-1.06 0l-7.25 7.25a.75.75 0 0 0 0 1.06`})}})),nn=J(`CircleHintRegular`,`icon icon-circle-hint-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M7.59 3.963c-.172-.414-.666-.591-1.041-.347a10.05 10.05 0 0 0-2.93 2.931c-.246.376-.069.87.345 1.04.355.147.76.004.973-.315a8.6 8.6 0 0 1 2.337-2.337c.319-.213.462-.618.315-.972m2.758-.302c-.377.074-.765-.11-.911-.465-.172-.414.052-.888.49-.98a10 10 0 0 1 4.146-.001c.439.092.663.566.491.98a.806.806 0 0 1-.91.465 8.5 8.5 0 0 0-3.306.001m9.69 3.925c-.354.147-.758.003-.972-.315a8.6 8.6 0 0 0-2.339-2.338c-.318-.213-.462-.618-.315-.972.171-.414.665-.591 1.04-.347 1.17.762 2.17 1.762 2.933 2.931.245.376.068.87-.347 1.041m.768 6.978c-.354-.147-.539-.535-.465-.911a8.6 8.6 0 0 0 0-3.309c-.075-.376.11-.764.465-.91.413-.172.887.051.98.49a10 10 0 0 1 0 4.15c-.092.438-.566.661-.98.49m-4.393 5.474c-.147-.354-.003-.759.315-.972a8.6 8.6 0 0 0 2.34-2.34c.213-.318.618-.461.972-.315.414.172.591.665.347 1.04a10.05 10.05 0 0 1-2.934 2.934c-.375.244-.869.067-1.04-.347m-6.978.766c.147-.355.535-.54.911-.465a8.5 8.5 0 0 0 3.309 0c.376-.074.764.111.91.465.172.414-.052.889-.49.98a10 10 0 0 1-4.15 0c-.438-.092-.661-.566-.49-.98M3.963 16.41c.354-.147.759-.003.972.315a8.6 8.6 0 0 0 2.338 2.34c.318.213.462.618.315.972-.171.414-.665.59-1.04.346a10.05 10.05 0 0 1-2.932-2.933c-.244-.375-.067-.869.347-1.04m-.765-6.975c.354.147.539.535.465.91a8.5 8.5 0 0 0 0 3.306c.073.376-.112.764-.466.91-.414.172-.888-.051-.98-.49a10 10 0 0 1 0-4.146c.093-.438.567-.662.98-.49`})}})),rn=J(`CircleRegular`,`icon icon-circle-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12`})}})),an=J(`CircleSmallRegular`,`icon icon-circle-small-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 9.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M8 12a4 4 0 1 1 8 0 4 4 0 0 1-8 0`})}})),on=J(`ClockRegular`,`icon icon-clock-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-.007 4.648a.75.75 0 0 0-1.493.102v6l.007.102a.75.75 0 0 0 .743.648h4l.102-.007A.75.75 0 0 0 15.25 12H12V6.75z`})}})),sn=J(`CodeRegular`,`icon icon-code-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`m8.066 18.943 6.5-14.5a.75.75 0 0 1 1.404.518l-.036.096-6.5 14.5a.75.75 0 0 1-1.404-.518zl6.5-14.5zM2.22 11.47l4.25-4.25a.75.75 0 0 1 1.133.976l-.073.085L3.81 12l3.72 3.719a.75.75 0 0 1-.976 1.133l-.084-.073-4.25-4.25a.75.75 0 0 1-.073-.976zl4.25-4.25zm14.25-4.25a.75.75 0 0 1 .976-.073l.084.073 4.25 4.25a.75.75 0 0 1 .073.976l-.073.085-4.25 4.25a.75.75 0 0 1-1.133-.977l.073-.084L20.19 12l-3.72-3.72a.75.75 0 0 1 0-1.06`})}})),cn=J(`CopyRegular`,`icon icon-copy-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M8.5 8.5H6.25a1.75 1.75 0 0 0-1.75 1.75v7.5c0 .966.784 1.75 1.75 1.75h5c.882 0 1.61-.652 1.73-1.5h1.51a3.25 3.25 0 0 1-3.24 3h-5A3.25 3.25 0 0 1 3 17.75v-7.5A3.25 3.25 0 0 1 6.25 7H8.5zM17.75 3A3.25 3.25 0 0 1 21 6.25v7.5A3.25 3.25 0 0 1 17.75 17h-5a3.25 3.25 0 0 1-3.25-3.25v-7.5A3.25 3.25 0 0 1 12.75 3zm-5 1.5A1.75 1.75 0 0 0 11 6.25v7.5c0 .966.784 1.75 1.75 1.75h5a1.75 1.75 0 0 0 1.75-1.75v-7.5a1.75 1.75 0 0 0-1.75-1.75z`})}})),ln=J(`DismissCircleRegular`,`icon icon-dismiss-circle-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m3.446 4.897.084.073a.75.75 0 0 1 .073.976l-.073.084L13.061 12l2.47 2.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-2.47 2.47a.75.75 0 0 1-.976.072l-.084-.073a.75.75 0 0 1-.073-.976l.073-.084L10.939 12l-2.47-2.47a.75.75 0 0 1-.072-.976l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l2.47-2.47a.75.75 0 0 1 .976-.072`})}})),un=J(`DismissRegular`,`icon icon-dismiss-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`m4.397 4.554.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l6.47-6.47a.75.75 0 1 1 1.06 1.061L13.061 12l6.47 6.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-6.47 6.47a.75.75 0 0 1-1.06-1.061L10.939 12l-6.47-6.47a.75.75 0 0 1-.072-.976l.073-.084z`})}})),dn=J(`DocumentRegular`,`icon icon-document-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 12.172 2zm-.5 2a.5.5 0 0 1 .5-.5h6V8a2 2 0 0 0 2 2h4.5v10a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5zm11.88 4.5H14a.5.5 0 0 1-.5-.5V4.62z`})}})),fn=J(`ErrorCircleRegular`,`icon icon-error-circle-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-.001 11.002a.999.999 0 1 1-.001 1.997.999.999 0 0 1 .001-1.997M11.994 7a.75.75 0 0 1 .744.647l.007.102.004 4.502a.75.75 0 0 1-1.493.103l-.007-.102-.004-4.501a.75.75 0 0 1 .75-.751`})}})),pn=J(`EyeOffRegular`,`icon icon-eye-off-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M2.22 2.22a.75.75 0 0 0-.073.976l.073.084 4.034 4.035a10 10 0 0 0-3.955 5.75.75.75 0 0 0 1.455.364 8.5 8.5 0 0 1 3.58-5.034l1.81 1.81A4 4 0 0 0 14.8 15.86l5.919 5.92a.75.75 0 0 0 1.133-.977l-.073-.084-6.113-6.114.001-.002-1.2-1.198-2.87-2.87h.002l-2.88-2.877.001-.002-1.133-1.13L3.28 2.22a.75.75 0 0 0-1.06 0m7.984 9.045 3.535 3.536a2.5 2.5 0 0 1-3.535-3.535M12 5.5c-1 0-1.97.148-2.889.425l1.237 1.236a8.503 8.503 0 0 1 9.899 6.272.75.75 0 0 0 1.455-.363A10 10 0 0 0 12 5.5m.195 3.51 3.801 3.8a4.003 4.003 0 0 0-3.801-3.8`})}})),mn=J(`EyeRegular`,`icon icon-eye-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 9.005a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 1.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M12 5.5c4.613 0 8.596 3.15 9.701 7.564a.75.75 0 1 1-1.455.365 8.504 8.504 0 0 0-16.493.004.75.75 0 0 1-1.456-.363A10 10 0 0 1 12 5.5`})}})),hn=J(`FilterDismissRegular`,`icon icon-filter-dismiss-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M23 7.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-7.146-2.354a.5.5 0 0 0-.708.708L16.793 7.5l-1.647 1.646a.5.5 0 0 0 .708.708L17.5 8.207l1.646 1.647a.5.5 0 0 0 .708-.708L18.207 7.5l1.647-1.646a.5.5 0 0 0-.708-.708L17.5 6.793zM13.346 12.5a6.5 6.5 0 0 1-1.324-1.5H7.5a.75.75 0 0 0 0 1.5zM11 7.5q.002-.776.174-1.5H4.5a.75.75 0 0 0 0 1.5zm2.5 8.5a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5z`})}})),gn=J(`FolderOpenRegular`,`icon icon-folder-open-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3.5 6.25c0-.966.784-1.75 1.75-1.75h2.88a.75.75 0 0 1 .53.22l2.06 2.06c.142.141.332.22.531.22h5.5c.967 0 1.75.784 1.75 1.75q.001.13.041.246H8.72a3.75 3.75 0 0 0-3.25 1.874L3.5 14.283zM2 17.788A3.25 3.25 0 0 0 5.25 21H11q.044 0 .086-.005h5.195a3.75 3.75 0 0 0 3.248-1.875l3.03-5.25c1.216-2.104-.225-4.72-2.602-4.868A.8.8 0 0 0 20 8.75a3.25 3.25 0 0 0-3.25-3.25h-5.19L9.72 3.659A2.25 2.25 0 0 0 8.129 3H5.25A3.25 3.25 0 0 0 2 6.25zm6.719-7.292h11.026c1.347 0 2.19 1.458 1.515 2.625l-3.03 5.25a2.25 2.25 0 0 1-1.949 1.124H5.255c-1.347 0-2.19-1.458-1.516-2.625l3.031-5.25a2.25 2.25 0 0 1 1.949-1.124`})}})),_n=J(`FolderRegular`,`icon icon-folder-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3.5 6.25V8h4.629a.75.75 0 0 0 .53-.22l1.53-1.53-1.53-1.53a.75.75 0 0 0-.53-.22H5.25A1.75 1.75 0 0 0 3.5 6.25m-1.5 0A3.25 3.25 0 0 1 5.25 3h2.879a2.25 2.25 0 0 1 1.59.659L11.562 5.5h7.189A3.25 3.25 0 0 1 22 8.75v9A3.25 3.25 0 0 1 18.75 21H5.25A3.25 3.25 0 0 1 2 17.75zM3.5 9.5v8.25c0 .966.784 1.75 1.75 1.75h13.5a1.75 1.75 0 0 0 1.75-1.75v-9A1.75 1.75 0 0 0 18.75 7h-7.19L9.72 8.841a2.25 2.25 0 0 1-1.591.659z`})}})),vn=J(`InfoRegular`,`icon icon-info-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12.002 1.999c5.523 0 10.001 4.478 10.001 10.002 0 5.523-4.478 10.001-10.001 10.001C6.478 22.002 2 17.524 2 12.001 2 6.477 6.478 1.999 12.002 1.999m0 1.5a8.502 8.502 0 1 0 0 17.003 8.502 8.502 0 0 0 0-17.003M12 10.5a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75M12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2`})}})),yn=J(`LayerRegular`,`icon icon-layer-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M20.026 12.192a2 2 0 0 1-.577.598l-6.05 4.084a2.5 2.5 0 0 1-2.798 0l-6.05-4.084a2 2 0 0 1-.779-2.29l6.841 4.56a2.5 2.5 0 0 0 2.613.098l.16-.098 6.841-4.56a2 2 0 0 1-.201 1.692m.201 1.558a1.996 1.996 0 0 1-.778 2.29l-6.05 4.084a2.5 2.5 0 0 1-2.798 0l-6.05-4.084a2 2 0 0 1-.779-2.29l6.841 4.56a2.5 2.5 0 0 0 2.613.098l.16-.098zm-6.84-10.325 6.365 4.243a1 1 0 0 1 0 1.664l-6.365 4.244a2.5 2.5 0 0 1-2.774 0L4.248 9.332a1 1 0 0 1 0-1.664l6.365-4.243a2.5 2.5 0 0 1 2.774 0M11.56 4.606l-.116.067L5.705 8.5l5.74 3.828a1 1 0 0 0 .994.066l.116-.066L18.294 8.5l-5.74-3.827a1 1 0 0 0-.993-.067`})}})),bn=J(`LineRegular`,`icon icon-line-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M21.784 2.22a.75.75 0 0 1 0 1.06L3.28 21.784a.75.75 0 1 1-1.06-1.06L20.723 2.22a.75.75 0 0 1 1.06 0`})}})),xn=J(`LinkRegular`,`icon icon-link-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M9.25 7a.75.75 0 0 1 .11 1.492l-.11.008H7a3.5 3.5 0 0 0-.206 6.994L7 15.5h2.25a.75.75 0 0 1 .11 1.492L9.25 17H7a5 5 0 0 1-.25-9.994L7 7zM17 7a5 5 0 0 1 .25 9.994L17 17h-2.25a.75.75 0 0 1-.11-1.492l.11-.008H17a3.5 3.5 0 0 0 .206-6.994L17 8.5h-2.25a.75.75 0 0 1-.11-1.492L14.75 7zM7 11.25h10a.75.75 0 0 1 .102 1.493L17 12.75H7a.75.75 0 0 1-.102-1.493zh10z`})}})),Sn=J(`MergeRegular`,`icon icon-merge-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3 6.75A.75.75 0 0 1 3.75 6h3.257A3.75 3.75 0 0 1 9.66 7.098l2.95 2.95a3.25 3.25 0 0 0 2.298.952h4.53L15.72 7.28a.75.75 0 1 1 1.06-1.06l4.999 5a.75.75 0 0 1 0 1.06l-4.999 5a.75.75 0 1 1-1.06-1.06l3.718-3.72h-4.47a3.25 3.25 0 0 0-2.357 1.012l-2.68 2.82A3.75 3.75 0 0 1 7.212 17.5H3.75a.75.75 0 0 1 0-1.5h3.462a2.25 2.25 0 0 0 1.631-.7l2.68-2.822q.388-.406.853-.709a4.8 4.8 0 0 1-.828-.66l-2.95-2.95a2.25 2.25 0 0 0-1.59-.659H3.75A.75.75 0 0 1 3 6.75`})}})),Cn=J(`MoreHorizontalRegular`,`icon icon-more-horizontal-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M7.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0m6 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M18 13.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5`})}})),wn=J(`PauseRegular`,`icon icon-pause-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M6.25 3A2.25 2.25 0 0 0 4 5.25v13.5A2.25 2.25 0 0 0 6.25 21h2.5A2.25 2.25 0 0 0 11 18.75V5.25A2.25 2.25 0 0 0 8.75 3zM5.5 5.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75zM15.25 3A2.25 2.25 0 0 0 13 5.25v13.5A2.25 2.25 0 0 0 15.25 21h2.5A2.25 2.25 0 0 0 20 18.75V5.25A2.25 2.25 0 0 0 17.75 3zm-.75 2.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75z`})}})),Tn=J(`PlayRegular`,`icon icon-play-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M7.608 4.615a.75.75 0 0 0-1.108.659v13.452a.75.75 0 0 0 1.108.659l12.362-6.726a.75.75 0 0 0 0-1.318zM5 5.274c0-1.707 1.826-2.792 3.325-1.977l12.362 6.727c1.566.852 1.566 3.1 0 3.952L8.325 20.702C6.826 21.518 5 20.432 5 18.726z`})}})),En=J(`ProhibitedRegular`,`icon icon-prohibited-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m6.517 4.543L6.543 18.517A8.5 8.5 0 0 0 18.517 6.543M12 3.5a8.5 8.5 0 0 0-6.517 13.957L17.457 5.483A8.47 8.47 0 0 0 12 3.5`})}})),Dn=J(`RecordRegular`,`icon icon-record-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12m0-16C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0`})}})),On=J(`SearchRegular`,`icon icon-search-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M16.102 17.162a8 8 0 1 1 1.06-1.06l4.618 4.618a.75.75 0 1 1-1.06 1.06zM17.5 11a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0`})}})),kn=J(`ShapesRegular`,`icon icon-shapes-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M8.75 3.5A5.25 5.25 0 0 0 8 13.947v1.512A6.751 6.751 0 1 1 15.459 8h-1.512A5.25 5.25 0 0 0 8.75 3.5m3.5 5.5A3.25 3.25 0 0 0 9 12.25v6.5A3.25 3.25 0 0 0 12.25 22h6.5A3.25 3.25 0 0 0 22 18.75v-6.5A3.25 3.25 0 0 0 18.75 9zm-1.75 3.25c0-.966.784-1.75 1.75-1.75h6.5c.966 0 1.75.784 1.75 1.75v6.5a1.75 1.75 0 0 1-1.75 1.75h-6.5a1.75 1.75 0 0 1-1.75-1.75z`})}})),An=J(`ShieldCheckmarkRegular`,`icon icon-shield-checkmark-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11q0 .507-.04.996a6.5 6.5 0 0 0-1.465-.684q.005-.155.005-.312V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.149 2.332 7.221 7.125 9.285a6.5 6.5 0 0 0 1.005 1.52l-.355.143a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-2.146-2.354a.5.5 0 0 0-.708 0L16.5 18.793l-1.646-1.647a.5.5 0 0 0-.708.708l2 2a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708`})}})),jn=J(`ShieldDismissRegular`,`icon icon-shield-dismiss-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12.45 2.15C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11V5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0M12 3.678c-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8M9.28 8.222l2.724 2.723 2.725-2.723a.75.75 0 0 1 .975-.073l.084.073a.75.75 0 0 1 .073.975l-.073.084-2.724 2.723 2.724 2.725a.749.749 0 1 1-1.06 1.059l-2.724-2.724-2.723 2.724a.75.75 0 0 1-.975.073l-.084-.073a.75.75 0 0 1-.073-.975l.073-.084 2.723-2.725-2.723-2.723A.75.75 0 0 1 9.28 8.22`})}})),Mn=J(`ShieldErrorRegular`,`icon icon-shield-error-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M20.25 5c-2.663 0-5.258-.943-7.8-2.85a.75.75 0 0 0-.9 0C9.008 4.057 6.413 5 3.75 5a.75.75 0 0 0-.75.75V11c0 5.001 2.958 8.676 8.725 10.948a.75.75 0 0 0 .55 0C18.042 19.676 21 16 21 11V5.75a.75.75 0 0 0-.75-.75M4.5 6.478c2.577-.152 5.08-1.09 7.5-2.8 2.42 1.71 4.923 2.648 7.5 2.8V11c0 4.256-2.453 7.379-7.5 9.442C6.953 18.379 4.5 15.256 4.5 11zm8.243 1.174a.75.75 0 0 0-1.493.102v6.498l.007.102a.75.75 0 0 0 1.493-.102V7.754zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2`})}})),Nn=J(`ShieldRegular`,`icon icon-shield-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zm1.5.728V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8`})}})),Pn=J(`SubtractRegular`,`icon icon-subtract-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3.754 12.5h16.492a.75.75 0 0 0 0-1.5H3.754a.75.75 0 0 0 0 1.5`})}})),Fn=J(`TextBoldRegular`,`icon icon-text-bold-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M6.935 4.44A1.5 1.5 0 0 1 7.996 4h4.384C15.016 4 17 6.182 17 8.625a4.63 4.63 0 0 1-.866 2.682c1.077.827 1.866 2.12 1.866 3.813 0 3.112-2.7 4.88-4.88 4.88H8a1.5 1.5 0 0 1-1.5-1.5l-.004-13c0-.397.158-.779.44-1.06M9.5 10.25h2.88c.903 0 1.62-.76 1.62-1.625S13.282 7 12.38 7H9.498zm0 3V17h3.62c.874 0 1.88-.754 1.88-1.88 0-1.13-.974-1.87-1.88-1.87z`})}})),In=J(`TextBulletListLtrRegular`,`icon icon-text-bullet-list-ltr-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3.25 17.5a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh14.5zm-3.5-7a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493L21.25 13H6.75a.75.75 0 0 1-.102-1.493zh14.5zm-3.5-7a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh14.5z`})}})),Ln=J(`TextHeader_1Regular`,`icon icon-text-header-1-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M19.59 5.082a.75.75 0 0 0-.809.083.75.75 0 0 0-.249.367c-.69 2.051-2.057 3.409-3.168 4.075a.75.75 0 0 0 .772 1.286c.774-.464 1.623-1.18 2.364-2.146v9.503a.75.75 0 0 0 1.5 0V5.772a.75.75 0 0 0-.41-.69M3.5 5.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V12.5H10v5.75a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-1.5 0V11H3.5z`})}})),Rn=J(`TextHeader_2Regular`,`icon icon-text-header-2-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M10.75 5a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-1.5 0V12.5H3.5v5.75a.75.75 0 0 1-1.5 0V5.75a.75.75 0 0 1 1.5 0V11H10V5.75a.75.75 0 0 1 .75-.75m7-.5A4.25 4.25 0 0 1 22 8.75c0 1.299-.545 2.3-1.29 3.115-.722.79-1.673 1.45-2.524 2.058-1.554 1.11-2.799 2.084-3.11 3.577h6.174a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75c0-2.812 2.114-4.333 3.814-5.548.899-.642 1.698-1.201 2.288-1.848.568-.622.898-1.278.898-2.104a2.75 2.75 0 0 0-5.473-.393.75.75 0 0 1-1.484-.211A4.25 4.25 0 0 1 17.75 4.5`})}})),zn=J(`TextHeader_3Regular`,`icon icon-text-header-3-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M17.751 4.5c2.321 0 4.25 1.822 4.25 4.125 0 1.407-.721 2.633-1.81 3.375 1.089.742 1.81 1.968 1.81 3.375 0 2.303-1.929 4.125-4.25 4.125-.85 0-1.715-.243-2.447-.654-.73-.41-1.38-1.015-1.735-1.782a.75.75 0 0 1 1.362-.63c.19.412.578.808 1.106 1.104a3.6 3.6 0 0 0 1.714.462c1.544 0 2.75-1.2 2.75-2.625 0-1.424-1.206-2.625-2.75-2.625H16.75a.75.75 0 0 1 0-1.5h1.001c1.544 0 2.75-1.2 2.75-2.625 0-1.424-1.206-2.625-2.75-2.625-.575 0-1.19.167-1.714.462-.528.296-.915.692-1.106 1.104a.75.75 0 0 1-1.362-.63c.355-.767 1.005-1.372 1.735-1.782A5.1 5.1 0 0 1 17.75 4.5m-7 .5a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-1.5 0V12.5H3.5v5.75a.75.75 0 0 1-1.5 0V5.75a.75.75 0 0 1 1.5 0V11H10V5.75a.75.75 0 0 1 .75-.75`})}})),Bn=J(`TextItalicRegular`,`icon icon-text-italic-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M18.75 4a.75.75 0 0 1 0 1.5h-3.482l-4.932 13h3.414a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5h3.482l4.932-13H10.25a.75.75 0 0 1 0-1.5z`})}})),Vn=J(`TextNumberListLtrRegular`,`icon icon-text-number-list-ltr-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M6 2.75a.75.75 0 0 0-1.434-.307l-.002.003-.011.024-.056.108a4 4 0 0 1-.238.385c-.217.312-.524.662-.906.901a.75.75 0 1 0 .794 1.272q.188-.117.353-.248V7.25a.75.75 0 1 0 1.5 0zm14.5 16a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75m0-6.506a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75m0-6.494a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75M5.15 10.52c-.3-.053-.676.066-.87.26a.75.75 0 0 1-1.06-1.06c.556-.556 1.43-.812 2.192-.677.397.07.805.254 1.115.605.316.358.473.825.473 1.352 0 .62-.271 1.08-.606 1.42-.278.283-.63.511-.906.689l-.08.051a6 6 0 0 0-.481.34H6.25a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75c0-1.313.984-1.953 1.575-2.337l.06-.04c.318-.205.533-.345.69-.504.134-.136.175-.238.175-.369 0-.223-.061-.318-.098-.36a.42.42 0 0 0-.251-.12M2.97 21.28s.093.084.004.005l.006.005.013.013a1.4 1.4 0 0 0 .15.125c.095.071.227.158.397.243.341.17.83.33 1.46.33.64 0 1.196-.182 1.601-.54.408-.36.61-.858.595-1.36a1.78 1.78 0 0 0-.426-1.1c.259-.306.412-.686.426-1.102a1.73 1.73 0 0 0-.595-1.36C6.196 16.182 5.64 16 5 16c-.63 0-1.119.158-1.46.33a2.6 2.6 0 0 0-.51.334l-.037.033-.013.013-.006.005-.002.003H2.97l-.001.002a.75.75 0 0 0 1.048 1.072l.026-.02a1 1 0 0 1 .166-.101c.159-.08.42-.17.79-.17.36 0 .536.099.608.163a.23.23 0 0 1 .088.187.33.33 0 0 1-.123.23c-.089.078-.263.17-.573.17a.75.75 0 0 0 0 1.5c.31 0 .484.09.573.167.091.08.121.166.123.231a.23.23 0 0 1-.088.188c-.072.063-.247.163-.608.163a1.75 1.75 0 0 1-.79-.17 1 1 0 0 1-.192-.122.75.75 0 0 0-1.048 1.072m.002-4.562c.007-.005.2-.166 0 0`})}})),Hn=J(`TextQuoteRegular`,`icon icon-text-quote-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M8 5a3 3 0 0 1 2.997 2.916l.006.084c0 2.933-1.067 5.382-2.113 7.081a16 16 0 0 1-1.446 1.985 12 12 0 0 1-.664.714l-.011.012-.004.003-.001.002a.75.75 0 0 1-1.027-1.094l.005-.005.028-.026.113-.115c.1-.104.246-.26.423-.467.354-.414.83-1.023 1.306-1.796a13 13 0 0 0 1.526-3.519A3 3 0 1 1 8 5m8 0a3 3 0 0 1 2.997 2.916l.006.084c0 2.933-1.067 5.382-2.113 7.081a16 16 0 0 1-1.446 1.985 12 12 0 0 1-.664.714l-.011.012-.004.003-.001.002a.75.75 0 0 1-1.027-1.094l.005-.005.027-.026.114-.115c.1-.104.246-.26.423-.467.354-.414.83-1.023 1.306-1.796a13 13 0 0 0 1.526-3.519A3 3 0 1 1 16 5M8 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m8 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3`})}})),Un=J(`TextStrikethroughRegular`,`icon icon-text-strikethrough-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M4.75 12h14.5a.75.75 0 0 1 .102 1.493l-.101.007h-2.975c.88.813 1.336 1.793 1.336 2.935 0 2.825-3.232 4.64-6.754 4.23-2.235-.26-3.809-1.155-4.635-2.702a.75.75 0 0 1 1.323-.707c.57 1.068 1.702 1.712 3.485 1.92 2.743.318 5.081-.995 5.081-2.741 0-1.172-.805-2.127-2.565-2.886l-.116-.049H4.75a.75.75 0 0 1-.743-.648L4 12.75a.75.75 0 0 1 .648-.743zh14.5zm1.511-3.877c.152-2.83 2.822-4.468 6.324-4.061 2.188.254 3.863 1.053 4.982 2.409a.75.75 0 1 1-1.157.955c-.852-1.033-2.17-1.662-3.999-1.874-2.717-.316-4.65.804-4.65 2.571 0 .772.234 1.348.83 1.982l.128.132c.094.096.197.195.25.24l.031.02H7.08l-.024-.038c-.143-.206-.856-1.195-.795-2.336`})}})),Wn=J(`TextUnderlineRegular`,`icon icon-text-underline-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M6.75 19h10.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh10.5zm10.5-15a.75.75 0 0 1 .743.648L18 4.75v6c0 4.394-2.063 6.75-6.003 6.75-3.855 0-5.91-2.255-5.994-6.466L6 10.75v-6a.75.75 0 0 1 1.493-.102l.007.102v6C7.496 14.358 8.933 16 11.997 16c2.985 0 4.428-1.56 4.5-4.976l.003-.274v-6a.75.75 0 0 1 .75-.75`})}})),Gn=J(`WarningRegular`,`icon icon-warning-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M9.138 3.707c1.228-2.276 4.494-2.276 5.721 0l6.743 12.502c1.168 2.165-.4 4.792-2.86 4.793H5.255c-2.46 0-4.028-2.628-2.86-4.793zm4.4.712c-.66-1.225-2.419-1.225-3.08 0L3.715 16.921a1.75 1.75 0 0 0 1.54 2.581h13.487a1.75 1.75 0 0 0 1.54-2.581zM12 15a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-7.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 12 7.5`})}})),Kn=(0,l.createContext)({}),qn={heading:`accordion-header`,button:`accordion-header-button`,disabled:`accordion-header-button-disabled`,label:`min-w-0`,indicator:`accordion-header-indicator`,indicatorOpen:`rotate-180`};function Jn(e,t){let{className:n,children:r,headingLevel:i,...a}=e,{headingLevel:o}=l.useContext(Dt),{headerId:s,panelId:c,isOpen:u,disabled:d,isPanelPresent:f,toggle:p}=l.useContext(Kn);return(0,q.jsx)(i??o??`h3`,{className:qn.heading,"data-component":`Accordion.Header`,children:(0,q.jsxs)(`button`,{ref:t,type:`button`,id:s,className:G(qn.button,d&&qn.disabled,n),onClick:p,disabled:d,"aria-expanded":!!u,"aria-controls":f?c:void 0,"data-component":`Accordion.HeaderButton`,"data-open":!!u,...a,children:[(0,q.jsx)(`span`,{className:qn.label,children:r}),(0,q.jsx)(Qt,{className:G(qn.indicator,u&&qn.indicatorOpen),"aria-hidden":`true`})]})})}Jn.displayName=`Accordion.Header`;var Yn=K(Jn);const Y=e=>{let t=(0,l.useId)();return e||t},Xn={root:`accordion-item`};function Zn(e,t){let{as:n=`div`,className:r,value:i,disabled:a,...o}=e,{open:s,setOpen:c,toggle:u,disabled:d,keepMounted:f,hiddenUntilFound:p}=l.useContext(Dt),m=Y(),h=i??m,g=s?.includes(h)??!1,_=a??d??!1,[v,y]=l.useState(!0),b={headerId:`${m}-header`,panelId:`${m}-panel`,isOpen:g,disabled:_,keepMounted:f,hiddenUntilFound:p,isPanelPresent:v,setPanelPresent:y,setOpen:e=>c?.(h,e),toggle:()=>u?.(h)};return(0,q.jsx)(Kn.Provider,{value:b,children:(0,q.jsx)(n,{ref:t,className:G(Xn.root,r),"data-component":`Accordion.Item`,"data-value":h,"data-open":g,"data-disabled":_,...o})})}Zn.displayName=`Accordion.Item`;var Qn=K(Zn);const $n=!!(typeof window<`u`&&window.document&&window.document.createElement),er=l.version.split(`.`),tr=parseInt(er[0],10),nr=/^0\.0\.0-experimental-[a-f0-9]{8}-\d{8}$/.test(l.version),rr=$n?l.useLayoutEffect:l.useEffect,ir=tr>=19||nr,ar=(e,t)=>(0,l.useCallback)(n=>{let r=or(e,n),i=or(t,n);if(ir)return()=>{r?r():or(e,null),i?i():or(t,null)}},[e,t]),or=(e,t)=>{if(typeof e==`function`)return e(t);e&&(e.current=t)},sr={root:`accordion-panel`};function cr(e,t){let{as:n=`div`,className:r,...i}=e,{headerId:a,panelId:o,isOpen:s,keepMounted:c,hiddenUntilFound:u,setOpen:d,setPanelPresent:f}=l.useContext(Kn),p=l.useRef(null),m=ar(t,p),h=(c??!0)||!!u||!!s;return rr(()=>(f?.(h),()=>f?.(!1)),[h,f]),rr(()=>{let e=p.current;!e||!s||e.style.setProperty(`--accordion-panel-height`,`${e.scrollHeight}px`)},[s]),rr(()=>{let e=p.current;!e||!u||s||e.setAttribute(`hidden`,`until-found`)},[u,s]),l.useEffect(()=>{let e=p.current;if(!e||!u)return;let t=()=>d?.(!0);return e.addEventListener(`beforematch`,t),()=>e.removeEventListener(`beforematch`,t)},[u,d]),h?(0,q.jsx)(n,{ref:m,id:o,hidden:!s,role:`region`,"aria-labelledby":a,className:G(sr.root,r),"data-component":`Accordion.Panel`,"data-open":!!s,...i}):null}cr.displayName=`Accordion.Panel`;var lr=K(cr);const ur=Object.assign(Mt,{Item:Qn,Header:Yn,Panel:lr}),dr=[`[disabled]`,`[hidden]`,`[inert]`,`[tabindex='-1']`],fr=[`a[href]`,`button`,`summary`,`select`,`input:not([type=hidden])`,`textarea`,`[tabindex='0']`,`audio[controls]`,`video[controls]`,`[contenteditable]`].map(e=>`${e}:not(${dr.join(`):not(`)})`).join(`, `),pr=e=>{if(e.matches(`[disabled], [hidden], [inert]`))return!0;let t=getComputedStyle(e);return t.display===`none`||t.visibility===`hidden`},mr=e=>!e||pr(e)?[]:Array.from(e.querySelectorAll(fr)).filter(e=>!pr(e)),hr=e=>mr(e).length>0,gr={vertical:{previous:`ArrowUp`,next:`ArrowDown`},horizontal:{previous:`ArrowLeft`,next:`ArrowRight`}},_r=({containerRef:e,direction:t=`vertical`,wrap:n=!1,disabled:r,focusableFilter:i})=>{(0,l.useEffect)(()=>{let a=e.current;if(!a||r)return;let{previous:o,next:s}=gr[t],c=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;let t=e.key===`End`,r=e.key===`Home`,c=e.key===s?1:e.key===o?-1:0;if(c===0&&!r&&!t)return;let l=mr(a).filter(e=>i?.(e)??!0);if(l.length===0)return;if(e.preventDefault(),r||t){l[r?0:l.length-1].focus();return}let u=l.indexOf(document.activeElement),d=u===-1?0:u+c;if(d>=0&&d<l.length){l[d].focus();return}n&&l[(d+l.length)%l.length].focus()};return a.addEventListener(`keydown`,c),()=>{a.removeEventListener(`keydown`,c)}},[e,t,n,r,i])},vr=(e,t)=>{let n=typeof e;if(n!==`object`&&n!==`function`&&e!==null)return!1;let r=e,i=r.__SLOT__??r.type?.__SLOT__;return t.__SLOT__?i===t.__SLOT__:!1},yr=(e,t)=>(t.__SLOT__&&(e.__SLOT__=t.__SLOT__),e),br=(e,t)=>{if(Array.isArray(t)){let[n,r]=t;return(e.type===n||vr(e,n))&&r(e.props)}return e.type===t||vr(e,t)},xr=(e,t)=>{let n=[],r=Object.keys(t),i=Object.values(t),a=r.length,o={};for(let e=0;e<a;e++)o[r[e]]=void 0;let s=0;return l.default.Children.forEach(e,e=>{if(!l.default.isValidElement(e)){n.push(e);return}if(s===a){n.push(e);return}let t=Sr(e,i,a);if(t===-1){n.push(e);return}let c=r[t];o[c]===void 0&&(o[c]=e,s++)}),[o,n]},Sr=(e,t,n)=>{for(let r=0;r<n;r++)if(br(e,t[r]))return r;return-1},Cr=W(`heading`,{variants:{size:{large:`text-title-large`,medium:`text-title-medium`,small:`text-title-small`}}});function wr(e,t){let{as:n=`h2`,className:r,size:i=`large`,...a}=e;return(0,q.jsx)(n,{ref:t,className:G(Cr({size:i}),r),"data-component":`Heading`,"data-size":i,...a})}wr.displayName=`Heading`;var Tr=K(wr);const Er=(0,l.createContext)({}),Dr={root:`action-list-heading`,hidden:`sr-only`};function Or(e,t){let{as:n,className:r,visuallyHidden:i=!1,id:a,...o}=e,{headingId:s}=l.useContext(Er);return(0,q.jsx)(Tr,{ref:t,as:n,id:a??s,className:G(Dr.root,i&&Dr.hidden,r),"data-component":`ActionList.Heading`,...o})}Or.displayName=`ActionList.Heading`;var kr=K(Or);const Ar=(0,l.createContext)({}),jr=W(`action-list`,{variants:{variant:{inset:`action-list-inset`,full:`action-list-full`},dividers:{true:`action-list-dividers`,false:``}}}),Mr={heading:kr},Nr=[`menu`,`menubar`,`listbox`];function Pr(e,t){let{as:n=`ul`,className:r,children:i,variant:a=`inset`,selectionVariant:o,showDividers:s=!1,disableFocusZone:c=!1,role:u,...d}=e,[f,p]=xr(i,Mr),m=Y(),{listRole:h,listLabel:g,listLabelledBy:_,selectionVariant:v,enableFocusZone:y}=l.useContext(Ar),b=u??h,x=o??v,S=f.heading?f.heading.props.id??m:_,C=l.useRef(null),w=ar(t,C),T=y??(b!==void 0&&!c&&Nr.includes(b));_r({containerRef:C,disabled:!T,wrap:b===`menu`});let E=l.useMemo(()=>({variant:a,selectionVariant:x,showDividers:s,role:b,headingId:m}),[a,x,s,b,m]);return(0,q.jsxs)(Er.Provider,{value:E,children:[f.heading,(0,q.jsx)(n,{ref:w,role:b,"aria-label":S?void 0:g,"aria-labelledby":S,className:G(jr({variant:a,dividers:s}),r),"data-component":`ActionList`,"data-variant":a,"data-dividers":s?``:void 0,...d,children:p})]})}Pr.displayName=`ActionList`;var Fr=K(Pr);const Ir=(0,l.createContext)({}),Lr={root:`action-list-description`,inline:`min-w-0 truncate`};function Rr(e){let{className:t,variant:n=`inline`,...r}=e,{blockDescriptionId:i,inlineDescriptionId:a}=l.useContext(Ir);return(0,q.jsx)(`span`,{id:n===`block`?i:a,className:G(Lr.root,n===`inline`&&Lr.inline,t),"data-component":`ActionList.Description`,"data-variant":n,...r})}Rr.displayName=`ActionList.Description`;const zr={root:`action-list-divider`};function Br(e){let{className:t,...n}=e;return(0,q.jsx)(`li`,{"aria-hidden":`true`,className:G(zr.root,t),"data-component":`ActionList.Divider`,...n})}Br.displayName=`ActionList.Divider`;const Vr=(0,l.createContext)({}),Hr={__SLOT__:Symbol(`ActionList.GroupHeading`)},Ur={heading:`action-list-group-heading-label`,auxiliary:`action-list-group-heading-auxiliary`},Wr=W(`action-list-group-heading`,{variants:{variant:{subtle:``,filled:`action-list-group-heading-filled`}}});function Gr(e){let{as:t,className:n,children:r,variant:i=`subtle`,auxiliaryText:a,...o}=e,{role:s}=l.useContext(Er),{groupHeadingId:c}=l.useContext(Vr),u=s!==void 0&&s!==`list`,d=t??`h3`;return(0,q.jsxs)(`div`,{className:G(Wr({variant:i})),"data-component":`ActionList.GroupHeading`,"data-variant":i,...u?{role:`presentation`,"aria-hidden":!0}:{},children:[u?(0,q.jsx)(`span`,{id:c,className:G(Ur.heading,n),...o,children:r}):(0,q.jsx)(d,{id:c,className:G(Ur.heading,n),...o,children:r}),a?(0,q.jsx)(`div`,{className:Ur.auxiliary,children:a}):null]})}Gr.displayName=`ActionList.GroupHeading`;const Kr=yr(Gr,Hr),qr={root:`action-list-group`,list:`action-list-group-items`},Jr={groupHeading:Kr};function Yr(e){let{className:t,children:n,selectionVariant:r,role:i,"aria-label":a,...o}=e,s=Y(),{role:c}=l.useContext(Er),[u,d]=xr(n,Jr),f=u.groupHeading?u.groupHeading.props.id??s:void 0,p=l.useMemo(()=>({selectionVariant:r,groupHeadingId:f}),[r,f]),m=c&&typeof u.groupHeading?.props.children==`string`?u.groupHeading.props.children:void 0;return(0,q.jsx)(`li`,{className:G(qr.root,t),"data-component":`ActionList.Group`,role:c?`none`:void 0,...o,children:(0,q.jsxs)(Vr.Provider,{value:p,children:[u.groupHeading,(0,q.jsx)(`ul`,{className:qr.list,role:i??(c?`group`:void 0),"aria-labelledby":c?void 0:f,"aria-label":a??m,children:d})]})})}Yr.displayName=`ActionList.Group`;const Xr={root:`spinner`,srOnly:`sr-only`},Zr=W(`motion-safe:animate-spin`,{variants:{size:{small:`spinner-small`,medium:`spinner-medium`,large:`spinner-large`}}});function Qr(e,t){let{as:n=`span`,size:r=`medium`,srText:i=`Loading`,className:a,"aria-label":o,...s}=e;return(0,q.jsxs)(n,{ref:t,role:`status`,"aria-label":o??void 0,className:G(Xr.root,a),"data-component":`Spinner`,...s,children:[(0,q.jsx)(It,{className:G(Zr({size:r})),"aria-hidden":`true`}),i!==null&&o===void 0?(0,q.jsx)(`span`,{className:Xr.srOnly,children:i}):null]})}Qr.displayName=`Spinner`;var $r=K(Qr);const ei={root:`action-list-visual`,muted:`action-list-visual-muted`,inherit:`action-list-visual-inherit`},ti=({className:e,...t})=>{let{variant:n,disabled:r,inactive:i}=l.useContext(Ir),a=n===`danger`||r||i;return(0,q.jsx)(`span`,{className:G(ei.root,a?ei.inherit:ei.muted,e),...t})};function ni(e){return(0,q.jsx)(ti,{"data-component":`ActionList.LeadingVisual`,...e})}ni.displayName=`ActionList.LeadingVisual`;function ri({children:e}){return(0,q.jsx)(q.Fragment,{children:e})}ri.displayName=`ActionList.SubItem`;const ii={srOnly:`sr-only`},ai=W(`counter-label`,{variants:{variant:{primary:`counter-label-primary`,secondary:`counter-label-secondary`}}});function oi(e,t){let{as:n=`span`,className:r,variant:i=`secondary`,children:a,...o}=e;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(n,{ref:t,"aria-hidden":`true`,className:G(ai({variant:i}),r),"data-component":`CounterLabel`,"data-variant":i,...o,children:a}),(0,q.jsxs)(`span`,{className:ii.srOnly,children:[`\xA0(`,a,`)`]})]})}oi.displayName=`CounterLabel`;var si=K(oi);const ci={base:`button`,disabled:`button-disabled`,block:`button-block`,size:{small:`button-small`,medium:``,large:`button-large`},variant:{default:{rest:`button-default`,disabled:`button-default-disabled`},primary:{rest:`button-primary`,disabled:`button-primary-disabled`},danger:{rest:`button-danger`,disabled:`button-danger-disabled`},invisible:{rest:`button-invisible`,disabled:`button-invisible-disabled`},link:{rest:`button-link`,disabled:`button-link-disabled`}},link:`button-link-shape`,linkUnderlines:`button-link-underlines`,inactive:`button-inactive`,inactiveLink:`button-inactive-link`,iconTone:{default:`button-icon-tone-default`,primary:``,danger:``,invisible:`button-icon-tone-invisible`,link:``},labelWrapRoot:`button-label-wrap`,labelWrapHeight:{small:`button-label-wrap-small`,medium:`button-label-wrap-medium`,large:`button-label-wrap-large`},labelWrapContent:{small:`button-label-wrap-content-small`,medium:`button-label-wrap-content-medium`,large:`button-label-wrap-content-large`},labelWrapLabel:`button-label-wrap-label`,iconOnlyCounter:{small:`button-icon-only-counter-small`,medium:`button-icon-only-counter-medium`,large:`button-icon-only-counter-large`},content:`button-content`,contentGap:{small:`button-content-gap-small`,medium:`button-content-gap-medium`,large:`button-content-gap-large`},align:{start:`justify-start`,center:`justify-center`},label:`button-label`,labelLineHeight:{small:`button-label-small`,medium:`button-label-medium`,large:`button-label-large`},labelHidden:`invisible`,visualBase:`button-visual`,visual:{default:`button-visual-default`,primary:`button-visual-primary`,danger:`button-visual-danger`,invisible:`button-visual-invisible`,link:`button-visual-link`},visualMuted:`button-visual-muted`,counter:{default:`button-counter-default`,primary:`button-counter-primary`,danger:`button-counter-danger`,invisible:`button-counter-invisible`,link:``},counterMuted:`button-counter-muted`,counterMutedDanger:`button-counter-muted-danger`,leadingVisual:`button-leading-visual`,trailingVisual:`button-trailing-visual`,trailingAction:`button-trailing-action`,loadingSpinner:`items-center justify-center`,standaloneSpinner:`button-standalone-spinner`,loadingWrapper:`inline-flex`,loadingWrapperBlock:`block`,srOnly:`sr-only`},li=(e,t,n,r)=>{let i=e;return(0,q.jsx)(`span`,{"data-component":t,className:G(ci.visualBase,n&&ci.loadingSpinner,r),children:n?(0,q.jsx)($r,{size:`small`,srText:null,role:`presentation`}):l.isValidElement(e)?e:(0,q.jsx)(i,{})})};function ui(e,t){let{as:n=`button`,className:r,children:i,icon:a,leadingVisual:o,trailingVisual:s,trailingAction:c,count:l,variant:u=`default`,size:d=`medium`,alignContent:f=`center`,block:p=!1,loading:m,loadingAnnouncement:h=`Loading`,inactive:g,labelWrap:_,disabled:v,id:y,onClick:b,"aria-describedby":x,"aria-labelledby":S,"aria-disabled":C,...w}=e,T=Y(y),E=`${T}-label`,D=`${T}-loading-announcement`,O=!!m,k=!!v||(C===!0||C===`true`)&&!O,A=!k&&!g,j=!!(o||s||c),M=O&&!j&&l===void 0,N=l!==void 0&&!!o&&!i,P=g?u===`link`?ci.inactiveLink:ci.inactive:ci.variant[u][k?`disabled`:`rest`],F=A?ci.visual[u]:ci.visualMuted,I=A?ci.counter[u]:u===`danger`?ci.counterMutedDanger:G(ci.counter[u],ci.counterMuted),L=(0,q.jsx)(n,{ref:t,className:G(ci.base,ci.size[d],u===`link`&&ci.link,u===`link`&&!j&&ci.linkUnderlines,P,a&&A&&ci.iconTone[u],k&&ci.disabled,p&&ci.block,_&&ci.labelWrapRoot,_&&ci.labelWrapHeight[d],N&&ci.iconOnlyCounter[d],r),"data-component":`Button`,"data-block":p?`block`:void 0,"data-inactive":g?``:void 0,"data-loading":O?`true`:void 0,"data-no-visuals":j?void 0:``,"data-size":d,"data-variant":u,"data-label-wrap":_?`true`:void 0,"data-has-count":l===void 0?void 0:`true`,"data-icon-only-counter":N?`true`:void 0,disabled:v,id:y,"aria-disabled":O?!0:C,"aria-describedby":O?[D,x].filter(Boolean).join(` `):x,"aria-labelledby":O&&i?[E,S].filter(Boolean).join(` `):S,onClick:O?void 0:b,...w,children:a?li(a,`icon`,O,``):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{"data-component":`buttonContent`,"data-align":f,className:G(ci.content,!M&&ci.contentGap[d],ci.align[f],_&&ci.labelWrapContent[d]),children:[M?li($r,`loadingSpinner`,!0,G(F,ci.standaloneSpinner)):null,o?li(o,`leadingVisual`,O,G(F,ci.leadingVisual)):null,i?(0,q.jsx)(`span`,{"data-component":`text`,id:O?E:void 0,className:G(ci.label,ci.labelLineHeight[d],_&&ci.labelWrapLabel,M&&ci.labelHidden),children:i}):null,l!==void 0&&!s?li((0,q.jsx)(si,{className:I,"data-component":`ButtonCounter`,children:l}),`trailingVisual`,O&&!o,ci.trailingVisual):s?li(s,`trailingVisual`,O&&!o,G(F,ci.trailingVisual)):null]}),c?li(c,`trailingAction`,O&&!o&&!s,G(F,ci.trailingAction)):null]})});return m===void 0?L:(0,q.jsxs)(`span`,{className:p?ci.loadingWrapperBlock:ci.loadingWrapper,"data-loading-wrapper":``,children:[L,(0,q.jsx)(`span`,{id:D,role:`status`,className:ci.srOnly,children:O?h:``})]})}ui.displayName=`ButtonBase`;var di=K(ui);function fi(e,t){let{as:n=`button`,type:r=`button`,...i}=e;return(0,q.jsx)(di,{ref:t,as:n,type:r,...i})}fi.displayName=`Button`;var pi=K(fi);const mi=W(`icon-button`,{variants:{size:{small:`icon-button-small`,medium:`icon-button-medium`,large:`icon-button-large`}}});function hi(e,t){let{as:n=`button`,className:r,size:i=`medium`,...a}=e;return(0,q.jsx)(di,{ref:t,as:n,type:`button`,size:i,"data-component":`IconButton`,className:G(mi({size:i}),r),...a})}hi.displayName=`IconButton`;var gi=K(hi);const _i={root:`action-list-trailing-action`,action:`action-list-trailing-action-button`};function vi(e,t){let{className:n,icon:r,label:i,...a}=e;return(0,q.jsx)(`span`,{className:_i.root,"data-component":`ActionList.TrailingAction`,children:r?(0,q.jsx)(gi,{ref:t,icon:r,"aria-label":i,variant:`invisible`,size:`small`,className:G(_i.action,n),...a}):(0,q.jsx)(pi,{ref:t,variant:`invisible`,size:`small`,className:G(_i.action,n),...a,children:i})})}vi.displayName=`ActionList.TrailingAction`;var yi=K(vi);function bi(e){let{trailingVisualId:t}=l.useContext(Ir);return(0,q.jsx)(ti,{id:t,"data-component":`ActionList.TrailingVisual`,...e})}bi.displayName=`ActionList.TrailingVisual`;const xi={unselected:`invisible`,checkmark:`action-list-selection-checkmark`,checkbox:`action-list-selection-checkbox`,checkboxSelected:`action-list-selection-checkbox-selected`},Si=({selected:e,className:t})=>{let{selectionVariant:n}=l.useContext(Er),{selectionVariant:r}=l.useContext(Vr),i=r===void 0?n:r;return i?i===`multiple`?(0,q.jsx)(ti,{className:t,"data-component":`ActionList.Selection`,children:(0,q.jsx)(`span`,{className:G(xi.checkbox,e&&xi.checkboxSelected),children:(0,q.jsx)(Zt,{className:e?void 0:xi.unselected})})}):(0,q.jsx)(ti,{className:t,"data-component":`ActionList.Selection`,children:(0,q.jsx)(Zt,{className:G(xi.checkmark,!e&&xi.unselected)})}):null},Ci={root:`action-list-item`,content:`action-list-item-content`,size:{medium:``,large:`action-list-item-content-large`},danger:`action-list-item-content-danger`,disabled:`action-list-item-content-disabled`,inactive:`action-list-item-content-inactive`,loading:`cursor-default`,active:`action-list-item-content-active`,main:`action-list-item-main`,labelWrap:`action-list-item-label-wrap`,labelWrapBlock:`flex-col gap-0`,label:`min-w-0`,inactiveWarning:`action-list-item-inactive-warning`,srOnly:`sr-only`},wi={leadingVisual:ni,trailingVisual:bi,trailingAction:yi,description:Rr,subItem:ri},Ti=[`option`,`menuitem`,`menuitemradio`,`menuitemcheckbox`],Ei=[`listbox`,`menu`,`list`];function Di(e,t){let{as:n,className:r,children:i,id:a,role:o,variant:s=`default`,size:c=`medium`,selected:u,active:d=!1,disabled:f=!1,loading:p=!1,inactiveText:m,onSelect:h,...g}=e,[_,v]=xr(i,wi),{container:y,afterSelect:b,selectionAttribute:x,defaultTrailingVisual:S}=l.useContext(Ar),{role:C,selectionVariant:w}=l.useContext(Er),{selectionVariant:T}=l.useContext(Vr),E=!!m,D=T===void 0?w:T||void 0,O;y===`ActionMenu`||C===`menu`?O=D===`single`?`menuitemradio`:D===`multiple`?`menuitemcheckbox`:`menuitem`:C===`listbox`&&D&&(O=`option`);let k=o??O,A=x??(k===`menuitemradio`||k===`menuitemcheckbox`?`aria-checked`:k===`option`?`aria-selected`:void 0),j=C!==void 0&&Ei.includes(C)||E||k!==void 0&&Ti.includes(k),M=n??(j?`div`:`button`),N=n!==void 0||!j,P=!N||M!==`button`&&M!==`a`,F=y===`ActionMenu`||C===`menu`||C===`listbox`,I=!f&&!E&&!p,L=e=>{I&&(h?.(e),!e.defaultPrevented&&b?.(e))},ee=e=>{(e.key===` `||e.key===`Enter`)&&(e.key===` `&&e.preventDefault(),L(e))},R=Y(a),z=`${R}--label`,te=`${R}--inline-description`,ne=`${R}--block-description`,B=`${R}--trailing-visual`,re=E?`${R}--inactive-warning`:void 0,V=_.description?.props.variant??`inline`,ie=_.trailingVisual??(S?(0,q.jsx)(bi,{children:S}):null),ae=p&&!E,oe=(0,q.jsx)($r,{size:`small`,srText:null}),se=ae&&_.leadingVisual?(0,q.jsx)(ni,{children:oe}):_.leadingVisual,ce=ae&&!_.leadingVisual?(0,q.jsx)(bi,{children:oe}):ie,le=[_.description?V===`block`?ne:te:void 0,re].filter(Boolean),ue={id:R,role:k,tabIndex:0,onClick:L,onKeyDown:P?ee:void 0,"aria-disabled":f||E||p?!0:void 0,"aria-labelledby":[z,_.trailingVisual?B:void 0].filter(Boolean).join(` `),"aria-describedby":le.length>0?le.join(` `):void 0,...A&&D?{[A]:!!u}:{}},de=!F&&!E&&!p?_.trailingAction:null,fe=l.useMemo(()=>({variant:s,size:c,disabled:f,inactive:E,inlineDescriptionId:te,blockDescriptionId:ne,trailingVisualId:B}),[s,c,f,E,te,ne,B]),pe=G(Ci.content,Ci.size[c],s===`danger`&&!f&&!E&&Ci.danger,d&&Ci.active,p&&Ci.loading,E&&Ci.inactive,f&&Ci.disabled);return(0,q.jsx)(Ir.Provider,{value:fe,children:(0,q.jsxs)(`li`,{ref:N?null:t,className:G(Ci.root,r),"data-component":`ActionList.Item`,"data-variant":s===`danger`?s:void 0,"data-active":d?``:void 0,"data-inactive":E?``:void 0,"data-disabled":f?``:void 0,"data-loading":p?``:void 0,"data-has-description":_.description?``:void 0,"data-has-trailing-action":de?``:void 0,"data-has-sub-item":_.subItem?``:void 0,...N?{role:k?`none`:void 0}:{...ue,...g},children:[(0,q.jsxs)(M,{ref:N?t:void 0,className:pe,"data-component":`ActionList.Item.Content`,"data-size":c,...N?{...ue,...g,...M===`button`?{type:`button`}:{}}:{},children:[(0,q.jsx)(Si,{selected:u}),se,(0,q.jsxs)(`span`,{className:Ci.main,children:[(0,q.jsxs)(`span`,{className:G(Ci.labelWrap,V===`block`&&Ci.labelWrapBlock),children:[(0,q.jsxs)(`span`,{id:z,className:Ci.label,"data-component":`ActionList.Item.Label`,children:[v,ae?(0,q.jsx)(`span`,{className:Ci.srOnly,children:`Loading`}):null]}),_.description]}),ce]})]}),E?(0,q.jsx)(`span`,{id:re,className:Ci.inactiveWarning,children:m}):null,de,_.subItem]})})}Di.displayName=`ActionList.Item`;var Oi=K(Di);function ki(e,t){let{as:n,...r}=e;return(0,q.jsx)(Oi,{ref:t,as:n??`a`,...r})}ki.displayName=`ActionList.LinkItem`;var Ai=K(ki);const ji=Object.assign(Fr,{Item:Oi,LinkItem:Ai,Group:Yr,GroupHeading:Kr,Heading:kr,Description:Rr,Divider:Br,LeadingVisual:ni,TrailingVisual:bi,TrailingAction:yi,SubItem:ri}),Mi=(0,l.createContext)(void 0);function Ni(e){let{children:t,className:n,onClick:r,onKeyDown:i,...a}=e,o=l.useContext(Mi),s=l.useContext(Ar),c=!!o?.isSubmenu,u=o?.onOpen,d=l.useMemo(()=>c?{...s,defaultTrailingVisual:(0,q.jsx)(en,{}),afterSelect:()=>u?.()}:s,[c,u,s]);if(!l.isValidElement(t))return null;let f=t.props,p=e=>{f.onClick?.(e),r?.(e)},m=e=>{f.onKeyDown?.(e),c&&e.key===`ArrowRight`&&!e.defaultPrevented&&(u?.(),e.preventDefault()),i?.(e)};return(0,q.jsx)(Ar.Provider,{value:d,children:l.cloneElement(t,{...a,ref:o?.anchorRef,className:G(n,f.className),onClick:p,onKeyDown:m})})}Ni.displayName=`ActionMenu.Anchor`;function Pi(e){return(0,q.jsx)(Ni,{children:(0,q.jsx)(pi,{type:`button`,trailingAction:Qt,"data-component":`ActionMenu.Button`,...e})})}Pi.displayName=`ActionMenu.Button`;const Fi=e=>l.isValidElement(e)&&(e.type===Ni||e.type===Pi),Ii=(e,t)=>({id:e.id,"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],tabIndex:e.tabIndex,onClick:n=>{t.onClick?.(n),e.onClick(n)},onKeyDown:n=>{t.onKeyDown?.(n),e.onKeyDown(n)}});function Li(e){let{children:t,open:n,onOpenChange:r,anchorRef:i}=e,a=l.useContext(Mi),o=l.useRef(null),s=i??o,c=n!==void 0,[u,d]=l.useState(!1),f=c?n:u,p=l.useCallback(e=>{d(e),r?.(e)},[r]),m=l.useCallback(()=>p(!0),[p]),h=a?.onClose,g=l.useCallback(e=>{p(!1),(e===`item-select`||e===`tab`)&&h?.(e)},[p,h]),_=l.Children.toArray(t),v=_.find(Fi),y=Y(v?.props.id),b=v?e=>l.cloneElement(v,Ii(e,v.props)):null,x=a!==void 0,S=l.useMemo(()=>({anchorRef:s,renderAnchor:b,anchorId:y,open:f,onOpen:m,onClose:g,isSubmenu:x}),[s,b,y,f,m,g,x]);return(0,q.jsx)(Mi.Provider,{value:S,children:_.filter(e=>e!==v)})}Li.displayName=`ActionMenu`;const Ri=[],zi=({containerRef:e,initialFocusRef:t,returnFocusRef:n,disabled:r})=>{(0,l.useEffect)(()=>{let i=e.current;if(!i||r)return;let a=document.activeElement;Ri.push(i),(t?.current??mr(i)[0]??i).focus();let o=e=>{if(e.key!==`Tab`||Ri[Ri.length-1]!==i)return;let t=mr(i);if(t.length===0){e.preventDefault();return}let n=t[0],r=t[t.length-1],a=document.activeElement;((e.shiftKey?a===n:a===r)||!i.contains(a))&&(e.preventDefault(),(e.shiftKey?r:n).focus())};return document.addEventListener(`keydown`,o),()=>{document.removeEventListener(`keydown`,o),Ri.splice(Ri.indexOf(i),1);let e=n?.current??a;e instanceof HTMLElement&&e.focus()}},[e,t,n,r])},Bi=[],Vi=e=>{if(!(e.key!==`Escape`||e.defaultPrevented)){for(let t of[...Bi].reverse())if(t(e),e.defaultPrevented)break}},Hi=e=>{let t=(0,l.useRef)(e);(0,l.useEffect)(()=>{t.current=e},[e]),(0,l.useEffect)(()=>{let e=e=>t.current(e);return Bi.length===0&&document.addEventListener(`keydown`,Vi),Bi.push(e),()=>{Bi.splice(Bi.indexOf(e),1),Bi.length===0&&document.removeEventListener(`keydown`,Vi)}},[])},Ui=(e,t)=>{if(t!=null)return Object.fromEntries(typeof t==`object`?Object.entries(t).map(([t,n])=>Wi(`data-${e}-${t}`,n)):[Wi(`data-${e}`,t)])},Wi=(e,t)=>[e,t],Gi=(0,l.createContext)({}),Ki=`__baseUiPortalRoot__`,qi=`__default__`,Ji={root:`portal-root`},Yi={},Xi=(e,t=qi)=>{Yi[t]=e},Zi=()=>{let e=Yi[qi];if(e&&document.body.contains(e))return;let t=document.getElementById(Ki);t||(t=document.createElement(`div`),t.setAttribute(`id`,Ki),t.className=Ji.root,(document.querySelector(`[data-portal-root]`)??document.body).appendChild(t)),Xi(t)},Qi=e=>Yi[e],$i={root:`portal`};function ea({children:e,onMount:t,containerName:n}){let{portalContainerName:r}=l.useContext(Gi),i=l.useRef(null);if(!i.current){let e=document.createElement(`div`);e.setAttribute(`data-component`,`Portal`),e.className=$i.root,i.current=e}let a=i.current;return rr(()=>{let e=n??r;e===void 0&&(e=qi,Zi());let i=Qi(e);if(!i)throw Error(`Portal container '${e}' is not yet registered. Register it with registerPortalRoot before use.`);return i.appendChild(a),t?.(),()=>{i.removeChild(a)}},[a,n,r]),(0,d.createPortal)(e,a)}ea.displayName=`Portal`;const ta={"outside-top":`outside-bottom`,"outside-bottom":`outside-top`,"outside-left":`outside-right`,"outside-right":`outside-left`},na=e=>e===`outside-top`||e===`outside-bottom`,ra=(e,t,n,r)=>e===`outside-top`?t.top-n.height-r:e===`outside-bottom`?t.bottom+r:e===`outside-left`?t.left-n.width-r:t.right+r,ia=(e,t,n,r,i)=>e===`start`?t+i:e===`end`?t+n-r-i:t+(n-r)/2+i,aa=(e,t,{side:n,align:r,anchorOffset:i=4,alignmentOffset:a=0})=>{let o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),c=window.innerWidth,l=window.innerHeight,u=n,d=ra(u,o,s,i),f=na(u)?s.height:s.width,p=na(u)?l:c;if(d<0||d+f>p){let e=ra(ta[n],o,s,i);e>=0&&e+f<=p&&(u=ta[n],d=e)}let m=na(u),h=m?o.left:o.top,g=m?o.width:o.height,_=m?s.width:s.height,v=m?c:l,y=r,b=ia(r,h,g,_,a);return b<0?(y=`start`,b=ia(y,h,g,_,a)):b+_>v&&(y=`end`,b=ia(y,h,g,_,a)),b=Math.max(0,Math.min(b,v-_)),{top:m?d:b,left:m?b:d,anchorSide:u,anchorAlign:y}},oa={closeButtonContainer:`anchored-overlay-close-button-container`,closeButton:`anchored-overlay-close-button`},sa=W([`anchored-overlay`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2 motion-safe:data-[side=outside-right]:slide-in-from-left-2 motion-safe:data-[side=outside-left]:slide-in-from-right-2`],{variants:{width:{xsmall:`anchored-overlay-width-xsmall`,small:`anchored-overlay-width-small`,medium:`anchored-overlay-width-medium`,large:`anchored-overlay-width-large`,xlarge:`anchored-overlay-width-xlarge`,auto:`anchored-overlay-width-auto`},height:{small:`anchored-overlay-height-small`,medium:`anchored-overlay-height-medium`,large:`anchored-overlay-height-large`,xlarge:`anchored-overlay-height-xlarge`,auto:`anchored-overlay-height-auto`},reflow:{true:`anchored-overlay-reflow`,false:``},fullscreen:{true:`anchored-overlay-fullscreen`,false:``},unplaced:{true:`invisible`,false:``}}}),ca={regular:`anchored`,narrow:`anchored`},la=[`ArrowDown`,`ArrowUp`,` `,`Enter`],ua=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign;function da(e){let{renderAnchor:t,anchorRef:n,anchorId:r,children:i,open:a,onOpen:o,onClose:s,side:c=`outside-bottom`,align:u=`start`,anchorOffset:d,alignmentOffset:f,width:p=`auto`,height:m=`auto`,overlayProps:h,focusTrapSettings:g,preventOverflow:_=!0,variant:v=ca,displayCloseButton:y=!0,closeButtonProps:b,onPositionChange:x,className:S}=e,{ref:C,className:w,style:T,portalContainerName:E,...D}=h??{},{className:O,"aria-label":k,...A}=b??{},j=l.useRef(null),M=n??j,N=Y(r),P=l.useRef(null),F=ar(C,P),I=l.useRef(null),[L,ee]=l.useState(null),R=l.useCallback(()=>{let e=M.current,t=P.current;if(!e||!t)return;let n=aa(t,e,{side:c,align:u,anchorOffset:d,alignmentOffset:f});I.current&&ua(I.current,n)||(I.current=n,ee(n),x?.({position:n}))},[M,c,u,d,f,x]);rr(()=>{if(!a){I.current=null,ee(null);return}R();let e=new ResizeObserver(R);return P.current&&e.observe(P.current),window.addEventListener(`resize`,R),window.addEventListener(`scroll`,R,!0),()=>{e.disconnect(),window.removeEventListener(`resize`,R),window.removeEventListener(`scroll`,R,!0)}},[a,R]),zi({containerRef:P,returnFocusRef:M,...g,disabled:!a||!L||!!g?.disabled}),Hi(e=>{a&&(e.preventDefault(),s?.(`escape`))}),l.useEffect(()=>{if(!a)return;let e=e=>{let{target:t}=e;t instanceof Node&&(P.current?.contains(t)||M.current?.contains(t)||s?.(`click-outside`))};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[M,a,s]);let z=e=>{e.defaultPrevented||e.button!==0||(a?s?.(`anchor-click`):o?.(`anchor-click`))},te=e=>{e.defaultPrevented||a||!la.includes(e.key)||(o?.(`anchor-key-press`,e),e.preventDefault())},ne=v.narrow===`fullscreen`,B=!!s&&ne&&y;return(0,q.jsxs)(q.Fragment,{children:[t?t({ref:M,id:N,"aria-haspopup":`true`,"aria-expanded":a,tabIndex:0,onClick:z,onKeyDown:te}):null,a?(0,q.jsx)(ea,{containerName:E,children:(0,q.jsxs)(`div`,{ref:F,tabIndex:-1,className:G(sa({width:p,height:m,reflow:!_,fullscreen:ne,unplaced:!L}),S,w),style:{...T,"--anchored-overlay-top":`${L?.top??0}px`,"--anchored-overlay-left":`${L?.left??0}px`},"data-component":`AnchoredOverlay`,"data-side":L?.anchorSide??c,"data-align":L?.anchorAlign??u,"data-width":p,"data-height":m,"data-visibility":L?`visible`:`hidden`,...Ui(`variant`,v),...D,children:[B?(0,q.jsx)(`div`,{className:oa.closeButtonContainer,children:(0,q.jsx)(gi,{icon:un,variant:`invisible`,"aria-label":k??`Close`,onClick:()=>s?.(`close-button`),className:G(oa.closeButton,O),"data-component":`AnchoredOverlay.CloseButton`,...A})}):null,i]})}):null]})}da.displayName=`AnchoredOverlay`;const fa={container:`action-menu-overlay`};function pa(e){let{children:t,align:n=`start`,side:r,className:i,returnFocusRef:a,"aria-labelledby":o,...s}=e,c=l.useContext(Mi),u=!!c?.isSubmenu,d=c?.onClose,f=l.useCallback(e=>d?.(e),[d]),p=e=>{if(!e.defaultPrevented){if(e.key===`Tab`){d?.(`tab`);return}u&&e.key===`ArrowLeft`&&(d?.(`arrow-left`),e.preventDefault())}},m=l.useMemo(()=>({container:`ActionMenu`,listRole:`menu`,listLabelledBy:o??c?.anchorId,selectionAttribute:`aria-checked`,afterSelect:()=>d?.(`item-select`)}),[o,c?.anchorId,d]);return c?(0,q.jsx)(da,{anchorRef:c.anchorRef,renderAnchor:c.renderAnchor,anchorId:c.anchorId,open:c.open,onOpen:c.onOpen,onClose:f,align:n,side:r??(u?`outside-right`:`outside-bottom`),className:i,focusTrapSettings:a?{returnFocusRef:a}:void 0,...s,children:(0,q.jsx)(`div`,{className:fa.container,onKeyDown:p,"data-component":`ActionMenu.Overlay`,children:(0,q.jsx)(Ar.Provider,{value:m,children:t})})}):null}pa.displayName=`ActionMenu.Overlay`;const ma=Object.assign(Li,{Anchor:Ni,Button:Pi,Overlay:pa,Divider:Br}),ha=(0,l.createContext)(null);function ga({children:e,rootRef:t}){let n=l.useRef(new Map),r=l.useRef(new Set),i=l.useRef(null),a=l.useRef(null),o=l.useCallback(()=>{if(typeof IntersectionObserver>`u`)return null;let e=t.current;return e?i.current&&a.current===e?i.current:(i.current?.disconnect(),r.current.clear(),i.current=new IntersectionObserver(e=>{for(let t of e){let e=n.current.get(t.target);if(!e)continue;let r=t.intersectionRatio<1;for(let t of e)t(r)}},{root:e,threshold:1}),a.current=e,i.current):null},[t]),s=l.useCallback(()=>{let e=o();if(e)for(let t of n.current.keys())r.current.has(t)||(e.observe(t),r.current.add(t))},[o]),c=l.useCallback((e,t)=>{let a=n.current.get(e);return a||(a=new Set,n.current.set(e,a)),a.add(t),s(),()=>{let a=n.current.get(e);a&&(a.delete(t),a.size===0&&(n.current.delete(e),r.current.delete(e),i.current?.unobserve(e)))}},[s]);return rr(()=>{s()}),l.useEffect(()=>()=>{i.current?.disconnect(),i.current=null,a.current=null,r.current.clear(),n.current.clear()},[]),(0,q.jsx)(ha.Provider,{value:c,children:e})}ga.displayName=`OverflowObserverProvider`;const _a=()=>(0,l.useContext)(ha),va=({ref:e,rootRef:t,disabled:n})=>{let[r,i]=(0,l.useState)(!1),a=_a();return(0,l.useEffect)(()=>{let r=e.current;if(!r||n){i(!1);return}if(a)return a(r,i);let o=t?.current;if(!o){i(!1);return}let s=new IntersectionObserver(e=>{for(let t of e)i(t.intersectionRatio<1)},{root:o,threshold:1});return s.observe(r),()=>{s.disconnect()}},[e,t,n,a]),r},ya=(0,l.createContext)({size:`medium`}),ba=(0,l.createContext)({}),xa={current:null},Sa=e=>{let{size:t,rootRef:n,setOverflowing:r}=l.useContext(ya),{index:i,inGroup:a}=l.useContext(ba),o=va({ref:e,rootRef:n??xa,disabled:a});return l.useEffect(()=>{i!==void 0&&r?.(i,o)},[i,o,r]),{size:t,isOverflowing:o}},Ca={root:`action-bar-divider`,overflowing:`invisible`};function wa(e){let{className:t,...n}=e,r=l.useRef(null),{isOverflowing:i}=Sa(r);return(0,q.jsx)(`div`,{ref:r,"aria-hidden":`true`,className:G(Ca.root,i&&Ca.overflowing,t),"data-component":`ActionBar.Divider`,"data-overflowing":i?``:void 0,...n})}wa.displayName=`ActionBar.Divider`;const Ta={root:`action-bar-group`,overflowing:`invisible`},Ea={inGroup:!0};function Da(e){let{className:t,children:n,...r}=e,i=l.useRef(null),{isOverflowing:a}=Sa(i);return(0,q.jsx)(`div`,{ref:i,className:G(Ta.root,a&&Ta.overflowing,t),"data-component":`ActionBar.Group`,"data-overflowing":a?``:void 0,...r,children:(0,q.jsx)(ba.Provider,{value:Ea,children:n})})}Da.displayName=`ActionBar.Group`;const Oa={overflowing:`invisible`};function ka(e,t){let{className:n,...r}=e,i=l.useRef(null),a=ar(t,i),{size:o,isOverflowing:s}=Sa(i);return(0,q.jsx)(gi,{ref:a,size:o,variant:`invisible`,className:G(s&&Oa.overflowing,n),"data-component":`ActionBar.IconButton`,"data-overflowing":s?``:void 0,...r})}ka.displayName=`ActionBar.IconButton`;var Aa=K(ka);const ja=e=>typeof e==`string`?(0,q.jsx)(`span`,{children:e}):l.isValidElement(e)?e:(0,q.jsx)(e,{}),Ma=({items:e})=>(0,q.jsx)(q.Fragment,{children:e.map((e,t)=>{if(e.type===`divider`)return(0,q.jsx)(ji.Divider,{},t);let{label:n,disabled:r,variant:i,leadingVisual:a,trailingVisual:o,onClick:s}=e,c=(0,q.jsxs)(q.Fragment,{children:[a?(0,q.jsx)(ji.LeadingVisual,{children:ja(a)}):null,n,o?(0,q.jsx)(ji.TrailingVisual,{children:ja(o)}):null]});return e.items&&e.items.length>0?(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(ji.Item,{disabled:r,variant:i,children:c})}),(0,q.jsx)(ma.Overlay,{children:(0,q.jsx)(ji,{children:(0,q.jsx)(Ma,{items:e.items})})})]},t):(0,q.jsx)(ji.Item,{onSelect:s,disabled:r,variant:i,children:c},t)})}),Na={overflowing:`invisible`};function Pa(e,t){let{className:n,icon:r,items:i,returnFocusRef:a,overflowIcon:o,...s}=e,c=l.useRef(null),u=ar(t,c),{size:d,isOverflowing:f}=Sa(c);return(0,q.jsxs)(ma,{anchorRef:c,children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(gi,{ref:u,icon:r,size:d,variant:`invisible`,className:G(f&&Na.overflowing,n),"data-component":`ActionBar.Menu`,"data-overflowing":f?``:void 0,...s})}),(0,q.jsx)(ma.Overlay,{returnFocusRef:a,children:(0,q.jsx)(ji,{children:(0,q.jsx)(Ma,{items:i})})})]})}Pa.displayName=`ActionBar.Menu`;var Fa=K(Pa);const Ia={size:{small:`action-bar-size-small`,medium:`action-bar-size-medium`,large:`action-bar-size-large`},spacer:`shrink-0`,moreButtonEmpty:`invisible`},La=W(`action-bar`,{variants:{flush:{true:``,false:`action-bar-inset`}}}),Ra=W(`action-bar-toolbar`,{variants:{size:Ia.size}}),za=W(`action-bar-items`,{variants:{size:Ia.size,gap:{none:`action-bar-gap-none`,condensed:`action-bar-gap-condensed`}}}),Ba=new Set,Va=e=>l.isValidElement(e)?e:(0,q.jsx)(e,{}),Ha=(e,t)=>{let n=e.props;if(e.type===wa)return(0,q.jsx)(ji.Divider,{},t);if(e.type===Da)return l.Children.toArray(n.children).filter(e=>l.isValidElement(e)).map((e,n)=>Ha(e,`${t}-${n}`));if(e.type===Fa){let e=n.overflowIcon??n.icon;return(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsxs)(ji.Item,{children:[e?(0,q.jsx)(ji.LeadingVisual,{children:Va(e)}):null,n[`aria-label`]]})}),(0,q.jsx)(ma.Overlay,{returnFocusRef:n.returnFocusRef,children:(0,q.jsx)(ji,{children:(0,q.jsx)(Ma,{items:n.items})})})]},t)}let r=e.type===Aa?n.icon:n.leadingVisual,i=e.type===Aa?n[`aria-label`]:n.children;return(0,q.jsxs)(ji.Item,{onSelect:n.onClick,disabled:n.disabled,children:[r?(0,q.jsx)(ji.LeadingVisual,{children:Va(r)}):null,i]},t)};function Ua(e){let{className:t,children:n,size:r=`medium`,flush:i=!1,gap:a=`condensed`,"aria-label":o,"aria-labelledby":s}=e,c=l.useRef(null),u=l.useRef(null),[d,f]=l.useState(Ba),p=l.useCallback((e,t)=>{f(n=>{if(n.has(e)===t)return n;let r=new Set(n);return t?r.add(e):r.delete(e),r})},[]);_r({containerRef:c,direction:`horizontal`,wrap:!0});let m=l.useMemo(()=>({size:r,rootRef:u,setOverflowing:p}),[r,p]),h=l.Children.toArray(n),g=h.length,_=l.useMemo(()=>Array.from({length:g},(e,t)=>({index:t})),[g]),v=h.map((e,t)=>d.has(t)&&l.isValidElement(e)?Ha(e,t):null).filter(Boolean);return(0,q.jsx)(ya.Provider,{value:m,children:(0,q.jsx)(`div`,{className:G(La({flush:i}),t),"data-component":`ActionBar`,"data-flush":i?``:void 0,children:(0,q.jsxs)(`div`,{ref:c,role:`toolbar`,"aria-label":o,"aria-labelledby":s,className:G(Ra({size:r})),"data-size":r,"data-gap":a,"data-has-overflow":v.length>0?``:void 0,children:[(0,q.jsxs)(`div`,{ref:u,className:G(za({size:r,gap:a})),children:[(0,q.jsx)(`div`,{className:Ia.spacer}),h.map((e,t)=>(0,q.jsx)(ba.Provider,{value:_[t],children:e},t))]}),(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(gi,{icon:Cn,"aria-label":`More items`,size:r,variant:`invisible`,className:v.length>0?void 0:Ia.moreButtonEmpty,"data-component":`ActionBar.MoreButton`})}),(0,q.jsx)(ma.Overlay,{children:(0,q.jsx)(ji,{children:v})})]})]})})})}Ua.displayName=`ActionBar`;const Wa={overflowing:`invisible`};function Ga(e,t){let{className:n,...r}=e,i=l.useRef(null),a=ar(t,i),{size:o,isOverflowing:s}=Sa(i);return(0,q.jsx)(pi,{ref:a,size:o,variant:`invisible`,className:G(s&&Wa.overflowing,n),"data-component":`ActionBar.Button`,"data-overflowing":s?``:void 0,...r})}Ga.displayName=`ActionBar.Button`;var Ka=K(Ga);const qa=Object.assign(Ua,{Button:Ka,IconButton:Aa,Divider:wa,Group:Da,Menu:Fa}),Ja=W(`alert`,{variants:{variant:{default:`alert-default`,success:`alert-success`,warning:`alert-warning`,danger:`alert-danger`}}});function Ya(e,t){let{as:n=`div`,className:r,variant:i=`default`,...a}=e;return(0,q.jsx)(n,{ref:t,className:G(Ja({variant:i}),r),"data-component":`Alert`,"data-variant":i,...a})}Ya.displayName=`Alert`;var Xa=K(Ya);const Za={root:`aspect-ratio`};function Qa(e,t){let{as:n=`div`,className:r,ratio:i=1,style:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Za.root,r),style:{...a,"--aspect-ratio":i},"data-component":`AspectRatio`,...o})}Qa.displayName=`AspectRatio`;var $a=K(Qa);const eo=(0,l.createContext)({}),to=W(`attachment`,{variants:{state:{idle:`attachment-state-idle`,uploading:``,processing:``,error:`attachment-state-error`,done:``},size:{small:`attachment-size-small`,medium:`attachment-size-medium`,large:`attachment-size-large`},orientation:{horizontal:`attachment-horizontal`,vertical:`attachment-vertical`}}});function no(e,t){let{as:n=`div`,className:r,state:i=`done`,size:a=`medium`,orientation:o=`horizontal`,...s}=e,c=l.useMemo(()=>({state:i,size:a,orientation:o}),[i,a,o]);return(0,q.jsx)(eo.Provider,{value:c,children:(0,q.jsx)(n,{ref:t,className:G(to({state:i,size:a,orientation:o}),r),"data-component":`Attachment`,"data-state":i,"data-size":a,"data-orientation":o,...s})})}no.displayName=`Attachment`;var ro=K(no);const io={root:`attachment-action`};function ao(e,t){let{className:n,variant:r=`invisible`,size:i=`small`,...a}=e,o=a;return(0,q.jsx)(gi,{ref:t,variant:r,size:i,className:G(io.root,n),"data-component":`Attachment.Action`,...o})}ao.displayName=`Attachment.Action`;var oo=K(ao);const so={root:`attachment-actions`};function co(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(so.root,n),"data-component":`Attachment.Actions`,...r})}co.displayName=`Attachment.Actions`;var lo=K(co);const uo={root:`attachment-content`};function fo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(uo.root,n),"data-component":`Attachment.Content`,...r})}fo.displayName=`Attachment.Content`;var po=K(fo);const mo={root:`attachment-description`};function ho(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(mo.root,n),"data-component":`Attachment.Description`,...r})}ho.displayName=`Attachment.Description`;var go=K(ho);const _o={root:`attachment-group`};function vo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(_o.root,n),"data-component":`Attachment.Group`,...r})}vo.displayName=`Attachment.Group`;var yo=K(vo);const bo=W(`attachment-media`,{variants:{variant:{icon:``,image:`attachment-media-image`}}});function xo(e,t){let{className:n,variant:r=`icon`,...i}=e;return(0,q.jsx)(`div`,{ref:t,className:G(bo({variant:r}),n),"data-component":`Attachment.Media`,"data-variant":r,...i})}xo.displayName=`Attachment.Media`;var So=K(xo);const Co={root:`attachment-title`};function wo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(Co.root,n),"data-component":`Attachment.Title`,...r})}wo.displayName=`Attachment.Title`;var To=K(wo);const Eo={root:`attachment-trigger`};function Do(e,t){let{as:n=`button`,className:r,type:i,...a}=e;return(0,q.jsx)(n,{ref:t,type:n===`button`?i??`button`:i,className:G(Eo.root,r),"data-component":`Attachment.Trigger`,...a})}Do.displayName=`Attachment.Trigger`;var Oo=K(Do);const ko=Object.assign(ro,{Group:yo,Media:So,Content:po,Title:To,Description:go,Actions:lo,Action:oo,Trigger:Oo}),Ao=(0,l.createContext)({}),jo=(0,l.createContext)({}),Mo=(0,l.createContext)({});function No({children:e,id:t}){let n=Y(t),r=l.useRef(null),i=l.useRef(null),[a,o]=l.useState(``),[s,c]=l.useState(``),[u,d]=l.useState(),[f,p]=l.useState(!1),m=l.useCallback(e=>{p(e),e||(d(void 0),c(``))},[]),h=l.useMemo(()=>({id:n,inputRef:r,scrollContainerRef:i,activeDescendantId:u,setActiveDescendantId:d,showMenu:f,setShowMenu:m,setInputValue:o,setAutocompleteSuggestion:c}),[n,u,f,m]),g=l.useMemo(()=>({inputValue:a,autocompleteSuggestion:s}),[a,s]),_=l.useDeferredValue(a),v=l.useMemo(()=>({deferredInputValue:_}),[_]);return(0,q.jsx)(Ao.Provider,{value:h,children:(0,q.jsx)(jo.Provider,{value:g,children:(0,q.jsx)(Mo.Provider,{value:v,children:e})})})}No.displayName=`Autocomplete`;const Po=W(`text`,{variants:{size:{large:`text-size-large`,medium:`text-size-medium`,small:`text-size-small`},weight:{light:`text-weight-light`,normal:`text-weight-normal`,medium:`text-weight-medium`,semibold:`text-weight-semibold`},whiteSpace:{pre:`whitespace-pre`,normal:`whitespace-normal`,nowrap:`whitespace-nowrap`,"pre-wrap":`whitespace-pre-wrap`,"pre-line":`whitespace-pre-line`}}});function Fo(e,t){let{as:n=`span`,className:r,size:i=`medium`,weight:a,whiteSpace:o,...s}=e;return(0,q.jsx)(n,{ref:t,className:G(Po({size:i,weight:a,whiteSpace:o}),r),"data-component":`Text`,"data-size":i,"data-weight":a,"data-white-space":o,...s})}Fo.displayName=`Text`;var Io=K(Fo);const Lo=(e,t)=>{let n=t-e;if(n>=0)return{count:n,isOverLimit:!1,message:`${n} ${n===1?`character`:`characters`} remaining`};let r=-n;return{count:r,isOverLimit:!0,message:`${r} ${r===1?`character`:`characters`} over`}},Ro={field:`input`,size:{small:`input-small`,medium:`input-medium`,large:`input-large`},focus:`input-focus`,focusTracked:`input-focus-tracked`,block:`input-block`,contrast:`input-contrast`,monospace:`input-monospace`,disabled:`input-disabled`,validation:{error:`input-error`,success:`input-success`},validationFocus:`input-validation-focus`,validationFocusTracked:`input-validation-focus-tracked`,leadingVisual:`input-leading-visual-padding`,leadingVisualLarge:`input-leading-visual-padding-wide`,trailingVisual:`input-trailing-visual-padding`,trailingVisualLarge:`input-trailing-visual-padding-wide`,input:`input-control`,inputPadStart:`input-control-pad-start`,inputPadStartWide:`input-control-pad-start-wide`,inputPadEnd:`input-control-pad-end`,inputPadEndWide:`input-control-pad-end-wide`,visual:`input-visual`,visualBox:`input-visual-box`,spinner:`input-spinner`,spinnerLeading:`input-spinner-leading`,spinnerHidden:`invisible`,spinnerVisible:`visible`,counter:`input-counter`,counterOverLimit:`input-counter-over-limit`,counterIcon:`input-counter-icon`,hidden:`sr-only`},zo=[`date`,`time`,`datetime-local`],Bo=e=>typeof e==`string`||!(0,f.isValidElementType)(e)?e:(0,q.jsx)(e,{}),Vo=({id:e,position:t,hasLoader:n,showLoader:r,children:i})=>{let a=t===`leading`?`TextInput.LeadingVisual`:`TextInput.TrailingVisual`;return n?(0,q.jsx)(`span`,{className:Ro.visual,"data-component":a,children:(0,q.jsxs)(`span`,{id:e,className:Ro.visualBox,children:[i?(0,q.jsx)(`span`,{className:r?Ro.spinnerHidden:Ro.spinnerVisible,children:i}):null,(0,q.jsx)($r,{srText:null,size:i?void 0:`small`,className:G(r?Ro.spinnerVisible:Ro.spinnerHidden,i&&Ro.spinner,i&&t===`leading`&&Ro.spinnerLeading)})]})}):(0,q.jsx)(`span`,{id:e,className:Ro.visual,"aria-hidden":`true`,"data-component":a,children:i})};function Ho(e,t){let{className:n,type:r=`text`,size:i=`medium`,block:a,contrast:o,monospace:s,disabled:c,required:u,validationStatus:d,leadingVisual:f,trailingVisual:p,trailingAction:m,loading:h,loaderPosition:g=`auto`,loaderText:_=`Loading`,characterLimit:v,value:y,defaultValue:b,onChange:x,onFocus:S,onBlur:C,"aria-describedby":w,...T}=e,E=l.useRef(null),D=ar(t,E),O=Y(),k=Y(),A=Y(),j=Y(),[M,N]=l.useState(!1),P=y!==void 0,[F,I]=l.useState(()=>b===void 0?0:String(b).length),L=P?String(y).length:F,ee=v?Lo(L,v):void 0,R=ee?.isOverLimit??!1,z=R?`error`:d,te=l.useRef(!1),[ne,B]=l.useState(``),re=ee?.message;l.useEffect(()=>{if(!te.current)return;let e=window.setTimeout(()=>{B(re??``)},500);return()=>{window.clearTimeout(e)}},[re]);let V=!!(h&&(g===`leading`||f&&g!==`trailing`)),ie=!!(h&&(g===`trailing`||g===`auto`&&!f)),ae=typeof h==`boolean`,oe=!!f||V,se=!!p||ie,ce=!!m,le=!!p||ae,ue=ce,de=i===`large`,fe=e=>{N(!0),S?.(e)},pe=e=>{N(!1),C?.(e)},me=e=>{te.current=!0,v&&!P&&I(e.target.value.length),x?.(e)},he=e=>{(e.target!==E.current||!zo.includes(r))&&E.current?.focus()},ge=[v?j:void 0,w,f?O:void 0,p?k:void 0,h?A:void 0].filter(Boolean).join(` `)||void 0;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{className:G(Ro.field,Ro.size[i],ue?M&&Ro.focusTracked:Ro.focus,a&&Ro.block,o&&Ro.contrast,s&&Ro.monospace,c&&Ro.disabled,z&&Ro.validation[z],z===`error`&&(ue?M&&Ro.validationFocusTracked:Ro.validationFocus),oe&&(de?Ro.leadingVisualLarge:Ro.leadingVisual),se&&!ce&&(de?Ro.trailingVisualLarge:Ro.trailingVisual),n),onClick:he,"aria-busy":h?!0:void 0,"data-component":`TextInput`,"data-size":i,"data-block":a,"data-contrast":o,"data-monospace":s,"data-disabled":c,"data-validation":z,"data-focused":M||void 0,"data-leading-visual":oe||void 0,"data-trailing-visual":se||void 0,"data-trailing-action":ce||void 0,children:[oe?(0,q.jsx)(Vo,{id:O,position:`leading`,hasLoader:ae,showLoader:V,children:f?Bo(f):null}):null,(0,q.jsx)(`input`,{ref:D,type:r,value:y,defaultValue:b,disabled:c,required:u,"aria-required":u?!0:void 0,"aria-invalid":z===`error`||void 0,"aria-describedby":ge,onChange:me,onFocus:fe,onBlur:pe,className:G(Ro.input,!oe&&(se||ce?Ro.inputPadStart:Ro.inputPadStartWide),!se&&!ce&&(oe?Ro.inputPadEnd:Ro.inputPadEndWide)),"data-component":`TextInput.Input`,...T}),h?(0,q.jsx)(`span`,{id:A,className:Ro.hidden,children:_}):null,le?(0,q.jsx)(Vo,{id:k,position:`trailing`,hasLoader:ae,showLoader:ie,children:p?Bo(p):null}):null,m]}),ee?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Ro.hidden,children:ne}),(0,q.jsxs)(`span`,{id:j,className:Ro.hidden,children:[`You can enter up to `,v,` `,v===1?`character`:`characters`]}),(0,q.jsxs)(Io,{"aria-hidden":`true`,size:`small`,className:G(Ro.counter,R&&Ro.counterOverLimit),"data-component":`TextInput.CharacterCount`,children:[R?(0,q.jsx)(fn,{className:Ro.counterIcon}):null,ee.message]})]}):null]})}Ho.displayName=`TextInput`;var Uo=K(Ho);const Wo={root:`input-action`,button:`input-action-button`};function Go(e,t){let{className:n,icon:r,...i}=e;return(0,q.jsx)(`span`,{className:Wo.root,"data-component":`TextInput.Action`,children:(0,q.jsx)(gi,{ref:t,type:`button`,variant:`invisible`,size:`small`,icon:r,className:G(Wo.button,n),...i})})}Go.displayName=`TextInput.Action`;var Ko=K(Go);const qo=Object.assign(Uo,{Action:Ko}),Jo=[`ArrowDown`,`ArrowUp`],Yo=[`Backspace`,`Delete`];function Xo(e,t){let{as:n=qo,className:r,openOnFocus:i=!1,value:a,onFocus:o,onBlur:s,onClick:c,onChange:u,onKeyDown:d,onKeyUp:f,...p}=e,{id:m,inputRef:h,activeDescendantId:g,showMenu:_,setShowMenu:v,setInputValue:y}=l.useContext(Ao),{inputValue:b=``,autocompleteSuggestion:x=``}=l.useContext(jo),S=ar(t,h),[C,w]=l.useState(!0);return l.useEffect(()=>{let e=h?.current;if(e){if(!x){e.value=b;return}!C||document.activeElement!==e||(e.value=x,x.toLowerCase().startsWith(b.toLowerCase())&&e.setSelectionRange(b.length,x.length))}},[x,b,h,C]),l.useEffect(()=>{a!==void 0&&y?.(String(a))},[a,y]),(0,q.jsx)(n,{ref:S,id:m,role:`combobox`,autoComplete:`off`,"aria-autocomplete":`both`,"aria-haspopup":`listbox`,"aria-expanded":!!_,"aria-controls":`${m}-listbox`,"aria-activedescendant":g,className:r,onFocus:e=>{o?.(e),i&&v?.(!0)},onBlur:e=>{s?.(e),v?.(!1)},onClick:e=>{c?.(e),i&&v?.(!0)},onChange:e=>{u?.(e),y?.(e.currentTarget.value),v?.(!0)},onKeyDown:e=>{if(d?.(e),!e.defaultPrevented){if(Yo.includes(e.key)&&w(!1),e.key===`Escape`){_?v?.(!1):e.currentTarget.value&&(y?.(``),e.currentTarget.value=``);return}!_&&!e.altKey&&Jo.includes(e.key)&&v?.(!0)}},onKeyUp:e=>{f?.(e),Yo.includes(e.key)&&w(!0)},"data-component":`Autocomplete.Input`,...p})}Xo.displayName=`Autocomplete.Input`;var Zo=K(Xo);const Qo={loading:`autocomplete-menu-loading`,emptyState:`autocomplete-menu-empty-state`,hidden:`sr-only`},$o=e=>t=>!!t.text?.toLowerCase().startsWith(e.toLowerCase()),es=e=>(t,n)=>e(t)===e(n)?0:e(t)?-1:1,ts=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),ns=e=>typeof e==`string`||!(0,f.isValidElementType)(e)?e:(0,q.jsx)(e,{});function rs(e){let{items:t,selectedItemIds:n=[],selectionVariant:r=`single`,filter:i,sortOnClose:a,emptyStateText:o=`No selectable options`,addNewItem:s,loading:c=!1,onOpenChange:u,onSelectedChange:d,customScrollContainerRef:f,"aria-labelledby":p,className:m}=e,{id:h,inputRef:g,scrollContainerRef:_,activeDescendantId:v,setActiveDescendantId:y,showMenu:b,setShowMenu:x,setInputValue:S,setAutocompleteSuggestion:C}=l.useContext(Ao),{deferredInputValue:w=``}=l.useContext(Mo),T=`${h}-listbox`,E=l.useCallback(e=>`${T}-${e}`,[T]),[D,O]=l.useState(()=>t.map(e=>e.id));l.useEffect(()=>{if(b)return;let e=t.map(e=>e.id).sort(a??es(e=>n.includes(e)));O(t=>ts(e,t)?t:e)},[b,t,n,a]);let k=l.useMemo(()=>new Map(D.map((e,t)=>[e,t])),[D]),A=l.useMemo(()=>t.filter(i??$o(w)).sort((e,t)=>(k.get(e.id)??2**53-1)-(k.get(t.id)??2**53-1)),[t,i,w,k]),j=l.useMemo(()=>s?[...A,s.item]:A,[A,s]),M=l.useMemo(()=>j.filter(e=>!e.disabled),[j]),N=M.findIndex(e=>E(e.id)===v),P=M[N],[F,I]=l.useState(!1),L=e=>{if(s&&e.id===s.item.id)s.onAdd(e);else{let i=r===`single`?[e.id]:n.includes(e.id)?n.filter(t=>t!==e.id):[...n,e.id];d?d(i.map(e=>t.find(t=>t.id===e)).filter(e=>e!==void 0)):r===`single`&&S?.(e.text??``)}if(r===`multiple`){S?.(``),C?.(``);return}x?.(!1)},ee=e=>{if(M.length===0)return;let t=(e+M.length)%M.length;I(!0),y?.(E(M[t].id))},R=e=>{let t=e.target.closest(`[role="option"]`);!t||t.id===v||M.some(e=>E(e.id)===t.id)&&(I(!1),y?.(t.id))},z=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;if(e.key===`Enter`){if(!P)return;e.preventDefault(),L(P);return}let t=e.key===`ArrowDown`?1:e.key===`ArrowUp`?-1:0;t!==0&&(e.preventDefault(),ee(N===-1?t===1?0:-1:N+t))},te=l.useRef(z);l.useEffect(()=>{te.current=z}),l.useEffect(()=>{let e=g?.current;if(!e||!b)return;let t=e=>te.current(e);return e.addEventListener(`keydown`,t),()=>{e.removeEventListener(`keydown`,t)}},[g,b]);let ne=P?.text??``,B=F&&!!P&&ne.toLowerCase().startsWith(w.toLowerCase())&&!n.includes(P.id);l.useEffect(()=>{C?.(B?ne:``)},[B,ne,C]),l.useEffect(()=>{if(!v||!F)return;let e=f?.current??_?.current,t=document.getElementById(v);if(!e||!t||!e.contains(t))return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();r.top<n.top?e.scrollTop-=n.top-r.top:r.bottom>n.bottom&&(e.scrollTop+=r.bottom-n.bottom)},[v,F,f,_]);let re=l.useRef(!1);l.useEffect(()=>{let e=!!b;re.current!==e&&(re.current=e,u?.(e))},[b,u]);let V=typeof o==`string`?o:`No options available`,ie=c?``:j.length===0?V:`${j.length} option${j.length===1?``:`s`} available.`,[ae,oe]=l.useState(``),se=l.useRef(``);l.useEffect(()=>{if(!b){se.current=``,oe(``);return}if(ie===se.current)return;se.current=ie;let e=window.setTimeout(()=>oe(ie),500);return()=>{window.clearTimeout(e)}},[b,ie]);let ce=l.useMemo(()=>({container:`Autocomplete`,listRole:`listbox`,listLabelledBy:p,selectionAttribute:`aria-selected`,selectionVariant:r,enableFocusZone:!1}),[p,r]);return(0,q.jsxs)(`div`,{className:G(m),onMouseDown:e=>e.preventDefault(),onMouseMove:R,"data-component":`Autocomplete.Menu`,"data-loading":c?``:void 0,children:[c?(0,q.jsx)(`div`,{className:Qo.loading,"data-component":`Autocomplete.Loading`,children:(0,q.jsx)($r,{})}):j.length===0?o?(0,q.jsx)(`div`,{className:Qo.emptyState,"data-component":`Autocomplete.EmptyState`,children:o}):null:(0,q.jsx)(Ar.Provider,{value:ce,children:(0,q.jsx)(ji,{id:T,children:j.map(e=>{let{id:t,text:r,description:i,descriptionVariant:a,leadingVisual:o,trailingVisual:c,children:l,...u}=e,d=s&&t===s.item.id?Pt:o;return(0,q.jsxs)(ji.Item,{id:E(t),tabIndex:-1,active:E(t)===v,selected:n.includes(t),onSelect:()=>L(e),"data-id":t,...u,children:[d?(0,q.jsx)(ji.LeadingVisual,{children:ns(d)}):null,l,r,i?(0,q.jsx)(ji.Description,{variant:a,children:i}):null,c?(0,q.jsx)(ji.TrailingVisual,{children:ns(c)}):null]},t)})})}),(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Qo.hidden,"data-component":`Autocomplete.Announcement`,children:ae})]})}rs.displayName=`Autocomplete.Menu`;const is={hidden:`sr-only`},as=W([`autocomplete-overlay`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2`],{variants:{width:{xsmall:`autocomplete-overlay-width-xsmall`,small:`autocomplete-overlay-width-small`,medium:`autocomplete-overlay-width-medium`,large:`autocomplete-overlay-width-large`,xlarge:`autocomplete-overlay-width-xlarge`,auto:`autocomplete-overlay-width-auto`,anchor:`autocomplete-overlay-width-anchor`},height:{small:`autocomplete-overlay-height-small`,medium:`autocomplete-overlay-height-medium`,large:`autocomplete-overlay-height-large`,xlarge:`autocomplete-overlay-height-xlarge`,auto:`autocomplete-overlay-height-auto`},maxHeight:{small:`autocomplete-overlay-max-height-small`,medium:`autocomplete-overlay-max-height-medium`,large:`autocomplete-overlay-max-height-large`,xlarge:`autocomplete-overlay-max-height-xlarge`},unplaced:{true:`invisible`,false:``}}}),os=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign&&e.anchorWidth===t.anchorWidth;function ss(e){let{menuAnchorRef:t,side:n=`outside-bottom`,align:r=`start`,width:i=`anchor`,height:a=`auto`,maxHeight:o=`medium`,portalContainerName:s,children:c,className:u,style:d,...f}=e,{inputRef:p,scrollContainerRef:m,showMenu:h,setShowMenu:g}=l.useContext(Ao),_=l.useRef(null),v=ar(m,_),y=l.useCallback(()=>{let e=p?.current??null;return t?.current??e?.closest(`[data-component="TextInput"]`)??e},[t,p]),b=l.useRef(null),[x,S]=l.useState(null),C=l.useCallback(()=>{let e=y(),t=_.current;if(!e||!t)return;let i={...aa(t,e,{side:n,align:r}),anchorWidth:e.getBoundingClientRect().width};b.current&&os(b.current,i)||(b.current=i,S(i))},[y,n,r]);return rr(()=>{if(!h){b.current=null,S(null);return}C();let e=new ResizeObserver(C),t=y();return _.current&&e.observe(_.current),t&&e.observe(t),window.addEventListener(`resize`,C),window.addEventListener(`scroll`,C,!0),()=>{e.disconnect(),window.removeEventListener(`resize`,C),window.removeEventListener(`scroll`,C,!0)}},[h,C,y]),l.useEffect(()=>{if(!h)return;let e=e=>{let{target:t}=e;t instanceof Node&&(_.current?.contains(t)||y()?.contains(t)||g?.(!1))};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[h,g,y]),(0,q.jsx)(ea,{containerName:s,children:(0,q.jsx)(`div`,{ref:v,"aria-hidden":h?void 0:`true`,className:G(h?as({width:i,height:a,maxHeight:o,unplaced:!x}):is.hidden,u),style:{...d,"--autocomplete-overlay-top":`${x?.top??0}px`,"--autocomplete-overlay-left":`${x?.left??0}px`,"--autocomplete-overlay-anchor-width":`${x?.anchorWidth??0}px`},"data-component":`Autocomplete.Overlay`,"data-open":h?``:void 0,"data-side":x?.anchorSide??n,"data-align":x?.anchorAlign??r,"data-width":i,"data-height":a,...f,children:c})})}ss.displayName=`Autocomplete.Overlay`;const cs=Object.assign(No,{Input:Zo,Menu:rs,Overlay:ss});(0,l.createContext)({});const ls=e=>typeof e==`object`&&Object.keys(e).some(e=>[`narrow`,`regular`,`wide`].includes(e)),us=(0,l.createContext)({}),ds=W(`avatar`,{variants:{shape:{circle:`avatar-circle`,square:`avatar-square`},responsive:{true:`avatar-responsive`,false:``}}});function fs(e,t){let{as:n=`span`,className:r,size:i=20,shape:a=`circle`,style:o,children:s,...c}=e,[u,d]=l.useState(`idle`),f=l.useMemo(()=>({status:u,setStatus:d}),[u]),p=ls(i),m={"--avatar-size-regular":`20px`};if(p)for(let[e,t]of Object.entries(i))t!==void 0&&(m[`--avatar-size-${e}`]=`${t}px`);else m[`--avatar-size-regular`]=`${i}px`;return(0,q.jsx)(us.Provider,{value:f,children:(0,q.jsx)(n,{ref:t,className:G(ds({shape:a,responsive:p}),r),style:{...o,...m},"data-component":`Avatar`,"data-responsive":p||void 0,"data-shape":a,"data-status":u,...c,children:s})})}fs.displayName=`Avatar`;var ps=K(fs);const ms=`en-US`,hs=(e,t)=>t?`${e}|${Object.entries(t).filter(([,e])=>e!==void 0).sort(([e],[t])=>e<t?-1:1).map(([e,t])=>`${e}=${String(t)}`).join(`,`)}`:e,gs=e=>{let t=new Map;return(n,r)=>{let i=hs(n,r),a=t.get(i);if(a)return a;let o=e(n,r);return t.set(i,o),o}},_s=new Set([`Adlm`,`Arab`,`Armi`,`Avst`,`Hebr`,`Mand`,`Mend`,`Nkoo`,`Rohg`,`Samr`,`Syrc`,`Thaa`]),vs=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),ys=e=>{try{return new Intl.Locale(e).maximize().script}catch{return}},bs=e=>{let t=ys(e);return t?_s.has(t):vs.has(e.split(`-`)[0].toLowerCase())},xs=e=>bs(e)?`rtl`:`ltr`,Ss=()=>{let e=typeof navigator>`u`?void 0:navigator.language;if(!e)return ms;try{return Intl.DateTimeFormat.supportedLocalesOf([e]),e}catch{return ms}},Cs=gs((e,t)=>new Intl.Collator(e,t)),ws=(e=ms,t={})=>Cs(e,t),Ts=RegExp(`\\p{P}`,`gu`),Es=gs((e,t={})=>{let n=Cs(e,{usage:`search`,...t}),r=e=>{let t=e.normalize(`NFC`);return n.resolvedOptions().ignorePunctuation?t.replace(Ts,``):t},i=(e,t)=>n.compare(e,t)===0;return{startsWith:(e,t)=>{if(t.length===0)return!0;let[n,a]=[r(e),r(t)];return i(n.slice(0,a.length),a)},endsWith:(e,t)=>{if(t.length===0)return!0;let[n,a]=[r(e),r(t)];return i(n.slice(-a.length),a)},contains:(e,t)=>{if(t.length===0)return!0;let[n,a]=[r(e),r(t)];for(let e=0;e+a.length<=n.length;e++)if(i(n.slice(e,e+a.length),a))return!0;return!1}}}),Ds=({locale:e,...t}={})=>Es(e??`en-US`,t),Os=gs((e,t)=>new Intl.NumberFormat(e,t)),ks=(e=ms,t={})=>Os(e,t),As=(e,t=ms,n={})=>Os(t,n).format(e),js=gs((e,t)=>new Intl.DateTimeFormat(e,t)),Ms=(e=ms,t={})=>js(e,t),Ns=[``,`kilo`,`mega`,`giga`,`tera`],Ps=[``,`kilo`,`mega`,`giga`,`tera`,`peta`],Fs=(e,t=ms,n={})=>{if(Number.isNaN(e))return``;if(e===0)return`0 B`;let{precision:r=3,unitSystem:i=`decimal`,unit:a=`byte`,unitDisplay:o=`short`}=n,s=i===`binary`?1024:1e3,c=a===`bit`?Ns:Ps,l=Math.abs(e),u=0;for(;l>=s&&u<c.length-1;)l/=s,u++;let d=parseFloat(l.toPrecision(r));return As(e<0?-d:d,t,{style:`unit`,unit:c[u]+a,unitDisplay:o})},Is=(0,l.createContext)({direction:`ltr`}),Ls=(0,l.createContext)({locale:ms,direction:xs(ms)}),Rs=()=>(0,l.useContext)(Ls),zs=e=>(window?.addEventListener?.(`languagechange`,e),()=>window?.removeEventListener?.(`languagechange`,e)),Bs=()=>ms,Vs=()=>l.useSyncExternalStore(zs,Ss,Bs);function Hs({children:e,className:t,...n}){let{locale:r}=Rs(),i=Vs(),a=n.locale??r,o=a===`auto`?i:a,s=xs(o),c=l.useMemo(()=>({locale:o,direction:s}),[o,s]),u=l.useMemo(()=>({direction:s}),[s]);return(0,q.jsx)(Ls.Provider,{value:c,children:(0,q.jsx)(Is.Provider,{value:u,children:(0,q.jsx)(`div`,{className:t,"data-component":`LocaleProvider`,lang:o,dir:s,children:e})})})}Hs.displayName=`LocaleProvider`;const Us=({locale:e,...t}={})=>{let{locale:n}=Rs();return ws(e??n,t)},Ws=({locale:e,...t}={})=>{let{locale:n}=Rs();return Ms(e??n,t)},Gs=({locale:e,...t}={})=>{let{locale:n}=Rs();return Ds({locale:e??n,...t})},Ks=({locale:e,...t}={})=>{let{locale:n}=Rs();return ks(e??n,t)},qs={root:`avatar-fallback`},Js=(e,t)=>{let n=e.trim().split(/\s+/).filter(Boolean);if(n.length===0)return``;let[r]=[...n[0]],[i]=[...n[n.length-1]];return(n.length>1?`${r}${i}`:r).toLocaleUpperCase(t)};function Ys(e,t){let{className:n,name:r,...i}=e,{status:a=`idle`}=l.useContext(us),{locale:o}=Rs();return a===`loaded`?null:(0,q.jsx)(`span`,{ref:t,role:`img`,"aria-label":r,className:G(qs.root,n),"data-component":`Avatar.Fallback`,"data-status":a,...i,children:Js(r,o)})}Ys.displayName=`Avatar.Fallback`;var Xs=K(Ys);const Zs={root:`avatar-image`};function Qs(e,t){let{className:n,alt:r=``,src:i,onLoad:a,onError:o,...s}=e,{setStatus:c}=l.useContext(us),[u,d]=l.useState(`idle`),f=l.useRef(null),p=ar(f,t),m=l.useCallback(e=>{d(e),c?.(e)},[c]);return rr(()=>{let e=f.current;if(!e||!i){m(`idle`);return}m(e.complete&&e.naturalWidth>0?`loaded`:`loading`)},[m,i]),(0,q.jsx)(`img`,{ref:p,alt:r,src:i,onLoad:e=>{m(`loaded`),a?.(e)},onError:e=>{m(`error`),o?.(e)},className:G(Zs.root,n),"data-component":`Avatar.Image`,"data-status":u,...s})}Qs.displayName=`Avatar.Image`;var $s=K(Qs);const ec=Object.assign(ps,{Image:$s,Fallback:Xs}),tc=[`narrow`,`regular`,`wide`],nc={root:`avatar-stack`,responsive:`avatar-stack-responsive`,align:{left:`avatar-stack-align-left`,right:`avatar-stack-align-right`},variant:{cascade:`avatar-stack-cascade`,stack:`avatar-stack-stack`},width:{cascade:{two:`avatar-stack-cascade-two`,three:`avatar-stack-cascade-three`,more:`avatar-stack-cascade-more`},stack:{two:`avatar-stack-stack-two`,three:`avatar-stack-stack-three`,more:`avatar-stack-stack-more`}},body:{collapsed:`avatar-stack-body`,expandable:`avatar-stack-body-expandable`},item:{root:`avatar-stack-item`,first:`avatar-stack-item-first`,overlapped:`avatar-stack-item-overlapped`,mask:`avatar-stack-item-mask`,shape:{circle:`avatar-stack-item-circle`,square:`avatar-stack-item-square`},edge:{circle:`avatar-stack-item-edge-circle`,square:`avatar-stack-item-edge-square`},edgeAlignRight:`avatar-stack-item-edge-align-right`,layer:[`z-5`,`z-4`,`z-3`,`z-2`,`z-1`],fade:[``,``,`avatar-stack-item-fade-third`,`avatar-stack-item-fade-fourth`,`avatar-stack-item-fade-fifth`],overflow:`avatar-stack-item-overflow`,expanded:`avatar-stack-item-expanded`,expandedFirst:`avatar-stack-item-expanded-first`}},rc=e=>{if(!ls(e)){let t=e??20;return{narrow:t,regular:t,wide:t}}let t=e.regular??20;return{narrow:e.narrow??t,regular:t,wide:e.wide??t}},ic=e=>l.isValidElement(e)&&e.type===ps,ac=e=>l.isValidElement(e)&&e.type===l.Fragment,oc=e=>l.Children.toArray(e).flatMap(e=>ac(e)?oc(e.props.children):ic(e)?[e]:[]),sc=e=>{let t={narrow:[],regular:[],wide:[]};for(let n of e){let e=rc(n.props.size);for(let n of tc)t[n].push(e[n])}return Object.fromEntries(tc.map(e=>[e,t[e].length>0?Math.min(...t[e]):20]))};function cc(e,t){let{as:n=`span`,className:r,children:i,variant:a=`cascade`,shape:o=`circle`,size:s,align:c=`left`,disableExpand:u,style:d,...f}=e,p=l.useRef(null),[m,h]=l.useState(!1);l.useEffect(()=>{if(!p.current)return;let e=p.current,t=()=>{h(hr(e))},n=new MutationObserver(t);return n.observe(e,{childList:!0}),t(),()=>{n.disconnect()}},[]);let g=oc(i),_=g.length,v=_>3?`more`:_===3?`three`:_===2?`two`:void 0,y=!s||ls(s),b=!u,x={};if(ls(s)){let e=rc(s);for(let t of tc)x[`--avatar-stack-size-${t}`]=`${e[t]}px`}else if(s)x[`--avatar-stack-size`]=`${s}px`;else{let e=sc(g);for(let t of tc)x[`--avatar-stack-size-${t}`]=`${e[t]}px`}let S=g.map((e,t)=>l.cloneElement(e,{className:G(nc.item.root,t===0?nc.item.first:nc.item.overlapped,nc.item.shape[o],c===`right`&&o===`square`?nc.item.edgeAlignRight:nc.item.edge[o],t>0&&o===`circle`&&nc.item.mask,o===`square`&&nc.item.layer[Math.min(t,4)],a===`cascade`&&nc.item.fade[t],t>4&&nc.item.overflow,b&&nc.item.expanded,b&&t===0&&nc.item.expandedFirst,e.props.className)}));return(0,q.jsx)(n,{ref:t,className:G(nc.root,nc.variant[a],v&&nc.width[a][v],nc.align[c],y&&nc.responsive,r),style:{...d,...x},"data-component":`AvatarStack`,"data-variant":a,"data-shape":o,"data-avatar-count":_>3?`3+`:_,"data-align":c,"data-responsive":y||void 0,...f,children:(0,q.jsx)(`div`,{ref:p,className:b?nc.body.expandable:nc.body.collapsed,tabIndex:b&&!m?0:void 0,"data-component":`AvatarStack.Body`,"data-disable-expand":u,children:S})})}cc.displayName=`AvatarStack`;var lc=K(cc);const uc={indicator:`badge-indicator`,visual:`badge-visual`},dc=W(`badge`,{variants:{size:{small:`badge-small`,medium:`badge-medium`,large:`badge-large`},variant:{default:`badge-default`,primary:`badge-primary`,accent:`badge-accent`,success:`badge-success`,attention:`badge-attention`,severe:`badge-severe`,danger:`badge-danger`,done:`badge-done`,sponsors:`badge-sponsors`},appearance:{filled:``,dot:`badge-dot`}}}),fc=e=>l.isValidElement(e)?e:(0,q.jsx)(e,{});function pc(e,t){let{as:n=`span`,className:r,variant:i=`default`,appearance:a=`filled`,size:o=`small`,leadingVisual:s,children:c,...l}=e,u=a===`dot`&&!s;return(0,q.jsxs)(n,{ref:t,className:G(dc({size:o,variant:i,appearance:a}),r),"data-component":`Badge`,"data-variant":i,"data-appearance":a,"data-size":o,...l,children:[s?(0,q.jsx)(`span`,{className:uc.visual,"data-component":`Badge.LeadingVisual`,children:fc(s)}):null,u?(0,q.jsx)(`span`,{"aria-hidden":`true`,className:uc.indicator}):null,c]})}pc.displayName=`Badge`;var mc=K(pc);const hc=(0,l.createContext)({});function gc(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(n),"data-component":`Banner.Description`,...r})}gc.displayName=`Banner.Description`;var _c=K(gc);const vc={root:`banner-title`};function yc(e,t){let{as:n=`h2`,className:r,id:i,...a}=e,{titleId:o}=l.useContext(hc);return(0,q.jsx)(n,{ref:t,id:i??o,className:G(vc.root,r),"data-component":`Banner.Title`,...a})}yc.displayName=`Banner.Title`;var bc=K(yc);const xc={container:`banner-container`,actions:`banner-actions`,actionsInline:`banner-actions-inline`,actionsStacked:`banner-actions-stacked`,order:{shown:`banner-actions-shown`,hidden:`banner-actions-hidden`,inlineLeading:`banner-actions-inline-leading`,inlineTrailing:`banner-actions-inline-trailing`,responsiveLeading:`banner-actions-responsive-leading`,responsiveTrailing:`banner-actions-responsive-trailing`},hidden:`sr-only`},Sc=W(`banner`,{variants:{layout:{default:`banner-default`,compact:`banner-compact`},variant:{critical:`banner-critical`,info:`banner-info`,success:`banner-success`,upsell:`banner-upsell`,warning:`banner-warning`},flush:{true:`banner-flush`,false:``}}}),Cc=W(`banner-icon`,{variants:{tight:{true:`banner-icon-tight`,false:``}}}),wc=W(`banner-body`,{variants:{actions:{stacked:`banner-body-stacked`,inline:`banner-body-inline`,responsive:`banner-body-responsive`}}}),Tc=W(`banner-content`,{variants:{tight:{true:`banner-content-tight`,false:``}}}),Ec=W(`banner-dismiss`,{variants:{withActions:{true:`banner-dismiss-with-actions`,false:``}}}),Dc={critical:fn,info:vn,success:Xt,upsell:vn,warning:Gn},Oc=[`info`,`upsell`],kc=({primaryAction:e,secondaryAction:t,className:n,leadingClassName:r,trailingClassName:i})=>(0,q.jsxs)(`div`,{"data-component":`Banner.Actions`,children:[(0,q.jsxs)(`div`,{className:G(xc.actions,n,i),"data-primary-action":`trailing`,children:[t,e]}),(0,q.jsxs)(`div`,{className:G(xc.actions,n,r),"data-primary-action":`leading`,children:[e,t]})]});function Ac(e,t){let{className:n,children:r,title:i,description:a,hideTitle:o,leadingVisual:s,variant:c=`info`,layout:l=`default`,actionsLayout:u=`default`,flush:d=!1,onDismiss:f,primaryAction:p,secondaryAction:m,"aria-label":h,"aria-labelledby":g,..._}=e,v=Y(),y=!!f,b=!!(p||m),x=!!o&&!b,S=Dc[c],C=s&&Oc.includes(c)?s:(0,q.jsx)(S,{}),w=u===`stacked`||y&&!o&&u!==`inline`,T=w?{leading:xc.order.shown,trailing:xc.order.hidden}:u===`inline`?{leading:xc.order.inlineLeading,trailing:xc.order.inlineTrailing}:{leading:xc.order.responsiveLeading,trailing:xc.order.responsiveTrailing},E=i?(0,q.jsx)(bc,{children:i}):null;return(0,q.jsx)(hc.Provider,{value:{titleId:v},children:(0,q.jsx)(`div`,{className:xc.container,children:(0,q.jsxs)(`section`,{ref:t,"aria-labelledby":g??(h?void 0:v),"aria-label":g?void 0:h,tabIndex:-1,className:G(Sc({layout:l,variant:c,flush:d}),n),"data-component":`Banner`,"data-variant":c,"data-layout":l,"data-actions-layout":u,"data-dismissible":y||void 0,"data-has-actions":b||void 0,"data-title-hidden":o||void 0,"data-flush":d||void 0,..._,children:[(0,q.jsx)(`div`,{className:G(Cc({tight:x})),"data-component":`Banner.Icon`,children:C}),(0,q.jsxs)(`div`,{className:G(wc({actions:w?`stacked`:u===`inline`?`inline`:`responsive`})),children:[(0,q.jsxs)(`div`,{className:G(Tc({tight:x})),"data-component":`Banner.Content`,children:[E?o?(0,q.jsx)(`span`,{className:xc.hidden,children:E}):E:null,a?(0,q.jsx)(_c,{children:a}):null,r]}),b?(0,q.jsx)(kc,{primaryAction:p,secondaryAction:m,className:G(u===`inline`&&xc.actionsInline,w&&xc.actionsStacked),leadingClassName:T.leading,trailingClassName:T.trailing}):null]}),y?(0,q.jsx)(gi,{icon:un,"aria-label":`Dismiss banner`,variant:`invisible`,onClick:f,className:G(Ec({withActions:b})),"data-component":`Banner.Dismiss`}):null]})})})}Ac.displayName=`Banner`;var jc=K(Ac);function Mc(e,t){return(0,q.jsx)(pi,{ref:t,variant:`default`,"data-component":`Banner.PrimaryAction`,...e})}Mc.displayName=`Banner.PrimaryAction`;var Nc=K(Mc);function Pc(e,t){return(0,q.jsx)(pi,{ref:t,variant:`invisible`,"data-component":`Banner.SecondaryAction`,...e})}Pc.displayName=`Banner.SecondaryAction`;var Fc=K(Pc);const Ic=Object.assign(jc,{Title:bc,Description:_c,PrimaryAction:Nc,SecondaryAction:Fc}),Lc={container:`blankslate-container`,root:`blankslate`,border:`blankslate-border`,narrow:`blankslate-narrow`,size:{small:`blankslate-small`,medium:`blankslate-medium`,large:`blankslate-large`},padding:{small:`blankslate-padding-small`,medium:`blankslate-padding-medium`,large:`blankslate-padding-large`},spaciousPadding:{small:`blankslate-padding-spacious-small`,medium:`blankslate-padding-spacious-medium`,large:`blankslate-padding-spacious-large`},tightType:`blankslate-tight-type`,tightPadding:{small:`blankslate-tight-padding-small`,medium:`blankslate-tight-padding-medium`,large:`blankslate-tight-padding-large`},tightSpaciousPadding:`blankslate-tight-padding-spacious`};function Rc(e,t){let{as:n=`div`,className:r,size:i=`medium`,border:a,narrow:o,spacious:s,...c}=e;return(0,q.jsx)(`div`,{className:Lc.container,children:(0,q.jsx)(n,{ref:t,className:G(Lc.root,Lc.size[i],s?Lc.spaciousPadding[i]:Lc.padding[i],Lc.tightType,s?Lc.tightSpaciousPadding:Lc.tightPadding[i],a&&Lc.border,o&&Lc.narrow,r),"data-component":`Blankslate`,"data-size":i,"data-border":a,"data-narrow":o,"data-spacious":s,...c})})}Rc.displayName=`Blankslate`;var zc=K(Rc);const Bc={root:`blankslate-description`};function Vc(e,t){let{className:n,...r}=e;return(0,q.jsx)(`p`,{ref:t,className:G(Bc.root,n),"data-component":`Blankslate.Description`,...r})}Vc.displayName=`Blankslate.Description`;var Hc=K(Vc);const Uc={root:`blankslate-heading`};function Wc(e,t){let{as:n=`h2`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Uc.root,r),"data-component":`Blankslate.Heading`,...i})}Wc.displayName=`Blankslate.Heading`;var Gc=K(Wc);const Kc={root:`blankslate-action`,tight:`blankslate-action-tight`};function qc(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Kc.root,Kc.tight,n),...r})}qc.displayName=`Blankslate.Action`;var Jc=K(qc);function Yc(e,t){return(0,q.jsx)(Jc,{ref:t,"data-component":`Blankslate.PrimaryAction`,...e})}Yc.displayName=`Blankslate.PrimaryAction`;var Xc=K(Yc);const Zc={root:`link`,inline:`link-inline`,muted:`link-muted`};function Qc(e,t){let{as:n=`a`,className:r,muted:i,inline:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Zc.root,a&&Zc.inline,i&&Zc.muted,r),"data-component":`Link`,"data-muted":i,"data-inline":a,...o})}Qc.displayName=`Link`;var $c=K(Qc);function el(e,t){let{href:n,children:r,...i}=e;return(0,q.jsx)(Jc,{ref:t,"data-component":`Blankslate.SecondaryAction`,...i,children:n===void 0?r:(0,q.jsx)($c,{href:n,children:r})})}el.displayName=`Blankslate.SecondaryAction`;var tl=K(el);const nl={root:`blankslate-visual`,tight:`blankslate-visual-tight`};function rl(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(nl.root,nl.tight,n),"data-component":`Blankslate.Visual`,...r})}rl.displayName=`Blankslate.Visual`;var il=K(rl);const al=Object.assign(zc,{Visual:il,Heading:Gc,Description:Hc,PrimaryAction:Xc,SecondaryAction:tl}),ol=W(`blockquote`,{variants:{size:{large:`blockquote-large`,medium:`blockquote-medium`,small:`blockquote-small`},variant:{subtle:`blockquote-subtle`,default:`blockquote-default`,emphasis:`blockquote-emphasis`}}});function sl(e,t){let{as:n=`blockquote`,className:r,size:i=`medium`,variant:a=`default`,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(ol({size:i,variant:a}),r),"data-component":`Blockquote`,"data-size":i,"data-variant":a,...o})}sl.displayName=`Blockquote`;var cl=K(sl);const ll=W(`box`,{variants:{padding:{none:`box-padding-none`,tight:`box-padding-tight`,condensed:`box-padding-condensed`,cozy:`box-padding-cozy`,normal:`box-padding-normal`,spacious:`box-padding-spacious`},paddingBlock:{none:`box-padding-block-none`,tight:`box-padding-block-tight`,condensed:`box-padding-block-condensed`,cozy:`box-padding-block-cozy`,normal:`box-padding-block-normal`,spacious:`box-padding-block-spacious`},paddingInline:{none:`box-padding-inline-none`,tight:`box-padding-inline-tight`,condensed:`box-padding-inline-condensed`,cozy:`box-padding-inline-cozy`,normal:`box-padding-inline-normal`,spacious:`box-padding-inline-spacious`},background:{none:`box-background-none`,default:`box-background-default`,muted:`box-background-muted`,inset:`box-background-inset`,emphasis:`box-background-emphasis`},border:{none:`box-border-none`,default:`box-border-default`,muted:`box-border-muted`},radius:{none:`box-radius-none`,small:`box-radius-small`,medium:`box-radius-medium`,large:`box-radius-large`,full:`box-radius-full`},shadow:{none:`box-shadow-none`,xsmall:`box-shadow-xsmall`,small:`box-shadow-small`,medium:`box-shadow-medium`},overflow:{visible:`box-overflow-visible`,hidden:`box-overflow-hidden`}}});function ul(e,t){let{as:n=`div`,className:r,padding:i=`none`,paddingBlock:a,paddingInline:o,background:s=`none`,border:c=`none`,radius:l=`none`,shadow:u=`none`,overflow:d=`visible`,...f}=e;return(0,q.jsx)(n,{ref:t,className:G(ll({padding:i,paddingBlock:a,paddingInline:o,background:s,border:c,radius:l,shadow:u,overflow:d}),r),"data-component":`Box`,"data-padding":i,"data-padding-block":a,"data-padding-inline":o,"data-background":s,"data-border":c,"data-radius":l,"data-shadow":u,"data-overflow":d,...f})}ul.displayName=`Box`;var dl=K(ul);function fl({items:e}){return(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(gi,{icon:Cn,"aria-label":`${e.length} more breadcrumb items`,variant:`invisible`,size:`small`,"data-component":`Breadcrumbs.OverflowMenu`})}),(0,q.jsx)(ma.Overlay,{children:(0,q.jsx)(ji,{children:e.map((e,t)=>{let{children:n,selected:r,as:i,...a}=e.props;return(0,q.jsx)(ji.LinkItem,{as:i,"aria-current":r?`page`:void 0,...a,children:n},t)})})})]})}fl.displayName=`Breadcrumbs.OverflowMenu`;const pl=(0,l.createContext)({}),ml={root:`breadcrumbs`,list:`breadcrumbs-list`,listWrap:`breadcrumbs-list-wrap`,listMenu:`breadcrumbs-list-menu`,item:`breadcrumbs-item`,itemMenu:`breadcrumbs-item-menu`,separator:`breadcrumbs-separator`},hl=({availableWidth:e,itemCount:t,itemWidths:n,menuButtonWidth:r,overflow:i,hideRoot:a})=>{let o=a,s=n[0]??0,c=e<544,l=4;o?c&&t>2&&(l=1):l=3;let u=e=>{let t=e.reduce((e,t)=>e+t+16,0);return o?t:s+t},d=[...n],f=0;if(e>0&&d.length>0){let t=u(d);for(;i!==`wrap`&&(t>e||d.length>l);){if(f+=1,d=d.slice(1),t=u(d)+r,d.length===1&&t>e){o=!0;break}o=a}}return{menuItemCount:f,hideRoot:o}},gl=e=>l.Children.toArray(e).filter(e=>l.isValidElement(e)),_l=()=>(0,q.jsx)(`span`,{className:ml.separator,"aria-hidden":`true`,"data-component":`Breadcrumbs.Separator`,children:(0,q.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,children:(0,q.jsx)(`path`,{d:`M10.956 1.27994L6.06418 14.7201L5 14.7201L9.89181 1.27994L10.956 1.27994Z`,fill:`currentcolor`})})});function vl(e){let{className:t,children:n,style:r,overflow:i=`wrap`,variant:a=`normal`}=e,o=l.useRef(null),s=l.useMemo(()=>gl(n),[n]),c=s[0],u=i!==`menu-with-root`,[d,f]=l.useState([]),[p,m]=l.useState(null),[h,g]=l.useState(28),_=l.useCallback(e=>{let t=e?.querySelector(`button`);t&&g(e=>e===t.offsetWidth?e:t.offsetWidth)},[]);rr(()=>{if(i===`wrap`)return;let e=o.current;if(!e)return;m(t=>t===e.offsetWidth?t:e.offsetWidth);let t=e.querySelectorAll(`li[data-crumb]`);t.length===s.length&&f(Array.from(t,e=>e.offsetWidth))},[s,i]),l.useEffect(()=>{let e=o.current;if(i===`wrap`||!e)return;let t=new ResizeObserver(e=>{for(let t of e){let e=Math.round(t.contentRect.width);m(t=>t===e?t:e)}});return t.observe(e),()=>{t.disconnect()}},[i]);let{menuItemCount:v,hideRoot:y}=l.useMemo(()=>i===`wrap`||d.length!==s.length?{menuItemCount:0,hideRoot:u}:hl({availableWidth:p??800,itemCount:s.length,itemWidths:d,menuButtonWidth:h,overflow:i,hideRoot:u}),[i,u,s,d,p,h]),b=l.useMemo(()=>({variant:a}),[a]),x=l.useMemo(()=>{let e=(e,t)=>(0,q.jsxs)(`li`,{className:ml.item,"data-crumb":``,children:[e,(0,q.jsx)(_l,{})]},t);if(v===0)return s.map((t,n)=>e(t,n));let t=s.slice(0,v),n=s.slice(v),r=y?t:t.slice(1),i=(0,q.jsxs)(`li`,{ref:_,className:G(ml.item,ml.itemMenu),"data-overflow-menu":``,children:[(0,q.jsx)(fl,{items:r}),(0,q.jsx)(_l,{})]},`overflow-menu`),a=n.map((t,n)=>e(t,`visible-${n}`));return y?[i,...a]:[e(c,`root`),i,...a]},[s,v,y,_,c]);return(0,q.jsx)(pl.Provider,{value:b,children:(0,q.jsx)(`nav`,{ref:o,"aria-label":`Breadcrumbs`,className:G(ml.root,t),style:r,"data-component":`Breadcrumbs`,"data-overflow":i,"data-variant":a,children:(0,q.jsx)(`ol`,{className:G(ml.list,i===`wrap`?ml.listWrap:ml.listMenu),children:x})})})}vl.displayName=`Breadcrumbs`;const yl={root:`breadcrumbs-link`,normal:`breadcrumbs-link-normal`,normalSelected:`breadcrumbs-link-normal-selected`,spacious:`breadcrumbs-link-spacious`,spaciousSelected:`breadcrumbs-link-spacious-selected`};function bl(e,t){let{as:n=`a`,className:r,selected:i,...a}=e,{variant:o=`normal`}=l.useContext(pl),s=o===`spacious`;return(0,q.jsx)(n,{ref:t,"aria-current":i?`page`:void 0,className:G(yl.root,s?yl.spacious:yl.normal,i&&(s?yl.spaciousSelected:yl.normalSelected),r),"data-component":`Breadcrumbs.Item`,"data-selected":i?``:void 0,...a})}bl.displayName=`Breadcrumbs.Item`;var xl=K(bl);const Sl=Object.assign(vl,{Item:xl}),Cl=(0,l.createContext)({}),wl=(0,l.createContext)({}),Tl=(0,l.createContext)({}),El=W(`bubble`,{variants:{align:{start:`bubble-align-start`,end:`bubble-align-end`},variant:{default:`bubble-default`,secondary:`bubble-secondary`,muted:`bubble-muted`,tinted:`bubble-tinted`,outline:`bubble-outline`,ghost:`bubble-ghost`,danger:`bubble-danger`}}});function Dl(e,t){let{as:n=`div`,className:r,variant:i=`default`,align:a,...o}=e,{align:s}=l.useContext(Tl),{align:c}=l.useContext(Cl),u=a??s??c??`start`,d={align:u,variant:i};return(0,q.jsx)(wl.Provider,{value:d,children:(0,q.jsx)(n,{ref:t,className:G(El({align:u,variant:i}),r),"data-component":`Bubble`,"data-variant":i,"data-align":u,...o})})}Dl.displayName=`Bubble`;var Ol=K(Dl);const kl={root:`bubble-content`};function Al(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(kl.root,r),"data-component":`Bubble.Content`,...i})}Al.displayName=`Bubble.Content`;var jl=K(Al);const Ml={root:`bubble-group`};function Nl(e,t){let{as:n=`div`,className:r,align:i=`start`,...a}=e;return(0,q.jsx)(Tl.Provider,{value:{align:i},children:(0,q.jsx)(n,{ref:t,className:G(Ml.root,r),"data-component":`Bubble.Group`,"data-align":i,...a})})}Nl.displayName=`Bubble.Group`;var Pl=K(Nl);const Fl=W(`bubble-reactions`,{variants:{side:{top:`bubble-reactions-top`,bottom:`bubble-reactions-bottom`},align:{start:`bubble-reactions-align-start`,end:`bubble-reactions-align-end`}}});function Il(e,t){let{as:n=`div`,className:r,side:i=`bottom`,align:a,...o}=e,{align:s}=l.useContext(wl),c=a??s??`end`;return(0,q.jsx)(n,{ref:t,className:G(Fl({side:i,align:c}),r),"data-component":`Bubble.Reactions`,"data-side":i,"data-align":c,...o})}Il.displayName=`Bubble.Reactions`;var Ll=K(Il);const Rl=Object.assign(Ol,{Group:Pl,Content:jl,Reactions:Ll}),zl={root:`button-group`,item:{root:`button-group-item`,first:`button-group-item-first`,last:`button-group-item-last`}},Bl=[`[disabled]`,`[hidden]`,`[inert]`],Vl=[`button`,`a[href]`,`summary`].map(e=>`${e}:not(${Bl.join(`):not(`)})`).join(`, `),Hl=e=>e?Array.from(e.querySelectorAll(Vl)):[],Ul=(e,t)=>{for(let n of e)n.tabIndex=n===t?0:-1};function Wl(e,t){let{as:n=`div`,className:r,children:i,role:a,onFocus:o,onKeyDown:s,...c}=e,u=l.useRef(null),d=ar(t,u),f=a===`toolbar`,p=l.useCallback(()=>{if(!f)return;let e=Hl(u.current),t=e.find(e=>e===document.activeElement);Ul(e,t??e[0])},[f]);l.useEffect(p),l.useEffect(()=>{if(!f||u.current===null)return;let e=u.current,t=new MutationObserver(p);return t.observe(e,{childList:!0,subtree:!0}),()=>{t.disconnect();for(let t of Hl(e))t.removeAttribute(`tabindex`)}},[f,p]);let m=e=>{if(o?.(e),!f)return;let t=Hl(u.current);t.includes(e.target)&&Ul(t,e.target)},h=e=>{s?.(e);let t=e.key===`ArrowRight`?1:e.key===`ArrowLeft`?-1:0;if(!f||t===0||e.defaultPrevented)return;let n=Hl(u.current),r=n.indexOf(document.activeElement);r!==-1&&(e.preventDefault(),n[(r+t+n.length)%n.length].focus())},g=l.Children.toArray(i);return(0,q.jsx)(n,{ref:d,className:G(zl.root,r),role:a,onFocus:m,onKeyDown:h,"data-component":`ButtonGroup`,...c,children:g.map((e,t)=>(0,q.jsx)(`div`,{className:G(zl.item.root,t===0&&zl.item.first,t===g.length-1&&zl.item.last),"data-component":`ButtonGroup.Item`,children:e},l.isValidElement(e)?e.key:t))})}Wl.displayName=`ButtonGroup`;var Gl=K(Wl);const Kl={root:`calendar-day`,interactive:`calendar-day-interactive`,selected:`calendar-day-selected`,between:`calendar-day-between`,outside:`calendar-day-outside`,unavailable:`calendar-day-unavailable`,hidden:`sr-only`};function ql(e,t){let{label:n,name:r,dayKey:i,selected:a,range:o,today:s,outside:c,unavailable:l,tabbable:u,className:d,...f}=e,p=o===`middle`,m=a&&!p;return(0,q.jsxs)(`button`,{ref:t,type:`button`,tabIndex:u?0:-1,"aria-pressed":a,"aria-current":s?`date`:void 0,"aria-disabled":l||void 0,className:G(Kl.root,!l&&!a&&Kl.interactive,c&&Kl.outside,p&&Kl.between,l&&Kl.unavailable,m&&Kl.selected,d),"data-component":`Calendar.Day`,"data-date":i,"data-selected":a,"data-range":o,"data-today":s||void 0,"data-outside":c||void 0,"data-unavailable":l||void 0,"data-tabbable":u,...f,children:[(0,q.jsx)(`span`,{"aria-hidden":`true`,children:n}),(0,q.jsx)(`span`,{className:Kl.hidden,children:r})]})}ql.displayName=`Calendar.Day`;var Jl=K(ql),Yl=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),Xl=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Zl=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){"use strict";return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),Ql=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),$l=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){"use strict";var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),eu=c(Yl()),tu=c(Xl()),nu=c(Zl()),ru=c(Ql()),iu=c($l());eu.default.extend(tu.default),eu.default.extend(nu.default),eu.default.extend(ru.default),eu.default.extend(iu.default);const au=`YYYY-MM-DD`,ou=e=>(0,eu.default)(e),su=e=>{if(e==null)return null;let t=ou(e);return t.isValid()?t:null},cu=e=>e.format(au),lu={from:null,to:null},uu=(e,t)=>{if(e==null)return lu;if(t){let t=e;return{from:su(t.from),to:su(t.to)}}let n=su(e);return{from:n,to:n}},du=()=>(0,eu.default)().localeData().firstDayOfWeek()??0,fu=e=>{let t=(0,eu.default)().localeData(),n=t.weekdaysMin(),r=t.weekdays();return Array.from({length:7},(t,i)=>{let a=(e+i)%7;return{day:a,narrow:n[a],full:r[a]}})},pu=(e,t)=>e.subtract((e.day()-t+7)%7,`day`),mu=(e,t,n=!1)=>{let r=e.startOf(`month`),i=pu(r,t),a=(r.day()-t+7)%7,o=(t+7-1-e.endOf(`month`).day())%7,s=a+e.daysInMonth()+o,c=n?6:s/7;return Array.from({length:c},(e,t)=>Array.from({length:7},(e,n)=>i.add(t*7+n,`day`)))},hu=(e,t,n,r)=>(t===null||!e.isBefore(t,`day`))&&(n===null||!e.isAfter(n,`day`))&&!r?.(e.toDate()),gu=(e,t)=>e.isAfter(t,`day`)?[t,e]:[e,t],_u=(e,t,n)=>{if(t===null)return n!==null&&e.isSame(n,`day`);if(n===null)return e.isSame(t,`day`);let[r,i]=gu(t,n);return!e.isBefore(r,`day`)&&!e.isAfter(i,`day`)},vu=(e,t,n)=>{if(t===null||n===null||t.isSame(n,`day`))return;let[r,i]=gu(t,n);return e.isSame(r,`day`)?`start`:e.isSame(i,`day`)?`end`:e.isAfter(r,`day`)&&e.isBefore(i,`day`)?`middle`:void 0},yu=(e,t,n)=>{if(e===null||t!==null)return{from:n,to:null};if(n.isSame(e,`day`))return lu;let[r,i]=gu(e,n);return{from:r,to:i}},bu=(e,t)=>{let n=(0,eu.default)(e,t,!0);return n.isValid()?n:null},xu=()=>(0,eu.default)(),Su={root:`calendar`,header:`calendar-header`,caption:`calendar-caption`,grid:`calendar-grid`,weekday:`calendar-weekday`,weekNumberHeader:`calendar-week-number-header`,weekNumber:`calendar-week-number`,cell:`calendar-cell`,rangeCell:`calendar-cell-range`,rangeCellStart:`calendar-cell-range-start`,rangeCellEnd:`calendar-cell-range-end`,hidden:`sr-only`};function Cu(e,t){let{mode:n=`single`,value:r,defaultValue:i,onChange:a,month:o,defaultMonth:s,onMonthChange:c,min:u,max:d,isDateDisabled:f,weekStartsOn:p,fixedWeeks:m=!1,showOutsideDays:h=!0,showWeekNumbers:g=!1,monthFormat:_=`MMMM YYYY`,dayFormat:v=`LL`,focusableDayRef:y,previousMonthLabel:b=`Previous month`,nextMonthLabel:x=`Next month`,weekNumberLabel:S=`Week`,className:C,...w}=e,T=Y(),E=l.useRef(null),D=xu(),O=n===`range`,k=r!==void 0,[A,j]=l.useState(()=>uu(i,O)),M=k?uu(r,O):A,N=o!==void 0,[P,F]=l.useState(()=>(su(s)??uu(i,O).from??uu(r,O).from??xu()).startOf(`month`)),I=(N?ou(o):P).startOf(`month`),L=su(u),ee=su(d),R=p??du(),z=fu(R),te=mu(I,R,m),[ne,B]=l.useState(null),re=l.useRef(null),[V,ie]=l.useState(null),ae=O&&M.from!==null&&M.to===null,oe=ae?V:M.to,se=cu((()=>{for(let e of[ne,M.from,D])if(e&&e.isSame(I,`month`))return e;return I})());l.useEffect(()=>{let e=re.current;e!==null&&(re.current=null,E.current?.querySelector(`[data-date='${e}']`)?.focus())});let ce=e=>{let t=e.startOf(`month`);N||F(t),c?.(t.toDate())},le=e=>{B(e),re.current=cu(e),e.isSame(I,`month`)||ce(e)},ue=e=>{if(!hu(e,L,ee,f))return;B(e),e.isSame(I,`month`)||ce(e);let t=O?yu(M.from,M.to,e):{from:e,to:e};if(k||j(t),O){a?.({from:t.from?.toDate()??null,to:t.to?.toDate()??null});return}a?.(e.toDate())},de=(e,t)=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;let n=t=>{e.preventDefault(),le(t)};switch(e.key){case`ArrowLeft`:return n(t.subtract(1,`day`));case`ArrowRight`:return n(t.add(1,`day`));case`ArrowUp`:return n(t.subtract(7,`day`));case`ArrowDown`:return n(t.add(7,`day`));case`Home`:return n(pu(t,R));case`End`:return n(pu(t,R).add(6,`day`));case`PageUp`:return n(t.subtract(1,e.shiftKey?`year`:`month`));case`PageDown`:return n(t.add(1,e.shiftKey?`year`:`month`));default:return}},fe=e=>{B(t=>t?.isSame(e,`day`)?t:e),ae&&ie(e)},pe=e=>{ae&&ie(e)},me=()=>{ie(null)},he=I.subtract(1,`month`),ge=I.add(1,`month`),_e=L===null||!he.endOf(`month`).isBefore(L,`day`),ve=ee===null||!ge.isAfter(ee,`day`);return(0,q.jsxs)(`div`,{ref:t,className:G(Su.root,C),"data-component":`Calendar`,...w,children:[(0,q.jsxs)(`div`,{className:Su.header,"data-component":`Calendar.Header`,children:[(0,q.jsx)(gi,{icon:$t,"aria-label":b,variant:`invisible`,size:`small`,disabled:!_e,onClick:()=>ce(he),"data-component":`Calendar.PreviousMonth`}),(0,q.jsx)(`div`,{id:T,"aria-live":`polite`,className:Su.caption,"data-component":`Calendar.Caption`,children:I.format(_)}),(0,q.jsx)(gi,{icon:en,"aria-label":x,variant:`invisible`,size:`small`,disabled:!ve,onClick:()=>ce(ge),"data-component":`Calendar.NextMonth`})]}),(0,q.jsxs)(`table`,{ref:E,"aria-labelledby":T,className:Su.grid,onPointerLeave:me,"data-component":`Calendar.Grid`,"data-mode":n,children:[(0,q.jsx)(`thead`,{children:(0,q.jsxs)(`tr`,{children:[g?(0,q.jsx)(`th`,{scope:`col`,className:Su.weekNumberHeader,children:(0,q.jsx)(`span`,{className:Su.hidden,children:S})}):null,z.map(e=>(0,q.jsxs)(`th`,{scope:`col`,className:Su.weekday,"data-component":`Calendar.Weekday`,children:[(0,q.jsx)(`span`,{"aria-hidden":`true`,children:e.narrow}),(0,q.jsx)(`span`,{className:Su.hidden,children:e.full})]},e.day))]})}),(0,q.jsx)(`tbody`,{children:te.map(e=>(0,q.jsxs)(`tr`,{"data-component":`Calendar.Week`,children:[g?(0,q.jsx)(`th`,{scope:`row`,className:Su.weekNumber,"data-component":`Calendar.WeekNumber`,children:e[0].week()}):null,e.map(e=>{let t=cu(e),n=!e.isSame(I,`month`);if(n&&!h)return(0,q.jsx)(`td`,{className:Su.cell},t);let r=t===se,i=vu(e,M.from,oe);return(0,q.jsx)(`td`,{className:G(Su.cell,i&&Su.rangeCell,i===`start`&&Su.rangeCellStart,i===`end`&&Su.rangeCellEnd),children:(0,q.jsx)(Jl,{ref:r?y:void 0,label:e.format(`D`),name:e.format(v),dayKey:t,selected:_u(e,M.from,M.to),range:i,today:e.isSame(D,`day`),outside:n,unavailable:!hu(e,L,ee,f),tabbable:r,onClick:()=>ue(e),onKeyDown:t=>de(t,e),onFocus:()=>fe(e),onPointerEnter:()=>pe(e)})},t)})]},cu(e[0])))})]})]})}Cu.displayName=`Calendar`;var wu=K(Cu);const Tu=Object.assign(wu,{Day:Jl}),Eu={root:`card-action`};function Du(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Eu.root,n),"data-component":`Card.Action`,...r})}Du.displayName=`Card.Action`;var Ou=K(Du);const ku=(0,l.createContext)({}),Au={root:`card-description text-body-medium`};function ju(e,t){let{className:n,...r}=e;return(0,q.jsx)(`p`,{ref:t,className:G(Au.root,n),"data-component":`Card.Description`,...r})}ju.displayName=`Card.Description`;var Mu=K(ju);const Nu={root:`card-heading`,compact:`card-heading-compact`};function Pu(e,t){let{as:n=`h3`,className:r,id:i,...a}=e,{titleId:o,layout:s}=l.useContext(ku);return(0,q.jsx)(n,{ref:t,id:i??o,className:G(Nu.root,s===`compact`&&Nu.compact,r),"data-component":`Card.Heading`,...a})}Pu.displayName=`Card.Heading`;var Fu=K(Pu);const Iu={root:`card-icon`,tile:`card-icon-tile`};function Lu(e,t){let{icon:n,className:r,"aria-label":i,...a}=e,{layout:o}=l.useContext(ku);return(0,q.jsx)(`span`,{ref:t,role:i?`img`:void 0,"aria-label":i,"aria-hidden":!i||void 0,className:G(Iu.root,o!==`compact`&&Iu.tile,r),"data-component":`Card.Icon`,...a,children:(0,q.jsx)(n,{})})}Lu.displayName=`Card.Icon`;var Ru=K(Lu);const zu={root:`card-image`};function Bu(e,t){let{className:n,alt:r=``,...i}=e;return(0,q.jsx)(`img`,{ref:t,alt:r,className:G(zu.root,n),"data-component":`Card.Image`,...i})}Bu.displayName=`Card.Image`;var Vu=K(Bu);const Hu={root:`card-metadata text-body-small`};function Uu(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Hu.root,n),"data-component":`Card.Metadata`,...r})}Uu.displayName=`Card.Metadata`;var Wu=K(Uu);const Gu={content:`card-content`},Ku=W(`card`,{variants:{borderRadius:{medium:`card-radius-medium`,large:`card-radius-large`},layout:{default:``,compact:`card-compact`},padding:{none:`card-padding-none`,condensed:`card-padding-condensed`,normal:`card-padding-normal`}},compoundVariants:[{layout:`compact`,padding:`normal`,class:`card-compact-padding-normal`}]}),qu=W(`card-header`,{variants:{edgeToEdge:{true:`card-header-edge-to-edge`,false:``},layout:{default:``,compact:`card-header-compact`}}}),Ju=W(`card-body`,{variants:{layout:{default:``,compact:`card-body-compact`}}});function Yu(e,t){let{as:n=`div`,className:r,children:i,padding:a=`normal`,borderRadius:o=`large`,layout:s=`default`,"aria-label":c,"aria-labelledby":u,...d}=e,f=Y(),[p]=xr(i,{icon:Ru,image:Vu,heading:Fu,description:Mu,metadata:Wu,action:Ou}),m=n===`section`,h=m?f:void 0,g=u??(m&&!c?h:void 0),_=p.image??p.icon,v=!!(_||p.heading||p.description||p.metadata||p.action);return l.Children.toArray(i).length===0?null:(0,q.jsx)(ku.Provider,{value:{titleId:h,layout:s},children:(0,q.jsx)(n,{ref:t,"aria-label":c,"aria-labelledby":g,className:G(Ku({borderRadius:o,layout:s,padding:a}),r),"data-component":`Card`,"data-padding":a,"data-border-radius":o,"data-layout":s,...d,children:v?(0,q.jsxs)(q.Fragment,{children:[_?(0,q.jsx)(`div`,{className:G(qu({edgeToEdge:!!p.image,layout:s})),children:_}):null,(0,q.jsxs)(`div`,{className:G(Ju({layout:s})),children:[(0,q.jsxs)(`div`,{className:Gu.content,children:[p.heading,p.description]}),p.metadata]}),p.action]}):i})})}Yu.displayName=`Card`;var Xu=K(Yu);const Zu=Object.assign(Xu,{Icon:Ru,Image:Vu,Heading:Fu,Description:Mu,Metadata:Wu,Action:Ou}),Qu={triangle:`caret-triangle`,border:`caret-border`},$u=W(`caret`,{variants:{location:{top:`caret-top`,bottom:`caret-bottom`,left:`caret-left`,right:`caret-right`,"top-left":`caret-top-left`,"top-right":`caret-top-right`,"bottom-left":`caret-bottom-left`,"bottom-right":`caret-bottom-right`,"left-top":`caret-left-top`,"left-bottom":`caret-left-bottom`,"right-top":`caret-right-top`,"right-bottom":`caret-right-bottom`}}}),ed=(e,t)=>({top:`translate(${t},${t*2}) rotate(180)`,right:`translate(0,${t}) rotate(-90)`,bottom:`translate(${t},0)`,left:`translate(${t*2},${t}) rotate(90)`})[e];function td(e,t){let{location:n=`bottom`,size:r=8,background:i,borderColor:a,borderWidth:o,className:s,style:c,...l}=e,u=n.split(`-`)[0],d=[-r,0],f=[0,r],p=[r,0],m=`M${d}L${f}L${p}L${d}Z`,h=`M${d}L${f}L${p}`;return(0,q.jsx)(`svg`,{ref:t,width:r*2,height:r*2,className:G($u({location:n}),s),style:{...c,"--caret-size":`${r}px`,"--caret-background":i,"--caret-border-color":a,"--caret-border-width":o},"data-component":`Caret`,"data-location":n,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...l,children:(0,q.jsxs)(`g`,{transform:ed(u,r),children:[(0,q.jsx)(`path`,{className:Qu.triangle,d:m}),(0,q.jsx)(`path`,{className:Qu.border,d:h})]})})}td.displayName=`Caret`;var nd=K(td);const rd=()=>{},id=(0,l.createContext)({index:0,count:0,loop:!1,autoPlay:!1,isPlaying:!1,goTo:rd,previous:rd,next:rd,togglePlaying:rd,slidesId:``}),ad=(0,l.createContext)({index:0}),od={root:`carousel-indicators`,dot:`carousel-indicator`,current:`carousel-indicator-current`};function sd(e,t){let{className:n,...r}=e,{index:i,count:a,goTo:o,slidesId:s}=l.useContext(id);return a===0?null:(0,q.jsx)(`div`,{ref:t,className:G(od.root,n),"data-component":`Carousel.Indicators`,...r,children:Array.from({length:a},(e,t)=>{let n=t===i;return(0,q.jsx)(`button`,{type:`button`,"aria-label":`Slide ${t+1}`,"aria-current":n||void 0,"aria-controls":s||void 0,onClick:()=>o(t,`indicator`),className:G(od.dot,n&&od.current),"data-component":`Carousel.Indicator`,"data-current":n||void 0},t)})})}sd.displayName=`Carousel.Indicators`;var cd=K(sd);function ld(e,t){let{className:n,onClick:r,...i}=e,{index:a,count:o,loop:s,next:c,slidesId:u}=l.useContext(id);return(0,q.jsx)(gi,{ref:t,icon:en,"aria-label":`Next slide`,"aria-controls":u||void 0,variant:`invisible`,disabled:!s&&a>=o-1,onClick:e=>{r?.(e),e.defaultPrevented||c()},className:n,"data-component":`Carousel.NextButton`,...i})}ld.displayName=`Carousel.NextButton`;var ud=K(ld);function dd(e,t){let{className:n,onClick:r,...i}=e,{isPlaying:a,togglePlaying:o,slidesId:s}=l.useContext(id);return(0,q.jsx)(gi,{ref:t,icon:a?wn:Tn,"aria-label":a?`Stop automatic slide show`:`Start automatic slide show`,"aria-controls":s||void 0,variant:`invisible`,onClick:e=>{r?.(e),e.defaultPrevented||o()},className:n,"data-component":`Carousel.PlayButton`,"data-playing":a||void 0,...i})}dd.displayName=`Carousel.PlayButton`;var fd=K(dd);function pd(e,t){let{className:n,onClick:r,...i}=e,{index:a,loop:o,previous:s,slidesId:c}=l.useContext(id);return(0,q.jsx)(gi,{ref:t,icon:$t,"aria-label":`Previous slide`,"aria-controls":c||void 0,variant:`invisible`,disabled:!o&&a<=0,onClick:e=>{r?.(e),e.defaultPrevented||s()},className:n,"data-component":`Carousel.PreviousButton`,...i})}pd.displayName=`Carousel.PreviousButton`;var md=K(pd);const hd={root:`carousel-controls`};function gd(e,t){let{className:n,children:r,...i}=e,{autoPlay:a}=l.useContext(id),o=l.Children.toArray(r).length>0;return(0,q.jsx)(`div`,{ref:t,className:G(hd.root,n),"data-component":`Carousel.Controls`,...i,children:o?r:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(md,{}),(0,q.jsx)(cd,{}),(0,q.jsx)(ud,{}),a?(0,q.jsx)(fd,{}):null]})})}gd.displayName=`Carousel.Controls`;var _d=K(gd);const vd={root:`carousel-slide`};function yd(e,t){let{className:n,...r}=e,{index:i,count:a}=l.useContext(id),{index:o}=l.useContext(ad),s=o===i;return(0,q.jsx)(`div`,{ref:t,role:`group`,"aria-roledescription":`slide`,"aria-label":`${o+1} of ${a}`,inert:!s,className:G(vd.root,n),"data-component":`Carousel.Slide`,"data-current":s||void 0,...r})}yd.displayName=`Carousel.Slide`;var bd=K(yd);const xd={root:`carousel`,viewport:`carousel-viewport`,track:`carousel-track`,motion:`motion-safe:[transition:translate_var(--motion-transition-state-change)]`},Sd=(e,t,n)=>t<=0?0:n?(e%t+t)%t:Math.min(Math.max(e,0),t-1);function Cd(e,t){let{className:n,children:r,index:i,defaultIndex:a=0,onChange:o,loop:s=!1,autoPlay:c=!1,interval:u=5e3,...d}=e,f=Y(),p=i!==void 0,[m,h]=l.useState(a),[g,_]=l.useState(c),[v,y]=l.useState(!1),b=l.useRef(o);rr(()=>{b.current=o},[o]);let x=[],S=[],C=null;l.Children.forEach(r,e=>{if(!l.isValidElement(e)){S.push(e);return}if(e.type===bd){x.push(e);return}if(e.type===_d&&C===null){C=e;return}S.push(e)});let w=x.length,T=Sd(p?i:m,w,s),E=(e,t)=>{let n=Sd(e,w,s);p||h(n),b.current?.(n,t)};l.useEffect(()=>{if(!g||v||w<2)return;let e=window.setTimeout(()=>{if(!s&&T>=w-1){_(!1);return}let e=Sd(T+1,w,s);p||h(e),b.current?.(e,`auto`)},u);return()=>{window.clearTimeout(e)}},[g,v,w,T,u,s,p]);let D={index:T,count:w,loop:s,autoPlay:c,isPlaying:g,goTo:E,previous:()=>E(T-1,`previous`),next:()=>E(T+1,`next`),togglePlaying:()=>_(e=>!e),slidesId:f},{onMouseEnter:O,onMouseLeave:k,onFocus:A,onBlur:j,...M}=d,N=e=>{O?.(e),y(!0)},P=e=>{k?.(e),y(!1)},F=e=>{A?.(e),y(!0)},I=e=>{j?.(e),e.currentTarget.contains(e.relatedTarget)||y(!1)},L=g&&!v;return(0,q.jsx)(id.Provider,{value:D,children:(0,q.jsxs)(`section`,{ref:t,"aria-roledescription":`carousel`,className:G(xd.root,n),onMouseEnter:N,onMouseLeave:P,onFocus:F,onBlur:I,"data-component":`Carousel`,"data-count":w,"data-index":T,"data-playing":L||void 0,...M,children:[(0,q.jsx)(`div`,{id:f,className:xd.viewport,"aria-live":L?`off`:`polite`,"aria-atomic":`false`,"data-component":`Carousel.Viewport`,children:(0,q.jsx)(`div`,{className:G(xd.track,xd.motion),style:{"--carousel-index":T},"data-component":`Carousel.Track`,children:x.map((e,t)=>(0,q.jsx)(ad.Provider,{value:{index:t},children:e},e.key??t))})}),C??(0,q.jsx)(_d,{}),S]})})}Cd.displayName=`Carousel`;var wd=K(Cd);const Td=Object.assign(wd,{Slide:bd,Controls:_d,PreviousButton:md,NextButton:ud,Indicators:cd,PlayButton:fd}),Ed=(0,l.createContext)(null),Dd=()=>{let e=(0,l.useContext)(Ed);if(!e)throw Error(`Chart parts have to be rendered inside a Chart`);return e},Od={root:`chart`};function kd(e,t){let{chart:n,className:r,children:i,...a}=e;return(0,q.jsx)(Ed.Provider,{value:n,children:(0,q.jsx)(`div`,{ref:t,className:G(Od.root,r),"data-component":`Chart`,...a,children:(0,q.jsx)(p.ResponsiveContainer,{width:`100%`,height:`100%`,children:i})})})}kd.displayName=`Chart`;var Ad=K(kd);function jd(e){let{id:t,fillOpacity:n,stops:r}=e,i=Dd();return(0,q.jsx)(`linearGradient`,{id:t,x1:`0`,y1:`0`,x2:`0`,y2:`1`,"data-component":`Chart.Gradient`,children:r.map((e,t)=>(0,q.jsx)(`stop`,{offset:e.offset,stopColor:i.color(e.color),stopOpacity:e.opacity??n},t))})}jd.displayName=`Chart.Gradient`;const Md=[`var(--base-display-color-blue-5)`,`var(--base-display-color-orange-5)`,`var(--base-display-color-purple-5)`,`var(--base-display-color-green-5)`,`var(--base-display-color-pink-5)`],Nd=`var(--foreground-color-muted)`,Pd={blue:Md[0],orange:Md[1],purple:Md[2],green:Md[3],pink:Md[4],grid:`var(--border-color-muted)`,axis:`var(--border-color-default)`,surface:`var(--background-color-default)`,foreground:`var(--foreground-color-default)`,muted:Nd},Fd=(e,t)=>t??Md[e]??`var(--foreground-color-muted)`,Id=e=>typeof e==`object`&&!!e,Ld=(e,t)=>{if(!(!t||!Id(e)))return e[t]},Rd=e=>{if(typeof e==`string`){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(t)return new Date(Number(t[1]),Number(t[2])-1,Number(t[3]))}return new Date(e)},zd=(e,t)=>{let n=new Map;for(let r of e){let e=r[t],i=n.get(e)??[];i.push(r),n.set(e,i)}return Array.from(n.values())},Bd=e=>{let{data:t,series:n=[],sort:r,locale:i}=e,a=`chart-${l.useId().replace(/[^\w-]/g,``)}`,[o,s]=l.useState(null),c=n.map((e,t)=>({...e,color:Fd(t,e.color)})),u=l.useMemo(()=>r?[...t].sort((e,t)=>{let n=Number(e[r.by]),i=Number(t[r.by]);return r.direction===`desc`?i-n:n-i}):t,[t,r]),d=e=>e??`value`,f=e=>{if(e)return Pd[e]??e},p=l.useCallback(e=>{let t=new Intl.NumberFormat(i,e);return e=>t.format(e)},[i]),m=l.useCallback(e=>{let t=new Intl.DateTimeFormat(i,e);return e=>{let n=Rd(e);return Number.isNaN(n.getTime())?String(e):t.format(n)}},[i]),h=e=>{if(!Id(e))return;let t=c.find(t=>t.name===e.name||t.name===Ld(e.payload,`name`)||t.name===e.dataKey||t.name===Ld(e.payload,`dataKey`)),n=t?.name?.toString()??Ld(e.payload,`name`);return{name:n,color:t?.color??Ld(e.payload,`color`),icon:t?.icon,label:t?.label??n}},g=e=>zd(u,e),_=e=>t.reduce((t,n)=>t+Number(n[e]),0),v=e=>Math.min(...t.map(t=>Number(t[e]))),y=e=>Math.max(...t.map(t=>Number(t[e]))),b=e=>e?.reduce((e,t)=>{if(t.value===null||t.value===void 0||t.value===``)return e;let n=Number(t.value);return e+(Number.isNaN(n)?0:n)},0),x=(e,t,n)=>{let r=v(e),i=y(e);if(n){let[e,a]=typeof n==`function`?n({min:r,max:i}):n;return(t-e)/(a-e)*100}return t/_(e)*100},S=e=>o===e;return{id:a,key:d,data:u,series:c,getSeries:h,groupBy:g,color:f,formatNumber:p,formatDate:m,highlightedSeries:o,setHighlightedSeries:s,isHighlightedSeries:S,getSeriesOpacity:(e,t=.2)=>{if(e&&o)return S(e)?1:t},getTotal:_,getMin:v,getMax:y,getPayloadTotal:b,getValuePercent:x}},Vd={root:`chart-legend`,title:`chart-legend-title`,list:`chart-legend-list`,item:`chart-legend-item`,control:`chart-legend-control`,swatch:`chart-swatch`,label:`chart-legend-label`};function Hd(e){let{payload:t,align:n=`center`,verticalAlign:r=`bottom`,layout:i=`auto`,title:a,nameKey:o,interaction:s=`hover`,className:c}=e,l=Dd(),u=i===`auto`?n===`center`?`horizontal`:`vertical`:i,d=t?.filter(e=>e.color!==`none`||e.type!==`none`);return d?.length?(0,q.jsxs)(`div`,{className:G(Vd.root,c),"data-component":`Chart.Legend`,"data-align":n,"data-vertical-align":r,children:[a?(0,q.jsx)(`div`,{className:Vd.title,children:a}):null,(0,q.jsx)(`ul`,{className:Vd.list,"data-orientation":u,children:d.map((e,t)=>{let n=l.getSeries(e),r=n?.name,i=Ld(e.payload,o)??n?.label,a=(0,q.jsxs)(q.Fragment,{children:[n?.icon??(0,q.jsx)(`span`,{className:Vd.swatch,style:{background:l.color(n?.color)},"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:Vd.label,children:i})]});return(0,q.jsx)(`li`,{className:Vd.item,"data-component":`Chart.LegendItem`,"data-series":r,style:{opacity:l.getSeriesOpacity(r,.6)},children:s===`click`?(0,q.jsx)(`button`,{type:`button`,className:Vd.control,"aria-pressed":l.isHighlightedSeries(r),onClick:()=>{r&&l.setHighlightedSeries(e=>e===r?null:r)},children:a}):(0,q.jsx)(`span`,{className:Vd.control,onMouseEnter:()=>l.setHighlightedSeries(r??null),onMouseLeave:()=>l.setHighlightedSeries(null),children:a})},`${r??`series`}-${t}`)})})]}):null}Hd.displayName=`Chart.Legend`;const Ud={title:`chart-radial-title`,description:`chart-radial-description`},Wd=e=>`cx`in e&&`cy`in e;function Gd(e){let{viewBox:t,title:n,description:r,gap:i=24,fontSize:a=`2rem`}=e,o=Dd();return!t||!Wd(t)?null:(0,q.jsxs)(`text`,{x:t.cx,y:t.cy,textAnchor:`middle`,dominantBaseline:`middle`,"data-component":`Chart.RadialText`,children:[(0,q.jsx)(`tspan`,{className:Ud.title,x:t.cx,y:t.cy,style:{fontSize:a,fill:o.color(`foreground`)},children:n}),r?(0,q.jsx)(`tspan`,{className:Ud.description,x:t.cx,y:t.cy+i,style:{fill:o.color(`muted`)},children:r}):null]})}Gd.displayName=`Chart.RadialText`;const Kd={root:`chart-tooltip`,label:`chart-tooltip-label`,rows:`chart-tooltip-rows`,row:`chart-tooltip-row`,swatch:`chart-swatch`,name:`chart-tooltip-name`,value:`chart-tooltip-value`,divider:`chart-tooltip-divider`};function qd(e){let{payload:t,label:n,labelFormatter:r,hideLabel:i,hideIndicator:a,hideSeriesLabel:o,showTotal:s,fitContent:c,nameKey:u,indicator:d=`dot`,formatter:f,render:p,className:m}=e,h=Dd(),g=t?.filter(e=>e.color!==`none`||e.type!==`none`),_=l.useMemo(()=>h.getPayloadTotal(g),[h,g]),v=l.useMemo(()=>{let e=g?.[0];if(!e)return;let t=`${Ld(e.payload,u)??n??e.dataKey??`value`}`;return r?.(t,g??[])??t},[n,r,u,g]);if(!g?.length)return null;let y=(e,t)=>{let n=f?f(e,t):e?.toLocaleString?.();return Array.isArray(n)?n:[n,t]};return(0,q.jsxs)(`div`,{className:G(Kd.root,m),"data-component":`Chart.Tooltip`,"data-fit-content":c?``:void 0,children:[i?null:(0,q.jsx)(`div`,{className:Kd.label,children:v}),(0,q.jsx)(`div`,{className:Kd.rows,children:g.map((e,t)=>{if(p)return(0,q.jsx)(l.Fragment,{children:p(e.payload)},t);let n=h.getSeries(e),[r,i]=y(e.value,n?.label??e.name);return(0,q.jsxs)(`div`,{className:Kd.row,"data-component":`Chart.TooltipRow`,"data-series":n?.name,children:[n?.icon??(n?.color&&!a?(0,q.jsx)(`span`,{className:Kd.swatch,"data-indicator":d,style:{background:h.color(n.color)},"aria-hidden":`true`}):null),o?null:(0,q.jsx)(`span`,{className:Kd.name,children:i}),(0,q.jsx)(`span`,{className:Kd.value,children:r})]},t)})}),s&&_!==void 0?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`hr`,{className:Kd.divider}),(0,q.jsxs)(`div`,{className:Kd.row,"data-component":`Chart.TooltipTotal`,children:[(0,q.jsx)(`span`,{className:Kd.name,children:`Total`}),(0,q.jsx)(`span`,{className:Kd.value,children:y(_,``)[0]})]})]}):null]})}qd.displayName=`Chart.Tooltip`;const Jd=Object.assign(Ad,{Gradient:jd,Legend:Hd,RadialText:Gd,Tooltip:qd}),Yd=(0,l.createContext)({}),Xd={checkmark:`url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=")`,dash:`url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K")`},Zd={root:`checkbox`,mark:`checkbox-mark`,checked:`checkbox-checked`,disabled:`checkbox-disabled`};function Qd(e,t){let{className:n,style:r,checked:i,indeterminate:a,required:o,validationStatus:s,value:c,onChange:u,...d}=e,f=l.useRef(null),p=ar(t,f),m=l.useContext(Yd);return rr(()=>{f.current&&(f.current.indeterminate=a??!1)},[a,i]),(0,q.jsx)(`input`,{ref:p,type:`checkbox`,checked:a&&i!==void 0?!1:i,required:o,value:c,name:c,"aria-checked":a?`mixed`:void 0,"aria-required":o?!0:void 0,"aria-invalid":s===`error`||void 0,onChange:e=>{m.onChange?.(e),u?.(e)},className:G(Zd.root,Zd.mark,Zd.checked,Zd.disabled,n),style:{...r,"--checkbox-mark":a?Xd.dash:Xd.checkmark},"data-component":`Checkbox`,...d})}Qd.displayName=`Checkbox`;var $d=K(Qd);const ef=(0,l.createContext)({}),tf={root:`checkbox-card-description`};function nf(e,t){let{className:n,id:r,...i}=e,{descriptionId:a}=l.useContext(ef);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(tf.root,n),"data-component":`CheckboxCard.Description`,...i})}nf.displayName=`CheckboxCard.Description`;var rf=K(nf);const af={root:`checkbox-card-label`};function of(e,t){let{className:n,id:r,...i}=e,{labelId:a}=l.useContext(ef);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(af.root,n),"data-component":`CheckboxCard.Label`,...i})}of.displayName=`CheckboxCard.Label`;var sf=K(of);const cf={root:`checkbox-card-leading-visual`};function lf(e,t){let{className:n,"aria-label":r,...i}=e;return(0,q.jsx)(`span`,{ref:t,role:r?`img`:void 0,"aria-label":r,"aria-hidden":!r||void 0,className:G(cf.root,n),"data-component":`CheckboxCard.LeadingVisual`,...i})}lf.displayName=`CheckboxCard.LeadingVisual`;var uf=K(lf);const df={body:`checkbox-card-body`,control:`checkbox-card-control`},ff=W(`checkbox-card`,{variants:{disabled:{true:`checkbox-card-disabled`,false:`checkbox-card-interactive`},validation:{error:`checkbox-card-error`,success:`checkbox-card-success`}}});function pf(e,t){let{className:n,children:r,value:i,checked:a,defaultChecked:o,indeterminate:s,disabled:c,required:u,validationStatus:d,onChange:f,id:p,"aria-label":m,"aria-labelledby":h,"aria-describedby":g,..._}=e,v=l.useContext(Yd).disabled||c,y=Y(p),b=`${y}-label`,x=`${y}-description`,[S,C]=xr(r,{leadingVisual:uf,label:sf,description:rf}),w=h??(S.label&&!m?b:void 0),T=[S.description?x:void 0,g].filter(Boolean).join(` `)||void 0;return(0,q.jsx)(ef.Provider,{value:{labelId:b,descriptionId:x},children:(0,q.jsxs)(`label`,{ref:t,className:G(ff({disabled:!!v,validation:d}),n),"data-component":`CheckboxCard`,"data-disabled":v,"data-required":u,"data-validation":d,..._,children:[S.leadingVisual,(0,q.jsxs)(`div`,{className:df.body,children:[S.label,S.description,C]}),(0,q.jsx)($d,{id:y,value:i,checked:a,defaultChecked:o,indeterminate:s,disabled:v,required:u,validationStatus:d,onChange:f,"aria-label":m,"aria-labelledby":w,"aria-describedby":T,className:df.control})]})})}pf.displayName=`CheckboxCard`;var mf=K(pf);const hf=Object.assign(mf,{LeadingVisual:uf,Label:sf,Description:rf}),gf={root:`checkbox-group-caption`};function _f(e,t){let{className:n,...r}=e,{captionId:i}=l.useContext(Yd);return(0,q.jsx)(`span`,{ref:t,id:i,className:G(gf.root,n),"data-component":`CheckboxGroup.Caption`,...r})}_f.displayName=`CheckboxGroup.Caption`;var vf=K(_f);const yf={root:`checkbox-group-label`,disabled:`checkbox-group-label-disabled`,hidden:`sr-only`,required:`checkbox-group-label-required`};function bf(e,t){let{className:n,children:r,visuallyHidden:i,...a}=e,{disabled:o,required:s}=l.useContext(Yd);return(0,q.jsxs)(`span`,{ref:t,title:s?`required field`:void 0,className:G(yf.root,o&&yf.disabled,i&&yf.hidden,n),"data-component":`CheckboxGroup.Label`,"data-label-disabled":o,...a,children:[r,s?(0,q.jsx)(`span`,{className:yf.required,children:`*`}):null]})}bf.displayName=`CheckboxGroup.Label`;var xf=K(bf);const Sf={success:Xt,error:fn},Cf={icon:`checkbox-group-validation-icon`},wf=W(`checkbox-group-validation`,{variants:{variant:{success:`checkbox-group-validation-success`,error:`checkbox-group-validation-error`}}});function Tf(e,t){let{className:n,children:r,variant:i,...a}=e,{validationMessageId:o}=l.useContext(Yd),s=Sf[i];return(0,q.jsxs)(`span`,{ref:t,className:G(wf({variant:i}),n),"data-component":`CheckboxGroup.Validation`,"data-validation-status":i,...a,children:[(0,q.jsx)(s,{className:Cf.icon,"aria-hidden":`true`}),(0,q.jsx)(`span`,{id:o,children:r})]})}Tf.displayName=`CheckboxGroup.Validation`;var Ef=K(Tf);const Df={root:`checkbox-group`,legend:`checkbox-group-legend`,legendVisible:`checkbox-group-legend-visible`,body:`checkbox-group-body`,validation:`checkbox-group-validation-slot`,hidden:`sr-only`},Of=e=>{let t=[],n=e=>{l.Children.forEach(e,e=>{if(l.isValidElement(e)){if(e.type===$d){let{checked:n,defaultChecked:r,value:i}=e.props;(n||r)&&i&&t.push(i);return}n(e.props.children)}})};return n(e),t};function kf(e,t){let{as:n=`fieldset`,className:r,children:i,disabled:a,required:o,onChange:s,id:c,"aria-labelledby":u,...d}=e,[f,p]=xr(i,{label:xf,caption:vf,validation:Ef}),m=Y(c),h=f.caption?`${m}-caption`:void 0,g=f.validation?`${m}-validation`:void 0,[_,v]=l.useState(()=>Of(i)),y=e=>{let{value:t,checked:n}=e.currentTarget,r=n?[..._,t]:_.filter(e=>e!==t);v(r),s?.(r,e)},b=l.isValidElement(f.label)?!f.label.props.visuallyHidden:!1,x={disabled:a,required:o,captionId:h,validationMessageId:g,onChange:y};return(0,q.jsx)(Yd.Provider,{value:x,children:(0,q.jsxs)(n,{ref:t,id:m,disabled:a,"aria-labelledby":f.label?void 0:u,"aria-describedby":[g,h].filter(Boolean).join(` `)||void 0,className:G(Df.root,r),"data-component":`CheckboxGroup`,"data-disabled":a,"data-required":o,...d,children:[f.label?(0,q.jsxs)(`legend`,{className:G(Df.legend,b&&Df.legendVisible),children:[f.label,o?(0,q.jsx)(`span`,{className:Df.hidden,children:`, required`}):null,f.caption]}):f.caption,(0,q.jsx)(`div`,{className:Df.body,children:p}),f.validation?(0,q.jsx)(`div`,{className:Df.validation,children:f.validation}):null]})})}kf.displayName=`CheckboxGroup`;var Af=K(kf);const jf=Object.assign(Af,{Label:xf,Caption:vf,Validation:Ef}),Mf=(0,l.createContext)({}),Nf=()=>(0,l.useContext)(Mf),Pf=e=>{if(typeof document>`u`||typeof document.execCommand!=`function`)return!1;let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.top=`0`,t.style.insetInlineStart=`-9999px`,t.style.opacity=`0`;let n=document.activeElement;document.body.appendChild(t),t.select();try{return document.execCommand(`copy`)}finally{t.remove(),n?.focus?.()}},Ff=async e=>{if(typeof navigator<`u`&&typeof navigator.clipboard?.writeText==`function`)try{await navigator.clipboard.writeText(e);return}catch(t){if(Pf(e))return;throw t}if(!Pf(e))throw Error(`The clipboard could not be reached`)},If=(e={})=>{let{value:t,defaultValue:n,timeout:r=3e3,disabled:i,onValueChange:a,onStatusChange:o,onCopyError:s}=e,c=t!==void 0,[u,d]=l.useState(n??``),f=c?t:u,[p,m]=l.useState(0),h=p>0,g=l.useRef(o);return l.useEffect(()=>{g.current=o},[o]),l.useEffect(()=>{if(p===0||r<=0)return;let e=window.setTimeout(()=>{m(0),g.current?.(!1)},r);return()=>{window.clearTimeout(e)}},[p,r]),{value:f,copied:h,disabled:!!i,copy:()=>{i||Ff(f).then(()=>{m(e=>e+1),o?.(!0)},e=>{s?.(e)})},setValue:e=>{c||d(e),a?.(e)}}},Lf={root:`clipboard`,hidden:`sr-only`};function Rf(e,t){let{as:n=`div`,className:r,value:i,defaultValue:a,timeout:o,disabled:s,copiedAnnouncement:c=`Copied to clipboard`,onValueChange:u,onStatusChange:d,onCopyError:f,children:p,...m}=e,h=If({value:i,defaultValue:a,timeout:o,disabled:s,onValueChange:u,onStatusChange:d,onCopyError:f}),[g,_]=l.useState(void 0),v={...h,inputId:g,setInputId:_};return(0,q.jsx)(Mf.Provider,{value:v,children:(0,q.jsxs)(n,{ref:t,className:G(Lf.root,r),"data-component":`Clipboard`,"data-copied":h.copied,"data-disabled":h.disabled,...m,children:[p,c===null?null:(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Lf.hidden,"data-component":`Clipboard.Announcement`,children:h.copied?c:``})]})})}Rf.displayName=`Clipboard`;var zf=K(Rf);const Bf={root:`clipboard-control`};function Vf(e,t){let{as:n=`div`,className:r,...i}=e,{copied:a}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(Bf.root,r),"data-component":`Clipboard.Control`,"data-copied":!!a,...i})}Vf.displayName=`Clipboard.Control`;var Hf=K(Vf);const Uf={root:`clipboard-copy-text`,hidden:`sr-only`};function Wf(e,t){let{as:n=`span`,className:r,children:i=`Copy`,copied:a=`Copied`,visuallyHidden:o,...s}=e,{copied:c}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(Uf.root,o&&Uf.hidden,r),"data-component":`Clipboard.CopyText`,"data-copied":!!c,...s,children:c?a:i})}Wf.displayName=`Clipboard.CopyText`;var Gf=K(Wf);const Kf={root:`clipboard-indicator`,copied:`clipboard-indicator-copied`};function qf(e,t){let{as:n=`span`,className:r,children:i,copied:a,...o}=e,{copied:s}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(Kf.root,s&&Kf.copied,r),"aria-hidden":`true`,"data-component":`Clipboard.Indicator`,"data-copied":!!s,...o,children:s?a??(0,q.jsx)(Zt,{}):i??(0,q.jsx)(cn,{})})}qf.displayName=`Clipboard.Indicator`;var Jf=K(qf);const Yf=(0,l.createContext)({}),Xf=e=>{let{id:t,disabled:n,required:r,captionId:i,validationMessageId:a}=l.useContext(Yf);return{id:t,disabled:n,required:r,"aria-describedby":[a,i].filter(Boolean).join(` `)||void 0,...e}},Zf={root:`clipboard-input`};function Qf(e,t){let{required:n,...r}=Xf(e),{className:i,id:a,disabled:o,onFocus:s,...c}=r,{value:u,copied:d,disabled:f,setInputId:p}=l.useContext(Mf),m=Y(a);return rr(()=>(p?.(m),()=>p?.(void 0)),[m,p]),(0,q.jsx)(qo,{ref:t,id:m,value:u??``,readOnly:!0,disabled:o??f,onFocus:e=>{s?.(e),!e.defaultPrevented&&e.target.select()},className:G(Zf.root,i),"data-component":`Clipboard.Input`,"data-copied":!!d,...c})}Qf.displayName=`Clipboard.Input`;var $f=K(Qf);const ep={root:`clipboard-label`,disabled:`clipboard-label-disabled`};function tp(e,t){let{as:n=`label`,className:r,htmlFor:i,...a}=e,{inputId:o,disabled:s}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,htmlFor:n===`label`?i??o:void 0,className:G(ep.root,s&&ep.disabled,r),"data-component":`Clipboard.Label`,"data-disabled":!!s,...a})}tp.displayName=`Clipboard.Label`;var np=K(tp);const rp={root:`clipboard-trigger`};function ip(e,t){let{className:n,children:r,label:i=`Copy`,disabled:a,onClick:o,...s}=e,{copied:c,disabled:u,copy:d}=l.useContext(Mf),[f,p]=xr(r,{indicator:Jf}),m=f.indicator??(0,q.jsx)(Jf,{}),h=p.some(e=>e!=null&&e!==!1),g={disabled:a??u,onClick:e=>{o?.(e),!e.defaultPrevented&&d?.()},className:G(rp.root,n),"data-component":`Clipboard.Trigger`,"data-copied":!!c,...s};return h?(0,q.jsx)(pi,{ref:t,leadingVisual:m,...g,children:p}):(0,q.jsx)(gi,{ref:t,icon:m,"aria-label":i,...g})}ip.displayName=`Clipboard.Trigger`;var ap=K(ip);const op={root:`clipboard-value-text`};function sp(e,t){let{as:n=`span`,className:r,children:i,...a}=e,{value:o,copied:s}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(op.root,r),"data-component":`Clipboard.ValueText`,"data-copied":!!s,...a,children:i??o})}sp.displayName=`Clipboard.ValueText`;var cp=K(sp);const lp=Object.assign(zf,{Root:zf,Label:np,Control:Hf,Input:$f,Trigger:ap,Indicator:Jf,CopyText:Gf,ValueText:cp}),up={root:`code`};function dp(e,t){let{as:n=`code`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(up.root,r),"data-component":`Code`,...i})}dp.displayName=`Code`;var fp=K(dp);const pp=(0,l.createContext)({}),mp=`text`,hp=`github-light`,gp=`github-dark`,_p=e=>e.split(`
|
|
26
|
+
<%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require("react"),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),q=o(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?Ot():kt()}))();const At={root:`accordion`};function jt(e,t){let{as:n=`div`,className:r,value:i,defaultValue:a,onChange:o,multiple:s=!1,disabled:c,headingLevel:u=`h3`,keepMounted:d=!0,hiddenUntilFound:f=!1,...p}=e,m=i!==void 0,[h,g]=l.useState(()=>a??[]),_=m?i:h,v=(e,t)=>{if(c||_.includes(e)===t)return;let n=t?s?[..._,e]:[e]:_.filter(t=>t!==e);m||g(n),o?.(n)},y={open:_,setOpen:v,toggle:e=>v(e,!_.includes(e)),disabled:c,headingLevel:u,keepMounted:d,hiddenUntilFound:f};return(0,q.jsx)(Dt.Provider,{value:y,children:(0,q.jsx)(n,{ref:t,className:G(At.root,r),"data-component":`Accordion`,"data-multiple":s,"data-disabled":!!c,...p})})}jt.displayName=`Accordion`;var Mt=K(jt);function J(e,t,n){let r=n(),i=Object.keys(r),a=u.default.forwardRef(({"aria-label":e,"aria-labelledby":n,tabIndex:a,className:o=``,fill:s=`currentColor`,size:c=16,id:l,title:d,style:f,...p},m)=>{let h=c,g=Nt(i,h),_=r[g].width,v=_/parseInt(g,10)*h,y=r[g].path,b=e||n,x=b?`img`:void 0,S=`${t} ${o}`.trim();return u.default.createElement(`svg`,{ref:m,...p,"aria-hidden":b?void 0:`true`,tabIndex:a,focusable:(a??-1)>=0?`true`:`false`,"aria-label":e,"aria-labelledby":n,className:S,role:x,viewBox:`0 0 ${_} ${g}`,width:v,height:h,fill:s,id:l,display:`inline-block`,overflow:`visible`,style:f},d?u.default.createElement(`title`,null,d):null,y)});return a.displayName=e,a}function Nt(e,t){return e.map(e=>parseInt(e,10)).reduce((e,n)=>n<=t?n:e,parseInt(e[0],10)).toString()}const Pt=J(`AddRegular`,`icon icon-add-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 3.25a.75.75 0 0 1 .75.75v7.25H20a.75.75 0 0 1 0 1.5h-7.25V20a.75.75 0 0 1-1.5 0v-7.25H4a.75.75 0 0 1 0-1.5h7.25V4a.75.75 0 0 1 .75-.75`})}})),Ft=J(`ArchiveRegular`,`icon icon-archive-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M10.25 11a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5zM3 5.25A2.25 2.25 0 0 1 5.25 3h13.5A2.25 2.25 0 0 1 21 5.25v1.5c0 .78-.397 1.467-1 1.871v8.629A3.75 3.75 0 0 1 16.25 21h-8.5A3.75 3.75 0 0 1 4 17.25V8.621A2.25 2.25 0 0 1 3 6.75zM5.5 9v8.25a2.25 2.25 0 0 0 2.25 2.25h8.5a2.25 2.25 0 0 0 2.25-2.25V9zm-.25-4.5a.75.75 0 0 0-.75.75v1.5c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-1.5a.75.75 0 0 0-.75-.75z`})}})),It=J(`ArrowClockwiseRegular`,`icon icon-arrow-clockwise-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 4.5a7.5 7.5 0 1 0 7.419 6.392c-.067-.454.265-.892.724-.892.37 0 .696.256.752.623Q21 11.297 21 12a9 9 0 1 1-3-6.708V4.25a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.47 7.47 0 0 0-5.1-2`})}})),Lt=J(`ArrowDownRegular`,`icon icon-arrow-down-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M19.79 13.267a.75.75 0 0 0-1.086-1.034l-5.954 6.251V3.75a.75.75 0 1 0-1.5 0v14.734l-5.955-6.251a.75.75 0 1 0-1.086 1.034l7.067 7.42c.16.168.366.268.58.3a.8.8 0 0 0 .29-.001 1 1 0 0 0 .578-.3z`})}})),Rt=J(`ArrowLeftRegular`,`icon icon-arrow-left-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M10.733 19.79a.75.75 0 0 0 1.034-1.086L5.516 12.75H20.25a.75.75 0 0 0 0-1.5H5.516l6.251-5.955a.75.75 0 0 0-1.034-1.086l-7.42 7.067a1 1 0 0 0-.3.58.8.8 0 0 0 .001.289 1 1 0 0 0 .3.579z`})}})),zt=J(`ArrowMaximizeRegular`,`icon icon-arrow-maximize-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M19.25 4a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0V6.56L6.56 18.5h5.69a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 1.5 0v5.69L17.44 5.5h-5.69a.75.75 0 0 1 0-1.5z`})}})),Bt=J(`ArrowMinimizeRegular`,`icon icon-arrow-minimize-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M10.25 13a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0v-5.69l-6.22 6.22a.75.75 0 1 1-1.06-1.06l6.22-6.22H2.75a.75.75 0 0 1 0-1.5zM20.72 2.22a.75.75 0 1 1 1.06 1.06L15.56 9.5h5.69a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 1.5 0v5.69z`})}})),Vt=J(`ArrowMoveRegular`,`icon icon-arrow-move-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M15.28 6.03a.75.75 0 0 1-1.06 0l-1.47-1.47v3.69a.75.75 0 0 1-1.5 0V4.56L9.78 6.03a.75.75 0 0 1-1.06-1.06l2.75-2.75a.75.75 0 0 1 1.06 0l2.75 2.75a.75.75 0 0 1 0 1.06m-9.25 8.19a.75.75 0 1 1-1.06 1.06l-2.75-2.75a.75.75 0 0 1 0-1.06l2.75-2.75a.75.75 0 0 1 1.06 1.06l-1.47 1.47h3.69a.75.75 0 0 1 0 1.5H4.56zm11.94 1.06a.75.75 0 0 1 0-1.06l1.47-1.47h-3.69a.75.75 0 0 1 0-1.5h3.69l-1.47-1.47a.75.75 0 0 1 1.06-1.06l2.75 2.75a.75.75 0 0 1 0 1.06l-2.75 2.75a.75.75 0 0 1-1.06 0m-2.69 2.69a.75.75 0 0 0-1.06 0l-1.47 1.47v-3.69a.75.75 0 0 0-1.5 0v3.69l-1.47-1.47a.75.75 0 0 0-1.06 1.06l2.75 2.75a.75.75 0 0 0 1.06 0l2.75-2.75a.75.75 0 0 0 0-1.06`})}})),Ht=J(`ArrowRedoRegular`,`icon icon-arrow-redo-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M19.25 2a.75.75 0 0 0-.743.648l-.007.102v5.69l-4.574-4.56a6.41 6.41 0 0 0-8.878-.179l-.186.18a6.41 6.41 0 0 0 0 9.063l8.845 8.84a.75.75 0 0 0 1.06-1.062l-8.845-8.838a4.91 4.91 0 0 1 6.766-7.112l.178.17L17.438 9.5H11.75a.75.75 0 0 0-.743.648L11 10.25c0 .38.282.694.648.743l.102.007h7.5a.75.75 0 0 0 .743-.648L20 10.25v-7.5a.75.75 0 0 0-.75-.75`})}})),Ut=J(`ArrowSortDownRegular`,`icon icon-arrow-sort-down-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`m11.65 4.007.1-.007a.75.75 0 0 1 .744.648l.007.102-.001 12.696 3.22-3.221a.75.75 0 0 1 .976-.073l.084.072a.75.75 0 0 1 .073.977l-.072.084-4.497 4.5a.75.75 0 0 1-.976.073l-.084-.073-4.504-4.5a.75.75 0 0 1 .976-1.133l.084.072L11 17.442V4.75a.75.75 0 0 1 .65-.743l.1-.007z`})}})),Wt=J(`ArrowSortUpRegular`,`icon icon-arrow-sort-up-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`m6.72 8.715 4.494-4.495a.75.75 0 0 1 .976-.073l.085.072 4.504 4.495a.75.75 0 0 1-.975 1.134l-.084-.072-3.223-3.217v12.696a.75.75 0 0 1-.648.743l-.101.007a.75.75 0 0 1-.743-.648l-.007-.102-.001-12.698L7.78 9.775a.75.75 0 0 1-.976.073l-.084-.073a.75.75 0 0 1-.073-.976zl4.494-4.495z`})}})),Gt=J(`ArrowUndoRegular`,`icon icon-arrow-undo-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M4.75 2a.75.75 0 0 1 .743.648l.007.102v5.69l4.574-4.56a6.41 6.41 0 0 1 8.879-.179l.186.18a6.41 6.41 0 0 1 0 9.063l-8.846 8.84a.75.75 0 0 1-1.06-1.062l8.845-8.838a4.91 4.91 0 0 0-6.766-7.112l-.178.17L6.562 9.5h5.688a.75.75 0 0 1 .743.648l.007.102a.75.75 0 0 1-.648.743L12.25 11h-7.5a.75.75 0 0 1-.743-.648L4 10.25v-7.5A.75.75 0 0 1 4.75 2`})}})),Kt=J(`ArrowUpRegular`,`icon icon-arrow-up-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M4.209 10.733a.75.75 0 0 0 1.086 1.034l5.954-6.251V20.25a.75.75 0 0 0 1.5 0V5.516l5.955 6.251a.75.75 0 0 0 1.087-1.034l-7.067-7.42a1 1 0 0 0-.58-.3.8.8 0 0 0-.29.001 1 1 0 0 0-.578.3z`})}})),qt=J(`ArrowUploadRegular`,`icon icon-arrow-upload-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M18.25 3.51a.75.75 0 1 0 0-1.5l-13-.004a.75.75 0 1 0 0 1.5zm-6.602 18.488.102.007a.75.75 0 0 0 .743-.649l.007-.101-.001-13.685 3.722 3.72a.75.75 0 0 0 .976.073l.085-.073a.75.75 0 0 0 .072-.977l-.073-.084-4.997-4.996a.75.75 0 0 0-.976-.073l-.085.072L6.22 10.23a.75.75 0 0 0 .976 1.134l.084-.073 3.719-3.713L11 21.255c0 .38.282.693.648.743`})}})),Jt=J(`BranchRegular`,`icon icon-branch-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M4 5.5a3.5 3.5 0 1 1 4.489 3.358 5.5 5.5 0 0 0 5.261 3.892h.33a3.501 3.501 0 0 1 6.92.75 3.5 3.5 0 0 1-6.92.75h-.33a6.99 6.99 0 0 1-5.5-2.67v3.5A3.501 3.501 0 0 1 7.5 22a3.5 3.5 0 0 1-.75-6.92V8.92A3.5 3.5 0 0 1 4 5.5m3.5-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 13a2 2 0 1 0 0 4 2 2 0 0 0 0-4m8-3a2 2 0 1 0 4 0 2 2 0 0 0-4 0`})}})),Yt=J(`CalendarLtrRegular`,`icon icon-calendar-ltr-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M17.75 3A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3zm1.75 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h11.5a1.75 1.75 0 0 0 1.75-1.75zm-11.75 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m-4.25-4a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m1.5-6H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75`})}})),Xt=J(`CheckmarkCircleRegular`,`icon icon-checkmark-circle-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-1.25 9.94 4.47-4.47a.75.75 0 0 1 1.133.976l-.073.084-5 5a.75.75 0 0 1-.976.073l-.084-.073-2.5-2.5a.75.75 0 0 1 .976-1.133l.084.073zl4.47-4.47z`})}})),Zt=J(`CheckmarkRegular`,`icon icon-checkmark-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M4.53 12.97a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l11-11a.75.75 0 0 0-1.06-1.06L8.5 16.94z`})}})),Qt=J(`ChevronDownRegular`,`icon icon-chevron-down-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M4.22 8.47a.75.75 0 0 1 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06`})}})),$t=J(`ChevronLeftRegular`,`icon icon-chevron-left-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0`})}})),en=J(`ChevronRightRegular`,`icon icon-chevron-right-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M8.47 4.22a.75.75 0 0 0 0 1.06L15.19 12l-6.72 6.72a.75.75 0 1 0 1.06 1.06l7.25-7.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0`})}})),tn=J(`ChevronUpRegular`,`icon icon-chevron-up-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M4.22 15.53a.75.75 0 0 0 1.06 0L12 8.81l6.72 6.72a.75.75 0 1 0 1.06-1.06l-7.25-7.25a.75.75 0 0 0-1.06 0l-7.25 7.25a.75.75 0 0 0 0 1.06`})}})),nn=J(`CircleHintRegular`,`icon icon-circle-hint-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M7.59 3.963c-.172-.414-.666-.591-1.041-.347a10.05 10.05 0 0 0-2.93 2.931c-.246.376-.069.87.345 1.04.355.147.76.004.973-.315a8.6 8.6 0 0 1 2.337-2.337c.319-.213.462-.618.315-.972m2.758-.302c-.377.074-.765-.11-.911-.465-.172-.414.052-.888.49-.98a10 10 0 0 1 4.146-.001c.439.092.663.566.491.98a.806.806 0 0 1-.91.465 8.5 8.5 0 0 0-3.306.001m9.69 3.925c-.354.147-.758.003-.972-.315a8.6 8.6 0 0 0-2.339-2.338c-.318-.213-.462-.618-.315-.972.171-.414.665-.591 1.04-.347 1.17.762 2.17 1.762 2.933 2.931.245.376.068.87-.347 1.041m.768 6.978c-.354-.147-.539-.535-.465-.911a8.6 8.6 0 0 0 0-3.309c-.075-.376.11-.764.465-.91.413-.172.887.051.98.49a10 10 0 0 1 0 4.15c-.092.438-.566.661-.98.49m-4.393 5.474c-.147-.354-.003-.759.315-.972a8.6 8.6 0 0 0 2.34-2.34c.213-.318.618-.461.972-.315.414.172.591.665.347 1.04a10.05 10.05 0 0 1-2.934 2.934c-.375.244-.869.067-1.04-.347m-6.978.766c.147-.355.535-.54.911-.465a8.5 8.5 0 0 0 3.309 0c.376-.074.764.111.91.465.172.414-.052.889-.49.98a10 10 0 0 1-4.15 0c-.438-.092-.661-.566-.49-.98M3.963 16.41c.354-.147.759-.003.972.315a8.6 8.6 0 0 0 2.338 2.34c.318.213.462.618.315.972-.171.414-.665.59-1.04.346a10.05 10.05 0 0 1-2.932-2.933c-.244-.375-.067-.869.347-1.04m-.765-6.975c.354.147.539.535.465.91a8.5 8.5 0 0 0 0 3.306c.073.376-.112.764-.466.91-.414.172-.888-.051-.98-.49a10 10 0 0 1 0-4.146c.093-.438.567-.662.98-.49`})}})),rn=J(`CircleRegular`,`icon icon-circle-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12`})}})),an=J(`CircleSmallRegular`,`icon icon-circle-small-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 9.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M8 12a4 4 0 1 1 8 0 4 4 0 0 1-8 0`})}})),on=J(`ClockRegular`,`icon icon-clock-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-.007 4.648a.75.75 0 0 0-1.493.102v6l.007.102a.75.75 0 0 0 .743.648h4l.102-.007A.75.75 0 0 0 15.25 12H12V6.75z`})}})),sn=J(`CodeRegular`,`icon icon-code-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`m8.066 18.943 6.5-14.5a.75.75 0 0 1 1.404.518l-.036.096-6.5 14.5a.75.75 0 0 1-1.404-.518zl6.5-14.5zM2.22 11.47l4.25-4.25a.75.75 0 0 1 1.133.976l-.073.085L3.81 12l3.72 3.719a.75.75 0 0 1-.976 1.133l-.084-.073-4.25-4.25a.75.75 0 0 1-.073-.976zl4.25-4.25zm14.25-4.25a.75.75 0 0 1 .976-.073l.084.073 4.25 4.25a.75.75 0 0 1 .073.976l-.073.085-4.25 4.25a.75.75 0 0 1-1.133-.977l.073-.084L20.19 12l-3.72-3.72a.75.75 0 0 1 0-1.06`})}})),cn=J(`CopyRegular`,`icon icon-copy-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M8.5 8.5H6.25a1.75 1.75 0 0 0-1.75 1.75v7.5c0 .966.784 1.75 1.75 1.75h5c.882 0 1.61-.652 1.73-1.5h1.51a3.25 3.25 0 0 1-3.24 3h-5A3.25 3.25 0 0 1 3 17.75v-7.5A3.25 3.25 0 0 1 6.25 7H8.5zM17.75 3A3.25 3.25 0 0 1 21 6.25v7.5A3.25 3.25 0 0 1 17.75 17h-5a3.25 3.25 0 0 1-3.25-3.25v-7.5A3.25 3.25 0 0 1 12.75 3zm-5 1.5A1.75 1.75 0 0 0 11 6.25v7.5c0 .966.784 1.75 1.75 1.75h5a1.75 1.75 0 0 0 1.75-1.75v-7.5a1.75 1.75 0 0 0-1.75-1.75z`})}})),ln=J(`DismissCircleRegular`,`icon icon-dismiss-circle-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m3.446 4.897.084.073a.75.75 0 0 1 .073.976l-.073.084L13.061 12l2.47 2.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-2.47 2.47a.75.75 0 0 1-.976.072l-.084-.073a.75.75 0 0 1-.073-.976l.073-.084L10.939 12l-2.47-2.47a.75.75 0 0 1-.072-.976l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l2.47-2.47a.75.75 0 0 1 .976-.072`})}})),un=J(`DismissRegular`,`icon icon-dismiss-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`m4.397 4.554.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l6.47-6.47a.75.75 0 1 1 1.06 1.061L13.061 12l6.47 6.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-6.47 6.47a.75.75 0 0 1-1.06-1.061L10.939 12l-6.47-6.47a.75.75 0 0 1-.072-.976l.073-.084z`})}})),dn=J(`DocumentRegular`,`icon icon-document-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 12.172 2zm-.5 2a.5.5 0 0 1 .5-.5h6V8a2 2 0 0 0 2 2h4.5v10a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5zm11.88 4.5H14a.5.5 0 0 1-.5-.5V4.62z`})}})),fn=J(`ErrorCircleRegular`,`icon icon-error-circle-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-.001 11.002a.999.999 0 1 1-.001 1.997.999.999 0 0 1 .001-1.997M11.994 7a.75.75 0 0 1 .744.647l.007.102.004 4.502a.75.75 0 0 1-1.493.103l-.007-.102-.004-4.501a.75.75 0 0 1 .75-.751`})}})),pn=J(`EyeOffRegular`,`icon icon-eye-off-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M2.22 2.22a.75.75 0 0 0-.073.976l.073.084 4.034 4.035a10 10 0 0 0-3.955 5.75.75.75 0 0 0 1.455.364 8.5 8.5 0 0 1 3.58-5.034l1.81 1.81A4 4 0 0 0 14.8 15.86l5.919 5.92a.75.75 0 0 0 1.133-.977l-.073-.084-6.113-6.114.001-.002-1.2-1.198-2.87-2.87h.002l-2.88-2.877.001-.002-1.133-1.13L3.28 2.22a.75.75 0 0 0-1.06 0m7.984 9.045 3.535 3.536a2.5 2.5 0 0 1-3.535-3.535M12 5.5c-1 0-1.97.148-2.889.425l1.237 1.236a8.503 8.503 0 0 1 9.899 6.272.75.75 0 0 0 1.455-.363A10 10 0 0 0 12 5.5m.195 3.51 3.801 3.8a4.003 4.003 0 0 0-3.801-3.8`})}})),mn=J(`EyeRegular`,`icon icon-eye-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 9.005a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 1.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M12 5.5c4.613 0 8.596 3.15 9.701 7.564a.75.75 0 1 1-1.455.365 8.504 8.504 0 0 0-16.493.004.75.75 0 0 1-1.456-.363A10 10 0 0 1 12 5.5`})}})),hn=J(`FilterDismissRegular`,`icon icon-filter-dismiss-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M23 7.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-7.146-2.354a.5.5 0 0 0-.708.708L16.793 7.5l-1.647 1.646a.5.5 0 0 0 .708.708L17.5 8.207l1.646 1.647a.5.5 0 0 0 .708-.708L18.207 7.5l1.647-1.646a.5.5 0 0 0-.708-.708L17.5 6.793zM13.346 12.5a6.5 6.5 0 0 1-1.324-1.5H7.5a.75.75 0 0 0 0 1.5zM11 7.5q.002-.776.174-1.5H4.5a.75.75 0 0 0 0 1.5zm2.5 8.5a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5z`})}})),gn=J(`FolderOpenRegular`,`icon icon-folder-open-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3.5 6.25c0-.966.784-1.75 1.75-1.75h2.88a.75.75 0 0 1 .53.22l2.06 2.06c.142.141.332.22.531.22h5.5c.967 0 1.75.784 1.75 1.75q.001.13.041.246H8.72a3.75 3.75 0 0 0-3.25 1.874L3.5 14.283zM2 17.788A3.25 3.25 0 0 0 5.25 21H11q.044 0 .086-.005h5.195a3.75 3.75 0 0 0 3.248-1.875l3.03-5.25c1.216-2.104-.225-4.72-2.602-4.868A.8.8 0 0 0 20 8.75a3.25 3.25 0 0 0-3.25-3.25h-5.19L9.72 3.659A2.25 2.25 0 0 0 8.129 3H5.25A3.25 3.25 0 0 0 2 6.25zm6.719-7.292h11.026c1.347 0 2.19 1.458 1.515 2.625l-3.03 5.25a2.25 2.25 0 0 1-1.949 1.124H5.255c-1.347 0-2.19-1.458-1.516-2.625l3.031-5.25a2.25 2.25 0 0 1 1.949-1.124`})}})),_n=J(`FolderRegular`,`icon icon-folder-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3.5 6.25V8h4.629a.75.75 0 0 0 .53-.22l1.53-1.53-1.53-1.53a.75.75 0 0 0-.53-.22H5.25A1.75 1.75 0 0 0 3.5 6.25m-1.5 0A3.25 3.25 0 0 1 5.25 3h2.879a2.25 2.25 0 0 1 1.59.659L11.562 5.5h7.189A3.25 3.25 0 0 1 22 8.75v9A3.25 3.25 0 0 1 18.75 21H5.25A3.25 3.25 0 0 1 2 17.75zM3.5 9.5v8.25c0 .966.784 1.75 1.75 1.75h13.5a1.75 1.75 0 0 0 1.75-1.75v-9A1.75 1.75 0 0 0 18.75 7h-7.19L9.72 8.841a2.25 2.25 0 0 1-1.591.659z`})}})),vn=J(`InfoRegular`,`icon icon-info-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12.002 1.999c5.523 0 10.001 4.478 10.001 10.002 0 5.523-4.478 10.001-10.001 10.001C6.478 22.002 2 17.524 2 12.001 2 6.477 6.478 1.999 12.002 1.999m0 1.5a8.502 8.502 0 1 0 0 17.003 8.502 8.502 0 0 0 0-17.003M12 10.5a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75M12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2`})}})),yn=J(`LayerRegular`,`icon icon-layer-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M20.026 12.192a2 2 0 0 1-.577.598l-6.05 4.084a2.5 2.5 0 0 1-2.798 0l-6.05-4.084a2 2 0 0 1-.779-2.29l6.841 4.56a2.5 2.5 0 0 0 2.613.098l.16-.098 6.841-4.56a2 2 0 0 1-.201 1.692m.201 1.558a1.996 1.996 0 0 1-.778 2.29l-6.05 4.084a2.5 2.5 0 0 1-2.798 0l-6.05-4.084a2 2 0 0 1-.779-2.29l6.841 4.56a2.5 2.5 0 0 0 2.613.098l.16-.098zm-6.84-10.325 6.365 4.243a1 1 0 0 1 0 1.664l-6.365 4.244a2.5 2.5 0 0 1-2.774 0L4.248 9.332a1 1 0 0 1 0-1.664l6.365-4.243a2.5 2.5 0 0 1 2.774 0M11.56 4.606l-.116.067L5.705 8.5l5.74 3.828a1 1 0 0 0 .994.066l.116-.066L18.294 8.5l-5.74-3.827a1 1 0 0 0-.993-.067`})}})),bn=J(`LineRegular`,`icon icon-line-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M21.784 2.22a.75.75 0 0 1 0 1.06L3.28 21.784a.75.75 0 1 1-1.06-1.06L20.723 2.22a.75.75 0 0 1 1.06 0`})}})),xn=J(`LinkRegular`,`icon icon-link-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M9.25 7a.75.75 0 0 1 .11 1.492l-.11.008H7a3.5 3.5 0 0 0-.206 6.994L7 15.5h2.25a.75.75 0 0 1 .11 1.492L9.25 17H7a5 5 0 0 1-.25-9.994L7 7zM17 7a5 5 0 0 1 .25 9.994L17 17h-2.25a.75.75 0 0 1-.11-1.492l.11-.008H17a3.5 3.5 0 0 0 .206-6.994L17 8.5h-2.25a.75.75 0 0 1-.11-1.492L14.75 7zM7 11.25h10a.75.75 0 0 1 .102 1.493L17 12.75H7a.75.75 0 0 1-.102-1.493zh10z`})}})),Sn=J(`MergeRegular`,`icon icon-merge-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3 6.75A.75.75 0 0 1 3.75 6h3.257A3.75 3.75 0 0 1 9.66 7.098l2.95 2.95a3.25 3.25 0 0 0 2.298.952h4.53L15.72 7.28a.75.75 0 1 1 1.06-1.06l4.999 5a.75.75 0 0 1 0 1.06l-4.999 5a.75.75 0 1 1-1.06-1.06l3.718-3.72h-4.47a3.25 3.25 0 0 0-2.357 1.012l-2.68 2.82A3.75 3.75 0 0 1 7.212 17.5H3.75a.75.75 0 0 1 0-1.5h3.462a2.25 2.25 0 0 0 1.631-.7l2.68-2.822q.388-.406.853-.709a4.8 4.8 0 0 1-.828-.66l-2.95-2.95a2.25 2.25 0 0 0-1.59-.659H3.75A.75.75 0 0 1 3 6.75`})}})),Cn=J(`MoreHorizontalRegular`,`icon icon-more-horizontal-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M7.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0m6 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M18 13.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5`})}})),wn=J(`PauseRegular`,`icon icon-pause-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M6.25 3A2.25 2.25 0 0 0 4 5.25v13.5A2.25 2.25 0 0 0 6.25 21h2.5A2.25 2.25 0 0 0 11 18.75V5.25A2.25 2.25 0 0 0 8.75 3zM5.5 5.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75zM15.25 3A2.25 2.25 0 0 0 13 5.25v13.5A2.25 2.25 0 0 0 15.25 21h2.5A2.25 2.25 0 0 0 20 18.75V5.25A2.25 2.25 0 0 0 17.75 3zm-.75 2.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75z`})}})),Tn=J(`PlayRegular`,`icon icon-play-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M7.608 4.615a.75.75 0 0 0-1.108.659v13.452a.75.75 0 0 0 1.108.659l12.362-6.726a.75.75 0 0 0 0-1.318zM5 5.274c0-1.707 1.826-2.792 3.325-1.977l12.362 6.727c1.566.852 1.566 3.1 0 3.952L8.325 20.702C6.826 21.518 5 20.432 5 18.726z`})}})),En=J(`ProhibitedRegular`,`icon icon-prohibited-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m6.517 4.543L6.543 18.517A8.5 8.5 0 0 0 18.517 6.543M12 3.5a8.5 8.5 0 0 0-6.517 13.957L17.457 5.483A8.47 8.47 0 0 0 12 3.5`})}})),Dn=J(`RecordRegular`,`icon icon-record-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12m0-16C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0`})}})),On=J(`SearchRegular`,`icon icon-search-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M16.102 17.162a8 8 0 1 1 1.06-1.06l4.618 4.618a.75.75 0 1 1-1.06 1.06zM17.5 11a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0`})}})),kn=J(`ShapesRegular`,`icon icon-shapes-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M8.75 3.5A5.25 5.25 0 0 0 8 13.947v1.512A6.751 6.751 0 1 1 15.459 8h-1.512A5.25 5.25 0 0 0 8.75 3.5m3.5 5.5A3.25 3.25 0 0 0 9 12.25v6.5A3.25 3.25 0 0 0 12.25 22h6.5A3.25 3.25 0 0 0 22 18.75v-6.5A3.25 3.25 0 0 0 18.75 9zm-1.75 3.25c0-.966.784-1.75 1.75-1.75h6.5c.966 0 1.75.784 1.75 1.75v6.5a1.75 1.75 0 0 1-1.75 1.75h-6.5a1.75 1.75 0 0 1-1.75-1.75z`})}})),An=J(`ShieldCheckmarkRegular`,`icon icon-shield-checkmark-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11q0 .507-.04.996a6.5 6.5 0 0 0-1.465-.684q.005-.155.005-.312V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.149 2.332 7.221 7.125 9.285a6.5 6.5 0 0 0 1.005 1.52l-.355.143a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-2.146-2.354a.5.5 0 0 0-.708 0L16.5 18.793l-1.646-1.647a.5.5 0 0 0-.708.708l2 2a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708`})}})),jn=J(`ShieldDismissRegular`,`icon icon-shield-dismiss-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M12.45 2.15C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11V5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0M12 3.678c-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8M9.28 8.222l2.724 2.723 2.725-2.723a.75.75 0 0 1 .975-.073l.084.073a.75.75 0 0 1 .073.975l-.073.084-2.724 2.723 2.724 2.725a.749.749 0 1 1-1.06 1.059l-2.724-2.724-2.723 2.724a.75.75 0 0 1-.975.073l-.084-.073a.75.75 0 0 1-.073-.975l.073-.084 2.723-2.725-2.723-2.723A.75.75 0 0 1 9.28 8.22`})}})),Mn=J(`ShieldErrorRegular`,`icon icon-shield-error-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M20.25 5c-2.663 0-5.258-.943-7.8-2.85a.75.75 0 0 0-.9 0C9.008 4.057 6.413 5 3.75 5a.75.75 0 0 0-.75.75V11c0 5.001 2.958 8.676 8.725 10.948a.75.75 0 0 0 .55 0C18.042 19.676 21 16 21 11V5.75a.75.75 0 0 0-.75-.75M4.5 6.478c2.577-.152 5.08-1.09 7.5-2.8 2.42 1.71 4.923 2.648 7.5 2.8V11c0 4.256-2.453 7.379-7.5 9.442C6.953 18.379 4.5 15.256 4.5 11zm8.243 1.174a.75.75 0 0 0-1.493.102v6.498l.007.102a.75.75 0 0 0 1.493-.102V7.754zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2`})}})),Nn=J(`ShieldRegular`,`icon icon-shield-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zm1.5.728V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8`})}})),Pn=J(`SubtractRegular`,`icon icon-subtract-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3.754 12.5h16.492a.75.75 0 0 0 0-1.5H3.754a.75.75 0 0 0 0 1.5`})}})),Fn=J(`TextBoldRegular`,`icon icon-text-bold-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M6.935 4.44A1.5 1.5 0 0 1 7.996 4h4.384C15.016 4 17 6.182 17 8.625a4.63 4.63 0 0 1-.866 2.682c1.077.827 1.866 2.12 1.866 3.813 0 3.112-2.7 4.88-4.88 4.88H8a1.5 1.5 0 0 1-1.5-1.5l-.004-13c0-.397.158-.779.44-1.06M9.5 10.25h2.88c.903 0 1.62-.76 1.62-1.625S13.282 7 12.38 7H9.498zm0 3V17h3.62c.874 0 1.88-.754 1.88-1.88 0-1.13-.974-1.87-1.88-1.87z`})}})),In=J(`TextBulletListLtrRegular`,`icon icon-text-bullet-list-ltr-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M3.25 17.5a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh14.5zm-3.5-7a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493L21.25 13H6.75a.75.75 0 0 1-.102-1.493zh14.5zm-3.5-7a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh14.5z`})}})),Ln=J(`TextHeader_1Regular`,`icon icon-text-header-1-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M19.59 5.082a.75.75 0 0 0-.809.083.75.75 0 0 0-.249.367c-.69 2.051-2.057 3.409-3.168 4.075a.75.75 0 0 0 .772 1.286c.774-.464 1.623-1.18 2.364-2.146v9.503a.75.75 0 0 0 1.5 0V5.772a.75.75 0 0 0-.41-.69M3.5 5.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V12.5H10v5.75a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-1.5 0V11H3.5z`})}})),Rn=J(`TextHeader_2Regular`,`icon icon-text-header-2-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M10.75 5a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-1.5 0V12.5H3.5v5.75a.75.75 0 0 1-1.5 0V5.75a.75.75 0 0 1 1.5 0V11H10V5.75a.75.75 0 0 1 .75-.75m7-.5A4.25 4.25 0 0 1 22 8.75c0 1.299-.545 2.3-1.29 3.115-.722.79-1.673 1.45-2.524 2.058-1.554 1.11-2.799 2.084-3.11 3.577h6.174a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75c0-2.812 2.114-4.333 3.814-5.548.899-.642 1.698-1.201 2.288-1.848.568-.622.898-1.278.898-2.104a2.75 2.75 0 0 0-5.473-.393.75.75 0 0 1-1.484-.211A4.25 4.25 0 0 1 17.75 4.5`})}})),zn=J(`TextHeader_3Regular`,`icon icon-text-header-3-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M17.751 4.5c2.321 0 4.25 1.822 4.25 4.125 0 1.407-.721 2.633-1.81 3.375 1.089.742 1.81 1.968 1.81 3.375 0 2.303-1.929 4.125-4.25 4.125-.85 0-1.715-.243-2.447-.654-.73-.41-1.38-1.015-1.735-1.782a.75.75 0 0 1 1.362-.63c.19.412.578.808 1.106 1.104a3.6 3.6 0 0 0 1.714.462c1.544 0 2.75-1.2 2.75-2.625 0-1.424-1.206-2.625-2.75-2.625H16.75a.75.75 0 0 1 0-1.5h1.001c1.544 0 2.75-1.2 2.75-2.625 0-1.424-1.206-2.625-2.75-2.625-.575 0-1.19.167-1.714.462-.528.296-.915.692-1.106 1.104a.75.75 0 0 1-1.362-.63c.355-.767 1.005-1.372 1.735-1.782A5.1 5.1 0 0 1 17.75 4.5m-7 .5a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-1.5 0V12.5H3.5v5.75a.75.75 0 0 1-1.5 0V5.75a.75.75 0 0 1 1.5 0V11H10V5.75a.75.75 0 0 1 .75-.75`})}})),Bn=J(`TextItalicRegular`,`icon icon-text-italic-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M18.75 4a.75.75 0 0 1 0 1.5h-3.482l-4.932 13h3.414a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5h3.482l4.932-13H10.25a.75.75 0 0 1 0-1.5z`})}})),Vn=J(`TextNumberListLtrRegular`,`icon icon-text-number-list-ltr-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M6 2.75a.75.75 0 0 0-1.434-.307l-.002.003-.011.024-.056.108a4 4 0 0 1-.238.385c-.217.312-.524.662-.906.901a.75.75 0 1 0 .794 1.272q.188-.117.353-.248V7.25a.75.75 0 1 0 1.5 0zm14.5 16a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75m0-6.506a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75m0-6.494a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75M5.15 10.52c-.3-.053-.676.066-.87.26a.75.75 0 0 1-1.06-1.06c.556-.556 1.43-.812 2.192-.677.397.07.805.254 1.115.605.316.358.473.825.473 1.352 0 .62-.271 1.08-.606 1.42-.278.283-.63.511-.906.689l-.08.051a6 6 0 0 0-.481.34H6.25a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75c0-1.313.984-1.953 1.575-2.337l.06-.04c.318-.205.533-.345.69-.504.134-.136.175-.238.175-.369 0-.223-.061-.318-.098-.36a.42.42 0 0 0-.251-.12M2.97 21.28s.093.084.004.005l.006.005.013.013a1.4 1.4 0 0 0 .15.125c.095.071.227.158.397.243.341.17.83.33 1.46.33.64 0 1.196-.182 1.601-.54.408-.36.61-.858.595-1.36a1.78 1.78 0 0 0-.426-1.1c.259-.306.412-.686.426-1.102a1.73 1.73 0 0 0-.595-1.36C6.196 16.182 5.64 16 5 16c-.63 0-1.119.158-1.46.33a2.6 2.6 0 0 0-.51.334l-.037.033-.013.013-.006.005-.002.003H2.97l-.001.002a.75.75 0 0 0 1.048 1.072l.026-.02a1 1 0 0 1 .166-.101c.159-.08.42-.17.79-.17.36 0 .536.099.608.163a.23.23 0 0 1 .088.187.33.33 0 0 1-.123.23c-.089.078-.263.17-.573.17a.75.75 0 0 0 0 1.5c.31 0 .484.09.573.167.091.08.121.166.123.231a.23.23 0 0 1-.088.188c-.072.063-.247.163-.608.163a1.75 1.75 0 0 1-.79-.17 1 1 0 0 1-.192-.122.75.75 0 0 0-1.048 1.072m.002-4.562c.007-.005.2-.166 0 0`})}})),Hn=J(`TextQuoteRegular`,`icon icon-text-quote-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M8 5a3 3 0 0 1 2.997 2.916l.006.084c0 2.933-1.067 5.382-2.113 7.081a16 16 0 0 1-1.446 1.985 12 12 0 0 1-.664.714l-.011.012-.004.003-.001.002a.75.75 0 0 1-1.027-1.094l.005-.005.028-.026.113-.115c.1-.104.246-.26.423-.467.354-.414.83-1.023 1.306-1.796a13 13 0 0 0 1.526-3.519A3 3 0 1 1 8 5m8 0a3 3 0 0 1 2.997 2.916l.006.084c0 2.933-1.067 5.382-2.113 7.081a16 16 0 0 1-1.446 1.985 12 12 0 0 1-.664.714l-.011.012-.004.003-.001.002a.75.75 0 0 1-1.027-1.094l.005-.005.027-.026.114-.115c.1-.104.246-.26.423-.467.354-.414.83-1.023 1.306-1.796a13 13 0 0 0 1.526-3.519A3 3 0 1 1 16 5M8 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m8 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3`})}})),Un=J(`TextStrikethroughRegular`,`icon icon-text-strikethrough-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M4.75 12h14.5a.75.75 0 0 1 .102 1.493l-.101.007h-2.975c.88.813 1.336 1.793 1.336 2.935 0 2.825-3.232 4.64-6.754 4.23-2.235-.26-3.809-1.155-4.635-2.702a.75.75 0 0 1 1.323-.707c.57 1.068 1.702 1.712 3.485 1.92 2.743.318 5.081-.995 5.081-2.741 0-1.172-.805-2.127-2.565-2.886l-.116-.049H4.75a.75.75 0 0 1-.743-.648L4 12.75a.75.75 0 0 1 .648-.743zh14.5zm1.511-3.877c.152-2.83 2.822-4.468 6.324-4.061 2.188.254 3.863 1.053 4.982 2.409a.75.75 0 1 1-1.157.955c-.852-1.033-2.17-1.662-3.999-1.874-2.717-.316-4.65.804-4.65 2.571 0 .772.234 1.348.83 1.982l.128.132c.094.096.197.195.25.24l.031.02H7.08l-.024-.038c-.143-.206-.856-1.195-.795-2.336`})}})),Wn=J(`TextUnderlineRegular`,`icon icon-text-underline-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M6.75 19h10.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh10.5zm10.5-15a.75.75 0 0 1 .743.648L18 4.75v6c0 4.394-2.063 6.75-6.003 6.75-3.855 0-5.91-2.255-5.994-6.466L6 10.75v-6a.75.75 0 0 1 1.493-.102l.007.102v6C7.496 14.358 8.933 16 11.997 16c2.985 0 4.428-1.56 4.5-4.976l.003-.274v-6a.75.75 0 0 1 .75-.75`})}})),Gn=J(`WarningRegular`,`icon icon-warning-regular`,()=>({24:{width:24,path:u.default.createElement(`path`,{d:`M9.138 3.707c1.228-2.276 4.494-2.276 5.721 0l6.743 12.502c1.168 2.165-.4 4.792-2.86 4.793H5.255c-2.46 0-4.028-2.628-2.86-4.793zm4.4.712c-.66-1.225-2.419-1.225-3.08 0L3.715 16.921a1.75 1.75 0 0 0 1.54 2.581h13.487a1.75 1.75 0 0 0 1.54-2.581zM12 15a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-7.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 12 7.5`})}})),Kn=(0,l.createContext)({}),qn={heading:`accordion-header`,button:`accordion-header-button`,disabled:`accordion-header-button-disabled`,label:`min-w-0`,indicator:`accordion-header-indicator`,indicatorOpen:`rotate-180`};function Jn(e,t){let{className:n,children:r,headingLevel:i,...a}=e,{headingLevel:o}=l.useContext(Dt),{headerId:s,panelId:c,isOpen:u,disabled:d,isPanelPresent:f,toggle:p}=l.useContext(Kn);return(0,q.jsx)(i??o??`h3`,{className:qn.heading,"data-component":`Accordion.Header`,children:(0,q.jsxs)(`button`,{ref:t,type:`button`,id:s,className:G(qn.button,d&&qn.disabled,n),onClick:p,disabled:d,"aria-expanded":!!u,"aria-controls":f?c:void 0,"data-component":`Accordion.HeaderButton`,"data-open":!!u,...a,children:[(0,q.jsx)(`span`,{className:qn.label,children:r}),(0,q.jsx)(Qt,{className:G(qn.indicator,u&&qn.indicatorOpen),"aria-hidden":`true`})]})})}Jn.displayName=`Accordion.Header`;var Yn=K(Jn);const Y=e=>{let t=(0,l.useId)();return e||t},Xn={root:`accordion-item`};function Zn(e,t){let{as:n=`div`,className:r,value:i,disabled:a,...o}=e,{open:s,setOpen:c,toggle:u,disabled:d,keepMounted:f,hiddenUntilFound:p}=l.useContext(Dt),m=Y(),h=i??m,g=s?.includes(h)??!1,_=a??d??!1,[v,y]=l.useState(!0),b={headerId:`${m}-header`,panelId:`${m}-panel`,isOpen:g,disabled:_,keepMounted:f,hiddenUntilFound:p,isPanelPresent:v,setPanelPresent:y,setOpen:e=>c?.(h,e),toggle:()=>u?.(h)};return(0,q.jsx)(Kn.Provider,{value:b,children:(0,q.jsx)(n,{ref:t,className:G(Xn.root,r),"data-component":`Accordion.Item`,"data-value":h,"data-open":g,"data-disabled":_,...o})})}Zn.displayName=`Accordion.Item`;var Qn=K(Zn);const $n=!!(typeof window<`u`&&window.document&&window.document.createElement),er=l.version.split(`.`),tr=parseInt(er[0],10),nr=/^0\.0\.0-experimental-[a-f0-9]{8}-\d{8}$/.test(l.version),rr=$n?l.useLayoutEffect:l.useEffect,ir=tr>=19||nr,ar=(e,t)=>(0,l.useCallback)(n=>{let r=or(e,n),i=or(t,n);if(ir)return()=>{r?r():or(e,null),i?i():or(t,null)}},[e,t]),or=(e,t)=>{if(typeof e==`function`)return e(t);e&&(e.current=t)},sr={root:`accordion-panel`};function cr(e,t){let{as:n=`div`,className:r,...i}=e,{headerId:a,panelId:o,isOpen:s,keepMounted:c,hiddenUntilFound:u,setOpen:d,setPanelPresent:f}=l.useContext(Kn),p=l.useRef(null),m=ar(t,p),h=(c??!0)||!!u||!!s;return rr(()=>(f?.(h),()=>f?.(!1)),[h,f]),rr(()=>{let e=p.current;!e||!s||e.style.setProperty(`--accordion-panel-height`,`${e.scrollHeight}px`)},[s]),rr(()=>{let e=p.current;!e||!u||s||e.setAttribute(`hidden`,`until-found`)},[u,s]),l.useEffect(()=>{let e=p.current;if(!e||!u)return;let t=()=>d?.(!0);return e.addEventListener(`beforematch`,t),()=>e.removeEventListener(`beforematch`,t)},[u,d]),h?(0,q.jsx)(n,{ref:m,id:o,hidden:!s,role:`region`,"aria-labelledby":a,className:G(sr.root,r),"data-component":`Accordion.Panel`,"data-open":!!s,...i}):null}cr.displayName=`Accordion.Panel`;var lr=K(cr);const ur=Object.assign(Mt,{Item:Qn,Header:Yn,Panel:lr}),dr=[`[disabled]`,`[hidden]`,`[inert]`,`[tabindex='-1']`],fr=[`a[href]`,`button`,`summary`,`select`,`input:not([type=hidden])`,`textarea`,`[tabindex='0']`,`audio[controls]`,`video[controls]`,`[contenteditable]`].map(e=>`${e}:not(${dr.join(`):not(`)})`).join(`, `),pr=e=>{if(e.matches(`[disabled], [hidden], [inert]`))return!0;let t=getComputedStyle(e);return t.display===`none`||t.visibility===`hidden`},mr=e=>!e||pr(e)?[]:Array.from(e.querySelectorAll(fr)).filter(e=>!pr(e)),hr=e=>mr(e).length>0,gr={vertical:{previous:`ArrowUp`,next:`ArrowDown`},horizontal:{previous:`ArrowLeft`,next:`ArrowRight`}},_r=({containerRef:e,direction:t=`vertical`,wrap:n=!1,disabled:r,focusableFilter:i})=>{(0,l.useEffect)(()=>{let a=e.current;if(!a||r)return;let{previous:o,next:s}=gr[t],c=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;let t=e.key===`End`,r=e.key===`Home`,c=e.key===s?1:e.key===o?-1:0;if(c===0&&!r&&!t)return;let l=mr(a).filter(e=>i?.(e)??!0);if(l.length===0)return;if(e.preventDefault(),r||t){l[r?0:l.length-1].focus();return}let u=l.indexOf(document.activeElement),d=u===-1?0:u+c;if(d>=0&&d<l.length){l[d].focus();return}n&&l[(d+l.length)%l.length].focus()};return a.addEventListener(`keydown`,c),()=>{a.removeEventListener(`keydown`,c)}},[e,t,n,r,i])},vr=(e,t)=>{let n=typeof e;if(n!==`object`&&n!==`function`&&e!==null)return!1;let r=e,i=r.__SLOT__??r.type?.__SLOT__;return t.__SLOT__?i===t.__SLOT__:!1},yr=(e,t)=>(t.__SLOT__&&(e.__SLOT__=t.__SLOT__),e),br=(e,t)=>{if(Array.isArray(t)){let[n,r]=t;return(e.type===n||vr(e,n))&&r(e.props)}return e.type===t||vr(e,t)},xr=(e,t)=>{let n=[],r=Object.keys(t),i=Object.values(t),a=r.length,o={};for(let e=0;e<a;e++)o[r[e]]=void 0;let s=0;return l.default.Children.forEach(e,e=>{if(!l.default.isValidElement(e)){n.push(e);return}if(s===a){n.push(e);return}let t=Sr(e,i,a);if(t===-1){n.push(e);return}let c=r[t];o[c]===void 0&&(o[c]=e,s++)}),[o,n]},Sr=(e,t,n)=>{for(let r=0;r<n;r++)if(br(e,t[r]))return r;return-1},Cr=W(`heading`,{variants:{size:{large:`text-title-large`,medium:`text-title-medium`,small:`text-title-small`}}});function wr(e,t){let{as:n=`h2`,className:r,size:i=`large`,...a}=e;return(0,q.jsx)(n,{ref:t,className:G(Cr({size:i}),r),"data-component":`Heading`,"data-size":i,...a})}wr.displayName=`Heading`;var Tr=K(wr);const Er=(0,l.createContext)({}),Dr={root:`action-list-heading`,hidden:`sr-only`};function Or(e,t){let{as:n,className:r,visuallyHidden:i=!1,id:a,...o}=e,{headingId:s}=l.useContext(Er);return(0,q.jsx)(Tr,{ref:t,as:n,id:a??s,className:G(Dr.root,i&&Dr.hidden,r),"data-component":`ActionList.Heading`,...o})}Or.displayName=`ActionList.Heading`;var kr=K(Or);const Ar=(0,l.createContext)({}),jr=W(`action-list`,{variants:{variant:{inset:`action-list-inset`,full:`action-list-full`},dividers:{true:`action-list-dividers`,false:``}}}),Mr={heading:kr},Nr=[`menu`,`menubar`,`listbox`];function Pr(e,t){let{as:n=`ul`,className:r,children:i,variant:a=`inset`,selectionVariant:o,showDividers:s=!1,disableFocusZone:c=!1,role:u,...d}=e,[f,p]=xr(i,Mr),m=Y(),{listRole:h,listLabel:g,listLabelledBy:_,selectionVariant:v,enableFocusZone:y}=l.useContext(Ar),b=u??h,x=o??v,S=f.heading?f.heading.props.id??m:_,C=l.useRef(null),w=ar(t,C),T=y??(b!==void 0&&!c&&Nr.includes(b));_r({containerRef:C,disabled:!T,wrap:b===`menu`});let E=l.useMemo(()=>({variant:a,selectionVariant:x,showDividers:s,role:b,headingId:m}),[a,x,s,b,m]);return(0,q.jsxs)(Er.Provider,{value:E,children:[f.heading,(0,q.jsx)(n,{ref:w,role:b,"aria-label":S?void 0:g,"aria-labelledby":S,className:G(jr({variant:a,dividers:s}),r),"data-component":`ActionList`,"data-variant":a,"data-dividers":s?``:void 0,...d,children:p})]})}Pr.displayName=`ActionList`;var Fr=K(Pr);const Ir=(0,l.createContext)({}),Lr={root:`action-list-description`,inline:`min-w-0 truncate`};function Rr(e){let{className:t,variant:n=`inline`,...r}=e,{blockDescriptionId:i,inlineDescriptionId:a}=l.useContext(Ir);return(0,q.jsx)(`span`,{id:n===`block`?i:a,className:G(Lr.root,n===`inline`&&Lr.inline,t),"data-component":`ActionList.Description`,"data-variant":n,...r})}Rr.displayName=`ActionList.Description`;const zr={root:`action-list-divider`};function Br(e){let{className:t,...n}=e;return(0,q.jsx)(`li`,{"aria-hidden":`true`,className:G(zr.root,t),"data-component":`ActionList.Divider`,...n})}Br.displayName=`ActionList.Divider`;const Vr=(0,l.createContext)({}),Hr={__SLOT__:Symbol(`ActionList.GroupHeading`)},Ur={heading:`action-list-group-heading-label`,auxiliary:`action-list-group-heading-auxiliary`},Wr=W(`action-list-group-heading`,{variants:{variant:{subtle:``,filled:`action-list-group-heading-filled`}}});function Gr(e){let{as:t,className:n,children:r,variant:i=`subtle`,auxiliaryText:a,...o}=e,{role:s}=l.useContext(Er),{groupHeadingId:c}=l.useContext(Vr),u=s!==void 0&&s!==`list`,d=t??`h3`;return(0,q.jsxs)(`div`,{className:G(Wr({variant:i})),"data-component":`ActionList.GroupHeading`,"data-variant":i,...u?{role:`presentation`,"aria-hidden":!0}:{},children:[u?(0,q.jsx)(`span`,{id:c,className:G(Ur.heading,n),...o,children:r}):(0,q.jsx)(d,{id:c,className:G(Ur.heading,n),...o,children:r}),a?(0,q.jsx)(`div`,{className:Ur.auxiliary,children:a}):null]})}Gr.displayName=`ActionList.GroupHeading`;const Kr=yr(Gr,Hr),qr={root:`action-list-group`,list:`action-list-group-items`},Jr={groupHeading:Kr};function Yr(e){let{className:t,children:n,selectionVariant:r,role:i,"aria-label":a,...o}=e,s=Y(),{role:c}=l.useContext(Er),[u,d]=xr(n,Jr),f=u.groupHeading?u.groupHeading.props.id??s:void 0,p=l.useMemo(()=>({selectionVariant:r,groupHeadingId:f}),[r,f]),m=c&&typeof u.groupHeading?.props.children==`string`?u.groupHeading.props.children:void 0;return(0,q.jsx)(`li`,{className:G(qr.root,t),"data-component":`ActionList.Group`,role:c?`none`:void 0,...o,children:(0,q.jsxs)(Vr.Provider,{value:p,children:[u.groupHeading,(0,q.jsx)(`ul`,{className:qr.list,role:i??(c?`group`:void 0),"aria-labelledby":c?void 0:f,"aria-label":a??m,children:d})]})})}Yr.displayName=`ActionList.Group`;const Xr={root:`spinner`,srOnly:`sr-only`},Zr=W(`motion-safe:animate-spin`,{variants:{size:{small:`spinner-small`,medium:`spinner-medium`,large:`spinner-large`}}});function Qr(e,t){let{as:n=`span`,size:r=`medium`,srText:i=`Loading`,className:a,"aria-label":o,...s}=e;return(0,q.jsxs)(n,{ref:t,role:`status`,"aria-label":o??void 0,className:G(Xr.root,a),"data-component":`Spinner`,...s,children:[(0,q.jsx)(It,{className:G(Zr({size:r})),"aria-hidden":`true`}),i!==null&&o===void 0?(0,q.jsx)(`span`,{className:Xr.srOnly,children:i}):null]})}Qr.displayName=`Spinner`;var $r=K(Qr);const ei={root:`action-list-visual`,muted:`action-list-visual-muted`,inherit:`action-list-visual-inherit`},ti=({className:e,...t})=>{let{variant:n,disabled:r,inactive:i}=l.useContext(Ir),a=n===`danger`||r||i;return(0,q.jsx)(`span`,{className:G(ei.root,a?ei.inherit:ei.muted,e),...t})};function ni(e){return(0,q.jsx)(ti,{"data-component":`ActionList.LeadingVisual`,...e})}ni.displayName=`ActionList.LeadingVisual`;function ri({children:e}){return(0,q.jsx)(q.Fragment,{children:e})}ri.displayName=`ActionList.SubItem`;const ii={srOnly:`sr-only`},ai=W(`counter-label`,{variants:{variant:{primary:`counter-label-primary`,secondary:`counter-label-secondary`}}});function oi(e,t){let{as:n=`span`,className:r,variant:i=`secondary`,children:a,...o}=e;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(n,{ref:t,"aria-hidden":`true`,className:G(ai({variant:i}),r),"data-component":`CounterLabel`,"data-variant":i,...o,children:a}),(0,q.jsxs)(`span`,{className:ii.srOnly,children:[`\xA0(`,a,`)`]})]})}oi.displayName=`CounterLabel`;var si=K(oi);const ci={base:`button`,disabled:`button-disabled`,block:`button-block`,size:{small:`button-small`,medium:``,large:`button-large`},variant:{default:{rest:`button-default`,disabled:`button-default-disabled`},primary:{rest:`button-primary`,disabled:`button-primary-disabled`},danger:{rest:`button-danger`,disabled:`button-danger-disabled`},invisible:{rest:`button-invisible`,disabled:`button-invisible-disabled`},link:{rest:`button-link`,disabled:`button-link-disabled`}},link:`button-link-shape`,linkUnderlines:`button-link-underlines`,inactive:`button-inactive`,inactiveLink:`button-inactive-link`,iconTone:{default:`button-icon-tone-default`,primary:``,danger:``,invisible:`button-icon-tone-invisible`,link:``},labelWrapRoot:`button-label-wrap`,labelWrapHeight:{small:`button-label-wrap-small`,medium:`button-label-wrap-medium`,large:`button-label-wrap-large`},labelWrapContent:{small:`button-label-wrap-content-small`,medium:`button-label-wrap-content-medium`,large:`button-label-wrap-content-large`},labelWrapLabel:`button-label-wrap-label`,iconOnlyCounter:{small:`button-icon-only-counter-small`,medium:`button-icon-only-counter-medium`,large:`button-icon-only-counter-large`},content:`button-content`,contentGap:{small:`button-content-gap-small`,medium:`button-content-gap-medium`,large:`button-content-gap-large`},align:{start:`justify-start`,center:`justify-center`},label:`button-label`,labelLineHeight:{small:`button-label-small`,medium:`button-label-medium`,large:`button-label-large`},labelHidden:`invisible`,visualBase:`button-visual`,visual:{default:`button-visual-default`,primary:`button-visual-primary`,danger:`button-visual-danger`,invisible:`button-visual-invisible`,link:`button-visual-link`},visualMuted:`button-visual-muted`,counter:{default:`button-counter-default`,primary:`button-counter-primary`,danger:`button-counter-danger`,invisible:`button-counter-invisible`,link:``},counterMuted:`button-counter-muted`,counterMutedDanger:`button-counter-muted-danger`,leadingVisual:`button-leading-visual`,trailingVisual:`button-trailing-visual`,trailingAction:`button-trailing-action`,loadingSpinner:`items-center justify-center`,standaloneSpinner:`button-standalone-spinner`,loadingWrapper:`inline-flex`,loadingWrapperBlock:`block`,srOnly:`sr-only`},li=(e,t,n,r)=>{let i=e;return(0,q.jsx)(`span`,{"data-component":t,className:G(ci.visualBase,n&&ci.loadingSpinner,r),children:n?(0,q.jsx)($r,{size:`small`,srText:null,role:`presentation`}):l.isValidElement(e)?e:(0,q.jsx)(i,{})})};function ui(e,t){let{as:n=`button`,className:r,children:i,icon:a,leadingVisual:o,trailingVisual:s,trailingAction:c,count:l,variant:u=`default`,size:d=`medium`,alignContent:f=`center`,block:p=!1,loading:m,loadingAnnouncement:h=`Loading`,inactive:g,labelWrap:_,disabled:v,id:y,onClick:b,"aria-describedby":x,"aria-labelledby":S,"aria-disabled":C,...w}=e,T=Y(y),E=`${T}-label`,D=`${T}-loading-announcement`,O=!!m,k=!!v||(C===!0||C===`true`)&&!O,A=!k&&!g,j=!!(o||s||c),M=O&&!j&&l===void 0,N=l!==void 0&&!!o&&!i,P=g?u===`link`?ci.inactiveLink:ci.inactive:ci.variant[u][k?`disabled`:`rest`],F=A?ci.visual[u]:ci.visualMuted,I=A?ci.counter[u]:u===`danger`?ci.counterMutedDanger:G(ci.counter[u],ci.counterMuted),L=(0,q.jsx)(n,{ref:t,className:G(ci.base,ci.size[d],u===`link`&&ci.link,u===`link`&&!j&&ci.linkUnderlines,P,a&&A&&ci.iconTone[u],k&&ci.disabled,p&&ci.block,_&&ci.labelWrapRoot,_&&ci.labelWrapHeight[d],N&&ci.iconOnlyCounter[d],r),"data-component":`Button`,"data-block":p?`block`:void 0,"data-inactive":g?``:void 0,"data-loading":O?`true`:void 0,"data-no-visuals":j?void 0:``,"data-size":d,"data-variant":u,"data-label-wrap":_?`true`:void 0,"data-has-count":l===void 0?void 0:`true`,"data-icon-only-counter":N?`true`:void 0,disabled:v,id:y,"aria-disabled":O?!0:C,"aria-describedby":O?[D,x].filter(Boolean).join(` `):x,"aria-labelledby":O&&i?[E,S].filter(Boolean).join(` `):S,onClick:O?void 0:b,...w,children:a?li(a,`icon`,O,``):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{"data-component":`buttonContent`,"data-align":f,className:G(ci.content,!M&&ci.contentGap[d],ci.align[f],_&&ci.labelWrapContent[d]),children:[M?li($r,`loadingSpinner`,!0,G(F,ci.standaloneSpinner)):null,o?li(o,`leadingVisual`,O,G(F,ci.leadingVisual)):null,i?(0,q.jsx)(`span`,{"data-component":`text`,id:O?E:void 0,className:G(ci.label,ci.labelLineHeight[d],_&&ci.labelWrapLabel,M&&ci.labelHidden),children:i}):null,l!==void 0&&!s?li((0,q.jsx)(si,{className:I,"data-component":`ButtonCounter`,children:l}),`trailingVisual`,O&&!o,ci.trailingVisual):s?li(s,`trailingVisual`,O&&!o,G(F,ci.trailingVisual)):null]}),c?li(c,`trailingAction`,O&&!o&&!s,G(F,ci.trailingAction)):null]})});return m===void 0?L:(0,q.jsxs)(`span`,{className:p?ci.loadingWrapperBlock:ci.loadingWrapper,"data-loading-wrapper":``,children:[L,(0,q.jsx)(`span`,{id:D,role:`status`,className:ci.srOnly,children:O?h:``})]})}ui.displayName=`ButtonBase`;var di=K(ui);function fi(e,t){let{as:n=`button`,type:r=`button`,...i}=e;return(0,q.jsx)(di,{ref:t,as:n,type:r,...i})}fi.displayName=`Button`;var pi=K(fi);const mi=W(`icon-button`,{variants:{size:{small:`icon-button-small`,medium:`icon-button-medium`,large:`icon-button-large`}}});function hi(e,t){let{as:n=`button`,className:r,size:i=`medium`,...a}=e;return(0,q.jsx)(di,{ref:t,as:n,type:`button`,size:i,"data-component":`IconButton`,className:G(mi({size:i}),r),...a})}hi.displayName=`IconButton`;var gi=K(hi);const _i={root:`action-list-trailing-action`,action:`action-list-trailing-action-button`};function vi(e,t){let{className:n,icon:r,label:i,...a}=e;return(0,q.jsx)(`span`,{className:_i.root,"data-component":`ActionList.TrailingAction`,children:r?(0,q.jsx)(gi,{ref:t,icon:r,"aria-label":i,variant:`invisible`,size:`small`,className:G(_i.action,n),...a}):(0,q.jsx)(pi,{ref:t,variant:`invisible`,size:`small`,className:G(_i.action,n),...a,children:i})})}vi.displayName=`ActionList.TrailingAction`;var yi=K(vi);function bi(e){let{trailingVisualId:t}=l.useContext(Ir);return(0,q.jsx)(ti,{id:t,"data-component":`ActionList.TrailingVisual`,...e})}bi.displayName=`ActionList.TrailingVisual`;const xi={unselected:`invisible`,checkmark:`action-list-selection-checkmark`,checkbox:`action-list-selection-checkbox`,checkboxSelected:`action-list-selection-checkbox-selected`},Si=({selected:e,className:t})=>{let{selectionVariant:n}=l.useContext(Er),{selectionVariant:r}=l.useContext(Vr),i=r===void 0?n:r;return i?i===`multiple`?(0,q.jsx)(ti,{className:t,"data-component":`ActionList.Selection`,children:(0,q.jsx)(`span`,{className:G(xi.checkbox,e&&xi.checkboxSelected),children:(0,q.jsx)(Zt,{className:e?void 0:xi.unselected})})}):(0,q.jsx)(ti,{className:t,"data-component":`ActionList.Selection`,children:(0,q.jsx)(Zt,{className:G(xi.checkmark,!e&&xi.unselected)})}):null},Ci={root:`action-list-item`,content:`action-list-item-content`,size:{medium:``,large:`action-list-item-content-large`},danger:`action-list-item-content-danger`,disabled:`action-list-item-content-disabled`,inactive:`action-list-item-content-inactive`,loading:`cursor-default`,active:`action-list-item-content-active`,main:`action-list-item-main`,labelWrap:`action-list-item-label-wrap`,labelWrapBlock:`flex-col gap-0`,label:`min-w-0`,inactiveWarning:`action-list-item-inactive-warning`,srOnly:`sr-only`},wi={leadingVisual:ni,trailingVisual:bi,trailingAction:yi,description:Rr,subItem:ri},Ti=[`option`,`menuitem`,`menuitemradio`,`menuitemcheckbox`],Ei=[`listbox`,`menu`,`list`];function Di(e,t){let{as:n,className:r,children:i,id:a,role:o,variant:s=`default`,size:c=`medium`,selected:u,active:d=!1,disabled:f=!1,loading:p=!1,inactiveText:m,onSelect:h,...g}=e,[_,v]=xr(i,wi),{container:y,afterSelect:b,selectionAttribute:x,defaultTrailingVisual:S}=l.useContext(Ar),{role:C,selectionVariant:w}=l.useContext(Er),{selectionVariant:T}=l.useContext(Vr),E=!!m,D=T===void 0?w:T||void 0,O;y===`ActionMenu`||C===`menu`?O=D===`single`?`menuitemradio`:D===`multiple`?`menuitemcheckbox`:`menuitem`:C===`listbox`&&D&&(O=`option`);let k=o??O,A=x??(k===`menuitemradio`||k===`menuitemcheckbox`?`aria-checked`:k===`option`?`aria-selected`:void 0),j=C!==void 0&&Ei.includes(C)||E||k!==void 0&&Ti.includes(k),M=n??(j?`div`:`button`),N=n!==void 0||!j,P=!N||M!==`button`&&M!==`a`,F=y===`ActionMenu`||C===`menu`||C===`listbox`,I=!f&&!E&&!p,L=e=>{I&&(h?.(e),!e.defaultPrevented&&b?.(e))},ee=e=>{(e.key===` `||e.key===`Enter`)&&(e.key===` `&&e.preventDefault(),L(e))},R=Y(a),z=`${R}--label`,te=`${R}--inline-description`,ne=`${R}--block-description`,B=`${R}--trailing-visual`,re=E?`${R}--inactive-warning`:void 0,V=_.description?.props.variant??`inline`,ie=_.trailingVisual??(S?(0,q.jsx)(bi,{children:S}):null),ae=p&&!E,oe=(0,q.jsx)($r,{size:`small`,srText:null}),se=ae&&_.leadingVisual?(0,q.jsx)(ni,{children:oe}):_.leadingVisual,ce=ae&&!_.leadingVisual?(0,q.jsx)(bi,{children:oe}):ie,le=[_.description?V===`block`?ne:te:void 0,re].filter(Boolean),ue={id:R,role:k,tabIndex:0,onClick:L,onKeyDown:P?ee:void 0,"aria-disabled":f||E||p?!0:void 0,"aria-labelledby":[z,_.trailingVisual?B:void 0].filter(Boolean).join(` `),"aria-describedby":le.length>0?le.join(` `):void 0,...A&&D?{[A]:!!u}:{}},de=!F&&!E&&!p?_.trailingAction:null,fe=l.useMemo(()=>({variant:s,size:c,disabled:f,inactive:E,inlineDescriptionId:te,blockDescriptionId:ne,trailingVisualId:B}),[s,c,f,E,te,ne,B]),pe=G(Ci.content,Ci.size[c],s===`danger`&&!f&&!E&&Ci.danger,d&&Ci.active,p&&Ci.loading,E&&Ci.inactive,f&&Ci.disabled);return(0,q.jsx)(Ir.Provider,{value:fe,children:(0,q.jsxs)(`li`,{ref:N?null:t,className:G(Ci.root,r),"data-component":`ActionList.Item`,"data-variant":s===`danger`?s:void 0,"data-active":d?``:void 0,"data-inactive":E?``:void 0,"data-disabled":f?``:void 0,"data-loading":p?``:void 0,"data-has-description":_.description?``:void 0,"data-has-trailing-action":de?``:void 0,"data-has-sub-item":_.subItem?``:void 0,...N?{role:k?`none`:void 0}:{...ue,...g},children:[(0,q.jsxs)(M,{ref:N?t:void 0,className:pe,"data-component":`ActionList.Item.Content`,"data-size":c,...N?{...ue,...g,...M===`button`?{type:`button`}:{}}:{},children:[(0,q.jsx)(Si,{selected:u}),se,(0,q.jsxs)(`span`,{className:Ci.main,children:[(0,q.jsxs)(`span`,{className:G(Ci.labelWrap,V===`block`&&Ci.labelWrapBlock),children:[(0,q.jsxs)(`span`,{id:z,className:Ci.label,"data-component":`ActionList.Item.Label`,children:[v,ae?(0,q.jsx)(`span`,{className:Ci.srOnly,children:`Loading`}):null]}),_.description]}),ce]})]}),E?(0,q.jsx)(`span`,{id:re,className:Ci.inactiveWarning,children:m}):null,de,_.subItem]})})}Di.displayName=`ActionList.Item`;var Oi=K(Di);function ki(e,t){let{as:n,...r}=e;return(0,q.jsx)(Oi,{ref:t,as:n??`a`,...r})}ki.displayName=`ActionList.LinkItem`;var Ai=K(ki);const ji=Object.assign(Fr,{Item:Oi,LinkItem:Ai,Group:Yr,GroupHeading:Kr,Heading:kr,Description:Rr,Divider:Br,LeadingVisual:ni,TrailingVisual:bi,TrailingAction:yi,SubItem:ri}),Mi=(0,l.createContext)(void 0);function Ni(e){let{children:t,className:n,onClick:r,onKeyDown:i,...a}=e,o=l.useContext(Mi),s=l.useContext(Ar),c=!!o?.isSubmenu,u=o?.onOpen,d=l.useMemo(()=>c?{...s,defaultTrailingVisual:(0,q.jsx)(en,{}),afterSelect:()=>u?.()}:s,[c,u,s]);if(!l.isValidElement(t))return null;let f=t.props,p=e=>{f.onClick?.(e),r?.(e)},m=e=>{f.onKeyDown?.(e),c&&e.key===`ArrowRight`&&!e.defaultPrevented&&(u?.(),e.preventDefault()),i?.(e)};return(0,q.jsx)(Ar.Provider,{value:d,children:l.cloneElement(t,{...a,ref:o?.anchorRef,className:G(n,f.className),onClick:p,onKeyDown:m})})}Ni.displayName=`ActionMenu.Anchor`;function Pi(e){return(0,q.jsx)(Ni,{children:(0,q.jsx)(pi,{type:`button`,trailingAction:Qt,"data-component":`ActionMenu.Button`,...e})})}Pi.displayName=`ActionMenu.Button`;const Fi=e=>l.isValidElement(e)&&(e.type===Ni||e.type===Pi),Ii=(e,t)=>({id:e.id,"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],tabIndex:e.tabIndex,onClick:n=>{t.onClick?.(n),e.onClick(n)},onKeyDown:n=>{t.onKeyDown?.(n),e.onKeyDown(n)}});function Li(e){let{children:t,open:n,onOpenChange:r,anchorRef:i}=e,a=l.useContext(Mi),o=l.useRef(null),s=i??o,c=n!==void 0,[u,d]=l.useState(!1),f=c?n:u,p=l.useCallback(e=>{d(e),r?.(e)},[r]),m=l.useCallback(()=>p(!0),[p]),h=a?.onClose,g=l.useCallback(e=>{p(!1),(e===`item-select`||e===`tab`)&&h?.(e)},[p,h]),_=l.Children.toArray(t),v=_.find(Fi),y=Y(v?.props.id),b=v?e=>l.cloneElement(v,Ii(e,v.props)):null,x=a!==void 0,S=l.useMemo(()=>({anchorRef:s,renderAnchor:b,anchorId:y,open:f,onOpen:m,onClose:g,isSubmenu:x}),[s,b,y,f,m,g,x]);return(0,q.jsx)(Mi.Provider,{value:S,children:_.filter(e=>e!==v)})}Li.displayName=`ActionMenu`;const Ri=[],zi=({containerRef:e,initialFocusRef:t,returnFocusRef:n,disabled:r})=>{(0,l.useEffect)(()=>{let i=e.current;if(!i||r)return;let a=document.activeElement;Ri.push(i),(t?.current??mr(i)[0]??i).focus();let o=e=>{if(e.key!==`Tab`||Ri[Ri.length-1]!==i)return;let t=mr(i);if(t.length===0){e.preventDefault();return}let n=t[0],r=t[t.length-1],a=document.activeElement;((e.shiftKey?a===n:a===r)||!i.contains(a))&&(e.preventDefault(),(e.shiftKey?r:n).focus())};return document.addEventListener(`keydown`,o),()=>{document.removeEventListener(`keydown`,o),Ri.splice(Ri.indexOf(i),1);let e=n?.current??a;e instanceof HTMLElement&&e.focus()}},[e,t,n,r])},Bi=[],Vi=e=>{if(!(e.key!==`Escape`||e.defaultPrevented)){for(let t of[...Bi].reverse())if(t(e),e.defaultPrevented)break}},Hi=e=>{let t=(0,l.useRef)(e);(0,l.useEffect)(()=>{t.current=e},[e]),(0,l.useEffect)(()=>{let e=e=>t.current(e);return Bi.length===0&&document.addEventListener(`keydown`,Vi),Bi.push(e),()=>{Bi.splice(Bi.indexOf(e),1),Bi.length===0&&document.removeEventListener(`keydown`,Vi)}},[])},Ui=(e,t)=>{if(t!=null)return Object.fromEntries(typeof t==`object`?Object.entries(t).map(([t,n])=>Wi(`data-${e}-${t}`,n)):[Wi(`data-${e}`,t)])},Wi=(e,t)=>[e,t],Gi=(0,l.createContext)({}),Ki=`__baseUiPortalRoot__`,qi=`__default__`,Ji={root:`portal-root`},Yi={},Xi=(e,t=qi)=>{Yi[t]=e},Zi=()=>{let e=Yi[qi];if(e&&document.body.contains(e))return;let t=document.getElementById(Ki);t||(t=document.createElement(`div`),t.setAttribute(`id`,Ki),t.className=Ji.root,(document.querySelector(`[data-portal-root]`)??document.body).appendChild(t)),Xi(t)},Qi=e=>Yi[e],$i={root:`portal`};function ea({children:e,onMount:t,containerName:n}){let{portalContainerName:r}=l.useContext(Gi),i=l.useRef(null);if(!i.current){let e=document.createElement(`div`);e.setAttribute(`data-component`,`Portal`),e.className=$i.root,i.current=e}let a=i.current;return rr(()=>{let e=n??r;e===void 0&&(e=qi,Zi());let i=Qi(e);if(!i)throw Error(`Portal container '${e}' is not yet registered. Register it with registerPortalRoot before use.`);return i.appendChild(a),t?.(),()=>{i.removeChild(a)}},[a,n,r]),(0,d.createPortal)(e,a)}ea.displayName=`Portal`;const ta={"outside-top":`outside-bottom`,"outside-bottom":`outside-top`,"outside-left":`outside-right`,"outside-right":`outside-left`},na=e=>e===`outside-top`||e===`outside-bottom`,ra=(e,t,n,r)=>e===`outside-top`?t.top-n.height-r:e===`outside-bottom`?t.bottom+r:e===`outside-left`?t.left-n.width-r:t.right+r,ia=(e,t,n,r,i)=>e===`start`?t+i:e===`end`?t+n-r-i:t+(n-r)/2+i,aa=(e,t,{side:n,align:r,anchorOffset:i=4,alignmentOffset:a=0})=>{let o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),c=window.innerWidth,l=window.innerHeight,u=n,d=ra(u,o,s,i),f=na(u)?s.height:s.width,p=na(u)?l:c;if(d<0||d+f>p){let e=ra(ta[n],o,s,i);e>=0&&e+f<=p&&(u=ta[n],d=e)}let m=na(u),h=m?o.left:o.top,g=m?o.width:o.height,_=m?s.width:s.height,v=m?c:l,y=r,b=ia(r,h,g,_,a);return b<0?(y=`start`,b=ia(y,h,g,_,a)):b+_>v&&(y=`end`,b=ia(y,h,g,_,a)),b=Math.max(0,Math.min(b,v-_)),{top:m?d:b,left:m?b:d,anchorSide:u,anchorAlign:y}},oa={closeButtonContainer:`anchored-overlay-close-button-container`,closeButton:`anchored-overlay-close-button`},sa=W([`anchored-overlay`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2 motion-safe:data-[side=outside-right]:slide-in-from-left-2 motion-safe:data-[side=outside-left]:slide-in-from-right-2`],{variants:{width:{xsmall:`anchored-overlay-width-xsmall`,small:`anchored-overlay-width-small`,medium:`anchored-overlay-width-medium`,large:`anchored-overlay-width-large`,xlarge:`anchored-overlay-width-xlarge`,auto:`anchored-overlay-width-auto`},height:{small:`anchored-overlay-height-small`,medium:`anchored-overlay-height-medium`,large:`anchored-overlay-height-large`,xlarge:`anchored-overlay-height-xlarge`,auto:`anchored-overlay-height-auto`},reflow:{true:`anchored-overlay-reflow`,false:``},fullscreen:{true:`anchored-overlay-fullscreen`,false:``},unplaced:{true:`invisible`,false:``}}}),ca={regular:`anchored`,narrow:`anchored`},la=[`ArrowDown`,`ArrowUp`,` `,`Enter`],ua=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign;function da(e){let{renderAnchor:t,anchorRef:n,anchorId:r,children:i,open:a,onOpen:o,onClose:s,side:c=`outside-bottom`,align:u=`start`,anchorOffset:d,alignmentOffset:f,width:p=`auto`,height:m=`auto`,overlayProps:h,focusTrapSettings:g,preventOverflow:_=!0,variant:v=ca,displayCloseButton:y=!0,closeButtonProps:b,onPositionChange:x,className:S}=e,{ref:C,className:w,style:T,portalContainerName:E,...D}=h??{},{className:O,"aria-label":k,...A}=b??{},j=l.useRef(null),M=n??j,N=Y(r),P=l.useRef(null),F=ar(C,P),I=l.useRef(null),[L,ee]=l.useState(null),R=l.useCallback(()=>{let e=M.current,t=P.current;if(!e||!t)return;let n=aa(t,e,{side:c,align:u,anchorOffset:d,alignmentOffset:f});I.current&&ua(I.current,n)||(I.current=n,ee(n),x?.({position:n}))},[M,c,u,d,f,x]);rr(()=>{if(!a){I.current=null,ee(null);return}R();let e=new ResizeObserver(R);return P.current&&e.observe(P.current),window.addEventListener(`resize`,R),window.addEventListener(`scroll`,R,!0),()=>{e.disconnect(),window.removeEventListener(`resize`,R),window.removeEventListener(`scroll`,R,!0)}},[a,R]),zi({containerRef:P,returnFocusRef:M,...g,disabled:!a||!L||!!g?.disabled}),Hi(e=>{a&&(e.preventDefault(),s?.(`escape`))}),l.useEffect(()=>{if(!a)return;let e=e=>{let{target:t}=e;t instanceof Node&&(P.current?.contains(t)||M.current?.contains(t)||s?.(`click-outside`))};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[M,a,s]);let z=e=>{e.defaultPrevented||e.button!==0||(a?s?.(`anchor-click`):o?.(`anchor-click`))},te=e=>{e.defaultPrevented||a||!la.includes(e.key)||(o?.(`anchor-key-press`,e),e.preventDefault())},ne=v.narrow===`fullscreen`,B=!!s&&ne&&y;return(0,q.jsxs)(q.Fragment,{children:[t?t({ref:M,id:N,"aria-haspopup":`true`,"aria-expanded":a,tabIndex:0,onClick:z,onKeyDown:te}):null,a?(0,q.jsx)(ea,{containerName:E,children:(0,q.jsxs)(`div`,{ref:F,tabIndex:-1,className:G(sa({width:p,height:m,reflow:!_,fullscreen:ne,unplaced:!L}),S,w),style:{...T,"--anchored-overlay-top":`${L?.top??0}px`,"--anchored-overlay-left":`${L?.left??0}px`},"data-component":`AnchoredOverlay`,"data-side":L?.anchorSide??c,"data-align":L?.anchorAlign??u,"data-width":p,"data-height":m,"data-visibility":L?`visible`:`hidden`,...Ui(`variant`,v),...D,children:[B?(0,q.jsx)(`div`,{className:oa.closeButtonContainer,children:(0,q.jsx)(gi,{icon:un,variant:`invisible`,"aria-label":k??`Close`,onClick:()=>s?.(`close-button`),className:G(oa.closeButton,O),"data-component":`AnchoredOverlay.CloseButton`,...A})}):null,i]})}):null]})}da.displayName=`AnchoredOverlay`;const fa={container:`action-menu-overlay`};function pa(e){let{children:t,align:n=`start`,side:r,className:i,returnFocusRef:a,"aria-labelledby":o,...s}=e,c=l.useContext(Mi),u=!!c?.isSubmenu,d=c?.onClose,f=l.useCallback(e=>d?.(e),[d]),p=e=>{if(!e.defaultPrevented){if(e.key===`Tab`){d?.(`tab`);return}u&&e.key===`ArrowLeft`&&(d?.(`arrow-left`),e.preventDefault())}},m=l.useMemo(()=>({container:`ActionMenu`,listRole:`menu`,listLabelledBy:o??c?.anchorId,selectionAttribute:`aria-checked`,afterSelect:()=>d?.(`item-select`)}),[o,c?.anchorId,d]);return c?(0,q.jsx)(da,{anchorRef:c.anchorRef,renderAnchor:c.renderAnchor,anchorId:c.anchorId,open:c.open,onOpen:c.onOpen,onClose:f,align:n,side:r??(u?`outside-right`:`outside-bottom`),className:i,focusTrapSettings:a?{returnFocusRef:a}:void 0,...s,children:(0,q.jsx)(`div`,{className:fa.container,onKeyDown:p,"data-component":`ActionMenu.Overlay`,children:(0,q.jsx)(Ar.Provider,{value:m,children:t})})}):null}pa.displayName=`ActionMenu.Overlay`;const ma=Object.assign(Li,{Anchor:Ni,Button:Pi,Overlay:pa,Divider:Br}),ha=(0,l.createContext)(null);function ga({children:e,rootRef:t}){let n=l.useRef(new Map),r=l.useRef(new Set),i=l.useRef(null),a=l.useRef(null),o=l.useCallback(()=>{if(typeof IntersectionObserver>`u`)return null;let e=t.current;return e?i.current&&a.current===e?i.current:(i.current?.disconnect(),r.current.clear(),i.current=new IntersectionObserver(e=>{for(let t of e){let e=n.current.get(t.target);if(!e)continue;let r=t.intersectionRatio<1;for(let t of e)t(r)}},{root:e,threshold:1}),a.current=e,i.current):null},[t]),s=l.useCallback(()=>{let e=o();if(e)for(let t of n.current.keys())r.current.has(t)||(e.observe(t),r.current.add(t))},[o]),c=l.useCallback((e,t)=>{let a=n.current.get(e);return a||(a=new Set,n.current.set(e,a)),a.add(t),s(),()=>{let a=n.current.get(e);a&&(a.delete(t),a.size===0&&(n.current.delete(e),r.current.delete(e),i.current?.unobserve(e)))}},[s]);return rr(()=>{s()}),l.useEffect(()=>()=>{i.current?.disconnect(),i.current=null,a.current=null,r.current.clear(),n.current.clear()},[]),(0,q.jsx)(ha.Provider,{value:c,children:e})}ga.displayName=`OverflowObserverProvider`;const _a=()=>(0,l.useContext)(ha),va=({ref:e,rootRef:t,disabled:n})=>{let[r,i]=(0,l.useState)(!1),a=_a();return(0,l.useEffect)(()=>{let r=e.current;if(!r||n){i(!1);return}if(a)return a(r,i);let o=t?.current;if(!o){i(!1);return}let s=new IntersectionObserver(e=>{for(let t of e)i(t.intersectionRatio<1)},{root:o,threshold:1});return s.observe(r),()=>{s.disconnect()}},[e,t,n,a]),r},ya=(0,l.createContext)({size:`medium`}),ba=(0,l.createContext)({}),xa={current:null},Sa=e=>{let{size:t,rootRef:n,setOverflowing:r}=l.useContext(ya),{index:i,inGroup:a}=l.useContext(ba),o=va({ref:e,rootRef:n??xa,disabled:a});return l.useEffect(()=>{i!==void 0&&r?.(i,o)},[i,o,r]),{size:t,isOverflowing:o}},Ca={root:`action-bar-divider`,overflowing:`invisible`};function wa(e){let{className:t,...n}=e,r=l.useRef(null),{isOverflowing:i}=Sa(r);return(0,q.jsx)(`div`,{ref:r,"aria-hidden":`true`,className:G(Ca.root,i&&Ca.overflowing,t),"data-component":`ActionBar.Divider`,"data-overflowing":i?``:void 0,...n})}wa.displayName=`ActionBar.Divider`;const Ta={root:`action-bar-group`,overflowing:`invisible`},Ea={inGroup:!0};function Da(e){let{className:t,children:n,...r}=e,i=l.useRef(null),{isOverflowing:a}=Sa(i);return(0,q.jsx)(`div`,{ref:i,className:G(Ta.root,a&&Ta.overflowing,t),"data-component":`ActionBar.Group`,"data-overflowing":a?``:void 0,...r,children:(0,q.jsx)(ba.Provider,{value:Ea,children:n})})}Da.displayName=`ActionBar.Group`;const Oa={overflowing:`invisible`};function ka(e,t){let{className:n,...r}=e,i=l.useRef(null),a=ar(t,i),{size:o,isOverflowing:s}=Sa(i);return(0,q.jsx)(gi,{ref:a,size:o,variant:`invisible`,className:G(s&&Oa.overflowing,n),"data-component":`ActionBar.IconButton`,"data-overflowing":s?``:void 0,...r})}ka.displayName=`ActionBar.IconButton`;var Aa=K(ka);const ja=e=>typeof e==`string`?(0,q.jsx)(`span`,{children:e}):l.isValidElement(e)?e:(0,q.jsx)(e,{}),Ma=({items:e})=>(0,q.jsx)(q.Fragment,{children:e.map((e,t)=>{if(e.type===`divider`)return(0,q.jsx)(ji.Divider,{},t);let{label:n,disabled:r,variant:i,leadingVisual:a,trailingVisual:o,onClick:s}=e,c=(0,q.jsxs)(q.Fragment,{children:[a?(0,q.jsx)(ji.LeadingVisual,{children:ja(a)}):null,n,o?(0,q.jsx)(ji.TrailingVisual,{children:ja(o)}):null]});return e.items&&e.items.length>0?(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(ji.Item,{disabled:r,variant:i,children:c})}),(0,q.jsx)(ma.Overlay,{children:(0,q.jsx)(ji,{children:(0,q.jsx)(Ma,{items:e.items})})})]},t):(0,q.jsx)(ji.Item,{onSelect:s,disabled:r,variant:i,children:c},t)})}),Na={overflowing:`invisible`};function Pa(e,t){let{className:n,icon:r,items:i,returnFocusRef:a,overflowIcon:o,...s}=e,c=l.useRef(null),u=ar(t,c),{size:d,isOverflowing:f}=Sa(c);return(0,q.jsxs)(ma,{anchorRef:c,children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(gi,{ref:u,icon:r,size:d,variant:`invisible`,className:G(f&&Na.overflowing,n),"data-component":`ActionBar.Menu`,"data-overflowing":f?``:void 0,...s})}),(0,q.jsx)(ma.Overlay,{returnFocusRef:a,children:(0,q.jsx)(ji,{children:(0,q.jsx)(Ma,{items:i})})})]})}Pa.displayName=`ActionBar.Menu`;var Fa=K(Pa);const Ia={size:{small:`action-bar-size-small`,medium:`action-bar-size-medium`,large:`action-bar-size-large`},spacer:`shrink-0`,moreButtonEmpty:`invisible`},La=W(`action-bar`,{variants:{flush:{true:``,false:`action-bar-inset`}}}),Ra=W(`action-bar-toolbar`,{variants:{size:Ia.size}}),za=W(`action-bar-items`,{variants:{size:Ia.size,gap:{none:`action-bar-gap-none`,condensed:`action-bar-gap-condensed`}}}),Ba=new Set,Va=e=>l.isValidElement(e)?e:(0,q.jsx)(e,{}),Ha=(e,t)=>{let n=e.props;if(e.type===wa)return(0,q.jsx)(ji.Divider,{},t);if(e.type===Da)return l.Children.toArray(n.children).filter(e=>l.isValidElement(e)).map((e,n)=>Ha(e,`${t}-${n}`));if(e.type===Fa){let e=n.overflowIcon??n.icon;return(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsxs)(ji.Item,{children:[e?(0,q.jsx)(ji.LeadingVisual,{children:Va(e)}):null,n[`aria-label`]]})}),(0,q.jsx)(ma.Overlay,{returnFocusRef:n.returnFocusRef,children:(0,q.jsx)(ji,{children:(0,q.jsx)(Ma,{items:n.items})})})]},t)}let r=e.type===Aa?n.icon:n.leadingVisual,i=e.type===Aa?n[`aria-label`]:n.children;return(0,q.jsxs)(ji.Item,{onSelect:n.onClick,disabled:n.disabled,children:[r?(0,q.jsx)(ji.LeadingVisual,{children:Va(r)}):null,i]},t)};function Ua(e){let{className:t,children:n,size:r=`medium`,flush:i=!1,gap:a=`condensed`,"aria-label":o,"aria-labelledby":s}=e,c=l.useRef(null),u=l.useRef(null),[d,f]=l.useState(Ba),p=l.useCallback((e,t)=>{f(n=>{if(n.has(e)===t)return n;let r=new Set(n);return t?r.add(e):r.delete(e),r})},[]);_r({containerRef:c,direction:`horizontal`,wrap:!0});let m=l.useMemo(()=>({size:r,rootRef:u,setOverflowing:p}),[r,p]),h=l.Children.toArray(n),g=h.length,_=l.useMemo(()=>Array.from({length:g},(e,t)=>({index:t})),[g]),v=h.map((e,t)=>d.has(t)&&l.isValidElement(e)?Ha(e,t):null).filter(Boolean);return(0,q.jsx)(ya.Provider,{value:m,children:(0,q.jsx)(`div`,{className:G(La({flush:i}),t),"data-component":`ActionBar`,"data-flush":i?``:void 0,children:(0,q.jsxs)(`div`,{ref:c,role:`toolbar`,"aria-label":o,"aria-labelledby":s,className:G(Ra({size:r})),"data-size":r,"data-gap":a,"data-has-overflow":v.length>0?``:void 0,children:[(0,q.jsxs)(`div`,{ref:u,className:G(za({size:r,gap:a})),children:[(0,q.jsx)(`div`,{className:Ia.spacer}),h.map((e,t)=>(0,q.jsx)(ba.Provider,{value:_[t],children:e},t))]}),(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(gi,{icon:Cn,"aria-label":`More items`,size:r,variant:`invisible`,className:v.length>0?void 0:Ia.moreButtonEmpty,"data-component":`ActionBar.MoreButton`})}),(0,q.jsx)(ma.Overlay,{children:(0,q.jsx)(ji,{children:v})})]})]})})})}Ua.displayName=`ActionBar`;const Wa={overflowing:`invisible`};function Ga(e,t){let{className:n,...r}=e,i=l.useRef(null),a=ar(t,i),{size:o,isOverflowing:s}=Sa(i);return(0,q.jsx)(pi,{ref:a,size:o,variant:`invisible`,className:G(s&&Wa.overflowing,n),"data-component":`ActionBar.Button`,"data-overflowing":s?``:void 0,...r})}Ga.displayName=`ActionBar.Button`;var Ka=K(Ga);const qa=Object.assign(Ua,{Button:Ka,IconButton:Aa,Divider:wa,Group:Da,Menu:Fa}),Ja=W(`alert`,{variants:{variant:{default:`alert-default`,success:`alert-success`,warning:`alert-warning`,danger:`alert-danger`}}});function Ya(e,t){let{as:n=`div`,className:r,variant:i=`default`,...a}=e;return(0,q.jsx)(n,{ref:t,className:G(Ja({variant:i}),r),"data-component":`Alert`,"data-variant":i,...a})}Ya.displayName=`Alert`;var Xa=K(Ya);const Za={root:`aspect-ratio`};function Qa(e,t){let{as:n=`div`,className:r,ratio:i=1,style:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Za.root,r),style:{...a,"--aspect-ratio":i},"data-component":`AspectRatio`,...o})}Qa.displayName=`AspectRatio`;var $a=K(Qa);const eo=(0,l.createContext)({}),to=W(`attachment`,{variants:{state:{idle:`attachment-state-idle`,uploading:``,processing:``,error:`attachment-state-error`,done:``},size:{small:`attachment-size-small`,medium:`attachment-size-medium`,large:`attachment-size-large`},orientation:{horizontal:`attachment-horizontal`,vertical:`attachment-vertical`}}});function no(e,t){let{as:n=`div`,className:r,state:i=`done`,size:a=`medium`,orientation:o=`horizontal`,...s}=e,c=l.useMemo(()=>({state:i,size:a,orientation:o}),[i,a,o]);return(0,q.jsx)(eo.Provider,{value:c,children:(0,q.jsx)(n,{ref:t,className:G(to({state:i,size:a,orientation:o}),r),"data-component":`Attachment`,"data-state":i,"data-size":a,"data-orientation":o,...s})})}no.displayName=`Attachment`;var ro=K(no);const io={root:`attachment-action`};function ao(e,t){let{className:n,variant:r=`invisible`,size:i=`small`,...a}=e,o=a;return(0,q.jsx)(gi,{ref:t,variant:r,size:i,className:G(io.root,n),"data-component":`Attachment.Action`,...o})}ao.displayName=`Attachment.Action`;var oo=K(ao);const so={root:`attachment-actions`};function co(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(so.root,n),"data-component":`Attachment.Actions`,...r})}co.displayName=`Attachment.Actions`;var lo=K(co);const uo={root:`attachment-content`};function fo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(uo.root,n),"data-component":`Attachment.Content`,...r})}fo.displayName=`Attachment.Content`;var po=K(fo);const mo={root:`attachment-description`};function ho(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(mo.root,n),"data-component":`Attachment.Description`,...r})}ho.displayName=`Attachment.Description`;var go=K(ho);const _o={root:`attachment-group`};function vo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(_o.root,n),"data-component":`Attachment.Group`,...r})}vo.displayName=`Attachment.Group`;var yo=K(vo);const bo=W(`attachment-media`,{variants:{variant:{icon:``,image:`attachment-media-image`}}});function xo(e,t){let{className:n,variant:r=`icon`,...i}=e;return(0,q.jsx)(`div`,{ref:t,className:G(bo({variant:r}),n),"data-component":`Attachment.Media`,"data-variant":r,...i})}xo.displayName=`Attachment.Media`;var So=K(xo);const Co={root:`attachment-title`};function wo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(Co.root,n),"data-component":`Attachment.Title`,...r})}wo.displayName=`Attachment.Title`;var To=K(wo);const Eo={root:`attachment-trigger`};function Do(e,t){let{as:n=`button`,className:r,type:i,...a}=e;return(0,q.jsx)(n,{ref:t,type:n===`button`?i??`button`:i,className:G(Eo.root,r),"data-component":`Attachment.Trigger`,...a})}Do.displayName=`Attachment.Trigger`;var Oo=K(Do);const ko=Object.assign(ro,{Group:yo,Media:So,Content:po,Title:To,Description:go,Actions:lo,Action:oo,Trigger:Oo}),Ao=(0,l.createContext)({}),jo=(0,l.createContext)({}),Mo=(0,l.createContext)({});function No({children:e,id:t}){let n=Y(t),r=l.useRef(null),i=l.useRef(null),[a,o]=l.useState(``),[s,c]=l.useState(``),[u,d]=l.useState(),[f,p]=l.useState(!1),m=l.useCallback(e=>{p(e),e||(d(void 0),c(``))},[]),h=l.useMemo(()=>({id:n,inputRef:r,scrollContainerRef:i,activeDescendantId:u,setActiveDescendantId:d,showMenu:f,setShowMenu:m,setInputValue:o,setAutocompleteSuggestion:c}),[n,u,f,m]),g=l.useMemo(()=>({inputValue:a,autocompleteSuggestion:s}),[a,s]),_=l.useDeferredValue(a),v=l.useMemo(()=>({deferredInputValue:_}),[_]);return(0,q.jsx)(Ao.Provider,{value:h,children:(0,q.jsx)(jo.Provider,{value:g,children:(0,q.jsx)(Mo.Provider,{value:v,children:e})})})}No.displayName=`Autocomplete`;const Po=W(`text`,{variants:{size:{large:`text-size-large`,medium:`text-size-medium`,small:`text-size-small`},weight:{light:`text-weight-light`,normal:`text-weight-normal`,medium:`text-weight-medium`,semibold:`text-weight-semibold`},whiteSpace:{pre:`whitespace-pre`,normal:`whitespace-normal`,nowrap:`whitespace-nowrap`,"pre-wrap":`whitespace-pre-wrap`,"pre-line":`whitespace-pre-line`}}});function Fo(e,t){let{as:n=`span`,className:r,size:i=`medium`,weight:a,whiteSpace:o,...s}=e;return(0,q.jsx)(n,{ref:t,className:G(Po({size:i,weight:a,whiteSpace:o}),r),"data-component":`Text`,"data-size":i,"data-weight":a,"data-white-space":o,...s})}Fo.displayName=`Text`;var Io=K(Fo);const Lo=(e,t)=>{let n=t-e;if(n>=0)return{count:n,isOverLimit:!1,message:`${n} ${n===1?`character`:`characters`} remaining`};let r=-n;return{count:r,isOverLimit:!0,message:`${r} ${r===1?`character`:`characters`} over`}},Ro={field:`input`,size:{small:`input-small`,medium:`input-medium`,large:`input-large`},focus:`input-focus`,focusTracked:`input-focus-tracked`,block:`input-block`,contrast:`input-contrast`,monospace:`input-monospace`,disabled:`input-disabled`,validation:{error:`input-error`,success:`input-success`},validationFocus:`input-validation-focus`,validationFocusTracked:`input-validation-focus-tracked`,leadingVisual:`input-leading-visual-padding`,leadingVisualLarge:`input-leading-visual-padding-wide`,trailingVisual:`input-trailing-visual-padding`,trailingVisualLarge:`input-trailing-visual-padding-wide`,input:`input-control`,inputPadStart:`input-control-pad-start`,inputPadStartWide:`input-control-pad-start-wide`,inputPadEnd:`input-control-pad-end`,inputPadEndWide:`input-control-pad-end-wide`,visual:`input-visual`,visualBox:`input-visual-box`,spinner:`input-spinner`,spinnerLeading:`input-spinner-leading`,spinnerHidden:`invisible`,spinnerVisible:`visible`,counter:`input-counter`,counterOverLimit:`input-counter-over-limit`,counterIcon:`input-counter-icon`,hidden:`sr-only`},zo=[`date`,`time`,`datetime-local`],Bo=e=>typeof e==`string`||!(0,f.isValidElementType)(e)?e:(0,q.jsx)(e,{}),Vo=({id:e,position:t,hasLoader:n,showLoader:r,children:i})=>{let a=t===`leading`?`TextInput.LeadingVisual`:`TextInput.TrailingVisual`;return n?(0,q.jsx)(`span`,{className:Ro.visual,"data-component":a,children:(0,q.jsxs)(`span`,{id:e,className:Ro.visualBox,children:[i?(0,q.jsx)(`span`,{className:r?Ro.spinnerHidden:Ro.spinnerVisible,children:i}):null,(0,q.jsx)($r,{srText:null,size:i?void 0:`small`,className:G(r?Ro.spinnerVisible:Ro.spinnerHidden,i&&Ro.spinner,i&&t===`leading`&&Ro.spinnerLeading)})]})}):(0,q.jsx)(`span`,{id:e,className:Ro.visual,"aria-hidden":`true`,"data-component":a,children:i})};function Ho(e,t){let{className:n,type:r=`text`,size:i=`medium`,block:a,contrast:o,monospace:s,disabled:c,required:u,validationStatus:d,leadingVisual:f,trailingVisual:p,trailingAction:m,loading:h,loaderPosition:g=`auto`,loaderText:_=`Loading`,characterLimit:v,value:y,defaultValue:b,onChange:x,onFocus:S,onBlur:C,"aria-describedby":w,...T}=e,E=l.useRef(null),D=ar(t,E),O=Y(),k=Y(),A=Y(),j=Y(),[M,N]=l.useState(!1),P=y!==void 0,[F,I]=l.useState(()=>b===void 0?0:String(b).length),L=P?String(y).length:F,ee=v?Lo(L,v):void 0,R=ee?.isOverLimit??!1,z=R?`error`:d,te=l.useRef(!1),[ne,B]=l.useState(``),re=ee?.message;l.useEffect(()=>{if(!te.current)return;let e=window.setTimeout(()=>{B(re??``)},500);return()=>{window.clearTimeout(e)}},[re]);let V=!!(h&&(g===`leading`||f&&g!==`trailing`)),ie=!!(h&&(g===`trailing`||g===`auto`&&!f)),ae=typeof h==`boolean`,oe=!!f||V,se=!!p||ie,ce=!!m,le=!!p||ae,ue=ce,de=i===`large`,fe=e=>{N(!0),S?.(e)},pe=e=>{N(!1),C?.(e)},me=e=>{te.current=!0,v&&!P&&I(e.target.value.length),x?.(e)},he=e=>{(e.target!==E.current||!zo.includes(r))&&E.current?.focus()},ge=[v?j:void 0,w,f?O:void 0,p?k:void 0,h?A:void 0].filter(Boolean).join(` `)||void 0;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{className:G(Ro.field,Ro.size[i],ue?M&&Ro.focusTracked:Ro.focus,a&&Ro.block,o&&Ro.contrast,s&&Ro.monospace,c&&Ro.disabled,z&&Ro.validation[z],z===`error`&&(ue?M&&Ro.validationFocusTracked:Ro.validationFocus),oe&&(de?Ro.leadingVisualLarge:Ro.leadingVisual),se&&!ce&&(de?Ro.trailingVisualLarge:Ro.trailingVisual),n),onClick:he,"aria-busy":h?!0:void 0,"data-component":`TextInput`,"data-size":i,"data-block":a,"data-contrast":o,"data-monospace":s,"data-disabled":c,"data-validation":z,"data-focused":M||void 0,"data-leading-visual":oe||void 0,"data-trailing-visual":se||void 0,"data-trailing-action":ce||void 0,children:[oe?(0,q.jsx)(Vo,{id:O,position:`leading`,hasLoader:ae,showLoader:V,children:f?Bo(f):null}):null,(0,q.jsx)(`input`,{ref:D,type:r,value:y,defaultValue:b,disabled:c,required:u,"aria-required":u?!0:void 0,"aria-invalid":z===`error`||void 0,"aria-describedby":ge,onChange:me,onFocus:fe,onBlur:pe,className:G(Ro.input,!oe&&(se||ce?Ro.inputPadStart:Ro.inputPadStartWide),!se&&!ce&&(oe?Ro.inputPadEnd:Ro.inputPadEndWide)),"data-component":`TextInput.Input`,...T}),h?(0,q.jsx)(`span`,{id:A,className:Ro.hidden,children:_}):null,le?(0,q.jsx)(Vo,{id:k,position:`trailing`,hasLoader:ae,showLoader:ie,children:p?Bo(p):null}):null,m]}),ee?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Ro.hidden,children:ne}),(0,q.jsxs)(`span`,{id:j,className:Ro.hidden,children:[`You can enter up to `,v,` `,v===1?`character`:`characters`]}),(0,q.jsxs)(Io,{"aria-hidden":`true`,size:`small`,className:G(Ro.counter,R&&Ro.counterOverLimit),"data-component":`TextInput.CharacterCount`,children:[R?(0,q.jsx)(fn,{className:Ro.counterIcon}):null,ee.message]})]}):null]})}Ho.displayName=`TextInput`;var Uo=K(Ho);const Wo={root:`input-action`,button:`input-action-button`};function Go(e,t){let{className:n,icon:r,...i}=e;return(0,q.jsx)(`span`,{className:Wo.root,"data-component":`TextInput.Action`,children:(0,q.jsx)(gi,{ref:t,type:`button`,variant:`invisible`,size:`small`,icon:r,className:G(Wo.button,n),...i})})}Go.displayName=`TextInput.Action`;var Ko=K(Go);const qo=Object.assign(Uo,{Action:Ko}),Jo=[`ArrowDown`,`ArrowUp`],Yo=[`Backspace`,`Delete`];function Xo(e,t){let{as:n=qo,className:r,openOnFocus:i=!1,value:a,onFocus:o,onBlur:s,onClick:c,onChange:u,onKeyDown:d,onKeyUp:f,...p}=e,{id:m,inputRef:h,activeDescendantId:g,showMenu:_,setShowMenu:v,setInputValue:y}=l.useContext(Ao),{inputValue:b=``,autocompleteSuggestion:x=``}=l.useContext(jo),S=ar(t,h),[C,w]=l.useState(!0);return l.useEffect(()=>{let e=h?.current;if(e){if(!x){e.value=b;return}!C||document.activeElement!==e||(e.value=x,x.toLowerCase().startsWith(b.toLowerCase())&&e.setSelectionRange(b.length,x.length))}},[x,b,h,C]),l.useEffect(()=>{a!==void 0&&y?.(String(a))},[a,y]),(0,q.jsx)(n,{ref:S,id:m,role:`combobox`,autoComplete:`off`,"aria-autocomplete":`both`,"aria-haspopup":`listbox`,"aria-expanded":!!_,"aria-controls":`${m}-listbox`,"aria-activedescendant":g,className:r,onFocus:e=>{o?.(e),i&&v?.(!0)},onBlur:e=>{s?.(e),v?.(!1)},onClick:e=>{c?.(e),i&&v?.(!0)},onChange:e=>{u?.(e),y?.(e.currentTarget.value),v?.(!0)},onKeyDown:e=>{if(d?.(e),!e.defaultPrevented){if(Yo.includes(e.key)&&w(!1),e.key===`Escape`){_?v?.(!1):e.currentTarget.value&&(y?.(``),e.currentTarget.value=``);return}!_&&!e.altKey&&Jo.includes(e.key)&&v?.(!0)}},onKeyUp:e=>{f?.(e),Yo.includes(e.key)&&w(!0)},"data-component":`Autocomplete.Input`,...p})}Xo.displayName=`Autocomplete.Input`;var Zo=K(Xo);const Qo={loading:`autocomplete-menu-loading`,emptyState:`autocomplete-menu-empty-state`,hidden:`sr-only`},$o=e=>t=>!!t.text?.toLowerCase().startsWith(e.toLowerCase()),es=e=>(t,n)=>e(t)===e(n)?0:e(t)?-1:1,ts=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),ns=e=>typeof e==`string`||!(0,f.isValidElementType)(e)?e:(0,q.jsx)(e,{});function rs(e){let{items:t,selectedItemIds:n=[],selectionVariant:r=`single`,filter:i,sortOnClose:a,emptyStateText:o=`No selectable options`,addNewItem:s,loading:c=!1,onOpenChange:u,onSelectedChange:d,customScrollContainerRef:f,"aria-labelledby":p,className:m}=e,{id:h,inputRef:g,scrollContainerRef:_,activeDescendantId:v,setActiveDescendantId:y,showMenu:b,setShowMenu:x,setInputValue:S,setAutocompleteSuggestion:C}=l.useContext(Ao),{deferredInputValue:w=``}=l.useContext(Mo),T=`${h}-listbox`,E=l.useCallback(e=>`${T}-${e}`,[T]),[D,O]=l.useState(()=>t.map(e=>e.id));l.useEffect(()=>{if(b)return;let e=t.map(e=>e.id).sort(a??es(e=>n.includes(e)));O(t=>ts(e,t)?t:e)},[b,t,n,a]);let k=l.useMemo(()=>new Map(D.map((e,t)=>[e,t])),[D]),A=l.useMemo(()=>t.filter(i??$o(w)).sort((e,t)=>(k.get(e.id)??2**53-1)-(k.get(t.id)??2**53-1)),[t,i,w,k]),j=l.useMemo(()=>s?[...A,s.item]:A,[A,s]),M=l.useMemo(()=>j.filter(e=>!e.disabled),[j]),N=M.findIndex(e=>E(e.id)===v),P=M[N],[F,I]=l.useState(!1),L=e=>{if(s&&e.id===s.item.id)s.onAdd(e);else{let i=r===`single`?[e.id]:n.includes(e.id)?n.filter(t=>t!==e.id):[...n,e.id];d?d(i.map(e=>t.find(t=>t.id===e)).filter(e=>e!==void 0)):r===`single`&&S?.(e.text??``)}if(r===`multiple`){S?.(``),C?.(``);return}x?.(!1)},ee=e=>{if(M.length===0)return;let t=(e+M.length)%M.length;I(!0),y?.(E(M[t].id))},R=e=>{let t=e.target.closest(`[role="option"]`);!t||t.id===v||M.some(e=>E(e.id)===t.id)&&(I(!1),y?.(t.id))},z=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;if(e.key===`Enter`){if(!P)return;e.preventDefault(),L(P);return}let t=e.key===`ArrowDown`?1:e.key===`ArrowUp`?-1:0;t!==0&&(e.preventDefault(),ee(N===-1?t===1?0:-1:N+t))},te=l.useRef(z);l.useEffect(()=>{te.current=z}),l.useEffect(()=>{let e=g?.current;if(!e||!b)return;let t=e=>te.current(e);return e.addEventListener(`keydown`,t),()=>{e.removeEventListener(`keydown`,t)}},[g,b]);let ne=P?.text??``,B=F&&!!P&&ne.toLowerCase().startsWith(w.toLowerCase())&&!n.includes(P.id);l.useEffect(()=>{C?.(B?ne:``)},[B,ne,C]),l.useEffect(()=>{if(!v||!F)return;let e=f?.current??_?.current,t=document.getElementById(v);if(!e||!t||!e.contains(t))return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();r.top<n.top?e.scrollTop-=n.top-r.top:r.bottom>n.bottom&&(e.scrollTop+=r.bottom-n.bottom)},[v,F,f,_]);let re=l.useRef(!1);l.useEffect(()=>{let e=!!b;re.current!==e&&(re.current=e,u?.(e))},[b,u]);let V=typeof o==`string`?o:`No options available`,ie=c?``:j.length===0?V:`${j.length} option${j.length===1?``:`s`} available.`,[ae,oe]=l.useState(``),se=l.useRef(``);l.useEffect(()=>{if(!b){se.current=``,oe(``);return}if(ie===se.current)return;se.current=ie;let e=window.setTimeout(()=>oe(ie),500);return()=>{window.clearTimeout(e)}},[b,ie]);let ce=l.useMemo(()=>({container:`Autocomplete`,listRole:`listbox`,listLabelledBy:p,selectionAttribute:`aria-selected`,selectionVariant:r,enableFocusZone:!1}),[p,r]);return(0,q.jsxs)(`div`,{className:G(m),onMouseDown:e=>e.preventDefault(),onMouseMove:R,"data-component":`Autocomplete.Menu`,"data-loading":c?``:void 0,children:[c?(0,q.jsx)(`div`,{className:Qo.loading,"data-component":`Autocomplete.Loading`,children:(0,q.jsx)($r,{})}):j.length===0?o?(0,q.jsx)(`div`,{className:Qo.emptyState,"data-component":`Autocomplete.EmptyState`,children:o}):null:(0,q.jsx)(Ar.Provider,{value:ce,children:(0,q.jsx)(ji,{id:T,children:j.map(e=>{let{id:t,text:r,description:i,descriptionVariant:a,leadingVisual:o,trailingVisual:c,children:l,...u}=e,d=s&&t===s.item.id?Pt:o;return(0,q.jsxs)(ji.Item,{id:E(t),tabIndex:-1,active:E(t)===v,selected:n.includes(t),onSelect:()=>L(e),"data-id":t,...u,children:[d?(0,q.jsx)(ji.LeadingVisual,{children:ns(d)}):null,l,r,i?(0,q.jsx)(ji.Description,{variant:a,children:i}):null,c?(0,q.jsx)(ji.TrailingVisual,{children:ns(c)}):null]},t)})})}),(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Qo.hidden,"data-component":`Autocomplete.Announcement`,children:ae})]})}rs.displayName=`Autocomplete.Menu`;const is={hidden:`sr-only`},as=W([`autocomplete-overlay`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2`],{variants:{width:{xsmall:`autocomplete-overlay-width-xsmall`,small:`autocomplete-overlay-width-small`,medium:`autocomplete-overlay-width-medium`,large:`autocomplete-overlay-width-large`,xlarge:`autocomplete-overlay-width-xlarge`,auto:`autocomplete-overlay-width-auto`,anchor:`autocomplete-overlay-width-anchor`},height:{small:`autocomplete-overlay-height-small`,medium:`autocomplete-overlay-height-medium`,large:`autocomplete-overlay-height-large`,xlarge:`autocomplete-overlay-height-xlarge`,auto:`autocomplete-overlay-height-auto`},maxHeight:{small:`autocomplete-overlay-max-height-small`,medium:`autocomplete-overlay-max-height-medium`,large:`autocomplete-overlay-max-height-large`,xlarge:`autocomplete-overlay-max-height-xlarge`},unplaced:{true:`invisible`,false:``}}}),os=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign&&e.anchorWidth===t.anchorWidth;function ss(e){let{menuAnchorRef:t,side:n=`outside-bottom`,align:r=`start`,width:i=`anchor`,height:a=`auto`,maxHeight:o=`medium`,portalContainerName:s,children:c,className:u,style:d,...f}=e,{inputRef:p,scrollContainerRef:m,showMenu:h,setShowMenu:g}=l.useContext(Ao),_=l.useRef(null),v=ar(m,_),y=l.useCallback(()=>{let e=p?.current??null;return t?.current??e?.closest(`[data-component="TextInput"]`)??e},[t,p]),b=l.useRef(null),[x,S]=l.useState(null),C=l.useCallback(()=>{let e=y(),t=_.current;if(!e||!t)return;let i={...aa(t,e,{side:n,align:r}),anchorWidth:e.getBoundingClientRect().width};b.current&&os(b.current,i)||(b.current=i,S(i))},[y,n,r]);return rr(()=>{if(!h){b.current=null,S(null);return}C();let e=new ResizeObserver(C),t=y();return _.current&&e.observe(_.current),t&&e.observe(t),window.addEventListener(`resize`,C),window.addEventListener(`scroll`,C,!0),()=>{e.disconnect(),window.removeEventListener(`resize`,C),window.removeEventListener(`scroll`,C,!0)}},[h,C,y]),l.useEffect(()=>{if(!h)return;let e=e=>{let{target:t}=e;t instanceof Node&&(_.current?.contains(t)||y()?.contains(t)||g?.(!1))};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[h,g,y]),(0,q.jsx)(ea,{containerName:s,children:(0,q.jsx)(`div`,{ref:v,"aria-hidden":h?void 0:`true`,className:G(h?as({width:i,height:a,maxHeight:o,unplaced:!x}):is.hidden,u),style:{...d,"--autocomplete-overlay-top":`${x?.top??0}px`,"--autocomplete-overlay-left":`${x?.left??0}px`,"--autocomplete-overlay-anchor-width":`${x?.anchorWidth??0}px`},"data-component":`Autocomplete.Overlay`,"data-open":h?``:void 0,"data-side":x?.anchorSide??n,"data-align":x?.anchorAlign??r,"data-width":i,"data-height":a,...f,children:c})})}ss.displayName=`Autocomplete.Overlay`;const cs=Object.assign(No,{Input:Zo,Menu:rs,Overlay:ss});(0,l.createContext)({});const ls=e=>typeof e==`object`&&Object.keys(e).some(e=>[`narrow`,`regular`,`wide`].includes(e)),us=(0,l.createContext)({}),ds=W(`avatar`,{variants:{shape:{circle:`avatar-circle`,square:`avatar-square`},responsive:{true:`avatar-responsive`,false:``}}});function fs(e,t){let{as:n=`span`,className:r,size:i=20,shape:a=`circle`,style:o,children:s,...c}=e,[u,d]=l.useState(`idle`),f=l.useMemo(()=>({status:u,setStatus:d}),[u]),p=ls(i),m={"--avatar-size-regular":`20px`};if(p)for(let[e,t]of Object.entries(i))t!==void 0&&(m[`--avatar-size-${e}`]=`${t}px`);else m[`--avatar-size-regular`]=`${i}px`;return(0,q.jsx)(us.Provider,{value:f,children:(0,q.jsx)(n,{ref:t,className:G(ds({shape:a,responsive:p}),r),style:{...o,...m},"data-component":`Avatar`,"data-responsive":p||void 0,"data-shape":a,"data-status":u,...c,children:s})})}fs.displayName=`Avatar`;var ps=K(fs);const ms=`en-US`,hs=(e,t)=>t?`${e}|${Object.entries(t).filter(([,e])=>e!==void 0).sort(([e],[t])=>e<t?-1:1).map(([e,t])=>`${e}=${String(t)}`).join(`,`)}`:e,gs=e=>{let t=new Map;return(n,r)=>{let i=hs(n,r),a=t.get(i);if(a)return a;let o=e(n,r);return t.set(i,o),o}},_s=new Set([`Adlm`,`Arab`,`Armi`,`Avst`,`Hebr`,`Mand`,`Mend`,`Nkoo`,`Rohg`,`Samr`,`Syrc`,`Thaa`]),vs=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),ys=e=>{try{return new Intl.Locale(e).maximize().script}catch{return}},bs=e=>{let t=ys(e);return t?_s.has(t):vs.has(e.split(`-`)[0].toLowerCase())},xs=e=>bs(e)?`rtl`:`ltr`,Ss=()=>{let e=typeof navigator>`u`?void 0:navigator.language;if(!e)return ms;try{return Intl.DateTimeFormat.supportedLocalesOf([e]),e}catch{return ms}},Cs=gs((e,t)=>new Intl.Collator(e,t)),ws=(e=ms,t={})=>Cs(e,t),Ts=RegExp(`\\p{P}`,`gu`),Es=gs((e,t={})=>{let n=Cs(e,{usage:`search`,...t}),r=e=>{let t=e.normalize(`NFC`);return n.resolvedOptions().ignorePunctuation?t.replace(Ts,``):t},i=(e,t)=>n.compare(e,t)===0;return{startsWith:(e,t)=>{if(t.length===0)return!0;let[n,a]=[r(e),r(t)];return i(n.slice(0,a.length),a)},endsWith:(e,t)=>{if(t.length===0)return!0;let[n,a]=[r(e),r(t)];return i(n.slice(-a.length),a)},contains:(e,t)=>{if(t.length===0)return!0;let[n,a]=[r(e),r(t)];for(let e=0;e+a.length<=n.length;e++)if(i(n.slice(e,e+a.length),a))return!0;return!1}}}),Ds=({locale:e,...t}={})=>Es(e??`en-US`,t),Os=gs((e,t)=>new Intl.NumberFormat(e,t)),ks=(e=ms,t={})=>Os(e,t),As=(e,t=ms,n={})=>Os(t,n).format(e),js=gs((e,t)=>new Intl.DateTimeFormat(e,t)),Ms=(e=ms,t={})=>js(e,t),Ns=[``,`kilo`,`mega`,`giga`,`tera`],Ps=[``,`kilo`,`mega`,`giga`,`tera`,`peta`],Fs=(e,t=ms,n={})=>{if(Number.isNaN(e))return``;if(e===0)return`0 B`;let{precision:r=3,unitSystem:i=`decimal`,unit:a=`byte`,unitDisplay:o=`short`}=n,s=i===`binary`?1024:1e3,c=a===`bit`?Ns:Ps,l=Math.abs(e),u=0;for(;l>=s&&u<c.length-1;)l/=s,u++;let d=parseFloat(l.toPrecision(r));return As(e<0?-d:d,t,{style:`unit`,unit:c[u]+a,unitDisplay:o})},Is=(0,l.createContext)({direction:`ltr`}),Ls=(0,l.createContext)({locale:ms,direction:xs(ms)}),Rs=()=>(0,l.useContext)(Ls),zs=e=>(window?.addEventListener?.(`languagechange`,e),()=>window?.removeEventListener?.(`languagechange`,e)),Bs=()=>ms,Vs=()=>l.useSyncExternalStore(zs,Ss,Bs);function Hs({children:e,className:t,...n}){let{locale:r}=Rs(),i=Vs(),a=n.locale??r,o=a===`auto`?i:a,s=xs(o),c=l.useMemo(()=>({locale:o,direction:s}),[o,s]),u=l.useMemo(()=>({direction:s}),[s]);return(0,q.jsx)(Ls.Provider,{value:c,children:(0,q.jsx)(Is.Provider,{value:u,children:(0,q.jsx)(`div`,{className:t,"data-component":`LocaleProvider`,lang:o,dir:s,children:e})})})}Hs.displayName=`LocaleProvider`;const Us=({locale:e,...t}={})=>{let{locale:n}=Rs();return ws(e??n,t)},Ws=({locale:e,...t}={})=>{let{locale:n}=Rs();return Ms(e??n,t)},Gs=({locale:e,...t}={})=>{let{locale:n}=Rs();return Ds({locale:e??n,...t})},Ks=({locale:e,...t}={})=>{let{locale:n}=Rs();return ks(e??n,t)},qs={root:`avatar-fallback`},Js=(e,t)=>{let n=e.trim().split(/\s+/).filter(Boolean);if(n.length===0)return``;let[r]=[...n[0]],[i]=[...n[n.length-1]];return(n.length>1?`${r}${i}`:r).toLocaleUpperCase(t)};function Ys(e,t){let{className:n,name:r,...i}=e,{status:a=`idle`}=l.useContext(us),{locale:o}=Rs();return a===`loaded`?null:(0,q.jsx)(`span`,{ref:t,role:`img`,"aria-label":r,className:G(qs.root,n),"data-component":`Avatar.Fallback`,"data-status":a,...i,children:Js(r,o)})}Ys.displayName=`Avatar.Fallback`;var Xs=K(Ys);const Zs={root:`avatar-image`};function Qs(e,t){let{className:n,alt:r=``,src:i,onLoad:a,onError:o,...s}=e,{setStatus:c}=l.useContext(us),[u,d]=l.useState(`idle`),f=l.useRef(null),p=ar(f,t),m=l.useCallback(e=>{d(e),c?.(e)},[c]);return rr(()=>{let e=f.current;if(!e||!i){m(`idle`);return}m(e.complete&&e.naturalWidth>0?`loaded`:`loading`)},[m,i]),(0,q.jsx)(`img`,{ref:p,alt:r,src:i,onLoad:e=>{m(`loaded`),a?.(e)},onError:e=>{m(`error`),o?.(e)},className:G(Zs.root,n),"data-component":`Avatar.Image`,"data-status":u,...s})}Qs.displayName=`Avatar.Image`;var $s=K(Qs);const ec=Object.assign(ps,{Image:$s,Fallback:Xs}),tc=[`narrow`,`regular`,`wide`],nc={root:`avatar-stack`,responsive:`avatar-stack-responsive`,align:{left:`avatar-stack-align-left`,right:`avatar-stack-align-right`},variant:{cascade:`avatar-stack-cascade`,stack:`avatar-stack-stack`},width:{cascade:{two:`avatar-stack-cascade-two`,three:`avatar-stack-cascade-three`,more:`avatar-stack-cascade-more`},stack:{two:`avatar-stack-stack-two`,three:`avatar-stack-stack-three`,more:`avatar-stack-stack-more`}},body:{collapsed:`avatar-stack-body`,expandable:`avatar-stack-body-expandable`},item:{root:`avatar-stack-item`,first:`avatar-stack-item-first`,overlapped:`avatar-stack-item-overlapped`,mask:`avatar-stack-item-mask`,shape:{circle:`avatar-stack-item-circle`,square:`avatar-stack-item-square`},edge:{circle:`avatar-stack-item-edge-circle`,square:`avatar-stack-item-edge-square`},edgeAlignRight:`avatar-stack-item-edge-align-right`,layer:[`z-5`,`z-4`,`z-3`,`z-2`,`z-1`],fade:[``,``,`avatar-stack-item-fade-third`,`avatar-stack-item-fade-fourth`,`avatar-stack-item-fade-fifth`],overflow:`avatar-stack-item-overflow`,expanded:`avatar-stack-item-expanded`,expandedFirst:`avatar-stack-item-expanded-first`}},rc=e=>{if(!ls(e)){let t=e??20;return{narrow:t,regular:t,wide:t}}let t=e.regular??20;return{narrow:e.narrow??t,regular:t,wide:e.wide??t}},ic=e=>l.isValidElement(e)&&e.type===ps,ac=e=>l.isValidElement(e)&&e.type===l.Fragment,oc=e=>l.Children.toArray(e).flatMap(e=>ac(e)?oc(e.props.children):ic(e)?[e]:[]),sc=e=>{let t={narrow:[],regular:[],wide:[]};for(let n of e){let e=rc(n.props.size);for(let n of tc)t[n].push(e[n])}return Object.fromEntries(tc.map(e=>[e,t[e].length>0?Math.min(...t[e]):20]))};function cc(e,t){let{as:n=`span`,className:r,children:i,variant:a=`cascade`,shape:o=`circle`,size:s,align:c=`left`,disableExpand:u,style:d,...f}=e,p=l.useRef(null),[m,h]=l.useState(!1);l.useEffect(()=>{if(!p.current)return;let e=p.current,t=()=>{h(hr(e))},n=new MutationObserver(t);return n.observe(e,{childList:!0}),t(),()=>{n.disconnect()}},[]);let g=oc(i),_=g.length,v=_>3?`more`:_===3?`three`:_===2?`two`:void 0,y=!s||ls(s),b=!u,x={};if(ls(s)){let e=rc(s);for(let t of tc)x[`--avatar-stack-size-${t}`]=`${e[t]}px`}else if(s)x[`--avatar-stack-size`]=`${s}px`;else{let e=sc(g);for(let t of tc)x[`--avatar-stack-size-${t}`]=`${e[t]}px`}let S=g.map((e,t)=>l.cloneElement(e,{className:G(nc.item.root,t===0?nc.item.first:nc.item.overlapped,nc.item.shape[o],c===`right`&&o===`square`?nc.item.edgeAlignRight:nc.item.edge[o],t>0&&o===`circle`&&nc.item.mask,o===`square`&&nc.item.layer[Math.min(t,4)],a===`cascade`&&nc.item.fade[t],t>4&&nc.item.overflow,b&&nc.item.expanded,b&&t===0&&nc.item.expandedFirst,e.props.className)}));return(0,q.jsx)(n,{ref:t,className:G(nc.root,nc.variant[a],v&&nc.width[a][v],nc.align[c],y&&nc.responsive,r),style:{...d,...x},"data-component":`AvatarStack`,"data-variant":a,"data-shape":o,"data-avatar-count":_>3?`3+`:_,"data-align":c,"data-responsive":y||void 0,...f,children:(0,q.jsx)(`div`,{ref:p,className:b?nc.body.expandable:nc.body.collapsed,tabIndex:b&&!m?0:void 0,"data-component":`AvatarStack.Body`,"data-disable-expand":u,children:S})})}cc.displayName=`AvatarStack`;var lc=K(cc);const uc={indicator:`badge-indicator`,visual:`badge-visual`},dc=W(`badge`,{variants:{size:{small:`badge-small`,medium:`badge-medium`,large:`badge-large`},variant:{default:`badge-default`,primary:`badge-primary`,accent:`badge-accent`,success:`badge-success`,attention:`badge-attention`,severe:`badge-severe`,danger:`badge-danger`,done:`badge-done`,sponsors:`badge-sponsors`,outline:`badge-outline`,invisible:`badge-invisible`,link:`badge-link`},appearance:{filled:``,dot:`badge-dot`}}}),fc=e=>l.isValidElement(e)?e:(0,q.jsx)(e,{});function pc(e,t){let{as:n=`span`,className:r,variant:i=`default`,appearance:a=`filled`,size:o=`small`,leadingVisual:s,children:c,...l}=e,u=a===`dot`&&!s;return(0,q.jsxs)(n,{ref:t,className:G(dc({size:o,variant:i,appearance:a}),r),"data-component":`Badge`,"data-variant":i,"data-appearance":a,"data-size":o,...l,children:[s?(0,q.jsx)(`span`,{className:uc.visual,"data-component":`Badge.LeadingVisual`,children:fc(s)}):null,u?(0,q.jsx)(`span`,{"aria-hidden":`true`,className:uc.indicator}):null,c]})}pc.displayName=`Badge`;var mc=K(pc);const hc=(0,l.createContext)({});function gc(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(n),"data-component":`Banner.Description`,...r})}gc.displayName=`Banner.Description`;var _c=K(gc);const vc={root:`banner-title`};function yc(e,t){let{as:n=`h2`,className:r,id:i,...a}=e,{titleId:o}=l.useContext(hc);return(0,q.jsx)(n,{ref:t,id:i??o,className:G(vc.root,r),"data-component":`Banner.Title`,...a})}yc.displayName=`Banner.Title`;var bc=K(yc);const xc={container:`banner-container`,actions:`banner-actions`,actionsInline:`banner-actions-inline`,actionsStacked:`banner-actions-stacked`,order:{shown:`banner-actions-shown`,hidden:`banner-actions-hidden`,inlineLeading:`banner-actions-inline-leading`,inlineTrailing:`banner-actions-inline-trailing`,responsiveLeading:`banner-actions-responsive-leading`,responsiveTrailing:`banner-actions-responsive-trailing`},hidden:`sr-only`},Sc=W(`banner`,{variants:{layout:{default:`banner-default`,compact:`banner-compact`},variant:{critical:`banner-critical`,info:`banner-info`,success:`banner-success`,upsell:`banner-upsell`,warning:`banner-warning`},flush:{true:`banner-flush`,false:``}}}),Cc=W(`banner-icon`,{variants:{tight:{true:`banner-icon-tight`,false:``}}}),wc=W(`banner-body`,{variants:{actions:{stacked:`banner-body-stacked`,inline:`banner-body-inline`,responsive:`banner-body-responsive`}}}),Tc=W(`banner-content`,{variants:{tight:{true:`banner-content-tight`,false:``}}}),Ec=W(`banner-dismiss`,{variants:{withActions:{true:`banner-dismiss-with-actions`,false:``}}}),Dc={critical:fn,info:vn,success:Xt,upsell:vn,warning:Gn},Oc=[`info`,`upsell`],kc=({primaryAction:e,secondaryAction:t,className:n,leadingClassName:r,trailingClassName:i})=>(0,q.jsxs)(`div`,{"data-component":`Banner.Actions`,children:[(0,q.jsxs)(`div`,{className:G(xc.actions,n,i),"data-primary-action":`trailing`,children:[t,e]}),(0,q.jsxs)(`div`,{className:G(xc.actions,n,r),"data-primary-action":`leading`,children:[e,t]})]});function Ac(e,t){let{className:n,children:r,title:i,description:a,hideTitle:o,leadingVisual:s,variant:c=`info`,layout:l=`default`,actionsLayout:u=`default`,flush:d=!1,onDismiss:f,primaryAction:p,secondaryAction:m,"aria-label":h,"aria-labelledby":g,..._}=e,v=Y(),y=!!f,b=!!(p||m),x=!!o&&!b,S=Dc[c],C=s&&Oc.includes(c)?s:(0,q.jsx)(S,{}),w=u===`stacked`||y&&!o&&u!==`inline`,T=w?{leading:xc.order.shown,trailing:xc.order.hidden}:u===`inline`?{leading:xc.order.inlineLeading,trailing:xc.order.inlineTrailing}:{leading:xc.order.responsiveLeading,trailing:xc.order.responsiveTrailing},E=i?(0,q.jsx)(bc,{children:i}):null;return(0,q.jsx)(hc.Provider,{value:{titleId:v},children:(0,q.jsx)(`div`,{className:xc.container,children:(0,q.jsxs)(`section`,{ref:t,"aria-labelledby":g??(h?void 0:v),"aria-label":g?void 0:h,tabIndex:-1,className:G(Sc({layout:l,variant:c,flush:d}),n),"data-component":`Banner`,"data-variant":c,"data-layout":l,"data-actions-layout":u,"data-dismissible":y||void 0,"data-has-actions":b||void 0,"data-title-hidden":o||void 0,"data-flush":d||void 0,..._,children:[(0,q.jsx)(`div`,{className:G(Cc({tight:x})),"data-component":`Banner.Icon`,children:C}),(0,q.jsxs)(`div`,{className:G(wc({actions:w?`stacked`:u===`inline`?`inline`:`responsive`})),children:[(0,q.jsxs)(`div`,{className:G(Tc({tight:x})),"data-component":`Banner.Content`,children:[E?o?(0,q.jsx)(`span`,{className:xc.hidden,children:E}):E:null,a?(0,q.jsx)(_c,{children:a}):null,r]}),b?(0,q.jsx)(kc,{primaryAction:p,secondaryAction:m,className:G(u===`inline`&&xc.actionsInline,w&&xc.actionsStacked),leadingClassName:T.leading,trailingClassName:T.trailing}):null]}),y?(0,q.jsx)(gi,{icon:un,"aria-label":`Dismiss banner`,variant:`invisible`,onClick:f,className:G(Ec({withActions:b})),"data-component":`Banner.Dismiss`}):null]})})})}Ac.displayName=`Banner`;var jc=K(Ac);function Mc(e,t){return(0,q.jsx)(pi,{ref:t,variant:`default`,"data-component":`Banner.PrimaryAction`,...e})}Mc.displayName=`Banner.PrimaryAction`;var Nc=K(Mc);function Pc(e,t){return(0,q.jsx)(pi,{ref:t,variant:`invisible`,"data-component":`Banner.SecondaryAction`,...e})}Pc.displayName=`Banner.SecondaryAction`;var Fc=K(Pc);const Ic=Object.assign(jc,{Title:bc,Description:_c,PrimaryAction:Nc,SecondaryAction:Fc}),Lc={container:`blankslate-container`,root:`blankslate`,border:`blankslate-border`,narrow:`blankslate-narrow`,size:{small:`blankslate-small`,medium:`blankslate-medium`,large:`blankslate-large`},padding:{small:`blankslate-padding-small`,medium:`blankslate-padding-medium`,large:`blankslate-padding-large`},spaciousPadding:{small:`blankslate-padding-spacious-small`,medium:`blankslate-padding-spacious-medium`,large:`blankslate-padding-spacious-large`},tightType:`blankslate-tight-type`,tightPadding:{small:`blankslate-tight-padding-small`,medium:`blankslate-tight-padding-medium`,large:`blankslate-tight-padding-large`},tightSpaciousPadding:`blankslate-tight-padding-spacious`};function Rc(e,t){let{as:n=`div`,className:r,size:i=`medium`,border:a,narrow:o,spacious:s,...c}=e;return(0,q.jsx)(`div`,{className:Lc.container,children:(0,q.jsx)(n,{ref:t,className:G(Lc.root,Lc.size[i],s?Lc.spaciousPadding[i]:Lc.padding[i],Lc.tightType,s?Lc.tightSpaciousPadding:Lc.tightPadding[i],a&&Lc.border,o&&Lc.narrow,r),"data-component":`Blankslate`,"data-size":i,"data-border":a,"data-narrow":o,"data-spacious":s,...c})})}Rc.displayName=`Blankslate`;var zc=K(Rc);const Bc={root:`blankslate-description`};function Vc(e,t){let{className:n,...r}=e;return(0,q.jsx)(`p`,{ref:t,className:G(Bc.root,n),"data-component":`Blankslate.Description`,...r})}Vc.displayName=`Blankslate.Description`;var Hc=K(Vc);const Uc={root:`blankslate-heading`};function Wc(e,t){let{as:n=`h2`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Uc.root,r),"data-component":`Blankslate.Heading`,...i})}Wc.displayName=`Blankslate.Heading`;var Gc=K(Wc);const Kc={root:`blankslate-action`,tight:`blankslate-action-tight`};function qc(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Kc.root,Kc.tight,n),...r})}qc.displayName=`Blankslate.Action`;var Jc=K(qc);function Yc(e,t){return(0,q.jsx)(Jc,{ref:t,"data-component":`Blankslate.PrimaryAction`,...e})}Yc.displayName=`Blankslate.PrimaryAction`;var Xc=K(Yc);const Zc={root:`link`,inline:`link-inline`,muted:`link-muted`};function Qc(e,t){let{as:n=`a`,className:r,muted:i,inline:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Zc.root,a&&Zc.inline,i&&Zc.muted,r),"data-component":`Link`,"data-muted":i,"data-inline":a,...o})}Qc.displayName=`Link`;var $c=K(Qc);function el(e,t){let{href:n,children:r,...i}=e;return(0,q.jsx)(Jc,{ref:t,"data-component":`Blankslate.SecondaryAction`,...i,children:n===void 0?r:(0,q.jsx)($c,{href:n,children:r})})}el.displayName=`Blankslate.SecondaryAction`;var tl=K(el);const nl={root:`blankslate-visual`,tight:`blankslate-visual-tight`};function rl(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(nl.root,nl.tight,n),"data-component":`Blankslate.Visual`,...r})}rl.displayName=`Blankslate.Visual`;var il=K(rl);const al=Object.assign(zc,{Visual:il,Heading:Gc,Description:Hc,PrimaryAction:Xc,SecondaryAction:tl}),ol=W(`blockquote`,{variants:{size:{large:`blockquote-large`,medium:`blockquote-medium`,small:`blockquote-small`},variant:{subtle:`blockquote-subtle`,default:`blockquote-default`,emphasis:`blockquote-emphasis`}}});function sl(e,t){let{as:n=`blockquote`,className:r,size:i=`medium`,variant:a=`default`,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(ol({size:i,variant:a}),r),"data-component":`Blockquote`,"data-size":i,"data-variant":a,...o})}sl.displayName=`Blockquote`;var cl=K(sl);const ll=W(`box`,{variants:{padding:{none:`box-padding-none`,tight:`box-padding-tight`,condensed:`box-padding-condensed`,cozy:`box-padding-cozy`,normal:`box-padding-normal`,spacious:`box-padding-spacious`},paddingBlock:{none:`box-padding-block-none`,tight:`box-padding-block-tight`,condensed:`box-padding-block-condensed`,cozy:`box-padding-block-cozy`,normal:`box-padding-block-normal`,spacious:`box-padding-block-spacious`},paddingInline:{none:`box-padding-inline-none`,tight:`box-padding-inline-tight`,condensed:`box-padding-inline-condensed`,cozy:`box-padding-inline-cozy`,normal:`box-padding-inline-normal`,spacious:`box-padding-inline-spacious`},background:{none:`box-background-none`,default:`box-background-default`,muted:`box-background-muted`,inset:`box-background-inset`,emphasis:`box-background-emphasis`},border:{none:`box-border-none`,default:`box-border-default`,muted:`box-border-muted`},radius:{none:`box-radius-none`,small:`box-radius-small`,medium:`box-radius-medium`,large:`box-radius-large`,full:`box-radius-full`},shadow:{none:`box-shadow-none`,xsmall:`box-shadow-xsmall`,small:`box-shadow-small`,medium:`box-shadow-medium`},overflow:{visible:`box-overflow-visible`,hidden:`box-overflow-hidden`}}});function ul(e,t){let{as:n=`div`,className:r,padding:i=`none`,paddingBlock:a,paddingInline:o,background:s=`none`,border:c=`none`,radius:l=`none`,shadow:u=`none`,overflow:d=`visible`,...f}=e;return(0,q.jsx)(n,{ref:t,className:G(ll({padding:i,paddingBlock:a,paddingInline:o,background:s,border:c,radius:l,shadow:u,overflow:d}),r),"data-component":`Box`,"data-padding":i,"data-padding-block":a,"data-padding-inline":o,"data-background":s,"data-border":c,"data-radius":l,"data-shadow":u,"data-overflow":d,...f})}ul.displayName=`Box`;var dl=K(ul);function fl({items:e}){return(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(gi,{icon:Cn,"aria-label":`${e.length} more breadcrumb items`,variant:`invisible`,size:`small`,"data-component":`Breadcrumbs.OverflowMenu`})}),(0,q.jsx)(ma.Overlay,{children:(0,q.jsx)(ji,{children:e.map((e,t)=>{let{children:n,selected:r,as:i,...a}=e.props;return(0,q.jsx)(ji.LinkItem,{as:i,"aria-current":r?`page`:void 0,...a,children:n},t)})})})]})}fl.displayName=`Breadcrumbs.OverflowMenu`;const pl=(0,l.createContext)({}),ml={root:`breadcrumbs`,list:`breadcrumbs-list`,listWrap:`breadcrumbs-list-wrap`,listMenu:`breadcrumbs-list-menu`,item:`breadcrumbs-item`,itemMenu:`breadcrumbs-item-menu`,separator:`breadcrumbs-separator`},hl=({availableWidth:e,itemCount:t,itemWidths:n,menuButtonWidth:r,overflow:i,hideRoot:a})=>{let o=a,s=n[0]??0,c=e<544,l=4;o?c&&t>2&&(l=1):l=3;let u=e=>{let t=e.reduce((e,t)=>e+t+16,0);return o?t:s+t},d=[...n],f=0;if(e>0&&d.length>0){let t=u(d);for(;i!==`wrap`&&(t>e||d.length>l);){if(f+=1,d=d.slice(1),t=u(d)+r,d.length===1&&t>e){o=!0;break}o=a}}return{menuItemCount:f,hideRoot:o}},gl=e=>l.Children.toArray(e).filter(e=>l.isValidElement(e)),_l=()=>(0,q.jsx)(`span`,{className:ml.separator,"aria-hidden":`true`,"data-component":`Breadcrumbs.Separator`,children:(0,q.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,children:(0,q.jsx)(`path`,{d:`M10.956 1.27994L6.06418 14.7201L5 14.7201L9.89181 1.27994L10.956 1.27994Z`,fill:`currentcolor`})})});function vl(e){let{className:t,children:n,style:r,overflow:i=`wrap`,variant:a=`normal`}=e,o=l.useRef(null),s=l.useMemo(()=>gl(n),[n]),c=s[0],u=i!==`menu-with-root`,[d,f]=l.useState([]),[p,m]=l.useState(null),[h,g]=l.useState(28),_=l.useCallback(e=>{let t=e?.querySelector(`button`);t&&g(e=>e===t.offsetWidth?e:t.offsetWidth)},[]);rr(()=>{if(i===`wrap`)return;let e=o.current;if(!e)return;m(t=>t===e.offsetWidth?t:e.offsetWidth);let t=e.querySelectorAll(`li[data-crumb]`);t.length===s.length&&f(Array.from(t,e=>e.offsetWidth))},[s,i]),l.useEffect(()=>{let e=o.current;if(i===`wrap`||!e)return;let t=new ResizeObserver(e=>{for(let t of e){let e=Math.round(t.contentRect.width);m(t=>t===e?t:e)}});return t.observe(e),()=>{t.disconnect()}},[i]);let{menuItemCount:v,hideRoot:y}=l.useMemo(()=>i===`wrap`||d.length!==s.length?{menuItemCount:0,hideRoot:u}:hl({availableWidth:p??800,itemCount:s.length,itemWidths:d,menuButtonWidth:h,overflow:i,hideRoot:u}),[i,u,s,d,p,h]),b=l.useMemo(()=>({variant:a}),[a]),x=l.useMemo(()=>{let e=(e,t)=>(0,q.jsxs)(`li`,{className:ml.item,"data-crumb":``,children:[e,(0,q.jsx)(_l,{})]},t);if(v===0)return s.map((t,n)=>e(t,n));let t=s.slice(0,v),n=s.slice(v),r=y?t:t.slice(1),i=(0,q.jsxs)(`li`,{ref:_,className:G(ml.item,ml.itemMenu),"data-overflow-menu":``,children:[(0,q.jsx)(fl,{items:r}),(0,q.jsx)(_l,{})]},`overflow-menu`),a=n.map((t,n)=>e(t,`visible-${n}`));return y?[i,...a]:[e(c,`root`),i,...a]},[s,v,y,_,c]);return(0,q.jsx)(pl.Provider,{value:b,children:(0,q.jsx)(`nav`,{ref:o,"aria-label":`Breadcrumbs`,className:G(ml.root,t),style:r,"data-component":`Breadcrumbs`,"data-overflow":i,"data-variant":a,children:(0,q.jsx)(`ol`,{className:G(ml.list,i===`wrap`?ml.listWrap:ml.listMenu),children:x})})})}vl.displayName=`Breadcrumbs`;const yl={root:`breadcrumbs-link`,normal:`breadcrumbs-link-normal`,normalSelected:`breadcrumbs-link-normal-selected`,spacious:`breadcrumbs-link-spacious`,spaciousSelected:`breadcrumbs-link-spacious-selected`};function bl(e,t){let{as:n=`a`,className:r,selected:i,...a}=e,{variant:o=`normal`}=l.useContext(pl),s=o===`spacious`;return(0,q.jsx)(n,{ref:t,"aria-current":i?`page`:void 0,className:G(yl.root,s?yl.spacious:yl.normal,i&&(s?yl.spaciousSelected:yl.normalSelected),r),"data-component":`Breadcrumbs.Item`,"data-selected":i?``:void 0,...a})}bl.displayName=`Breadcrumbs.Item`;var xl=K(bl);const Sl=Object.assign(vl,{Item:xl}),Cl=(0,l.createContext)({}),wl=(0,l.createContext)({}),Tl=(0,l.createContext)({}),El=W(`bubble`,{variants:{align:{start:`bubble-align-start`,end:`bubble-align-end`},variant:{default:`bubble-default`,secondary:`bubble-secondary`,muted:`bubble-muted`,tinted:`bubble-tinted`,outline:`bubble-outline`,ghost:`bubble-ghost`,danger:`bubble-danger`}}});function Dl(e,t){let{as:n=`div`,className:r,variant:i=`default`,align:a,...o}=e,{align:s}=l.useContext(Tl),{align:c}=l.useContext(Cl),u=a??s??c??`start`,d={align:u,variant:i};return(0,q.jsx)(wl.Provider,{value:d,children:(0,q.jsx)(n,{ref:t,className:G(El({align:u,variant:i}),r),"data-component":`Bubble`,"data-variant":i,"data-align":u,...o})})}Dl.displayName=`Bubble`;var Ol=K(Dl);const kl={root:`bubble-content`};function Al(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(kl.root,r),"data-component":`Bubble.Content`,...i})}Al.displayName=`Bubble.Content`;var jl=K(Al);const Ml={root:`bubble-group`};function Nl(e,t){let{as:n=`div`,className:r,align:i=`start`,...a}=e;return(0,q.jsx)(Tl.Provider,{value:{align:i},children:(0,q.jsx)(n,{ref:t,className:G(Ml.root,r),"data-component":`Bubble.Group`,"data-align":i,...a})})}Nl.displayName=`Bubble.Group`;var Pl=K(Nl);const Fl=W(`bubble-reactions`,{variants:{side:{top:`bubble-reactions-top`,bottom:`bubble-reactions-bottom`},align:{start:`bubble-reactions-align-start`,end:`bubble-reactions-align-end`}}});function Il(e,t){let{as:n=`div`,className:r,side:i=`bottom`,align:a,...o}=e,{align:s}=l.useContext(wl),c=a??s??`end`;return(0,q.jsx)(n,{ref:t,className:G(Fl({side:i,align:c}),r),"data-component":`Bubble.Reactions`,"data-side":i,"data-align":c,...o})}Il.displayName=`Bubble.Reactions`;var Ll=K(Il);const Rl=Object.assign(Ol,{Group:Pl,Content:jl,Reactions:Ll}),zl={root:`button-group`,item:{root:`button-group-item`,first:`button-group-item-first`,last:`button-group-item-last`}},Bl=[`[disabled]`,`[hidden]`,`[inert]`],Vl=[`button`,`a[href]`,`summary`].map(e=>`${e}:not(${Bl.join(`):not(`)})`).join(`, `),Hl=e=>e?Array.from(e.querySelectorAll(Vl)):[],Ul=(e,t)=>{for(let n of e)n.tabIndex=n===t?0:-1};function Wl(e,t){let{as:n=`div`,className:r,children:i,role:a,onFocus:o,onKeyDown:s,...c}=e,u=l.useRef(null),d=ar(t,u),f=a===`toolbar`,p=l.useCallback(()=>{if(!f)return;let e=Hl(u.current),t=e.find(e=>e===document.activeElement);Ul(e,t??e[0])},[f]);l.useEffect(p),l.useEffect(()=>{if(!f||u.current===null)return;let e=u.current,t=new MutationObserver(p);return t.observe(e,{childList:!0,subtree:!0}),()=>{t.disconnect();for(let t of Hl(e))t.removeAttribute(`tabindex`)}},[f,p]);let m=e=>{if(o?.(e),!f)return;let t=Hl(u.current);t.includes(e.target)&&Ul(t,e.target)},h=e=>{s?.(e);let t=e.key===`ArrowRight`?1:e.key===`ArrowLeft`?-1:0;if(!f||t===0||e.defaultPrevented)return;let n=Hl(u.current),r=n.indexOf(document.activeElement);r!==-1&&(e.preventDefault(),n[(r+t+n.length)%n.length].focus())},g=l.Children.toArray(i);return(0,q.jsx)(n,{ref:d,className:G(zl.root,r),role:a,onFocus:m,onKeyDown:h,"data-component":`ButtonGroup`,...c,children:g.map((e,t)=>(0,q.jsx)(`div`,{className:G(zl.item.root,t===0&&zl.item.first,t===g.length-1&&zl.item.last),"data-component":`ButtonGroup.Item`,children:e},l.isValidElement(e)?e.key:t))})}Wl.displayName=`ButtonGroup`;var Gl=K(Wl);const Kl={root:`calendar-day`,interactive:`calendar-day-interactive`,selected:`calendar-day-selected`,between:`calendar-day-between`,outside:`calendar-day-outside`,unavailable:`calendar-day-unavailable`,hidden:`sr-only`};function ql(e,t){let{label:n,name:r,dayKey:i,selected:a,range:o,today:s,outside:c,unavailable:l,tabbable:u,className:d,...f}=e,p=o===`middle`,m=a&&!p;return(0,q.jsxs)(`button`,{ref:t,type:`button`,tabIndex:u?0:-1,"aria-pressed":a,"aria-current":s?`date`:void 0,"aria-disabled":l||void 0,className:G(Kl.root,!l&&!a&&Kl.interactive,c&&Kl.outside,p&&Kl.between,l&&Kl.unavailable,m&&Kl.selected,d),"data-component":`Calendar.Day`,"data-date":i,"data-selected":a,"data-range":o,"data-today":s||void 0,"data-outside":c||void 0,"data-unavailable":l||void 0,"data-tabbable":u,...f,children:[(0,q.jsx)(`span`,{"aria-hidden":`true`,children:n}),(0,q.jsx)(`span`,{className:Kl.hidden,children:r})]})}ql.displayName=`Calendar.Day`;var Jl=K(ql),Yl=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),Xl=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Zl=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){"use strict";return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),Ql=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),$l=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){"use strict";var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),eu=c(Yl()),tu=c(Xl()),nu=c(Zl()),ru=c(Ql()),iu=c($l());eu.default.extend(tu.default),eu.default.extend(nu.default),eu.default.extend(ru.default),eu.default.extend(iu.default);const au=`YYYY-MM-DD`,ou=e=>(0,eu.default)(e),su=e=>{if(e==null)return null;let t=ou(e);return t.isValid()?t:null},cu=e=>e.format(au),lu={from:null,to:null},uu=(e,t)=>{if(e==null)return lu;if(t){let t=e;return{from:su(t.from),to:su(t.to)}}let n=su(e);return{from:n,to:n}},du=()=>(0,eu.default)().localeData().firstDayOfWeek()??0,fu=e=>{let t=(0,eu.default)().localeData(),n=t.weekdaysMin(),r=t.weekdays();return Array.from({length:7},(t,i)=>{let a=(e+i)%7;return{day:a,narrow:n[a],full:r[a]}})},pu=(e,t)=>e.subtract((e.day()-t+7)%7,`day`),mu=(e,t,n=!1)=>{let r=e.startOf(`month`),i=pu(r,t),a=(r.day()-t+7)%7,o=(t+7-1-e.endOf(`month`).day())%7,s=a+e.daysInMonth()+o,c=n?6:s/7;return Array.from({length:c},(e,t)=>Array.from({length:7},(e,n)=>i.add(t*7+n,`day`)))},hu=(e,t,n,r)=>(t===null||!e.isBefore(t,`day`))&&(n===null||!e.isAfter(n,`day`))&&!r?.(e.toDate()),gu=(e,t)=>e.isAfter(t,`day`)?[t,e]:[e,t],_u=(e,t,n)=>{if(t===null)return n!==null&&e.isSame(n,`day`);if(n===null)return e.isSame(t,`day`);let[r,i]=gu(t,n);return!e.isBefore(r,`day`)&&!e.isAfter(i,`day`)},vu=(e,t,n)=>{if(t===null||n===null||t.isSame(n,`day`))return;let[r,i]=gu(t,n);return e.isSame(r,`day`)?`start`:e.isSame(i,`day`)?`end`:e.isAfter(r,`day`)&&e.isBefore(i,`day`)?`middle`:void 0},yu=(e,t,n)=>{if(e===null||t!==null)return{from:n,to:null};if(n.isSame(e,`day`))return lu;let[r,i]=gu(e,n);return{from:r,to:i}},bu=(e,t)=>{let n=(0,eu.default)(e,t,!0);return n.isValid()?n:null},xu=()=>(0,eu.default)(),Su={root:`calendar`,header:`calendar-header`,caption:`calendar-caption`,grid:`calendar-grid`,weekday:`calendar-weekday`,weekNumberHeader:`calendar-week-number-header`,weekNumber:`calendar-week-number`,cell:`calendar-cell`,rangeCell:`calendar-cell-range`,rangeCellStart:`calendar-cell-range-start`,rangeCellEnd:`calendar-cell-range-end`,hidden:`sr-only`};function Cu(e,t){let{mode:n=`single`,value:r,defaultValue:i,onChange:a,month:o,defaultMonth:s,onMonthChange:c,min:u,max:d,isDateDisabled:f,weekStartsOn:p,fixedWeeks:m=!1,showOutsideDays:h=!0,showWeekNumbers:g=!1,monthFormat:_=`MMMM YYYY`,dayFormat:v=`LL`,focusableDayRef:y,previousMonthLabel:b=`Previous month`,nextMonthLabel:x=`Next month`,weekNumberLabel:S=`Week`,className:C,...w}=e,T=Y(),E=l.useRef(null),D=xu(),O=n===`range`,k=r!==void 0,[A,j]=l.useState(()=>uu(i,O)),M=k?uu(r,O):A,N=o!==void 0,[P,F]=l.useState(()=>(su(s)??uu(i,O).from??uu(r,O).from??xu()).startOf(`month`)),I=(N?ou(o):P).startOf(`month`),L=su(u),ee=su(d),R=p??du(),z=fu(R),te=mu(I,R,m),[ne,B]=l.useState(null),re=l.useRef(null),[V,ie]=l.useState(null),ae=O&&M.from!==null&&M.to===null,oe=ae?V:M.to,se=cu((()=>{for(let e of[ne,M.from,D])if(e&&e.isSame(I,`month`))return e;return I})());l.useEffect(()=>{let e=re.current;e!==null&&(re.current=null,E.current?.querySelector(`[data-date='${e}']`)?.focus())});let ce=e=>{let t=e.startOf(`month`);N||F(t),c?.(t.toDate())},le=e=>{B(e),re.current=cu(e),e.isSame(I,`month`)||ce(e)},ue=e=>{if(!hu(e,L,ee,f))return;B(e),e.isSame(I,`month`)||ce(e);let t=O?yu(M.from,M.to,e):{from:e,to:e};if(k||j(t),O){a?.({from:t.from?.toDate()??null,to:t.to?.toDate()??null});return}a?.(e.toDate())},de=(e,t)=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;let n=t=>{e.preventDefault(),le(t)};switch(e.key){case`ArrowLeft`:return n(t.subtract(1,`day`));case`ArrowRight`:return n(t.add(1,`day`));case`ArrowUp`:return n(t.subtract(7,`day`));case`ArrowDown`:return n(t.add(7,`day`));case`Home`:return n(pu(t,R));case`End`:return n(pu(t,R).add(6,`day`));case`PageUp`:return n(t.subtract(1,e.shiftKey?`year`:`month`));case`PageDown`:return n(t.add(1,e.shiftKey?`year`:`month`));default:return}},fe=e=>{B(t=>t?.isSame(e,`day`)?t:e),ae&&ie(e)},pe=e=>{ae&&ie(e)},me=()=>{ie(null)},he=I.subtract(1,`month`),ge=I.add(1,`month`),_e=L===null||!he.endOf(`month`).isBefore(L,`day`),ve=ee===null||!ge.isAfter(ee,`day`);return(0,q.jsxs)(`div`,{ref:t,className:G(Su.root,C),"data-component":`Calendar`,...w,children:[(0,q.jsxs)(`div`,{className:Su.header,"data-component":`Calendar.Header`,children:[(0,q.jsx)(gi,{icon:$t,"aria-label":b,variant:`invisible`,size:`small`,disabled:!_e,onClick:()=>ce(he),"data-component":`Calendar.PreviousMonth`}),(0,q.jsx)(`div`,{id:T,"aria-live":`polite`,className:Su.caption,"data-component":`Calendar.Caption`,children:I.format(_)}),(0,q.jsx)(gi,{icon:en,"aria-label":x,variant:`invisible`,size:`small`,disabled:!ve,onClick:()=>ce(ge),"data-component":`Calendar.NextMonth`})]}),(0,q.jsxs)(`table`,{ref:E,"aria-labelledby":T,className:Su.grid,onPointerLeave:me,"data-component":`Calendar.Grid`,"data-mode":n,children:[(0,q.jsx)(`thead`,{children:(0,q.jsxs)(`tr`,{children:[g?(0,q.jsx)(`th`,{scope:`col`,className:Su.weekNumberHeader,children:(0,q.jsx)(`span`,{className:Su.hidden,children:S})}):null,z.map(e=>(0,q.jsxs)(`th`,{scope:`col`,className:Su.weekday,"data-component":`Calendar.Weekday`,children:[(0,q.jsx)(`span`,{"aria-hidden":`true`,children:e.narrow}),(0,q.jsx)(`span`,{className:Su.hidden,children:e.full})]},e.day))]})}),(0,q.jsx)(`tbody`,{children:te.map(e=>(0,q.jsxs)(`tr`,{"data-component":`Calendar.Week`,children:[g?(0,q.jsx)(`th`,{scope:`row`,className:Su.weekNumber,"data-component":`Calendar.WeekNumber`,children:e[0].week()}):null,e.map(e=>{let t=cu(e),n=!e.isSame(I,`month`);if(n&&!h)return(0,q.jsx)(`td`,{className:Su.cell},t);let r=t===se,i=vu(e,M.from,oe);return(0,q.jsx)(`td`,{className:G(Su.cell,i&&Su.rangeCell,i===`start`&&Su.rangeCellStart,i===`end`&&Su.rangeCellEnd),children:(0,q.jsx)(Jl,{ref:r?y:void 0,label:e.format(`D`),name:e.format(v),dayKey:t,selected:_u(e,M.from,M.to),range:i,today:e.isSame(D,`day`),outside:n,unavailable:!hu(e,L,ee,f),tabbable:r,onClick:()=>ue(e),onKeyDown:t=>de(t,e),onFocus:()=>fe(e),onPointerEnter:()=>pe(e)})},t)})]},cu(e[0])))})]})]})}Cu.displayName=`Calendar`;var wu=K(Cu);const Tu=Object.assign(wu,{Day:Jl}),Eu={root:`card-action`};function Du(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Eu.root,n),"data-component":`Card.Action`,...r})}Du.displayName=`Card.Action`;var Ou=K(Du);const ku=(0,l.createContext)({}),Au={root:`card-description text-body-medium`};function ju(e,t){let{className:n,...r}=e;return(0,q.jsx)(`p`,{ref:t,className:G(Au.root,n),"data-component":`Card.Description`,...r})}ju.displayName=`Card.Description`;var Mu=K(ju);const Nu={root:`card-heading`,compact:`card-heading-compact`};function Pu(e,t){let{as:n=`h3`,className:r,id:i,...a}=e,{titleId:o,layout:s}=l.useContext(ku);return(0,q.jsx)(n,{ref:t,id:i??o,className:G(Nu.root,s===`compact`&&Nu.compact,r),"data-component":`Card.Heading`,...a})}Pu.displayName=`Card.Heading`;var Fu=K(Pu);const Iu={root:`card-icon`,tile:`card-icon-tile`};function Lu(e,t){let{icon:n,className:r,"aria-label":i,...a}=e,{layout:o}=l.useContext(ku);return(0,q.jsx)(`span`,{ref:t,role:i?`img`:void 0,"aria-label":i,"aria-hidden":!i||void 0,className:G(Iu.root,o!==`compact`&&Iu.tile,r),"data-component":`Card.Icon`,...a,children:(0,q.jsx)(n,{})})}Lu.displayName=`Card.Icon`;var Ru=K(Lu);const zu={root:`card-image`};function Bu(e,t){let{className:n,alt:r=``,...i}=e;return(0,q.jsx)(`img`,{ref:t,alt:r,className:G(zu.root,n),"data-component":`Card.Image`,...i})}Bu.displayName=`Card.Image`;var Vu=K(Bu);const Hu={root:`card-metadata text-body-small`};function Uu(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Hu.root,n),"data-component":`Card.Metadata`,...r})}Uu.displayName=`Card.Metadata`;var Wu=K(Uu);const Gu={content:`card-content`},Ku=W(`card`,{variants:{borderRadius:{medium:`card-radius-medium`,large:`card-radius-large`},layout:{default:``,compact:`card-compact`},padding:{none:`card-padding-none`,condensed:`card-padding-condensed`,normal:`card-padding-normal`}},compoundVariants:[{layout:`compact`,padding:`normal`,class:`card-compact-padding-normal`}]}),qu=W(`card-header`,{variants:{edgeToEdge:{true:`card-header-edge-to-edge`,false:``},layout:{default:``,compact:`card-header-compact`}}}),Ju=W(`card-body`,{variants:{layout:{default:``,compact:`card-body-compact`}}});function Yu(e,t){let{as:n=`div`,className:r,children:i,padding:a=`normal`,borderRadius:o=`large`,layout:s=`default`,"aria-label":c,"aria-labelledby":u,...d}=e,f=Y(),[p]=xr(i,{icon:Ru,image:Vu,heading:Fu,description:Mu,metadata:Wu,action:Ou}),m=n===`section`,h=m?f:void 0,g=u??(m&&!c?h:void 0),_=p.image??p.icon,v=!!(_||p.heading||p.description||p.metadata||p.action);return l.Children.toArray(i).length===0?null:(0,q.jsx)(ku.Provider,{value:{titleId:h,layout:s},children:(0,q.jsx)(n,{ref:t,"aria-label":c,"aria-labelledby":g,className:G(Ku({borderRadius:o,layout:s,padding:a}),r),"data-component":`Card`,"data-padding":a,"data-border-radius":o,"data-layout":s,...d,children:v?(0,q.jsxs)(q.Fragment,{children:[_?(0,q.jsx)(`div`,{className:G(qu({edgeToEdge:!!p.image,layout:s})),children:_}):null,(0,q.jsxs)(`div`,{className:G(Ju({layout:s})),children:[(0,q.jsxs)(`div`,{className:Gu.content,children:[p.heading,p.description]}),p.metadata]}),p.action]}):i})})}Yu.displayName=`Card`;var Xu=K(Yu);const Zu=Object.assign(Xu,{Icon:Ru,Image:Vu,Heading:Fu,Description:Mu,Metadata:Wu,Action:Ou}),Qu={triangle:`caret-triangle`,border:`caret-border`},$u=W(`caret`,{variants:{location:{top:`caret-top`,bottom:`caret-bottom`,left:`caret-left`,right:`caret-right`,"top-left":`caret-top-left`,"top-right":`caret-top-right`,"bottom-left":`caret-bottom-left`,"bottom-right":`caret-bottom-right`,"left-top":`caret-left-top`,"left-bottom":`caret-left-bottom`,"right-top":`caret-right-top`,"right-bottom":`caret-right-bottom`}}}),ed=(e,t)=>({top:`translate(${t},${t*2}) rotate(180)`,right:`translate(0,${t}) rotate(-90)`,bottom:`translate(${t},0)`,left:`translate(${t*2},${t}) rotate(90)`})[e];function td(e,t){let{location:n=`bottom`,size:r=8,background:i,borderColor:a,borderWidth:o,className:s,style:c,...l}=e,u=n.split(`-`)[0],d=[-r,0],f=[0,r],p=[r,0],m=`M${d}L${f}L${p}L${d}Z`,h=`M${d}L${f}L${p}`;return(0,q.jsx)(`svg`,{ref:t,width:r*2,height:r*2,className:G($u({location:n}),s),style:{...c,"--caret-size":`${r}px`,"--caret-background":i,"--caret-border-color":a,"--caret-border-width":o},"data-component":`Caret`,"data-location":n,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...l,children:(0,q.jsxs)(`g`,{transform:ed(u,r),children:[(0,q.jsx)(`path`,{className:Qu.triangle,d:m}),(0,q.jsx)(`path`,{className:Qu.border,d:h})]})})}td.displayName=`Caret`;var nd=K(td);const rd=()=>{},id=(0,l.createContext)({index:0,count:0,loop:!1,autoPlay:!1,isPlaying:!1,goTo:rd,previous:rd,next:rd,togglePlaying:rd,slidesId:``}),ad=(0,l.createContext)({index:0}),od={root:`carousel-indicators`,dot:`carousel-indicator`,current:`carousel-indicator-current`};function sd(e,t){let{className:n,...r}=e,{index:i,count:a,goTo:o,slidesId:s}=l.useContext(id);return a===0?null:(0,q.jsx)(`div`,{ref:t,className:G(od.root,n),"data-component":`Carousel.Indicators`,...r,children:Array.from({length:a},(e,t)=>{let n=t===i;return(0,q.jsx)(`button`,{type:`button`,"aria-label":`Slide ${t+1}`,"aria-current":n||void 0,"aria-controls":s||void 0,onClick:()=>o(t,`indicator`),className:G(od.dot,n&&od.current),"data-component":`Carousel.Indicator`,"data-current":n||void 0},t)})})}sd.displayName=`Carousel.Indicators`;var cd=K(sd);function ld(e,t){let{className:n,onClick:r,...i}=e,{index:a,count:o,loop:s,next:c,slidesId:u}=l.useContext(id);return(0,q.jsx)(gi,{ref:t,icon:en,"aria-label":`Next slide`,"aria-controls":u||void 0,variant:`invisible`,disabled:!s&&a>=o-1,onClick:e=>{r?.(e),e.defaultPrevented||c()},className:n,"data-component":`Carousel.NextButton`,...i})}ld.displayName=`Carousel.NextButton`;var ud=K(ld);function dd(e,t){let{className:n,onClick:r,...i}=e,{isPlaying:a,togglePlaying:o,slidesId:s}=l.useContext(id);return(0,q.jsx)(gi,{ref:t,icon:a?wn:Tn,"aria-label":a?`Stop automatic slide show`:`Start automatic slide show`,"aria-controls":s||void 0,variant:`invisible`,onClick:e=>{r?.(e),e.defaultPrevented||o()},className:n,"data-component":`Carousel.PlayButton`,"data-playing":a||void 0,...i})}dd.displayName=`Carousel.PlayButton`;var fd=K(dd);function pd(e,t){let{className:n,onClick:r,...i}=e,{index:a,loop:o,previous:s,slidesId:c}=l.useContext(id);return(0,q.jsx)(gi,{ref:t,icon:$t,"aria-label":`Previous slide`,"aria-controls":c||void 0,variant:`invisible`,disabled:!o&&a<=0,onClick:e=>{r?.(e),e.defaultPrevented||s()},className:n,"data-component":`Carousel.PreviousButton`,...i})}pd.displayName=`Carousel.PreviousButton`;var md=K(pd);const hd={root:`carousel-controls`};function gd(e,t){let{className:n,children:r,...i}=e,{autoPlay:a}=l.useContext(id),o=l.Children.toArray(r).length>0;return(0,q.jsx)(`div`,{ref:t,className:G(hd.root,n),"data-component":`Carousel.Controls`,...i,children:o?r:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(md,{}),(0,q.jsx)(cd,{}),(0,q.jsx)(ud,{}),a?(0,q.jsx)(fd,{}):null]})})}gd.displayName=`Carousel.Controls`;var _d=K(gd);const vd={root:`carousel-slide`};function yd(e,t){let{className:n,...r}=e,{index:i,count:a}=l.useContext(id),{index:o}=l.useContext(ad),s=o===i;return(0,q.jsx)(`div`,{ref:t,role:`group`,"aria-roledescription":`slide`,"aria-label":`${o+1} of ${a}`,inert:!s,className:G(vd.root,n),"data-component":`Carousel.Slide`,"data-current":s||void 0,...r})}yd.displayName=`Carousel.Slide`;var bd=K(yd);const xd={root:`carousel`,viewport:`carousel-viewport`,track:`carousel-track`,motion:`motion-safe:[transition:translate_var(--motion-transition-state-change)]`},Sd=(e,t,n)=>t<=0?0:n?(e%t+t)%t:Math.min(Math.max(e,0),t-1);function Cd(e,t){let{className:n,children:r,index:i,defaultIndex:a=0,onChange:o,loop:s=!1,autoPlay:c=!1,interval:u=5e3,...d}=e,f=Y(),p=i!==void 0,[m,h]=l.useState(a),[g,_]=l.useState(c),[v,y]=l.useState(!1),b=l.useRef(o);rr(()=>{b.current=o},[o]);let x=[],S=[],C=null;l.Children.forEach(r,e=>{if(!l.isValidElement(e)){S.push(e);return}if(e.type===bd){x.push(e);return}if(e.type===_d&&C===null){C=e;return}S.push(e)});let w=x.length,T=Sd(p?i:m,w,s),E=(e,t)=>{let n=Sd(e,w,s);p||h(n),b.current?.(n,t)};l.useEffect(()=>{if(!g||v||w<2)return;let e=window.setTimeout(()=>{if(!s&&T>=w-1){_(!1);return}let e=Sd(T+1,w,s);p||h(e),b.current?.(e,`auto`)},u);return()=>{window.clearTimeout(e)}},[g,v,w,T,u,s,p]);let D={index:T,count:w,loop:s,autoPlay:c,isPlaying:g,goTo:E,previous:()=>E(T-1,`previous`),next:()=>E(T+1,`next`),togglePlaying:()=>_(e=>!e),slidesId:f},{onMouseEnter:O,onMouseLeave:k,onFocus:A,onBlur:j,...M}=d,N=e=>{O?.(e),y(!0)},P=e=>{k?.(e),y(!1)},F=e=>{A?.(e),y(!0)},I=e=>{j?.(e),e.currentTarget.contains(e.relatedTarget)||y(!1)},L=g&&!v;return(0,q.jsx)(id.Provider,{value:D,children:(0,q.jsxs)(`section`,{ref:t,"aria-roledescription":`carousel`,className:G(xd.root,n),onMouseEnter:N,onMouseLeave:P,onFocus:F,onBlur:I,"data-component":`Carousel`,"data-count":w,"data-index":T,"data-playing":L||void 0,...M,children:[(0,q.jsx)(`div`,{id:f,className:xd.viewport,"aria-live":L?`off`:`polite`,"aria-atomic":`false`,"data-component":`Carousel.Viewport`,children:(0,q.jsx)(`div`,{className:G(xd.track,xd.motion),style:{"--carousel-index":T},"data-component":`Carousel.Track`,children:x.map((e,t)=>(0,q.jsx)(ad.Provider,{value:{index:t},children:e},e.key??t))})}),C??(0,q.jsx)(_d,{}),S]})})}Cd.displayName=`Carousel`;var wd=K(Cd);const Td=Object.assign(wd,{Slide:bd,Controls:_d,PreviousButton:md,NextButton:ud,Indicators:cd,PlayButton:fd}),Ed=(0,l.createContext)(null),Dd=()=>{let e=(0,l.useContext)(Ed);if(!e)throw Error(`Chart parts have to be rendered inside a Chart`);return e},Od={root:`chart`};function kd(e,t){let{chart:n,className:r,children:i,...a}=e;return(0,q.jsx)(Ed.Provider,{value:n,children:(0,q.jsx)(`div`,{ref:t,className:G(Od.root,r),"data-component":`Chart`,...a,children:(0,q.jsx)(p.ResponsiveContainer,{width:`100%`,height:`100%`,children:i})})})}kd.displayName=`Chart`;var Ad=K(kd);function jd(e){let{id:t,fillOpacity:n,stops:r}=e,i=Dd();return(0,q.jsx)(`linearGradient`,{id:t,x1:`0`,y1:`0`,x2:`0`,y2:`1`,"data-component":`Chart.Gradient`,children:r.map((e,t)=>(0,q.jsx)(`stop`,{offset:e.offset,stopColor:i.color(e.color),stopOpacity:e.opacity??n},t))})}jd.displayName=`Chart.Gradient`;const Md=[`var(--base-display-color-blue-5)`,`var(--base-display-color-orange-5)`,`var(--base-display-color-purple-5)`,`var(--base-display-color-green-5)`,`var(--base-display-color-pink-5)`],Nd=`var(--foreground-color-muted)`,Pd={blue:Md[0],orange:Md[1],purple:Md[2],green:Md[3],pink:Md[4],grid:`var(--border-color-muted)`,axis:`var(--border-color-default)`,surface:`var(--background-color-default)`,foreground:`var(--foreground-color-default)`,muted:Nd},Fd=(e,t)=>t??Md[e]??`var(--foreground-color-muted)`,Id=e=>typeof e==`object`&&!!e,Ld=(e,t)=>{if(!(!t||!Id(e)))return e[t]},Rd=e=>{if(typeof e==`string`){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(t)return new Date(Number(t[1]),Number(t[2])-1,Number(t[3]))}return new Date(e)},zd=(e,t)=>{let n=new Map;for(let r of e){let e=r[t],i=n.get(e)??[];i.push(r),n.set(e,i)}return Array.from(n.values())},Bd=e=>{let{data:t,series:n=[],sort:r,locale:i}=e,a=`chart-${l.useId().replace(/[^\w-]/g,``)}`,[o,s]=l.useState(null),c=n.map((e,t)=>({...e,color:Fd(t,e.color)})),u=l.useMemo(()=>r?[...t].sort((e,t)=>{let n=Number(e[r.by]),i=Number(t[r.by]);return r.direction===`desc`?i-n:n-i}):t,[t,r]),d=e=>e??`value`,f=e=>{if(e)return Pd[e]??e},p=l.useCallback(e=>{let t=new Intl.NumberFormat(i,e);return e=>t.format(e)},[i]),m=l.useCallback(e=>{let t=new Intl.DateTimeFormat(i,e);return e=>{let n=Rd(e);return Number.isNaN(n.getTime())?String(e):t.format(n)}},[i]),h=e=>{if(!Id(e))return;let t=c.find(t=>t.name===e.name||t.name===Ld(e.payload,`name`)||t.name===e.dataKey||t.name===Ld(e.payload,`dataKey`)),n=t?.name?.toString()??Ld(e.payload,`name`);return{name:n,color:t?.color??Ld(e.payload,`color`),icon:t?.icon,label:t?.label??n}},g=e=>zd(u,e),_=e=>t.reduce((t,n)=>t+Number(n[e]),0),v=e=>Math.min(...t.map(t=>Number(t[e]))),y=e=>Math.max(...t.map(t=>Number(t[e]))),b=e=>e?.reduce((e,t)=>{if(t.value===null||t.value===void 0||t.value===``)return e;let n=Number(t.value);return e+(Number.isNaN(n)?0:n)},0),x=(e,t,n)=>{let r=v(e),i=y(e);if(n){let[e,a]=typeof n==`function`?n({min:r,max:i}):n;return(t-e)/(a-e)*100}return t/_(e)*100},S=e=>o===e;return{id:a,key:d,data:u,series:c,getSeries:h,groupBy:g,color:f,formatNumber:p,formatDate:m,highlightedSeries:o,setHighlightedSeries:s,isHighlightedSeries:S,getSeriesOpacity:(e,t=.2)=>{if(e&&o)return S(e)?1:t},getTotal:_,getMin:v,getMax:y,getPayloadTotal:b,getValuePercent:x}},Vd={root:`chart-legend`,title:`chart-legend-title`,list:`chart-legend-list`,item:`chart-legend-item`,control:`chart-legend-control`,swatch:`chart-swatch`,label:`chart-legend-label`};function Hd(e){let{payload:t,align:n=`center`,verticalAlign:r=`bottom`,layout:i=`auto`,title:a,nameKey:o,interaction:s=`hover`,className:c}=e,l=Dd(),u=i===`auto`?n===`center`?`horizontal`:`vertical`:i,d=t?.filter(e=>e.color!==`none`||e.type!==`none`);return d?.length?(0,q.jsxs)(`div`,{className:G(Vd.root,c),"data-component":`Chart.Legend`,"data-align":n,"data-vertical-align":r,children:[a?(0,q.jsx)(`div`,{className:Vd.title,children:a}):null,(0,q.jsx)(`ul`,{className:Vd.list,"data-orientation":u,children:d.map((e,t)=>{let n=l.getSeries(e),r=n?.name,i=Ld(e.payload,o)??n?.label,a=(0,q.jsxs)(q.Fragment,{children:[n?.icon??(0,q.jsx)(`span`,{className:Vd.swatch,style:{background:l.color(n?.color)},"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:Vd.label,children:i})]});return(0,q.jsx)(`li`,{className:Vd.item,"data-component":`Chart.LegendItem`,"data-series":r,style:{opacity:l.getSeriesOpacity(r,.6)},children:s===`click`?(0,q.jsx)(`button`,{type:`button`,className:Vd.control,"aria-pressed":l.isHighlightedSeries(r),onClick:()=>{r&&l.setHighlightedSeries(e=>e===r?null:r)},children:a}):(0,q.jsx)(`span`,{className:Vd.control,onMouseEnter:()=>l.setHighlightedSeries(r??null),onMouseLeave:()=>l.setHighlightedSeries(null),children:a})},`${r??`series`}-${t}`)})})]}):null}Hd.displayName=`Chart.Legend`;const Ud={title:`chart-radial-title`,description:`chart-radial-description`},Wd=e=>`cx`in e&&`cy`in e;function Gd(e){let{viewBox:t,title:n,description:r,gap:i=24,fontSize:a=`2rem`}=e,o=Dd();return!t||!Wd(t)?null:(0,q.jsxs)(`text`,{x:t.cx,y:t.cy,textAnchor:`middle`,dominantBaseline:`middle`,"data-component":`Chart.RadialText`,children:[(0,q.jsx)(`tspan`,{className:Ud.title,x:t.cx,y:t.cy,style:{fontSize:a,fill:o.color(`foreground`)},children:n}),r?(0,q.jsx)(`tspan`,{className:Ud.description,x:t.cx,y:t.cy+i,style:{fill:o.color(`muted`)},children:r}):null]})}Gd.displayName=`Chart.RadialText`;const Kd={root:`chart-tooltip`,label:`chart-tooltip-label`,rows:`chart-tooltip-rows`,row:`chart-tooltip-row`,swatch:`chart-swatch`,name:`chart-tooltip-name`,value:`chart-tooltip-value`,divider:`chart-tooltip-divider`};function qd(e){let{payload:t,label:n,labelFormatter:r,hideLabel:i,hideIndicator:a,hideSeriesLabel:o,showTotal:s,fitContent:c,nameKey:u,indicator:d=`dot`,formatter:f,render:p,className:m}=e,h=Dd(),g=t?.filter(e=>e.color!==`none`||e.type!==`none`),_=l.useMemo(()=>h.getPayloadTotal(g),[h,g]),v=l.useMemo(()=>{let e=g?.[0];if(!e)return;let t=`${Ld(e.payload,u)??n??e.dataKey??`value`}`;return r?.(t,g??[])??t},[n,r,u,g]);if(!g?.length)return null;let y=(e,t)=>{let n=f?f(e,t):e?.toLocaleString?.();return Array.isArray(n)?n:[n,t]};return(0,q.jsxs)(`div`,{className:G(Kd.root,m),"data-component":`Chart.Tooltip`,"data-fit-content":c?``:void 0,children:[i?null:(0,q.jsx)(`div`,{className:Kd.label,children:v}),(0,q.jsx)(`div`,{className:Kd.rows,children:g.map((e,t)=>{if(p)return(0,q.jsx)(l.Fragment,{children:p(e.payload)},t);let n=h.getSeries(e),[r,i]=y(e.value,n?.label??e.name);return(0,q.jsxs)(`div`,{className:Kd.row,"data-component":`Chart.TooltipRow`,"data-series":n?.name,children:[n?.icon??(n?.color&&!a?(0,q.jsx)(`span`,{className:Kd.swatch,"data-indicator":d,style:{background:h.color(n.color)},"aria-hidden":`true`}):null),o?null:(0,q.jsx)(`span`,{className:Kd.name,children:i}),(0,q.jsx)(`span`,{className:Kd.value,children:r})]},t)})}),s&&_!==void 0?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`hr`,{className:Kd.divider}),(0,q.jsxs)(`div`,{className:Kd.row,"data-component":`Chart.TooltipTotal`,children:[(0,q.jsx)(`span`,{className:Kd.name,children:`Total`}),(0,q.jsx)(`span`,{className:Kd.value,children:y(_,``)[0]})]})]}):null]})}qd.displayName=`Chart.Tooltip`;const Jd=Object.assign(Ad,{Gradient:jd,Legend:Hd,RadialText:Gd,Tooltip:qd}),Yd=(0,l.createContext)({}),Xd={checkmark:`url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=")`,dash:`url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K")`},Zd={root:`checkbox`,mark:`checkbox-mark`,checked:`checkbox-checked`,disabled:`checkbox-disabled`};function Qd(e,t){let{className:n,style:r,checked:i,indeterminate:a,required:o,validationStatus:s,value:c,onChange:u,...d}=e,f=l.useRef(null),p=ar(t,f),m=l.useContext(Yd);return rr(()=>{f.current&&(f.current.indeterminate=a??!1)},[a,i]),(0,q.jsx)(`input`,{ref:p,type:`checkbox`,checked:a&&i!==void 0?!1:i,required:o,value:c,name:c,"aria-checked":a?`mixed`:void 0,"aria-required":o?!0:void 0,"aria-invalid":s===`error`||void 0,onChange:e=>{m.onChange?.(e),u?.(e)},className:G(Zd.root,Zd.mark,Zd.checked,Zd.disabled,n),style:{...r,"--checkbox-mark":a?Xd.dash:Xd.checkmark},"data-component":`Checkbox`,...d})}Qd.displayName=`Checkbox`;var $d=K(Qd);const ef=(0,l.createContext)({}),tf={root:`checkbox-card-description`};function nf(e,t){let{className:n,id:r,...i}=e,{descriptionId:a}=l.useContext(ef);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(tf.root,n),"data-component":`CheckboxCard.Description`,...i})}nf.displayName=`CheckboxCard.Description`;var rf=K(nf);const af={root:`checkbox-card-label`};function of(e,t){let{className:n,id:r,...i}=e,{labelId:a}=l.useContext(ef);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(af.root,n),"data-component":`CheckboxCard.Label`,...i})}of.displayName=`CheckboxCard.Label`;var sf=K(of);const cf={root:`checkbox-card-leading-visual`};function lf(e,t){let{className:n,"aria-label":r,...i}=e;return(0,q.jsx)(`span`,{ref:t,role:r?`img`:void 0,"aria-label":r,"aria-hidden":!r||void 0,className:G(cf.root,n),"data-component":`CheckboxCard.LeadingVisual`,...i})}lf.displayName=`CheckboxCard.LeadingVisual`;var uf=K(lf);const df={body:`checkbox-card-body`,control:`checkbox-card-control`},ff=W(`checkbox-card`,{variants:{disabled:{true:`checkbox-card-disabled`,false:`checkbox-card-interactive`},validation:{error:`checkbox-card-error`,success:`checkbox-card-success`}}});function pf(e,t){let{className:n,children:r,value:i,checked:a,defaultChecked:o,indeterminate:s,disabled:c,required:u,validationStatus:d,onChange:f,id:p,"aria-label":m,"aria-labelledby":h,"aria-describedby":g,..._}=e,v=l.useContext(Yd).disabled||c,y=Y(p),b=`${y}-label`,x=`${y}-description`,[S,C]=xr(r,{leadingVisual:uf,label:sf,description:rf}),w=h??(S.label&&!m?b:void 0),T=[S.description?x:void 0,g].filter(Boolean).join(` `)||void 0;return(0,q.jsx)(ef.Provider,{value:{labelId:b,descriptionId:x},children:(0,q.jsxs)(`label`,{ref:t,className:G(ff({disabled:!!v,validation:d}),n),"data-component":`CheckboxCard`,"data-disabled":v,"data-required":u,"data-validation":d,..._,children:[S.leadingVisual,(0,q.jsxs)(`div`,{className:df.body,children:[S.label,S.description,C]}),(0,q.jsx)($d,{id:y,value:i,checked:a,defaultChecked:o,indeterminate:s,disabled:v,required:u,validationStatus:d,onChange:f,"aria-label":m,"aria-labelledby":w,"aria-describedby":T,className:df.control})]})})}pf.displayName=`CheckboxCard`;var mf=K(pf);const hf=Object.assign(mf,{LeadingVisual:uf,Label:sf,Description:rf}),gf={root:`checkbox-group-caption`};function _f(e,t){let{className:n,...r}=e,{captionId:i}=l.useContext(Yd);return(0,q.jsx)(`span`,{ref:t,id:i,className:G(gf.root,n),"data-component":`CheckboxGroup.Caption`,...r})}_f.displayName=`CheckboxGroup.Caption`;var vf=K(_f);const yf={root:`checkbox-group-label`,disabled:`checkbox-group-label-disabled`,hidden:`sr-only`,required:`checkbox-group-label-required`};function bf(e,t){let{className:n,children:r,visuallyHidden:i,...a}=e,{disabled:o,required:s}=l.useContext(Yd);return(0,q.jsxs)(`span`,{ref:t,title:s?`required field`:void 0,className:G(yf.root,o&&yf.disabled,i&&yf.hidden,n),"data-component":`CheckboxGroup.Label`,"data-label-disabled":o,...a,children:[r,s?(0,q.jsx)(`span`,{className:yf.required,children:`*`}):null]})}bf.displayName=`CheckboxGroup.Label`;var xf=K(bf);const Sf={success:Xt,error:fn},Cf={icon:`checkbox-group-validation-icon`},wf=W(`checkbox-group-validation`,{variants:{variant:{success:`checkbox-group-validation-success`,error:`checkbox-group-validation-error`}}});function Tf(e,t){let{className:n,children:r,variant:i,...a}=e,{validationMessageId:o}=l.useContext(Yd),s=Sf[i];return(0,q.jsxs)(`span`,{ref:t,className:G(wf({variant:i}),n),"data-component":`CheckboxGroup.Validation`,"data-validation-status":i,...a,children:[(0,q.jsx)(s,{className:Cf.icon,"aria-hidden":`true`}),(0,q.jsx)(`span`,{id:o,children:r})]})}Tf.displayName=`CheckboxGroup.Validation`;var Ef=K(Tf);const Df={root:`checkbox-group`,legend:`checkbox-group-legend`,legendVisible:`checkbox-group-legend-visible`,body:`checkbox-group-body`,validation:`checkbox-group-validation-slot`,hidden:`sr-only`},Of=e=>{let t=[],n=e=>{l.Children.forEach(e,e=>{if(l.isValidElement(e)){if(e.type===$d){let{checked:n,defaultChecked:r,value:i}=e.props;(n||r)&&i&&t.push(i);return}n(e.props.children)}})};return n(e),t};function kf(e,t){let{as:n=`fieldset`,className:r,children:i,disabled:a,required:o,onChange:s,id:c,"aria-labelledby":u,...d}=e,[f,p]=xr(i,{label:xf,caption:vf,validation:Ef}),m=Y(c),h=f.caption?`${m}-caption`:void 0,g=f.validation?`${m}-validation`:void 0,[_,v]=l.useState(()=>Of(i)),y=e=>{let{value:t,checked:n}=e.currentTarget,r=n?[..._,t]:_.filter(e=>e!==t);v(r),s?.(r,e)},b=l.isValidElement(f.label)?!f.label.props.visuallyHidden:!1,x={disabled:a,required:o,captionId:h,validationMessageId:g,onChange:y};return(0,q.jsx)(Yd.Provider,{value:x,children:(0,q.jsxs)(n,{ref:t,id:m,disabled:a,"aria-labelledby":f.label?void 0:u,"aria-describedby":[g,h].filter(Boolean).join(` `)||void 0,className:G(Df.root,r),"data-component":`CheckboxGroup`,"data-disabled":a,"data-required":o,...d,children:[f.label?(0,q.jsxs)(`legend`,{className:G(Df.legend,b&&Df.legendVisible),children:[f.label,o?(0,q.jsx)(`span`,{className:Df.hidden,children:`, required`}):null,f.caption]}):f.caption,(0,q.jsx)(`div`,{className:Df.body,children:p}),f.validation?(0,q.jsx)(`div`,{className:Df.validation,children:f.validation}):null]})})}kf.displayName=`CheckboxGroup`;var Af=K(kf);const jf=Object.assign(Af,{Label:xf,Caption:vf,Validation:Ef}),Mf=(0,l.createContext)({}),Nf=()=>(0,l.useContext)(Mf),Pf=e=>{if(typeof document>`u`||typeof document.execCommand!=`function`)return!1;let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.top=`0`,t.style.insetInlineStart=`-9999px`,t.style.opacity=`0`;let n=document.activeElement;document.body.appendChild(t),t.select();try{return document.execCommand(`copy`)}finally{t.remove(),n?.focus?.()}},Ff=async e=>{if(typeof navigator<`u`&&typeof navigator.clipboard?.writeText==`function`)try{await navigator.clipboard.writeText(e);return}catch(t){if(Pf(e))return;throw t}if(!Pf(e))throw Error(`The clipboard could not be reached`)},If=(e={})=>{let{value:t,defaultValue:n,timeout:r=3e3,disabled:i,onValueChange:a,onStatusChange:o,onCopyError:s}=e,c=t!==void 0,[u,d]=l.useState(n??``),f=c?t:u,[p,m]=l.useState(0),h=p>0,g=l.useRef(o);return l.useEffect(()=>{g.current=o},[o]),l.useEffect(()=>{if(p===0||r<=0)return;let e=window.setTimeout(()=>{m(0),g.current?.(!1)},r);return()=>{window.clearTimeout(e)}},[p,r]),{value:f,copied:h,disabled:!!i,copy:()=>{i||Ff(f).then(()=>{m(e=>e+1),o?.(!0)},e=>{s?.(e)})},setValue:e=>{c||d(e),a?.(e)}}},Lf={root:`clipboard`,hidden:`sr-only`};function Rf(e,t){let{as:n=`div`,className:r,value:i,defaultValue:a,timeout:o,disabled:s,copiedAnnouncement:c=`Copied to clipboard`,onValueChange:u,onStatusChange:d,onCopyError:f,children:p,...m}=e,h=If({value:i,defaultValue:a,timeout:o,disabled:s,onValueChange:u,onStatusChange:d,onCopyError:f}),[g,_]=l.useState(void 0),v={...h,inputId:g,setInputId:_};return(0,q.jsx)(Mf.Provider,{value:v,children:(0,q.jsxs)(n,{ref:t,className:G(Lf.root,r),"data-component":`Clipboard`,"data-copied":h.copied,"data-disabled":h.disabled,...m,children:[p,c===null?null:(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Lf.hidden,"data-component":`Clipboard.Announcement`,children:h.copied?c:``})]})})}Rf.displayName=`Clipboard`;var zf=K(Rf);const Bf={root:`clipboard-control`};function Vf(e,t){let{as:n=`div`,className:r,...i}=e,{copied:a}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(Bf.root,r),"data-component":`Clipboard.Control`,"data-copied":!!a,...i})}Vf.displayName=`Clipboard.Control`;var Hf=K(Vf);const Uf={root:`clipboard-copy-text`,hidden:`sr-only`};function Wf(e,t){let{as:n=`span`,className:r,children:i=`Copy`,copied:a=`Copied`,visuallyHidden:o,...s}=e,{copied:c}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(Uf.root,o&&Uf.hidden,r),"data-component":`Clipboard.CopyText`,"data-copied":!!c,...s,children:c?a:i})}Wf.displayName=`Clipboard.CopyText`;var Gf=K(Wf);const Kf={root:`clipboard-indicator`,copied:`clipboard-indicator-copied`};function qf(e,t){let{as:n=`span`,className:r,children:i,copied:a,...o}=e,{copied:s}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(Kf.root,s&&Kf.copied,r),"aria-hidden":`true`,"data-component":`Clipboard.Indicator`,"data-copied":!!s,...o,children:s?a??(0,q.jsx)(Zt,{}):i??(0,q.jsx)(cn,{})})}qf.displayName=`Clipboard.Indicator`;var Jf=K(qf);const Yf=(0,l.createContext)({}),Xf=e=>{let{id:t,disabled:n,required:r,captionId:i,validationMessageId:a}=l.useContext(Yf);return{id:t,disabled:n,required:r,"aria-describedby":[a,i].filter(Boolean).join(` `)||void 0,...e}},Zf={root:`clipboard-input`};function Qf(e,t){let{required:n,...r}=Xf(e),{className:i,id:a,disabled:o,onFocus:s,...c}=r,{value:u,copied:d,disabled:f,setInputId:p}=l.useContext(Mf),m=Y(a);return rr(()=>(p?.(m),()=>p?.(void 0)),[m,p]),(0,q.jsx)(qo,{ref:t,id:m,value:u??``,readOnly:!0,disabled:o??f,onFocus:e=>{s?.(e),!e.defaultPrevented&&e.target.select()},className:G(Zf.root,i),"data-component":`Clipboard.Input`,"data-copied":!!d,...c})}Qf.displayName=`Clipboard.Input`;var $f=K(Qf);const ep={root:`clipboard-label`,disabled:`clipboard-label-disabled`};function tp(e,t){let{as:n=`label`,className:r,htmlFor:i,...a}=e,{inputId:o,disabled:s}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,htmlFor:n===`label`?i??o:void 0,className:G(ep.root,s&&ep.disabled,r),"data-component":`Clipboard.Label`,"data-disabled":!!s,...a})}tp.displayName=`Clipboard.Label`;var np=K(tp);const rp={root:`clipboard-trigger`};function ip(e,t){let{className:n,children:r,label:i=`Copy`,disabled:a,onClick:o,...s}=e,{copied:c,disabled:u,copy:d}=l.useContext(Mf),[f,p]=xr(r,{indicator:Jf}),m=f.indicator??(0,q.jsx)(Jf,{}),h=p.some(e=>e!=null&&e!==!1),g={disabled:a??u,onClick:e=>{o?.(e),!e.defaultPrevented&&d?.()},className:G(rp.root,n),"data-component":`Clipboard.Trigger`,"data-copied":!!c,...s};return h?(0,q.jsx)(pi,{ref:t,leadingVisual:m,...g,children:p}):(0,q.jsx)(gi,{ref:t,icon:m,"aria-label":i,...g})}ip.displayName=`Clipboard.Trigger`;var ap=K(ip);const op={root:`clipboard-value-text`};function sp(e,t){let{as:n=`span`,className:r,children:i,...a}=e,{value:o,copied:s}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(op.root,r),"data-component":`Clipboard.ValueText`,"data-copied":!!s,...a,children:i??o})}sp.displayName=`Clipboard.ValueText`;var cp=K(sp);const lp=Object.assign(zf,{Root:zf,Label:np,Control:Hf,Input:$f,Trigger:ap,Indicator:Jf,CopyText:Gf,ValueText:cp}),up={root:`code`};function dp(e,t){let{as:n=`code`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(up.root,r),"data-component":`Code`,...i})}dp.displayName=`Code`;var fp=K(dp);const pp=(0,l.createContext)({}),mp=`text`,hp=`github-light`,gp=`github-dark`,_p=e=>e.split(`
|
|
27
27
|
`).map(e=>e.length>0?[{content:e}]:[]),vp=async(e,t)=>{let{tokens:n}=await(0,m.codeToTokens)(e,{lang:t.language,themes:{light:t.lightTheme,dark:t.darkTheme},defaultColor:!1});return n.map(e=>e.map(e=>({content:e.content,style:e.htmlStyle})))},yp={root:`code-block`,numbered:`code-block-numbered`,wrap:`code-block-wrap`,nowrap:`code-block-nowrap`};function bp(e,t){let{as:n=`div`,className:r,language:i=mp,lightTheme:a=hp,darkTheme:o=gp,showLineNumbers:s=!1,wrap:c=`nowrap`,...l}=e,u={language:i,lightTheme:a,darkTheme:o,showLineNumbers:s,wrap:c};return(0,q.jsx)(pp.Provider,{value:u,children:(0,q.jsx)(n,{ref:t,className:G(yp.root,s&&yp.numbered,yp[c],r),"data-component":`CodeBlock`,"data-language":i,...l})})}bp.displayName=`CodeBlock`;var xp=K(bp);const Sp={root:`code-block-pre`,code:`code-block-code`,line:`code-block-line`,token:`code-block-token`};function Cp(e,t){let{className:n,children:r=``,language:i,...a}=e,{language:o=mp,lightTheme:s=hp,darkTheme:c=gp}=l.useContext(pp),u=i??o,d=r.replace(/\n$/,``),[f,p]=l.useState(null);l.useEffect(()=>{let e=!1;return vp(d,{language:u,lightTheme:s,darkTheme:c}).then(t=>{e||p({source:d,lines:t})}).catch(()=>{e||p({source:d,lines:_p(d)})}),()=>{e=!0}},[d,u,s,c]);let m=f?.source===d,h=m?f.lines:_p(d);return(0,q.jsx)(`pre`,{ref:t,className:G(Sp.root,n),"data-component":`CodeBlock.Code`,"data-language":u,"data-highlighted":m,...a,children:(0,q.jsx)(`code`,{className:Sp.code,children:h.map((e,t)=>(0,q.jsxs)(l.Fragment,{children:[t>0?`
|
|
28
28
|
`:null,(0,q.jsx)(`span`,{className:Sp.line,children:e.map((e,t)=>(0,q.jsx)(`span`,{className:Sp.token,style:e.style,children:e.content},t))})]},t))})})}Cp.displayName=`CodeBlock.Code`;var wp=K(Cp);const Tp=e=>{let[t,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(e.current===null)return;let t=new ResizeObserver(e=>{for(let t of e)if(t.target.scrollHeight>t.target.clientHeight||t.target.scrollWidth>t.target.clientWidth){n(!0);break}});return t.observe(e.current),()=>{t.disconnect()}},[e]),t},Ep={root:`code-block-content`};function Dp(e,t){let{as:n=`div`,className:r,...i}=e,a=l.useRef(null),o=ar(t,a),s=Tp(a);return(0,q.jsx)(n,{ref:o,tabIndex:s?0:void 0,className:G(Ep.root,r),"data-component":`CodeBlock.Content`,...i})}Dp.displayName=`CodeBlock.Content`;var Op=K(Dp);const kp={root:`code-block-header`};function Ap(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(kp.root,r),"data-component":`CodeBlock.Header`,...i})}Ap.displayName=`CodeBlock.Header`;var jp=K(Ap);const Mp={root:`code-block-title`};function Np(e,t){let{as:n=`span`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Mp.root,r),"data-component":`CodeBlock.Title`,...i})}Np.displayName=`CodeBlock.Title`;var Pp=K(Np);const Fp=Object.assign(xp,{Header:jp,Title:Pp,Content:Op,Code:wp}),Ip=(0,l.createContext)({}),Lp={root:`block`};function Rp(e,t){let{as:n=`div`,className:r,open:i,defaultOpen:a,disabled:o,onChange:s,...c}=e,u=Y(),d=i!==void 0,[f,p]=l.useState(!!a),m=d?i:f,[h,g]=l.useState(!0),_=e=>{o||(d||p(e),s?.(e))},v={triggerId:`${u}-trigger`,panelId:`${u}-panel`,isOpen:m,disabled:!!o,isPanelPresent:h,setPanelPresent:g,setOpen:_,toggle:()=>_(!m)};return(0,q.jsx)(Ip.Provider,{value:v,children:(0,q.jsx)(n,{ref:t,className:G(Lp.root,r),"data-component":`Collapsible`,"data-open":m,"data-disabled":!!o,...c})})}Rp.displayName=`Collapsible`;var zp=K(Rp);const Bp={root:`collapsible-panel`};function Vp(e,t){let{as:n=`div`,className:r,keepMounted:i=!0,hiddenUntilFound:a=!1,...o}=e,{panelId:s,isOpen:c,setOpen:u,setPanelPresent:d}=l.useContext(Ip),f=l.useRef(null),p=ar(t,f),m=i||a||!!c;return rr(()=>(d?.(m),()=>d?.(!1)),[m,d]),rr(()=>{let e=f.current;!e||!c||e.style.setProperty(`--collapsible-panel-height`,`${e.scrollHeight}px`)},[c]),rr(()=>{let e=f.current;!e||!a||c||e.setAttribute(`hidden`,`until-found`)},[a,c]),l.useEffect(()=>{let e=f.current;if(!e||!a)return;let t=()=>u?.(!0);return e.addEventListener(`beforematch`,t),()=>e.removeEventListener(`beforematch`,t)},[a,u]),m?(0,q.jsx)(n,{ref:p,id:s,hidden:!c,className:G(Bp.root,r),"data-component":`Collapsible.Panel`,"data-open":!!c,...o}):null}Vp.displayName=`Collapsible.Panel`;var Hp=K(Vp);const Up={root:`collapsible-trigger`,disabled:`collapsible-trigger-disabled`,labelEnd:`min-w-0 grow`,label:`min-w-0`,indicator:`collapsible-trigger-indicator`,indicatorOpen:`rotate-180`,indicatorStart:`-rotate-90`,indicatorStartOpen:`rotate-0`};function Wp(e,t){let{className:n,children:r,indicator:i=`end`,onClick:a,...o}=e,{triggerId:s,panelId:c,isOpen:u,disabled:d,isPanelPresent:f,toggle:p}=l.useContext(Ip),m=e=>{a?.(e),!e.defaultPrevented&&p?.()},h=i===`none`?null:(0,q.jsx)(Qt,{className:G(Up.indicator,i===`start`?u?Up.indicatorStartOpen:Up.indicatorStart:u&&Up.indicatorOpen),"aria-hidden":`true`});return(0,q.jsxs)(`button`,{ref:t,type:`button`,id:s,className:G(Up.root,d&&Up.disabled,n),onClick:m,disabled:d,"aria-expanded":!!u,"aria-controls":f?c:void 0,"data-component":`Collapsible.Trigger`,"data-open":!!u,"data-indicator":i,...o,children:[i===`start`?h:null,(0,q.jsx)(`span`,{className:i===`end`?Up.labelEnd:Up.label,children:r}),i===`end`?h:null]})}Wp.displayName=`Collapsible.Trigger`;var Gp=K(Wp);const Kp=Object.assign(zp,{Root:zp,Trigger:Gp,Panel:Hp,Content:Hp}),qp=(0,l.createContext)(null),Jp=(0,l.createContext)(null),Yp=(0,l.createContext)(null),Xp={root:`combobox`};function Zp(e,t){let{value:n,defaultValue:r=[],onValueChange:i,onSelect:a,inputValue:o,defaultInputValue:s=``,onInputValueChange:c,open:u,defaultOpen:d=!1,onOpenChange:f,highlightedValue:p,defaultHighlightedValue:m=null,onHighlightChange:h,multiple:g=!1,closeOnSelect:_=!g,selectionBehavior:v=g?`clear`:`replace`,inputBehavior:y=`none`,allowCustomValue:b=!1,loopFocus:x=!1,openOnClick:S=!1,openOnChange:C=!0,openOnKeyPress:w=!0,filter:T,shouldFilter:E=!0,disabled:D=!1,readOnly:O=!1,invalid:k=!1,required:A=!1,placeholder:j,name:M,form:N,id:P,className:F,children:I,onBlur:L,...ee}=e,R=Y(P),z=`${R}-input`,te=`${R}-label`,ne=`${R}-list`,B=l.useRef(null),re=ar(t,B),V=l.useRef(null),ie=l.useRef(null),ae=l.useRef(null),oe=n!==void 0,[se,ce]=l.useState(r),le=oe?n:se,ue=o!==void 0,[de,fe]=l.useState(s),pe=ue?o:de,me=u!==void 0,[he,ge]=l.useState(d),_e=me?u:he,ve=p!==void 0,[ye,be]=l.useState(m),xe=ve?p:ye,Se=l.useCallback(e=>{oe||ce(e),i?.(e)},[oe,i]),Ce=l.useCallback(e=>{ue||fe(e),c?.(e)},[ue,c]),we=l.useCallback(e=>{ve||be(e)},[ve]),Te=l.useRef(null),Ee=l.useCallback(e=>{me||ge(e),f?.(e),e||(Te.current=null,we(null))},[me,f,we]),[De,Oe]=l.useState(!1),[ke,Ae]=l.useState([]),je=l.useRef(new Map),Me=l.useCallback(e=>{je.current.set(e.value,e.label),Ae(t=>{let n=t.findIndex(t=>t.value===e.value);if(n===-1)return[...t,e];let r=[...t];return r[n]=e,r})},[]),Ne=l.useCallback(e=>{Ae(t=>t.filter(t=>t.value!==e))},[]),{contains:Pe,startsWith:Fe}=Gs({sensitivity:`base`}),Ie=T??Pe,Le=l.useMemo(()=>!E||!De||pe===``?ke.map(e=>e.value):ke.filter(e=>Ie(e.label,pe)).map(e=>e.value),[ke,Ie,pe,De,E]),Re=l.useMemo(()=>Le.filter(e=>!ke.find(t=>t.value===e)?.disabled),[ke,Le]),ze=(xe!==null&&Re.includes(xe)?xe:null)??(y!==`none`&&_e&&De&&pe!==``?Re[0]??null:null),Be=ke.find(e=>e.value===ze),Ve=y===`autocomplete`&&_e&&Be!==void 0&&pe!==``&&Fe(Be.label,pe)?Be.label:``,He=l.useRef(ze);l.useEffect(()=>{He.current!==ze&&(He.current=ze,h?.(ze))},[ze,h]);let Ue=l.useCallback(e=>{if(Re.length===0)return;let t=ze===null?-1:Re.indexOf(ze);if(t===-1){we(e>0?Re[0]:Re[Re.length-1]);return}let n=t+e,r=x?(n+Re.length)%Re.length:Math.min(Math.max(n,0),Re.length-1);we(Re[r])},[ze,x,Re,we]);l.useEffect(()=>{if(Te.current===null||Re.length===0)return;let e=Te.current;Te.current=null;let t=le.find(e=>Re.includes(e));we(t??(e===`first`?Re[0]:Re[Re.length-1]))},[Re,we,le]);let We=l.useCallback(e=>{Oe(!1),Ee(e)},[Ee]),Ge=l.useCallback(e=>{Te.current=e,We(!0)},[We]),Ke=l.useCallback(e=>{Ce(e),Oe(!0),we(null),C&&!_e&&Ee(!0)},[Ee,_e,C,we,Ce]),H=l.useCallback(e=>le.includes(e),[le]),qe=l.useCallback(e=>{let t=ke.find(t=>t.value===e);if(!t||t.disabled||D||O)return;let n=g?le.includes(e)?le.filter(t=>t!==e):[...le,e]:[e];Se(n),a?.(e),v===`replace`?Ce(t.label):v===`clear`&&Ce(``),Oe(!1),_&&Ee(!1),V.current?.focus()},[Ee,_,D,ke,g,a,O,v,Ce,Se,le]),Je=l.useCallback(()=>{D||O||(Se([]),Ce(``),Oe(!1),V.current?.focus())},[D,O,Ce,Se]),Ye=l.useCallback(e=>ke.find(t=>t.value===e)?.id,[ke]),Xe=l.useCallback(e=>Le.includes(e),[Le]),Ze=e=>{L?.(e);let t=e.relatedTarget;if(t instanceof Node&&(B.current?.contains(t)||ae.current?.contains(t))||(Ee(!1),Oe(!1),b))return;let n=le.length===0?``:je.current.get(le[0]),r=g?``:n;r!==void 0&&pe!==r&&Ce(r)},Qe=l.useMemo(()=>({inputId:z,labelId:te,listId:ne,getItemId:Ye,inputValue:pe,completion:Ve,onType:Ke,setInputValue:Ce,value:le,isSelected:H,select:qe,clear:Je,open:_e,setOpen:We,openAt:Ge,highlightedValue:ze,setHighlightedValue:we,moveHighlight:Ue,entries:ke,register:Me,unregister:Ne,matches:Le,isMatch:Xe,multiple:g,disabled:D,readOnly:O,invalid:k,required:A,placeholder:j,inputBehavior:y,openOnClick:S,openOnKeyPress:w,inputRef:V,controlRef:ie,contentRef:ae}),[Je,Ve,D,ke,Ye,ze,y,z,pe,k,Xe,H,te,ne,Le,Ue,g,Ke,_e,Ge,S,w,j,O,Me,A,qe,we,Ce,We,Ne,le]);return(0,q.jsx)(qp.Provider,{value:Qe,children:(0,q.jsxs)(`div`,{ref:re,className:G(Xp.root,F),onBlur:Ze,"data-component":`Combobox`,"data-open":_e||void 0,"data-multiple":g||void 0,"data-disabled":D||void 0,"data-readonly":O||void 0,"data-invalid":k||void 0,...ee,children:[I,M?le.map(e=>(0,q.jsx)(`input`,{type:`hidden`,name:M,value:e,form:N},e)):null]})})}Zp.displayName=`Combobox`;var Qp=K(Zp);const $p={root:`combobox-clear-trigger`};function em(e,t){let{className:n,icon:r=un,onClick:i,onMouseDown:a,"aria-label":o=`Clear`,...s}=e,c=l.useContext(qp);return!c||c.inputValue===``&&c.value.length===0?null:(0,q.jsx)(gi,{ref:t,icon:r,variant:`invisible`,size:`small`,tabIndex:-1,"aria-label":o,disabled:c.disabled||c.readOnly,className:G($p.root,n),onMouseDown:e=>{a?.(e),e.defaultPrevented||e.preventDefault()},onClick:e=>{i?.(e),!e.defaultPrevented&&c.clear()},"data-component":`Combobox.ClearTrigger`,...s})}em.displayName=`Combobox.ClearTrigger`;var tm=K(em);const nm={root:`combobox-content`};function rm(e,t){let{className:n,children:r,...i}=e;return(0,q.jsx)(`div`,{ref:t,className:G(nm.root,n),"data-component":`Combobox.Content`,...i,children:r})}rm.displayName=`Combobox.Content`;var im=K(rm);const am={root:`combobox-control`,disabled:`combobox-control-disabled`,invalid:`combobox-control-invalid`};function om(e,t){let{className:n,children:r,...i}=e,a=l.useContext(qp),o=ar(t,a?.controlRef??null);return a?(0,q.jsx)(`div`,{ref:o,className:G(am.root,a.disabled&&am.disabled,a.invalid&&am.invalid,n),"data-component":`Combobox.Control`,"data-open":a.open||void 0,"data-disabled":a.disabled||void 0,"data-readonly":a.readOnly||void 0,"data-invalid":a.invalid||void 0,...i,children:r}):null}om.displayName=`Combobox.Control`;var sm=K(om);const cm={root:`combobox-empty`};function lm(e,t){let{className:n,children:r=`No results found`,...i}=e,a=l.useContext(qp);return!a||a.entries.length===0||a.matches.length>0?null:(0,q.jsx)(`div`,{ref:t,role:`presentation`,className:G(cm.root,n),"data-component":`Combobox.Empty`,...i,children:r})}lm.displayName=`Combobox.Empty`;var um=K(lm);const dm={root:`combobox-input`},fm=[`ArrowDown`,`ArrowUp`],pm=[`Backspace`,`Delete`];function mm(e,t){let{className:n,onChange:r,onClick:i,onKeyDown:a,onKeyUp:o,...s}=e,c=l.useContext(qp),u=c?.inputRef,d=ar(t,u??null),[f,p]=l.useState(!0),m=c?.inputValue??``,h=f?c?.completion??``:``,g=h===``?m:h;l.useEffect(()=>{let e=u?.current;!e||h===``||e.value!==h||document.activeElement===e&&e.setSelectionRange(m.length,h.length)},[h,u,m]);let _=e=>{r?.(e),c?.onType(e.currentTarget.value)},v=e=>{i?.(e),!(e.defaultPrevented||!c||c.disabled)&&c.openOnClick&&!c.open&&c.setOpen(!0)},y=e=>{if(a?.(e),!(!c||e.defaultPrevented)&&(pm.includes(e.key)&&p(!1),!(e.ctrlKey||e.metaKey))){if(e.key===`Escape`){c.open?(e.preventDefault(),c.setOpen(!1)):c.inputValue!==``&&c.setInputValue(``);return}if(e.key===`Tab`){c.open&&c.setOpen(!1);return}if(e.key===`Enter`){c.open&&c.highlightedValue!==null&&(e.preventDefault(),c.select(c.highlightedValue));return}if(fm.includes(e.key)){if(e.preventDefault(),!c.open){c.openOnKeyPress&&!c.disabled&&c.openAt(e.key===`ArrowDown`?`first`:`last`);return}if(e.altKey){e.key===`ArrowUp`&&c.setOpen(!1);return}c.moveHighlight(e.key===`ArrowDown`?1:-1)}}},b=e=>{o?.(e),pm.includes(e.key)&&p(!0)};if(!c)return null;let x=c.open&&c.highlightedValue!==null?c.getItemId(c.highlightedValue):void 0;return(0,q.jsx)(qo,{ref:d,id:c.inputId,type:`text`,block:!0,role:`combobox`,autoComplete:`off`,"aria-autocomplete":c.inputBehavior===`autocomplete`?`both`:`list`,"aria-expanded":c.open,"aria-controls":c.open?c.listId:void 0,"aria-activedescendant":x,disabled:c.disabled,readOnly:c.readOnly,required:c.required,validationStatus:c.invalid?`error`:void 0,placeholder:c.placeholder,value:g,onChange:_,onClick:v,onKeyDown:y,onKeyUp:b,className:G(dm.root,n),"data-component":`Combobox.Input`,...s})}mm.displayName=`Combobox.Input`;var hm=K(mm);const gm={hidden:`hidden`},_m=W(`combobox-item`,{variants:{selected:{true:`combobox-item-selected`,false:``},highlighted:{true:`combobox-item-highlighted`,false:``},disabled:{true:`combobox-item-disabled`,false:``}}});function vm(e,t){let{value:n,label:r,disabled:i=!1,onSelect:a,className:o,children:s,onClick:c,onPointerMove:u,...d}=e,f=Y(),p=l.useContext(qp),m=l.useContext(Jp),h=l.useRef(null),g=ar(t,h),[_,v]=l.useState(r??``);rr(()=>{if(r!==void 0){v(r);return}let e=h.current,t=e?.querySelector(`[data-component="Combobox.ItemText"]`);v(((t??e)?.textContent??``).trim())},[r,s]);let y=p?.register,b=p?.unregister,x=m?.groupId;l.useEffect(()=>{if(!(!y||!b||_===``))return y({value:n,label:_,id:f,groupId:x,disabled:i}),()=>{b(n)}},[i,x,f,_,y,b,n]);let S=p?.isSelected(n)??!1,C=p?.highlightedValue===n,w=!(p?.entries.some(e=>e.value===n)??!1)||(p?.isMatch(n)??!0);l.useEffect(()=>{C&&h.current?.scrollIntoView?.({block:`nearest`})},[C]);let T=l.useMemo(()=>({value:n,selected:S,highlighted:C,disabled:i}),[i,C,S,n]);return(0,q.jsx)(Yp.Provider,{value:T,children:(0,q.jsx)(`div`,{ref:g,id:f,role:`option`,"aria-selected":S,"aria-disabled":i||void 0,className:G(_m({selected:S,highlighted:C,disabled:i}),!w&&gm.hidden,o),onClick:e=>{c?.(e),!(e.defaultPrevented||i)&&(a?.(n),p?.select(n))},onPointerMove:e=>{u?.(e),!e.defaultPrevented&&!i&&!C&&p?.setHighlightedValue(n)},"data-component":`Combobox.Item`,"data-value":n,"data-selected":S||void 0,"data-highlighted":C||void 0,"data-disabled":i||void 0,...d,children:s})})}vm.displayName=`Combobox.Item`;var ym=K(vm);const bm={root:`combobox-item-group`,hidden:`hidden`};function xm(e,t){let{forceMount:n=!1,className:r,children:i,...a}=e,o=Y(),s=Y(),c=l.useContext(qp),u=l.useMemo(()=>({groupId:o,labelId:s}),[o,s]),d=(c?.entries??[]).filter(e=>e.groupId===o),f=n||d.length===0||d.some(e=>c?.isMatch(e.value)??!0);return(0,q.jsx)(Jp.Provider,{value:u,children:(0,q.jsx)(`div`,{ref:t,role:`group`,"aria-labelledby":s,className:G(bm.root,!f&&bm.hidden,r),"data-component":`Combobox.ItemGroup`,...a,children:i})})}xm.displayName=`Combobox.ItemGroup`;var Sm=K(xm);const Cm={root:`combobox-item-group-label`};function wm(e,t){let{className:n,children:r,...i}=e,a=l.useContext(Jp);return(0,q.jsx)(`div`,{ref:t,id:a?.labelId,className:G(Cm.root,n),"data-component":`Combobox.ItemGroupLabel`,...i,children:r})}wm.displayName=`Combobox.ItemGroupLabel`;var Tm=K(wm);const Em={root:`combobox-item-indicator`,unmarked:`invisible`};function Dm(e,t){let{className:n,children:r,...i}=e,a=l.useContext(Yp)?.selected??!1;return(0,q.jsx)(`span`,{ref:t,"aria-hidden":`true`,className:G(Em.root,!a&&Em.unmarked,n),"data-component":`Combobox.ItemIndicator`,"data-selected":a||void 0,...i,children:r??(0,q.jsx)(Zt,{})})}Dm.displayName=`Combobox.ItemIndicator`;var Om=K(Dm);const km={root:`combobox-item-text`};function Am(e,t){let{className:n,children:r,...i}=e;return(0,q.jsx)(`span`,{ref:t,className:G(km.root,n),"data-component":`Combobox.ItemText`,...i,children:r})}Am.displayName=`Combobox.ItemText`;var jm=K(Am);const Mm={root:`combobox-label`,disabled:`combobox-label-disabled`};function Nm(e,t){let{className:n,children:r,...i}=e,a=l.useContext(qp);return a?(0,q.jsx)(`label`,{ref:t,id:a.labelId,htmlFor:a.inputId,className:G(Mm.root,a.disabled&&Mm.disabled,n),"data-component":`Combobox.Label`,"data-disabled":a.disabled||void 0,...i,children:r}):null}Nm.displayName=`Combobox.Label`;var Pm=K(Nm);const Fm={root:`combobox-list`};function Im(e,t){let{className:n,children:r,...i}=e,a=l.useContext(qp);return a?(0,q.jsx)(`div`,{ref:t,id:a.listId,role:`listbox`,"aria-labelledby":a.labelId,"aria-multiselectable":a.multiple||void 0,tabIndex:-1,className:G(Fm.root,n),"data-component":`Combobox.List`,...i,children:r}):null}Im.displayName=`Combobox.List`;var Lm=K(Im);const Rm=W([`combobox-positioner`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2`],{variants:{unplaced:{true:`invisible`,false:``}}}),zm=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign&&e.anchorWidth===t.anchorWidth;function Bm(e,t){let{side:n=`outside-bottom`,align:r=`start`,portalContainerName:i,className:a,style:o,children:s,onMouseDown:c,...u}=e,d=l.useContext(qp),f=d?.open??!1,p=d?.controlRef,m=d?.contentRef,h=ar(t,m??null),g=l.useRef(null),[_,v]=l.useState(null),y=l.useCallback(()=>{let e=p?.current,t=m?.current;if(!e||!t)return;let i={...aa(t,e,{side:n,align:r}),anchorWidth:e.getBoundingClientRect().width};g.current&&zm(g.current,i)||(g.current=i,v(i))},[r,p,m,n]);if(rr(()=>{if(!f){g.current=null,v(null);return}y();let e=new ResizeObserver(y),t=p?.current;return m?.current&&e.observe(m.current),t&&e.observe(t),window.addEventListener(`resize`,y),window.addEventListener(`scroll`,y,!0),()=>{e.disconnect(),window.removeEventListener(`resize`,y),window.removeEventListener(`scroll`,y,!0)}},[p,f,m,y]),!d||!f)return null;let b=e=>{c?.(e),e.defaultPrevented||e.preventDefault()};return(0,q.jsx)(ea,{containerName:i,children:(0,q.jsx)(`div`,{ref:h,className:G(Rm({unplaced:!_}),a),style:{...o,"--combobox-positioner-top":`${_?.top??0}px`,"--combobox-positioner-left":`${_?.left??0}px`,"--combobox-positioner-anchor-width":`${_?.anchorWidth??0}px`},onMouseDown:b,"data-component":`Combobox.Positioner`,"data-side":_?.anchorSide??n,"data-align":_?.anchorAlign??r,...u,children:s})})}Bm.displayName=`Combobox.Positioner`;var Vm=K(Bm);const Hm={root:`combobox-trigger`};function Um(e,t){let{className:n,icon:r=Qt,onClick:i,onMouseDown:a,"aria-label":o=`Show suggestions`,...s}=e,c=l.useContext(qp);return c?(0,q.jsx)(gi,{ref:t,icon:r,variant:`invisible`,size:`small`,tabIndex:-1,"aria-label":o,"aria-expanded":c.open,"aria-controls":c.open?c.listId:void 0,disabled:c.disabled,className:G(Hm.root,n),onMouseDown:e=>{a?.(e),e.defaultPrevented||e.preventDefault()},onClick:e=>{i?.(e),!(e.defaultPrevented||c.disabled)&&(c.setOpen(!c.open),c.inputRef.current?.focus())},"data-component":`Combobox.Trigger`,...s}):null}Um.displayName=`Combobox.Trigger`;var Wm=K(Um);const Gm=Object.assign(Qp,{Label:Pm,Control:sm,Input:hm,Trigger:Wm,ClearTrigger:tm,Positioner:Vm,Content:im,List:Lm,ItemGroup:Sm,ItemGroupLabel:Tm,Item:ym,ItemText:jm,ItemIndicator:Om,Empty:um}),Km=(e,t)=>{let n=0,r=0;for(let i of t){let t=e.indexOf(i,n);if(t===-1)return 0;r+=t-n,n=t+1}return Math.max(.5-r*.01,.1)},qm=(e,t)=>{if(e===t)return 1;if(e.startsWith(t))return .9;let n=e.indexOf(t);return n>0?/\s|[-_/]/.test(e[n-1])?.8:.6:Km(e,t)},Jm=(e,t,n=[])=>{let r=t.trim().toLowerCase();return r===``?1:[e,...n].map(e=>qm(e.trim().toLowerCase(),r)).reduce((e,t)=>Math.max(e,t),0)},Ym=(0,l.createContext)(null),Xm=(0,l.createContext)(null),Zm={root:`command-palette`,hidden:`sr-only`},Qm=(e,t)=>e.map((e,t)=>({entry:e,index:t})).filter(({entry:e})=>e.forceMount||(t[e.value]??0)>0).sort((e,n)=>{let r=(t[n.entry.value]??0)-(t[e.entry.value]??0);return r===0?e.index-n.index:r}).map(({entry:e})=>e.value);function $m(e,t){let{search:n,defaultSearch:r=``,onSearchChange:i,value:a,defaultValue:o=``,onValueChange:s,onSelect:c,filter:u=Jm,shouldFilter:d=!0,loop:f=!1,label:p=`Command palette`,className:m,children:h,...g}=e,_=Y(),v=Y(),y=n!==void 0,[b,x]=l.useState(r),S=y?n:b,C=a!==void 0,[w,T]=l.useState(o),E=C?a:w,[D,O]=l.useState([]),k=l.useCallback(e=>{O(t=>[...t.filter(t=>t.value!==e.value),e])},[]),A=l.useCallback(e=>{O(t=>t.filter(t=>t.value!==e))},[]),j=l.useMemo(()=>{let e={};for(let t of D)e[t.value]=d?u(t.value,S,t.keywords):1;return e},[D,u,S,d]),M=l.useMemo(()=>Qm(D,j),[D,j]),N=l.useMemo(()=>M.filter(e=>!D.find(t=>t.value===e)?.disabled),[D,M]),P=N.includes(E)?E:N[0]??``,F=D.find(e=>e.value===P)?.id,I=l.useCallback(e=>{C||T(e),s?.(e)},[C,s]),L=l.useRef(P);l.useEffect(()=>{L.current!==P&&(L.current=P,s?.(P))},[s,P]);let ee=l.useCallback(e=>{y||x(e),i?.(e)},[y,i]),R=l.useCallback(e=>{c?.(e)},[c]),z=e=>{if(N.length===0)return;let t=N.indexOf(P)+e,n=f?(t+N.length)%N.length:Math.min(Math.max(t,0),N.length-1);I(N[n])},te=e=>{if(!(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),z(e.key===`ArrowDown`?1:-1);return}e.key===`Enter`&&P!==``&&(e.preventDefault(),R(P))}},ne=l.useMemo(()=>({search:S,setSearch:ee,value:P,activeId:F,setValue:I,order:M,entries:D,scores:j,register:k,unregister:A,onSelect:R,listId:_,labelId:v,shouldFilter:d}),[F,D,R,v,_,M,k,j,S,ee,I,d,A,P]);return(0,q.jsx)(Ym.Provider,{value:ne,children:(0,q.jsxs)(`div`,{ref:t,className:G(Zm.root,m),onKeyDown:te,"data-component":`CommandPalette`,...g,children:[(0,q.jsx)(`span`,{id:v,className:Zm.hidden,children:p}),h]})})}$m.displayName=`CommandPalette`;var eh=K($m);let th=0,nh=``,rh=``;const ih=e=>{(0,l.useEffect)(()=>{if(!e){if(th++,th===1){let e=window.innerWidth-document.body.clientWidth;nh=document.body.style.overflow,rh=document.body.style.paddingRight,document.body.style.overflow=`hidden`,document.body.style.paddingRight=`${e}px`,document.body.setAttribute(`data-scroll-locked`,``)}return()=>{th--,th===0&&(document.body.style.overflow=nh,document.body.style.paddingRight=rh,document.body.removeAttribute(`data-scroll-locked`))}}},[e])},ah={backdrop:`command-palette-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short`,panel:`command-palette-panel motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-short`};function oh(e,t){let{open:n,onOpenChange:r,returnFocusRef:i,overlayClassName:a,className:o,children:s,...c}=e,u=l.useRef(null);return zi({containerRef:u,returnFocusRef:i,disabled:!n}),Hi(e=>{n&&(e.preventDefault(),r(!1))}),ih(!n),n?(0,q.jsx)(ea,{children:(0,q.jsx)(`div`,{className:G(ah.backdrop,a),onMouseDown:e=>{e.target===e.currentTarget&&r(!1)},"data-component":`CommandPalette.Backdrop`,children:(0,q.jsx)(`div`,{ref:u,role:`dialog`,"aria-modal":`true`,"aria-label":c.label??`Command palette`,className:ah.panel,"data-component":`CommandPalette.Dialog`,children:(0,q.jsx)(eh,{ref:t,className:o,...c,children:s})})})}):null}oh.displayName=`CommandPalette.Dialog`;var sh=K(oh);const ch={root:`command-palette-empty`};function lh(e,t){let{className:n,children:r=`No results found`,...i}=e,a=l.useContext(Ym);return!a||a.entries.length===0||a.order.length>0?null:(0,q.jsx)(`div`,{ref:t,role:`presentation`,className:G(ch.root,n),"data-component":`CommandPalette.Empty`,...i,children:r})}lh.displayName=`CommandPalette.Empty`;var uh=K(lh);const dh={root:`command-palette-group`,heading:`command-palette-group-heading`,hidden:`hidden`};function fh(e,t){let{heading:n,forceMount:r=!1,className:i,children:a,...o}=e,s=Y(),c=Y(),u=l.useContext(Ym),d=l.useMemo(()=>({groupId:s}),[s]),f=(u?.entries??[]).filter(e=>e.groupId===s),p=f.map(e=>u?.order.indexOf(e.value)??-1).filter(e=>e!==-1),m=r||f.length===0||p.length>0;return(0,q.jsx)(Xm.Provider,{value:d,children:(0,q.jsxs)(`div`,{ref:t,role:`group`,"aria-labelledby":n?c:void 0,className:G(dh.root,!m&&dh.hidden,i),style:{order:p.length>0?Math.min(...p):void 0},"data-component":`CommandPalette.Group`,...o,children:[n?(0,q.jsx)(`div`,{id:c,className:dh.heading,"data-component":`CommandPalette.GroupHeading`,children:n}):null,a]})})}fh.displayName=`CommandPalette.Group`;var ph=K(fh);const mh={root:`command-palette-input`};function hh(e,t){let{className:n,placeholder:r=`Type a command or search`,...i}=e,a=l.useContext(Ym);return a?(0,q.jsx)(qo,{ref:t,type:`text`,size:`large`,block:!0,role:`combobox`,"aria-expanded":`true`,"aria-autocomplete":`list`,"aria-controls":a.listId,"aria-labelledby":a.labelId,"aria-activedescendant":a.activeId,autoComplete:`off`,leadingVisual:On,placeholder:r,value:a.search,onChange:e=>a.setSearch(e.target.value),className:G(mh.root,n),"data-component":`CommandPalette.Input`,...i}):null}hh.displayName=`CommandPalette.Input`;var gh=K(hh);const _h={root:`command-palette-item`,active:`command-palette-item-active`,unavailable:`command-palette-item-unavailable`,hidden:`hidden`};function vh(e,t){let{value:n,keywords:r,disabled:i=!1,forceMount:a=!1,onSelect:o,className:s,children:c,onClick:u,onPointerMove:d,...f}=e,p=Y(),m=l.useContext(Ym),h=l.useContext(Xm),g=l.useRef(null),_=ar(t,g),[v,y]=l.useState(n??``);rr(()=>{y(n??(g.current?.textContent??``).trim())},[n,c]);let b=(r??[]).join(`\0`),x=m?.register,S=m?.unregister,C=h?.groupId;l.useEffect(()=>{if(!(!x||!S||v===``))return x({value:v,id:p,keywords:b===``?[]:b.split(`\0`),groupId:C,disabled:i,forceMount:a}),()=>{S(v)}},[i,a,C,p,b,x,S,v]);let w=m?.order.indexOf(v)??-1,T=m?.value===v&&v!==``,E=m===null||v===``||m.scores[v]===void 0||w!==-1;return l.useEffect(()=>{T&&g.current?.scrollIntoView?.({block:`nearest`})},[T]),(0,q.jsx)(`div`,{ref:_,id:p,role:`option`,"aria-selected":T,"aria-disabled":i||void 0,className:G(_h.root,T&&_h.active,i&&_h.unavailable,!E&&_h.hidden,s),style:{order:w===-1?void 0:w},onClick:e=>{u?.(e),!(i||e.defaultPrevented)&&(o?.(v),m?.onSelect(v))},onPointerMove:e=>{d?.(e),!i&&!T&&m?.setValue(v)},"data-component":`CommandPalette.Item`,"data-value":v||void 0,"data-active":T||void 0,"data-disabled":i||void 0,...f,children:c})}vh.displayName=`CommandPalette.Item`;var yh=K(vh);const bh={root:`command-palette-list`};function xh(e,t){let{maxHeight:n=400,className:r,style:i,children:a,...o}=e,s=l.useContext(Ym);return s?(0,q.jsx)(`div`,{ref:t,id:s.listId,role:`listbox`,"aria-labelledby":s.labelId,className:G(bh.root,r),style:{...i,maxHeight:`${n}px`},"data-component":`CommandPalette.List`,...o,children:a}):null}xh.displayName=`CommandPalette.List`;var Sh=K(xh);const Ch={root:`command-palette-loading`};function wh(e,t){let{label:n=`Loading`,className:r,children:i,...a}=e;return(0,q.jsx)(`div`,{ref:t,role:`presentation`,className:G(Ch.root,r),"data-component":`CommandPalette.Loading`,...a,children:i??(0,q.jsx)($r,{size:`small`,srText:n})})}wh.displayName=`CommandPalette.Loading`;var Th=K(wh);const Eh={root:`command-palette-separator`};function Dh(e,t){let{alwaysRender:n=!1,className:r,...i}=e,a=l.useContext(Ym);return!n&&a!==null&&a.search.trim()!==``?null:(0,q.jsx)(`div`,{ref:t,role:`separator`,className:G(Eh.root,r),"data-component":`CommandPalette.Separator`,...i})}Dh.displayName=`CommandPalette.Separator`;var Oh=K(Dh);const kh=Object.assign(eh,{Dialog:sh,Input:gh,List:Sh,Group:ph,Item:yh,Separator:Oh,Empty:uh,Loading:Th}),Ah={root:`scrollable-region`};function jh(e,t){let{as:n=`div`,className:r,"aria-label":i,"aria-labelledby":a,...o}=e,s=l.useRef(null),c=ar(t,s),u=Tp(s)?{role:`region`,tabIndex:0,"aria-label":i,"aria-labelledby":a}:{};return(0,q.jsx)(n,{ref:c,className:G(Ah.root,r),"data-component":`ScrollableRegion`,...u,...o})}jh.displayName=`ScrollableRegion`;var Mh=K(jh);const Nh={root:`dialog-body`};function Ph(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Nh.root,r),"data-component":`Dialog.Body`,...i})}Ph.displayName=`Dialog.Body`;var Fh=K(Ph);const Ih=(0,l.createContext)(void 0);function Lh({buttons:e}){let t=l.useContext(Ih),n=e.findIndex(e=>e.autoFocus),r=ar(t?.autoFocusRef,e[n]?.ref);return(0,q.jsx)(q.Fragment,{children:e.map((e,t)=>{let{content:i,buttonType:a=`default`,autoFocus:o,ref:s,...c}=e;return(0,q.jsx)(pi,{ref:o&&t===n?r:s,variant:a===`normal`?`default`:a,"data-component":`Dialog.FooterButton`,...c,children:i},t)})})}Lh.displayName=`Dialog.Buttons`;function Rh(e,t){let{onClose:n,...r}=e;return(0,q.jsx)(gi,{ref:t,icon:un,"aria-label":`Close`,variant:`invisible`,onClick:n,"data-component":`Dialog.CloseButton`,...r})}Rh.displayName=`Dialog.CloseButton`;var zh=K(Rh);const Bh={root:`dialog-footer`,scroll:`dialog-footer-scroll`};function Vh(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Bh.root,Bh.scroll,r),"data-component":`Dialog.Footer`,...i})}Vh.displayName=`Dialog.Footer`;var Hh=K(Vh);const Uh={root:`dialog-header`};function Wh(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Uh.root,r),"data-component":`Dialog.Header`,...i})}Wh.displayName=`Dialog.Header`;var Gh=K(Wh);const Kh={root:`dialog-subtitle`};function qh(e,t){let{as:n=`h2`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Kh.root,r),"data-component":`Dialog.Subtitle`,...i})}qh.displayName=`Dialog.Subtitle`;var Jh=K(qh);const Yh={root:`dialog-title`};function Xh(e,t){let{as:n=`h1`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Yh.root,r),"data-component":`Dialog.Title`,...i})}Xh.displayName=`Dialog.Title`;var Zh=K(Xh);const Qh={backdrop:`dialog-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short`,backdropPosition:{center:`dialog-backdrop-center`,left:`dialog-backdrop-left`,right:`dialog-backdrop-right`},backdropNarrowPosition:{center:`dialog-backdrop-narrow-center`,bottom:`dialog-backdrop-narrow-bottom`,fullscreen:`dialog-backdrop-narrow-fullscreen`},backdropAlign:{top:`dialog-backdrop-align-top`,center:`dialog-backdrop-align-center`,bottom:`dialog-backdrop-align-bottom`},backdropNarrowAlign:{top:`dialog-backdrop-narrow-align-top`,center:`dialog-backdrop-narrow-align-center`,bottom:`dialog-backdrop-narrow-align-bottom`},root:`dialog motion-safe:animate-in motion-safe:duration-short`,width:{small:`dialog-width-small`,medium:`dialog-width-medium`,large:`dialog-width-large`,xlarge:`dialog-width-xlarge`},customWidth:`dialog-width-custom`,height:{small:`dialog-height-small`,large:`dialog-height-large`,auto:`dialog-height-auto`},position:{center:`motion-safe:fade-in motion-safe:zoom-in-50`,left:`dialog-left motion-safe:slide-in-from-left`,right:`dialog-right motion-safe:slide-in-from-right`},narrowPosition:{center:``,bottom:`dialog-narrow-bottom max-medium:motion-safe:zoom-in-100 max-medium:motion-safe:slide-in-from-bottom`,fullscreen:`dialog-narrow-fullscreen`},align:{top:`dialog-align-top`,center:``,bottom:`dialog-align-bottom`},headerInner:`dialog-header-inner`,headerContent:`dialog-header-content`,overflowWrapper:`dialog-overflow-wrapper`,overflowWrapperBordered:`dialog-overflow-wrapper-bordered`},$h={narrow:`center`,regular:`center`};let eg=0,tg=``,ng=``;const rg=e=>typeof e==`string`&&e in Qh.width,ig=e=>typeof e==`number`?`${e}px`:e,ag=({title:e,subtitle:t,dialogLabelId:n,dialogDescriptionId:r,onClose:i})=>(0,q.jsx)(Gh,{children:(0,q.jsxs)(`div`,{className:Qh.headerInner,children:[(0,q.jsxs)(`div`,{className:Qh.headerContent,children:[(0,q.jsx)(Zh,{id:n,children:e}),t?(0,q.jsx)(Jh,{id:r,children:t}):null]}),(0,q.jsx)(zh,{onClose:()=>i(`close-button`)})]})}),og=({children:e})=>(0,q.jsx)(Fh,{children:e}),sg=e=>{let t=e.key===`ArrowRight`?1:e.key===`ArrowLeft`?-1:0;if(e.defaultPrevented||t===0)return;let n=Array.from(e.currentTarget.querySelectorAll(`[data-component='Dialog.FooterButton']:not([disabled])`)),r=n.indexOf(document.activeElement);r!==-1&&(e.preventDefault(),n[(r+t+n.length)%n.length].focus())},cg=({footerButtons:e})=>e?(0,q.jsx)(Hh,{onKeyDown:sg,children:(0,q.jsx)(Lh,{buttons:e})}):null;function lg(e,t){let{title:n=`Dialog`,subtitle:r=``,renderHeader:i,renderBody:a,renderFooter:o,footerButtons:s,onClose:c,role:u=`dialog`,width:d=`xlarge`,height:f=`auto`,position:p=$h,align:m,returnFocusRef:h,initialFocusRef:g,className:_,style:v,children:y,...b}=e,x=Y(),S=Y(),C=l.useRef(null),w=ar(t,C),T=l.useRef(null),E=l.useRef(null),D=l.useRef(null),[O,k]=l.useState(!1),[A,j]=l.useState(`wrap`),M=Tp(E);zi({containerRef:C,initialFocusRef:g??D,returnFocusRef:h}),Hi(e=>{c(`escape`),e.preventDefault()}),l.useEffect(()=>{if(eg++,eg===1){let e=window.innerWidth-document.body.clientWidth;tg=document.body.style.overflow,ng=document.body.style.paddingRight,document.body.style.overflow=`hidden`,document.body.style.paddingRight=`${e}px`,document.body.setAttribute(`data-dialog-scroll-disabled`,``)}return()=>{eg--,eg===0&&(document.body.style.overflow=tg,document.body.style.paddingRight=ng,document.body.removeAttribute(`data-dialog-scroll-disabled`))}},[]);let[N,P]=xr(y,{header:Gh,body:Fh,footer:Hh}),F={...e,title:n,subtitle:r,role:u,footerButtons:s,dialogLabelId:x,dialogDescriptionId:S},I=N.header??(i??ag)(F),L=N.body??(a??og)({...F,children:P}),ee=N.footer??(o??cg)(F),R=!!ee,z=l.useCallback(()=>{let e=C.current,t=E.current;if(!R||!e||!t)return;e.setAttribute(`data-footer-button-layout`,`wrap`);let n=t.clientHeight>=48?`wrap`:`scroll`;e.setAttribute(`data-footer-button-layout`,n),j(n)},[R]);l.useEffect(()=>{let e=T.current;if(!e)return;let t=new ResizeObserver(z);return t.observe(e),()=>{t.disconnect()}},[z]);let te=e=>{e.target===e.currentTarget&&O&&c(`escape`)},ne=typeof p==`string`?{regular:p}:p,B=ne.regular??`center`,re=ne.narrow,V=B===`center`?m:void 0,ie=Ui(`position`,ne),ae=m?{"data-align":m}:void 0;return(0,q.jsx)(Ih.Provider,{value:{autoFocusRef:D},children:(0,q.jsx)(ea,{children:(0,q.jsx)(`div`,{ref:T,className:G(Qh.backdrop,Qh.backdropPosition[B],V&&Qh.backdropAlign[V],re&&Qh.backdropNarrowPosition[re],re===`center`&&V&&Qh.backdropNarrowAlign[V]),onClick:te,onMouseDown:e=>{k(e.target===e.currentTarget)},"data-component":`Dialog.Backdrop`,...ie,...ae,children:(0,q.jsxs)(`div`,{ref:w,role:u,"aria-labelledby":x,"aria-describedby":S,"aria-modal":!0,className:G(Qh.root,rg(d)?Qh.width[d]:Qh.customWidth,Qh.height[f],Qh.position[B],V&&Qh.align[V],re&&Qh.narrowPosition[re],_),style:{...v,...rg(d)?{}:{"--dialog-width":ig(d)}},"data-component":`Dialog`,"data-width":rg(d)?d:void 0,"data-height":f,"data-has-footer":R?``:void 0,"data-footer-button-layout":R?A:void 0,...ie,...ae,...b,children:[I,(0,q.jsx)(Mh,{ref:E,"aria-labelledby":x,className:G(Qh.overflowWrapper,R&&M&&Qh.overflowWrapperBordered),children:L}),ee]})})})})}lg.displayName=`Dialog`;var ug=K(lg);function dg(e,t){let{onClose:n,title:r,cancelButtonContent:i=`Cancel`,confirmButtonContent:a=`OK`,confirmButtonType:o=`normal`,cancelButtonLoading:s=!1,confirmButtonLoading:c=!1,overrideButtonFocus:l,width:u=`medium`,height:d,className:f,children:p}=e,m=l??(o===`danger`?`cancel`:`confirm`);return(0,q.jsx)(ug,{ref:t,title:r,onClose:n,footerButtons:[{content:i,onClick:()=>n(`cancel`),autoFocus:m===`cancel`,loading:s},{content:a,buttonType:o,onClick:()=>n(`confirm`),autoFocus:m===`confirm`,loading:c}],role:`alertdialog`,width:u,height:d,className:f,"data-component":`ConfirmationDialog`,children:p})}dg.displayName=`ConfirmationDialog`;var fg=K(dg);const pg=({content:e,...t})=>new Promise(n=>{let r=document.createElement(`div`);document.body.append(r);let i=(0,h.createRoot)(r);i.render((0,q.jsx)(fg,{...t,onClose:e=>{queueMicrotask(()=>{i.unmount(),r.remove()}),n(e===`confirm`)},children:e}))}),mg=()=>pg,hg=(0,l.createContext)(void 0),gg={x:0,y:0,size:0};function _g(e){let{children:t,open:n,onOpenChange:r,disabled:i=!1,portalContainerName:a}=e,o=l.useRef(null),[s,c]=l.useState(gg),u=n!==void 0,[d,f]=l.useState(!1),p=(u?n:d)&&!i,m=l.useCallback(e=>{f(e),r?.(e)},[r]),h=l.useCallback(e=>{c(e),m(!0)},[m]),g=l.useCallback(()=>m(!1),[m]),_=l.useMemo(()=>({triggerRef:o,point:s,open:p,disabled:i,onOpen:h,onClose:g,portalContainerName:a}),[s,p,i,h,g,a]);return(0,q.jsx)(hg.Provider,{value:_,children:t})}_g.displayName=`ContextMenu`;const vg={point:`context-menu-point`,container:`context-menu-overlay`};function yg(e){let{children:t,align:n=`start`,side:r=`outside-bottom`,className:i,returnFocusRef:a,"aria-label":o=`Context menu`,"aria-labelledby":s,...c}=e,u=l.useContext(hg),d=u?.onClose,f=l.useRef(null),p=l.useCallback(()=>d?.(),[d]),m=e=>{!e.defaultPrevented&&e.key===`Tab`&&d?.()},h=l.useMemo(()=>({container:`ContextMenu`,listRole:`menu`,listLabel:s?void 0:o,listLabelledBy:s,selectionAttribute:`aria-checked`,afterSelect:p}),[o,s,p]),g=l.useMemo(()=>({anchorRef:f,renderAnchor:null,open:!!u?.open,onClose:p}),[u?.open,p]);if(!u||!u.open)return null;let{point:_}=u;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(ea,{containerName:u.portalContainerName,children:(0,q.jsx)(`div`,{ref:f,"aria-hidden":!0,className:vg.point,style:{"--context-menu-point-top":`${_.y}px`,"--context-menu-point-left":`${_.x}px`,"--context-menu-point-size":`${_.size}px`},"data-component":`ContextMenu.Point`})}),(0,q.jsx)(da,{renderAnchor:null,anchorRef:f,open:u.open,onClose:p,align:n,side:r,anchorOffset:0,className:i,overlayProps:{portalContainerName:u.portalContainerName},focusTrapSettings:{returnFocusRef:a??u.triggerRef},...c,children:(0,q.jsx)(`div`,{className:vg.container,onKeyDown:m,"data-component":`ContextMenu.Overlay`,children:(0,q.jsx)(Mi.Provider,{value:g,children:(0,q.jsx)(Ar.Provider,{value:h,children:t})})})})]})}yg.displayName=`ContextMenu.Overlay`;const bg={trigger:`context-menu-trigger`};function xg(e){let{children:t,className:n,onContextMenu:r,onTouchStart:i,onTouchMove:a,onTouchEnd:o,onTouchCancel:s,...c}=e,u=l.useContext(hg),d=!!u?.disabled,f=u?.onOpen,p=l.useRef(null),m=l.useRef(null),h=l.useCallback(()=>{m.current!==null&&(window.clearTimeout(m.current),m.current=null),p.current=null},[]);return l.useEffect(()=>h,[h]),(0,q.jsx)(`div`,{ref:u?.triggerRef,tabIndex:-1,className:G(bg.trigger,n),onContextMenu:e=>{r?.(e),!(d||e.defaultPrevented)&&(e.preventDefault(),h(),f?.({x:e.clientX,y:e.clientY,size:0}))},onTouchStart:e=>{if(i?.(e),h(),d||e.defaultPrevented||e.touches.length!==1)return;e.stopPropagation();let t=e.touches[0],n={x:t.clientX,y:t.clientY};p.current=n,m.current=window.setTimeout(()=>{m.current=null,f?.({...n,size:10})},500)},onTouchMove:e=>{a?.(e);let t=p.current;if(!t)return;if(e.touches.length!==1){h();return}let n=e.touches[0];(Math.abs(n.clientX-t.x)>10||Math.abs(n.clientY-t.y)>10)&&h()},onTouchEnd:e=>{o?.(e),h()},onTouchCancel:e=>{s?.(e),h()},"data-component":`ContextMenu.Trigger`,"data-open":u?.open?``:void 0,...c,children:t})}xg.displayName=`ContextMenu.Trigger`;const Sg=Object.assign(_g,{Trigger:xg,Overlay:yg,Divider:Br}),Cg={wrapper:`data-table-wrapper`},wg=W(`data-table`,{variants:{cellPadding:{condensed:`data-table-cell-padding-condensed`,normal:`data-table-cell-padding-normal`,spacious:`data-table-cell-padding-spacious`}}});function Tg(e,t){let{className:n,style:r,cellPadding:i=`normal`,gridTemplateColumns:a,"aria-labelledby":o,...s}=e;return(0,q.jsx)(Mh,{...o?{"aria-labelledby":o}:{"aria-label":`Table`},className:Cg.wrapper,children:(0,q.jsx)(`table`,{ref:t,role:`table`,"aria-labelledby":o,className:G(wg({cellPadding:i}),n),style:{...r,"--table-grid-template-columns":a},"data-component":`Table`,"data-cell-padding":i,...s})})}Tg.displayName=`Table`;var Eg=K(Tg);const Dg={root:`data-table-actions`};function Og(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Dg.root,n),"data-component":`Table.Actions`,...r})}Og.displayName=`Table.Actions`;var kg=K(Og);const Ag=`data-table-subgrid`,jg=e=>e.map(e=>{let t=e.width??`grow`,n=`auto`,r=`1fr`;return t===`auto`&&(r=`auto`),t===`grow`&&!e.maxWidth&&(n=`max-content`),t===`growCollapse`&&(n=`0`),e.minWidth&&(n=typeof e.minWidth==`number`?`${e.minWidth}px`:e.minWidth),e.maxWidth&&(r=typeof e.maxWidth==`number`?`${e.maxWidth}px`:e.maxWidth),typeof t!=`number`&&[`grow`,`growCollapse`,`auto`].includes(t)?n===r?n:`minmax(${n}, ${r})`:typeof t==`number`?`${t}px`:t}),Mg=e=>jg(e).join(` `);function Ng(e,t){let{className:n,...r}=e;return(0,q.jsx)(`tbody`,{ref:t,role:`rowgroup`,className:G(Ag,n),"data-component":`Table.Body`,...r})}Ng.displayName=`Table.Body`;var Pg=K(Ng);const Fg={root:`data-table-cell`,end:`data-table-cell-end`,rowHeader:`data-table-cell-row-header`};function Ig(e,t){let{className:n,align:r,scope:i,...a}=e;return(0,q.jsx)(i?`th`:`td`,{ref:t,scope:i,role:i?`rowheader`:`cell`,className:G(Fg.root,r===`end`&&Fg.end,i&&Fg.rowHeader,n),"data-component":`Table.Cell`,"data-cell-align":r,...a})}Ig.displayName=`Table.Cell`;var Lg=K(Ig);const Rg={root:`data-table-cell-placeholder`};function zg(e,t){let{className:n,...r}=e;return(0,q.jsx)(Io,{ref:t,className:G(Rg.root,n),"data-component":`Table.CellPlaceholder`,...r})}zg.displayName=`Table.CellPlaceholder`;var Bg=K(zg);const Vg={root:`data-table-container`,spacing:`data-table-container-spacing`};function Hg(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Vg.root,Vg.spacing,r),"data-component":`Table.Container`,...i})}Hg.displayName=`Table.Container`;var Ug=K(Hg);const Wg={root:`data-table-divider`};function Gg(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,role:`presentation`,className:G(Wg.root,n),"data-component":`Table.Divider`,...r})}Gg.displayName=`Table.Divider`;var Kg=K(Gg);function qg(e,t){let{title:n=`Error`,children:r,onRetry:i,onDismiss:a}=e;return(0,q.jsx)(fg,{ref:t,title:n,confirmButtonContent:`Retry`,cancelButtonContent:`Dismiss`,onClose:e=>{if(e===`confirm`){i?.();return}a?.()},children:r})}qg.displayName=`Table.ErrorDialog`;var Jg=K(qg);function Yg(e,t){let{className:n,...r}=e;return(0,q.jsx)(`thead`,{ref:t,role:`rowgroup`,className:G(Ag,n),"data-component":`Table.Head`,...r})}Yg.displayName=`Table.Head`;var Xg=K(Yg);const Zg={root:`data-table-header`,end:`data-table-header-end`,sorted:`data-table-header-sorted`};function Qg(e,t){let{className:n,align:r,...i}=e;return(0,q.jsx)(`th`,{ref:t,role:`columnheader`,scope:`col`,className:G(Zg.root,Zg.sorted,r===`end`&&Zg.end,n),"data-component":`Table.Header`,"data-cell-align":r,...i})}Qg.displayName=`Table.Header`;var $g=K(Qg);const e_=(e,t,n,r,i)=>{let a={type:`previous`,num:t-1,disabled:t===1},o={type:`next`,num:t+1,disabled:t===e};if(!n)return[a,o];if(e<=0)return[a,{...o,disabled:!0}];let s=[],c=(e,n,r=!1)=>{for(let i=e;i<=n;i++)s.push({type:`number`,num:i,selected:i===t,precedesBreak:i===n&&r})},l=e=>{s.push({type:`break`,num:e+1})},u=i+r;if(e<=u+u+3)return c(1,e),[a,...s,o];let d=0,f=0;t-u-1<=1?f=t-u-2:d=t-u-1;let p=0,m=0;e-t-u<=1?m=e-t-u-1:p=e-t-u;let h=d>0,g=p>0;return c(1,r,h),h&&l(r),c(r+d+m+1,e-f-p-r,g),g&&l(e-f-p-r),c(e-r+1,e),[a,...s,o]},t_=(e,t,n)=>{if(e.type===`break`)return{key:`page-${e.num}-break`,content:`…`,presentational:!0,props:{}};if(e.type===`number`)return{key:`page-${e.num}`,content:String(e.num),props:{href:t(e.num),"aria-label":`Page ${e.num}${e.precedesBreak?`...`:``}`,"aria-current":e.selected?`page`:void 0,onClick:n}};let r=e.type===`previous`?`prev`:`next`,i=e.type===`previous`?`Previous`:`Next`,a=`page-${r}`;return e.disabled?{key:a,content:i,props:{rel:r,"aria-hidden":!0,"aria-disabled":!0}}:{key:a,content:i,props:{rel:r,href:t(e.num),"aria-label":`${i} Page`,onClick:n}}},n_=[`narrow`,`regular`,`wide`],r_={narrow:!1},i_=e=>typeof e==`object`?n_.filter(t=>e[t]===!1):e?[]:[...n_],a_={root:`data-table-pagination`,range:`data-table-pagination-range`,steps:`data-table-pagination-steps`,step:`data-table-pagination-step`,button:`data-table-pagination-button`,truncation:`data-table-pagination-truncation`,icon:`data-table-pagination-icon`,hiddenRange:{narrow:`data-table-pagination-hidden-range-narrow`,regular:`data-table-pagination-hidden-range-regular`,wide:`data-table-pagination-hidden-range-wide`},hidden:`sr-only`},o_=W([a_.button,`data-table-pagination-jump`],{variants:{enabled:{true:`data-table-pagination-jump-enabled`,false:``}}}),s_=W([a_.button,`data-table-pagination-page`],{variants:{active:{true:`data-table-pagination-page-active`,false:``}}}),c_=({defaultPageIndex:e,onChange:t,pageSize:n,totalCount:r})=>{let i=Math.ceil(r/n),a=e=>e!==void 0&&e>=0&&e<i,[o,s]=l.useState(()=>a(e)?e:0),[c,u]=l.useState(o);return a(e)&&o!==e&&(s(e),u(e),t?.({pageIndex:e})),{pageIndex:c,pageCount:i,pageStart:c*n,pageEnd:Math.min((c+1)*n,r),hasPreviousPage:c>0,hasNextPage:c+1<i,selectPage:e=>{c!==e&&(u(e),t?.({pageIndex:e}))}}},l_=({children:e})=>(0,q.jsx)(`li`,{className:a_.step,"data-component":`Table.Pagination.Step`,children:e});function u_(e,t){let{className:n,totalCount:r,pageSize:i=25,defaultPageIndex:a,onChange:o,showPages:s=r_,...c}=e,{pageIndex:u,pageCount:d,pageStart:f,pageEnd:p,hasPreviousPage:m,hasNextPage:h,selectPage:g}=c_({defaultPageIndex:a,onChange:o,pageSize:i,totalCount:r}),_=l.useMemo(()=>e_(d,u+1,!!s,1,2),[d,u,s]),v=i_(s),y=f+1;return(0,q.jsxs)(`nav`,{ref:t,className:G(a_.root,n),"data-component":`Table.Pagination`,...c,children:[(0,q.jsxs)(`span`,{role:`status`,"aria-live":`polite`,className:a_.hidden,children:[`Showing `,y,` through `,p,` of `,r]}),(0,q.jsxs)(`p`,{className:a_.range,"data-component":`Table.Pagination.Range`,children:[y,(0,q.jsx)(`span`,{className:a_.hidden,children:` through `}),(0,q.jsx)(`span`,{"aria-hidden":`true`,children:`‒`}),p,` of `,r]}),(0,q.jsxs)(`ol`,{className:G(a_.steps,v.map(e=>a_.hiddenRange[e])),"data-hidden-viewport-ranges":v.join(` `)||void 0,children:[(0,q.jsx)(l_,{children:(0,q.jsxs)(`button`,{type:`button`,className:G(o_({enabled:m})),"data-has-page":m||void 0,"aria-disabled":!m||void 0,onClick:()=>{m&&g(u-1)},"data-component":`Table.Pagination.PreviousPageButton`,children:[m?(0,q.jsx)($t,{className:a_.icon}):null,(0,q.jsx)(`span`,{children:`Previous`}),(0,q.jsx)(`span`,{className:a_.hidden,children:`\xA0page`})]})}),_.map((e,t)=>e.type===`break`?(0,q.jsx)(`li`,{"aria-hidden":`true`,className:a_.truncation,"data-component":`Table.Pagination.TruncationStep`,children:`…`},`break-${t}`):e.type===`number`?(0,q.jsx)(l_,{children:(0,q.jsxs)(`button`,{type:`button`,className:G(s_({active:e.selected})),"data-active":e.selected||void 0,"aria-current":e.selected||void 0,onClick:()=>g(e.num-1),"data-component":`Table.Pagination.Page`,children:[(0,q.jsx)(`span`,{className:a_.hidden,children:`Page\xA0`}),e.num,e.precedesBreak?(0,q.jsx)(`span`,{className:a_.hidden,children:`…`}):null]})},`page-${e.num}`):null),(0,q.jsx)(l_,{children:(0,q.jsxs)(`button`,{type:`button`,className:G(o_({enabled:h})),"data-has-page":h||void 0,"aria-disabled":!h||void 0,onClick:()=>{h&&g(u+1)},"data-component":`Table.Pagination.NextPageButton`,children:[(0,q.jsx)(`span`,{children:`Next`}),(0,q.jsx)(`span`,{className:a_.hidden,children:`\xA0page`}),h?(0,q.jsx)(en,{className:a_.icon}):null]})})]})]})}u_.displayName=`Table.Pagination`;var d_=K(u_);function f_(e,t){let{className:n,...r}=e;return(0,q.jsx)(`tr`,{ref:t,role:`row`,className:G(Ag,n),"data-component":`Table.Row`,...r})}f_.displayName=`Table.Row`;var p_=K(f_);const m_={root:`skeleton-box`,shimmer:`motion-safe:shimmer`};function h_(e,t){let{as:n=`div`,className:r,width:i,height:a,style:o,...s}=e;return(0,q.jsx)(n,{ref:t,className:G(m_.root,m_.shimmer,r),style:{...o,"--skeleton-box-width":i,"--skeleton-box-height":a},"data-component":`SkeletonBox`,...s})}h_.displayName=`SkeletonBox`;var g_=K(h_);const __={wrapper:`skeleton-text-wrapper`},v_=W(`skeleton-text`,{variants:{size:{display:`skeleton-text-display`,titleLarge:`skeleton-text-title-large`,titleMedium:`skeleton-text-title-medium`,titleSmall:`skeleton-text-title-small`,bodyLarge:`skeleton-text-body-large`,bodyMedium:`skeleton-text-body-medium`,bodySmall:`skeleton-text-body-small`,subtitle:`skeleton-text-subtitle`},multiline:{true:`skeleton-text-multiline`,false:``}}});function y_({lines:e=1,maxWidth:t,size:n=`bodyMedium`,className:r,style:i,...a}){return e<2?(0,q.jsx)(g_,{width:`100%`,height:`var(--skeleton-text-font-size)`,className:G(v_({size:n}),r),style:{...i,maxWidth:t},"data-size":n,...a,"data-component":`SkeletonText`}):(0,q.jsx)(`div`,{className:__.wrapper,style:{...i,maxWidth:t},"data-component":`SkeletonText`,children:Array.from({length:e},(e,t)=>(0,q.jsx)(g_,{height:`var(--skeleton-text-font-size)`,className:G(v_({size:n,multiline:!0}),r),"data-size":n,...a},t))})}y_.displayName=`SkeletonText`;const b_={cell:`data-table-skeleton-cell`,items:`data-table-skeleton-items`,item:`data-table-skeleton-item`,hidden:`sr-only`};function x_(e,t){let{columns:n,cellPadding:r,rows:i=10,...a}=e;return(0,q.jsxs)(Eg,{ref:t,cellPadding:r,gridTemplateColumns:Mg(n),"data-component":`Table.Skeleton`,...a,children:[(0,q.jsx)(Xg,{children:(0,q.jsx)(p_,{children:n.map((e,t)=>(0,q.jsx)($g,{children:typeof e.header==`string`?e.header:e.header()},e.id??e.field??t))})}),(0,q.jsx)(Pg,{children:(0,q.jsx)(p_,{children:n.map((e,t)=>(0,q.jsxs)(Lg,{className:b_.cell,"data-cell-skeleton":``,children:[(0,q.jsx)(`span`,{className:b_.hidden,children:`Loading`}),(0,q.jsx)(`div`,{className:b_.items,children:Array.from({length:i},(e,t)=>(0,q.jsx)(`div`,{className:b_.item,"data-cell-skeleton-item":``,children:(0,q.jsx)(y_,{})},t))})]},e.id??e.field??t))})})]})}x_.displayName=`Table.Skeleton`;var S_=K(x_);const C_={header:`data-table-sort-header`,button:`data-table-sort-header-button`,buttonEnd:`data-table-sort-header-button-end`,icon:`data-table-sort-header-icon`,iconResting:`data-table-sort-header-icon-resting`,hidden:`sr-only`};function w_(e,t){let{className:n,align:r,children:i,direction:a,onToggleSort:o,...s}=e,c=a===`ASC`?`ascending`:a===`DESC`?`descending`:void 0,l=a===`DESC`?Ut:Wt;return(0,q.jsx)($g,{ref:t,align:r,"aria-sort":c,className:G(C_.header,n),"data-component":`Table.SortHeader`,...s,children:(0,q.jsxs)(`button`,{type:`button`,onClick:o,className:G(C_.button,r===`end`&&C_.buttonEnd),"data-component":`Table.SortHeader.Button`,children:[i,(0,q.jsx)(l,{className:G(C_.icon,a===`NONE`&&C_.iconResting),"aria-hidden":`true`,"data-sort-icon":a===`DESC`?`descending`:`ascending`}),a===`NONE`?(0,q.jsx)(`span`,{className:C_.hidden,children:`sort ascending`}):null]})})}w_.displayName=`Table.SortHeader`;var T_=K(w_);const E_={root:`data-table-subtitle`};function D_(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(E_.root,r),"data-component":`Table.Subtitle`,...i})}D_.displayName=`Table.Subtitle`;var O_=K(D_);const k_={root:`data-table-title`};function A_(e,t){let{as:n=`h2`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(k_.root,r),"data-component":`Table.Title`,...i})}A_.displayName=`Table.Title`;var j_=K(A_);const M_=e=>e===`ASC`?`DESC`:`ASC`,N_=(e,t)=>e===t?0:e<t?-1:1,P_=(e,t)=>{let n=e instanceof Date?e.getTime():e,r=t instanceof Date?t.getTime():t;return n>r?1:n<r?-1:0},F_=e=>{let t=[],n=0;for(;n<e.length;){let r=e[n];if(I_(r)){for(;n+1<e.length&&I_(e[n+1]);)r+=e[n+1],n++;t.push(parseInt(r,10))}else{for(;n+1<e.length&&!I_(e[n+1]);)r+=e[n+1],n++;t.push(r)}n++}return t},I_=e=>!Number.isNaN(parseInt(e,10)),L_={alphanumeric:(e,t)=>{let n=F_(e),r=F_(t);for(;n.length!==0&&r.length!==0;){let e=n.shift(),t=r.shift();if(e!==t){if(typeof e==`string`&&typeof t==`string`)return e.localeCompare(t);if(typeof e==`number`&&typeof t==`number`)return e>t?1:-1;if(typeof e==`number`&&typeof t==`string`)return-1;if(typeof e==`string`&&typeof t==`number`)return 1;if(e===void 0||t===void 0)break}}return n.length>r.length?1:-1},basic:N_,datetime:P_},R_=(e,t)=>{let n=e;for(let e of t.split(`.`))n=n[e];return n},z_=e=>e==null||e===``,B_=(e,t,n)=>{let r=e=>e.sortBy!==void 0&&e.sortBy!==!1;if(t!==void 0){let i=e.find(e=>e.id===t||e.field===t);return!i||!r(i)?null:{id:`${t}`,direction:n??`ASC`}}if(n!==void 0){let t=e.find(r),i=t?.id??t?.field;return i===void 0?null:{id:i,direction:n}}return null},V_=({columns:e,data:t,initialSortColumn:n,initialSortDirection:r,externalSorting:i,getRowId:a})=>{let[o,s]=l.useState(t),[c,u]=l.useState(t),[d,f]=l.useState(e),[p,m]=l.useState(()=>B_(e,n,r)),h=Mg(e);e!==d&&(f(e),p&&(e.some(e=>(e.id??e.field)===p.id)||m(null)));let g=e.map(e=>{let t=e.id??e.field;if(t===void 0)throw Error("Expected either an `id` or a `field` to be given for a Column");let n=e.sortBy!==void 0&&e.sortBy!==!1;return{id:t,column:e,isSortable:()=>n,getSortDirection:()=>p&&p.id===t?p.direction:`NONE`}}),_=e=>{let t=g.find(t=>t.id===e.id);if(!t)throw Error(`Unable to find a header with the id: ${e.id}`);let{sortBy:n,field:r}=t.column;if(n===!1||n===void 0)throw Error(`The column for this header cannot be sorted`);if(i)return;let a=typeof n==`string`?L_[n]:L_.basic;s(t=>t.slice().sort((t,i)=>{if(typeof n==`function`)return e.direction===`ASC`?n(t,i):n(i,t);if(r===void 0)return 0;let o=R_(t,r),s=R_(i,r),c=z_(o),l=z_(s);return!c&&!l?e.direction===`ASC`?a(o,s):a(s,o):c?+!l:-1}))};return t!==c&&(u(t),s(t),p&&_(p)),{headers:g,rows:o.map(e=>{let t=a(e);return{id:`${t}`,getValue:()=>e,getCells:()=>g.map(n=>({id:`${t}:${n.id}`,column:n.column,rowHeader:n.column.rowHeader??!1,getValue:()=>{if(n.column.field===void 0)throw Error(`Unable to get a value for the column: ${n.id}`);return R_(e,n.column.field)}}))}}),actions:{sortBy:e=>{let t={id:e.id,direction:p&&p.id===e.id?M_(p.direction):`ASC`};m(t),_(t)}},gridTemplateColumns:h}},H_=e=>typeof e.header==`string`?e.header:e.header(),U_=e=>e.id;function W_(e,t){let{data:n,columns:r,cellPadding:i,initialSortColumn:a,initialSortDirection:o,externalSorting:s,getRowId:c=U_,onToggleSort:l,"aria-labelledby":u,"aria-describedby":d}=e,{headers:f,rows:p,actions:m,gridTemplateColumns:h}=V_({data:n,columns:r,initialSortColumn:a,initialSortDirection:o,externalSorting:s,getRowId:c});return(0,q.jsxs)(Eg,{ref:t,"aria-labelledby":u,"aria-describedby":d,cellPadding:i,gridTemplateColumns:h,children:[(0,q.jsx)(Xg,{children:(0,q.jsx)(p_,{children:f.map(e=>e.isSortable()?(0,q.jsx)(T_,{align:e.column.align,direction:e.getSortDirection(),onToggleSort:()=>{let t=e.getSortDirection()===`ASC`?`DESC`:`ASC`;m.sortBy(e),l?.(e.id,t)},children:H_(e.column)},e.id):(0,q.jsx)($g,{align:e.column.align,children:H_(e.column)},e.id))})}),(0,q.jsx)(Pg,{children:p.map(e=>(0,q.jsx)(p_,{children:e.getCells().map(t=>(0,q.jsx)(Lg,{scope:t.rowHeader?`row`:void 0,align:t.column.align,children:t.column.renderCell?t.column.renderCell(e.getValue()):t.getValue()},t.id))},e.id))})]})}W_.displayName=`DataTable`;var G_=K(W_);const K_=()=>({column:e=>({...e,id:e.id??e.field})}),q_=Object.assign(Eg,{Container:Ug,Title:j_,Subtitle:O_,Actions:kg,Divider:Kg,Skeleton:S_,Head:Xg,Body:Pg,Header:$g,SortHeader:T_,Row:p_,Cell:Lg,CellPlaceholder:Bg,Pagination:d_,ErrorDialog:Jg}),J_={root:`date-picker`,block:`date-picker-block`,overlay:`date-picker-overlay`};function Y_(e,t){let{mode:n=`single`,value:r,defaultValue:i,onChange:a,format:o=`YYYY-MM-DD`,rangeSeparator:s=` - `,open:c,defaultOpen:u=!1,onOpenChange:d,min:f,max:p,isDateDisabled:m,weekStartsOn:h,fixedWeeks:g=!0,showWeekNumbers:_,monthFormat:v,calendarButtonLabel:y=`Choose a date`,calendarLabel:b=`Choose a date`,placeholder:x,disabled:S,block:C,onBlur:w,inputClassName:T,className:E,...D}=e,O=Y(),k=l.useRef(null),A=l.useRef(null),j=ar(t,A),M=l.useRef(null),N=su(f),P=su(p),F=n===`range`,I=r!==void 0,[L,ee]=l.useState(()=>uu(i,F)),R=I?uu(r,F):L,z=c!==void 0,[te,ne]=l.useState(u),B=z?c:te,re=({from:e,to:t})=>e===null?``:!F||t===null?e.format(o):`${e.format(o)}${s}${t.format(o)}`,V=e=>{if(e.trim()===``)return lu;let t=(F?e.split(s):[e]).map(e=>bu(e.trim(),o));if(t.length>2||t.some(e=>e===null))return;let[n,r=null]=t;return F?r&&n.isAfter(r,`day`)?{from:r,to:n}:{from:n,to:r}:{from:n,to:n}},[ie,ae]=l.useState(null),oe=ie??re(R),se=(e,t)=>{z||ne(e),d?.(e,t)},ce=e=>{if([e.from,e.to].every(e=>e===null||hu(e,N,P,m))){if(I||ee(e),F){a?.({from:e.from?.toDate()??null,to:e.to?.toDate()??null});return}a?.(e.from?.toDate()??null)}},le=e=>{let t=e.target.value;ae(t);let n=V(t);n&&ce(n)},ue=e=>{ae(null),w?.(e)},de=e=>{ae(null),ce(uu(e,!1)),se(!1,`date-select`)},fe=e=>{ae(null),ce(uu(e,!0)),e.from&&e.to&&se(!1,`date-select`)},pe=e=>{se(!1,e===`escape`?`escape`:`click-outside`)},me={min:f,max:p,isDateDisabled:m,weekStartsOn:h,fixedWeeks:g,showWeekNumbers:_,monthFormat:v,focusableDayRef:M,"data-component":`DatePicker.Calendar`};return(0,q.jsxs)(`span`,{className:G(J_.root,C&&J_.block,E),"data-component":`DatePicker`,"data-open":B,children:[(0,q.jsx)(`span`,{ref:k,className:G(J_.root,C&&J_.block),"data-component":`DatePicker.Field`,children:(0,q.jsx)(qo,{ref:j,type:`text`,value:oe,onChange:le,onBlur:ue,placeholder:x??(F?`${o}${s}${o}`:o),disabled:S,block:C,className:T,trailingAction:(0,q.jsx)(qo.Action,{icon:Yt,"aria-label":y,"aria-haspopup":`dialog`,"aria-expanded":B,"aria-controls":B?O:void 0,disabled:S,onClick:()=>se(!B,`button`),"data-component":`DatePicker.CalendarButton`}),...D})}),(0,q.jsx)(da,{renderAnchor:null,anchorRef:k,open:B,onClose:pe,side:`outside-bottom`,align:`start`,className:J_.overlay,overlayProps:{id:O,role:`dialog`,"aria-label":b},focusTrapSettings:{initialFocusRef:M,returnFocusRef:A},children:F?(0,q.jsx)(Tu,{mode:`range`,value:{from:R.from,to:R.to},onChange:fe,...me}):(0,q.jsx)(Tu,{value:R.from,onChange:de,...me})})]})}Y_.displayName=`DatePicker`;var X_=K(Y_);const Z_={root:`details`};function Q_(e,t){let{className:n,open:r,defaultOpen:i,closeOnOutsideClick:a,onChange:o,onToggle:s,...c}=e,u=l.useRef(null),d=ar(t,u),f=r!==void 0,[p,m]=l.useState(!!i),h=f?r:p;return l.useEffect(()=>{let e=u.current;e&&e.open!==h&&(e.open=h)}),l.useEffect(()=>{if(!a||!h)return;let e=e=>{let{target:t}=e;!(t instanceof Element)||t.closest(`details`)===u.current||(m(!1),o?.(!1))};return document.addEventListener(`click`,e),()=>{document.removeEventListener(`click`,e)}},[a,h,o]),(0,q.jsx)(`details`,{ref:d,open:h,onToggle:e=>{s?.(e);let{open:t}=e.currentTarget;m(t),t!==h&&o?.(t)},className:G(Z_.root,n),"data-component":`Details`,...c})}Q_.displayName=`Details`;var $_=K(Q_);const ev={root:`details-summary`};function tv(e,t){let{as:n,className:r,...i}=e,a=n??`summary`,o=a===`summary`?{}:{as:`summary`};return(0,q.jsx)(a,{ref:t,className:G(ev.root,r),"data-component":`Details.Summary`,...o,...i})}tv.displayName=`Details.Summary`;var nv=K(tv);const rv=Object.assign($_,{Summary:nv}),iv=Object.assign(ug,{Header:Gh,Title:Zh,Subtitle:Jh,Body:Fh,Footer:Hh,Buttons:Lh,CloseButton:zh}),av={root:`drawer-body`};function ov(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(av.root,r),"data-component":`Drawer.Body`,...i})}ov.displayName=`Drawer.Body`;var sv=K(ov);const cv=(0,l.createContext)({}),lv={root:`drawer-close-button`};function uv(e,t){let{className:n,onClose:r,...i}=e,{onClose:a}=l.useContext(cv);return(0,q.jsx)(gi,{ref:t,icon:un,"aria-label":`Close`,variant:`invisible`,className:G(lv.root,n),onClick:r??a,"data-component":`Drawer.CloseButton`,...i})}uv.displayName=`Drawer.CloseButton`;var dv=K(uv);const fv={root:`drawer-footer`};function pv(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(fv.root,r),"data-component":`Drawer.Footer`,...i})}pv.displayName=`Drawer.Footer`;var mv=K(pv);const hv={root:`drawer-header`,directTitle:`drawer-header-direct-title`};function gv(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(hv.root,hv.directTitle,r),"data-component":`Drawer.Header`,...i})}gv.displayName=`Drawer.Header`;var _v=K(gv);const vv={root:`drawer-subtitle`};function yv(e,t){let{as:n=`h2`,className:r,id:i,...a}=e,{descriptionId:o}=l.useContext(cv);return(0,q.jsx)(n,{ref:t,id:i??o,className:G(vv.root,r),"data-component":`Drawer.Subtitle`,...a})}yv.displayName=`Drawer.Subtitle`;var bv=K(yv);const xv={root:`drawer-title`};function Sv(e,t){let{as:n=`h1`,className:r,id:i,...a}=e,{labelId:o}=l.useContext(cv);return(0,q.jsx)(n,{ref:t,id:i??o,className:G(xv.root,r),"data-component":`Drawer.Title`,...a})}Sv.displayName=`Drawer.Title`;var Cv=K(Sv);const wv={backdrop:`drawer-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short`,backdropModeless:`drawer-backdrop-modeless`,backdropPosition:{left:`drawer-backdrop-left`,right:`drawer-backdrop-right`,top:`drawer-backdrop-top`,bottom:`drawer-backdrop-bottom`},root:`drawer motion-safe:animate-in motion-safe:duration-short`,rootModeless:`drawer-modeless`,position:{left:`drawer-left motion-safe:slide-in-from-left`,right:`drawer-right motion-safe:slide-in-from-right`,top:`drawer-top motion-safe:slide-in-from-top`,bottom:`drawer-bottom motion-safe:slide-in-from-bottom`},inlineSize:{small:`drawer-inline-size-small`,medium:`drawer-inline-size-medium`,large:`drawer-inline-size-large`,xlarge:`drawer-inline-size-xlarge`},blockSize:{small:`drawer-block-size-small`,medium:`drawer-block-size-medium`,large:`drawer-block-size-large`,xlarge:`drawer-block-size-xlarge`},customInlineSize:`drawer-inline-size-custom`,customBlockSize:`drawer-block-size-custom`,headerContent:`drawer-header-content`,overflowWrapper:`drawer-overflow-wrapper`,overflowWrapperBordered:`drawer-overflow-wrapper-bordered`},Tv=e=>typeof e==`string`&&e in wv.inlineSize,Ev=e=>typeof e==`number`?`${e}px`:e;function Dv(e,t){let{title:n=`Drawer`,subtitle:r=``,onClose:i,position:a=`right`,size:o=`medium`,modal:s=!0,returnFocusRef:c,initialFocusRef:u,className:d,style:f,children:p,"aria-label":m,"aria-labelledby":h,"aria-describedby":g,..._}=e,v=Y(),y=Y(),b=l.useRef(null),x=ar(t,b),S=l.useRef(null),[C,w]=l.useState(!1),T=Tp(S);zi({containerRef:b,initialFocusRef:u,returnFocusRef:c,disabled:!s}),Hi(e=>{i(`escape`),s&&e.preventDefault()}),ih(!s);let[E,D]=xr(p,{header:_v,body:sv,footer:mv}),O=()=>{i(`close-button`)},k=e=>{s&&e.target===e.currentTarget&&C&&i(`escape`)},A=E.header??(0,q.jsxs)(_v,{children:[(0,q.jsxs)(`div`,{className:wv.headerContent,children:[(0,q.jsx)(Cv,{children:n}),r?(0,q.jsx)(bv,{children:r}):null]}),(0,q.jsx)(dv,{})]}),j=E.body??(0,q.jsx)(sv,{children:D}),M=E.footer,N=!!M,P=a===`left`||a===`right`,F=Tv(o),I=h??(m?void 0:v),L=g??(r?y:void 0);return(0,q.jsx)(cv.Provider,{value:{labelId:v,descriptionId:y,onClose:O},children:(0,q.jsx)(ea,{children:(0,q.jsx)(`div`,{className:G(wv.backdrop,wv.backdropPosition[a],!s&&wv.backdropModeless),onClick:k,onMouseDown:e=>{w(e.target===e.currentTarget)},"data-component":`Drawer.Backdrop`,"data-position":a,"data-modal":s,children:(0,q.jsxs)(`div`,{ref:x,role:`dialog`,"aria-labelledby":I,"aria-describedby":L,"aria-label":m,"aria-modal":s||void 0,className:G(wv.root,wv.position[a],F?P?wv.inlineSize[o]:wv.blockSize[o]:P?wv.customInlineSize:wv.customBlockSize,!s&&wv.rootModeless,d),style:{...f,...F?{}:{"--drawer-size":Ev(o)}},"data-component":`Drawer`,"data-position":a,"data-size":F?o:void 0,"data-modal":s,"data-has-footer":N?``:void 0,..._,children:[A,(0,q.jsx)(Mh,{ref:S,"aria-labelledby":v,className:G(wv.overflowWrapper,N&&T&&wv.overflowWrapperBordered),children:j}),M]})})})})}Dv.displayName=`Drawer`;var Ov=K(Dv);const kv=Object.assign(Ov,{Header:_v,Title:Cv,Subtitle:bv,Body:sv,Footer:mv,CloseButton:dv}),Av=W(`em`,{variants:{size:{large:`em-size-large`,medium:`em-size-medium`,small:`em-size-small`},weight:{light:`em-weight-light`,normal:`em-weight-normal`,medium:`em-weight-medium`,semibold:`em-weight-semibold`}}});function jv(e,t){let{as:n=`em`,className:r,size:i,weight:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Av({size:i,weight:a}),r),"data-component":`Em`,"data-size":i,"data-weight":a,...o})}jv.displayName=`Em`;var Mv=K(jv);const Nv=W(`empty-state`,{variants:{size:{small:`empty-state-small`,medium:`empty-state-medium`}}}),Pv={icon:`empty-state-icon`,title:`empty-state-title`,description:`empty-state-description`,actions:`empty-state-actions`},Fv=e=>typeof e==`string`||!(0,f.isValidElementType)(e)?e:(0,q.jsx)(e,{});function Iv(e,t){let{as:n=`div`,className:r,children:i,title:a,description:o,icon:s,size:c=`medium`,actions:l,...u}=e;return(0,q.jsxs)(n,{ref:t,className:G(Nv({size:c}),r),"data-component":`EmptyState`,"data-size":c,...u,children:[s===void 0?null:(0,q.jsx)(`span`,{className:Pv.icon,"aria-hidden":`true`,"data-component":`EmptyState.Icon`,children:Fv(s)}),(0,q.jsx)(`span`,{className:Pv.title,"data-component":`EmptyState.Title`,children:a}),o?(0,q.jsx)(`span`,{className:Pv.description,"data-component":`EmptyState.Description`,children:o}):null,i,l?(0,q.jsx)(`div`,{className:Pv.actions,"data-component":`EmptyState.Actions`,children:l}):null]})}Iv.displayName=`EmptyState`;var Lv=K(Iv);const Rv=1024,zv=[`bytes`,`KB`,`MB`,`GB`,`TB`],Bv=e=>{if(!Number.isFinite(e)||e<=0)return`0 ${zv[0]}`;let t=e,n=0;for(;t>=Rv&&n<zv.length-1;)t/=Rv,n+=1;return`${n===0?Math.round(t):Math.round(t*10)/10} ${zv[n]}`},Vv=(e,t)=>{let n=(t??``).split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean);if(n.length===0)return!0;let r=e.name.toLowerCase(),i=e.type.toLowerCase();return n.some(e=>e.startsWith(`.`)?r.endsWith(e):e.endsWith(`/*`)?i.startsWith(e.slice(0,-1)):i===e)},Hv=(e,t)=>{let{accept:n,maxSize:r,multiple:i}=t,a=[],o=[];return e.forEach(e=>{if(!Vv(e,n)){o.push({file:e,reason:`type`});return}if(r!==void 0&&e.size>r){o.push({file:e,reason:`size`});return}if(!i&&a.length>0){o.push({file:e,reason:`count`});return}a.push(e)}),{accepted:a,rejected:o}},Uv=(0,l.createContext)({}),Wv={root:`file-upload-description`};function Gv(e,t){let{className:n,id:r,...i}=e,{descriptionId:a}=l.useContext(Uv);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(Wv.root,n),"data-component":`FileUpload.Description`,...i})}Gv.displayName=`FileUpload.Description`;var Kv=K(Gv);const qv={root:`file-upload-icon`};function Jv(e,t){let{icon:n=qt,className:r,"aria-label":i,...a}=e;return(0,q.jsx)(`span`,{ref:t,role:i?`img`:void 0,"aria-label":i,"aria-hidden":!i||void 0,className:G(qv.root,r),"data-component":`FileUpload.Icon`,...a,children:(0,q.jsx)(n,{})})}Jv.displayName=`FileUpload.Icon`;var Yv=K(Jv);const Xv={root:`file-upload-label`};function Zv(e,t){let{className:n,id:r,...i}=e,{labelId:a}=l.useContext(Uv);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(Xv.root,n),"data-component":`FileUpload.Label`,...i})}Zv.displayName=`FileUpload.Label`;var Qv=K(Zv);const $v={root:`file-upload-list`};function ey(e,t){let{className:n,children:r,...i}=e;return l.Children.toArray(r).length===0?null:(0,q.jsx)(`ul`,{ref:t,role:`list`,className:G($v.root,n),"data-component":`FileUpload.List`,...i,children:r})}ey.displayName=`FileUpload.List`;var ty=K(ey);const ny={input:`sr-only`},ry=W(`file-upload`,{variants:{size:{small:`file-upload-small`,medium:`file-upload-medium`,large:`file-upload-large`}}}),iy=W(`file-upload-zone`,{variants:{dragging:{true:`file-upload-zone-dragging`,false:``},disabled:{true:`file-upload-zone-disabled`,false:`file-upload-zone-interactive`},validation:{error:`file-upload-zone-error`,success:`file-upload-zone-success`}}}),ay=(e,t)=>{if(!e||typeof DataTransfer>`u`)return;let n=new DataTransfer;t.forEach(e=>n.items.add(e)),e.files=n.files};function oy(e,t){let{className:n,children:r,size:i=`medium`,accept:a,multiple:o,disabled:s,required:c,name:u,maxSize:d,validationStatus:f,onSelect:p,onReject:m,id:h,"aria-label":g,"aria-labelledby":_,"aria-describedby":v,...y}=e,b=l.useRef(null),x=Y(h),S=Y(),C=Y(),w=l.useRef(0),[T,E]=l.useState(!1),[D,O]=xr(r,{icon:Yv,label:Qv,description:Kv,list:ty}),k=(e,t)=>{let{accepted:n,rejected:r}=Hv(e,{accept:a,maxSize:d,multiple:o});t===`drop`&&n.length>0&&ay(b.current,n),r.length>0&&m?.(r,t),n.length>0&&p?.(n,t)},A=e=>{k(Array.from(e.target.files??[]),`input`)},j=e=>{s||(e.preventDefault(),w.current+=1,E(!0))},M=e=>{s||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`))},N=()=>{s||(w.current=Math.max(w.current-1,0),w.current===0&&E(!1))},P=e=>{s||(e.preventDefault(),w.current=0,E(!1),k(Array.from(e.dataTransfer?.files??[]),`drop`))},F=_??(D.label&&!g?S:void 0),I=[D.description?C:void 0,v].filter(Boolean).join(` `)||void 0;return(0,q.jsx)(Uv.Provider,{value:{labelId:S,descriptionId:C},children:(0,q.jsxs)(`div`,{ref:t,className:G(ry({size:i}),n),"data-component":`FileUpload`,"data-size":i,"data-disabled":s,"data-dragging":T||void 0,"data-validation":f,...y,children:[(0,q.jsxs)(`label`,{className:G(iy({dragging:T,disabled:!!s,validation:f})),onDragEnter:j,onDragOver:M,onDragLeave:N,onDrop:P,"data-component":`FileUpload.Zone`,children:[(0,q.jsx)(`input`,{ref:b,id:x,type:`file`,name:u,accept:a,multiple:o,disabled:s,required:c,onChange:A,className:ny.input,"aria-label":g,"aria-labelledby":F,"aria-describedby":I,"aria-invalid":f===`error`||void 0,"data-component":`FileUpload.Input`}),D.icon,D.label,D.description]}),D.list,O]})})}oy.displayName=`FileUpload`;var sy=K(oy);const cy=W(`progress-bar-item`,{variants:{variant:{accent:`progress-bar-item-accent`,attention:`progress-bar-item-attention`,danger:`progress-bar-item-danger`,done:`progress-bar-item-done`,neutral:`progress-bar-item-neutral`,severe:`progress-bar-item-severe`,sponsors:`progress-bar-item-sponsors`,success:`progress-bar-item-success`},animated:{true:`motion-safe:shimmer`,false:``}}});function ly(e,t){let{as:n=`span`,className:r,progress:i=0,variant:a=`success`,animated:o,style:s,"aria-valuenow":c,...l}=e;return(0,q.jsx)(n,{ref:t,role:`progressbar`,"aria-valuenow":c??Math.round(Math.max(i,0)),"aria-valuemin":0,"aria-valuemax":100,className:G(cy({variant:a,animated:o}),r),style:{...s,"--progress-bar-item-width":`${i}%`},"data-component":`ProgressBar.Item`,"data-variant":a,"data-animated":o,...l})}ly.displayName=`ProgressBar.Item`;var uy=K(ly);const dy=W(`progress-bar`,{variants:{size:{small:`progress-bar-small`,medium:`progress-bar-medium`,large:`progress-bar-large`},inline:{true:`progress-bar-inline`,false:``}}});function fy(e,t){let{as:n=`span`,className:r,progress:i,size:a=`medium`,variant:o=`success`,inline:s,animated:c,children:u,"aria-label":d,"aria-valuenow":f,"aria-valuetext":p,...m}=e;if(u&&i)throw Error("Pass either `progress` or children to ProgressBar, not both.");let h=l.Children.toArray(u).length>0;return(0,q.jsx)(n,{ref:t,className:G(dy({size:a,inline:s}),r),"data-component":`ProgressBar`,"data-size":a,"data-inline":s,...m,children:h?u:(0,q.jsx)(uy,{progress:i,variant:o,animated:c,"aria-label":d,"aria-valuenow":f,"aria-valuetext":p})})}fy.displayName=`ProgressBar`;var py=K(fy);const my=Object.assign(py,{Item:uy}),hy={root:`file-upload-item`,icon:`file-upload-item-icon`,body:`file-upload-item-body`,heading:`file-upload-item-heading`,name:`file-upload-item-name`,fileSize:`file-upload-item-file-size`,description:`file-upload-item-description`,descriptionError:`file-upload-item-description-error`,status:`file-upload-item-status`,statusSuccess:`file-upload-item-status-success`,statusError:`file-upload-item-status-error`},gy={success:{icon:Xt,className:hy.statusSuccess},error:{icon:fn,className:hy.statusError}};function _y(e,t){let{className:n,name:r,fileSize:i,status:a=`pending`,progress:o,description:s,icon:c=dn,onRemove:l,removeLabel:u,children:d,...f}=e,p=a===`success`||a===`error`?gy[a]:void 0,m=p?.icon;return(0,q.jsxs)(`li`,{ref:t,className:G(hy.root,n),"data-component":`FileUpload.Item`,"data-status":a,...f,children:[(0,q.jsx)(`span`,{className:hy.icon,"aria-hidden":`true`,"data-component":`FileUpload.Item.Icon`,children:(0,q.jsx)(c,{})}),(0,q.jsxs)(`span`,{className:hy.body,children:[(0,q.jsxs)(`span`,{className:hy.heading,children:[(0,q.jsx)(`span`,{className:hy.name,"data-component":`FileUpload.Item.Name`,children:r}),i===void 0?null:(0,q.jsx)(`span`,{className:hy.fileSize,"data-component":`FileUpload.Item.Size`,children:Bv(i)})]}),a===`uploading`?(0,q.jsx)(my,{progress:o,variant:`accent`,size:`small`,animated:!0,"aria-label":`Uploading ${r}`}):null,s?(0,q.jsx)(`span`,{className:G(hy.description,a===`error`&&hy.descriptionError),"data-component":`FileUpload.Item.Description`,children:s}):null,d]}),m?(0,q.jsx)(`span`,{className:G(hy.status,p?.className),"aria-hidden":`true`,"data-component":`FileUpload.Item.Status`,children:(0,q.jsx)(m,{})}):null,l?(0,q.jsx)(gi,{icon:un,variant:`invisible`,size:`small`,"aria-label":u??`Remove ${r}`,onClick:l,"data-component":`FileUpload.Item.RemoveButton`}):null]})}_y.displayName=`FileUpload.Item`;var vy=K(_y);const yy=Object.assign(sy,{Icon:Yv,Label:Qv,Description:Kv,List:ty,Item:vy});function by(e,t,n){let r=Array(e);return new Proxy(r,{get(r,i,a){if(typeof i==`string`){let a=i.charCodeAt(0);if(a>=48&&a<=57){let a=+i;if(Number.isInteger(a)&&a>=0&&a<e){let e=r[a];if(!e){let i=t[a*2];e=r[a]={index:a,key:n(a),start:i,size:t[a*2+1],end:i+t[a*2+1],lane:0}}return e}}if(i===`length`)return e}return Reflect.get(r,i,a)}})}function xy(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o=process.env.NODE_ENV!==`production`&&!!n.key&&!!n.debug?.call(n),s=0;o&&(s=Date.now());let c=e();if(!(c.length!==r.length||c.some((e,t)=>r[t]!==e)))return i;r=c;let l=0;if(o&&(l=Date.now()),i=t(...c),o){let e=Math.round((Date.now()-s)*100)/100,t=Math.round((Date.now()-l)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=` `+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
|
|
29
29
|
font-size: .6rem;
|