@nextui-org/react 1.0.0-beta.8 → 1.0.0-beta.9-dbg1
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/cjs/card/card.js +1 -1
- package/esm/card/card.js +1 -1
- package/package.json +28 -28
- package/umd/nextui.js +151 -151
- package/umd/nextui.min.js +1 -1
package/umd/nextui.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see nextui.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.NextUI=t(require("react"),require("react-dom")):e.NextUI=t(e.React,e.ReactDOM)}(self,(function(e,t){return(()=>{var r={427:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},896:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},452:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},830:(e,t,r)=>{"use strict";var o=r(896);t.__esModule=!0,t.default=void 0;var n=o(r(625)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=n,e.exports=t.default},874:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},557:(e,t,r)=>{"use strict";var o=r(896);t.__esModule=!0,t.default=function(e){var t=(0,s.default)(e),r=(0,i.default)(t),o=t&&t.documentElement,a={top:0,left:0,height:0,width:0};if(t)return(0,n.default)(o,e)?(void 0!==e.getBoundingClientRect&&(a=e.getBoundingClientRect()),{top:a.top+(r.pageYOffset||o.scrollTop)-(o.clientTop||0),left:a.left+(r.pageXOffset||o.scrollLeft)-(o.clientLeft||0),width:(null==a.width?e.offsetWidth:a.width)||0,height:(null==a.height?e.offsetHeight:a.height)||0}):a};var n=o(r(830)),i=o(r(874)),s=o(r(452));e.exports=t.default},605:(e,t,r)=>{"use strict";var o=r(896);t.__esModule=!0,t.default=function(e){for(var t=(0,n.default)(e),r=e&&e.offsetParent;r&&"html"!==s(e)&&"static"===(0,i.default)(r,"position");)r=r.offsetParent;return r||t.documentElement};var n=o(r(452)),i=o(r(782));function s(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default},394:(e,t,r)=>{"use strict";var o=r(896);t.__esModule=!0,t.default=function(e,t){var r,o={top:0,left:0};return"fixed"===(0,c.default)(e,"position")?r=e.getBoundingClientRect():(t=t||(0,s.default)(e),r=(0,i.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(o=(0,i.default)(t)),o.top+=parseInt((0,c.default)(t,"borderTopWidth"),10)-(0,a.default)(t)||0,o.left+=parseInt((0,c.default)(t,"borderLeftWidth"),10)-(0,l.default)(t)||0),(0,n.default)({},r,{top:r.top-o.top-(parseInt((0,c.default)(e,"marginTop"),10)||0),left:r.left-o.left-(parseInt((0,c.default)(e,"marginLeft"),10)||0)})};var n=o(r(427)),i=o(r(557)),s=o(r(605)),a=o(r(809)),l=o(r(749)),c=o(r(782));e.exports=t.default},749:(e,t,r)=>{"use strict";var o=r(896);t.__esModule=!0,t.default=function(e,t){var r=(0,n.default)(e);if(void 0===t)return r?"pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft:e.scrollLeft;r?r.scrollTo(t,"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop):e.scrollLeft=t};var n=o(r(874));e.exports=t.default},809:(e,t,r)=>{"use strict";var o=r(896);t.__esModule=!0,t.default=function(e,t){var r=(0,n.default)(e);if(void 0===t)return r?"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop:e.scrollTop;r?r.scrollTo("pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft,t):e.scrollTop=t};var n=o(r(874));e.exports=t.default},171:(e,t,r)=>{"use strict";var o=r(896);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var r=e.style;"float"==(t=(0,n.default)(t))&&(t="styleFloat");var o=e.currentStyle[t]||null;if(null==o&&r&&r[t]&&(o=r[t]),s.test(o)&&!i.test(t)){var a=r.left,l=e.runtimeStyle,c=l&&l.left;c&&(l.left=e.currentStyle.left),r.left="fontSize"===t?"1em":o,o=r.pixelLeft+"px",r.left=a,c&&(l.left=c)}return o}}};var n=o(r(519)),i=/^(top|right|bottom|left)$/,s=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},782:(e,t,r)=>{"use strict";var o=r(896);t.__esModule=!0,t.default=function(e,t,r){var o="",d="",u=t;if("string"==typeof t){if(void 0===r)return e.style[(0,n.default)(t)]||(0,s.default)(e).getPropertyValue((0,i.default)(t));(u={})[t]=r}Object.keys(u).forEach((function(t){var r=u[t];r||0===r?(0,c.default)(t)?d+=t+"("+r+") ":o+=(0,i.default)(t)+": "+r+";":(0,a.default)(e,(0,i.default)(t))})),d&&(o+=l.transform+": "+d+";"),e.style.cssText+=";"+o};var n=o(r(519)),i=o(r(205)),s=o(r(171)),a=o(r(698)),l=r(319),c=o(r(980));e.exports=t.default},698:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},980:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},319:(e,t,r)=>{"use strict";var o=r(896);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var n,i,s,a,l,c,d,u,p,h,g,m=o(r(625)),f="transform";if(t.transform=f,t.animationEnd=s,t.transitionEnd=i,t.transitionDelay=d,t.transitionTiming=c,t.transitionDuration=l,t.transitionProperty=a,t.animationDelay=g,t.animationTiming=h,t.animationDuration=p,t.animationName=u,m.default){var b=function(){for(var e,t,r=document.createElement("div").style,o={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},n=Object.keys(o),i="",s=0;s<n.length;s++){var a=n[s];if(a+"TransitionProperty"in r){i="-"+a.toLowerCase(),e=o[a]("TransitionEnd"),t=o[a]("AnimationEnd");break}}return!e&&"transitionProperty"in r&&(e="transitionend"),!t&&"animationName"in r&&(t="animationend"),r=null,{animationEnd:t,transitionEnd:e,prefix:i}}();n=b.prefix,t.transitionEnd=i=b.transitionEnd,t.animationEnd=s=b.animationEnd,t.transform=f=n+"-"+f,t.transitionProperty=a=n+"-transition-property",t.transitionDuration=l=n+"-transition-duration",t.transitionDelay=d=n+"-transition-delay",t.transitionTiming=c=n+"-transition-timing-function",t.animationName=u=n+"-animation-name",t.animationDuration=p=n+"-animation-duration",t.animationTiming=h=n+"-animation-delay",t.animationDelay=g=n+"-animation-timing-function"}var $={transform:f,end:i,property:a,timing:c,delay:d,duration:l};t.default=$},769:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,(function(e,t){return t.toUpperCase()}))};var r=/-(.)/g;e.exports=t.default},519:(e,t,r)=>{"use strict";var o=r(896);t.__esModule=!0,t.default=function(e){return(0,n.default)(e.replace(i,"ms-"))};var n=o(r(769)),i=/^-ms-/;e.exports=t.default},723:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,"-$1").toLowerCase()};var r=/([A-Z])/g;e.exports=t.default},205:(e,t,r)=>{"use strict";var o=r(896);t.__esModule=!0,t.default=function(e){return(0,n.default)(e).replace(i,"-ms-")};var n=o(r(723)),i=/^ms-/;e.exports=t.default},625:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},889:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var s,a,l=n(e),c=1;c<arguments.length;c++){for(var d in s=Object(arguments[c]))r.call(s,d)&&(l[d]=s[d]);if(t){a=t(s);for(var u=0;u<a.length;u++)o.call(s,a[u])&&(l[a[u]]=s[a[u]])}}return l}},628:(e,t,r)=>{"use strict";r(889);var o=r(787),n=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;n=i("react.element"),t.Fragment=i("react.fragment")}var s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var o,i={},c=null,d=null;for(o in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,o)&&!l.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:n,type:e,key:c,ref:d,props:i,_owner:s.current}}t.jsx=c,t.jsxs=c},678:(e,t,r)=>{"use strict";e.exports=r(628)},787:t=>{"use strict";t.exports=e},156:e=>{"use strict";e.exports=t}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return r[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.r(i),n.d(i,{Avatar:()=>Vl,Backdrop:()=>Cp,Button:()=>lc,Card:()=>Tc,Checkbox:()=>rd,Code:()=>sd,Col:()=>dd,Collapse:()=>Pd,Container:()=>Md,CssBaseline:()=>Mt,Divider:()=>Pc,Drip:()=>Pt,Dropdown:()=>ox,Grid:()=>Fd,Image:()=>wc,Input:()=>tg,KeyCode:()=>ut,KeyMod:()=>pt,Link:()=>Cu,Loading:()=>Du,Modal:()=>dh,NextUIProvider:()=>Qa,Pagination:()=>Th,Popover:()=>fy,Progress:()=>Dp,Radio:()=>sp,Row:()=>hu,Snippet:()=>cu,Spacer:()=>Wd,Spinner:()=>zu,StyledAvatar:()=>Bl,StyledAvatarGroup:()=>Fl,StyledAvatarGroupCount:()=>Kl,StyledBackdrop:()=>wp,StyledBackdropContent:()=>vp,StyledBackdropLayer:()=>xp,StyledButton:()=>ec,StyledButtonGroup:()=>nc,StyledButtonIcon:()=>ql,StyledCard:()=>dc,StyledCardBody:()=>cc,StyledCardFooter:()=>pc,StyledCardHeader:()=>uc,StyledCheckboxContainer:()=>Jc,StyledCheckboxGroup:()=>Yc,StyledCheckboxLabel:()=>jc,StyledCheckboxMask:()=>Uc,StyledCheckboxText:()=>Gc,StyledCode:()=>od,StyledCol:()=>ad,StyledCollapse:()=>ud,StyledCollapseContent:()=>hd,StyledCollapseGroup:()=>md,StyledCollapseIcon:()=>gd,StyledCollapseView:()=>pd,StyledContainer:()=>Td,StyledDivider:()=>Cc,StyledDividerText:()=>kc,StyledDropdownItem:()=>Kv,StyledDropdownItemContent:()=>Dv,StyledDropdownItemContentWrapper:()=>Hv,StyledDropdownItemDescription:()=>Ov,StyledDropdownItemIconWrapper:()=>Bv,StyledDropdownItemKbd:()=>zv,StyledDropdownMenu:()=>Lv,StyledDropdownSection:()=>jv,StyledDropdownSectionTitle:()=>_v,StyledDropdownSectionWrapper:()=>Fv,StyledGridContainer:()=>Rd,StyledGridItem:()=>Ad,StyledHelperText:()=>Bh,StyledHelperTextContainer:()=>Lh,StyledIconCheck:()=>Vc,StyledIconCheckFirstLine:()=>_c,StyledIconCheckSecondLine:()=>Wc,StyledImage:()=>bc,StyledImageContainer:()=>fc,StyledImageSkeleton:()=>$c,StyledInput:()=>Rh,StyledInputBlockLabel:()=>Hh,StyledInputClearButton:()=>Kh,StyledInputContainer:()=>Mh,StyledInputContent:()=>Oh,StyledInputLabel:()=>Dh,StyledInputMainContainer:()=>Nh,StyledInputPlaceholder:()=>zh,StyledInputWrapper:()=>Ah,StyledLink:()=>yu,StyledLinkIcon:()=>$u,StyledLoading:()=>Au,StyledLoadingContainer:()=>Iu,StyledLoadingLabel:()=>Lu,StyledModal:()=>Yp,StyledModalBody:()=>Gp,StyledModalCloseButton:()=>Vp,StyledModalFooter:()=>Jp,StyledModalHeader:()=>Up,StyledModalHideTab:()=>Wp,StyledPagination:()=>$h,StyledPaginationEllipsis:()=>hh,StyledPaginationHighlight:()=>bh,StyledPaginationIcon:()=>gh,StyledPaginationItem:()=>fh,StyledPaginationItemContent:()=>mh,StyledPopover:()=>hy,StyledPre:()=>nd,StyledProgress:()=>Bp,StyledProgressBar:()=>zp,StyledRadioContainer:()=>Yu,StyledRadioDescription:()=>Ju,StyledRadioGroup:()=>qu,StyledRadioGroupContainer:()=>Zu,StyledRadioLabel:()=>Gu,StyledRadioPoint:()=>Uu,StyledRadioText:()=>Vu,StyledRow:()=>du,StyledSnippetCopyButton:()=>iu,StyledSnippetCopyButtonIcon:()=>nu,StyledSnippetPre:()=>ou,StyledSpacer:()=>jd,StyledSpinner:()=>Mu,StyledSpinnerContainer:()=>Nu,StyledSpinnerSpan:()=>Ru,StyledSwitch:()=>fp,StyledSwitchCircle:()=>mp,StyledSwitchContainer:()=>hp,StyledSwitchInput:()=>gp,StyledTable:()=>x$,StyledTableCell:()=>b$,StyledTableHeaderCell:()=>g$,StyledTableRow:()=>$$,StyledText:()=>ap,StyledTooltip:()=>Xd,StyledTooltipArrow:()=>Yd,StyledTooltipContent:()=>qd,StyledTooltipTrigger:()=>Jd,StyledUser:()=>kp,StyledUserDesc:()=>Tp,StyledUserInfo:()=>Ep,StyledUserName:()=>Pp,Switch:()=>$p,Table:()=>ry,Text:()=>pp,Textarea:()=>Yh,Tooltip:()=>tu,User:()=>Ap,blue:()=>$e,blueDark:()=>ye,changeTheme:()=>Za,config:()=>Ve,createTheme:()=>Ue,css:()=>Ke,cssFocusVisible:()=>tl,cssNoBlurriness:()=>rl,cyan:()=>Te,cyanDark:()=>Ie,defaultTheme:()=>We,excludedInputPropsForTextarea:()=>p,excludedTableProps:()=>h,extendedColors:()=>o,extendedColorsNoGradient:()=>s,extraColors:()=>a,getCssText:()=>_e,getDocumentTheme:()=>Xa,getTokenValue:()=>Ya,globalCss:()=>Fe,gray:()=>Re,grayDark:()=>Ae,green:()=>we,greenDark:()=>Se,keyframes:()=>je,normalColors:()=>t,normalLoaders:()=>l,normalWeights:()=>c,pink:()=>Ne,pinkDark:()=>Me,purple:()=>ve,purpleDark:()=>xe,red:()=>Ee,redDark:()=>Pe,sharedDialogPopup:()=>nl,sharedFocus:()=>el,sharedVisuallyHidden:()=>ol,simpleColors:()=>r,stitchesConfig:()=>Ve,styled:()=>Oe,textTransforms:()=>u,textWeights:()=>d,theme:()=>We,tuple:()=>e,useAsyncList:()=>Ht,useBodyScroll:()=>nt,useClickAnywhere:()=>ct,useClickAway:()=>it,useClipboard:()=>lt,useCollator:()=>Qo,useCurrentState:()=>f,useDrip:()=>yt,useInput:()=>dt,useKeyboard:()=>mt,useModal:()=>uh,usePagination:()=>$t,usePortal:()=>et,useRealShape:()=>$,useResize:()=>y,useSSR:()=>Xe,useTheme:()=>Ye,yellow:()=>Ce,yellowDark:()=>ke});const e=(...e)=>e,t=(e("xs","sm","md","lg","xl"),e("default","primary","secondary","success","warning","error","gradient")),r=e("default","primary","secondary","success","warning","error"),o=e("default","primary","secondary","success","warning","error","invert","gradient"),s=e("default","primary","secondary","success","warning","error","invert"),a=e("default","primary","secondary","success","warning","error","dark","lite","alert","purple","violet","gradient","cyan"),l=e("default","points","points-opacity","gradient","spinner"),c=e("light","normal","bold","extrabold","black"),d=e("normal","bold","lighter","bolder","inherit","initial","revert","unset"),u=e("none","capitalize","uppercase","lowercase","full-width","full-size-kana","inherit","initial","revert","unset"),p=(e("default","slient","prevent"),e("hover","click"),e("top","topStart","topEnd","left","leftStart","leftEnd","bottom","bottomStart","bottomEnd","right","rightStart","rightEnd"),e("static","relative","absolute","fixed","sticky","inherit","initial","revert","unset"),e("contain","cover","fill","none","scale-down","inherit","initial","revert","unset"),e("start","center","end","left","right"),e("flex-start","center","flex-end","space-between","space-around","space-evenly"),e("flex-start","flex-end","center","stretch","baseline"),e("stretch","center","flex-start","flex-end","space-between","space-around"),e("row","row-reverse","column","column-reverse"),e("nowrap","wrap","wrap-reverse"),e("flex","block","grid","inline","inline-block","inline-flex","inline-grid"),e("left","right"),e("start","center","end"),e("clearable","as","rounded","labelLeft","labelRight","contentLeft","contentRight","contentClickable","contentLeftStyling","contentRightStyling","onContentClick","onClearClick","css")),h=e("items","disabledKeys","allowDuplicateSelectionEvents","disallowEmptySelection","defaultSelectedKeys","sortDescriptor","onSortChange");e("toggle","replace"),e("none","single","multiple"),e("flat","light","solid","shadow"),e("flat","bordered","shadow");var g=n(787),m=n.n(g);const f=e=>{const[t,r]=(0,g.useState)((()=>"function"==typeof e?e():e)),o=(0,g.useRef)(e);return(0,g.useEffect)((()=>{o.current=t}),[t]),[t,e=>{const t="function"==typeof e?e(o.current):e;o.current=t,r(t)},o]},b=(e,t)=>{if(!e)return 0;const r=e.includes("px")?+e.split("px")[0]:e.includes("%")?+e.split("%")[0]*t*.01:e;return Number.isNaN(+r)?0:+r},$=e=>{const[t,r]=(0,g.useState)({width:0,height:0}),o=()=>{const{width:t,height:o}=(e=>{if(!e||"undefined"==typeof window)return{width:0,height:0};const t=e.getBoundingClientRect(),{width:r,height:o}=window.getComputedStyle(e);return{width:b(`${r}`,t.width),height:b(`${o}`,t.height)}})(e.current);r({width:t,height:o})};return(0,g.useEffect)((()=>o()),[e.current]),[t,o]},y=(e,t=!0)=>{(0,g.useEffect)((()=>{const r=()=>e();return t&&r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)}),[])};var v="colors",x="sizes",w="space",S={gap:w,gridGap:w,columnGap:w,gridColumnGap:w,rowGap:w,gridRowGap:w,inset:w,insetBlock:w,insetBlockEnd:w,insetBlockStart:w,insetInline:w,insetInlineEnd:w,insetInlineStart:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockEnd:w,marginBlockStart:w,marginInline:w,marginInlineEnd:w,marginInlineStart:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockEnd:w,paddingBlockStart:w,paddingInline:w,paddingInlineEnd:w,paddingInlineStart:w,top:w,right:w,bottom:w,left:w,scrollMargin:w,scrollMarginTop:w,scrollMarginRight:w,scrollMarginBottom:w,scrollMarginLeft:w,scrollMarginX:w,scrollMarginY:w,scrollMarginBlock:w,scrollMarginBlockEnd:w,scrollMarginBlockStart:w,scrollMarginInline:w,scrollMarginInlineEnd:w,scrollMarginInlineStart:w,scrollPadding:w,scrollPaddingTop:w,scrollPaddingRight:w,scrollPaddingBottom:w,scrollPaddingLeft:w,scrollPaddingX:w,scrollPaddingY:w,scrollPaddingBlock:w,scrollPaddingBlockEnd:w,scrollPaddingBlockStart:w,scrollPaddingInline:w,scrollPaddingInlineEnd:w,scrollPaddingInlineStart:w,fontSize:"fontSizes",background:v,backgroundColor:v,backgroundImage:v,borderImage:v,border:v,borderBlock:v,borderBlockEnd:v,borderBlockStart:v,borderBottom:v,borderBottomColor:v,borderColor:v,borderInline:v,borderInlineEnd:v,borderInlineStart:v,borderLeft:v,borderLeftColor:v,borderRight:v,borderRightColor:v,borderTop:v,borderTopColor:v,caretColor:v,color:v,columnRuleColor:v,fill:v,outline:v,outlineColor:v,stroke:v,textDecorationColor:v,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:x,minBlockSize:x,maxBlockSize:x,inlineSize:x,minInlineSize:x,maxInlineSize:x,width:x,minWidth:x,maxWidth:x,height:x,minHeight:x,maxHeight:x,flexBasis:x,gridTemplateColumns:x,gridTemplateRows:x,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},C=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,k=()=>{const e=Object.create(null);return(t,r,...o)=>{const n=(e=>JSON.stringify(e,C))(t);return n in e?e[n]:e[n]=r(t,...o)}},E=Symbol.for("sxs.internal"),P=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),T=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:I}=Object.prototype,N=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),M=/\s+(?![^()]*\))/,R=e=>t=>e(..."string"==typeof t?String(t).split(M):[t]),A={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:R(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:R(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:R(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:R(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:R(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:R(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},L=/([\d.]+)([^]*)/,B=(e,t)=>e.length?e.reduce(((e,r)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(e)?`:is(${r})`:r):r+" "+e))),e)),[]):t,z=(e,t)=>e in H&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,r,o,n)=>r+("stretch"===o?`-moz-available${n};${N(e)}:${r}-webkit-fill-available`:`-moz-fit-content${n};${N(e)}:${r}fit-content`)+n)):String(t),H={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},D=e=>e?e+"-":"",O=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,o,n,i,s)=>"$"==i==!!n?e:(o||"--"==i?"calc(":"")+"var(--"+("$"===i?D(t)+(s.includes("$")?"":D(r))+s.replace(/\$/g,"-"):s)+")"+(o||"--"==i?"*"+(o||"")+(n||"1")+")":""))),K=/\s*,\s*(?![^()]*\))/,F=Object.prototype.toString,j=(e,t,r,o,n)=>{let i,s,a;const l=(e,t,r)=>{let c,d;const u=e=>{for(c in e){const g=64===c.charCodeAt(0),m=g&&Array.isArray(e[c])?e[c]:[e[c]];for(d of m){const e=/[A-Z]/.test(h=c)?h:h.replace(/-[^]/g,(e=>e[1].toUpperCase())),m="object"==typeof d&&d&&d.toString===F&&(!o.utils[e]||!t.length);if(e in o.utils&&!m){const t=o.utils[e];if(t!==s){s=t,u(t(d)),s=null;continue}}else if(e in A){const t=A[e];if(t!==a){a=t,u(t(d)),a=null;continue}}if(g&&(p=c.slice(1)in o.media?"@media "+o.media[c.slice(1)]:c,c=p.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,r,o,n,i)=>{const s=L.test(t),a=.0625*(s?-1:1),[l,c]=s?[o,t]:[t,o];return"("+("="===r[0]?"":">"===r[0]===s?"max-":"min-")+l+":"+("="!==r[0]&&1===r.length?c.replace(L,((e,t,o)=>Number(t)+a*(">"===r?1:-1)+o)):c)+(n?") and ("+(">"===n[0]?"min-":"max-")+l+":"+(1===n.length?i.replace(L,((e,t,r)=>Number(t)+a*(">"===n?-1:1)+r)):i):"")+")"}))),m){const e=g?r.concat(c):[...r],o=g?[...t]:B(t,c.split(K));void 0!==i&&n(_(...i)),i=void 0,l(d,o,e)}else void 0===i&&(i=[[],t,r]),c=g||36!==c.charCodeAt(0)?c:`--${D(o.prefix)}${c.slice(1).replace(/\$/g,"-")}`,d=m?d:"number"==typeof d?d&&e in W?String(d)+"px":String(d):O(z(e,null==d?"":d),o.prefix,o.themeMap[e]),i[0].push(`${g?`${c} `:`${N(c)}:`}${d}`)}}var p,h};u(e),void 0!==i&&n(_(...i)),i=void 0};l(e,t,r)},_=(e,t,r)=>`${r.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,W={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},V=e=>String.fromCharCode(e+(e>25?39:97)),U=e=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=V(t%52)+r;return V(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(e))>>>0),G=["themed","global","styled","onevar","resonevar","allvar","inline"],J=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},Y=e=>{let t;const r=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((r,o)=>{const{cssText:n}=r;let i="";if(n.startsWith("--sxs"))return"";if(e[o-1]&&(i=e[o-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===r)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${n}`;return r.cssRules.length?`${i}${n}`:""}return n})).join("")},o=()=>{if(t){const{rules:e,sheet:r}=t;if(!r.deleteRule){for(;3===Object(Object(r.cssRules)[0]).type;)r.cssRules.splice(0,1);r.cssRules=[]}for(const t in e)delete e[t]}const n=Object(e).styleSheets||[];for(const e of n)if(J(e)){for(let n=0,i=e.cssRules;i[n];++n){const s=Object(i[n]);if(1!==s.type)continue;const a=Object(i[n+1]);if(4!==a.type)continue;++n;const{cssText:l}=s;if(!l.startsWith("--sxs"))continue;const c=l.slice(14,-3).trim().split(/\s+/),d=G[c[0]];d&&(t||(t={sheet:e,reset:o,rules:{},toString:r}),t.rules[d]={group:a,index:n,cache:new Set(c)})}if(t)break}if(!t){const n=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,n(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:n("","text/css"),rules:{},reset:o,toString:r}}const{sheet:i,rules:s}=t;for(let e=G.length-1;e>=0;--e){const t=G[e];if(!s[t]){const r=G[e+1],o=s[r]?s[r].index:i.cssRules.length;i.insertRule("@media{}",o),i.insertRule(`--sxs{--sxs:${e}}`,o),s[t]={group:i.cssRules[o+1],index:o,cache:new Set([e])}}X(s[t])}};return o(),t},X=e=>{const t=e.group;let r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},q=Symbol(),Z=k(),Q=(e,t)=>Z(e,(()=>(...r)=>{let o={type:null,composers:new Set};for(const t of r)if(null!=t)if(t[E]){null==o.type&&(o.type=t[E].type);for(const e of t[E].composers)o.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==o.type&&(o.type=t):o.composers.add(ee(t,e));return null==o.type&&(o.type="span"),o.composers.size||o.composers.add(["PJLV",{},[],[],{},[]]),te(e,o,t)})),ee=({variants:e,compoundVariants:t,defaultVariants:r,...o},n)=>{const i=`${D(n.prefix)}c-${U(o)}`,s=[],a=[],l=Object.create(null),c=[];for(const e in r)l[e]=String(r[e]);if("object"==typeof e&&e)for(const t in e){d=l,u=t,I.call(d,u)||(l[t]="undefined");const r=e[t];for(const e in r){const o={[t]:String(e)};"undefined"===String(e)&&c.push(t);const n=r[e],i=[o,n,!T(n)];s.push(i)}}var d,u;if("object"==typeof t&&t)for(const e of t){let{css:t,...r}=e;t="object"==typeof t&&t||{};for(const e in r)r[e]=String(r[e]);const o=[r,t,!T(t)];a.push(o)}return[i,o,s,a,l,c]},te=(e,t,r)=>{const[o,n,i,s]=re(t.composers),a="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;r<t[q].length;r++){const[o,n]=t[q][r];e.rules[o].apply(n)}return t[q]=[],null}return t[q]=[],t.rules={},G.forEach((e=>t.rules[e]={apply:r=>t[q].push([e,r])})),t})(r):null,l=(a||r).rules,c=`.${o}${n.length>1?`:where(.${n.slice(1).join(".")})`:""}`,d=d=>{d="object"==typeof d&&d||ne;const{css:u,...p}=d,h={};for(const e in i)if(delete p[e],e in d){let t=d[e];"object"==typeof t&&t?h[e]={"@initial":i[e],...t}:(t=String(t),h[e]="undefined"!==t||s.has(e)?t:i[e])}else h[e]=i[e];const g=new Set([...n]);for(const[o,n,i,s]of t.composers){r.rules.styled.cache.has(o)||(r.rules.styled.cache.add(o),j(n,[`.${o}`],[],e,(e=>{l.styled.apply(e)})));const t=oe(i,h,e.media),a=oe(s,h,e.media,!0);for(const n of t)if(void 0!==n)for(const[t,i,s]of n){const n=`${o}-${U(i)}-${t}`;g.add(n);const a=(s?r.rules.resonevar:r.rules.onevar).cache,c=s?l.resonevar:l.onevar;a.has(n)||(a.add(n),j(i,[`.${n}`],[],e,(e=>{c.apply(e)})))}for(const t of a)if(void 0!==t)for(const[n,i]of t){const t=`${o}-${U(i)}-${n}`;g.add(t),r.rules.allvar.cache.has(t)||(r.rules.allvar.cache.add(t),j(i,[`.${t}`],[],e,(e=>{l.allvar.apply(e)})))}}if("object"==typeof u&&u){const t=`${o}-i${U(u)}-css`;g.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),j(u,[`.${t}`],[],e,(e=>{l.inline.apply(e)})))}for(const e of String(d.className||"").trim().split(/\s+/))e&&g.add(e);const m=p.className=[...g].join(" ");return{type:t.type,className:m,selector:c,props:p,toString:()=>m,deferredInjector:a}};return P(d,{className:o,selector:c,[E]:t,toString:()=>(r.rules.styled.cache.has(o)||d(),o)})},re=e=>{let t="";const r=[],o={},n=[];for(const[i,,,,s,a]of e){""===t&&(t=i),r.push(i),n.push(...a);for(const e in s){const t=s[e];(void 0===o[e]||"undefined"!==t||a.includes(t))&&(o[e]=t)}}return[t,r,o,new Set(n)]},oe=(e,t,r,o)=>{const n=[];e:for(let[i,s,a]of e){if(a)continue;let e,l=0,c=!1;for(e in i){const o=i[e];let n=t[e];if(n!==o){if("object"!=typeof n||!n)continue e;{let e,t,i=0;for(const s in n){if(o===String(n[s])){if("@initial"!==s){const e=s.slice(1);(t=t||[]).push(e in r?r[e]:s.replace(/^@media ?/,"")),c=!0}l+=i,e=!0}++i}if(t&&t.length&&(s={["@media "+t.join(", ")]:s}),!e)continue e}}}(n[l]=n[l]||[]).push([o?"cv":`${e}-${i[e]}`,s,c])}return n},ne={},ie=k(),se=(e,t)=>ie(e,(()=>(...r)=>{const o=()=>{for(let o of r){o="object"==typeof o&&o||{};let r=U(o);if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in o){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let r of[].concat(o["@import"]))r=r.includes('"')||r.includes("'")?r:`"${r}"`,t.sheet.insertRule(`@import ${r};`,e++);delete o["@import"]}j(o,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return P(o,{toString:o})})),ae=k(),le=(e,t)=>ae(e,(()=>r=>{const o=`${D(e.prefix)}k-${U(r)}`,n=()=>{if(!t.rules.global.cache.has(o)){t.rules.global.cache.add(o);const n=[];j(r,[],[],e,(e=>n.push(e)));const i=`@keyframes ${o}{${n.join("")}}`;t.rules.global.apply(i)}return o};return P(n,{get name(){return n()},toString:n})})),ce=class{constructor(e,t,r,o){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==r?"":String(r),this.prefix=null==o?"":String(o)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+D(this.prefix)+D(this.scale)+this.token}toString(){return this.computedValue}},de=k(),ue=(e,t)=>de(e,(()=>(r,o)=>{o="object"==typeof r&&r||Object(o);const n=`.${r=(r="string"==typeof r?r:"")||`${D(e.prefix)}t-${U(o)}`}`,i={},s=[];for(const t in o){i[t]={};for(const r in o[t]){const n=`--${D(e.prefix)}${t}-${r}`,a=O(String(o[t][r]),e.prefix,t);i[t][r]=new ce(r,a,t,e.prefix),s.push(`${n}:${a}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);const n=`${o===e.theme?":root,":""}.${r}{${s.join(";")}}`;t.rules.themed.apply(n)}return r};return{...i,get className(){return a()},selector:n,toString:a}})),pe=k(),he=k();const ge={fonts:{sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI','Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans','Helvetica Neue', sans-serif;",mono:"Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono','Courier New', monospace;"},fontSizes:{xs:"0.75rem",sm:"0.875rem",base:"1rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem",xl5:"3rem",xl6:"3.75rem",xl7:"4.5rem",xl8:"6rem",xl9:"8rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{xs:1,sm:1.25,base:1.5,md:1.5,lg:1.75,xl:1.75,xl2:2,xl3:2.25,xl4:2.5,xl5:1,xl6:1,xl7:1,xl8:1,xl9:1},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},space:{0:"0rem",xs:"0.5rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"2.25rem",px:"1px",1:"0.125rem",2:"0.25rem",3:"0.375rem",4:"0.5rem",5:"0.625rem",6:"0.75rem",7:"0.875rem",8:"1rem",9:"1.25rem",10:"1.5rem",11:"1.75rem",12:"2rem",13:"2.25rem",14:"2.5rem",15:"2.75rem",16:"3rem",17:"3.5rem",18:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},radii:{xs:"7px",sm:"9px",md:"12px",base:"14px",lg:"14px",xl:"18px",squared:"33%",rounded:"50%",pill:"9999px"},zIndices:{1:"100",2:"200",3:"300",4:"400",5:"500",10:"1000",max:"9999"},borderWeights:{light:"1px",normal:"2px",bold:"3px",extrabold:"4px",black:"5px"},transitions:{default:"all 250ms ease",button:"background 0.25s ease 0s, color 0.25s ease 0s, border-color 0.25s ease 0s, box-shadow 0.25s ease 0s, transform 0.25s ease 0s, opacity 0.25s ease 0s",avatar:"box-shadow 0.25s ease 0s, opacity 0.25s ease 0s",link:"opacity 0.25s ease 0s, background 0.25s ease 0s",card:"transform 0.25s ease 0s, filter 0.25s ease 0s, box-shadow 0.25s ease 0s",dropdownItem:"background 0.25s ease, transform 0.25s ease, color 0.15s ease, box-shadow 0.25s ease 0s"},breakpoints:{xs:"650px",sm:"960px",md:"1280px",lg:"1400px",xl:"1920px"}},me={xs:`(min-width: ${ge.breakpoints.xs})`,sm:`(min-width: ${ge.breakpoints.sm})`,md:`(min-width: ${ge.breakpoints.md})`,lg:`(min-width: ${ge.breakpoints.lg})`,xl:`(min-width: ${ge.breakpoints.xl})`,xsMax:`(max-width: ${ge.breakpoints.xs})`,smMax:`(max-width: ${ge.breakpoints.sm})`,mdMax:`(max-width: ${ge.breakpoints.md})`,lgMax:`(max-width: ${ge.breakpoints.lg})`,xlMax:`(max-width: ${ge.breakpoints.xl})`,motion:"(prefers-reduced-motion: reduce)",safari:"not all and (min-resolution:.001dpcm)",hover:"(any-hover: hover)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"},fe={...S,width:"space",height:"space",minWidth:"space",maxWidth:"space",minHeight:"space",maxHeight:"space",flexBasis:"space",gridTemplateColumns:"space",gridTemplateRows:"space",blockSize:"space",minBlockSize:"space",maxBlockSize:"space",inlineSize:"space",minInlineSize:"space",maxInlineSize:"space",borderWidth:"borderWeights"},be={prefix:"nextui",theme:{...ge,colors:{white:"#ffffff",black:"#000000",primaryLight:"$blue200",primaryLightHover:"$blue300",primaryLightActive:"$blue400",primaryLightContrast:"$blue600",primary:"$blue600",primaryBorder:"$blue500",primaryBorderHover:"$blue600",primarySolidHover:"$blue700",primarySolidContrast:"$white",primaryShadow:"$blue500",secondaryLight:"$purple200",secondaryLightHover:"$purple300",secondaryLightActive:"$purple400",secondaryLightContrast:"$purple600",secondary:"$purple600",secondaryBorder:"$purple500",secondaryBorderHover:"$purple600",secondarySolidHover:"$purple700",secondarySolidContrast:"$white",secondaryShadow:"$purple500",successLight:"$green200",successLightHover:"$green300",successLightActive:"$green400",successLightContrast:"$green700",success:"$green600",successBorder:"$green500",successBorderHover:"$green600",successSolidHover:"$green700",successSolidContrast:"$white",successShadow:"$green500",warningLight:"$yellow200",warningLightHover:"$yellow300",warningLightActive:"$yellow400",warningLightContrast:"$yellow700",warning:"$yellow600",warningBorder:"$yellow500",warningBorderHover:"$yellow600",warningSolidHover:"$yellow700",warningSolidContrast:"$white",warningShadow:"$yellow500",errorLight:"$red200",errorLightHover:"$red300",errorLightActive:"$red400",errorLightContrast:"$red600",error:"$red600",errorBorder:"$red500",errorBorderHover:"$red600",errorSolidHover:"$red700",errorSolidContrast:"$white",errorShadow:"$red500",neutralLight:"$gray100",neutralLightHover:"$gray200",neutralLightActive:"$gray300",neutralLightContrast:"$gray800",neutral:"$gray600",neutralBorder:"$gray400",neutralBorderHover:"$gray500",neutralSolidHover:"$gray600",neutralSolidContrast:"$white",neutralShadow:"$gray400",gradient:"linear-gradient(112deg, $cyan600 -63.59%, $pink600 -20.3%, $blue600 70.46%)",accents0:"$gray50",accents1:"$gray100",accents2:"$gray200",accents3:"$gray300",accents4:"$gray400",accents5:"$gray500",accents6:"$gray600",accents7:"$gray700",accents8:"$gray800",accents9:"$gray900",border:"$gray300"},shadows:{},dropShadows:{}},media:me,utils:{p:e=>({padding:e}),pt:e=>({paddingTop:e}),pr:e=>({paddingRight:e}),pb:e=>({paddingBottom:e}),pl:e=>({paddingLeft:e}),px:e=>({paddingLeft:e,paddingRight:e}),py:e=>({paddingTop:e,paddingBottom:e}),m:e=>({margin:e}),mt:e=>({marginTop:e}),mr:e=>({marginRight:e}),mb:e=>({marginBottom:e}),ml:e=>({marginLeft:e}),mx:e=>({marginLeft:e,marginRight:e}),my:e=>({marginTop:e,marginBottom:e}),ta:e=>({textAlign:e}),tt:e=>({textTransform:e}),to:e=>({textOverflow:e}),d:e=>({display:e}),dflex:e=>({display:"flex",alignItems:e,justifyContent:e}),fd:e=>({flexDirection:e}),fw:e=>({flexWrap:e}),ai:e=>({alignItems:e}),ac:e=>({alignContent:e}),jc:e=>({justifyContent:e}),as:e=>({alignSelf:e}),fg:e=>({flexGrow:e}),fs:e=>({fontSize:e}),fb:e=>({flexBasis:e}),bc:e=>({backgroundColor:e}),bf:e=>({backdropFilter:e}),bg:e=>({background:e}),bgBlur:e=>({bf:"saturate(180%) blur(10px)",bg:e}),bgColor:e=>({backgroundColor:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),bgClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),br:e=>({borderRadius:e}),bw:e=>({borderWidth:e}),btrr:e=>({borderTopRightRadius:e}),bbrr:e=>({borderBottomRightRadius:e}),bblr:e=>({borderBottomLeftRadius:e}),btlr:e=>({borderTopLeftRadius:e}),bs:e=>({boxShadow:e}),ds:e=>({dropShadow:e}),shadow:e=>({boxShadow:e}),dshadow:e=>({dropShadow:e}),dropShadow:e=>({filter:`$dropShadows${e}`}),normalShadow:e=>({boxShadow:`0 4px 14px 0 $colors${e}`}),normalShadowVar:e=>({boxShadow:`0 4px 14px 0 ${e}`}),lh:e=>({lineHeight:e}),ov:e=>({overflow:e}),ox:e=>({overflowX:e}),oy:e=>({overflowY:e}),pe:e=>({pointerEvents:e}),events:e=>({pointerEvents:e}),us:e=>({WebkitUserSelect:e,userSelect:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),w:e=>({width:e}),h:e=>({height:e}),mw:e=>({maxWidth:e}),maxW:e=>({maxWidth:e}),mh:e=>({maxHeight:e}),maxH:e=>({maxHeight:e}),size:e=>({width:e,height:e}),minSize:e=>({minWidth:e,minHeight:e,width:e,height:e}),sizeMin:e=>({minWidth:e,minHeight:e,width:e,height:e}),maxSize:e=>({maxWidth:e,maxHeight:e}),sizeMax:e=>({maxWidth:e,maxHeight:e}),appearance:e=>({WebkitAppearance:e,appearance:e}),scale:e=>({transform:`scale(${e})`}),linearGradient:e=>({backgroundImage:`linear-gradient(${e})`}),tdl:e=>({textDecorationLine:e}),truncateText:e=>({maxWidth:e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),textGradient:e=>({backgroundImage:`linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent","&::selection":{WebkitTextFillColor:"$colors$text"}})},themeMap:fe},$e={blue50:"#EDF5FF",blue100:"#E1EFFF",blue200:"#CEE4FE",blue300:"#B7D5F8",blue400:"#96C1F2",blue500:"#5EA2EF",blue600:"#0072F5",blue700:"#005FCC",blue800:"#004799",blue900:"#00254D"},ye={blue50:"#10253E",blue100:"#102C4C",blue200:"#0F3158",blue300:"#0D3868",blue400:"#0A4281",blue500:"#0952A5",blue600:"#0072F5",blue700:"#3694FF",blue800:"#3694FF",blue900:"#EAF4FF"},ve={purple50:"#F7F2FD",purple100:"#F1E8FB",purple200:"#EADCF8",purple300:"#E0CBF5",purple400:"#D1B1F0",purple500:"#BC8EE9",purple600:"#7828C8",purple700:"#6622AA",purple800:"#4D1980",purple900:"#290E44"},xe={purple50:"#1F0A33",purple100:"#240C3C",purple200:"#2E0F4D",purple300:"#3B1362",purple400:"#451773",purple500:"#571D91",purple600:"#7828C8",purple700:"#9750DD",purple800:"#B583E7",purple900:"#F7ECFC"},we={green50:"#F1FDF7",green100:"#E8FCF1",green200:"#DAFBE8",green300:"#C8F9DD",green400:"#ADF5CC",green500:"#88F1B6",green600:"#17C964",green700:"#13A452",green800:"#108944",green900:"#06371B"},Se={green50:"#042F14",green100:"#06381B",green200:"#074A24",green300:"#0A6130",green400:"#0B7439",green500:"#0F9549",green600:"#17C964",green700:"#41EC8B",green800:"#78F2AD",green900:"#ECFDF4"},Ce={yellow50:"#FEF9F0",yellow100:"#FEF5E7",yellow200:"#FDEFD8",yellow300:"#FCE7C5",yellow400:"#FBDBA7",yellow500:"#F9CB80",yellow600:"#F5A524",yellow700:"#B97509",yellow800:"#925D07",yellow900:"#4E3104"},ke={yellow50:"#3A2503",yellow100:"#442B03",yellow200:"#583804",yellow300:"#704705",yellow400:"#845306",yellow500:"#A66908",yellow600:"#F5A524",yellow700:"#F6AD37",yellow800:"#F8C572",yellow900:"#FEF7EC"},Ee={red50:"#FEF0F5",red100:"#FEE7EF",red200:"#FDD8E5",red300:"#FCC5D8",red400:"#FAA8C5",red500:"#F881AB",red600:"#F31260",red700:"#B80A47",red800:"#910838",red900:"#4E041E"},Pe={red50:"#300313",red100:"#300313",red200:"#44041A",red300:"#5C0523",red400:"#6F062B",red500:"#910838",red600:"#F31260",red700:"#F4256D",red800:"#F75F94",red900:"#FDD8E5"},Te={cyan50:"#F0FCFF",cyan100:"#E6FAFE",cyan200:"#D7F8FE",cyan300:"#C3F4FD",cyan400:"#A5EEFD",cyan500:"#7EE7FC",cyan600:"#06B7DB",cyan700:"#09AACD",cyan800:"#0E8AAA",cyan900:"#053B48"},Ie={cyan50:"#012A32",cyan100:"#023A46",cyan200:"#024B5A",cyan300:"#036072",cyan400:"#037086",cyan500:"#048EA9",cyan600:"#06B7DB",cyan700:"#33D9FA",cyan800:"#6FE4FB",cyan900:"#EBFBFE"},Ne={pink50:"#FFF0FB",pink100:"#FFE5F8",pink200:"#FFD6F3",pink300:"#FFC2EE",pink400:"#FFA3E5",pink500:"#FF7AD9",pink600:"#FF4ECD",pink700:"#D6009A",pink800:"#B80084",pink900:"#4D0037"},Me={pink50:"#330025",pink100:"#470033",pink200:"#5C0042",pink300:"#750054",pink400:"#8A0063",pink500:"#AD007C",pink600:"#FF4ECD",pink700:"#FF2EC4",pink800:"#FF6BD5",pink900:"#FFEBF9"},Re={gray50:"#F1F3F5",gray100:"#ECEEF0",gray200:"#E6E8EB",gray300:"#DFE3E6",gray400:"#D7DBDF",gray500:"#C1C8CD",gray600:"#889096",gray700:"#7E868C",gray800:"#687076",gray900:"#11181C"},Ae={gray50:"#16181A",gray100:"#26292B",gray200:"#2B2F31",gray300:"#313538",gray400:"#3A3F42",gray500:"#4C5155",gray600:"#697177",gray700:"#787F85",gray800:"#9BA1A6",gray900:"#ECEDEE"},Le={colors:{background:"$white",foreground:"$black",backgroundContrast:"$white",...$e,...ve,...we,...Ce,...Ee,...Te,...Ne,...Re,text:"$gray900",link:"$blue600",codeLight:"$pink100",code:"$pink600",selection:"$blue200"},shadows:{xs:"0 2px 8px 1px rgb(104 112 118 / 0.07), 0 1px 1px -1px rgb(104 112 118 / 0.04)",sm:"0 2px 8px 2px rgb(104 112 118 / 0.07), 0 2px 4px -1px rgb(104 112 118 / 0.04)",md:"0 12px 20px 6px rgb(104 112 118 / 0.08)",lg:"0 12px 34px 6px rgb(104 112 118 / 0.18)",xl:"0 25px 65px 0px rgb(104 112 118 / 0.35)"},dropShadows:{xs:"drop-shadow(0 2px 4px rgb(104 112 118 / 0.07)) drop-shadow(0 1px 1px rgb(104 112 118 / 0.04))",sm:"drop-shadow(0 2px 8px rgb(104 112 118 / 0.07)) drop-shadow(0 2px 4px rgb(104 112 118 / 0.04))",md:"drop-shadow(0 4px 12px rgb(104 112 118 / 0.08)) drop-shadow(0 20px 8px rgb(104 112 118 / 0.04))",lg:"drop-shadow(0 12px 24px rgb(104 112 118 / 0.15)) drop-shadow(0 12px 14px rgb(104 112 118 / 0.1))",xl:"drop-shadow(0 25px 34px rgb(104 112 118 / 0.35))"}},Be={colors:{background:"$black",foreground:"$white",backgroundContrast:"$accents0",...ye,...xe,...Se,...ke,...Pe,...Ie,...Me,...Ae,primaryLight:"$blue50",primaryLightHover:"$blue100",primaryLightActive:"$blue200",primaryLightContrast:"$blue600",secondaryLight:"$purple50",secondaryLightHover:"$purple100",secondaryLightActive:"$purple200",secondaryLightContrast:"$purple800",secondary:"$purple700",secondaryBorder:"$purple500",secondaryBorderHover:"$purple600",secondarySolidHover:"$purple700",secondaryShadow:"$purple500",successLight:"$green50",successLightHover:"$green100",successLightActive:"$green200",warningLight:"$yellow50",warningLightHover:"$yellow100",warningLightActive:"$yellow200",errorLight:"$red50",errorLightHover:"$red100",errorLightActive:"$red200",errorLightContrast:"$red700",neutralLight:"$gray200",neutralLightHover:"$gray300",neutralLightActive:"$gray400",neutralSolidContrast:"$white",text:"$gray900",link:"$blue700",codeLight:"$cyan50",code:"$cyan600",selection:"$pink800"},shadows:{xs:"0 2px 8px 1px rgb(0 0 0 / 0.07), 0 1px 1px -1px rgb(0 0 0 / 0.04)",sm:"0 2px 8px 2px rgb(0 0 0 / 0.07), 0 2px 4px -1px rgb(0 0 0 / 0.04)",md:"0 12px 20px 6px rgb(0 0 0 / 0.08)",lg:"0 12px 34px 6px rgb(0 0 0 / 0.18)",xl:"0 25px 65px 0px rgb(0 0 0 / 0.35)"},dropShadows:{xs:"drop-shadow(0 2px 4px rgb(0 0 0 / 0.07)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.04))",sm:"drop-shadow(0 2px 8px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.04))",md:"drop-shadow(0 4px 12px rgb(0 0 0 / 0.08)) drop-shadow(0 20px 8px rgb(0 0 0 / 0.04))",lg:"drop-shadow(0 12px 24px rgb(0 0 0 / 0.15)) drop-shadow(0 12px 14px rgb(0 0 0 / 0.1))",xl:"drop-shadow(0 25px 34px rgb(0 0 0 / 0.35))"}};function ze(e){for(var t,r,o=Array.prototype.slice.call(arguments,1);o.length;)for(r in t=o.shift())t.hasOwnProperty(r)&&("object"==typeof e[r]&&e[r]&&"[object Array]"!==Object.prototype.toString.call(e[r])&&"object"==typeof t[r]&&null!==t[r]?e[r]=ze({},e[r],t[r]):e[r]=t[r]);return e}const He=(e=>{const t=(e=>{let t=!1;const r=pe(e,(e=>{t=!0;const r="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",o="object"==typeof e.media&&e.media||{},n="object"==typeof e.root?e.root||null:globalThis.document||null,i="object"==typeof e.theme&&e.theme||{},s={prefix:r,media:o,theme:i,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...S},utils:"object"==typeof e.utils&&e.utils||{}},a=Y(n),l={css:Q(s,a),globalCss:se(s,a),keyframes:le(s,a),createTheme:ue(s,a),reset(){a.reset(),l.theme.toString()},theme:{},sheet:a,config:s,prefix:r,getCssText:a.toString,toString:a.toString};return String(l.theme=l.createTheme(i)),l}));return t||r.reset(),r})(e);return t.styled=(({config:e,sheet:t})=>he(e,(()=>{const r=Q(e,t);return(...e)=>{const t=r(...e),o=t[E].type,n=g.forwardRef(((e,r)=>{const n=e&&e.as||o,{props:i,deferredInjector:s}=t(e);return delete i.as,i.ref=r,s?g.createElement(g.Fragment,null,g.createElement(n,i),g.createElement(s,null)):g.createElement(n,i)}));return n.className=t.className,n.displayName=`Styled.${o.displayName||o.name||o}`,n.selector=t.selector,n.toString=()=>t.selector,n[E]=t[E],n}})))(t),t})({...be,theme:{...be.theme,shadows:{...Le.shadows},dropShadows:{...Le.dropShadows},colors:{...be.theme.colors,...Le.colors}}}),De=He.createTheme,Oe=He.styled,Ke=He.css,Fe=He.globalCss,je=He.keyframes,_e=He.getCssText,We=He.theme,Ve=He.config,Ue=({type:e,theme:t,className:r})=>{if(!e)throw new Error("Theme type is required");return De(r||`${e}-theme`,ze("dark"===e?Be:Le,t))},Ge={isDark:!1,theme:We,type:"light"},Je=m().createContext(Ge),Ye=()=>m().useContext(Je),Xe=()=>{const[e,t]=(0,g.useState)(!1);return(0,g.useEffect)((()=>{t(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))}),[]),{isBrowser:e,isServer:!e}},qe=(e,t)=>{let r=[];return[m().Children.map(e,(e=>m().isValidElement(e)&&e.type===t?(r.push(e),null):e)),r.length>=0?r:void 0]},Ze=()=>!!Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)&&navigator.platform.toUpperCase().indexOf("MAC")>=0,Qe=e=>{const t=document.createElement("div");return t.setAttribute("id",e),t},et=(e=(()=>Math.random().toString(32).slice(2,10))(),t)=>{const r=`nextui-${e}`,{isBrowser:o}=Xe(),[n,i]=(0,g.useState)(o?Qe(r):null);return(0,g.useEffect)((()=>{const e=(t?t():null)||document.body,o=e.querySelector(`#${r}`),n=o||Qe(r);o||e.appendChild(n),i(n)}),[]),n},tt={scrollLayer:!1},rt=new Map,ot=e=>!!(e.touches&&e.touches.length>1)||(e.preventDefault(),!1),nt=(e,t)=>{if("undefined"==typeof document)return[!1,e=>e];const r=e||(0,g.useRef)(document.body),[o,n]=(0,g.useState)(!1),i={...tt,...t||{}},s=()=>!i.scrollLayer&&!("undefined"==typeof window||!window.navigator)&&/iP(ad|hone|od)/.test(window.navigator.platform);return(0,g.useEffect)((()=>{if(!r||!r.current)return;const e=r.current.style.overflow;if(o){if(rt.has(r.current))return;return s()?document.addEventListener("touchmove",ot,{passive:!1}):r.current.style.overflow="hidden",void rt.set(r.current,{last:e})}if(rt.has(r.current)){if(s())document.removeEventListener("touchmove",ot);else{const e=rt.get(r.current);r.current.style.overflow=e.last}rt.delete(r.current)}}),[o,r]),[o,n]},it=(e,t)=>{(0,g.useEffect)((()=>{const r=r=>{const o=e.current;r&&o&&!o.contains(r.target)&&t(r)};return document.addEventListener("click",r),()=>document.removeEventListener("click",r)}),[e,t])},st={},at={onError:()=>false},lt=(e=at)=>{const t=et("clipboard"),r=(0,g.useCallback)((r=>{((t,r)=>{if(!t||!r)return;const o=window.getSelection();if(!o)return;t.style.whiteSpace="pre",t.textContent=r;const n=window.document.createRange();o.removeAllRanges(),n.selectNode(t),o.addRange(n);try{window.document.execCommand("copy")}catch(t){e.onError&&e.onError()}o.removeAllRanges(),t&&(t.textContent="")})(t,r)}),[t]);return{copy:r}},ct=e=>{(0,g.useEffect)((()=>{const t=t=>e(t);return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}),[e])},dt=e=>{const[t,r,o]=f(e);return{value:t,setValue:r,currentRef:o,reset:()=>r(e),bindings:{value:t,onChange:e=>{"object"==typeof e&&e.target?r(e.target.value):r(e)}}}},ut={Unknown:0,Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,PauseBreak:19,CapsLock:20,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46,KEY_0:48,KEY_1:49,KEY_2:50,KEY_3:51,KEY_4:52,KEY_5:53,KEY_6:54,KEY_7:55,KEY_8:56,KEY_9:57,KEY_A:65,KEY_B:66,KEY_C:67,KEY_D:68,KEY_E:69,KEY_F:70,KEY_G:71,KEY_H:72,KEY_I:73,KEY_J:74,KEY_K:75,KEY_L:76,KEY_M:77,KEY_N:78,KEY_O:79,KEY_P:80,KEY_Q:81,KEY_R:82,KEY_S:83,KEY_T:84,KEY_U:85,KEY_V:86,KEY_W:87,KEY_X:88,KEY_Y:89,KEY_Z:90,Meta:91,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NumLock:144,ScrollLock:145,Equal:187,Minus:189,Backquote:192,Backslash:220},pt={CtrlCmd:2048,Shift:1024,Alt:512,WinCtrl:256},ht=e=>e&&"object"==typeof e,gt=(e,t)=>ht(e)?e instanceof Array?[...e]:e[t]:e,mt=(e,t,r={})=>{const o=Array.isArray(t)?t:[t],{disableGlobalEvent:n=!1,capture:i=!1,stopPropagation:s=!1,preventDefault:a=!1,event:l="keydown"}=r,c=(e=>{const t=e.filter((e=>!!gt(pt,e))),r={CtrlCmd:!1,Shift:!1,Alt:!1,WinCtrl:!1};return t.forEach((e=>{const t=gt(pt,e);r[t]=!0})),r})(o),d=o.filter((e=>!gt(pt,e))),{CtrlCmd:u,WinCtrl:p}={CtrlCmd:Ze()?"metaKey":"ctrlKey",WinCtrl:Ze()?"ctrlKey":"metaKey"},h=t=>{c.Shift&&!t.shiftKey||c.Alt&&!t.altKey||c.CtrlCmd&&!t[u]||c.WinCtrl&&!t[p]||d.length>0&&!d.includes(t.keyCode)||(s&&t.stopPropagation(),a&&t.preventDefault(),e&&e(t))};(0,g.useEffect)((()=>(n||document.addEventListener(l,h),()=>{document.removeEventListener(l,h)})),[n]);const m=(e,t=!1)=>e!==l||t!==i?()=>{}:e=>h(e);return{bindings:{onKeyDown:m("keydown"),onKeyDownCapture:m("keydown",!0),onKeyPress:m("keypress"),onKeyPressCapture:m("keypress",!0),onKeyUp:m("keyup"),onKeyUpCapture:m("keyup",!0)}}};function ft(e,t){const r=t-e+1;return Array.from({length:r},((t,r)=>r+e))}const bt="dots",$t=({page:e,total:t,siblings:r=1,boundaries:o=1,initialPage:n=1,onChange:i})=>{const[s,a]=(0,g.useState)(e||n);(0,g.useEffect)((()=>{e&&e!==s&&a(e)}),[e]);const l=(0,g.useCallback)((e=>{var r;a(r=e<=0?1:e>t?t:e),i&&i(r)}),[t]);return{range:(0,g.useMemo)((()=>{if(2*r+3+2*o>=t)return ft(1,t);const e=Math.max(s-r,o),n=Math.min(s+r,t-o),i=e>o+2,a=n<t-(o+1);if(!i&&a)return[...ft(1,2*r+o+2),bt,...ft(t-(o-1),t)];if(i&&!a){const e=o+1+2*r;return[...ft(1,o),bt,...ft(t-e,t)]}return[...ft(1,o),bt,...ft(e,n),bt,...ft(t-o+1,t)]}),[t,r,s]),active:s,setPage:l,next:()=>l(s+1),previous:()=>l(s-1),first:()=>l(1),last:()=>l(t)}},yt=(e=!1,t)=>{const[r,o]=(0,g.useState)(e),[n,i]=(0,g.useState)(0),[s,a]=(0,g.useState)(0);return{visible:r,x:n,y:s,onClick:e=>{if(!t.current)return;const r=t.current.getBoundingClientRect();o(!0),i(e.clientX-r.left),a(e.clientY-r.top)},onCompleted:()=>{o(!1),i(0),a(0)}}},vt=(e,t)=>(e.defaultProps=t,e);function xt(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=xt(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function wt(...e){for(var t,r,o=0,n="";o<e.length;)(t=e[o++])&&(r=xt(t))&&(n&&(n+=" "),n+=r);return n}var St=n(678);const Ct=je({"0%":{opacity:0,transform:"scale(0.25)"},"30%":{opacity:1},"80%":{opacity:.5},"100%":{transform:"scale(28)",opacity:0}}),kt=Oe("div",{position:"absolute",left:0,right:0,top:0,bottom:0,"& svg":{position:"absolute",animation:`350ms linear ${Ct}`,animationFillMode:"forwards",width:"$md",height:"$md"}}),Et=({visible:e,x:t,y:r,color:o,onCompleted:n,className:i,...s})=>{const a=(0,g.useRef)(null),l=Number.isNaN(+r)?0:r-10,c=Number.isNaN(+t)?0:t-10;return(0,g.useEffect)((()=>{if(a.current)return a.current.addEventListener("animationend",n),()=>{a.current&&a.current.removeEventListener("animationend",n)}})),e?(0,St.jsx)(kt,{ref:a,className:wt("nextui-drip",i),...s,children:(0,St.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",style:{top:l,left:c},children:(0,St.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,St.jsx)("g",{className:"nextui-drip-filler",fill:o,children:(0,St.jsx)("rect",{width:"100%",height:"100%",rx:"10"})})})})}):null},Pt=vt(m().memo(Et),{visible:!1,x:0,y:0,className:""}),Tt=Fe({"*, *:before, *:after":{boxSizing:"border-box",textRendering:"geometricPrecision",WebkitTapHighlightColor:"transparent"},html:{fontSize:"$base"},body:{margin:0,padding:0,minHeight:"100%",position:"relative",overflowX:"hidden",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",fontSize:"$base",lineHeight:"$md",fontFamily:"$sans"},"html, body":{backgroundColor:"$background",color:"$text"},"p, small":{color:"inherit",letterSpacing:"$tighter",fontWeight:"$normal",fontFamily:"$sans"},p:{fontSize:"$base",lineHeight:"$lg"},small:{margin:0,lineHeight:"$xs",fontSize:"$xs"},b:{fontWeight:"$semibold"},span:{fontSize:"inherit",color:"inherit",fontWeight:"inherit"},img:{maxWidth:"100%"},a:{cursor:"pointer",fontSize:"inherit",WebkitTouchCallout:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitBoxAlign:"center",alignItems:"center",color:"$link",textDecoration:"none"},"a:hover":{textDecoration:"none"},"ul,ol":{padding:0,listStyleType:"none",margin:"$sm $sm $sm $lg",color:"$foreground"},ol:{listStyleType:"decimal"},li:{marginBottom:"$5",fontSize:"$base",lineHeight:"$lg"},"h1,h2,h3,h4,h5,h6":{color:"inherit",margin:"0 0 $5 0"},h1:{letterSpacing:"$tighter",fontSize:"$xl5",lineHeight:"$md",fontWeight:"$bold"},h2:{letterSpacing:"$tighter",fontSize:"$xl4",fontWeight:"$semibold"},h3:{letterSpacing:"$tighter",fontSize:"$xl2",fontWeight:"$semibold"},h4:{letterSpacing:"$tighter",fontSize:"$xl",fontWeight:"$semibold"},h5:{letterSpacing:"$tight",fontSize:"$md",fontWeight:"$semibold"},h6:{letterSpacing:"$tight",fontSize:"$sm",fontWeight:"$semibold"},"button, input, select,textarea":{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",color:"inherit",margin:0},"button:focus, input:focus, select:focus, textarea:focus":{outline:"none"},code:{color:"$code",padding:"$1 $2",borderRadius:"$xs",bg:"$codeLight",fontFamily:"$mono",fontSize:"$sm",whiteSpace:"pre-wrap",transition:"opacity 0.25s ease 0s"},"code:hover":{opacity:.8},pre:{overflow:"auto",whiteSpace:"pre",textAlign:"left",fontSize:"$sm",borderRadius:"$lg",padding:"$md $lg",margin:"$lg 0 ",fontFamily:"$mono",lineHeight:"$md",webkitOverflowScrolling:"touch"},"pre code":{color:"$foreground",fontSize:"$sm",lineHeight:"$sm",whiteSpace:"pre"},"pre code:before,pre code:after":{display:"none"},"pre p":{margin:0},"pre::-webkit-scrollbar":{display:"none",width:0,height:0,background:"transparent"},hr:{background:"$border",borderColor:"transparent",borderWidth:"0px",borderStyle:"none",height:"1px"},details:{backgroundColor:"$accents1",border:"none"},"details:focus, details:hover, details:active":{outline:"none"},summary:{cursor:"pointer",userSelect:"none",listStyle:"none",outline:"none"},"summary::-webkit-details-marker, summary::before":{display:"none"},"summary::-moz-list-bullet":{fontSize:0},"summary:focus, summary:hover, summary:active":{outline:"none",listStyle:"none"},"::selection":{backgroundColor:"$selection"},blockquote:{padding:"$md $lg",color:"$accents7",backgroundColor:"$accents0",borderRadius:"$lg",margin:"$10 0"},"blockquote *:first-child":{marginTop:0},"blockquote *:last-child":{marginBottom:0},kbd:{width:"fit-content",textAlign:"center",display:"inline-block",color:"$accents8",bg:"$accents0",border:"1px solid $border",boxShadow:"0 0 1px 0 rgb(0 0 0 / 14%)",fontFamily:"$sans",borderRadius:"5px",padding:"$1 $3",mx:"$1",lineHeight:"$sm",fontSize:"$sm"},"kbd + kbd":{ml:"$2"}}),It=({children:e})=>(Tt(),(0,St.jsx)(m().Fragment,{children:e})),Nt=m().memo(It);Nt.flush=()=>(0,St.jsx)("style",{id:"stitches",dangerouslySetInnerHTML:{__html:_e()}});const Mt=Nt;function Rt(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function At(e,t){let{cursor:r,getKey:o}=e;return{setSelectedKeys(e){t((t=>({...t,selectedKeys:e})))},setFilterText(e){t((t=>({...t,filterText:e})))},insert(e,...r){t((t=>Lt(t,e,...r)))},insertBefore(e,...r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));if(-1!==n)return Lt(t,n,...r)}))},insertAfter(e,...r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));if(-1!==n)return Lt(t,n+1,...r)}))},prepend(...e){t((t=>Lt(t,0,...e)))},append(...e){t((t=>Lt(t,t.items.length,...e)))},remove(...e){t((t=>{let n=new Set(e),i=t.items.filter((e=>!n.has(o(e)))),s="all";if("all"!==t.selectedKeys){s=new Set(t.selectedKeys);for(let t of e)s.delete(t)}return null==r&&0===i.length&&(s=new Set),{...t,items:i,selectedKeys:s}}))},removeSelectedItems(){t((e=>{if("all"===e.selectedKeys)return{...e,items:[],selectedKeys:new Set};let t=e.selectedKeys,r=e.items.filter((e=>!t.has(o(e))));return{...e,items:r,selectedKeys:new Set}}))},move(e,r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));if(-1===n)return t;let i=t.items.slice(),[s]=i.splice(n,1);return i.splice(r,0,s),{...t,items:i}}))},moveBefore(e,r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));if(-1===n)return t;let i=r.map((e=>t.items.findIndex((t=>o(t)===e)))).sort();return Bt(t,i,n)}))},moveAfter(e,r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));if(-1===n)return t;let i=r.map((e=>t.items.findIndex((t=>o(t)===e)))).sort();return Bt(t,i,n+1)}))},update(e,r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));return-1===n?t:{...t,items:[...t.items.slice(0,n),r,...t.items.slice(n+1)]}}))}}}function Lt(e,t,...r){return{...e,items:[...e.items.slice(0,t),...r,...e.items.slice(t)]}}function Bt(e,t,r){for(let e of t)e<r&&r--;let o=t.map((e=>({from:e,to:r++})));for(let e=0;e<o.length;e++){let t=o[e].from;for(let r=e;r<o.length;r++)o[r].from>t&&o[r].from--}for(let e=0;e<o.length;e++){let t=o[e];for(let r=o.length-1;r>e;r--){let e=o[r];e.from<t.to?t.to++:e.from++}}let n=e.items.slice();for(let e of o){let[t]=n.splice(e.from,1);n.splice(e.to,0,t)}return{...e,items:n}}function zt(e,t){let r;switch(e.state){case"idle":case"error":switch(t.type){case"loading":case"loadingMore":case"sorting":case"filtering":var o,n;return{...e,filterText:null!==(o=t.filterText)&&void 0!==o?o:e.filterText,state:t.type,items:"loading"===t.type?[]:e.items,sortDescriptor:null!==(n=t.sortDescriptor)&&void 0!==n?n:e.sortDescriptor,abortController:t.abortController};case"update":return{...e,...t.updater(e)};case"success":case"error":return e;default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}case"loading":case"sorting":case"filtering":switch(t.type){case"success":return t.abortController!==e.abortController?e:(r=null!==(i=t.selectedKeys)&&void 0!==i?i:e.selectedKeys,{...e,filterText:null!==(s=t.filterText)&&void 0!==s?s:e.filterText,state:"idle",items:[...t.items],selectedKeys:"all"===r?"all":new Set(r),sortDescriptor:null!==(a=t.sortDescriptor)&&void 0!==a?a:e.sortDescriptor,abortController:null,cursor:t.cursor});var i,s,a;case"error":return t.abortController!==e.abortController?e:{...e,state:"error",error:t.error,abortController:null};case"loading":case"loadingMore":case"sorting":case"filtering":var l;return e.abortController.abort(),{...e,filterText:null!==(l=t.filterText)&&void 0!==l?l:e.filterText,state:t.type,items:"loading"===t.type?[]:e.items,abortController:t.abortController};case"update":return{...e,...t.updater(e)};default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}case"loadingMore":switch(t.type){case"success":var c,d;return r="all"===e.selectedKeys||"all"===t.selectedKeys?"all":new Set([...e.selectedKeys,...null!==(c=t.selectedKeys)&&void 0!==c?c:[]]),{...e,state:"idle",items:[...e.items,...t.items],selectedKeys:r,sortDescriptor:null!==(d=t.sortDescriptor)&&void 0!==d?d:e.sortDescriptor,abortController:null,cursor:t.cursor};case"error":return t.abortController!==e.abortController?e:{...e,state:"error",error:t.error};case"loading":case"sorting":case"filtering":var u;return e.abortController.abort(),{...e,filterText:null!==(u=t.filterText)&&void 0!==u?u:e.filterText,state:t.type,items:"loading"===t.type?[]:e.items,abortController:t.abortController};case"loadingMore":return t.abortController.abort(),e;case"update":return{...e,...t.updater(e)};default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}default:throw new Error(`Invalid state "${e.state}"`)}}function Ht(e){const{load:t,sort:r,initialSelectedKeys:o,initialSortDescriptor:n,getKey:i=(e=>e.id||e.key),initialFilterText:s=""}=e;let[a,l]=(0,g.useReducer)(zt,{state:"idle",error:null,items:[],selectedKeys:"all"===o?"all":new Set(o),sortDescriptor:n,filterText:s});const c=async(e,r)=>{let o=new AbortController;try{var n;l({...e,abortController:o});let d=null!==(n=e.filterText)&&void 0!==n?n:a.filterText;var i;let u=await r({items:a.items.slice(),selectedKeys:a.selectedKeys,sortDescriptor:null!==(i=e.sortDescriptor)&&void 0!==i?i:a.sortDescriptor,signal:o.signal,cursor:"loadingMore"===e.type?a.cursor:null,filterText:d});var s;let p=null!==(s=u.filterText)&&void 0!==s?s:d;l({type:"success",...u,abortController:o}),p&&p!==d&&!o.signal.aborted&&c({type:"filtering",filterText:p},t)}catch(e){l({type:"error",error:e,abortController:o})}};return(0,g.useEffect)((()=>{c({type:"loading"},t)}),[]),{items:a.items,selectedKeys:a.selectedKeys,sortDescriptor:a.sortDescriptor,isLoading:"loading"===a.state||"loadingMore"===a.state||"sorting"===a.state||"filtering"===a.state,loadingState:a.state,error:a.error,filterText:a.filterText,getItem:e=>a.items.find((t=>i(t)===e)),reload(){c({type:"loading"},t)},loadMore(){"loadingMore"!==a.state&&"filtering"!==a.state&&null!=a.cursor&&c({type:"loadingMore"},t)},sort(e){c({type:"sorting",sortDescriptor:e},r||t)},...At({...e,getKey:i,cursor:a.cursor},(e=>{l({type:"update",updater:e})})),setFilterText(e){c({type:"filtering",filterText:e},t)}}}function Dt(e){let{initialItems:t=[],initialSelectedKeys:r,getKey:o=(e=>e.id||e.key),getChildren:n=(e=>e.children)}=e,i=(0,g.useMemo)((()=>new Map),[]),s=(0,g.useMemo)((()=>u(t)),[]),[a,l]=(0,g.useState)(s),[c,d]=(0,g.useState)(new Set(r||[]));function u(e=[],t){return e.map((e=>{let r={key:o(e),parentKey:t,value:e,children:null};return r.children=u(n(e),r.key),i.set(r.key,r),r}))}function p(e,t,r){let o=i.get(t);if(!o)return e;let n=r(o);for(null==n?m(o):h(n);o.parentKey;){let e=i.get(o.parentKey),t={key:e.key,parentKey:e.parentKey,value:e.value,children:null},r=e.children;null==n&&(r=r.filter((e=>e!==o))),t.children=r.map((e=>e===o?n:e)),i.set(t.key,t),n=t,o=e}return null==n&&(e=e.filter((e=>e!==o))),e.map((e=>e===o?n:e))}function h(e){i.set(e.key,e);for(let t of e.children)h(t)}function m(e){i.delete(e.key);for(let t of e.children)m(t)}return{items:a,selectedKeys:c,setSelectedKeys:d,getItem:e=>i.get(e),insert(e,t,...r){l((o=>{let n=u(r,e);return null==e?[...o.slice(0,t),...n,...o.slice(t)]:p(o,e,(e=>({key:e.key,parentKey:e.parentKey,value:e.value,children:[...e.children.slice(0,t),...n,...e.children.slice(t)]})))}))},insertBefore(e,...t){let r=i.get(e);if(!r)return;let o=i.get(r.parentKey),n=(o?o.children:a).indexOf(r);this.insert(null==o?void 0:o.key,n,...t)},insertAfter(e,...t){let r=i.get(e);if(!r)return;let o=i.get(r.parentKey),n=(o?o.children:a).indexOf(r);this.insert(null==o?void 0:o.key,n+1,...t)},prepend(e,...t){this.insert(e,0,...t)},append(e,...t){if(null==e)this.insert(null,a.length,...t);else{let r=i.get(e);if(!r)return;this.insert(e,r.children.length,...t)}},remove(...e){let t=a;for(let r of e)t=p(t,r,(()=>null));l(t);let r=new Set(c);for(let e of c)i.has(e)||r.delete(e);d(r)},removeSelectedItems(){this.remove(...c)},move(e,t,r){l((o=>{let n=i.get(e);if(!n)return o;o=p(o,e,(()=>null));const s={...n,parentKey:t};return p(o,t,(e=>({key:e.key,parentKey:e.parentKey,value:e.value,children:[...e.children.slice(0,r),s,...e.children.slice(r)]})))}))},update(e,t){l((r=>p(r,e,(e=>{let r={key:e.key,parentKey:e.parentKey,value:t,children:null};return r.children=u(n(t),r.key),r}))))}}}function Ot(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}Rt({},"useAsyncList",(()=>Ht)),Rt({},"useTreeData",(()=>Dt));var Kt={};Ot(Kt,"SSRProvider",(()=>_t)),Ot(Kt,"useSSRSafeId",(()=>Vt)),Ot(Kt,"useIsSSR",(()=>Ut));const Ft={prefix:String(Math.round(1e10*Math.random())),current:0},jt=m().createContext(Ft);function _t(e){let t=(0,g.useContext)(jt),r=(0,g.useMemo)((()=>({prefix:t===Ft?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return m().createElement(jt.Provider,{value:r},e.children)}let Wt=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function Vt(e){let t=(0,g.useContext)(jt);return t!==Ft||Wt||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,g.useMemo)((()=>e||`react-aria${t.prefix}-${++t.current}`),[e])}function Ut(){let e=(0,g.useContext)(jt)!==Ft,[t,r]=(0,g.useState)(e);return"undefined"!=typeof window&&e&&(0,g.useLayoutEffect)((()=>{r(!1)}),[]),t}var Gt=function(e,t){return Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Gt(e,t)};function Jt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Gt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Yt,Xt,qt,Zt=function(){return Zt=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Zt.apply(this,arguments)};function Qt(e,t,r){if(r||2===arguments.length)for(var o,n=0,i=t.length;n<i;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function er(e){return e.type===Xt.literal}function tr(e){return e.type===Xt.argument}function rr(e){return e.type===Xt.number}function or(e){return e.type===Xt.date}function nr(e){return e.type===Xt.time}function ir(e){return e.type===Xt.select}function sr(e){return e.type===Xt.plural}function ar(e){return e.type===Xt.pound}function lr(e){return e.type===Xt.tag}function cr(e){return!(!e||"object"!=typeof e||e.type!==qt.number)}function dr(e){return!(!e||"object"!=typeof e||e.type!==qt.dateTime)}Object.create,Object.create,function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Yt||(Yt={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Xt||(Xt={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(qt||(qt={}));var ur=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,pr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function hr(e){var t={};return e.replace(pr,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var gr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,mr=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,fr=/^(@+)?(\+|#+)?[rs]?$/g,br=/(\*)(0+)|(#+)(0+)|(0+)/g,$r=/^(0+)$/;function yr(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(fr,(function(e,r,o){return"string"!=typeof o?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===o?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof o?o.length:0)),""})),t}function vr(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function xr(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!$r.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function wr(e){return vr(e)||{}}function Sr(e){for(var t={},r=0,o=e;r<o.length;r++){var n=o[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Zt(Zt(Zt({},t),{notation:"scientific"}),n.options.reduce((function(e,t){return Zt(Zt({},e),wr(t))}),{}));continue;case"engineering":t=Zt(Zt(Zt({},t),{notation:"engineering"}),n.options.reduce((function(e,t){return Zt(Zt({},e),wr(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(br,(function(e,r,o,n,i,s){if(r)t.minimumIntegerDigits=o.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if($r.test(n.stem))t.minimumIntegerDigits=n.stem.length;else if(mr.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(mr,(function(e,r,o,n,i,s){return"*"===o?t.minimumFractionDigits=r.length:n&&"#"===n[0]?t.maximumFractionDigits=n.length:i&&s?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var i=n.options[0];"w"===i?t=Zt(Zt({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=Zt(Zt({},t),yr(i)))}else if(fr.test(n.stem))t=Zt(Zt({},t),yr(n.stem));else{var s=vr(n.stem);s&&(t=Zt(Zt({},t),s));var a=xr(n.stem);a&&(t=Zt(Zt({},t),a))}}return t}var Cr,kr={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function Er(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,o=e.language;return"root"!==o&&(r=e.maximize().region),(kr[r||""]||kr[o||""]||kr["".concat(o,"-001")]||kr["001"])[0]}var Pr=new RegExp("^".concat(ur.source,"*")),Tr=new RegExp("".concat(ur.source,"*$"));function Ir(e,t){return{start:e,end:t}}var Nr=!!String.prototype.startsWith,Mr=!!String.fromCodePoint,Rr=!!Object.fromEntries,Ar=!!String.prototype.codePointAt,Lr=!!String.prototype.trimStart,Br=!!String.prototype.trimEnd,zr=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Hr=!0;try{Hr="a"===(null===(Cr=Vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Cr?void 0:Cr[0])}catch(e){Hr=!1}var Dr,Or=Nr?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Kr=Mr?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,o="",n=e.length,i=0;n>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");o+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return o},Fr=Rr?Object.fromEntries:function(e){for(var t={},r=0,o=e;r<o.length;r++){var n=o[r],i=n[0],s=n[1];t[i]=s}return t},jr=Ar?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var o,n=e.charCodeAt(t);return n<55296||n>56319||t+1===r||(o=e.charCodeAt(t+1))<56320||o>57343?n:o-56320+(n-55296<<10)+65536}},_r=Lr?function(e){return e.trimStart()}:function(e){return e.replace(Pr,"")},Wr=Br?function(e){return e.trimEnd()}:function(e){return e.replace(Tr,"")};function Vr(e,t){return new RegExp(e,t)}if(Hr){var Ur=Vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Dr=function(e,t){var r;return Ur.lastIndex=t,null!==(r=Ur.exec(e)[1])&&void 0!==r?r:""}}else Dr=function(e,t){for(var r=[];;){var o=jr(e,t);if(void 0===o||Xr(o)||qr(o))break;r.push(o),t+=o>=65536?2:1}return Kr.apply(void 0,r)};var Gr=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var o=[];!this.isEOF();){var n=this.char();if(123===n){if((i=this.parseArgument(e,r)).err)return i;o.push(i.val)}else{if(125===n&&e>0)break;if(35!==n||"plural"!==t&&"selectordinal"!==t){if(60===n&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Yt.UNMATCHED_CLOSING_TAG,Ir(this.clonePosition(),this.clonePosition()))}if(60===n&&!this.ignoreTag&&Jr(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;o.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;o.push(i.val)}}else{var s=this.clonePosition();this.bump(),o.push({type:Xt.pound,location:Ir(s,this.clonePosition())})}}}return{val:o,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Xt.literal,value:"<".concat(o,"/>"),location:Ir(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(e+1,t,!0);if(n.err)return n;var i=n.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Jr(this.char()))return this.error(Yt.INVALID_TAG,Ir(s,this.clonePosition()));var a=this.clonePosition();return o!==this.parseTagName()?this.error(Yt.UNMATCHED_CLOSING_TAG,Ir(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Xt.tag,value:o,children:i,location:Ir(r,this.clonePosition())},err:null}:this.error(Yt.INVALID_TAG,Ir(s,this.clonePosition())))}return this.error(Yt.UNCLOSED_TAG,Ir(r,this.clonePosition()))}return this.error(Yt.INVALID_TAG,Ir(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Yr(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(t);if(n)o+=n;else{var i=this.tryParseUnquoted(e,t);if(i)o+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;o+=s}}}var a=Ir(r,this.clonePosition());return{val:{type:Xt.literal,value:o,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Jr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Kr.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),Kr(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Yt.EXPECT_ARGUMENT_CLOSING_BRACE,Ir(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Yt.EMPTY_ARGUMENT,Ir(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(Yt.MALFORMED_ARGUMENT,Ir(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Yt.EXPECT_ARGUMENT_CLOSING_BRACE,Ir(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Xt.argument,value:o,location:Ir(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Yt.EXPECT_ARGUMENT_CLOSING_BRACE,Ir(r,this.clonePosition())):this.parseArgumentOptions(e,t,o,r);default:return this.error(Yt.MALFORMED_ARGUMENT,Ir(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Dr(this.message,t),o=t+r.length;return this.bumpTo(o),{value:r,location:Ir(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,o){var n,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(Yt.EXPECT_ARGUMENT_TYPE,Ir(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(h=Wr(b.val)).length)return this.error(Yt.EXPECT_ARGUMENT_STYLE,Ir(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:Ir(c,this.clonePosition())}}if(($=this.tryParseArgumentClose(o)).err)return $;var d=Ir(o,this.clonePosition());if(l&&Or(null==l?void 0:l.style,"::",0)){var u=_r(l.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?b:{val:{type:Xt.number,value:r,location:d,style:b.val},err:null};if(0===u.length)return this.error(Yt.EXPECT_DATE_TIME_SKELETON,d);var p=u;this.locale&&(p=function(e,t){for(var r="",o=0;o<e.length;o++){var n=e.charAt(o);if("j"===n){for(var i=0;o+1<e.length&&e.charAt(o+1)===n;)i++,o++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=Er(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=l+r}else r+="J"===n?"H":n}return r}(u,this.locale));var h={type:qt.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?hr(p):{}};return{val:{type:"date"===s?Xt.date:Xt.time,value:r,location:d,style:h},err:null}}return{val:{type:"number"===s?Xt.number:"date"===s?Xt.date:Xt.time,value:r,location:d,style:null!==(n=null==l?void 0:l.style)&&void 0!==n?n:null},err:null};case"plural":case"selectordinal":case"select":var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Yt.EXPECT_SELECT_ARGUMENT_OPTIONS,Ir(g,Zt({},g)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),f=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(Yt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ir(this.clonePosition(),this.clonePosition()));var b;if(this.bumpSpace(),(b=this.tryParseDecimalInteger(Yt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Yt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return b;this.bumpSpace(),m=this.parseIdentifierIfPossible(),f=b.val}var $,y=this.tryParsePluralOrSelectOptions(e,s,t,m);if(y.err)return y;if(($=this.tryParseArgumentClose(o)).err)return $;var v=Ir(o,this.clonePosition());return"select"===s?{val:{type:Xt.select,value:r,options:Fr(y.val),location:v},err:null}:{val:{type:Xt.plural,value:r,options:Fr(y.val),offset:f,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(Yt.INVALID_ARGUMENT_TYPE,Ir(i,a))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Yt.EXPECT_ARGUMENT_CLOSING_BRACE,Ir(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Yt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ir(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(gr).filter((function(e){return e.length>0})),r=[],o=0,n=t;o<n.length;o++){var i=n[o].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var s=i[0],a=i.slice(1),l=0,c=a;l<c.length;l++)if(0===c[l].length)throw new Error("Invalid number skeleton");r.push({stem:s,options:a})}return r}(e)}catch(e){return this.error(Yt.INVALID_NUMBER_SKELETON,t)}return{val:{type:qt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Sr(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,o){for(var n,i=!1,s=[],a=new Set,l=o.value,c=o.location;;){if(0===l.length){var d=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(Yt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Yt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;c=Ir(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}if(a.has(l))return this.error("select"===t?Yt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Yt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Yt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Yt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ir(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,r);if(h.err)return h;var g=this.tryParseArgumentClose(p);if(g.err)return g;s.push([l,{value:h.val,location:Ir(p,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(n=this.parseIdentifierIfPossible()).value,c=n.location}return 0===s.length?this.error("select"===t?Yt.EXPECT_SELECT_ARGUMENT_SELECTOR:Yt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ir(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Yt.MISSING_OTHER_CLAUSE,Ir(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;n=!0,i=10*i+(s-48),this.bump()}var a=Ir(o,this.clonePosition());return n?zr(i*=r)?{val:i,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=jr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Or(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Xr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Jr(e){return e>=97&&e<=122||e>=65&&e<=90}function Yr(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Xr(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function qr(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Zr(e){e.forEach((function(e){if(delete e.location,ir(e)||sr(e))for(var t in e.options)delete e.options[t].location,Zr(e.options[t].value);else rr(e)&&cr(e.style)||(or(e)||nr(e))&&dr(e.style)?delete e.style.location:lr(e)&&Zr(e.children)}))}function Qr(e,t){void 0===t&&(t={}),t=Zt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Gr(e,t).parse();if(r.err){var o=SyntaxError(Yt[r.err.kind]);throw o.location=r.err.location,o.originalMessage=r.err.message,o}return(null==t?void 0:t.captureLocation)||Zr(r.val),r.val}function eo(e,t){var r=t&&t.cache?t.cache:lo,o=t&&t.serializer?t.serializer:io;return(t&&t.strategy?t.strategy:no)(e,{cache:r,serializer:o})}function to(e,t,r,o){var n,i=null==(n=o)||"number"==typeof n||"boolean"==typeof n?o:r(o),s=t.get(i);return void 0===s&&(s=e.call(this,o),t.set(i,s)),s}function ro(e,t,r){var o=Array.prototype.slice.call(arguments,3),n=r(o),i=t.get(n);return void 0===i&&(i=e.apply(this,o),t.set(n,i)),i}function oo(e,t,r,o,n){return r.bind(t,e,o,n)}function no(e,t){return oo(e,this,1===e.length?to:ro,t.cache.create(),t.serializer)}var io=function(){return JSON.stringify(arguments)};function so(){this.cache=Object.create(null)}so.prototype.get=function(e){return this.cache[e]},so.prototype.set=function(e,t){this.cache[e]=t};var ao,lo={create:function(){return new so}},co={variadic:function(e,t){return oo(e,this,ro,t.cache.create(),t.serializer)},monadic:function(e,t){return oo(e,this,to,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ao||(ao={}));var uo,po=function(e){function t(t,r,o){var n=e.call(this,t)||this;return n.code=r,n.originalMessage=o,n}return Jt(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ho=function(e){function t(t,r,o,n){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),ao.INVALID_VALUE,n)||this}return Jt(t,e),t}(po),go=function(e){function t(t,r,o){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),ao.INVALID_VALUE,o)||this}return Jt(t,e),t}(po),mo=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),ao.MISSING_VALUE,r)||this}return Jt(t,e),t}(po);function fo(e){return"function"==typeof e}function bo(e,t,r,o,n,i,s){if(1===e.length&&er(e[0]))return[{type:uo.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var d=c[l];if(er(d))a.push({type:uo.literal,value:d.value});else if(ar(d))"number"==typeof i&&a.push({type:uo.literal,value:r.getNumberFormat(t).format(i)});else{var u=d.value;if(!n||!(u in n))throw new mo(u,s);var p=n[u];if(tr(d))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?uo.literal:uo.object,value:p});else if(or(d)){var h="string"==typeof d.style?o.date[d.style]:dr(d.style)?d.style.parsedOptions:void 0;a.push({type:uo.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(nr(d))h="string"==typeof d.style?o.time[d.style]:dr(d.style)?d.style.parsedOptions:o.time.medium,a.push({type:uo.literal,value:r.getDateTimeFormat(t,h).format(p)});else if(rr(d))(h="string"==typeof d.style?o.number[d.style]:cr(d.style)?d.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),a.push({type:uo.literal,value:r.getNumberFormat(t,h).format(p)});else{if(lr(d)){var g=d.children,m=d.value,f=n[m];if(!fo(f))throw new go(m,"function",s);var b=f(bo(g,t,r,o,n,i).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),a.push.apply(a,b.map((function(e){return{type:"string"==typeof e?uo.literal:uo.object,value:e}})))}if(ir(d)){if(!($=d.options[p]||d.options.other))throw new ho(d.value,p,Object.keys(d.options),s);a.push.apply(a,bo($.value,t,r,o,n))}else if(sr(d)){var $;if(!($=d.options["=".concat(p)])){if(!Intl.PluralRules)throw new po('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ao.MISSING_INTL_API,s);var y=r.getPluralRules(t,{type:d.pluralType}).select(p-(d.offset||0));$=d.options[y]||d.options.other}if(!$)throw new ho(d.value,p,Object.keys(d.options),s);a.push.apply(a,bo($.value,t,r,o,n,p-(d.offset||0)))}}}}return(v=a).length<2?v:v.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===uo.literal&&t.type===uo.literal?r.value+=t.value:e.push(t),e}),[]);var v}function $o(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(uo||(uo={}));var yo=function(){function e(t,r,o,n){var i,s,a,l=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=l.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===uo.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return bo(l.ast,l.locales,l.formatters,l.formats,e,void 0,l.message)},this.resolvedOptions=function(){return{locale:l.resolvedLocale.toString()}},this.getAst=function(){return l.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(s=e.formats,(a=o)?Object.keys(s).reduce((function(e,t){var r,o;return e[t]=(r=s[t],(o=a[t])?Zt(Zt(Zt({},r||{}),o||{}),Object.keys(r).reduce((function(e,t){return e[t]=Zt(Zt({},r[t]),o[t]||{}),e}),{})):r),e}),Zt({},s)):s),this.formatters=n&&n.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:eo((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Qt([void 0],t,!1)))}),{cache:$o(i.number),strategy:co.variadic}),getDateTimeFormat:eo((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Qt([void 0],t,!1)))}),{cache:$o(i.dateTime),strategy:co.variadic}),getPluralRules:eo((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Qt([void 0],t,!1)))}),{cache:$o(i.pluralRules),strategy:co.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=Qr,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const vo=yo;function xo(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}xo({},"MessageDictionary",(()=>wo));class wo{getStringForLocale(e,t){let r=this.messages[t];r||(r=function(e,t,r="en-US"){if(t[e])return t[e];let o=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);for(let e in t)if(e.startsWith(o+"-"))return t[e];return t[r]}(t,this.messages,this.defaultLocale),this.messages[t]=r);let o=r[e];if(!o)throw new Error(`Could not find intl message ${e} in ${t} locale`);return o}constructor(e,t="en-US"){this.messages={...e},this.defaultLocale=t}}xo({},"MessageFormatter",(()=>So));class So{format(e,t){let r,o=this.cache[e];if(!o){let t=this.messages.getStringForLocale(e,this.locale);if(!t)throw new Error(`Could not find intl message ${e} in ${this.locale} locale`);o=new vo(t,this.locale),this.cache[e]=o}return t&&(r=Object.keys(t).reduce(((e,r)=>(e[r]=null!=t[r]&&t[r],e)),{})),o.format(r)}constructor(e,t){this.locale=e,this.messages=t,this.cache={}}}new Map,new Map,new WeakMap,new WeakMap,new WeakMap,new WeakMap;let Co=new Map;class ko{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(e),o=this.formatter.formatToParts(t);return[...r.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...o.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==Io&&(Io="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),Io&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let r=Po(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),o=parseInt(r.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),n=parseInt(r.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===o&&23===n)return"h23";if(24===o&&23===n)return"h24";if(0===o&&11===n)return"h11";if(12===o&&11===n)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),e}constructor(e,t={}){this.formatter=Po(e,t),this.options=t}}const Eo={true:{ja:"h11"},false:{}};function Po(e,t={}){if("boolean"==typeof t.hour12&&(null==To&&(To="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),To)){t={...t};let r=Eo[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=null!=r?r:o,delete t.hour12}let r=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(Co.has(r))return Co.get(r);let o=new Intl.DateTimeFormat(e,t);return Co.set(r,o),o}let To=null,Io=null,No=new Map,Mo=!1;try{Mo="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(v){}let Ro=!1;try{Ro="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const Ao={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Lo{format(e){let t="";if(t=Mo||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,r){if("auto"===t)return e.format(r);if("never"===t)return e.format(Math.abs(r));{let o=!1;if("always"===t?o=r>0||Object.is(r,0):"exceptZero"===t&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):o=r>0),o){let t=e.format(-r),o=e.format(r),n=t.replace(o,"").replace(/\u200e|\u061C/,"");return 1!==[...n].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(o,"!!!").replace(n,"+").replace("!!!",o)}return e.format(r)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!Ro){var r;let{unit:e,unitDisplay:o="short",locale:n}=this.resolvedOptions(),i=null===(r=Ao[e])||void 0===r?void 0:r[o];t+=i[n]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),o=this.numberFormatter.formatToParts(t);return[...r.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...o.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return Mo||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),Ro||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:r}=t;if(r&&-1===e.indexOf("-u-nu-")&&(e=`${e}-u-nu-${r}`),"unit"===t.style&&!Ro){var o;let{unit:e,unitDisplay:r="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(o=Ao[e])||void 0===o?void 0:o[r]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${r}`);t={...t,style:"decimal"}}let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(No.has(n))return No.get(n);let i=new Intl.NumberFormat(e,t);return No.set(n,i),i}(e,t),this.options=t}}function Bo(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}new Map,new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);var zo={};Bo(zo,"I18nProvider",(()=>Uo)),Bo(zo,"useLocale",(()=>Go));const Ho=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Do=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Oo(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return Ho.has(t)}let t=e.split("-")[0];return Do.has(t)}function Ko(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:Oo(e)?"rtl":"ltr"}}let Fo=Ko(),jo=new Set;function _o(){Fo=Ko();for(let e of jo)e(Fo)}function Wo(){let e=Ut(),[t,r]=(0,g.useState)(Fo);return(0,g.useEffect)((()=>(0===jo.size&&window.addEventListener("languagechange",_o),jo.add(r),()=>{jo.delete(r),0===jo.size&&window.removeEventListener("languagechange",_o)})),[]),e?{locale:"en-US",direction:"ltr"}:t}const Vo=m().createContext(null);function Uo(e){let{locale:t,children:r}=e,o=Wo(),n=t?{locale:t,direction:Oo(t)?"rtl":"ltr"}:o;return m().createElement(Vo.Provider,{value:n},r)}function Go(){let e=Wo();return(0,g.useContext)(Vo)||e}Bo({},"useMessageFormatter",(()=>Yo));const Jo=new WeakMap;function Yo(e){let{locale:t}=Go(),r=(0,g.useMemo)((()=>function(e){let t=Jo.get(e);return t||(t=new wo(e),Jo.set(e,t)),t}(e)),[e]),o=(0,g.useMemo)((()=>new So(t,r)),[t,r]);return(0,g.useCallback)(((e,t)=>o.format(e,t)),[o])}function Xo(e){let t=(0,g.useRef)(null);e&&t.current&&function(e,t){if(e===t)return!0;let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let o of r)if(t[o]!==e[o])return!1;return!0}(e,t.current)&&(e=t.current),t.current=e;let{locale:r}=Go();return(0,g.useMemo)((()=>new ko(r,e)),[r,e])}function qo(e={}){let{locale:t}=Go();return(0,g.useMemo)((()=>new Lo(t,e)),[t,e])}Bo({},"useDateFormatter",(()=>Xo)),Bo({},"useNumberFormatter",(()=>qo)),Bo({},"useCollator",(()=>Qo));let Zo=new Map;function Qo(e){let{locale:t}=Go(),r=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(Zo.has(r))return Zo.get(r);let o=new Intl.Collator(t,e);return Zo.set(r,o),o}function en(e){let t=Qo({usage:"search",...e});return{startsWith:(e,r)=>0===r.length||(e=e.normalize("NFC"),r=r.normalize("NFC"),0===t.compare(e.slice(0,r.length),r)),endsWith:(e,r)=>0===r.length||(e=e.normalize("NFC"),r=r.normalize("NFC"),0===t.compare(e.slice(-r.length),r)),contains(e,r){if(0===r.length)return!0;e=e.normalize("NFC");let o=0,n=(r=r.normalize("NFC")).length;for(;o+n<=e.length;o++){let i=e.slice(o,o+n);if(0===t.compare(r,i))return!0}return!1}}}function tn(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=tn(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function rn(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=tn(e))&&(o&&(o+=" "),o+=t);return o}function on(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function nn(e,t,r){let[o,n]=(0,g.useState)(e||t),i=(0,g.useRef)(void 0!==e),s=i.current,a=void 0!==e,l=(0,g.useRef)(o);s!==a&&console.warn(`WARN: A component changed from ${s?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a;let c=(0,g.useCallback)(((e,...t)=>{let o=(e,...t)=>{r&&(Object.is(l.current,e)||r(e,...t)),a||(l.current=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),n(((r,...n)=>{let i=e(a?l.current:r,...n);return o(i,...t),a?r:i}))):(a||n(e),o(e,...t))}),[a,r]);return a?l.current=e:e=o,[e,c]}Bo({},"useFilter",(()=>en)),on({},"useControlledState",(()=>nn));var sn={};function an(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function ln(e,t,r,o){let n=(e-(isNaN(t)?0:t))%o,i=2*Math.abs(n)>=o?e+Math.sign(n)*(o-Math.abs(n)):e-n;isNaN(t)?!isNaN(r)&&i>r&&(i=Math.floor(r/o)*o):i<t?i=t:!isNaN(r)&&i>r&&(i=t+Math.floor((r-t)/o)*o);let s=o.toString(),a=s.indexOf("."),l=a>=0?s.length-a:0;if(l>0){let e=Math.pow(10,l);i=Math.round(i*e)/e}return i}function cn(e,t,r=10){const o=Math.pow(r,t);return Math.round(e*o)/o}function dn(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}on(sn,"clamp",(()=>an)),on(sn,"snapValueToStep",(()=>ln)),on(sn,"toFixedNumber",(()=>cn));var un={};dn(un,"useId",(()=>gn)),dn(un,"mergeIds",(()=>mn)),dn(un,"useSlotId",(()=>fn)),dn({},"useLayoutEffect",(()=>pn));const pn="undefined"!=typeof window?m().useLayoutEffect:()=>{};let hn=new Map;function gn(e){let t=(0,g.useRef)(!0);t.current=!0;let[r,o]=(0,g.useState)(e),n=(0,g.useRef)(null),i=Vt(r),s=e=>{t.current?n.current=e:o(e)};return hn.set(i,s),pn((()=>{t.current=!1}),[s]),pn((()=>{let e=i;return()=>{hn.delete(e)}}),[i]),(0,g.useEffect)((()=>{let e=n.current;e&&(o(e),n.current=null)}),[o,s]),i}function mn(e,t){if(e===t)return e;let r=hn.get(e);if(r)return r(t),t;let o=hn.get(t);return o?(o(e),e):t}function fn(e=[]){let t=gn(),[r,o]=si(t),n=(0,g.useCallback)((()=>{o((function*(){yield t,yield document.getElementById(t)?t:null}))}),[t,o]);return pn(n,[t,n,...e]),r}function bn(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}function $n(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let o=e[r];for(let e in o){let r=t[e],n=o[e];"function"==typeof r&&"function"==typeof n&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=bn(r,n):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof n?"id"===e&&r&&n?t.id=mn(r,n):t[e]=void 0!==n?n:r:t[e]=rn(r,n)}}return t}function yn(...e){return t=>{for(let r of e)"function"==typeof r?r(t):null!=r&&(r.current=t)}}dn({},"chain",(()=>bn)),dn({},"mergeProps",(()=>$n)),dn({},"mergeRefs",(()=>yn)),dn({},"filterDOMProps",(()=>Sn));const vn=new Set(["id"]),xn=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),wn=/^(data-.*)$/;function Sn(e,t={}){let{labelable:r,propNames:o}=t,n={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(vn.has(t)||r&&xn.has(t)||(null==o?void 0:o.has(t))||wn.test(t))&&(n[t]=e[t]);return n}function Cn(e){if(function(){if(null==kn){kn=!1;try{document.createElement("div").focus({get preventScroll(){return kn=!0,!0}})}catch(e){}}return kn}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,r=[],o=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:o}of e)t.scrollTop=r,t.scrollLeft=o}(t)}}dn({},"focusWithoutScrolling",(()=>Cn));let kn=null;function En(e,t,r="horizontal"){let o=e.getBoundingClientRect();return t?"horizontal"===r?o.right:o.bottom:"horizontal"===r?o.left:o.top}dn({},"getOffset",(()=>En));var Pn={};dn(Pn,"clamp",(()=>an)),dn(Pn,"snapValueToStep",(()=>ln)),dn({},"runAfterTransition",(()=>Mn));let Tn=new Map,In=new Set;function Nn(){if("undefined"==typeof window)return;let e=t=>{let r=Tn.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",e),Tn.delete(t.target)),0===Tn.size)){for(let e of In)e();In.clear()}};document.body.addEventListener("transitionrun",(t=>{let r=Tn.get(t.target);r||(r=new Set,Tn.set(t.target,r),t.target.addEventListener("transitioncancel",e)),r.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function Mn(e){requestAnimationFrame((()=>{0===Tn.size?e():In.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?Nn():document.addEventListener("DOMContentLoaded",Nn)),dn({},"useDrag1D",(()=>An));const Rn=[];function An(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:r,orientation:o,onHover:n,onDrag:i,onPositionChange:s,onIncrement:a,onDecrement:l,onIncrementToMax:c,onDecrementToMin:d,onCollapseToggle:u}=e,p=e=>{let n=En(t.current,r,o),i=(e=>"horizontal"===o?e.clientX:e.clientY)(e);return r?n-i:i-n},h=(0,g.useRef)(!1),m=(0,g.useRef)(0),f=(0,g.useRef)({onPositionChange:s,onDrag:i});f.current.onDrag=i,f.current.onPositionChange=s;let b=e=>{e.preventDefault();let t=p(e);h.current||(h.current=!0,f.current.onDrag&&f.current.onDrag(!0),f.current.onPositionChange&&f.current.onPositionChange(t)),m.current!==t&&(m.current=t,s&&s(t))},$=e=>{const t=e.target;h.current=!1;let r=p(e);f.current.onDrag&&f.current.onDrag(!1),f.current.onPositionChange&&f.current.onPositionChange(r),Rn.splice(Rn.indexOf(t),1),window.removeEventListener("mouseup",$,!1),window.removeEventListener("mousemove",b,!1)};return{onMouseDown:e=>{const t=e.currentTarget;Rn.some((e=>t.contains(e)))||(Rn.push(t),window.addEventListener("mousemove",b,!1),window.addEventListener("mouseup",$,!1))},onMouseEnter:()=>{n&&n(!0)},onMouseOut:()=>{n&&n(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===o&&(e.preventDefault(),l&&!r?l():a&&r&&a());break;case"Up":case"ArrowUp":"vertical"===o&&(e.preventDefault(),l&&!r?l():a&&r&&a());break;case"Right":case"ArrowRight":"horizontal"===o&&(e.preventDefault(),a&&!r?a():l&&r&&l());break;case"Down":case"ArrowDown":"vertical"===o&&(e.preventDefault(),a&&!r?a():l&&r&&l());break;case"Home":e.preventDefault(),d&&d();break;case"End":e.preventDefault(),c&&c();break;case"Enter":e.preventDefault(),u&&u()}}}}function Ln(){let e=(0,g.useRef)(new Map),t=(0,g.useCallback)(((t,r,o,n)=>{let i=(null==n?void 0:n.once)?(...t)=>{e.current.delete(o),o(...t)}:o;e.current.set(o,{type:r,eventTarget:t,fn:i,options:n}),t.addEventListener(r,o,n)}),[]),r=(0,g.useCallback)(((t,r,o,n)=>{var i;let s=(null===(i=e.current.get(o))||void 0===i?void 0:i.fn)||o;t.removeEventListener(r,s,n),e.current.delete(o)}),[]),o=(0,g.useCallback)((()=>{e.current.forEach(((e,t)=>{r(e.eventTarget,e.type,t,e.options)}))}),[r]);return(0,g.useEffect)((()=>o),[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}function Bn(e,t){let{id:r,"aria-label":o,"aria-labelledby":n}=e;if(r=gn(r),n&&o){let e=new Set([...n.trim().split(/\s+/),r]);n=[...e].join(" ")}else n&&(n=n.trim().split(/\s+/).join(" "));return o||n||!t||(o=t),{id:r,"aria-label":o,"aria-labelledby":n}}function zn(e){const t=(0,g.useRef)();return pn((()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}),[e]),t}function Hn(e,t){const r=(0,g.useRef)(!0);(0,g.useEffect)((()=>{r.current?r.current=!1:e()}),t)}function Dn(e){const{ref:t,onResize:r}=e;(0,g.useEffect)((()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)};{const t=new window.ResizeObserver((e=>{e.length&&r()}));return t.observe(e),()=>{e&&t.unobserve(e)}}}}),[r,t])}function On(e,t){pn((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function Kn(e){for(;e&&!Fn(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Fn(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}dn({},"useGlobalListeners",(()=>Ln)),dn({},"useLabels",(()=>Bn)),dn({},"useObjectRef",(()=>zn)),dn({},"useUpdateEffect",(()=>Hn)),dn({},"useResizeObserver",(()=>Dn)),dn({},"useSyncRef",(()=>On)),dn({},"getScrollParent",(()=>Kn)),dn({},"useViewportSize",(()=>_n));let jn="undefined"!=typeof window&&window.visualViewport;function _n(){let[e,t]=(0,g.useState)((()=>Wn()));return(0,g.useEffect)((()=>{let e=()=>{t((e=>{let t=Wn();return t.width===e.width&&t.height===e.height?e:t}))};return jn?jn.addEventListener("resize",e):window.addEventListener("resize",e),()=>{jn?jn.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function Wn(){return{width:(null==jn?void 0:jn.width)||window.innerWidth,height:(null==jn?void 0:jn.height)||window.innerHeight}}dn({},"useDescription",(()=>Gn));let Vn=0;const Un=new Map;function Gn(e){let[t,r]=(0,g.useState)(null);return pn((()=>{if(!e)return;let t=Un.get(e);if(t)r(t.element.id);else{let o="react-aria-description-"+Vn++;r(o);let n=document.createElement("div");n.id=o,n.style.display="none",n.textContent=e,document.body.appendChild(n),t={refCount:0,element:n},Un.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),Un.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}var Jn={};function Yn(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function Xn(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test((window.navigator.userAgentData||window.navigator).platform)}function qn(){return Xn(/^Mac/i)}function Zn(){return Xn(/^iPhone/i)}function Qn(){return Xn(/^iPad/i)||qn()&&navigator.maxTouchPoints>1}function ei(){return Zn()||Qn()}function ti(){return qn()||ei()}function ri(){return Yn(/AppleWebKit/i)&&!oi()}function oi(){return Yn(/Chrome/i)}function ni(){return Yn(/Android/i)}function ii(e,t,r,o){let n=(0,g.useRef)(r);n.current=r;let i=null==r;(0,g.useEffect)((()=>{if(i)return;let r=e.current,s=e=>n.current.call(this,e);return r.addEventListener(t,s,o),()=>{r.removeEventListener(t,s,o)}}),[e,t,o,i])}function si(e){let[t,r]=(0,g.useState)(e),o=(0,g.useRef)(t),n=(0,g.useRef)(null);o.current=t;let i=(0,g.useRef)(null);i.current=()=>{let e=n.current.next();e.done?n.current=null:t===e.value?i.current():r(e.value)},pn((()=>{n.current&&i.current()}));let s=(0,g.useCallback)((e=>{n.current=e(o.current),i.current()}),[n,i]);return[t,s]}function ai(e,t){let r=li(e,t,"left"),o=li(e,t,"top"),n=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,l=s+e.offsetWidth,c=a+e.offsetHeight;r<=s?s=r:r+n>l&&(s+=r+n-l),o<=a?a=o:o+i>c&&(a+=o+i-c),e.scrollLeft=s,e.scrollTop=a}function li(e,t,r){const o="left"===r?"offsetLeft":"offsetTop";let n=0;for(;t.offsetParent&&(n+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){n-=e[o];break}t=t.offsetParent}return n}dn(Jn,"isMac",(()=>qn)),dn(Jn,"isIPhone",(()=>Zn)),dn(Jn,"isIPad",(()=>Qn)),dn(Jn,"isIOS",(()=>ei)),dn(Jn,"isAppleDevice",(()=>ti)),dn(Jn,"isWebKit",(()=>ri)),dn(Jn,"isChrome",(()=>oi)),dn(Jn,"isAndroid",(()=>ni)),dn({},"useEvent",(()=>ii)),dn({},"useValueEffect",(()=>si)),dn({},"scrollIntoView",(()=>ai));var ci=n(782),di=n.n(ci),ui=n(557),pi=n.n(ui),hi=n(394),gi=n.n(hi),mi=n(749),fi=n.n(mi),bi=n(809),$i=n.n(bi),yi=n(452),vi=n.n(yi);function xi(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}xi({},"Pressable",(()=>Oi)),xi({},"usePress",(()=>Mi));let wi="default",Si="",Ci=new WeakMap;function ki(e){ei()?("default"===wi&&(Si=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),wi="disabled"):e&&(Ci.set(e,e.style.userSelect),e.style.userSelect="none")}function Ei(e){if(ei()){if("disabled"!==wi)return;wi="restoring",setTimeout((()=>{Mn((()=>{"restoring"===wi&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=Si||""),Si="",wi="default")}))}),300)}else if(e&&Ci.has(e)){let t=Ci.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Ci.delete(e)}}function Pi(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}class Ti{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Ii(e){let t=(0,g.useRef)({isFocused:!1,onBlur:e,observer:null}),r=t.current;return r.onBlur=e,pn((()=>()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}),[r]),e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){r.isFocused=!0;let o=e.target,n=e=>{var r;let n=t.current;n.isFocused=!1,o.disabled&&(null===(r=n.onBlur)||void 0===r||r.call(n,new Ti("blur",e))),n.observer&&(n.observer.disconnect(),n.observer=null)};o.addEventListener("focusout",n,{once:!0}),r.observer=new MutationObserver((()=>{r.isFocused&&o.disabled&&(r.observer.disconnect(),o.dispatchEvent(new FocusEvent("blur")),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))})),r.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}}}const Ni=m().createContext(null);function Mi(e){let{onPress:t,onPressChange:r,onPressStart:o,onPressEnd:n,onPressUp:i,isDisabled:s,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:u,...p}=function(e){let t=(0,g.useContext)(Ni);if(t){let{register:r,...o}=t;e=$n(o,e),r()}return On(t,e.ref),e}(e),h=(0,g.useRef)(null);h.current={onPress:t,onPressChange:r,onPressStart:o,onPressEnd:n,onPressUp:i,isDisabled:s,shouldCancelOnPointerExit:c};let[m,f]=(0,g.useState)(!1),b=(0,g.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:$,removeAllGlobalListeners:y}=Ln(),v=(0,g.useMemo)((()=>{let e=b.current,t=(t,r)=>{let{onPressStart:o,onPressChange:n,isDisabled:i}=h.current;i||e.didFirePressStart||(o&&o({type:"pressstart",pointerType:r,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),n&&n(!0),e.didFirePressStart=!0,f(!0))},r=(t,r,o=!0)=>{let{onPressEnd:n,onPressChange:i,onPress:s,isDisabled:a}=h.current;e.didFirePressStart&&(e.ignoreClickAfterPress=!0,e.didFirePressStart=!1,n&&n({type:"pressend",pointerType:r,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),i&&i(!1),f(!1),s&&o&&!a&&s({type:"press",pointerType:r,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}))},o=(e,t)=>{let{onPressUp:r,isDisabled:o}=h.current;o||r&&r({type:"pressup",pointerType:t,target:e.currentTarget,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},n=t=>{e.isPressed&&(e.isOverTarget&&r(Bi(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),d||Ei(e.target))},i={onKeyDown(r){Ai(r.nativeEvent)&&r.currentTarget.contains(r.target)&&(Di(r.target)&&r.preventDefault(),r.stopPropagation(),e.isPressed||r.repeat||(e.target=r.currentTarget,e.isPressed=!0,t(r,"keyboard"),$(document,"keyup",a,!1)))},onKeyUp(t){Ai(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&o(Bi(e.target,t),"keyboard")},onClick(n){n&&!n.currentTarget.contains(n.target)||n&&0===n.button&&(n.stopPropagation(),s&&n.preventDefault(),e.ignoreClickAfterPress||e.ignoreEmulatedMouseEvents||"virtual"!==e.pointerType&&!Pi(n.nativeEvent)||(s||l||Cn(n.currentTarget),t(n,"virtual"),o(n,"virtual"),r(n,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{if(e.isPressed&&Ai(t)){Di(t.target)&&t.preventDefault(),t.stopPropagation(),e.isPressed=!1;let o=t.target;r(Bi(e.target,t),"keyboard",e.target.contains(o)),y(),(e.target.contains(o)&&Ri(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){i.onPointerDown=r=>{var o;0===r.button&&r.currentTarget.contains(r.target)&&(0===(o=r.nativeEvent).width&&0===o.height||1===o.width&&1===o.height&&0===o.pressure&&0===o.detail?e.pointerType="virtual":(Hi(r.currentTarget)&&r.preventDefault(),e.pointerType=r.pointerType,r.stopPropagation(),e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=r.pointerId,e.target=r.currentTarget,s||l||Cn(r.currentTarget),d||ki(e.target),t(r,e.pointerType),$(document,"pointermove",a,!1),$(document,"pointerup",c,!1),$(document,"pointercancel",u,!1))))},i.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Hi(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},i.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&zi(t,t.currentTarget)&&o(t,e.pointerType||t.pointerType)};let a=o=>{o.pointerId===e.activePointerId&&(zi(o,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(Bi(e.target,o),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,r(Bi(e.target,o),e.pointerType,!1),h.current.shouldCancelOnPointerExit&&n(o)))},c=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(zi(t,e.target)?r(Bi(e.target,t),e.pointerType):e.isOverTarget&&r(Bi(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),d||Ei(e.target))},u=e=>{n(e)};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&n(e)}}else{i.onMouseDown=r=>{0===r.button&&r.currentTarget.contains(r.target)&&(Hi(r.currentTarget)&&r.preventDefault(),r.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=r.currentTarget,e.pointerType=Pi(r.nativeEvent)?"virtual":"mouse",s||l||Cn(r.currentTarget),t(r,e.pointerType),$(document,"mouseup",a,!1)))},i.onMouseEnter=r=>{r.currentTarget.contains(r.target)&&(r.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,t(r,e.pointerType)))},i.onMouseLeave=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,r(t,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&n(t)))},i.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||o(t,e.pointerType))};let a=t=>{0===t.button&&(e.isPressed=!1,y(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(zi(t,e.target)?r(Bi(e.target,t),e.pointerType):e.isOverTarget&&r(Bi(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};i.onTouchStart=r=>{if(!r.currentTarget.contains(r.target))return;r.stopPropagation();let o=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(r.nativeEvent);o&&(e.activePointerId=o.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=r.currentTarget,e.pointerType="touch",s||l||Cn(r.currentTarget),d||ki(e.target),t(r,e.pointerType),$(window,"scroll",c,!0))},i.onTouchMove=o=>{if(!o.currentTarget.contains(o.target))return;if(o.stopPropagation(),!e.isPressed)return;let i=Li(o.nativeEvent,e.activePointerId);i&&zi(i,o.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,t(o,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,r(o,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&n(o))},i.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(t.stopPropagation(),!e.isPressed)return;let n=Li(t.nativeEvent,e.activePointerId);n&&zi(n,t.currentTarget)?(o(t,e.pointerType),r(t,e.pointerType)):e.isOverTarget&&r(t,e.pointerType,!1),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,d||Ei(e.target),y()},i.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&n(t))};let c=t=>{e.isPressed&&t.target.contains(e.target)&&n({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&n(e)}}return i}),[$,s,l,y,d]);return(0,g.useEffect)((()=>()=>{d||Ei(b.current.target)}),[d]),{isPressed:a||m,pressProps:$n(p,v)}}function Ri(e){return"A"===e.tagName&&e.hasAttribute("href")}function Ai(e){const{key:t,code:r,target:o}=e,n=o,{tagName:i,isContentEditable:s}=n,a=n.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t&&"Space"!==r||"INPUT"===i||"TEXTAREA"===i||!0===s||Ri(n)&&("button"!==a||"Enter"===t)||"link"===a&&"Enter"!==t)}function Li(e,t){const r=e.changedTouches;for(let e=0;e<r.length;e++){const o=r[e];if(o.identifier===t)return o}return null}function Bi(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function zi(e,t){let r=t.getBoundingClientRect(),o=function(e){let t=e.width/2||e.radiusX||0,r=e.height/2||e.radiusY||0;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}(e);return function(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}(r,o)}function Hi(e){return!e.draggable}function Di(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&"submit"===e.type)}Ni.displayName="PressResponderContext";const Oi=m().forwardRef((({children:e,...t},r)=>{let o=(0,g.useRef)();r=null!=r?r:o;let{pressProps:n}=Mi({...t,ref:r}),i=m().Children.only(e);return m().cloneElement(i,{ref:r,...$n(i.props,n)})}));xi({},"PressResponder",(()=>Ki));const Ki=m().forwardRef((({children:e,...t},r)=>{let o=(0,g.useRef)(!1),n=(0,g.useContext)(Ni),i=$n(n||{},{...t,ref:r||(null==n?void 0:n.ref),register(){o.current=!0,n&&n.register()}});return On(n,r),(0,g.useEffect)((()=>{o.current||console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.")}),[]),m().createElement(Ni.Provider,{value:i},e)}));function Fi(e){let t;t=e.isDisabled||!e.onBlur&&!e.onFocusChange?null:t=>{if(t.target===t.currentTarget)return e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1),!0};let r,o=Ii(t);return!e.isDisabled&&(e.onFocus||e.onFocusChange||e.onBlur)&&(r=t=>{t.target===t.currentTarget&&(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0),o(t))}),{focusProps:{onFocus:r,onBlur:t}}}xi({},"useFocus",(()=>Fi));var ji={};xi(ji,"isFocusVisible",(()=>rs)),xi(ji,"getInteractionModality",(()=>os)),xi(ji,"setInteractionModality",(()=>ns)),xi(ji,"useInteractionModality",(()=>is)),xi(ji,"useFocusVisible",(()=>ss)),xi(ji,"useFocusVisibleListener",(()=>as));let _i=null,Wi=new Set,Vi=!1,Ui=!1,Gi=!1;const Ji={Tab:!0,Escape:!0};function Yi(e,t){for(let r of Wi)r(e,t)}function Xi(e){Ui=!0,function(e){return!(e.metaKey||!qn()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(_i="keyboard",Yi("keyboard",e))}function qi(e){_i="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Ui=!0,Yi("pointer",e))}function Zi(e){Pi(e)&&(Ui=!0,_i="virtual")}function Qi(e){e.target!==window&&e.target!==document&&(Ui||Gi||(_i="virtual",Yi("virtual",e)),Ui=!1,Gi=!1)}function es(){Ui=!1,Gi=!0}function ts(){if("undefined"==typeof window||Vi)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Ui=!0,e.apply(this,arguments)},document.addEventListener("keydown",Xi,!0),document.addEventListener("keyup",Xi,!0),document.addEventListener("click",Zi,!0),window.addEventListener("focus",Qi,!0),window.addEventListener("blur",es,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",qi,!0),document.addEventListener("pointermove",qi,!0),document.addEventListener("pointerup",qi,!0)):(document.addEventListener("mousedown",qi,!0),document.addEventListener("mousemove",qi,!0),document.addEventListener("mouseup",qi,!0)),Vi=!0}function rs(){return"pointer"!==_i}function os(){return _i}function ns(e){_i=e,Yi(e,null)}function is(){ts();let[e,t]=(0,g.useState)(_i);return(0,g.useEffect)((()=>{let e=()=>{t(_i)};return Wi.add(e),()=>{Wi.delete(e)}}),[]),e}function ss(e={}){let{isTextInput:t,autoFocus:r}=e,[o,n]=(0,g.useState)(r||rs());return as((e=>{n(e)}),[t],{isTextInput:t}),{isFocusVisible:o}}function as(e,t,r){ts(),(0,g.useEffect)((()=>{let t=(t,o)=>{(function(e,t,r){return!(e&&"keyboard"===t&&r instanceof KeyboardEvent&&!Ji[r.key])})(null==r?void 0:r.isTextInput,t,o)&&e(rs())};return Wi.add(t),()=>{Wi.delete(t)}}),t)}function ls(e){let t=(0,g.useRef)({isFocusWithin:!1}).current,r=e.isDisabled?null:r=>{t.isFocusWithin&&!r.currentTarget.contains(r.relatedTarget)&&(t.isFocusWithin=!1,e.onBlurWithin&&e.onBlurWithin(r),e.onFocusWithinChange&&e.onFocusWithinChange(!1))},o=Ii(r),n=e.isDisabled?null:r=>{t.isFocusWithin||(e.onFocusWithin&&e.onFocusWithin(r),e.onFocusWithinChange&&e.onFocusWithinChange(!0),t.isFocusWithin=!0,o(r))};return{focusWithinProps:{onFocus:n,onBlur:r}}}"undefined"!=typeof document&&("loading"!==document.readyState?ts():document.addEventListener("DOMContentLoaded",ts)),xi({},"useFocusWithin",(()=>ls)),xi({},"useHover",(()=>gs));let cs=!1,ds=0;function us(){cs=!0,setTimeout((()=>{cs=!1}),50)}function ps(e){"touch"===e.pointerType&&us()}function hs(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",ps):document.addEventListener("touchend",us),ds++,()=>{ds--,ds>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",ps):document.removeEventListener("touchend",us))}}function gs(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,isDisabled:n}=e,[i,s]=(0,g.useState)(!1),a=(0,g.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,g.useEffect)(hs,[]);let{hoverProps:l,triggerHoverEnd:c}=(0,g.useMemo)((()=>{let e=(e,o)=>{if(a.pointerType=o,n||"touch"===o||a.isHovered||!e.currentTarget.contains(e.target))return;a.isHovered=!0;let i=e.currentTarget;a.target=i,t&&t({type:"hoverstart",target:i,pointerType:o}),r&&r(!0),s(!0)},i=(e,t)=>{if(a.pointerType="",a.target=null,"touch"===t||!a.isHovered)return;a.isHovered=!1;let n=e.currentTarget;o&&o({type:"hoverend",target:n,pointerType:t}),r&&r(!1),s(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{cs&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!n&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(l.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{a.ignoreEmulatedMouseEvents||cs||e(t,"mouse"),a.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!n&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:l,triggerHoverEnd:i}}),[t,r,o,n,a]);return(0,g.useEffect)((()=>{n&&c({currentTarget:a.target},a.pointerType)}),[n]),{hoverProps:l,isHovered:i}}function ms(e){let{ref:t,onInteractOutside:r,isDisabled:o,onInteractOutsideStart:n}=e,i=(0,g.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:r,onInteractOutsideStart:n}).current;i.onInteractOutside=r,i.onInteractOutsideStart=n,(0,g.useEffect)((()=>{if(o)return;let e=e=>{fs(e,t)&&i.onInteractOutside&&(i.onInteractOutsideStart&&i.onInteractOutsideStart(e),i.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let r=e=>{i.isPointerDown&&i.onInteractOutside&&fs(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("pointerdown",e,!0),document.addEventListener("pointerup",r,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("pointerup",r,!0)}}{let r=e=>{i.ignoreEmulatedMouseEvents?i.ignoreEmulatedMouseEvents=!1:i.isPointerDown&&i.onInteractOutside&&fs(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))},o=e=>{i.ignoreEmulatedMouseEvents=!0,i.onInteractOutside&&i.isPointerDown&&fs(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("mousedown",e,!0),document.addEventListener("mouseup",r,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",o,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("mouseup",r,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",o,!0)}}}),[t,i,o])}function fs(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1}return t.current&&!t.current.contains(e.target)}function bs(e){if(!e)return;let t=!0;return r=>{let o={...r,preventDefault(){r.preventDefault()},isDefaultPrevented:()=>r.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(o),t&&r.stopPropagation()}}function $s(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:bs(e.onKeyDown),onKeyUp:bs(e.onKeyUp)}}}function ys(e){let{onMoveStart:t,onMove:r,onMoveEnd:o}=e,n=(0,g.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:s}=Ln(),a=(0,g.useMemo)((()=>{let e={},a=()=>{ki(),n.current.didMove=!1},l=(e,o,i,s)=>{0===i&&0===s||(n.current.didMove||(n.current.didMove=!0,null==t||t({type:"movestart",pointerType:o,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),r({type:"move",pointerType:o,deltaX:i,deltaY:s,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},c=(e,t)=>{Ei(),n.current.didMove&&(null==o||o({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))};if("undefined"==typeof PointerEvent){let t=e=>{0===e.button&&(l(e,"mouse",e.pageX-n.current.lastPosition.pageX,e.pageY-n.current.lastPosition.pageY),n.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},r=e=>{0===e.button&&(c(e,"mouse"),s(window,"mousemove",t,!1),s(window,"mouseup",r,!1))};e.onMouseDown=e=>{0===e.button&&(a(),e.stopPropagation(),e.preventDefault(),n.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i(window,"mousemove",t,!1),i(window,"mouseup",r,!1))};let o=e=>{let t=[...e.changedTouches].findIndex((({identifier:e})=>e===n.current.id));if(t>=0){let{pageX:r,pageY:o}=e.changedTouches[t];l(e,"touch",r-n.current.lastPosition.pageX,o-n.current.lastPosition.pageY),n.current.lastPosition={pageX:r,pageY:o}}},d=e=>{[...e.changedTouches].findIndex((({identifier:e})=>e===n.current.id))>=0&&(c(e,"touch"),n.current.id=null,s(window,"touchmove",o),s(window,"touchend",d),s(window,"touchcancel",d))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=n.current.id)return;let{pageX:t,pageY:r,identifier:s}=e.changedTouches[0];a(),e.stopPropagation(),e.preventDefault(),n.current.lastPosition={pageX:t,pageY:r},n.current.id=s,i(window,"touchmove",o,!1),i(window,"touchend",d,!1),i(window,"touchcancel",d,!1)}}else{let t=e=>{if(e.pointerId===n.current.id){let t=e.pointerType||"mouse";l(e,t,e.pageX-n.current.lastPosition.pageX,e.pageY-n.current.lastPosition.pageY),n.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},r=e=>{if(e.pointerId===n.current.id){let o=e.pointerType||"mouse";c(e,o),n.current.id=null,s(window,"pointermove",t,!1),s(window,"pointerup",r,!1),s(window,"pointercancel",r,!1)}};e.onPointerDown=e=>{0===e.button&&null==n.current.id&&(a(),e.stopPropagation(),e.preventDefault(),n.current.lastPosition={pageX:e.pageX,pageY:e.pageY},n.current.id=e.pointerId,i(window,"pointermove",t,!1),i(window,"pointerup",r,!1),i(window,"pointercancel",r,!1))}}let d=(e,t,r)=>{a(),l(e,"keyboard",t,r),c(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),d(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),d(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),d(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),d(e,0,1)}},e}),[n,t,r,o,i,s]);return{moveProps:a}}function vs(e,t){let{onScroll:r,isDisabled:o}=e,n=(0,g.useCallback)((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),r&&r({deltaX:e.deltaX,deltaY:e.deltaY}))}),[r]);ii(t,"wheel",o?null:n)}xi({},"useInteractOutside",(()=>ms)),xi({},"useKeyboard",(()=>$s)),xi({},"useMove",(()=>ys)),xi({},"useScrollWheel",(()=>vs)),xi({},"useLongPress",(()=>ws));const xs=500;function ws(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:o,onLongPress:n,threshold:i=xs,accessibilityDescription:s}=e;const a=(0,g.useRef)(null);let{addGlobalListener:l,removeGlobalListener:c}=Ln(),{pressProps:d}=Mi({isDisabled:t,onPressStart(e){if(("mouse"===e.pointerType||"touch"===e.pointerType)&&(r&&r({...e,type:"longpressstart"}),a.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),n&&n({...e,type:"longpress"}),a.current=null}),i),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};l(e.target,"contextmenu",t,{once:!0}),l(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){a.current&&clearTimeout(a.current),!o||"mouse"!==e.pointerType&&"touch"!==e.pointerType||o({...e,type:"longpressend"})}});return{longPressProps:$n(d,Gn(n&&!t?s:null))}}var Ss=n(156),Cs=n.n(Ss);function ks(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}var Es={};ks(Es,"useVisuallyHidden",(()=>Ts)),ks(Es,"VisuallyHidden",(()=>Is));const Ps={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"};function Ts(e={}){let{style:t,isFocusable:r}=e,[o,n]=(0,g.useState)(!1),{focusProps:i}=Fi({isDisabled:!r,onFocusChange:n});return{visuallyHiddenProps:{...i,style:(0,g.useMemo)((()=>o?t:t?{...Ps,...t}:Ps),[o])}}}function Is(e){let{children:t,elementType:r="div",isFocusable:o,style:n,...i}=e,{visuallyHiddenProps:s}=Ts(e);return m().createElement(r,$n(i,s),t)}function Ns(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Ms(e){return e&&e.__esModule?e.default:e}Ns({},"useOverlayPosition",(()=>Vs));const Rs={top:"top",bottom:"top",left:"left",right:"left"},As={top:"bottom",bottom:"top",left:"right",right:"left"},Ls={top:"left",left:"top"},Bs={top:"height",left:"width"},zs={};let Hs="undefined"!=typeof window&&window.visualViewport;function Ds(e,t,r,o,n){let i=o.scroll[e],s=o[Bs[e]],a=t-n-i,l=t+n-i+r;return a<0?-a:l>s?Math.max(s-l,-a):0}function Os(e){if(zs[e])return zs[e];let[t,r]=e.split(" "),o=Rs[t]||"right",n=Ls[o];Rs[r]||(r="center");let i=Bs[o],s=Bs[n];return zs[e]={placement:t,crossPlacement:r,axis:o,crossAxis:n,size:i,crossSize:s},zs[e]}function Ks(e,t,r,o,n,i,s,a){let{placement:l,crossPlacement:c,axis:d,crossAxis:u,size:p,crossSize:h}=o,g={};g[u]=e[u],"center"===c?g[u]+=(e[h]-r[h])/2:c!==u&&(g[u]+=e[h]-r[h]),g[u]+=i;let m=e[u]+e[h]/2-r[h],f=e[u]+e[h]/2;if(g[u]=Math.min(Math.max(m,g[u]),f),l===d){const r=a?s[p]:t[p];g[As[d]]=Math.floor(r-e[d]+n)}else g[d]=Math.floor(e[d]+e[p]+n);return g}function Fs(e,t,r,o,n,i){let{placement:s,axis:a,size:l}=i;return s===a?Math.max(0,r[a]-e[a]-e.scroll[a]+t[a]-o[a]-o[As[a]]-n):Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-r[a]-r[l]-o[a]-o[As[a]]-n)}function js(e){let{placement:t,targetNode:r,overlayNode:o,scrollNode:n,padding:i,shouldFlip:s,boundaryElement:a,offset:l,crossOffset:c,maxHeight:d}=e,u=o.offsetParent||document.body,p="BODY"===u.tagName;const h=window.getComputedStyle(u).position;let g=!!h&&"static"!==h,m=p?pi()(r):gi()(r,u);p||(m.top+=parseInt(di()(r,"marginTop"),10)||0,m.left+=parseInt(di()(r,"marginLeft"),10)||0);let f=pi()(o),b=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(o);var $;return f.width+=b.left+b.right,f.height+=b.top+b.bottom,function(e,t,r,o,n,i,s,a,l,c,d,u,p){let h=Os(e),{size:g,crossAxis:m,crossSize:f,placement:b,crossPlacement:$}=h,y=Ks(t,a,r,h,c,d,l,u),v=c,x=Fs(a,l,t,n,i+c,h);if(s&&o[g]>x){let e=Os(`${As[b]} ${$}`),o=Ks(t,a,r,e,c,d,l,u);Fs(a,l,t,n,i+c,e)>x&&(h=e,y=o,v=c)}let w=Ds(m,y[m],r[f],a,i);y[m]+=w;let S=function(e,t,r,o,n,i){return null!=e.top?Math.max(0,t.height+t.top+t.scroll.top-(r.top+e.top)-(n.top+n.bottom+i)):Math.max(0,o.top+r.top-(t.top+t.scroll.top)-(n.top+n.bottom+i))}(y,a,l,t,n,i);p&&p<S&&(S=p),r.height=Math.min(r.height,S),y=Ks(t,a,r,h,v,d,l,u),w=Ds(m,y[m],r[f],a,i),y[m]+=w;let C={};return C[m]=t[m]-y[m]+t[f]/2,{position:y,maxHeight:S,arrowOffsetLeft:C.left,arrowOffsetTop:C.top,placement:h.placement}}(t,m,f,{top:($=n).scrollTop,left:$.scrollLeft,width:$.scrollWidth,height:$.scrollHeight},b,i,s,function(e){let t=0,r=0,o=0,n=0,i={};var s,a;return"BODY"===e.tagName?(t=null!==(s=null==Hs?void 0:Hs.width)&&void 0!==s?s:document.documentElement.clientWidth,r=null!==(a=null==Hs?void 0:Hs.height)&&void 0!==a?a:document.documentElement.clientHeight,i.top=$i()(vi()(e).documentElement)||$i()(e),i.left=fi()(vi()(e).documentElement)||fi()(e)):(({width:t,height:r,top:o,left:n}=pi()(e)),i.top=$i()(e),i.left=fi()(e)),{width:t,height:r,scroll:i,top:o,left:n}}(a),"BODY"===a.tagName?pi()(u):gi()(u,a),l,c,g,d)}const _s=new WeakMap;let Ws="undefined"!=typeof window&&window.visualViewport;function Vs(e){let{direction:t}=Go(),{targetRef:r,overlayRef:o,scrollRef:n=o,placement:i="bottom",containerPadding:s=12,shouldFlip:a=!0,boundaryElement:l=("undefined"!=typeof document?document.body:null),offset:c=0,crossOffset:d=0,shouldUpdatePosition:u=!0,isOpen:p=!0,onClose:h,maxHeight:m}=e,[f,b]=(0,g.useState)({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),$=[u,i,o.current,r.current,n.current,s,a,l,c,d,p,t,m],y=(0,g.useCallback)((()=>{!1!==u&&p&&o.current&&r.current&&n.current&&l&&b(js({placement:Us(i,t),overlayNode:o.current,targetNode:r.current,scrollNode:n.current,padding:s,shouldFlip:a,boundaryElement:l,offset:c,crossOffset:d,maxHeight:m}))}),$);var v;pn(y,$),pn((()=>(window.addEventListener("resize",v,!1),()=>{window.removeEventListener("resize",v,!1)})),[v=y]);let x=(0,g.useRef)(!1);pn((()=>{let e,t=()=>{x.current=!0,clearTimeout(e),e=setTimeout((()=>{x.current=!1}),500),y()};return null==Ws||Ws.addEventListener("resize",t),()=>{null==Ws||Ws.removeEventListener("resize",t)}}),[y]);let w=(0,g.useCallback)((()=>{x.current||h()}),[h,x]);return function(e){let{triggerRef:t,isOpen:r,onClose:o}=e;(0,g.useEffect)((()=>{if(!r)return;let e=e=>{let r=e.target;if(!t.current||r instanceof Node&&!r.contains(t.current))return;let n=o||_s.get(t.current);n&&n()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[r,o,t])}({triggerRef:r,isOpen:p,onClose:h?w:void 0}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...f.position,maxHeight:f.maxHeight}},placement:f.placement,arrowProps:{style:{left:f.arrowOffsetLeft,top:f.arrowOffsetTop}},updatePosition:y}}function Us(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}Ns({},"useOverlay",(()=>Js));const Gs=[];function Js(e,t){let{onClose:r,shouldCloseOnBlur:o,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:a}=e;(0,g.useEffect)((()=>(n&&Gs.push(t),()=>{let e=Gs.indexOf(t);e>=0&&Gs.splice(e,1)})),[n,t]);let l=()=>{Gs[Gs.length-1]===t&&r&&r()};ms({ref:t,onInteractOutside:i?e=>{a&&!a(e.target)||(Gs[Gs.length-1]===t&&(e.stopPropagation(),e.preventDefault()),l())}:null,onInteractOutsideStart:e=>{a&&!a(e.target)||Gs[Gs.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=ls({isDisabled:!o,onBlurWithin:e=>{a&&!a(e.relatedTarget)||r()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||s||(e.stopPropagation(),e.preventDefault(),l())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}function Ys(e,t,r){let o,{type:n}=e,{isOpen:i}=t;(0,g.useEffect)((()=>{r&&r.current&&_s.set(r.current,t.close)})),"menu"===n?o=!0:"listbox"===n&&(o="listbox");let s=gn();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?s:null},overlayProps:{id:s}}}Ns({},"useOverlayTrigger",(()=>Ys)),Ns({},"usePreventScroll",(()=>Zs));const Xs="undefined"!=typeof window&&window.visualViewport,qs=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Zs(e={}){let{isDisabled:t}=e;pn((()=>{if(!t)return ei()?function(){let e,t=0,r=window.pageXOffset,o=window.pageYOffset,n=bn(Qs(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),Qs(document.documentElement,"overflow","hidden"),Qs(document.body,"marginTop",`-${o}px`));window.scrollTo(0,0);let i=bn(ea(document,"touchstart",(r=>{e=Kn(r.target),e===document.documentElement&&e===document.body||(t=r.changedTouches[0].pageY)}),{passive:!1,capture:!0}),ea(document,"touchmove",(r=>{if(e===document.documentElement||e===document.body)return void r.preventDefault();let o=r.changedTouches[0].pageY,n=e.scrollTop,i=e.scrollHeight-e.clientHeight;(n<=0&&o>t||n>=i&&o<t)&&r.preventDefault(),t=o}),{passive:!1,capture:!0}),ea(document,"touchend",(e=>{let t=e.target;ra(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),ea(document,"focus",(e=>{let t=e.target;ra(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",Xs&&(Xs.height<window.innerHeight?requestAnimationFrame((()=>{ta(t)})):Xs.addEventListener("resize",(()=>ta(t)),{once:!0}))})))}),!0),ea(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{n(),i(),window.scrollTo(r,o)}}():bn(Qs(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),Qs(document.documentElement,"overflow","hidden"))}),[t])}function Qs(e,t,r){let o=e.style[t];return e.style[t]=r,()=>{e.style[t]=o}}function ea(e,t,r,o){return e.addEventListener(t,r,o),()=>{e.removeEventListener(t,r,o)}}function ta(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=Kn(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let r=t.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>r+e.clientHeight&&(t.scrollTop+=o-r)}e=t.parentElement}}function ra(e){return e instanceof HTMLInputElement&&!qs.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var oa={};Ns(oa,"ModalProvider",(()=>ia)),Ns(oa,"useModalProvider",(()=>sa)),Ns(oa,"OverlayProvider",(()=>la)),Ns(oa,"OverlayContainer",(()=>ca)),Ns(oa,"useModal",(()=>da));const na=m().createContext(null);function ia(e){let{children:t}=e,r=(0,g.useContext)(na),[o,n]=(0,g.useState)(0),i=(0,g.useMemo)((()=>({parent:r,modalCount:o,addModal(){n((e=>e+1)),r&&r.addModal()},removeModal(){n((e=>e-1)),r&&r.removeModal()}})),[r,o]);return m().createElement(na.Provider,{value:i},t)}function sa(){let e=(0,g.useContext)(na);return{modalProviderProps:{"aria-hidden":!!(e&&e.modalCount>0)||null}}}function aa(e){let{modalProviderProps:t}=sa();return m().createElement("div",{"data-overlay-container":!0,...e,...t})}function la(e){return m().createElement(ia,null,m().createElement(aa,e))}function ca(e){let{portalContainer:t=document.body,...r}=e;m().useEffect((()=>{if(t.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")}),[t]);let o=m().createElement(la,r);return Cs().createPortal(o,t)}function da(e){let t=(0,g.useContext)(na);if(!t)throw new Error("Modal is not contained within a provider");return(0,g.useEffect)((()=>{if(!(null==e?void 0:e.isDisabled)&&t&&t.parent)return t.parent.addModal(),()=>{t&&t.parent&&t.parent.removeModal()}}),[t,t.parent,null==e?void 0:e.isDisabled]),{modalProps:{"data-ismodal":!(null==e?void 0:e.isDisabled)}}}var ua,pa,ha,ga,ma,fa,ba,$a,ya,va,xa,wa,Sa,Ca,ka,Ea,Pa,Ta,Ia,Na,Ma,Ra,Aa,La,Ba,za,Ha,Da,Oa,Ka,Fa,ja,_a,Wa,Va;function Ua(e){let{onDismiss:t,...r}=e,o=Bn(r,Yo(Ms(ua))("dismiss"));return m().createElement(Is,null,m().createElement("button",{...o,tabIndex:-1,onClick:()=>{t&&t()}}))}Ns({},"DismissButton",(()=>Ua)),pa=JSON.parse('{"dismiss":"تجاهل"}'),ha=JSON.parse('{"dismiss":"Отхвърляне"}'),ga=JSON.parse('{"dismiss":"Odstranit"}'),ma=JSON.parse('{"dismiss":"Luk"}'),fa=JSON.parse('{"dismiss":"Schließen"}'),ba=JSON.parse('{"dismiss":"Απόρριψη"}'),$a=JSON.parse('{"dismiss":"Dismiss"}'),ya=JSON.parse('{"dismiss":"Descartar"}'),va=JSON.parse('{"dismiss":"Lõpeta"}'),xa=JSON.parse('{"dismiss":"Hylkää"}'),wa=JSON.parse('{"dismiss":"Rejeter"}'),Sa=JSON.parse('{"dismiss":"התעלם"}'),Ca=JSON.parse('{"dismiss":"Odbaci"}'),ka=JSON.parse('{"dismiss":"Elutasítás"}'),Ea=JSON.parse('{"dismiss":"Ignora"}'),Pa=JSON.parse('{"dismiss":"閉じる"}'),Ta=JSON.parse('{"dismiss":"무시"}'),Ia=JSON.parse('{"dismiss":"Atmesti"}'),Na=JSON.parse('{"dismiss":"Nerādīt"}'),Ma=JSON.parse('{"dismiss":"Lukk"}'),Ra=JSON.parse('{"dismiss":"Negeren"}'),Aa=JSON.parse('{"dismiss":"Zignoruj"}'),La=JSON.parse('{"dismiss":"Descartar"}'),Ba=JSON.parse('{"dismiss":"Dispensar"}'),za=JSON.parse('{"dismiss":"Revocare"}'),Ha=JSON.parse('{"dismiss":"Пропустить"}'),Da=JSON.parse('{"dismiss":"Zrušiť"}'),Oa=JSON.parse('{"dismiss":"Opusti"}'),Ka=JSON.parse('{"dismiss":"Odbaci"}'),Fa=JSON.parse('{"dismiss":"Avvisa"}'),ja=JSON.parse('{"dismiss":"Kapat"}'),_a=JSON.parse('{"dismiss":"Скасувати"}'),Wa=JSON.parse('{"dismiss":"取消"}'),Va=JSON.parse('{"dismiss":"關閉"}'),ua={"ar-AE":pa,"bg-BG":ha,"cs-CZ":ga,"da-DK":ma,"de-DE":fa,"el-GR":ba,"en-US":$a,"es-ES":ya,"et-EE":va,"fi-FI":xa,"fr-FR":wa,"he-IL":Sa,"hr-HR":Ca,"hu-HU":ka,"it-IT":Ea,"ja-JP":Pa,"ko-KR":Ta,"lt-LT":Ia,"lv-LV":Na,"nb-NO":Ma,"nl-NL":Ra,"pl-PL":Aa,"pt-BR":La,"pt-PT":Ba,"ro-RO":za,"ru-RU":Ha,"sk-SK":Da,"sl-SI":Oa,"sr-SP":Ka,"sv-SE":Fa,"tr-TR":ja,"uk-UA":_a,"zh-CN":Wa,"zh-TW":Va},Ns({},"ariaHideOutside",(()=>Ja));let Ga=new WeakMap;function Ja(e,t=document.body){let r=new Set(e),o=new Set,n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>(t instanceof HTMLElement&&"true"===t.dataset.liveAnnouncer&&r.add(t),r.has(t)||o.has(t.parentElement)?NodeFilter.FILTER_REJECT:t instanceof HTMLElement&&"row"===t.getAttribute("role")||e.some((e=>t.contains(e)))?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT)}),i=e=>{var t;let r=null!==(t=Ga.get(e))&&void 0!==t?t:0;"true"===e.getAttribute("aria-hidden")&&0===r||(0===r&&e.setAttribute("aria-hidden","true"),o.add(e),Ga.set(e,r+1))},s=n.nextNode();for(;null!=s;)i(s),s=n.nextNode();let a=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...r,...o].some((e=>e.contains(t.target))))for(let e of t.addedNodes)e instanceof HTMLElement&&"true"===e.dataset.liveAnnouncer?r.add(e):e instanceof Element&&i(e)}));return a.observe(t,{childList:!0,subtree:!0}),()=>{a.disconnect();for(let e of o){let t=Ga.get(e);1===t?(e.removeAttribute("aria-hidden"),Ga.delete(e)):Ga.set(e,t-1)}}}const Ya=(e,t)=>{if(!document||!e)return"";let r=getComputedStyle(document.documentElement);const o=`--${be.prefix}-${e}-${t}`,n=r.getPropertyValue(o);return n&&n.includes("var")&&Ya(e,n),n},Xa=e=>{var t;const r=(null==e||null==(t=e.getAttribute("style"))?void 0:t.split(";").map((e=>e.trim())).filter((e=>e.includes("color-scheme"))))||[],o=r.length>0?r[0].replace("color-scheme: ","").replace(";",""):"";return(null==e?void 0:e.getAttribute("data-theme"))||o},qa=e=>"string"==typeof e&&null!=e&&e.includes("-theme")?null==e?void 0:e.replace("-theme",""):e,Za=e=>{var t,r;if(!document)return;const o=document.documentElement,n=(null==o||null==(t=o.getAttribute("class"))?void 0:t.split(" ").filter((e=>!e.includes("theme")&&!e.includes("light")&&!e.includes("dark"))))||[],i=(null==o||null==(r=o.getAttribute("style"))?void 0:r.split(";").filter((e=>!e.includes("color-scheme")&&e.length)).map((e=>`${e};`)))||[];null==o||o.setAttribute("class",wt(n,`${qa(e)}-theme`)),null==o||o.setAttribute("style",wt(i,`color-scheme: ${e};`))},Qa=vt((({theme:e,disableBaseline:t,children:r})=>{const{isBrowser:o}=Xe(),[n,i]=(0,g.useState)(Ge.type),s=e=>{i((t=>t!==e?e:t))},a=e=>{const t=Xa(e);t&&s(t)},l=(0,g.useMemo)((()=>{const e=o?(()=>{const e=[...Object.keys(be.theme.colors),...Object.keys(Le.colors)],t=Object.keys(Le.shadows);return{colors:e.reduce(((e,t)=>{const r=Ya("colors",t);return r&&(e[t]={prefix:be.prefix,scale:"colors",token:t,value:r}),e}),{}),shadows:t.reduce(((e,t)=>{const r=Ya("shadows",t);return r&&(e[t]={prefix:be.prefix,scale:"shadows",token:t,value:r}),e}),{})}})():{},t=ze(ht(r=Ge.theme)?r instanceof Array?[...r]:{...r}:r,e);var r;const i=qa(n);return{theme:t,type:i,isDark:"dark"===i}}),[n,o]);return(0,g.useEffect)((()=>{var e,t,r;a(null==(e=document)?void 0:e.documentElement);const o=new MutationObserver((e=>{var t;if(e&&e.length>0&&"BODY"===(null==(t=e[0])?void 0:t.target.nodeName)){var r,o,n;const e=null==(r=document)||null==(o=r.body)||null==(n=o.dataset)?void 0:n.theme;e&&s(e)}else{var i;a(null==(i=document)?void 0:i.documentElement)}}));return o.observe(null==(t=document)?void 0:t.documentElement,{attributes:!0,attributeFilter:["data-theme","style"]}),o.observe(null==(r=document)?void 0:r.body,{attributes:!0,attributeFilter:["data-theme","style"]}),()=>o.disconnect()}),[]),(0,g.useEffect)((()=>{o&&e&&null!=e&&e.className&&(Za(e.className),s(qa(e.className)))}),[o,e]),(0,St.jsx)(_t,{children:(0,St.jsx)(la,{children:(0,St.jsxs)(Je.Provider,{value:l,children:[!t&&(0,St.jsx)(Mt,{}),r]})})})}),{disableBaseline:!1}),el=Ke({WebkitTapHighlightColor:"transparent","&:focus:not(&:focus-visible)":{boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},"@safari":{WebkitTapHighlightColor:"transparent",outline:"none"}}),tl=Ke({variants:{isFocusVisible:{true:{outline:"transparent solid 2px",outlineOffset:"2px",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},false:{outline:"none"}}}}),rl=Ke({transform:"translateZ(0)",backfaceVisibility:"hidden"}),ol=Ke({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"}),nl=Ke({'&[aria-haspopup="true"]&[aria-expanded="true"]':{opacity:.7,transform:"scale(0.97)"}});function il(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}var sl={};function al(e){if("virtual"===os()){let t=document.activeElement;Mn((()=>{document.activeElement===t&&document.contains(e)&&Cn(e)}))}else Cn(e)}function ll(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:r}=e.style,o="none"!==t&&"hidden"!==r&&"collapse"!==r;if(o){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:r,visibility:n}=t(e);o="none"!==r&&"hidden"!==n&&"collapse"!==n}return o}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||ll(e.parentElement,e))}il(sl,"FocusScope",(()=>pl)),il(sl,"useFocusManager",(()=>hl)),il(sl,"getFocusableTreeWalker",(()=>Sl)),il(sl,"createFocusManager",(()=>Cl)),il({},"focusSafely",(()=>al));const cl=m().createContext(null);let dl=null,ul=new Map;function pl(e){let{children:t,contain:r,restoreFocus:o,autoFocus:n}=e,i=(0,g.useRef)(),s=(0,g.useRef)(),a=(0,g.useRef)([]),l=(0,g.useContext)(cl),c=null==l?void 0:l.scopeRef;pn((()=>{let e=i.current.nextSibling,t=[];for(;e&&e!==s.current;)t.push(e),e=e.nextSibling;a.current=t}),[t,c]),pn((()=>(ul.set(a,c),()=>{a!==dl&&!vl(a,dl)||c&&!ul.has(c)||(dl=c),ul.delete(a)})),[a,c]),function(e,t){let r=(0,g.useRef)(),o=(0,g.useRef)(null);pn((()=>{let n=e.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==dl)return;let r=document.activeElement,o=e.current;if(!$l(r,o))return;let n=Sl(bl(o),{tabbable:!0},o);n.currentNode=r;let i=t.shiftKey?n.previousNode():n.nextNode();i||(n.currentNode=t.shiftKey?o[o.length-1].nextElementSibling:o[0].previousElementSibling,i=t.shiftKey?n.previousNode():n.nextNode()),t.preventDefault(),i&&xl(i,!0)},s=t=>{!dl||vl(dl,e)?(dl=e,r.current=t.target):e!==dl||yl(t.target,e)?e===dl&&(r.current=t.target):r.current?r.current.focus():dl&&wl(dl.current)},a=t=>{o.current=requestAnimationFrame((()=>{e!==dl||yl(document.activeElement,e)||(dl=e,r.current=t.target,r.current.focus())}))};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",s,!1),n.forEach((e=>e.addEventListener("focusin",s,!1))),n.forEach((e=>e.addEventListener("focusout",a,!1))),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",s,!1),n.forEach((e=>e.removeEventListener("focusin",s,!1))),n.forEach((e=>e.removeEventListener("focusout",a,!1)))}}),[e,t]),(0,g.useEffect)((()=>()=>cancelAnimationFrame(o.current)),[o])}(a,r),function(e,t,r){const o=(0,g.useRef)("undefined"!=typeof document?document.activeElement:null);pn((()=>{let n=o.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey)return;let r=document.activeElement;if(!$l(r,e.current))return;let o=Sl(document.body,{tabbable:!0});o.currentNode=r;let i=t.shiftKey?o.previousNode():o.nextNode();if(document.body.contains(n)&&n!==document.body||(n=null),(!i||!$l(i,e.current))&&n){o.currentNode=n;do{i=t.shiftKey?o.previousNode():o.nextNode()}while($l(i,e.current));t.preventDefault(),t.stopPropagation(),i?xl(i,!0):function(e){for(let t of ul.keys())if($l(e,t.current))return!0;return!1}(n)?xl(n,!0):r.blur()}};return r||document.addEventListener("keydown",i,!0),()=>{r||document.removeEventListener("keydown",i,!0),t&&n&&$l(document.activeElement,e.current)&&requestAnimationFrame((()=>{document.body.contains(n)&&xl(n)}))}}),[e,t,r])}(a,o,r),function(e,t){const r=m().useRef(t);(0,g.useEffect)((()=>{r.current&&(dl=e,$l(document.activeElement,dl.current)||wl(e.current)),r.current=!1}),[])}(a,n);let d=function(e){return{focusNext(t={}){let r=e.current,{from:o,tabbable:n,wrap:i}=t,s=o||document.activeElement,a=r[0].previousElementSibling,l=Sl(bl(r),{tabbable:n},r);l.currentNode=$l(s,r)?s:a;let c=l.nextNode();return!c&&i&&(l.currentNode=a,c=l.nextNode()),c&&xl(c,!0),c},focusPrevious(t={}){let r=e.current,{from:o,tabbable:n,wrap:i}=t,s=o||document.activeElement,a=r[r.length-1].nextElementSibling,l=Sl(bl(r),{tabbable:n},r);l.currentNode=$l(s,r)?s:a;let c=l.previousNode();return!c&&i&&(l.currentNode=a,c=l.previousNode()),c&&xl(c,!0),c},focusFirst(t={}){let r=e.current,{tabbable:o}=t,n=Sl(bl(r),{tabbable:o},r);n.currentNode=r[0].previousElementSibling;let i=n.nextNode();return i&&xl(i,!0),i},focusLast(t={}){let r=e.current,{tabbable:o}=t,n=Sl(bl(r),{tabbable:o},r);n.currentNode=r[r.length-1].nextElementSibling;let i=n.previousNode();return i&&xl(i,!0),i}}}(a);return m().createElement(cl.Provider,{value:{scopeRef:a,focusManager:d}},m().createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,m().createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function hl(){var e;return null===(e=(0,g.useContext)(cl))||void 0===e?void 0:e.focusManager}const gl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],ml=gl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";gl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const fl=gl.join(':not([hidden]):not([tabindex="-1"]),');function bl(e){return e[0].parentElement}function $l(e,t){return t.some((t=>t.contains(e)))}function yl(e,t){for(let r of ul.keys())if((r===t||vl(t,r))&&$l(e,r.current))return!0;return!1}function vl(e,t){let r=ul.get(t);return!!r&&(r===e||vl(e,r))}function xl(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{al(e)}catch(e){}}function wl(e){let t=e[0].previousElementSibling,r=Sl(bl(e),{tabbable:!0},e);r.currentNode=t,xl(r.nextNode())}function Sl(e,t,r){let o=(null==t?void 0:t.tabbable)?fl:ml,n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var n;return(null==t||null===(n=t.from)||void 0===n?void 0:n.contains(e))?NodeFilter.FILTER_REJECT:e.matches(o)&&ll(e)&&(!r||$l(e,r))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(n.currentNode=t.from),n}function Cl(e){return{focusNext(t={}){let r=e.current,{from:o,tabbable:n,wrap:i}=t,s=o||document.activeElement,a=Sl(r,{tabbable:n});r.contains(s)&&(a.currentNode=s);let l=a.nextNode();return!l&&i&&(a.currentNode=r,l=a.nextNode()),l&&xl(l,!0),l},focusPrevious(t={}){let r=e.current,{from:o,tabbable:n,wrap:i}=t,s=o||document.activeElement,a=Sl(r,{tabbable:n});if(!r.contains(s)){let e=kl(a);return e&&xl(e,!0),e}a.currentNode=s;let l=a.previousNode();return!l&&i&&(a.currentNode=r,l=kl(a)),l&&xl(l,!0),l},focusFirst(t={}){let r=e.current,{tabbable:o}=t,n=Sl(r,{tabbable:o}).nextNode();return n&&xl(n,!0),n},focusLast(t={}){let r=e.current,{tabbable:o}=t,n=kl(Sl(r,{tabbable:o}));return n&&xl(n,!0),n}}}function kl(e){let t,r;do{r=e.lastChild(),r&&(t=r)}while(r);return t}function El(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,n=(0,g.useRef)({isFocused:!1,isFocusVisible:t||rs()}).current,[i,s]=(0,g.useState)(!1),[a,l]=(0,g.useState)((()=>n.isFocused&&n.isFocusVisible)),c=()=>l(n.isFocused&&n.isFocusVisible),d=e=>{n.isFocused=e,s(e),c()};as((e=>{n.isFocusVisible=e,c()}),[],{isTextInput:r});let{focusProps:u}=Fi({isDisabled:o,onFocusChange:d}),{focusWithinProps:p}=ls({isDisabled:!o,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:n.isFocused&&a,focusProps:o?p:u}}function Pl(e){let{children:t,focusClass:r,focusRingClass:o}=e,{isFocused:n,isFocusVisible:i,focusProps:s}=El(e),a=m().Children.only(t);return m().cloneElement(a,$n(a.props,{...s,className:rn({[r||""]:n,[o||""]:i})}))}il({},"FocusRing",(()=>Pl)),il({},"useFocusRing",(()=>El));var Tl={};il(Tl,"FocusableProvider",(()=>Ml)),il(Tl,"useFocusable",(()=>Rl));let Il=m().createContext(null);function Nl(e,t){let{children:r,...o}=e,n={...o,ref:t};return m().createElement(Il.Provider,{value:n},r)}let Ml=m().forwardRef(Nl);function Rl(e,t){let{focusProps:r}=Fi(e),{keyboardProps:o}=$s(e),n=$n(r,o),i=function(e){let t=(0,g.useContext)(Il)||{};On(t,e);let{ref:r,...o}=t;return o}(t),s=e.isDisabled?{}:i,a=(0,g.useRef)(e.autoFocus);return(0,g.useEffect)((()=>{a.current&&t.current&&al(t.current),a.current=!1}),[t]),{focusableProps:$n({...n,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function Al(e){const t=(0,g.useRef)(null);return(0,g.useImperativeHandle)(e,(()=>t.current)),t}function Ll(e,t){const r=(0,g.useRef)(null);return(0,g.useImperativeHandle)(e,(()=>function(e,t=e){return{...(r=e,{UNSAFE_getDOMNode:()=>r.current}),focus(){t.current&&t.current.focus()}};var r}(r,t))),r}"undefined"==typeof window||!window.document||window.document.createElement;const Bl=Oe("span",{dflex:"center",position:"relative",zIndex:"$1",boxSizing:"border-box",overflow:"hidden",verticalAlign:"top",cursor:"auto",transition:"transform 250ms ease 0ms, box-shadow 0.25s ease 0s",".nextui-avatar-bg":{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:"$2",transition:"$avatar",size:"100%"},"&:hover .nextui-avatar-bg":{boxShadow:" inset 0 0 40px 0 rgb(0 0 0 / 14%)"},".nextui-avatar-img":{opacity:0,zIndex:"$3",display:"flex",bg:"$background",transition:"transform 250ms ease 0ms, opacity 200ms ease-in 0ms",width:"100%",height:"100%",objectFit:"cover"},'&[data-state="ready"] .nextui-avatar-img':{opacity:1},".nextui-avatar-icon":{display:"flex",position:"absolute",left:"50%",top:"50%",ta:"center",zIndex:"$2",transform:"translate(-50%, -50%)",whiteSpace:"nowrap",us:"none"},".nextui-avatar-text":{position:"absolute",zIndex:"$2",left:"50%",top:"50%",ta:"center",color:"$text",fontWeight:"$medium",transform:"translate(-50%, -50%) scale(0.65)",whiteSpace:"nowrap",us:"none"},"@motion":{transition:"none",".nextui-avatar-bg, .nextui-avatar-img":{transition:"none"}},variants:{color:{default:{".nextui-avatar-bg":{bg:"$accents2"}},primary:{".nextui-avatar-bg":{bg:"$primary"}},secondary:{".nextui-avatar-bg":{bg:"$secondary"}},success:{".nextui-avatar-bg":{bg:"$success"}},warning:{".nextui-avatar-bg":{bg:"$warning"}},error:{".nextui-avatar-bg":{bg:"$error"}},gradient:{".nextui-avatar-bg":{bg:"$gradient"}}},textColor:{default:{".nextui-avatar-text":{color:"$text"}},white:{".nextui-avatar-text":{color:"$white"}},primary:{".nextui-avatar-text":{color:"$primary"}},secondary:{".nextui-avatar-text":{color:"$secondary"}},success:{".nextui-avatar-text":{color:"$success"}},warning:{".nextui-avatar-text":{color:"$warning"}},error:{".nextui-avatar-text":{color:"$error"}}},size:{xs:{$$avatarXs:"$space$9",sizeMin:"$$avatarXs",".nextui-avatar-text":{fontSize:"$sm"}},sm:{$$avatarSm:"$space$11",sizeMin:"$$avatarSm",".nextui-avatar-text":{fontSize:"$md"}},md:{$$avatarMd:"$space$14",sizeMin:"$$avatarMd",".nextui-avatar-text":{fontSize:"$lg"}},lg:{$$avatarLg:"$space$16",sizeMin:"$$avatarLg",".nextui-avatar-text":{fontSize:"$xl"}},xl:{$$avatarXl:"$space$18",sizeMin:"$$avatarXl",".nextui-avatar-text":{fontSize:"$xl2"}}},borderWeight:{light:{".nextui-avatar-img":{borderWidth:"$light"}},normal:{".nextui-avatar-img":{borderWidth:"$normal"}},bold:{".nextui-avatar-img":{borderWidth:"$normal"}},extrabold:{".nextui-avatar-img":{borderWidth:"$normal"}},black:{".nextui-avatar-img":{borderWidth:"$normal"}}},bordered:{true:{"&:hover:not(.only-text-avatar) .nextui-avatar-bg":{opacity:"0.6"},".nextui-avatar-img":{borderStyle:"solid",borderColor:"$background"}}},stacked:{true:{ml:"-$5"}},pointer:{true:{cursor:"pointer"}},rounded:{true:{borderRadius:"$rounded",".nextui-avatar-img":{borderRadius:"$rounded"}}},squared:{true:{borderRadius:"$squared",".nextui-avatar-img":{borderRadius:"$squared"}}},zoomed:{true:{"&:hover .nextui-avatar-img":{transform:"scale(1.125)"}}}},compoundVariants:[{bordered:!0,borderWeight:"light",css:{padding:"calc($1/2)"}},{bordered:!0,borderWeight:"normal",css:{padding:"$1"}},{bordered:!0,borderWeight:"bold",css:{padding:"calc($2/1.5)"}},{bordered:!0,borderWeight:"extrabold",css:{padding:"$2"}},{bordered:!0,borderWeight:"black",css:{padding:"calc($3/1.5)"}},{rounded:!0,squared:!0,css:{borderRadius:"$squared",".nextui-avatar-img":{borderRadius:"$squared"}}}],defaultVariants:{size:"md",rounded:!0,color:"default",textColor:"default",borderWeight:"normal"}},tl,nl),zl=Bl,Hl=e=>(null==e?void 0:e.length)<=4?e:null==e?void 0:e.slice(0,3),Dl=m().forwardRef(((e,t)=>{const{as:r,src:o,css:n,text:i,icon:s,alt:a,className:l,...c}=e,d=Al(t),u=!o,[p,h]=(0,g.useState)(!1),m=(0,g.useRef)(null),{isFocusVisible:f,focusProps:b}=El();(0,g.useEffect)((()=>{var e;(null==m||null==(e=m.current)?void 0:e.complete)&&h(!0)}),[]);const $=(0,g.useMemo)((()=>!p&&o?"loading":"ready"),[o,p]);return(0,St.jsxs)(zl,{ref:d,as:r,...$n(c,b),className:wt({"only-text-avatar":u},l),"data-state":$,isFocusVisible:f,css:$n("button"===r?{appearance:"none",outline:"none",border:"none",cursor:"pointer"}:{},n),children:[(0,St.jsx)("span",{className:"nextui-avatar-bg"}),!u&&(0,St.jsx)("img",{ref:m,className:wt("nextui-avatar-img",`nextui-avatar--${$}`,{"nextui-avatar-ready":p}),src:o,alt:a,"data-state":$,onLoad:()=>h(!0)}),u&&!s&&i&&(0,St.jsx)("span",{className:"nextui-avatar-text",children:Hl(i)}),s&&(0,St.jsx)("span",{className:"nextui-avatar-icon",children:s})]})}));Dl.toString=()=>".nextui-avatar";const Ol=Dl,Kl=Oe("span",{fontSize:"$xs",display:"inline-flex",alignItems:"center",marginLeft:"$3",color:"$text"}),Fl=Oe("div",{dflex:"center",height:"auto",width:"max-content","@motion":{transition:"none"},[`& ${zl}`]:{marginLeft:"-$space$5",transition:"$default",".only-text-avatar":{boxShadow:"$xs"}},".only-text-avatar":{boxShadow:"$xs"},variants:{animated:{true:{[`& ${zl}:hover`]:{transform:"translate(-$space$5)"}}}},defaultVariants:{animated:!0}}),jl=Fl,_l=m().forwardRef(((e,t)=>{const{count:r,children:o,...n}=e,i=Al(t);return(0,St.jsxs)(jl,{ref:i,...n,children:[o,r&&(0,St.jsxs)(Kl,{className:"nextui-avatar-group-count",children:["+",r]})]})}));_l.toString=()=>".nextui-avatar-group";const Wl=_l;Ol.Group=Wl;const Vl=Ol;function Ul(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Gl(e,t){let r,{elementType:o="button",isDisabled:n,onPress:i,onPressStart:s,onPressEnd:a,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:u,href:p,target:h,rel:g,type:m="button"}=e;r="button"===o?{type:m,disabled:n}:{role:"button",tabIndex:n?void 0:0,href:"a"===o&&n?void 0:p,target:"a"===o?h:void 0,type:"input"===o?m:void 0,disabled:"input"===o?n:void 0,"aria-disabled":n&&"input"!==o?n:void 0,rel:"a"===o?g:void 0};let{pressProps:f,isPressed:b}=Mi({onPressStart:s,onPressEnd:a,onPressChange:l,onPress:i,isDisabled:n,preventFocusOnPress:c,ref:t}),{focusableProps:$}=Rl(e,t);d&&($.tabIndex=n?-1:$.tabIndex);let y=$n($,f,Sn(e,{labelable:!0}));return{isPressed:b,buttonProps:$n(r,y,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{u&&(u(e),console.warn("onClick is deprecated, please use onPress"))}})}}function Jl(e,t,r){const{isSelected:o}=t,{isPressed:n,buttonProps:i}=Gl({...e,onPress:bn(t.toggle,e.onPress)},r);return{isPressed:n,buttonProps:$n(i,{"aria-pressed":o})}}Ul({},"useButton",(()=>Gl)),Ul({},"useToggleButton",(()=>Jl));const Yl={isButtonGroup:!1,disabled:!1},Xl=m().createContext(Yl),ql=Oe("span",{dflex:"center",position:"absolute",left:"$$buttonPadding",right:"auto",top:"50%",transform:"translateY(-50%)",color:"inherit",zIndex:"$1","& svg":{background:"transparent"},variants:{isAuto:{true:{position:"relative",transform:"none",top:"0%"}},isRight:{true:{right:"$$buttonPadding",left:"auto"}},isSingle:{true:{position:"static",transform:"none"}},isGradientButtonBorder:{true:{}}},compoundVariants:[{isAuto:!0,isRight:!0,isSingle:!1,css:{order:2,ml:"calc($$buttonPadding / 2)",right:"0%",left:"0%"}},{isAuto:!0,isRight:!1,isSingle:!1,css:{order:0,mr:"calc($$buttonPadding / 2)",right:"0%",left:"0%"}},{isSingle:!0,isRight:!1,css:{ml:0}},{isSingle:!0,isRight:!0,css:{mr:0}},{isSingle:!0,isRight:!1,isGradientButtonBorder:!0,css:{mr:"calc($$buttonPadding / 2)"}}]}),Zl=({children:e,className:t,css:r,...o})=>(0,St.jsx)(ql,{className:wt("nextui-button-icon",{"nextui-button-icon-right":o.isRight,"nextui-button-icon-single":o.isSingle},t),css:{...r},...o,children:e});Zl.toString=()=>".nextui-button-icon";const Ql=vt(m().memo(Zl),{className:""}),ec=Oe("button",{$$buttonBorderRadius:"$radii$md",$$buttonPressedScale:.97,dflex:"center",appearance:"none",boxSizing:"border-box",fontWeight:"$medium",us:"none",lineHeight:"$sm",ta:"center",whiteSpace:"nowrap",transition:"$button",position:"relative",overflow:"hidden",border:"none",cursor:"pointer",pe:"auto",p:0,br:"$$buttonBorderRadius","@motion":{transition:"none"},".nextui-button-text":{dflex:"center",zIndex:"$2","p, pre, div":{margin:0}},[`& ${kt}`]:{zIndex:"$1",".nextui-drip-filler":{opacity:.25,fill:"$accents2"}},variants:{bordered:{true:{bg:"transparent",borderStyle:"solid",color:"$text"}},ghost:{true:{}},color:{default:{bg:"$primary",color:"$primarySolidContrast"},primary:{bg:"$primary",color:"$primarySolidContrast"},secondary:{bg:"$secondary",color:"$secondarySolidContrast"},success:{bg:"$success",color:"$successSolidContrast"},warning:{bg:"$warning",color:"$warningSolidContrast"},error:{bg:"$error",color:"$errorSolidContrast"},gradient:{bg:"$gradient",color:"$primarySolidContrast"}},size:{xs:{$$buttonPadding:"$space$3",$$buttonBorderRadius:"$radii$xs",$$buttonHeight:"$space$10",px:"$3",height:"$$buttonHeight",lh:"$space$10",width:"auto",minWidth:"$20",fontSize:"$xs"},sm:{$$buttonPadding:"$space$5",$$buttonBorderRadius:"$radii$sm",$$buttonHeight:"$space$12",px:"$5",height:"$$buttonHeight",lh:"$space$14",width:"auto",minWidth:"$36",fontSize:"$sm"},md:{$$buttonPadding:"$space$7",$$buttonBorderRadius:"$radii$md",$$buttonHeight:"$space$14",px:"$7",height:"$$buttonHeight",lh:"$space$14",width:"auto",minWidth:"$48",fontSize:"$sm"},lg:{$$buttonPadding:"$space$9",$$buttonBorderRadius:"$radii$base",$$buttonHeight:"$space$16",px:"$9",height:"$$buttonHeight",lh:"$space$15",width:"auto",minWidth:"$60",fontSize:"$md"},xl:{$$buttonPadding:"$space$10",$$buttonBorderRadius:"$radii$xl",$$buttonHeight:"$space$18",px:"$10",height:"$$buttonHeight",lh:"$space$17",width:"auto",minWidth:"$72",fontSize:"$lg"}},borderWeight:{light:{bw:"$light",$$buttonBorderWeight:"$borderWeights$light"},normal:{bw:"$normal",$$buttonBorderWeight:"$borderWeights$normal"},bold:{bw:"$bold",$$buttonBorderWeight:"$borderWeights$bold"},extrabold:{bw:"$extrabold",$$buttonBorderWeight:"$borderWeights$extrabold"},black:{bw:"$black",$$buttonBorderWeight:"$borderWeights$black"}},flat:{true:{color:"$text"}},light:{true:{bg:"transparent",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$accents2"}}}},shadow:{true:{bs:"$sm"}},animated:{false:{transition:"none"}},auto:{true:{width:"auto",minWidth:"min-content"}},rounded:{true:{$$buttonBorderRadius:"$radii$pill"}},isPressed:{true:{}},isHovered:{true:{}},isChildLess:{true:{p:0,width:"$$buttonHeight",height:"$$buttonHeight"}}},compoundVariants:[{isPressed:!0,animated:!0,css:{transform:"scale($$buttonPressedScale)"}},{auto:!0,isChildLess:!1,size:"xs",css:{px:"$5",minWidth:"min-content"}},{auto:!0,isChildLess:!1,size:"sm",css:{px:"$8",minWidth:"min-content"}},{auto:!0,isChildLess:!1,size:"md",css:{px:"$9",minWidth:"min-content"}},{auto:!0,isChildLess:!1,size:"lg",css:{px:"$10",minWidth:"min-content"}},{auto:!0,isChildLess:!1,size:"xl",css:{px:"$11",minWidth:"min-content"}},{shadow:!0,color:"default",css:{normalShadow:"$primaryShadow"}},{shadow:!0,color:"primary",css:{normalShadow:"$primaryShadow"}},{shadow:!0,color:"secondary",css:{normalShadow:"$secondaryShadow"}},{shadow:!0,color:"warning",css:{normalShadow:"$warningShadow"}},{shadow:!0,color:"success",css:{normalShadow:"$successShadow"}},{shadow:!0,color:"error",css:{normalShadow:"$errorShadow"}},{shadow:!0,color:"gradient",css:{normalShadow:"$primaryShadow"}},{light:!0,color:"default",css:{bg:"transparent",color:"$text",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$primaryLightActive"}}}},{light:!0,color:"primary",css:{bg:"transparent",color:"$primary",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$primaryLightActive"}}}},{light:!0,color:"secondary",css:{bg:"transparent",color:"$secondary",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$secondaryLightActive"}}}},{light:!0,color:"warning",css:{bg:"transparent",color:"$warning",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$warningLightActive"}}}},{light:!0,color:"success",css:{bg:"transparent",color:"$success",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$successLightActive"}}}},{light:!0,color:"error",css:{bg:"transparent",color:"$error",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$errorLightActive"}}}},{bordered:!0,color:"default",css:{bg:"transparent",borderColor:"$primary",color:"$primary",[`& ${kt}`]:{".nextui-drip-filler":{fill:"$primary"}}}},{bordered:!0,color:"primary",css:{bg:"transparent",borderColor:"$primary",color:"$primary",[`& ${kt}`]:{".nextui-drip-filler":{fill:"$primary"}}}},{bordered:!0,color:"secondary",css:{bg:"transparent",borderColor:"$secondary",color:"$secondary",[`& ${kt}`]:{".nextui-drip-filler":{fill:"$secondary"}}}},{bordered:!0,color:"success",css:{bg:"transparent",borderColor:"$success",color:"$success",[`& ${kt}`]:{".nextui-drip-filler":{fill:"$success"}}}},{bordered:!0,color:"warning",css:{bg:"transparent",borderColor:"$warning",color:"$warning",[`& ${kt}`]:{".nextui-drip-filler":{fill:"$warning"}}}},{bordered:!0,color:"error",css:{bg:"transparent",borderColor:"$error",color:"$error",[`& ${kt}`]:{".nextui-drip-filler":{fill:"$error"}}}},{bordered:!0,color:"gradient",css:{bg:"transparent",color:"$text",padding:"$$buttonBorderWeight",bgClip:"content-box, border-box",borderColor:"$primary",backgroundImage:"linear-gradient($background, $background), $gradient",border:"none",[`& ${kt}`]:{".nextui-drip-filler":{fill:"$secondary"}}}},{ghost:!0,isHovered:!0,color:"default",css:{bg:"$primary",color:"$primarySolidContrast"}},{ghost:!0,isHovered:!0,color:"primary",css:{bg:"$primary",color:"$primarySolidContrast"}},{ghost:!0,isHovered:!0,color:"secondary",css:{bg:"$secondary",color:"$secondarySolidContrast"}},{ghost:!0,isHovered:!0,color:"success",css:{bg:"$success",color:"$successSolidContrast"}},{ghost:!0,isHovered:!0,color:"warning",css:{bg:"$warning",color:"$warningSolidContrast"}},{ghost:!0,isHovered:!0,color:"error",css:{bg:"$error",color:"$errorSolidContrast"}},{ghost:!0,color:"gradient",isHovered:!0,css:{bg:"$gradient",color:"$white"}},{flat:!0,color:"default",css:{bg:"$primaryLight",color:"$primaryLightContrast",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$primary"}}}},{flat:!0,color:"primary",css:{bg:"$primaryLight",color:"$primaryLightContrast",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$primary"}}}},{flat:!0,color:"secondary",css:{bg:"$secondaryLight",color:"$secondaryLightContrast",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$secondary"}}}},{flat:!0,color:"success",css:{bg:"$successLight",color:"$successLightContrast",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$success"}}}},{flat:!0,color:"warning",css:{bg:"$warningLight",color:"$warningLightContrast",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$warning"}}}},{flat:!0,color:"error",css:{bg:"$errorLight",color:"$errorLightContrast",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$error"}}}},{flat:!0,isHovered:!0,color:"default",css:{bg:"$primaryLightHover"}},{flat:!0,isHovered:!0,color:"primary",css:{bg:"$primaryLightHover"}},{flat:!0,isHovered:!0,color:"secondary",css:{bg:"$secondaryLightHover"}},{flat:!0,isHovered:!0,color:"success",css:{bg:"$successLightHover"}},{flat:!0,isHovered:!0,color:"warning",css:{bg:"$warningLightHover"}},{flat:!0,isHovered:!0,color:"error",css:{bg:"$errorLightHover"}},{flat:!0,isPressed:!0,color:"default",css:{bg:"$primaryLightActive"}},{flat:!0,isPressed:!0,color:"primary",css:{bg:"$primaryLightActive"}},{flat:!0,isPressed:!0,color:"secondary",css:{bg:"$secondaryLightActive"}},{flat:!0,isPressed:!0,color:"success",css:{bg:"$successLightActive"}},{flat:!0,isPressed:!0,color:"warning",css:{bg:"$warningLightActive"}},{flat:!0,isPressed:!0,color:"error",css:{bg:"$errorLightActive"}},{auto:!0,color:"gradient",bordered:!0,css:{".nextui-button-text":{px:"$$buttonPadding"},".nextui-button-icon":{ml:"$$buttonPadding"},".nextui-button-icon-right":{mr:"$$buttonPadding"},".nextui-button-text-left":{pl:0},".nextui-button-text-right":{pr:0}}},{rounded:!0,size:"xs",css:{br:"$pill"}},{rounded:!0,size:"sm",css:{br:"$pill"}},{rounded:!0,size:"md",css:{br:"$pill"}},{rounded:!0,size:"lg",css:{br:"$pill"}},{rounded:!0,size:"xl",css:{br:"$pill"}}],defaultVariants:{color:"default",borderWeight:"normal",animated:!0,size:"md"}},tl,nl),tc=ec,rc=m().forwardRef((({onClick:e,onPress:t,as:r,css:o,iconLeftCss:n,iconRightCss:i,...s},a)=>{const l=((e,t)=>{var r,o,n,i,s,a,l,c,d,u,p;return t.isButtonGroup?{...e,auto:!0,shadow:!1,bordered:null!=(r=t.bordered)?r:e.bordered,borderWeight:null!=(o=t.borderWeight)?o:e.borderWeight,ghost:null!=(n=t.ghost)?n:e.ghost,ripple:null!=(i=t.ripple)?i:e.ripple,flat:null!=(s=t.flat)?s:e.flat,animated:null!=(a=t.animated)?a:e.animated,rounded:null!=(l=t.rounded)?l:e.rounded,light:null!=(c=t.light)?c:e.light,size:null!=(d=t.size)?d:e.size,color:null!=(u=t.color)?u:e.color,disabled:null!=(p=t.disabled)?p:e.disabled}:e})(s,m().useContext(Xl)),c=(e=>{if(!e.disabled)return e.auto&&"gradient"===e.color&&(e.bordered||e.ghost)?{px:"$$buttonBorderWeight",py:"$$buttonBorderWeight"}:{};const t={bg:"$accents1",color:"$accents7",transform:"none",boxShadow:"none",pe:"none"};return e.bordered||e.flat||e.ghost||e.light?"gradient"===e.color&&(e.bordered||e.ghost)?{color:"$accents4",backgroundImage:"linear-gradient($background, $background), linear-gradient($accents2, $accents2)",transform:"none",boxShadow:"none",pe:"none",pl:"$$buttonBorderWeight",pr:"$$buttonBorderWeight"}:e.bordered||e.ghost||e.light?{...t,bg:"transparent",borderColor:"$accents4"}:e.flat?{...t,bg:"$accents1"}:{}:t})(l),{flat:d,children:u,disabled:p,animated:h,light:f,ripple:b,bordered:$,auto:y,borderWeight:v,icon:x,iconRight:w,ghost:S,autoFocus:C,className:k,...E}=l,P=e=>{h&&b&&T.current&&z(e)},T=Al(a),{buttonProps:I,isPressed:N}=Gl({...s,onClick:t=>{P(t),null==e||e(t)},isDisabled:p,elementType:r,onPress:r=>{"keyboard"!==r.pointerType&&"virtual"!==r.pointerType||(P(r),null==e||e(r)),null==t||t(r)}},T),{hoverProps:M,isHovered:R}=gs({isDisabled:p}),{isFocused:A,isFocusVisible:L,focusProps:B}=El({autoFocus:C}),{onClick:z,...H}=yt(!1,T),D=x||w,O=0===m().Children.count(u),K=Boolean(w),F=(0,g.useMemo)((()=>N?"pressed":R?"hovered":p?"disabled":"ready"),[p,R,N]),j=(0,g.useMemo)((()=>K?i:n),[K,i,n]);return(0,St.jsxs)(tc,{as:r,ref:T,borderWeight:v,auto:y,flat:d,light:f,ghost:S,bordered:$||S,"data-state":F,animated:h,isChildLess:O,isPressed:N,isHovered:R||S&&A,isFocusVisible:L&&!p,className:wt("nextui-button",`nextui-button--${F}`,k),css:{...o,...c},...$n(I,B,M,E),children:[0===m().Children.count(u)?(0,St.jsx)(Ql,{isSingle:!0,isAuto:y,isRight:K,css:j,isGradientButtonBorder:"gradient"===E.color&&($||S),children:D}):D?(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)(Ql,{isSingle:!1,isAuto:y,isRight:K,css:j,isGradientButtonBorder:"gradient"===E.color&&($||S),children:D}),(0,St.jsx)("div",{className:wt("nextui-button-text",{"nextui-button-text-right":K,"nextui-button-text-left":!K}),children:u})]}):(0,St.jsx)("span",{className:"nextui-button-text",children:u}),(0,St.jsx)(Pt,{color:"white",...H})]})}));rc.toString=()=>".nextui-button";const oc=vt(rc,{ghost:!1,bordered:!1,ripple:!0,animated:!0,disabled:!1,autoFocus:!1,auto:!1,className:"",type:"button"}),nc=Oe("div",{display:"inline-flex",margin:"$3",backgroundColor:"transparent",height:"min-content",[`& ${tc}`]:{".nextui-button-text":{top:0}},variants:{vertical:{true:{fd:"column",[`& ${tc}`]:{"&:not(:first-child)":{btlr:0,btrr:0},"&:not(:last-child)":{bblr:0,bbrr:0}}},false:{fd:"row",[`& ${tc}`]:{"&:not(:first-child)":{btlr:0,bblr:0},"&:not(:last-child)":{btrr:0,bbrr:0}}}},size:{xs:{br:"$xs"},sm:{br:"$sm"},md:{br:"$md"},lg:{br:"$base"},xl:{br:"$xl"}},rounded:{true:{br:"$pill"}},bordered:{true:{bg:"transparent"}},gradient:{true:{pl:0}}},defaultVariants:{vertical:!1},compoundVariants:[{bordered:!0,vertical:!0,css:{[`& ${tc}`]:{"&:not(:last-child)":{borderBottom:"none",paddingBottom:"0"}}}},{bordered:!0,vertical:!1,css:{[`& ${tc}`]:{"&:not(:first-child)":{borderLeft:"none"}}}},{bordered:!0,vertical:!1,gradient:!0,css:{[`& ${tc}`]:{"&:not(:last-child)&:not(:first-child)":{pl:0},"&:last-child":{pl:0}}}}]}),ic=nc,sc=e=>{const{disabled:t,size:r,color:o,bordered:n,ghost:i,light:s,flat:a,shadow:l,auto:c,animated:d,rounded:u,ripple:p,borderWeight:h,children:m,...f}=e,b=(0,g.useMemo)((()=>({disabled:t,size:r,color:o,bordered:n,light:s,ghost:i,flat:a,shadow:l,auto:c,borderWeight:h,animated:d,rounded:u,ripple:p,isButtonGroup:!0})),[t,d,r,p,o,n,s,i,a,h]);return(0,St.jsx)(Xl.Provider,{value:b,children:(0,St.jsx)(ic,{size:r,bordered:n||i,gradient:"gradient"===e.color,...f,children:m})})};sc.toString=()=>".nextui-button-group";const ac=vt(m().memo(sc),{borderWeight:"normal",size:"md",color:"default"});oc.Group=ac;const lc=oc,cc=Oe("div",{d:"flex",w:"100%",h:"auto",flex:"1 1 auto",fd:"column",jc:"inherit",ai:"inherit",ac:"inherit",py:"$lg",px:"$sm",oy:"auto",position:"relative",ta:"left"}),dc=Oe("div",{$$cardColor:"$colors$backgroundContrast",$$cardTextColor:"$colors$text",m:0,p:0,br:"$lg",bg:"$$cardColor",color:"$$cardTextColor",position:"relative",display:"flex",overflow:"hidden",fd:"column",width:"100%",height:"auto",boxSizing:"border-box","@motion":{transition:"none"},".nextui-image":{width:"100%"},[`& ${kt}`]:{zIndex:"$1",".nextui-drip-filler":{opacity:.25,fill:"$accents6"}},variants:{variant:{flat:{bg:"$accents0"},shadow:{dropShadow:"$lg"},bordered:{borderStyle:"solid",borderColor:"$border"}},borderWeight:{light:{bw:"$light"},normal:{bw:"$normal"},bold:{bw:"$bold"},extrabold:{bw:"$extrabold"},black:{bw:"$black"}},disableAnimation:{true:{transition:"none"},false:{transition:"$card"}},isPressable:{true:{cursor:"pointer",us:"none",WebkitTapHighlightColor:"transparent"}},isPressed:{true:{}},isHovered:{true:{dropShadow:"$lg"}}},compoundVariants:[{isPressed:!0,disableAnimation:!1,css:{transform:"scale(0.97)"}},{isHovered:!0,disableAnimation:!1,css:{transform:"translateY(-2px)"}},{isHovered:!0,variant:"shadow",css:{dropShadow:"$xl"}}]},rl,tl),uc=Oe("div",{w:"100%",display:"flex",flexShrink:0,zIndex:"$1",jc:"flex-start",ai:"center",overflow:"hidden",color:"inherit",p:"$sm"}),pc=Oe("div",{w:"100%",h:"auto",p:"$sm",d:"flex",ai:"center",overflow:"hidden",color:"inherit",bblr:"$lg",bbrr:"$lg",variants:{isBlurred:{true:{bf:"saturate(180%) blur(10px)",bg:"$$cardColor"}}}}),hc=m().forwardRef((({...e},t)=>{const{as:r,css:o,children:n,...i}=e,{cardRef:s,variant:a,isFocusVisible:l,isPressable:c,isPressed:d,disableAnimation:u,disableRipple:p,borderWeight:h,isHovered:g,pressProps:m,focusProps:f,hoverProps:b,dripBindings:$}=(e=>{const{ref:t,disableAnimation:r=!1,disableRipple:o=!1,variant:n="shadow",isHoverable:i=!1,borderWeight:s="light",isPressable:a=!1,onClick:l,onPress:c,autoFocus:d,...u}=e,p=Al(t),{onClick:h,...g}=yt(!1,p),m=e=>{r||o||!p.current||h(e)},{isPressed:f,pressProps:b}=Mi({isDisabled:!a,onPress:e=>{"keyboard"!==e.pointerType&&"virtual"!==e.pointerType||(m(e),null==l||l(e)),null==c||c(e)},...u}),{hoverProps:$,isHovered:y}=gs({isDisabled:!i,...u}),{isFocusVisible:v,focusProps:x}=El({autoFocus:d});return b.onClick=e=>{a&&(m(e),null==l||l(e))},{cardRef:p,variant:n,borderWeight:s,isPressable:a,isHovered:y,isPressed:f,disableAnimation:r,disableRipple:o,pressProps:b,hoverProps:$,dripBindings:g,focusProps:x,onDripClickHandler:h,isFocusVisible:v,...u}})({...i,ref:t});return(0,St.jsxs)(dc,{ref:s,as:r,css:o,variant:a,role:c?"button":"section",borderWeight:h,disableAnimation:u,isPressable:c,isPressed:d,isHovered:g,tabIndex:c?0:-1,isFocusVisible:l,...$n(m,f,b,i),children:[c&&!u&&!p&&(0,St.jsx)(Pt,{...$}),n]})}));hc.toString=()=>".nextui-card";const gc=hc,mc=je({"0%":{backgroundPosition:"200% 0"},to:{backgroundPosition:"-200% 0"}}),fc=Oe("div",{opacity:0,margin:"0 auto",position:"relative",overflow:"hidden",maxWidth:"100%",transition:"transform 250ms ease 0ms, opacity 200ms ease-in 0ms","@motion":{transition:"none"},variants:{ready:{true:{opacity:1},false:{opacity:0}}}}),bc=Oe("img",{size:"100%",display:"block"}),$c=Oe("div",{position:"absolute",top:0,left:0,right:0,bottom:0,size:"100%",borderRadius:"inherit",backgroundImage:"linear-gradient(270deg, $colors$accents1, $colors$accents2, $colors$accents2, $colors$accents1)",backgroundSize:"400% 100%",animation:`${mc} 5s ease-in-out infinite`,transition:"opacity 300ms ease-out"}),yc=m().memo((({opacity:e,css:t,className:r,...o})=>(0,St.jsx)($c,{css:{opacity:e,...t},className:wt("nextui-image-skeleton",r),...o})));yc.toString=()=>".nextui-image-skeleton";const vc=vt(yc,{opacity:.5,className:""}),xc=m().forwardRef(((e,t)=>{const{src:r,width:o,height:n,showSkeleton:i=!0,className:s,maxDelay:a=3e3,autoResize:l=!1,objectFit:c="scale-down",containerCss:d,css:u,...p}=e,h=Al(t),[m,b]=(0,g.useState)(!0),[v,x]=(0,g.useState)(i),{w,h:S}=(0,g.useMemo)((()=>({w:o?"number"==typeof o?`${o}px`:o:"auto",h:n?"number"==typeof n?`${n}px`:n:"auto"})),[o,n]),[C,k,E]=f(S),[P,T]=$(h),I=i&&!!o&&!!n;(0,g.useEffect)((()=>{h.current&&h.current.complete&&(b(!1),x(!1))})),(0,g.useEffect)((()=>{const e=setTimeout((()=>{I&&x(!1),clearTimeout(e)}),a);return()=>clearTimeout(e)}),[m]),(0,g.useEffect)((()=>{if(!l)return;const e=0===P.width,t="auto"===E.current;!e&&o&&n&&(P.width<o?!t&&k("auto"):t&&k(S))}),[P,o]),y((()=>{l&&T()}));const N=(0,g.useMemo)((()=>m?"loading":"ready"),[m]);return(0,St.jsxs)(fc,{className:wt("nextui-image-container",`nextui-image--${N}`,s),"data-state":N,ready:!m||v,css:{width:w,height:C,...d},children:[v&&(0,St.jsx)(vc,{opacity:1}),(0,St.jsx)(bc,{ref:h,className:"nextui-image",width:o,height:n,onLoad:()=>{b(!1)},src:r,"data-state":N,alt:e.alt||"",css:{objectFit:c,...u},...p})]})}));xc.toString=()=>".nextui-image";const wc=m().memo(xc),Sc=e=>`calc(${15.25*e}pt + 1px * ${e-1})`,Cc=Oe("div",{width:"100%",maxWidth:"100%",position:"relative",variants:{color:{default:{bg:"$border"},primary:{bg:"$primary"},secondary:{bg:"$secondary"},success:{bg:"$success"},warning:{bg:"$warning"},error:{bg:"$error"}}},defaultVariants:{color:"default"}}),kc=Oe("span",{position:"absolute",left:"50%",top:"50%",minHeight:"100%",display:"inline-flex",jc:"center",ai:"center",transform:"translate(-50%, -50%)",padding:"0 $lg",fontSize:"$base",fontWeight:"bold",textTransform:"capitalize",backgroundColor:"$background",zIndex:"$1",variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}}}}),Ec=({height:e,x:t,y:r,align:o,children:n,textColor:i,css:s,...a})=>{const l=(0,g.useMemo)((()=>o&&"center"!==o?"left"===o||"start"===o?{transform:"translateY(-50%)",left:"7%"}:{transform:"translateY(-50%)",left:"auto",right:"7%"}:""),[o]),c=r?Sc(r/2):0,d=t?Sc(t/2):0;return(0,St.jsx)(Cc,{role:"separator",css:{margin:`${c} ${d}`,height:`calc(${e} * 1px)`,...s},...a,children:n&&(0,St.jsx)(kc,{css:{...l},color:i,className:"nextui-divider-text",children:n})})};Ec.toString=()=>".nextui-divider";const Pc=vt(m().memo(Ec),{x:0,y:0,height:1,align:"center"});gc.Header=uc,gc.Body=cc,gc.Footer=pc,gc.Image=wc,gc.Divider=Pc;const Tc=gc;function Ic(e={}){let{isReadOnly:t}=e,[r,o]=nn(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:r,setSelected:function(e){t||o(e)},toggle:function(){t||o(!r)}}}function Nc(e,t,r){let{isDisabled:o=!1,isRequired:n,isReadOnly:i,value:s,name:a,children:l,"aria-label":c,"aria-labelledby":d,validationState:u="valid"}=e;null!=l||null!=c||null!=d||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:p}=Mi({isDisabled:o}),{focusableProps:h}=Rl(e,r),g=$n(p,h);return{inputProps:$n(Sn(e,{labelable:!0}),{"aria-invalid":"invalid"===u||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,"aria-required":n||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:o,value:s,name:a,type:"checkbox",...g})}}function Mc(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Rc(e){let{id:t,label:r,"aria-labelledby":o,"aria-label":n,labelElementType:i="label"}=e;t=gn(t);let s=gn(),a={};return r?(o=o?`${o} ${s}`:s,a={id:s,htmlFor:"label"===i?t:void 0}):o||n||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:a,fieldProps:Bn({id:t,"aria-label":n,"aria-labelledby":o})}}function Ac(e){let{description:t,errorMessage:r,validationState:o}=e,{labelProps:n,fieldProps:i}=Rc(e),s=fn([Boolean(t),Boolean(r),o]),a=fn([Boolean(t),Boolean(r),o]);return i=$n(i,{"aria-describedby":[s,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:n,fieldProps:i,descriptionProps:{id:s},errorMessageProps:{id:a}}}function Lc(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Bc(e,t,r){let{inputProps:o}=Nc(e,t,r),{isSelected:n}=t,{isIndeterminate:i}=e;return(0,g.useEffect)((()=>{r.current&&(r.current.indeterminate=i)})),{inputProps:{...o,checked:n,"aria-checked":i?"mixed":n}}}Object.defineProperty({},"useToggleState",{get:()=>Ic,set:void 0,enumerable:!0,configurable:!0}),Object.defineProperty({},"useToggle",{get:()=>Nc,set:void 0,enumerable:!0,configurable:!0}),Mc({},"useField",(()=>Ac)),Mc({},"useLabel",(()=>Rc)),Lc({},"useCheckbox",(()=>Bc)),Lc({},"useCheckboxGroup",(()=>Hc));const zc=new WeakMap;function Hc(e,t){let{isDisabled:r,name:o}=e,{labelProps:n,fieldProps:i}=Rc({...e,labelElementType:"span"}),s=Sn(e,{labelable:!0});return zc.set(t,o),{groupProps:$n(s,{role:"group","aria-disabled":r||void 0,...i}),labelProps:n}}function Dc(e,t,r){const o=Ic({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(r){r?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(r)}});let{inputProps:n}=Bc({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||zc.get(t)},o,r);return{inputProps:n}}function Oc(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,n=g.createContext(void 0);return n.displayName=o,[n.Provider,function e(){const o=g.useContext(n);if(!o&&t){const t=new Error(r);throw t.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(t,e),t}return o},n]}Lc({},"useCheckboxGroupItem",(()=>Dc));const[Kc,Fc]=Oc({name:"CheckboxGroupContext",strict:!1}),jc=Oe("label",{d:"inline-flex",jc:"flex-start",ai:"center",position:"relative",w:"auto",cursor:"pointer",zIndex:"$1",opacity:1,transition:"opacity 0.25s ease",$$checkboxBorderColor:"$colors$border","@motion":{transition:"none"},variants:{size:{xs:{$$checkboxSize:"$space$7"},sm:{$$checkboxSize:"$space$8"},md:{$$checkboxSize:"$space$9"},lg:{$$checkboxSize:"$space$10"},xl:{$$checkboxSize:"$space$11"}},isDisabled:{true:{opacity:.75,cursor:"not-allowed"}},disableAnimation:{true:{transition:"none"}}},defaultVariants:{size:"md"}}),_c=Oe("div",{content:"",background:"transparent",position:"absolute",width:"8px",height:"1px",br:"5px",zIndex:"$1",bottom:"0px","&:after":{content:"",position:"absolute",left:"0px",width:"0%",height:"2px",background:"$white",br:"5px 0px 0px 5px"},"@motion":{"&:after":{transition:"none"}},variants:{isIndeterminate:{true:{display:"none"}},isChecked:{true:{"&:after":{width:"100%",transition:"width 0.25s ease 0.1s"}}},disableAnimation:{true:{"&:after":{transition:"none"}}}},compoundVariants:[{isChecked:!0,disableAnimation:!0,css:{"&:after":{transition:"none"}}}]}),Wc=Oe("div",{content:"",position:"absolute",h:"13px",br:"5px",bottom:"0",right:"0",zIndex:"$1",background:"transparent",width:"2px","&:after":{content:"",position:"absolute",width:"2px",height:"0%",background:"$white",left:"0px",bottom:"0px",br:"5px 5px 0px 0px"},"@motion":{"&:after":{transition:"none"}},variants:{isIndeterminate:{true:{display:"none"}},isChecked:{true:{"&:after":{height:"100%",transition:"height 0.2s ease 0.3s"}}},disableAnimation:{true:{"&:after":{transition:"none"}}}},compoundVariants:[{isChecked:!0,disableAnimation:!0,css:{"&:after":{transition:"none"}}}]}),Vc=Oe("i",{size:"$$checkboxSize",dflex:"center",br:"inherit",opacity:0,zIndex:"$2",transition:"transform 0.35s ease","&:after":{content:"",opacity:0,position:"relative",width:"10px",height:"2px",br:"1px",background:"$white",display:"block"},"@motion":{transition:"none","&:after":{transition:"none"}},variants:{isIndeterminate:{true:{opacity:1,transform:"rotate(0deg)",width:"auto",height:"auto",margin:"0px","&:after":{opacity:1}},false:{width:"8px",height:"14px",display:"block",position:"relative",marginTop:"-4px"}},size:{xs:{marginTop:"-2px",transform:"rotate(45deg) scale(0.5)"},sm:{marginTop:"-2px",transform:"rotate(45deg) scale(0.5)"},md:{transform:"rotate(45deg) scale(0.8)"},lg:{transform:"rotate(45deg)"},xl:{transform:"rotate(45deg)"}},isChecked:{true:{opacity:1}},disableAnimation:{true:{transition:"none","&:after":{transition:"none"}}}},compoundVariants:[{isIndeterminate:!0,size:"xs",css:{scale:"0.5"}},{isIndeterminate:!0,size:"sm",css:{scale:"0.5"}},{isIndeterminate:!0,size:"md",css:{scale:"0.8"}},{isIndeterminate:!0,size:"lg",css:{transform:"none"}},{isIndeterminate:!0,size:"lg",css:{transform:"none"}}]}),Uc=Oe("div",{$$checkboxMaskTransition:"transform 0.25s ease 0s, opacity 0.25s ease 0s, background 0.25s ease 0s, border-color 0.25s ease 0s",size:"100%",position:"absolute",pe:"none",boxSizing:"border-box",dflex:"center",zIndex:"-$1",br:"inherit",color:"$$checkboxBorderColor","&:before":{content:"",position:"absolute",top:"0px",left:"0px",size:"100%",br:"inherit",transition:"$$checkboxMaskTransition",zIndex:"-$1",border:"$borderWeights$normal solid currentColor",boxSizing:"border-box"},"&:after":{content:"",position:"absolute",top:"0px",left:"0px",size:"100%",bg:"$$checkboxColor",scale:.5,br:"inherit",opacity:0,transition:"$$checkboxMaskTransition",zIndex:"-$1"},"@motion":{"&:before":{transition:"none"},"&:after":{transition:"none"}},variants:{isChecked:{true:{"&:before":{opacity:0,scale:1.2},"&:after":{opacity:1,scale:1}}},isIndeterminate:{true:{"&:before":{opacity:0,scale:1.2},"&:after":{opacity:1,scale:1}}},disableAnimation:{true:{"&:before":{transition:"none"},"&:after":{transition:"none"}}}}}),Gc=Oe("span",{position:"relative",dflex:"center",color:"$text",opacity:1,pl:"calc($$checkboxSize * 0.57)",ln:"$$checkboxSize",fontSize:"$$checkboxSize",us:"none",transition:"opacity 0.25s ease 0s","@motion":{transition:"none","&:before":{transition:"none"}},variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}},lineThrough:{true:{"&:before":{content:"",position:"absolute",width:"0px",height:"2px",background:"$text",transition:"width 0.25s ease 0s"}}},isChecked:{true:{"&:before":{opacity:.8}}},isDisabled:{true:{color:"$accents5"}},disableAnimation:{true:{transition:"none","&:before":{transition:"none"}}}},compoundVariants:[{lineThrough:!0,isChecked:!0,css:{opacity:.6,"&:before":{w:"calc(100% - 10px)"}}}]}),Jc=Oe("div",{br:"$squared",position:"relative",sizeMin:"$$checkboxSize",transition:"box-shadow 0.25s ease",zIndex:"$1",".nextui-checkbox-input":{position:"absolute",width:"100%",height:"100%",top:"0px",left:"0px",margin:"0px",padding:"0px",opacity:0,zIndex:"$1",cursor:"pointer","&:disabled":{cursor:"not-allowed"}},"@motion":{transition:"none"},variants:{color:{default:{$$checkboxColor:"$colors$primary",$$checkboxColorHover:"$colors$primarySolidHover"},primary:{$$checkboxColor:"$colors$primary",$$checkboxColorHover:"$colors$primarySolidHover"},secondary:{$$checkboxColor:"$colors$secondary",$$checkboxColorHover:"$colors$secondarySolidHover"},success:{$$checkboxColor:"$colors$success",$$checkboxColorHover:"$colors$successSolidHover"},warning:{$$checkboxColor:"$colors$warning",$$checkboxColorHover:"$colors$warningSolidHover"},error:{$$checkboxColor:"$colors$error",$$checkboxColorHover:"$colors$errorSolidHover"},gradient:{$$checkboxColor:"$colors$gradient",$$checkboxColorHover:"$colors$gradient"}},isRounded:{true:{br:"$pill"}},isDisabled:{true:{opacity:.4,cursor:"not-allowed"}},disableAnimation:{true:{transition:"none"}},isHovered:{true:{[`& ${Uc}:before`]:{bg:"$$checkboxBorderColor",border:"2px solid transparent"},[`& ${Uc}:after`]:{bg:"$$checkboxColorHover"}}}},defaultVariants:{color:"default"}},tl),Yc=Oe("div",{display:"flex",flexDirection:"column","& .nextui-checkbox-group-label":{d:"block",fontWeight:"$normal",fontSize:"calc($$checkboxSize * 0.8)",color:"$accents7",mb:"$3"},variants:{size:{xs:{$$checkboxSize:"$space$7"},sm:{$$checkboxSize:"$space$8"},md:{$$checkboxSize:"$space$9"},lg:{$$checkboxSize:"$space$10"},xl:{$$checkboxSize:"$space$11"}},isDisabled:{true:{"& .nextui-checkbox-group-label":{color:"$accents5"}}}}}),Xc=Oe("div",{display:"flex",flexDirection:"column",variants:{isRow:{true:{flexDirection:"row",mt:0,[`& ${jc}`]:{mr:"$$checkboxSize"}},false:{mr:0,flexDirection:"column",[`& ${jc}:not(:first-child)`]:{mt:"$$checkboxSize"}}}},defaultVariants:{isRow:!1}}),qc=m().forwardRef(((e,t)=>{const{className:r,as:o,css:n,children:i,label:s,...a}=e,{size:l,color:c,labelColor:d,isRounded:u,lineThrough:p,disableAnimation:h,isIndeterminate:m,inputRef:f,inputProps:b}=(e=>{var t,r,o;const n=Fc(),{size:i=(null!=(t=null==n?void 0:n.size)?t:"md"),color:s=(null!=(r=null==n?void 0:n.color)?r:"default"),labelColor:a=(null!=(o=null==n?void 0:n.labelColor)?o:"default"),lineThrough:l,isRounded:c=!1,disableAnimation:d=!1,isIndeterminate:u=!1,...p}=e,h=(0,g.useRef)(null),m=(0,g.useMemo)((()=>{var e,t;return{...p,isIndeterminate:u,value:null!=(e=p.value)?e:"",isRequired:null!=(t=p.isRequired)&&t}}),[u,p]),{inputProps:f}=n?Dc({...m,validationState:p.validationState},n.groupState,h):Bc(m,Ic(m),h);return{size:i,color:s,labelColor:a,isRounded:c,lineThrough:l,disableAnimation:d,isIndeterminate:u,inputRef:h,inputProps:f}})({...a,children:null!=i?i:s}),$=Ll(t,f),{hoverProps:y,isHovered:v}=gs({isDisabled:b.disabled}),{pressProps:x}=Mi({isDisabled:b.disabled}),{focusProps:w,isFocusVisible:S}=El({autoFocus:b.autoFocus}),C=(0,g.useMemo)((()=>v?"hovered":m&&b.checked?"mixed":b.checked?"checked":"uncheked"),[v,m,b.checked]);return(0,St.jsxs)(jc,{ref:$,...$n(y,x),className:wt("nextui-checkbox-label",`nextui-checkbox--${C}`,r),as:o,css:n,size:l,isDisabled:b.disabled,disableAnimation:h,children:[(0,St.jsxs)(Jc,{className:"nextui-checkbox-container",color:c,isRounded:u,isHovered:v,isDisabled:b.disabled,isFocusVisible:S,disableAnimation:h,...w,children:[(0,St.jsx)(Is,{children:(0,St.jsx)("input",{ref:f,className:"nextui-checkbox-input",...$n(b,w)})}),(0,St.jsx)(Uc,{className:"nextui-checkbox-mask",isChecked:b.checked,isIndeterminate:m,disableAnimation:h,children:(0,St.jsxs)(Vc,{className:"nextui-icon-check",size:l,isChecked:b.checked,isIndeterminate:m,disableAnimation:h,children:[(0,St.jsx)(_c,{className:"nextui-icon-check-line1",isChecked:b.checked,isIndeterminate:m,disableAnimation:h}),(0,St.jsx)(Wc,{className:"nextui-icon-check-line2",isChecked:b.checked,isIndeterminate:m,disableAnimation:h})]})})]}),(i||s)&&(0,St.jsx)(Gc,{className:"nextui-checkbox-text",color:d,lineThrough:p,isChecked:b.checked,isDisabled:b.disabled,disableAnimation:h,children:i||s})]})}));qc.toString=()=>".nextui-checkbox";const Zc=qc;function Qc(e={}){let[t,r]=nn(e.value,e.defaultValue||[],e.onChange);return{value:t,setValue(t){e.isReadOnly||e.isDisabled||r(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected:e=>t.includes(e),addValue(o){e.isReadOnly||e.isDisabled||t.includes(o)||r(t.concat(o))},removeValue(o){e.isReadOnly||e.isDisabled||t.includes(o)&&r(t.filter((e=>e!==o)))},toggleValue(o){e.isReadOnly||e.isDisabled||(t.includes(o)?r(t.filter((e=>e!==o))):r(t.concat(o)))}}}Object.defineProperty({},"useCheckboxGroupState",{get:()=>Qc,set:void 0,enumerable:!0,configurable:!0});const ed=m().forwardRef(((e,t)=>{const{children:r,className:o,as:n,label:i,...s}=e,{css:a,...l}=((e={})=>{const{size:t="md",color:r="default",labelColor:o="default",orientation:n="vertical",css:i,...s}=e,a=Qc(s),{labelProps:l,groupProps:c}=Hc(s,a);return{css:i,size:t,orientation:n,color:r,labelColor:o,groupState:a,labelProps:l,groupProps:c}})({...s,label:i}),c=Al(t);return(0,St.jsxs)(Yc,{ref:c,...l.groupProps,className:wt("nextui-checkbox-group",o),size:l.size,isDisabled:l.groupState.isDisabled,as:n,css:a,children:[i&&(0,St.jsx)("label",{className:"nextui-checkbox-group-label",...l.labelProps,children:i}),(0,St.jsx)(Xc,{className:"nextui-checkbox-group-items",role:"presentation",isRow:"horizontal"===l.orientation,children:(0,St.jsx)(Kc,{value:l,children:r})})]})}));ed.toString=()=>".nextui-checkbox-group";const td=ed;Zc.Group=td;const rd=Zc,od=Oe("code",{}),nd=Oe("pre",{width:"initial",mw:"100"}),id=({block:e,children:t,...r})=>e?(0,St.jsx)(nd,{...r,children:(0,St.jsx)(od,{children:t})}):(0,St.jsx)(od,{...r,children:t});id.toString=()=>".nextui-code";const sd=vt(m().memo(id),{block:!1}),ad=Oe("div",{float:"left",boxSizing:"border-box",pl:"calc($$rowGap / 2)",pr:"calc($$rowGap / 2)"}),ld=ad,cd=({children:e,span:t,offset:r,css:o,...n})=>(0,St.jsx)(ld,{css:{width:100/12*t+"%",marginLeft:100/12*r+"%",...o},...n,children:e});cd.toString=()=>".nextui-column";const dd=vt(m().memo(cd),{span:12,offset:0}),ud=Oe("div",{transition:"$default",".nextui-collapse-title-content":{w:"100%","h1,h2,h3,h4,h5,h6,p,span,b":{margin:0}},".nextui-collapse-title-container":{d:"flex",jc:"space-between",ai:"center"},".nextui-collapse-title":{color:"$foreground"},".nextui-collapse-subtitle":{color:"$accents7",margin:0,"*":{margin:0}},".nextui-collapse-title-content-left":{mr:"$sm"},".nextui-collapse-title-content-left, .nextui-collapse-title-content-right":{d:"flex",ai:"center"},"@motion":{transition:"none",".nextui-collapse-title-content-right ":{svg:{transition:"none"}}},variants:{shadow:{true:{border:"none",boxShadow:"$md",br:"$lg",p:"0 $lg",bg:"$backgroundContrast"}},borderWeight:{light:{$$collapseBorderWidth:"$borderWeights$light"},normal:{$$collapseBorderWidth:"$borderWeights$normal"},bold:{$$collapseBorderWidth:"$borderWeights$bold"},extrabold:{$$collapseBorderWidth:"$borderWeights$extrabold"},black:{$$collapseBorderWidth:"$borderWeights$black"}},divider:{true:{borderTop:"$$collapseBorderWidth solid $border",borderBottom:"$$collapseBorderWidth solid $border"}},bordered:{true:{br:"$lg",p:"0 $lg",border:"$$collapseBorderWidth solid $border"}},animated:{true:{".nextui-collapse-title-content-right ":{svg:{transition:"transform 200ms ease"}}},false:{transition:"none"}},visible:{true:{".nextui-collapse-title-content-right ":{svg:{transform:"rotateZ(-90deg)"}}},false:{".nextui-collapse-title-content-right":{svg:{transform:"rotateZ(0deg)"}}}}},defaultVariants:{borderWeight:"light"}},el),pd=Oe("div",{w:"100%",d:"block",ta:"left",bg:"transparent",border:"none",cursor:"pointer",outline:"none",padding:"$lg 0",variants:{disabled:{true:{cursor:"not-allowed",".nextui-collapse-title, .nextui-collapse-subtitle":{opacity:.5}}}}},tl),hd=Oe("div",{fontSize:"$base",lineHeight:"$lg",pb:"$lg","*:first-child":{mt:0},"*:last-child":{mb:0}}),gd=Oe("svg",{path:{stroke:"$accents7"}}),md=Oe("div",{width:"auto",padding:"0 $sm","div + div":{borderTop:"none"},[`& ${ud}:first-child`]:{borderTop:"none"},[`& ${ud}:last-child`]:{borderBottom:"none"},variants:{borderWeight:{light:{$$collapseGroupBorderWidth:"$borderWeights$light"},normal:{$$collapseGroupBorderWidth:"$borderWeights$normal"},bold:{$$collapseGroupBorderWidth:"$borderWeights$bold"},extrabold:{$$collapseGroupBorderWidth:"$borderWeights$extrabold"},black:{$$collapseGroupBorderWidth:"$borderWeights$black"}},shadow:{true:{br:"$lg",border:"none",boxShadow:"$md",p:"0 $lg",bg:"$backgroundContrast"}},bordered:{true:{br:"$lg",p:"0 $lg",border:"$$collapseGroupBorderWidth solid $border"}},splitted:{true:{[`& ${ud}`]:{br:"$lg",border:"none",bg:"$backgroundContrast",boxShadow:"$md",p:"0 $lg",margin:"$md 0"}}}},defaultVariants:{borderWeight:"light",shadow:!1,bordered:!1,splitted:!1}}),fd=({...e})=>(0,St.jsx)(gd,{role:"presentation",focusable:"false",className:"nextui-collapse-icon",width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,St.jsx)("path",{d:"M15.5 19l-7-7 7-7",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})});fd.toString=()=>".nextui-collapse-icon";const bd=m().memo(fd),$d=Oe("div",{p:0,m:0,h:0,opacity:0,overflow:"hidden",variants:{expanded:{true:{opacity:1}}}}),yd=vt((({isExpanded:e,delay:t,animated:r,css:o,children:n})=>{const[i,s]=(0,g.useState)(e?"auto":"0"),[a,l]=(0,g.useState)(e),c=(0,g.useRef)(null),d=(0,g.useRef)(),u=(0,g.useRef)(),p=(0,g.useRef)(),[h,m]=$(c);return(0,g.useEffect)((()=>s(`${h.height}px`)),[h.height]),(0,g.useEffect)((()=>{if(e!==a)return e||(m(),s(`${h.height}px`)),d.current=window.setTimeout((()=>{l(e),clearTimeout(d.current)}),30),e?p.current=window.setTimeout((()=>{s("auto"),clearTimeout(p.current)}),t):u.current=window.setTimeout((()=>{clearTimeout(u.current)}),t/2),()=>{clearTimeout(d.current),clearTimeout(u.current),clearTimeout(p.current)}}),[e]),(0,St.jsx)($d,{expanded:a,css:{height:a?i:"0",transition:r?`height ${t}ms ease 0ms,\n opacity ${1.5*t}ms ease 0ms;`:"none",...o},children:(0,St.jsx)("div",{ref:c,className:"nextui-expand-content",children:n})})}),{isExpanded:!1,animated:!0,delay:200}),vd={values:[]},xd=m().createContext(vd),wd="nextui-collapse",Sd=({children:e,title:t,subtitle:r,expanded:o,shadow:n,className:i,divider:s,arrowIcon:a,showArrow:l,disabled:c,onChange:d,bordered:u,contentLeft:p,preventDefault:h,animated:b,borderWeight:$,index:y,...v})=>{const[x,w,S]=f(o),{values:C,divider:k,animated:E,updateValues:P}=m().useContext(xd),{isFocusVisible:T,focusProps:I}=El();t||((e,t)=>{const r=`[Next UI]${t?` [${t}]`:" "}: ${e}`;"undefined"!=typeof console&&(st[r]||(st[r]=!0,console.warn(r)))})('"title" is required.',"Collapse"),(0,g.useEffect)((()=>{x!==o&&w(o)}),[o]),(0,g.useEffect)((()=>{if(!C.length)return;const e=!!C.find((e=>e===y));w(e)}),[C.join(",")]);const N=gn(),M=gn(),R=(0,g.useMemo)((()=>l?a||(0,St.jsx)(bd,{}):null),[a,l]),A=void 0===k?s:k,L=(0,g.useMemo)((()=>void 0===E?b:E),[E,b]),B=e=>{if(c)return;const t=!S.current;w(t),P&&P(y,t),d&&d(e,y,t)},{bindings:z}=mt((e=>{B(e)}),[ut.Enter,ut.Space],{disableGlobalEvent:!0,preventDefault:h}),H=(0,g.useMemo)((()=>x?"open":"closed"),[x]);return(0,St.jsxs)(ud,{tabIndex:-1,shadow:n,bordered:u,animated:L,divider:A,borderWeight:$,visible:x,"data-state":H,className:wt(i,wd,`${wd}--${H}`),...v,children:[(0,St.jsx)(pd,{role:"button",tabIndex:c?-1:0,id:N,className:`${wd}-view`,"data-state":H,disabled:c,"aria-disabled":c,"aria-expanded":x,"aria-controls":M,isFocusVisible:T,onClick:B,...I,...z,children:(0,St.jsxs)("div",{className:wt(`${wd}-title-container`),children:[p&&(0,St.jsx)("div",{className:`${wd}-title-content-left`,children:p}),(0,St.jsxs)("div",{className:`${wd}-title-content`,children:[m().isValidElement(t)?t:(0,St.jsx)("h3",{className:`${wd}-title`,children:t}),r&&(0,St.jsx)("div",{className:`${wd}-subtitle`,children:r})]}),(0,St.jsx)("div",{className:`${wd}-title-content-right`,children:R})]})}),(0,St.jsx)(yd,{isExpanded:x,animated:L,children:(0,St.jsx)(hd,{role:"region",tabIndex:-1,id:M,"aria-labelledby":N,className:`${wd}-content`,children:e})})]})};Sd.toString=()=>".nextui-collapse";const Cd=vt(Sd,{shadow:!1,divider:!0,bordered:!1,showArrow:!0,animated:!0,disabled:!1,preventDefault:!0,expanded:!1}),kd=({children:e,accordion:t,animated:r,divider:o,onChange:n,...i})=>{const[s,a,l]=f([]),c=(e,r)=>{const o=l.current.find((t=>t===e));if(n&&n(e,r),t)return a(r?[e]:[]);if(r){if(o)return;return a([...l.current,e])}a(l.current.filter((t=>t!==e)))},d=(0,g.useMemo)((()=>({values:s,updateValues:c,divider:o,animated:r})),[s.join(",")]),u=(0,g.useMemo)((()=>((e,t=[])=>{if(0===m().Children.count(e))return[];const r=0===t.length,o=(e,t={})=>m().cloneElement(e,t);let n=0;return m().Children.map(e,(e=>{if(!m().isValidElement(e))return e;if(n+=1,r)return o(e,{index:n});const i=t.find((t=>t===e.type));return i?o(e,{index:n}):(n-=1,e)}))})(e,[Cd])),[e]);return(0,St.jsx)(xd.Provider,{value:d,children:(0,St.jsx)(md,{...i,children:u})})};kd.toString=()=>".nextui-collapse-group";const Ed=vt(kd,{accordion:!0});Cd.Group=Ed;const Pd=Cd,Td=Oe("div",{w:"100%",mr:"auto",ml:"auto",variants:{fluid:{true:{maxWidth:"100%"}},responsive:{true:{"@xs":{maxWidth:"$breakpoints$xs"},"@sm":{maxWidth:"$breakpoints$sm"},"@md":{maxWidth:"$breakpoints$md"},"@lg":{maxWidth:"$breakpoints$lg"},"@xl":{maxWidth:"$breakpoints$xl"}}}},defaultVariants:{fluid:!1,responsive:!0}}),Id=Td,Nd=({xs:e,sm:t,md:r,lg:o,xl:n,wrap:i,gap:s,as:a,display:l,justify:c,direction:d,alignItems:u,alignContent:p,children:h,responsive:m,fluid:f,css:b,...$})=>{const y=(0,g.useMemo)((()=>`calc(${s} * $space$sm)`),[s]);return(0,St.jsx)(Id,{css:{px:y,maxWidth:e?"$breakpoints$xs":t?"$breakpoints$sm":r?"$breakpoints$md":o?"$breakpoints$lg":n?"$breakpoints$xl":"",alignItems:u,alignContent:p,flexWrap:i,display:l,justifyContent:c,flexDirection:d,...b},responsive:m,fluid:f,as:a,...$,children:h})};Nd.toString=()=>".nextui-container",Nd.defaultProps={gap:2,xs:!1,sm:!1,md:!1,lg:!1,xl:!1,responsive:!0,fluid:!1,wrap:"wrap",as:"div",display:"block"};const Md=m().memo(Nd),Rd=Oe("div",{}),Ad=Oe("div",{margin:0,boxSizing:"border-box",padding:"$$gridGapUnit"}),Ld=e=>{const t=0===e?"none":"inherit";if("number"==typeof e){const r=100/12*e,o=r>100?"100%":r<0?"0":`${r}%`;return{flexGrow:0,display:t,maxWidth:o,flexBasis:o}}return{flexGrow:1,display:t,maxWidth:"100%",flexBasis:"0"}},Bd=m().forwardRef((({xs:e,sm:t,md:r,lg:o,xl:n,css:i,justify:s,direction:a,alignItems:l,alignContent:c,children:d,className:u,...p},h)=>{const m=(0,g.useMemo)((()=>{const i={xs:e,sm:t,md:r,lg:o,xl:n};return Object.keys(i).reduce(((e,t)=>void 0!==i[t]&&!1!==i[t]?`${e} ${t}`:e),"").trim()}),[e,t,r,o,n]);return(0,St.jsx)(Ad,{ref:h,className:wt("nextui-grid-item",m,u),css:{alignItems:l,alignContent:c,justifyContent:s,flexDirection:a,"&.xs":{...Ld(e)},"@xsMax":{"&.xs":{...Ld(e)}},"@sm":{"&.sm":{...Ld(t)}},"@md":{"&.md":{...Ld(r)}},"@lg":{"&.lg":{...Ld(o)}},"@xl":{"&.xl":{...Ld(n)}},...i},...p,children:d})}));Bd.displayName="NextUI.GridItem",Bd.toString=()=>".nextui-grid-item";const zd=vt(Bd,{xs:!1,sm:!1,md:!1,lg:!1,xl:!1,className:""}),Hd=m().forwardRef((({children:e,css:t,...r},o)=>(0,St.jsx)(zd,{ref:o,css:{...t},...r,children:e})));Hd.displayName="NextUI.Grid",Hd.toString=()=>".nextui-grid";const Dd=Hd,Od=m().forwardRef((({gap:e,wrap:t,css:r,children:o,className:n,...i},s)=>{const a=(0,g.useMemo)((()=>`calc(${e} * $space$3)`),[e]);return(0,St.jsx)(zd,{ref:s,className:wt("nextui-grid-container",n),css:{$$gridGapUnit:a,display:"flex",flexWrap:t,boxSizing:"border-box",margin:"calc(-1 * $$gridGapUnit)",width:"calc(100% + $$gridGapUnit * 2)",...r},...i,children:o})}));Od.displayName="NextUI.GridContainer",Od.toString=()=>".nextui-grid-container";const Kd=vt(Od,{gap:0,wrap:"wrap",className:""});Dd.Container=Kd;const Fd=Dd,jd=Oe("span",{size:"1px",variants:{inline:{true:{display:"inline-block"},false:{display:"block"}}},defaultVariants:{inline:!1}}),_d=({x:e,y:t,inline:r,css:o,...n})=>{const i=Sc(e),s=Sc(t);return(0,St.jsx)(jd,{css:{marginLeft:`${i} !important`,marginTop:`${s} !important`,...o},"aria-hidden":"true",...n})};_d.toString=()=>".nextui-spacer";const Wd=vt(m().memo(_d),{x:1,y:1}),Vd=vt((({children:e,childrenRef:t,className:r,visible:o,enterTime:n,leaveTime:i,clearTime:s,name:a,onExited:l,onEntered:c,...d})=>{const[u,p]=(0,g.useState)(""),[h,f]=(0,g.useState)(o);return(0,g.useEffect)((()=>{const e=o?"enter":"leave",t=o?n:i;o&&!h&&f(!0),p(`${a}-${e}`);const r=setTimeout((()=>{p(`${a}-${e} ${a}-${e}-active`),"leave"===e?null==l||l():null==c||c(),clearTimeout(r)}),t),d=setTimeout((()=>{o||(p(""),f(!1)),clearTimeout(d)}),t+s);return()=>{clearTimeout(r),clearTimeout(d)}}),[o,h]),(0,g.useEffect)((()=>{if(null==t||!t.current)return;const e=u.split(" "),r=t.current.className.split(" ").filter((e=>!e.includes(a)));t.current.className=wt(r,e)}),[t,u]),m().isValidElement(e)&&h?m().cloneElement(e,{...d,className:wt(e.props.className,r,null!=t&&t.current?"":u)}):null}),{visible:!1,enterTime:60,leaveTime:60,clearTime:60,className:"",name:"transition"}),Ud={top:-1e3,left:-1e3,right:-1e3,bottom:-1e3,width:0,height:0},Gd={top:"-1000px",left:"-1000px",transform:"none"},Jd=Oe("div",{width:"max-content",display:"inherit"}),Yd=Oe("span",{display:"none",content:"",size:"$5",zIndex:"-2",background:"$$tooltipColor",br:"0px 0px 2px 0px",position:"absolute"}),Xd=Oe("div",{position:"relative",fs:"$sm",padding:0,variants:{hideArrow:{false:{[`& ${Yd}`]:{display:"block"}}}}}),qd=Oe("div",{position:"absolute",width:"auto",padding:"$3 $sm",opacity:0,zIndex:"$10",br:"$lg","@motion":{transition:"none"},variants:{color:{default:{$$tooltipColor:"$colors$background",bg:"$$tooltipColor"},primary:{$$tooltipColor:"$colors$primary",bg:"$$tooltipColor"},secondary:{$$tooltipColor:"$colors$secondary",bg:"$$tooltipColor"},success:{$$tooltipColor:"$colors$success",bg:"$$tooltipColor"},warning:{$$tooltipColor:"$colors$warning",bg:"$$tooltipColor"},error:{$$tooltipColor:"$colors$error",bg:"$$tooltipColor"},invert:{$$tooltipColor:"$colors$foreground",bg:"$$tooltipColor"}},contentColor:{default:{$$tooltipTextColor:"$colors$text",color:"$$tooltipTextColor"},primary:{$$tooltipTextColor:"$colors$primary",color:"$$tooltipTextColor"},secondary:{$$tooltipTextColor:"$colors$secondary",color:"$$tooltipTextColor"},success:{$$tooltipTextColor:"$colors$success",color:"$$tooltipTextColor"},warning:{$$tooltipTextColor:"$colors$warning",color:"$$tooltipTextColor"},error:{$$tooltipTextColor:"$colors$error",color:"$$tooltipTextColor"},invert:{$$tooltipTextColor:"$colors$invert",color:"$$tooltipTextColor"}},rounded:{true:{br:"$pill"}},shadow:{true:{bs:"$md"}},animated:{true:{transition:"opacity 0.25s ease 0s, top 0.25s ease 0s"},false:{transition:"none"}}},compoundVariants:[{color:"primary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"secondary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"success",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"error",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"invert",contentColor:"default",css:{$$tooltipTextColor:"$colors$background"}}],defaultVariants:{color:"default",contentColor:"default"}}),Zd=({children:e,parent:t,visible:r,offset:o,placement:n,rounded:i,animated:s,className:a,hideArrow:l,css:c,...d})=>{const u=et("tooltip"),p=(0,g.useRef)(null),[h,m]=(0,g.useState)(Gd);if(!t)return null;const f=()=>{const e=((e,t,r)=>{const o={top:{top:t.top-r+"px",left:`${t.left+t.width/2}px`,transform:"translate(-50%, -100%)"},topStart:{top:t.top-r+"px",left:`${t.left}px`,transform:"translate(0, -100%)"},topEnd:{top:t.top-r+"px",left:`${t.left+t.width}px`,transform:"translate(-100%, -100%)"},bottom:{top:`${t.bottom+r}px`,left:`${t.left+t.width/2}px`,transform:"translate(-50%, 0)"},bottomStart:{top:`${t.bottom+r}px`,left:`${t.left}px`,transform:"translate(0, 0)"},bottomEnd:{top:`${t.bottom+r}px`,left:`${t.left+t.width}px`,transform:"translate(-100%, 0)"},left:{top:`${t.top+t.height/2}px`,left:t.left-r+"px",transform:"translate(-100%, -50%)"},leftStart:{top:`${t.top}px`,left:t.left-r+"px",transform:"translate(-100%, 0)"},leftEnd:{top:`${t.top+t.height}px`,left:t.left-r+"px",transform:"translate(-100%, -100%)"},right:{top:`${t.top+t.height/2}px`,left:`${t.right+r}px`,transform:"translate(0, -50%)"},rightStart:{top:`${t.top}px`,left:`${t.right+r}px`,transform:"translate(0, 0)"},rightEnd:{top:`${t.top+t.height}px`,left:`${t.right+r}px`,transform:"translate(0, -100%)"}};return o[e]||o.top})(n,(e=>{if(!e||!e.current)return Ud;const t=e.current.getBoundingClientRect();return{...t,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top,top:t.top+document.documentElement.scrollTop,bottom:t.bottom+document.documentElement.scrollTop,left:t.left+document.documentElement.scrollLeft,right:t.right+document.documentElement.scrollLeft}})(t),o);m(e)},{transform:b,top:$,left:v,right:x,bottom:w}=(0,g.useMemo)((()=>((e,t)=>{const r={top:{top:"auto",right:"auto",left:"50%",bottom:"0px",transform:"translate(-50%, 100%) rotate(45deg)"},topStart:{top:"auto",right:"auto",left:"8%",bottom:"0px",transform:"translate(8%, 100%) rotate(45deg)"},topEnd:{top:"auto",right:"8%",left:"auto",bottom:"0px",transform:"translate(8%, 100%) rotate(45deg)"},bottom:{top:"0px",right:"auto",left:"50%",bottom:"auto",transform:"translate(-50%, -100%) rotate(225deg)"},bottomStart:{top:"0px",right:"auto",left:"8%",bottom:"auto",transform:"translate(8%, -100%) rotate(225deg)"},bottomEnd:{top:"0px",right:"8%",left:"auto",bottom:"auto",transform:"translate(8%, -100%) rotate(225deg)"},left:{top:"50%",right:"-4px",left:"auto",bottom:"auto",transform:"translate(100%, -50%) rotate(-45deg)"},leftStart:{top:"calc(15% + 1px)",right:"-4px",left:"auto",bottom:"auto",transform:"translate(100%, 0) rotate(-45deg)"},leftEnd:{top:"auto",right:"-4px",left:"auto",bottom:"calc(15% + 1px)",transform:"translate(100%, 0) rotate(-45deg)"},right:{top:"50%",right:"auto",left:"-4px",bottom:"auto",transform:"translate(-100%, -50%) rotate(135deg)"},rightStart:{top:"calc(15% + 1px)",right:"auto",left:"-4px",bottom:"auto",transform:"translate(-100%, 0) rotate(135deg)"},rightEnd:{top:"auto",right:"auto",left:"-4px",bottom:"calc(15% + 1px)",transform:"translate(-100%, 0) rotate(135deg)"}};return r[e]||r.top})(n)),[n]);y(f),ct((()=>f())),(0,g.useEffect)((()=>{f()}),[r]);const S=(0,g.useMemo)((()=>r?"open":"closed"),[r]);return u?(0,Ss.createPortal)((0,St.jsx)(Vd,{name:"nextui-tooltip-wrapper",visible:r,enterTime:20,leaveTime:20,children:(0,St.jsx)(qd,{className:wt("nextui-tooltip-content",`nextui-tooltip--${S}`,a),"data-state":S,ref:p,onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},animated:s,css:{left:h.left,top:`calc(${h.top} + 6px)`,transform:h.transform,"&.nextui-tooltip-wrapper-enter-active":{opacity:1,top:h.top},...c},...d,children:(0,St.jsxs)(Xd,{role:"tooltip","data-state":S,hideArrow:l,className:wt("nextui-tooltip",{"nextui-tooltip--with-arrow":!l}),children:[(0,St.jsx)(Yd,{className:"nextui-tooltip-arrow",css:{left:v,top:$,right:x,bottom:w,transform:b}}),e]})})}),u):null};Zd.toString=()=>".nextui-tooltip-content";const Qd=vt(Zd,{placement:"top",offset:12,className:""}),eu=({children:e,initialVisible:t,content:r,offset:o,placement:n,portalClassName:i,enterDelay:s,leaveDelay:a,trigger:l,rounded:c,animated:d,shadow:u,className:p,color:h,contentColor:m,onVisibleChange:f,hideArrow:b,css:$,triggerCss:y,onClick:v,keepMounted:x,visible:w,...S})=>{const C=(0,g.useRef)(),k=(0,g.useRef)(null),[E,P]=(0,g.useState)(t),T={animated:d,visible:E,css:$,shadow:u,offset:o,placement:n,rounded:c,color:h,contentColor:m,hideArrow:b,parent:k,className:i},I=e=>{const t=()=>{clearTimeout(C.current),C.current=void 0},r=e=>{P(e),f(e),t()};t(),C.current=e?window.setTimeout((()=>r(!0)),s):window.setTimeout((()=>r(!1)),a)},N=e=>{"hover"===l&&I(e)};return it(k,(()=>"click"===l&&!x&&I(!1))),(0,g.useEffect)((()=>{void 0!==w&&I(w)}),[w]),(0,St.jsxs)(Jd,{ref:k,role:"button",tabIndex:-1,className:`nextui-tooltip-button ${p}`,onClick:()=>{"click"===l&&I(!E),null==v||v()},onKeyUp:()=>N(!0),onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),onFocus:()=>N(!0),onBlur:()=>N(!1),css:{...y},...S,children:[e,r&&(0,St.jsx)(Qd,{...T,children:r})]})};eu.toString=()=>".nextui-tooltip";const tu=vt(eu,{initialVisible:!1,hideArrow:!1,animated:!0,shadow:!0,rounded:!1,keepMounted:!1,trigger:"hover",enterDelay:0,leaveDelay:0,className:"",portalClassName:"",onVisibleChange:()=>{}}),ru=Oe("div",{display:"flex",position:"relative",width:"initial",maxWidth:"100%",padding:"calc($space$lg * 0.75) $space$lg",br:"$lg",bg:"$background",variants:{color:{default:{$$snippetBorderColor:"$border",$$snippetBgColor:"$background",color:"$text"},primary:{$$snippetBorderColor:"$border",$$snippetBgColor:"$primary",color:"$text"},success:{$$snippetBorderColor:"$success",$$snippetBgColor:"$background",color:"$success"},warning:{$$snippetBorderColor:"$warning",$$snippetBgColor:"$background",color:"$warning"},error:{$$snippetBorderColor:"$error",$$snippetBgColor:"$background",color:"$error"},secondary:{$$snippetBorderColor:"$secondary",$$snippetBgColor:"$background",color:"$secondary"},invert:{$$snippetBorderColor:"$foreground",$$snippetBgColor:"$foreground",color:"$background"}},borderWeight:{light:{$$borderWeight:"$light"},normal:{$$borderWeight:"$normal"},bold:{$$borderWeight:"$bold"},extrabold:{$$borderWeight:"$extrabold"},black:{$$borderWeight:"$black"}},bordered:{true:{border:"$$borderWeight solid $$snippetBorderColor"}},filled:{true:{backgroundColor:"$$snippetBgColor"}}},defaultVariants:{color:"default",borderWeight:"normal",filled:!1}}),ou=Oe("pre",{margin:0,padding:0,border:"none",br:0,bgColor:"transparent",color:"inherit",fontSize:"$sm","*":{margin:0,padding:0,fontSize:"inherit",color:"inherit"},variants:{withCopyButton:{true:{width:"calc(100% - 2 * $lg)"},false:{width:"100%"}}}}),nu=Oe("svg",{}),iu=Oe("button",{display:"inline-flex",jc:"center",border:"none",ai:"flex-start",bg:"transparent",width:"calc(2 * $space$lg)",br:"$xs",color:"inherit",transition:"opacity 0.2s ease 0s",cursor:"pointer",us:"none","@motion":{transition:"none"},"&:hover":{opacity:"0.7"},[`& ${nu}`]:{path:{fill:"$accents6"}}},el),su=({size:e,fill:t,width:r,height:o,...n})=>(0,St.jsx)(nu,{xmlns:"http://www.w3.org/2000/svg",width:e||r,height:e||o,viewBox:"0 0 24 24",...n,children:(0,St.jsx)("path",{fill:t,d:"M20 2H10c-1.103 0-2 .897-2 2v4H4c-1.103 0-2 .897-2 2v10c0 1.103.897 2 2 2h10c1.103 0 2-.897 2-2v-4h4c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zM4 20V10h10l.002 10H4zm16-6h-4v-4c0-1.103-.897-2-2-2h-4V4h10v10z"})});su.toString=()=>".nextui-snippet-copy-icon";const au=vt(g.memo(su),{width:18,height:18}),lu=({bordered:e,children:t,symbol:r,showTooltip:o,text:n,tooltipCopyText:i,tooltipCopiedText:s,tooltipColor:a,copy:l,...c})=>{const[d,u]=(0,g.useState)(!1),{copy:p}=lt(),h=(0,g.useRef)(null),m=n&&Array.isArray(n),f=(0,g.useMemo)((()=>"prevent"!==l),[l]),b=(0,g.useMemo)((()=>m?(e=>e.reduce(((e,t)=>t?e?`${e}\n${t}`:t:e),""))(n):t?h.current?h.current.textContent:"":n),[h.current,t,n]),$=(0,g.useMemo)((()=>{const e=r.trim();return e?`${e} `:""}),[r]),y=()=>{b&&f&&(p(b),"slient"!==l&&u(!0))};return(0,St.jsxs)(ru,{...c,children:[m?n.map(((e,t)=>(0,St.jsx)(ou,{css:{"&:before":{content:$,us:"none"}},className:"nextui-snippet-pre",children:e},`${t}-${e}`))):(0,St.jsx)(ou,{css:{"&:before":{content:$,us:"none"}},className:"nextui-snippet-pre",ref:h,children:t||n}),f&&"slient"!==l?(0,St.jsx)(tu,{hideArrow:!0,rounded:!0,color:a,content:d?s:i,onVisibleChange:()=>{setTimeout((()=>{d&&u(!1)}),400)},children:(0,St.jsx)(iu,{className:"nextui-snippet-copy-button",onClick:y,children:(0,St.jsx)(au,{})})}):"prevent"!==l&&(0,St.jsx)(iu,{className:"nextui-snippet-copy-button",onClick:y,children:(0,St.jsx)(au,{})})]})};lu.toString=()=>".nextui-snippet";const cu=vt(m().memo(lu),{symbol:"$",showTooltip:!0,copy:"default",tooltipColor:"default",tooltipCopyText:"Copy",tooltipCopiedText:"Copied"}),du=Oe("div",{display:"flex",position:"relative",boxSizing:"border-box",variants:{fluid:{true:{width:"100%"}}},defaultVariants:{fluid:!0}}),uu=du,pu=({children:e,gap:t,justify:r,align:o,wrap:n,css:i,...s})=>(0,St.jsx)(uu,{css:{flexWrap:n,$$rowGap:`calc(${t} * $space$lg)`,marginLeft:`calc(${t} * $space$lg / 2)`,marginRight:`calc(${t} * $space$lg / 2)`,justifyContent:r,alignItems:o,...i},...s,children:e});pu.toString=()=>".nextui-row";const hu=vt(m().memo(pu),{gap:0,wrap:"nowrap",justify:"flex-start",align:"flex-start"}),gu=e=>{if("undefined"!=typeof document||!e){const t=mu(e)?e.replace("var(","").replace(")",""):`--${e}`;return getComputedStyle(document.documentElement).getPropertyValue(t)}return""},mu=e=>!(!e||0!==(null==e?void 0:e.indexOf("var(")));var fu,bu;const $u=Oe("svg",{ml:"$1",as:"center",display:"inline-flex",color:"currentColor"}),yu=Oe("a",{display:"inline-flex",alignItems:"baseline",lineHeight:"inherit",textDecoration:"none",width:"fitContent",backgroundImage:"inherit",backgroundColor:"inherit",backgroundClip:"inherit",WebkitTextFillColor:"inherit","&:hover":{opacity:.8},"@motion":{transition:"none"},variants:{color:{default:{color:"$link"},text:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}},underline:{true:{"&:hover, &:active, &:focus":{textDecoration:"underline"}}},block:{true:{padding:"$2 $4",borderRadius:"$base"}},animated:{true:{transition:"$link"}}},compoundVariants:[{color:"default",block:!0,css:{"&:hover":{backgroundColor:((e,t=1)=>{if(!e)return"";const r=mu(e)?gu(e):e;if(/#[a-fA-F0-9]{3,6}/g.test(r))return((e,t=1)=>{let r=0,o=0,n=0;return 4==e.length?(r="0x"+e[1]+e[1],o="0x"+e[2]+e[2],n="0x"+e[3]+e[3]):7==e.length&&(r="0x"+e[1]+e[2],o="0x"+e[3]+e[4],n="0x"+e[5]+e[6]),`rgba(${+r}, ${+o},${+n},${t})`})(r,t);if(!/^#|rgb|RGB/.test(r))return r;const[o,n,i]=(e=>{const t=mu(e)?gu(e):e;if("#"===t.charAt(0))return(e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,r,o)=>`${t}${t}${r}${r}${o}${o}`)),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)throw new Error(`Next UI: Unsupported ${e} color.`);return[Number.parseInt(r[1],16),Number.parseInt(r[2],16),Number.parseInt(r[3],16)]})(t);const r=t.replace(/ /g,""),o=t.substr(0,4),n=r.match(/\((.+)\)/);if(!o.startsWith("rgb")||!n)throw new Error('Next UI: Only support ["RGB", "RGBA", "HEX"] color.');return n[1].split(",").map((e=>Number.parseFloat(e)))})(r);return`rgba(${o}, ${n}, ${i}, ${t>1?1:t<0?0:t})`})(null==(fu=We.colors)||null==(bu=fu.link)?void 0:bu.value,.2)}}},{color:"primary",block:!0,css:{"&:hover":{backgroundColor:"$primaryLight"}}},{color:"secondary",block:!0,css:{"&:hover":{backgroundColor:"$secondaryLight"}}},{color:"success",block:!0,css:{"&:hover":{backgroundColor:"$successLight"}}},{color:"warning",block:!0,css:{"&:hover":{backgroundColor:"$warningLight"}}},{color:"error",block:!0,css:{"&:hover":{backgroundColor:"$errorLight"}}}],defaultVariants:{color:"default",animated:!0}}),vu=yu,xu=()=>(0,St.jsxs)($u,{viewBox:"0 0 24 24",width:"1em",height:"1em",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",className:"nextui-link-icon",children:[(0,St.jsx)("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),(0,St.jsx)("path",{d:"M15 3h6v6"}),(0,St.jsx)("path",{d:"M10 14L21 3"})]});xu.toString=()=>".nextui-link-icon";const wu=m().memo(xu),Su=m().forwardRef((({children:e,icon:t,...r},o)=>(0,St.jsx)(vu,{...r,ref:o,children:(0,St.jsxs)(St.Fragment,{children:[e,t&&(0,St.jsx)(wu,{})]})})));Su.toString=()=>".nextui-link";const Cu=vt(Su,{icon:!1}),ku=je({"0%":{opacity:"0.2"},"20%":{opacity:1},"100%":{opacity:"0.2"}}),Eu=je({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Pu=je({"0%":{transform:"translate(0px, 0px)"},"50%":{transform:"translate(0, calc(-$$loadingSize * 1.4))"},"100%":{transform:"translate(0px, 0px)"}}),Tu=je({"0%":{opacity:1},"100%":{opacity:.15}}),Iu=Oe("div",{d:"inline-flex",fd:"column",ai:"center",position:"relative",variants:{color:{currentColor:{$$loadingColor:"currentColor"},white:{$$loadingColor:"$colors$white"},default:{$$loadingColor:"$colors$primary"},primary:{$$loadingColor:"$colors$primary"},secondary:{$$loadingColor:"$colors$secondary"},success:{$$loadingColor:"$colors$success"},warning:{$$loadingColor:"$colors$warning"},error:{$$loadingColor:"$colors$error"}},textColor:{white:{$$loadingTextColor:"$colors$white"},default:{$$loadingTextColor:"$colors$text"},primary:{$$loadingTextColor:"$colors$primary"},secondary:{$$loadingTextColor:"$colors$secondary"},success:{$$loadingTextColor:"$colors$success"},warning:{$$loadingTextColor:"$colors$warning"},error:{$$loadingTextColor:"$colors$error"}}},defaultVariants:{color:"default",textColor:"default"}}),Nu=Oe("div",{size:"100%",position:"relative",left:"50%",top:"50%"}),Mu=Oe("div",{d:"flex",fd:"column",jc:"center",ai:"center",position:"relative",variants:{size:{xs:{size:"$6"},sm:{size:"$8"},md:{size:"$9"},lg:{size:"$11"},xl:{size:"$12"}}}}),Ru=Oe("span",{bg:"$$loadingColor",position:"absolute",top:"-3.9%",width:"24%",height:"8%",left:"-10%",br:"$lg",animation:`${Tu} 1.2s linear 0s infinite normal none running`,"&:nth-child(1)":{animationDelay:"-1.2s",transform:"rotate(0deg) translate(146%)"},"&:nth-child(2)":{animationDelay:"-1.1s",transform:"rotate(30deg) translate(146%)"},"&:nth-child(3)":{animationDelay:"-1s",transform:"rotate(60deg) translate(146%)"},"&:nth-child(4)":{animationDelay:"-0.9s",transform:"rotate(90deg) translate(146%)"},"&:nth-child(5)":{animationDelay:"-0.8s",transform:"rotate(120deg) translate(146%)"},"&:nth-child(6)":{animationDelay:"-0.7s",transform:"rotate(150deg) translate(146%)"},"&:nth-child(7)":{animationDelay:"-0.6s",transform:"rotate(180deg) translate(146%)"},"&:nth-child(8)":{animationDelay:"-0.5s",transform:"rotate(210deg) translate(146%)"},"&:nth-child(9)":{animationDelay:"-0.4s",transform:"rotate(240deg) translate(146%)"},"&:nth-child(10)":{animationDelay:"-0.3s",transform:"rotate(270deg) translate(146%)"},"&:nth-child(11)":{animationDelay:"-0.2s",transform:"rotate(300deg) translate(146%)"},"&:nth-child(12)":{animationDelay:"-0.1s",transform:"rotate(330deg) translate(146%)"}}),Au=Oe("span",{position:"absolute",top:0,left:0,right:0,bottom:0,size:"100%",dflex:"center",bgColor:"transparent",us:"none",variants:{size:{xs:{$$loadingSize:"$space$8",$$loadingBorder:"$space$1"},sm:{$$loadingSize:"$space$10",$$loadingBorder:"$space$1"},md:{$$loadingSize:"$space$12",$$loadingBorder:"calc($space$1 * 1.5)"},lg:{$$loadingSize:"$space$15",$$loadingBorder:"$space$2"},xl:{$$loadingSize:"$space$18",$$loadingBorder:"$space$3"}},type:{default:{d:"flex",br:"$rounded",position:"relative",size:"$$loadingSize",i:{top:"0px",size:"100%",position:"absolute",br:"inherit"},"._1":{border:"$$loadingBorder solid $$loadingColor",borderTop:"$$loadingBorder solid transparent",borderLeft:"$$loadingBorder solid transparent",borderRight:"$$loadingBorder solid transparent",animation:`${Eu} 0.8s ease infinite`},"._2":{border:"$$loadingBorder dotted $$loadingColor",borderTop:"$$loadingBorder solid transparent",borderLeft:"$$loadingBorder solid transparent",borderRight:"$$loadingBorder solid transparent",animation:`${Eu} 0.8s linear infinite`,opacity:.5},"._3":{display:"none"}},points:{d:"flex",position:"relative",transform:"translate(0, calc($$loadingSize * 0.6))",i:{size:"$$loadingSize",margin:"0 3px",bg:"$$loadingColor"},"._1":{br:"$rounded",animation:`${Pu} 0.75s ease infinite`},"._2":{br:"$rounded",animation:`${Pu} 0.75s ease infinite 0.25s`},"._3":{br:"$rounded",animation:`${Pu} 0.75s ease infinite 0.5s`}},"points-opacity":{d:"flex",position:"relative",i:{display:"inline-block",size:"$$loadingSize",br:"$rounded",bg:"$$loadingColor",margin:"0 1px",animation:`${ku} 1.4s infinite both`},"._2":{animationDelay:"0.2s"},"._3":{animationDelay:"0.4s"}},spinner:{},gradient:{display:"flex",position:"relative",size:"$$loadingSize","._1":{position:"absolute",size:"100%",border:"0px",animation:`${Eu} 1s linear infinite`,top:"0px",br:"$rounded",bg:"linear-gradient(0deg, $background 33%,$$loadingColor 100%)"},"._2":{top:"2px",position:"absolute",size:"calc(100% - 4px)",border:"0px",bg:"$background",br:"$rounded"},"._3":{display:"none"}}}},compoundVariants:[{size:"xs",type:"points-opacity",css:{$$loadingSize:"$space$1"}},{size:"sm",type:"points-opacity",css:{$$loadingSize:"$space$2"}},{size:"md",type:"points-opacity",css:{$$loadingSize:"$space$3"}},{size:"lg",type:"points-opacity",css:{$$loadingSize:"$space$4"}},{size:"xl",type:"points-opacity",css:{$$loadingSize:"$space$5"}},{size:"xs",type:"points",css:{$$loadingSize:"$space$1"}},{size:"sm",type:"points",css:{$$loadingSize:"$space$2"}},{size:"md",type:"points",css:{$$loadingSize:"$space$3"}},{size:"lg",type:"points",css:{$$loadingSize:"$space$4"}},{size:"xl",type:"points",css:{$$loadingSize:"$space$5"}}],defaultVariants:{type:"default"}}),Lu=Oe("label",{mt:"$1",color:"$$loadingTextColor",fontSize:"$$loadingSize","*":{margin:0},variants:{size:{xs:{fontSize:"$space$5",marginTop:"$2"},sm:{fontSize:"$space$6",marginTop:"$3"},md:{fontSize:"$base",marginTop:"$4"},lg:{fontSize:"$space$10",marginTop:"$4"},xl:{fontSize:"$space$11",marginTop:"$5"}}}}),Bu=({children:e,size:t,color:r,textColor:o,className:n,...i})=>{const s=Array.isArray(e)?(null==e?void 0:e.length)>1&&void 0!==e[0]:void 0!==e,a=e&&s?"":"Loading";return(0,St.jsxs)(Mu,{className:wt("nextui-spinner",n),color:r,size:t,...i,children:[(0,St.jsx)(Nu,{className:"nextui-spinner-container","aria-label":a,children:[...new Array(12)].map(((e,t)=>(0,St.jsx)(Ru,{},`nextui-spinner-${t}`)))}),e&&(0,St.jsx)(Lu,{size:t,color:o,children:e})]})};Bu.toString=()=>".nextui-spinner";const zu=Bu,Hu=({children:e,size:t,gradientBackground:r,loadingCss:o,type:n,...i})=>{const s=e?"":"Loading",a=(0,g.useMemo)((()=>"gradient"===n?{"._2":{bg:r}}:{}),[n]);return(0,St.jsx)(Iu,{...i,children:"spinner"===n?(0,St.jsx)(zu,{size:t,children:e}):(0,St.jsxs)(St.Fragment,{children:[(0,St.jsxs)(Au,{className:`nextui-loading nextui-loading-${n}`,type:n,size:t,"aria-label":s,css:{...o,...a},children:[(0,St.jsx)("i",{className:"_1"}),(0,St.jsx)("i",{className:"_2"}),(0,St.jsx)("i",{className:"_3"})]}),e&&(0,St.jsx)(Lu,{size:t,className:"nextui-loading-label",children:e})]})})};Hu.toString=()=>".nextui-loading";const Du=vt(m().memo(Hu),{size:"md",type:"default"});function Ou(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}Ou({},"useRadio",(()=>Fu));const Ku=new WeakMap;function Fu(e,t,r){let{value:o,children:n,"aria-label":i,"aria-labelledby":s}=e;const a=e.isDisabled||t.isDisabled;null!=n||null!=i||null!=s||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let l=t.selectedValue===o,{pressProps:c}=Mi({isDisabled:a}),{focusableProps:d}=Rl($n(e,{onFocus:()=>t.setLastFocusedValue(o)}),r),u=$n(c,d),p=Sn(e,{labelable:!0}),h=t.lastFocusedValue===o||null==t.lastFocusedValue?0:-1;return a&&(h=void 0),{inputProps:$n(p,{...u,type:"radio",name:Ku.get(t),tabIndex:h,disabled:a,checked:l,value:o,onChange:e=>{e.stopPropagation(),t.setSelectedValue(o)}})}}function ju(e,t){let{name:r,validationState:o,isReadOnly:n,isRequired:i,isDisabled:s,orientation:a="vertical"}=e,{direction:l}=Go(),{labelProps:c,fieldProps:d}=Rc({...e,labelElementType:"span"}),u=Sn(e,{labelable:!0}),{focusWithinProps:p}=ls({onBlurWithin(){t.selectedValue||t.setLastFocusedValue(null)}}),h=gn(r);return Ku.set(t,h),{radioGroupProps:$n(u,{role:"radiogroup",onKeyDown:e=>{let r;switch(e.key){case"ArrowRight":r="rtl"===l&&"vertical"!==a?"prev":"next";break;case"ArrowLeft":r="rtl"===l&&"vertical"!==a?"next":"prev";break;case"ArrowDown":r="next";break;case"ArrowUp":r="prev";break;default:return}e.preventDefault();let o,n=Sl(e.currentTarget,{from:e.target});"next"===r?(o=n.nextNode(),o||(n.currentNode=e.currentTarget,o=n.firstChild())):(o=n.previousNode(),o||(n.currentNode=e.currentTarget,o=n.lastChild())),o&&(o.focus(),t.setSelectedValue(o.value))},"aria-invalid":"invalid"===o||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":n||void 0,"aria-required":i||void 0,"aria-disabled":s||void 0,"aria-orientation":a,...d,...p}),labelProps:c}}Ou({},"useRadioGroup",(()=>ju));const[_u,Wu]=Oc({name:"RadioGroupContext",strict:!0,errorMessage:"useRadioGroupContext: `context` is undefined. Seems you forgot to wrap all checkbox components within `<Radio.Group />`"}),Vu=Oe("span",{fontSize:"$$radioSize",us:"none",d:"inline-flex",ai:"center",variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}},isDisabled:{true:{color:"$accents5"}},isInvalid:{true:{color:"$error"}}}}),Uu=Oe("span",{size:"$$radioSize",br:"$$radioRadii",position:"relative",d:"inline-block",mr:"calc($$radioSize * 0.375)","&:after":{content:"",d:"block",position:"absolute",size:"$$radioSize",br:"$$radioRadii",boxSizing:"border-box",border:"2px solid $border"}},tl),Gu=Oe("label",{d:"flex",w:"initial",ai:"flex-start",position:"relative",fd:"column",jc:"flex-start",cursor:"pointer","@motion":{[`& ${Uu}`]:{transition:"none","&:after":{transition:"none"}}},variants:{color:{default:{$$radioColor:"$colors$primary",$$radioColorHover:"$colors$primarySolidHover"},primary:{$$radioColor:"$colors$primary",$$radioColorHover:"$colors$primarySolidHover"},secondary:{$$radioColor:"$colors$secondary",$$radioColorHover:"$colors$secondarySolidHover"},success:{$$radioColor:"$colors$success",$$radioColorHover:"$colors$successSolidHover"},warning:{$$radioColor:"$colors$warning",$$radioColorHover:"$colors$warningSolidHover"},error:{$$radioColor:"$colors$error",$$radioColorHover:"$colors$errorSolidHover"}},size:{xs:{$$radioSize:"$space$7"},sm:{$$radioSize:"$space$8"},md:{$$radioSize:"$space$9"},lg:{$$radioSize:"$space$10"},xl:{$$radioSize:"$space$11"}},isHovered:{true:{}},isInvalid:{true:{$$radioColor:"$colors$error",$$radioColorHover:"$colors$errorSolidHover",[`& ${Uu}`]:{"&:after":{borderColor:"$colors$error"}}}},isDisabled:{true:{cursor:"not-allowed",$$radioColor:"$colors$accents4"}},isSquared:{true:{$$radioRadii:"$radii$squared"},false:{$$radioRadii:"$radii$rounded"}},isChecked:{true:{[`& ${Uu}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColor"}}}},disableAnimation:{true:{[`& ${Uu}`]:{transition:"none","&:after":{transition:"none"}}},false:{[`& ${Uu}`]:{transition:"$default","&:after":{transition:"$default"}}}}},defaultVariants:{size:"md",isSquared:!1,disableAnimation:!1},compoundVariants:[{isChecked:!0,isHovered:!0,css:{[`& ${Uu}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColorHover"}}}},{isChecked:!0,isDisabled:!0,isHovered:!0,css:{[`& ${Uu}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColor"}}}},{isChecked:!1,isDisabled:!1,isHovered:!0,css:{[`& ${Uu}`]:{bg:"$border"}}}]}),Ju=Oe("span",{color:"$accents7",fontSize:"calc($$radioSize * 0.85)",paddingLeft:"calc($$radioSize + $$radioSize * 0.375)",variants:{isInvalid:{true:{color:"$red500"}},isDisabled:{true:{color:"$accents5"}}}}),Yu=Oe("div",{w:"initial",position:"relative",d:"flex",fd:"row",ai:"center",jc:"flex-start"}),Xu=Oe("label",{d:"block",fontWeight:"$normal",fontSize:"calc($$checkboxSize * 0.9)",color:"$accents8",mb:"$3"}),qu=Oe("div",{border:0,margin:0,padding:0,display:"flex",fd:"column",variants:{size:{xs:{$$radioGroupGap:"$space$7"},sm:{$$radioGroupGap:"$space$8"},md:{$$radioGroupGap:"$space$9"},lg:{$$radioGroupGap:"$space$10"},xl:{$$radioGroupGap:"$space$11"}}}}),Zu=Oe("div",{display:"flex",flexDirection:"column",variants:{isRow:{true:{mt:0,flexDirection:"row",[`& ${Gu}:not(:last-child)`]:{mr:"$$radioSize"}},false:{mr:0,flexDirection:"column",[`& ${Gu}:not(:first-child)`]:{mt:"$$radioSize"}}}},defaultVariants:{isRow:!1}}),Qu=m().forwardRef(((e,t)=>{const{className:r,as:o,css:n,children:i,label:s,description:a,...l}=e,{size:c,color:d,inputRef:u,labelColor:p,isHovered:h,isSquared:m,isInvalid:f,isDisabled:b,autoFocus:$,disableAnimation:y,hoverProps:v,inputProps:x}=(e=>{var t,r,o;const n=Wu(),{size:i=(null!=(t=n.size)?t:"md"),color:s=(null!=(r=n.color)?r:"default"),labelColor:a=(null!=(o=n.labelColor)?o:"default"),autoFocus:l,isSquared:c=!1,disableAnimation:d=!1,...u}=e,p=(0,g.useRef)(null),{inputProps:h}=Fu(u,n.radioGroupState,p),m=(0,g.useMemo)((()=>{var e;return null!=(e=h.disabled)&&e}),[h.disabled]),{hoverProps:f,isHovered:b}=gs({isDisabled:m});return{size:i,color:s,inputRef:p,autoFocus:l,isDisabled:m,labelColor:a,isInvalid:(0,g.useMemo)((()=>"invalid"===n.validationState),[n.validationState]),isHovered:b,isSquared:c,disableAnimation:d,inputProps:h,hoverProps:f}})({...l,children:null!=i?i:s}),w=Ll(t,u),{focusProps:S,isFocusVisible:C}=El({autoFocus:$}),k=(0,g.useMemo)((()=>h?"is-hovered":b?"is-disabled":x.checked?"checked":"uncheked"),[b,x.checked,h]);return(0,St.jsxs)(Gu,{ref:w,...v,className:wt("nextui-radio-label",`nextui-radio--${k}`,r),as:o,css:n,size:c,color:d,"data-state":k,isSquared:m,isHovered:h,isInvalid:f,isChecked:x.checked,isDisabled:b,disableAnimation:y,children:[(0,St.jsxs)(Yu,{className:"nextui-radio-container",children:[(0,St.jsx)(Uu,{className:"nextui-radio-point",isFocusVisible:C,...S,children:(0,St.jsx)(Is,{children:(0,St.jsx)("input",{ref:u,className:"nextui-radio-input",...$n(x,S)})})}),(0,St.jsx)(Vu,{color:p,isInvalid:f,isDisabled:b,className:"nextui-radio-label",children:i})]}),a&&(0,St.jsx)(Ju,{className:"nextui-radio-description",isInvalid:f,isDisabled:b,children:a})]})}));Qu.toString=()=>".nextui-radio";const ep=Qu;Object.defineProperty({},"useRadioGroupState",{get:()=>op,set:void 0,enumerable:!0,configurable:!0});let tp=Math.round(1e10*Math.random()),rp=0;function op(e){let t=(0,g.useMemo)((()=>e.name||`radio-group-${tp}-${++rp}`),[e.name]),[r,o]=nn(e.value,e.defaultValue,e.onChange),[n,i]=(0,g.useState)(null);return{name:t,selectedValue:r,setSelectedValue:t=>{e.isReadOnly||e.isDisabled||o(t)},lastFocusedValue:n,setLastFocusedValue:i,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1}}const np=m().forwardRef(((e,t)=>{const{as:r,css:o,className:n,children:i,label:s,...a}=e,l=(e=>{const{size:t="md",color:r="default",labelColor:o="default",orientation:n="vertical",isRequired:i,validationState:s,...a}=e,l=(0,g.useMemo)((()=>({...a,orientation:n})),[a]),c=op(l),{radioGroupProps:d,labelProps:u}=ju(l,c);return{size:t,color:r,orientation:n,labelColor:o,isRequired:i,validationState:s,radioGroupState:c,radioGroupProps:d,labelProps:u}})({...a,label:s}),c=Al(t);return(0,St.jsxs)(qu,{ref:c,className:wt("nextui-radio-group",n),as:r,css:o,size:l.size,...l.radioGroupProps,children:[s&&(0,St.jsx)(Xu,{className:"nextui-radio-group-label",...l.labelProps,children:s}),(0,St.jsx)(Zu,{className:"nextui-radio-group-items",role:"presentation",isRow:"horizontal"===l.orientation,children:(0,St.jsx)(_u,{value:l,children:i})})]})}));np.toString=()=>".nextui-radio-group";const ip=np;ep.Group=ip;const sp=ep,ap=Oe("p",{variants:{weight:{hairline:{fontWeight:"$hairline"},thin:{fontWeight:"$thin"},light:{fontWeight:"$light"},normal:{fontWeight:"$normal"},medium:{fontWeight:"$medium"},semibold:{fontWeight:"$semibold"},bold:{fontWeight:"$bold"},extrabold:{fontWeight:"$extrabold"},black:{fontWeight:"$black"}}}}),lp=m().forwardRef(((e,r)=>{const{children:o,tag:n,color:i,transform:s,margin:a,size:l,css:c,...d}=e,u=Al(r),p=(0,g.useMemo)((()=>(e=>null!=t.find((t=>t===e)))(i)?"default"===i?"$text":`$${i}`:i),[i]),h=(0,g.useMemo)((()=>l?"number"==typeof l?`${l}px`:l:"inherit"),[l]),m=(0,g.useMemo)((()=>a?"number"==typeof a?`${l}px`:a:"inherit"),[a]);return(0,St.jsx)(ap,{ref:u,as:n,css:{color:p,fontSize:l?h:"",margin:m,tt:s,...c},...d,children:o})}));lp.toString=()=>".nextui-text-child";const cp=vt(m().memo(lp),{color:"default"}),dp=(e,t,r,o)=>{if(!e.length)return t;const n=e.slice(1,e.length);return(0,St.jsx)(cp,{tag:e[0],size:r,transform:o,children:dp(n,t,r)})},up=m().forwardRef(((e,t)=>{const{h1:r,h2:o,h3:n,h4:i,h5:s,h6:a,b:l,small:c,i:d,span:u,del:p,em:h,blockquote:m,transform:f,size:b,margin:$,children:y,...v}=e,x=Al(t),w={h1:r,h2:o,h3:n,h4:i,h5:s,h6:a,blockquote:m},S={span:u,small:c,b:l,em:h,i:d,del:p},C=Object.keys(w).filter((e=>w[e])),k=Object.keys(S).filter((e=>S[e])),E=(0,g.useMemo)((()=>C[0]?C[0]:k[0]?k[0]:"p"),[C,k]),P=k.filter((e=>e!==E)),T=(0,g.useMemo)((()=>P.length?dp(P,y,b,f):y),[P,y,b,f]);return(0,St.jsx)(cp,{ref:x,transform:f,tag:E,margin:$,size:b,...v,children:T})}));up.toString=()=>".nextui-text";const pp=vt(m().memo(up),{h1:!1,h2:!1,h3:!1,h4:!1,h5:!1,h6:!1,b:!1,small:!1,transform:"none",i:!1,span:!1,del:!1,em:!1,blockquote:!1,color:"default"}),hp=Oe("label",{WebkitTapHighlightColor:"transparent",d:"inline-block",verticalAlign:"center",whiteSpace:"nowrap",us:"none",transition:"$default",padding:"$1 0",position:"relative",cursor:"pointer","@motion":{transition:"none"},variants:{color:{default:{$$switchColor:"$colors$primary",$$switchColorShadow:"$colors$primaryShadow",$$switchColorHover:"$colors$primarySolidHover"},primary:{$$switchColor:"$colors$primary",$$switchColorShadow:"$colors$primaryShadow",$$switchColorHover:"$colors$primarySolidHover"},secondary:{$$switchColor:"$colors$secondary",$$switchColorShadow:"$colors$secondaryShadow",$$switchColorHover:"$colors$secondarySolidHover"},success:{$$switchColor:"$colors$success",$$switchColorShadow:"$colors$successShadow",$$switchColorHover:"$colors$successSolidHover"},warning:{$$switchColor:"$colors$warning",$$switchColorShadow:"$colors$warningShadow",$$switchColorHover:"$colors$warningSolidHover"},error:{$$switchColor:"$colors$error",$$switchColorShadow:"$colors$errorShadow",$$switchColorHover:"$colors$errorSolidHover"}},size:{xs:{$$switchWidth:"$space$12",$$switchHeight:"$space$9",width:" $$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},sm:{$$switchWidth:"$space$14",$$switchHeight:"$space$10",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},md:{$$switchWidth:"$space$15",$$switchHeight:"$space$11",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},lg:{$$switchWidth:"$space$17",$$switchHeight:"$space$12",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},xl:{$$switchWidth:"$space$18",$$switchHeight:"$space$13",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"}},borderWeight:{light:{$$switchBorderW:"$borderWeights$light"},normal:{$$switchBorderW:"$borderWeights$normal"},bold:{$$switchBorderW:"$borderWeights$bold"},extrabold:{$$switchBorderW:"$borderWeights$extrabold"},black:{$$switchBorderW:"$borderWeights$black"}},disabled:{true:{cursor:"not-allowed"}},animated:{false:{transition:"none"}}},defaultVariants:{color:"default",size:"md",borderWeight:"normal"}}),gp=Oe("input",{},ol),mp=Oe("span",{position:"absolute",display:"flex",size:"calc($$switchHeight * 0.7)",jc:"center",ai:"center",top:"50%",transform:"translateY(-50%)",left:"calc($$switchWidth / 15)",transition:"left 0.25s ease, width 0.2s ease",bg:"$background",br:"$pill","& svg":{bg:"transparent",size:"calc($$switchHeight * 0.44)"},"@motion":{transition:"none"}}),fp=Oe("div",{opacity:1,width:"$$switchWidth",height:"$$switchHeight",transition:"$default",position:"relative",overflow:"hidden",padding:0,br:"$pill",bg:"$accents2","@motion":{transition:"none"},variants:{checked:{true:{bg:"$$switchColor",[`& ${mp}`]:{left:"calc(100% - ($$switchWidth / 15) - $$switchHeight * 0.7)"},"&:hover:not(&:active)":{bg:"$$switchColorHover"}}},bordered:{true:{bg:"transparent",border:"$$switchBorderW solid $border","&:hover":{borderColor:"$$switchColor"},[`& ${mp}`]:{left:"calc(($$switchWidth / 15) - ($$switchBorderW / 2))",bg:"$accents2"}}},squared:{true:{br:"2px",[`& ${mp}`]:{br:"2px"}}},shadow:{true:{}},disabled:{true:{borderColor:"$accents2",bg:"$accents2",[`& ${mp}`]:{bg:"$accents4"}}},animated:{true:{"&:active":{[`& ${mp}`]:{width:"calc($$switchHeight * 0.7 + ($$switchWidth / 10))"}}},false:{transition:"none",[`& ${mp}`]:{transition:"none"}}}},compoundVariants:[{checked:!0,disabled:!0,css:{bg:"$accents3",[`& ${mp}`]:{bg:"$accents0"},"&:hover:not(&:active)":{bg:"$accents4"}}},{shadow:!0,checked:!0,css:{normalShadowVar:"$$switchColorShadow"}},{animated:!0,checked:!1,css:{"&:active":{[`& ${mp}`]:{left:"calc($$switchWidth / 7.5)"}}}},{animated:!0,checked:!0,css:{"&:active":{[`& ${mp}`]:{left:"calc(100% - ($$switchWidth / 5) - $$switchHeight * 0.7)"}}}},{checked:!0,bordered:!0,css:{bg:"$$switchColor",border:"$$switchBorderW solid transparent","&:hover:not(&:active)":{borderColor:"transparent"},[`& ${mp}`]:{left:"calc(100% - ($$switchWidth / 15) - $$switchHeight * 0.7 + ($$switchBorderW / 2))",bg:"$background"}}}]},el),bp=({initialChecked:e,checked:t,disabled:r,onChange:o,squared:n,bordered:i,shadow:s,icon:a,iconOn:l,iconOff:c,animated:d,preventDefault:u,...p})=>{const[h,m]=(0,g.useState)(e),f=(0,g.useCallback)((e=>{if(r)return;const t={target:{checked:!h},stopPropagation:e.stopPropagation,preventDefault:e.preventDefault,nativeEvent:e};m(!h),o&&o(t)}),[r,h,o]),{bindings:b}=mt((e=>{f(e)}),[ut.Enter,ut.Space],{disableGlobalEvent:!0,preventDefault:u}),$=(0,g.useMemo)((()=>{const e=a||l||c,t=Boolean(l),r=Boolean(c);return e?t&&h?l:r&&!h?c:e:null}),[h,a,l,c]);(0,g.useEffect)((()=>{void 0!==t&&m(t)}),[t]);const y=(0,g.useMemo)((()=>h?"checked":"unchecked"),[h]);return(0,St.jsxs)(hp,{"data-state":y,disabled:r,animated:d,...p,children:[(0,St.jsx)(gp,{tabIndex:-1,type:"checkbox",className:wt("nextui-switch-input"),"data-state":y,disabled:r,checked:h,onChange:f}),(0,St.jsx)(fp,{role:"switch",tabIndex:r?-1:0,checked:h,"aria-checked":h,"aria-disabled":r,animated:d,disabled:r,squared:n,bordered:i,shadow:s,"data-state":y,className:wt("nextui-switch",`nextui-switch--${y}`,{"nextui-switch-checked":h,"nextui-switch-disabled":r}),...b,children:(0,St.jsx)(mp,{className:"nextui-switch-circle",children:$})})]})};bp.toString=()=>".nextui-switch";const $p=vt(m().memo(bp),{disabled:!1,bordered:!1,shadow:!1,squared:!1,animated:!0,preventDefault:!0,initialChecked:!1}),yp=je({"0%":{opacity:0},"60%":{opacity:.75},"100%":{opacity:1}}),vp=Oe("div",{position:"relative",display:"inline-block",zIndex:"$max",outline:"none",width:"100%",margin:"$9 auto",verticalAlign:"middle","@sm":{width:"90%",maxWidth:"90%"},variants:{animated:{true:{"&":{animationName:yp,animationDuration:"200ms",animationTimingFunction:"ease-in",animationDirection:"normal"}},false:{transition:"none"}}}}),xp=Oe("div",{position:"fixed",top:0,left:0,right:0,bottom:0,size:"100%",pe:"none",zIndex:"$max","@motion":{transition:"none"},variants:{blur:{true:{bg:"$black",opacity:"$$backdropOpacity",transition:"opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1)","@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none))":{opacity:1,transition:"background 0.35s cubic-bezier(0.4, 0, 0.2, 1)",backdropFilter:"saturate(180%) blur(20px)",bg:"rgba(0, 0, 0, 0.1)"}},false:{bg:"$black",opacity:"$$backdropOpacity",transition:"opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1)"}},animated:{false:{transition:"none"}}}}),wp=Oe("div",{position:"fixed",top:0,left:0,right:0,bottom:0,overflow:"auto",zIndex:"$max",WebkitOverflowScrolling:"touch",boxSizing:"border-box",textAlign:"center","&:before":{content:"",display:"inline-block",width:0,height:"100%",verticalAlign:"middle"},".nextui-backdrop-wrapper-enter .nextui-backdrop-layer-default":{opacity:0},".nextui-backdrop-wrapper-enter-active .nextui-backdrop-layer-default":{opacity:"$$backdropOpacity"},".nextui-backdrop-wrapper-leave .nextui-backdrop-layer-default":{opacity:"$$backdropOpacity"},".nextui-backdrop-wrapper-leave-active .nextui-backdrop-layer-default":{opacity:0},".nextui-backdrop-wrapper-enter .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.1)"},".nextui-backdrop-wrapper-enter-active .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.4)"},".nextui-backdrop-wrapper-leave .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.4)"},".nextui-backdrop-wrapper-leave-active .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.1)"},variants:{fullScreen:{true:{display:"inline-flex",overflow:"hidden",[`& ${vp}`]:{width:"100vw",maxWidth:"100vw",height:"100vh",margin:0},[`& ${xp}`]:{display:"none"}}}},defaultVariants:{fullScreen:!1}}),Sp=m().memo((({children:e,onClick:t,onKeyPress:r,visible:o,maxWidth:n,blur:i,animated:s,opacity:a,preventDefault:l,className:c,css:d,...u})=>{const[,p,h]=f(!1),m=e=>{h.current||t&&t(e)},b=(0,g.useCallback)((e=>{e.stopPropagation()}),[]),$=()=>{if(!h.current)return;const e=setTimeout((()=>{p(!1),clearTimeout(e)}),0)},{bindings:y}=mt((e=>{r&&r(e)}),[ut.Escape,ut.Space],{disableGlobalEvent:!0,preventDefault:l}),v=(0,g.useMemo)((()=>o?"open":"closed"),[o]),x=(0,g.useMemo)((()=>(0,St.jsxs)(wp,{tabIndex:-1,role:"button","aria-hidden":!0,"data-state":v,onClick:m,onMouseUp:$,css:{$$backdropOpacity:a,...d},className:wt("nextui-backdrop",`nextui-backdrop--${v}`,c),...y,...u,children:[(0,St.jsx)(xp,{className:wt("nextui-backdrop-layer",i?"nextui-backdrop-layer-blur":"nextui-backdrop-layer-default"),animated:s,blur:i}),(0,St.jsx)(vp,{animated:s,className:"nextui-backdrop-content",onClick:b,css:{maxWidth:n},onMouseDown:()=>p(!0),children:e})]})),[e]);return(0,St.jsx)(St.Fragment,{children:s?(0,St.jsx)(Vd,{name:"nextui-backdrop-wrapper",visible:o,enterTime:20,leaveTime:20,clearTime:150,children:x}):o?x:null})}));Sp.toString=()=>".nextui-backdrop";const Cp=vt(Sp,{onClick:()=>{},visible:!1,blur:!1,animated:!0,preventDefault:!0,opacity:.5,className:""}),kp=Oe("div",{d:"inline-flex",p:"0 $sm",jc:"center",ai:"center",w:"max-content",maxWidth:"100%",transition:"transform 250ms ease 0ms, box-shadow 0.25s ease 0s","@motion":{transition:"none"}},tl,rl,nl),Ep=Oe("div",{ml:"$sm",d:"inline-flex",fd:"column",alignItems:"flex-start",whiteSpace:"nowrap"}),Pp=Oe("span",{fontSize:"$sm",color:"$text",lh:"$sm",tt:"capitalize",fontWeight:"$medium",maxW:"$60",to:"ellipsis",ov:"hidden"}),Tp=Oe("span",{fontSize:"$xs",color:"$accents7","*:first-child":{mt:0},"*:last-child":{mb:0}}),Ip=m().forwardRef(((e,t)=>{const{as:r,css:o,src:n,text:i,name:s,children:a,altText:l,color:c,squared:d,bordered:u,size:p,description:h,zoomed:g,pointer:m,...f}=e,b=Al(t),{isFocusVisible:$,focusProps:y}=El();return(0,St.jsxs)(kp,{ref:b,as:r,...$n(f,y),css:$n("button"===r?{borderRadius:"$xs",background:"none",appearance:"none",p:0,m:0,outline:"none",border:"none",cursor:"pointer"}:{},o),isFocusVisible:$,children:[(0,St.jsx)(Vl,{className:"nextui-user-avatar",src:n,color:c,squared:d,zoomed:g,pointer:m,bordered:u,text:i,size:p,alt:l}),(0,St.jsxs)(Ep,{className:"nextui-user-info",children:[(0,St.jsx)(Pp,{className:"nextui-user-name",children:s}),(0,St.jsx)(Tp,{className:"nextui-user-desc",children:h||a})]})]})}));Ip.toString=()=>".nextui-user";const Np=Ip,Mp=m().forwardRef(((e,t)=>{const{rel:r="noopener",color:o="primary",target:n="_blank",className:i,children:s,...a}=e;return(0,St.jsx)(Cu,{ref:t,rel:r,color:o,target:n,className:wt("nextui-user-link",i),...a,children:s})}));Mp.toString=()=>".nextui-user-link";const Rp=m().memo(Mp);Np.Link=Rp;const Ap=Np,Lp=je({"0%":{left:"-40%"},"100%":{left:"100%"}}),Bp=Oe("div",{margin:0,padding:0,width:"100%",position:"relative",overflow:"visible",variants:{color:{default:{$$progressColor:"$colors$primary",$$progressShadowColor:"$colors$primaryShadow"},primary:{$$progressColor:"$colors$primary",$$progressShadowColor:"$colors$primaryShadow"},secondary:{$$progressColor:"$colors$secondary",$$progressShadowColor:"$colors$secondaryShadow"},success:{$$progressColor:"$colors$success",$$progressShadowColor:"$colors$successShadow"},warning:{$$progressColor:"$colors$warning",$$progressShadowColor:"$colors$warningShadow"},error:{$$progressColor:"$colors$error",$$progressShadowColor:"$colors$errorShadow"},gradient:{$$progressColor:"$colors$gradient",$$progressShadowColor:"$colors$primaryShadow"}},status:{default:{bg:"$accents2"},primary:{bg:"$primaryLight"},secondary:{bg:"$secondaryLight"},success:{bg:"$successLight"},warning:{bg:"$warningLight"},error:{bg:"$errorLight"}},size:{xs:{$$progressHeight:"$space$2",height:"$$progressHeight",br:"$$progressHeight"},sm:{$$progressHeight:"$space$4",height:"$$progressHeight",br:"$$progressHeight"},md:{$$progressHeight:"$space$8",height:"$$progressHeight",br:"$$progressHeight"},lg:{$$progressHeight:"$space$10",height:"$$progressHeight",br:"$$progressHeight"},xl:{$$progressHeight:"$space$11",height:"$$progressHeight",br:"$$progressHeight"}},indeterminated:{true:{overflow:"hidden"}},squared:{true:{br:"calc($$progressHeight * 0.25)"}}},defaultVariants:{color:"default",status:"default",size:"md"}}),zp=Oe("div",{margin:0,padding:0,width:0,opacity:0,height:"100%",minWidth:"inherit",bg:"$$progressColor",br:"inherit",transition:"width 0.5s cubic-bezier(0.4, 0, 0.2, 1)","@motion":{transition:"none"},variants:{animated:{false:{transition:"none"}},shadow:{true:{normalShadowVar:"$$progressShadowColor"}},striped:{true:{backgroundImage:"linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent)",backgroundSize:"$space$lg $space$lg"}},indeterminated:{true:{position:"absolute",width:"0%",transitionProperty:"background-color, width, left, border-color,opacity, shadow, transform",transitionDuration:"300ms",willChange:"left",minWidth:"50%",animation:`1s ease 0s infinite normal none running ${Lp}`}}}}),Hp=({value:e,max:t,min:r,striped:o,animated:n,shadow:i,indeterminated:s,css:a,...l})=>{const c=(0,g.useMemo)((()=>e>t?t:e<r?r:e),[e,r,t]),d=(0,g.useMemo)((()=>function(e,t,r){return 100*(e-t)/(r-t)}(c,r,t)),[c,r,t]);return(0,St.jsx)(Bp,{role:"progressbar",indeterminated:s,css:{"nextui-progress-wrapper-enter":{opacity:0},".nextui-progress-wrapper-enter-active":{opacity:1,width:`${d}%`},...a},...l,children:(0,St.jsx)(Vd,{visible:!0,name:"nextui-progress-wrapper",enterTime:10,leaveTime:20,clearTime:300,children:(0,St.jsx)(zp,{className:wt("nextui-progress-bar",{"nextui-progress-striped":o,"nextui-progress-indeterminated":s}),"aria-valuenow":c,"aria-valuemin":r,"aria-valuemax":t,striped:o,animated:n,shadow:i,indeterminated:s,...l})})})};Hp.toString=()=>".nextui-progress";const Dp=vt(m().memo(Hp),{striped:!1,animated:!0,shadow:!1,indeterminated:!1,value:0,min:0,max:100}),Op=({size:e,fill:t,plain:r,width:o,height:n,className:i,...s})=>r?(0,St.jsx)("svg",{width:e||o,height:e||n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:i,...s,children:(0,St.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})}):(0,St.jsx)("svg",{width:e||o,height:e||n,viewBox:"0 0 24 24",className:i,...s,children:(0,St.jsx)("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:t})}),Kp=vt(g.memo(Op),{width:24,height:24,plain:!1,className:""}),Fp=je({"0%":{transform:"scale(0.95)"},"40%":{transform:"scale(1.02)"},"80%":{transform:"scale(0.98)"},"100%":{transform:"scale(1)"}}),jp=je({"0%":{opacity:0,transform:"scale(0.95)"},"60%":{opacity:.75,transform:"scale(1.02)"},"100%":{opacity:1,transform:"scale(1)"}}),_p=je({"0%":{opacity:1,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(0.95)"}}),Wp=Oe("div",{outline:"none",overflow:"hidden",width:0,height:0,opacity:0}),Vp=Oe("button",{position:"absolute",background:"transparent",border:"none",zIndex:"$1",top:"$space$3",right:"$space$2",margin:0,d:"inline-flex",ai:"center",height:"auto",cursor:"pointer",boxSizing:"border-box",transition:"$default",padding:"calc($space$sm * 0.5)",color:"$accents4",br:"$space$5",svg:{color:"currentColor"},"&:hover":{svg:{opacity:.8}},variants:{disabled:{true:{cursor:"not-allowed"}}}},el),Up=Oe("div",{display:"flex",flexShrink:0,ai:"center",ov:"hidden",color:"inherit",padding:"$sm $10",fs:"$xs",variants:{noPadding:{true:{padding:0}},autoMargin:{true:{"> *:first-child":{mt:0},"> *:last-child":{mb:0}}}}}),Gp=Oe("div",{display:"flex",flexDirection:"column",flex:"1 1 auto",padding:"$sm $10",oy:"auto",position:"relative",ta:"left",variants:{noPadding:{true:{flex:1,padding:0}},autoMargin:{true:{"> *:first-child":{mt:0},"> *":{mb:"$8"},"> *:last-child":{mb:0}}}}}),Jp=Oe("div",{d:"flex",flexWrap:"wrap",flexShrink:0,overflow:"hidden",color:"inherit",ai:"center",fs:"$xs",padding:"$sm $lg",variants:{noPadding:{true:{padding:0}},autoMargin:{true:{"> *":{m:"$2"}}}}}),Yp=Oe("section",{maxWidth:"100%",verticalAlign:"middle",overflow:"hidden",height:"fit-content(20em)",maxHeight:"inherit",display:"flex",outline:"none",flexDirection:"column",position:"relative",boxSizing:"border-box",color:"$foreground",br:"$lg",boxShadow:"$lg",bg:"$backgroundContrast",animationFillMode:"forwards","@motion":{transition:"none"},"&.nextui-modal-wrapper-enter:not(.nextui-modal-rendered)":{animationName:jp,animationDuration:"200ms",animationTimingFunction:"ease-in",animationDirection:"normal"},"&.nextui-modal-wrapper-leave":{animationName:_p,animationDuration:"50ms",animationTimingFunction:"ease-out"},variants:{fullScreen:{true:{size:"100%",maxHeight:"100%"},false:{"&.nextui-modal-rebound":{animationDuration:"250ms",animationName:Fp,animationTimingFunction:"ease",animationFillMode:"forwards"}}},scroll:{true:{maxHeight:"calc(100vh - 200px)"}},closeButton:{true:{paddingTop:"$lg",[`& ${Vp}`]:{svg:{size:"$10"}}}}},compoundVariants:[{scroll:!0,fullScreen:!0,css:{maxHeight:"100%"}}]}),Xp=({onClick:e,...t})=>(0,St.jsx)(Vp,{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),e&&e(t)},className:"nextui-modal-close-icon","aria-label":"Close",...t,children:(0,St.jsx)(Kp,{plain:!0,size:18,className:"nextui-modal-close-icon-svg",fill:"currentColor","aria-hidden":!0})});Xp.toString=()=>".nextui-modal-close-icon";const qp=m().memo(Xp),Zp=({className:e,children:t,visible:r,fullScreen:o,closeButton:n,rebound:i,animated:s,onCloseButtonClick:a,scroll:l,...c})=>{const d=(0,g.useRef)(null),u=(0,g.useRef)(null),p=(0,g.useRef)(null),[h,m]=(0,g.useState)(!1);(0,g.useEffect)((()=>{const e=setTimeout((()=>{m(!0),clearTimeout(e)}),300);return()=>clearTimeout(e)}),[]),(0,g.useEffect)((()=>{if(!r)return;const e=document.activeElement,t=((e,t)=>{if(!e||!t)return!1;let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1})(d.current,e);t||u.current&&u.current.focus()}),[r]);const f=e=>{const t=e.keyCode===ut.Tab;if(!r||!t)return;const o=document.activeElement;e.shiftKey?o===u.current&&p.current&&p.current.focus():o===p.current&&u.current&&u.current.focus()},b=()=>{a&&a()},$=(0,g.useMemo)((()=>r?"open":"closed"),[r]),y=(0,g.useMemo)((()=>(0,St.jsxs)(Yp,{role:"dialog",tabIndex:-1,"aria-modal":r,ref:d,"data-state":$,fullScreen:o,scroll:l,closeButton:n,className:wt("nextui-modal",`nextui-modal--${$}`,{"nextui-modal-fullscreen":o,"nextui-modal-with-close-button":n,"nextui-modal-rebound":i,"nextui-modal-rendered":h},e),...c,onKeyDown:f,children:[(0,St.jsx)(Wp,{role:"button",tabIndex:0,className:"nextui-modal-hide-tab","aria-hidden":"true",ref:u}),n&&(0,St.jsx)(qp,{onClick:b}),t,(0,St.jsx)(Wp,{role:"button",tabIndex:0,className:"nextui-modal-hide-tab","aria-hidden":"true",ref:p})]})),[i,t]);return(0,St.jsx)(St.Fragment,{children:s?(0,St.jsx)(Vd,{name:"nextui-modal-wrapper",visible:r,enterTime:20,leaveTime:20,clearTime:300,children:y}):r?y:null})};Zp.toString=()=>".nextui-modal-wrapper";const Qp=vt(Zp,{className:"",visible:!1,rebound:!1}),eh={},th=m().createContext(eh),rh=({children:e,onClose:t,onOpen:r,open:o,autoMargin:n,width:i,className:s,preventClose:a,blur:l,animated:c,fullScreen:d,noPadding:u,...p})=>{const h=et("modal"),[,m]=nt(null,{scrollLayer:!0}),[b,$,y]=f(!1),[v,x]=(0,g.useState)(!1),w=()=>{t&&t(),$(!1),m(!1)};(0,g.useEffect)((()=>{void 0!==o&&(o&&r&&r(),!o&&y.current&&t&&t(),$(o),m(o))}),[o]);const S=()=>{x(!0);const e=setTimeout((()=>{x(!1),clearTimeout(e)}),300)},{bindings:C}=mt((()=>{a?S():w()}),ut.Escape,{disableGlobalEvent:!0,preventDefault:!0}),k=(0,g.useMemo)((()=>({close:w,autoMargin:n,noPadding:u})),[]);return h?(0,Ss.createPortal)((0,St.jsx)(th.Provider,{value:k,children:(0,St.jsx)(Cp,{onClick:()=>{a?S():w()},visible:b,maxWidth:i,fullScreen:d,blur:l,animated:c,...C,children:(0,St.jsx)(Qp,{visible:b,onCloseButtonClick:w,className:s,fullScreen:d,rebound:v,animated:c,...p,children:e})})}),h):null};rh.toString=()=>".nextui-modal",rh.defaultProps={width:"400px",className:"",preventClose:!1,fullScreen:!1,closeButton:!1,animated:!0,blur:!1,scroll:!1,noPadding:!1};const oh=rh,nh=({children:e,className:t,justify:r,autoMargin:o,css:n,...i})=>{const{autoMargin:s,noPadding:a}=(0,g.useContext)(th),l=(0,g.useMemo)((()=>void 0!==s?s:o),[o,s]);return(0,St.jsx)(Up,{className:wt("nextui-modal-header",{"nextui-modal-header-auto-margin":l,"nextui-modal-header-no-padding":a},t),noPadding:a,autoMargin:l,css:{justifyContent:r,...n},...i,children:e})};nh.toString=()=>".nextui-modal-header";const ih=vt(m().memo(nh),{className:"",justify:"center",autoMargin:!0}),sh=({className:e,children:t,autoMargin:r,...o})=>{const{autoMargin:n,noPadding:i}=(0,g.useContext)(th),s=(0,g.useMemo)((()=>void 0!==n?n:r),[r,n]);return(0,St.jsx)(Gp,{className:wt("nextui-modal-body",{"nextui-modal-body-auto-margin":s,"nextui-modal-body-no-padding":i},e),autoMargin:s,noPadding:i,...o,children:t})};sh.toString=()=>".nextui-modal-body";const ah=vt(m().memo(sh),{className:"",autoMargin:!0}),lh=({children:e,className:t,justify:r,autoMargin:o,css:n,...i})=>{const{autoMargin:s,noPadding:a}=(0,g.useContext)(th),l=(0,g.useMemo)((()=>void 0!==s?s:o),[o,s]);return(0,St.jsx)(Jp,{className:wt("nextui-modal-footer",{"nextui-modal-footer-auto-margin":l,"nextui-modal-footer-no-padding":a},t),noPadding:a,autoMargin:l,css:{justifyContent:r,...n},...i,children:e})};lh.toString=()=>".nextui-modal-footer";const ch=vt(m().memo(lh),{className:"",justify:"flex-end",autoMargin:!0});oh.Header=ih,oh.Body=ah,oh.Footer=ch;const dh=oh,uh=(e=!1)=>{const[t,r,o]=f(e);return{visible:t,setVisible:r,currentRef:o,bindings:{open:t,onClose:()=>r(!1)}}},ph=je({"0%":{transform:"scale(1)"},"60%":{transform:"scale($$paginationScaleTransform)"},"100%":{transform:"scale(1)"}}),hh=Oe("svg",{color:"currentColor",stroke:"currentColor",variants:{isEllipsis:{true:{transform:"0deg"}},isBefore:{true:{}}},compoundVariants:[{isEllipsis:!0,isBefore:!0,css:{transform:"rotate(180deg)"}}]}),gh=Oe("svg",{transform:"rotate(180deg)",variants:{isPrev:{true:{transform:"rotate(0deg)"}}}}),mh=Oe("span",{position:"relative",display:"inline-flex",alignItems:"center",top:0,left:0,zIndex:"$2"}),fh=Oe("button",{border:"none",position:"relative",display:"inline-flex",margin:"0 $$paginationItemMargin",ai:"center",jc:"center",padding:0,boxSizing:"border-box",tt:"capitalize",us:"none",whiteSpace:"nowrap",ta:"center",verticalAlign:"middle",bs:"none",outline:"none",height:"$$paginationSize",minWidth:"$$paginationSize",fs:"inherit",cursor:"pointer",br:"$$paginationItemRadius",color:"$text",bg:"$accents0","@motion":{transition:"none"},"&:hover":{bg:"$accents1"},[`& ${gh}`]:{size:"$$paginationFontSize"},[`& ${hh}`]:{size:"$$paginationFontSize"},variants:{active:{true:{fontWeight:"$bold",cursor:"default",boxShadow:"$sm",[`& ${mh}`]:{color:"$white"}}},disabled:{true:{color:"$accents5",cursor:"not-allowed"}},bordered:{true:{bg:"transparent",border:"$$paginationItemBorderWeight solid $accents2"}},onlyDots:{true:{}},preserveContent:{true:{}},animated:{true:{transition:"transform 0.25s ease 0s, background 0.25s ease 0s, box-shadow 0.25s ease 0s"},false:{transition:"none"}}},compoundVariants:[{onlyDots:!0,preserveContent:!1,css:{[`& ${mh}`]:{display:"none"}}},{animated:!0,disabled:!1,active:!1,css:{"&:active":{transform:"scale($$paginationScaleTransform)",fs:"calc($$paginationFontSize * 0.9)"}}}]},el),bh=Oe("div",{position:"absolute",contain:"strict",top:"0px",zIndex:"$1",bg:"$$paginationColor",br:"$$paginationItemRadius",height:"$$paginationSize",minWidth:"$$paginationSize",animationName:`${ph}`,animationDirection:"normal","&.nextui-pagination-highlight--moving":{transform:"scale($$paginationScaleTransform)"},"@motion":{transition:"none","&.nextui-pagination-highlight--moving":{transform:"scale(1)"}},variants:{animated:{true:{animationDuration:"350ms",animationTimingFunction:"ease",transition:"left 350ms ease 0s, transform 300ms ease 0s"},false:{animationDuration:"none",animationTimingFunction:"none",transition:"none","&.nextui-pagination-highlight--moving":{transform:"scale(1)"}}},noMargin:{true:{br:"$squared"}},rounded:{true:{}},shadow:{true:{normalShadowVar:"$$paginationShadowColor"}}},compoundVariants:[{rounded:!0,noMargin:!0,css:{br:"$pill"}}]}),$h=Oe("nav",{m:0,p:0,d:"inline-flex",position:"relative",fontVariant:"tabular-nums",fontFeatureSettings:"tnum",variants:{color:{default:{$$paginationColor:"$colors$primary",$$paginationShadowColor:"$colors$primaryShadow"},primary:{$$paginationColor:"$colors$primary",$$paginationShadowColor:"$colors$primaryShadow"},secondary:{$$paginationColor:"$colors$secondary",$$paginationShadowColor:"$colors$secondaryShadow"},success:{$$paginationColor:"$colors$success",$$paginationShadowColor:"$colors$successShadow"},warning:{$$paginationColor:"$colors$warning",$$paginationShadowColor:"$colors$warningShadow"},error:{$$paginationColor:"$colors$error",$$paginationShadowColor:"$colors$errorShadow"},gradient:{$$paginationColor:"$colors$gradient",$$paginationShadowColor:"$colors$primaryShadow"}},size:{xs:{$$paginationWidth:"$space$10",$$paginationFontSize:"$space$5",fs:"$$paginationFontSize"},sm:{$$paginationWidth:"$space$12",$$paginationFontSize:"$space$6",fs:"$$paginationFontSize"},md:{$$paginationWidth:"$space$13",$$paginationFontSize:"$space$7",fs:"$$paginationFontSize"},lg:{$$paginationWidth:"$space$14",$$paginationFontSize:"$space$8",fs:"$$paginationFontSize"},xl:{$$paginationWidth:"$space$15",$$paginationFontSize:"$space$9",fs:"$$paginationFontSize"}},borderWeight:{light:{$$paginationItemBorderWeight:"$borderWeights$light"},normal:{$$paginationItemBorderWeight:"$borderWeights$normal"},bold:{$$paginationItemBorderWeight:"$borderWeights$bold"},extrabold:{$$paginationItemBorderWeight:"$borderWeights$extrabold"},black:{$$paginationItemBorderWeight:"$borderWeights$black"}},bordered:{true:{}},onlyDots:{true:{$$paginationSize:"calc($$paginationWidth / 2)",$$paginationItemRadius:"$radii$pill",$$paginationScaleTransform:1.05},false:{$$paginationSize:"$$paginationWidth",$$paginationScaleTransform:1.1}},rounded:{true:{$$paginationItemRadius:"$radii$pill"},false:{$$paginationItemRadius:"$radii$squared"}},noMargin:{true:{$$paginationItemRadius:"0px",$$paginationItemMargin:"0",[`& ${fh}:first-of-type`]:{btlr:"$squared",bblr:"$squared"},[`& ${fh}:last-of-type`]:{btrr:"$squared",bbrr:"$squared"}},false:{$$paginationItemMargin:"$space$1"}}},compoundVariants:[{bordered:!0,noMargin:!0,css:{[`& ${fh}:not(:last-child)`]:{borderRight:0}}},{noMargin:!0,rounded:!0,css:{$$paginationItemRadius:"0px"}},{rounded:!1,noMargin:!0,css:{$$paginationItemRadius:"0px"}}],defaultVariants:{color:"default",size:"md",borderWeight:"normal",onlyDots:!1,noMargin:!1,rounded:!1}}),yh=e=>{if(e)switch(e){case bt:return"dots element";case"<":return"previous page button";case">":return"next page button";case"first":return"first page button";case"last":return"last page button";default:return`${e} item`}},vh=({active:e,value:t,children:r,disabled:o,animated:n,bordered:i,onClick:s,onlyDots:a,preserveContent:l,...c})=>{const d=(0,g.useMemo)((()=>e?`${yh(t)} active`:yh(t)),[t,e]);return(0,St.jsx)(fh,{className:wt("nextui-pagination-item",{"nextui-pagination-item-active":e,"nextui-pagination-item-animated":n,"nextui-pagination-item-disabled":o,"nextui-pagination-item-bordered":i,"nextui-pagination-item-only-dots":a,"nextui-pagination-item-preserve-content":l}),animated:n,active:e,disabled:o,bordered:i,onlyDots:a,preserveContent:l,onClick:e=>{o||s&&s(e)},"aria-label":d,tabIndex:o?-1:0,...c,children:(0,St.jsx)(mh,{className:"nextui-pagination-item-content",children:r})})};vh.toString=()=>".nextui-pagination-item";const xh=vt(vh,{preserveContent:!1}),wh=({value:e,isBefore:t,onlyDots:r,animated:o,bordered:n,onClick:i})=>{const[s,a]=(0,g.useState)(!1);return(0,St.jsx)(xh,{value:e,onlyDots:r,animated:o,bordered:n,onClick:e=>i&&i(e),onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:s?(0,St.jsxs)(hh,{role:"presentation",focusable:"false",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",className:"nextui-pagination-ellipsis",isEllipsis:!0,isBefore:t,children:[(0,St.jsx)("path",{d:"M13 17l5-5-5-5"}),(0,St.jsx)("path",{d:"M6 17l5-5-5-5"})]}):(0,St.jsxs)(hh,{viewBox:"0 0 24 24",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",isEllipsis:!1,isBefore:t,children:[(0,St.jsx)("circle",{cx:"12",cy:"12",r:"1",fill:"currentColor"}),(0,St.jsx)("circle",{cx:"19",cy:"12",r:"1",fill:"currentColor"}),(0,St.jsx)("circle",{cx:"5",cy:"12",r:"1",fill:"currentColor"})]})})},Sh=({isPrev:e,disabled:t,onlyDots:r,animated:o,bordered:n,onClick:i,...s})=>(0,St.jsx)(xh,{preserveContent:!0,value:e?"<":">",bordered:n,animated:o,onlyDots:r,disabled:t,onClick:e=>i&&i(e),children:(0,St.jsx)(gh,{role:"presentation",focusable:"false",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"nextui-pagination-icon",isPrev:e,...s,children:(0,St.jsx)("path",{d:"M15.5 19l-7-7 7-7",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})});Sh.toString=()=>".nextui-pagination-icon";const Ch=m().memo(Sh),kh=({active:e,shadow:t,noMargin:r,rounded:o,css:n,...i})=>{const[s,a]=(0,g.useState)(e),[l,c]=(0,g.useState)("");(0,g.useEffect)((()=>{if(e!==s){a(e),c("nextui-pagination-highlight--moving");const t=setTimeout((()=>{c(""),clearTimeout(t)}),350)}}),[e]);const d=(0,g.useMemo)((()=>r?`var(--nextui--paginationSize) * ${s}`:`var(--nextui--paginationSize) * ${s} + ${4*s+2}px`),[s,r]);return(0,St.jsx)(bh,{"aria-hidden":!0,shadow:t,rounded:o,className:wt("nextui-pagination-highlight",l,{"nextui-pagination-highlight--rounded":o,"nextui-pagination-highlight--active":e,"nextui-pagination-highlight--no-margin":r,"nextui-pagination-highlight--shadow":t},i.className),noMargin:r,style:$n({"--nextui--paginationLeft":`calc(${d})`},(null==i?void 0:i.style)||{}),css:{left:"var(--nextui--paginationLeft)",...n},...i})};kh.toString=()=>".nextui-pagination-highlight";const Eh=kh,Ph=({page:e,initialPage:t,onlyDots:r,total:o,loop:n,siblings:i,boundaries:s,shadow:a,animated:l,bordered:c,dotsJump:d,controls:u,noMargin:p,onChange:h,rounded:m,...f})=>{const{range:b,active:$,setPage:y,previous:v,next:x,first:w,last:S}=$t({page:e,initialPage:t,siblings:r?10:i,boundaries:r?10:s,total:o,onChange:h}),C=(0,g.useCallback)(((e,t)=>{if(e===bt){const n=t<b.indexOf($);return(0,St.jsx)(wh,{value:e,bordered:c,animated:l,isBefore:n,onlyDots:r,onClick:()=>y(n?$-d>=1?$-d:1:$+d<=o?$+d:o)},`nextui-pagination-item-${e}-${t}`)}return(0,St.jsx)(xh,{value:e,animated:l,bordered:c,active:e===$,onClick:()=>e!==$&&y(e),onlyDots:r,children:e},`nextui-pagination-item-${e}-${t}`)}),[o,r,$,c,l]);return(0,St.jsxs)($h,{noMargin:p,bordered:c,rounded:m,onlyDots:r,className:wt("nextui-pagination",{"nextui-pagination--no-margin":p,"nextui-pagination--bordered":c,"nextui-pagination--shadow":a,"nextui-pagination--rounded":m}),...f,children:[u&&(0,St.jsx)(Ch,{isPrev:!0,bordered:c,animated:l,onlyDots:r,onClick:()=>n&&1===$?S():v(),disabled:!n&&1===$}),(0,St.jsx)(Eh,{noMargin:p,animated:l,shadow:a,rounded:m,active:u?b.indexOf($)+1:b.indexOf($)}),b.map(C),u&&(0,St.jsx)(Ch,{bordered:c,animated:l,onlyDots:r,onClick:()=>n&&$===o?w():x(),disabled:!n&&$===o})]})};Ph.defaultProps={shadow:!1,controls:!0,bordered:!1,initialPage:1,siblings:1,boundaries:1,dotsJump:5,total:1,loop:!1,animated:!0,onlyDots:!1,noMargin:!1,rounded:!1},Ph.toString=()=>".nextui-pagination";const Th=m().memo(Ph),Ih={disabled:!1,bordered:!1,readOnly:!1,clearable:!1,rounded:!1,animated:!0,underlined:!1,shadow:!0,fullWidth:!1,contentClickable:!1,contentRightStyling:!0,contentLeftStyling:!0,required:!1,width:"initial",size:"md",color:"default",helperColor:"default",status:"default",borderWeight:"normal",autoComplete:"off",className:"",placeholder:"",initialValue:""},Nh=Oe("div",{$$inputColor:"$colors$accents0",$$inputTextColor:"$colors$text",$$inputPlaceholderColor:"$colors$accents6",$$inputShadow:"$shadows$sm",$$inputBorderColor:"$colors$border",$$inputHoverBorderColor:"$colors$foreground",$$inputLabelColor:"$$inputHoverBorderColor",display:"inline-flex",flexDirection:"column",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitBoxAlign:"center",variants:{color:{default:{},primary:{$$inputHoverBorderColor:"$colors$primary",$$inputLabelColor:"$colors$primary"},secondary:{$$inputHoverBorderColor:"$colors$secondary",$$inputLabelColor:"$colors$secondary"},success:{$$inputHoverBorderColor:"$colors$success",$$inputLabelColor:"$colors$success"},warning:{$$inputHoverBorderColor:"$colors$warning",$$inputLabelColor:"$colors$warning"},error:{$$inputHoverBorderColor:"$colors$error",$$inputLabelColor:"$colors$error"}},status:{default:{},primary:{$$inputColor:"$colors$primaryLight",$$inputPlaceholderColor:"$colors$primaryLightContrast",$$inputTextColor:"$colors$primaryLightContrast",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$primary"},secondary:{$$inputColor:"$colors$secondaryLight",$$inputPlaceholderColor:"$colors$secondaryLightContrast",$$inputTextColor:"$colors$secondaryLightContrast",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$secondary"},success:{$$inputColor:"$colors$successLight",$$inputPlaceholderColor:"$colors$successLightContrast",$$inputTextColor:"$colors$successLightContrast",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$success"},warning:{$$inputColor:"$colors$warningLight",$$inputPlaceholderColor:"$colors$warningLightContrast",$$inputTextColor:"$colors$warningLightContrast",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$warning"},error:{$$inputColor:"$colors$errorLight",$$inputPlaceholderColor:"$colors$errorLightContrast",$$inputTextColor:"$colors$errorLightContrast",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$error"}},helperColor:{default:{$$inputHelperColor:"$colors$text"},primary:{$$inputHelperColor:"$colors$primary"},secondary:{$$inputHelperColor:"$colors$secondary"},success:{$$inputHelperColor:"$colors$success"},warning:{$$inputHelperColor:"$colors$warning"},error:{$$inputHelperColor:"$colors$error"}},borderWeight:{light:{$$inputBorderWeight:"$borderWeights$light"},normal:{$$inputBorderWeight:"$borderWeights$normal"},bold:{$$inputBorderWeight:"$borderWeights$bold"},extrabold:{$$inputBorderWeight:"$borderWeights$extrabold"},black:{$$inputBorderWeight:"$borderWeights$black"}},size:{xs:{$$inputBorderRadius:"$space$3",$$inputFontSize:"$fontSizes$xs",$$inputHeightRatio:"1.2",br:"$$inputBorderRadius"},sm:{$$inputBorderRadius:"$space$4",$$inputFontSize:"$fontSizes$xs",$$inputHeightRatio:"1.6",br:"$$inputBorderRadius"},md:{$$inputBorderRadius:"$space$6",$$inputFontSize:"$fontSizes$sm",$$inputHeightRatio:"2",br:"$$inputBorderRadius"},lg:{$$inputBorderRadius:"$space$7",$$inputFontSize:"$fontSizes$md",$$inputHeightRatio:"2.2",br:"$$inputBorderRadius"},xl:{$$inputBorderRadius:"$space$8",$$inputFontSize:"$fontSizes$lg",$$inputHeightRatio:"2.6",br:"$$inputBorderRadius"}},rounded:{true:{$$inputBorderRadius:"$radii$pill"}},disabled:{true:{$$inputColor:"$colors$accents1",$$inputTextColor:"$colors$accents7",$$inputPlaceholderColor:"$colors$accents7",$$inputShadow:"$shadows$sm"}}}}),Mh=Oe("div",{width:"100%",br:"$$inputBorderRadius","@motion":{transition:"none"},variants:{isTextarea:{false:{display:"inline-flex",alignItems:"center",height:"calc($$inputHeightRatio * $9)"}},focused:{true:{}},isReadOnly:{false:{}},underlined:{true:{}},animated:{true:{transition:"$default"},false:{transition:"none"}}},compoundVariants:[{isReadOnly:!1,underlined:!0,css:{transform:"none"}},{focused:!0,animated:!0,isReadOnly:!1,underlined:!1,css:{transform:"translateY(-$space$1)"}}]}),Rh=Oe("input",{padding:0,fontSize:"$$inputFontSize",bg:"transparent",border:"none",color:"$$inputTextColor",br:0,outline:"none",size:"100%",minWidth:0,WebkitAppearance:"none","::placeholder":{color:"$$inputPlaceholderColor",transition:"opacity 0.25s ease 0s",MozTransition:"opacity 0.25s ease 0s",MsTransition:"opacity 0.25s ease 0s",WebkitTransition:"opacity 0.25s ease 0s"},"@motion":{transition:"none","&::placeholder":{transition:"none"}},"&:disabled":{pe:"none",color:"$accents4",cursor:"not-allowed"},variants:{isTextarea:{true:{boxShadow:"none",display:"block",size:"100%",resize:"none",border:"none",outline:"none"}},focused:{true:{"&::placeholder":{opacity:0,transition:"opacity 0.25s ease 0s"}}},bordered:{true:{padding:"0 $3"}},rounded:{true:{padding:"0 $3"}},animated:{false:{transition:"none","::placeholder":{transition:"none"}}},hasLeftContent:{true:{ml:0}},hasRightContent:{true:{mr:0}}}}),Ah=Oe("div",{flex:1,position:"relative",br:"$$inputBorderRadius",bg:"$$inputColor",display:"inline-flex",verticalAlign:"middle",alignItems:"center",userSelect:"none","@motion":{transition:"none","&:before":{transition:"none"},"&:after":{transition:"none"}},variants:{focused:{true:{}},isReadOnly:{true:{}},bordered:{true:{bg:"transparent",border:"none",boxShadow:"0 0 0 $$inputBorderWeight $$inputBorderColor",transition:"box-shadow 0.25s ease"}},shadow:{true:{transition:"$default"}},disabled:{true:{cursor:"not-allowed"}},underlined:{true:{bg:"transparent",[`& ${Rh}`]:{margin:"$2 $3"},"&:before":{content:"",position:"absolute",zIndex:"$2",width:0,bottom:0,height:"$1",left:"50%",transform:"translate(-50%)",background:"$$inputHoverBorderColor",transition:"width 0.25s ease"},"&:after":{content:"",position:"absolute",zIndex:"$1",bottom:0,width:"100%",height:"$$inputBorderWeight",bg:"$$inputBorderColor"}},false:{[`& ${Rh}`]:{margin:"$2 $5"}}},animated:{false:{transition:"none","&:before":{transition:"none"},"&:after":{transition:"none"}}},isTextarea:{true:{boxSizing:"border-box",width:"100%",maxWidth:"100%",height:"auto"},false:{height:"100%"}}},compoundVariants:[{bordered:!0,underlined:!0,css:{boxShadow:"0 0 0 0px $$inputBorderColor"}},{focused:!0,underlined:!0,css:{"&:before":{width:"100%"}}},{focused:!0,shadow:!0,isReadOnly:!1,underlined:!1,css:{boxShadow:"$$inputShadow"}},{focused:!0,bordered:!0,isReadOnly:!1,underlined:!1,css:{boxShadow:"0 0 0 $$inputBorderWeight $$inputHoverBorderColor"}},{bordered:!0,isReadOnly:!1,underlined:!1,css:{"&:hover":{boxShadow:"0 0 0 $$inputBorderWeight $$inputHoverBorderColor"}}},{isTextarea:!0,underlined:!1,css:{[`& ${Rh}`]:{margin:"$xs $sm"}}}]}),Lh=Oe("div",{position:"absolute",opacity:0,bottom:"calc($$inputHeightRatio * -$space$5)","@motion":{transition:"none"},variants:{animated:{true:{transition:"opacity 0.25s ease"},false:{transition:"none"}},withValue:{true:{opacity:1}}}}),Bh=Oe("p",{margin:"$1 0 0 $5",fontSize:"$space$5",color:"$$inputHelperColor"}),zh=Oe("span",{},ol),Hh=Oe("label",{d:"block",fontWeight:"$normal",color:"$$inputLabelColor",p:"0 0 0 $2",mb:"$3",fs:"$$inputFontSize",lh:"$md",WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",us:"none","> *:first-child":{marginTop:0},"> *:last-child":{mb:0},"@motion":{transition:"none"},variants:{rounded:{true:{padding:"0 0 0 $3"}},asPlaceholder:{true:{position:"absolute",padding:0,zIndex:"$1",left:"$space$6",top:"20%",mb:0,cursor:"text",color:"$$inputPlaceholderColor",transition:"left 0.25s ease 0s, color 0.25s ease 0s, top 0.25s ease 0s"}},animated:{false:{transition:"none"}},focused:{true:{color:"$$inputHoverBorderColor"}},underlined:{true:{}},withValue:{true:{}},isTextarea:{true:{}},bordered:{true:{}},hasContentLeft:{true:{}}},compoundVariants:[{underlined:!0,asPlaceholder:!0,css:{left:"$space$2"}},{asPlaceholder:!0,focused:!0,underlined:!1,isTextarea:!1,css:{top:"-72%",left:"$2",cursor:"inherit"}},{asPlaceholder:!0,focused:!0,underlined:!0,isTextarea:!1,css:{top:"-72%",left:"0px",cursor:"inherit"}},{asPlaceholder:!0,withValue:!0,underlined:!1,isTextarea:!1,css:{color:"$$inputTextColor",top:"-72%",left:"$2",cursor:"inherit"}},{asPlaceholder:!0,withValue:!0,underlined:!0,isTextarea:!1,css:{color:"$$inputTextColor",top:"-72%",left:"0px",cursor:"inherit"}},{asPlaceholder:!0,isTextarea:!0,css:{top:"$5"}},{asPlaceholder:!0,hasContentLeft:!0,css:{left:"calc($space$6 + $$inputHeightRatio * $space$7)"}},{asPlaceholder:!0,isTextarea:!0,focused:!0,css:{top:"calc(-$space$10 - $space$3)",left:"$2"}},{asPlaceholder:!0,isTextarea:!0,withValue:!0,css:{top:"-$11"}},{asPlaceholder:!0,focused:!0,isTextarea:!0,bordered:!0,css:{top:"-$12"}}],defaultVariants:{asPlaceholder:!1}}),Dh=Oe("span",{position:"relative",display:"inline-flex",width:"initial",height:"100%",fontWeight:"$medium",ai:"center",pe:"none",margin:0,padding:"0 $sm",color:"$$inputPlaceholderColor",fontSize:"$$inputFontSize",lineHeight:"$xs",variants:{isRight:{true:{btrr:"$$inputBorderRadius",bbrr:"$$inputBorderRadius"},false:{btlr:"$$inputBorderRadius",bblr:"$$inputBorderRadius"}},isDark:{true:{}},isDefaultStatus:{true:{}},underlined:{true:{bg:"transparent"}},bordered:{true:{"&:after":{display:"none"},"&:before":{display:"none"}}}},compoundVariants:[{isRight:!0,underlined:!0,css:{borderLeftColor:"$$inputPlaceholderColor",borderLeftStyle:"solid",marginLeft:"$2",borderLeftWidth:"calc($$inputBorderWeight / 2)",height:"40%"}},{isRight:!1,underlined:!0,css:{borderRightColor:"$$inputPlaceholderColor",borderRightStyle:"solid",marginRight:"$2",borderRightWidth:"calc($$inputBorderWeight / 1)",height:"40%"}},{isDefaultStatus:!0,bordered:!1,underlined:!1,css:{bg:"$accents2"}},{isDefaultStatus:!0,bordered:!1,underlined:!1,isDark:!0,css:{color:"$accents6"}},{isDefaultStatus:!1,bordered:!0,underlined:!1,css:{bg:"$$inputColor"}},{bordered:!0,isRight:!0,css:{peddingRight:"$sm",paddingLeft:0}},{bordered:!0,isRight:!1,css:{peddingLeft:"$sm",paddingRight:0}}],defaultVariants:{isRight:!1}}),Oh=Oe("span",{variants:{applyStyles:{true:{display:"flex",boxSizing:"content-box",width:"calc($$inputHeightRatio * $space$4)",height:"100%",alignItems:"center",verticalAlign:"center",margin:0,padding:"0 calc($$inputHeightRatio * $3)",color:"$$inputTextColor",lineHeight:"$xs",position:"relative",cursor:"default",pe:"none"}},clickable:{true:{cursor:"pointer",pe:"auto"}}}}),Kh=Oe("button",{position:"absolute",right:0,margin:0,d:"inline-flex",ai:"center",border:"none",bg:"transparent",width:"auto",height:"auto",cursor:"pointer",boxSizing:"border-box",transition:"color 250ms ease 0s, transform 250ms ease 0s, opacity 250ms ease 0s",color:"$$inputPlaceholderColor",visibility:"hidden",transform:"translateX(20%)",opacity:0,"&:hover":{opacity:.85},svg:{color:"currentColor",size:"calc($space$5 * $$inputHeightRatio)"},"@motion":{transition:"none"},variants:{visible:{true:{visibility:"visible",transform:"translateX(0)",opacity:1}},underlined:{true:{padding:"0 $1"}},animated:{false:{transition:"none"}},hasContentRight:{true:{padding:0,position:"relative",transform:"translateX(30%)"}},disabled:{true:{cursor:"not-allowed","&:hover":{color:"$accents3"}}}}}),Fh=m().forwardRef((({as:e="input",label:t,labelPlaceholder:r,labelLeft:o,labelRight:n,size:i,helperText:s,color:a,helperColor:l,status:c,contentLeft:d,contentRight:u,contentClickable:p,contentLeftStyling:h,contentRightStyling:m,onContentClick:f,initialValue:b,onChange:$,readOnly:y,value:v,onClearClick:x,clearable:w,shadow:S,animated:C,required:k,width:E,className:P,onBlur:T,onFocus:I,autoComplete:N,placeholder:M,fullWidth:R,borderWeight:A,disabled:L,bordered:B,underlined:z,rounded:H,css:D,...O},K)=>{const F=(0,g.useRef)(null);(0,g.useImperativeHandle)(K,(()=>F.current));const[j,_]=(0,g.useState)(b),[W,V]=(0,g.useState)(!1),{isDark:U}=Ye(),G=(0,g.useMemo)((()=>void 0!==v),[v]),J=(0,g.useMemo)((()=>t||r),[t,r]),Y=(0,g.useMemo)((()=>r?"":M),[M,r]),X=(0,g.useMemo)((()=>R?"100%":E||"initial"),[R,E]),q=(e,t)=>{L||f&&f(e,t)};(0,g.useEffect)((()=>{G&&_(v)}));const Z=(0,g.useMemo)((()=>"textarea"===e),[e]),Q={...O,...G?{value:j}:{defaultValue:b}},{labelProps:ee,fieldProps:te}=Rc({...Q,label:J}),re=(0,g.useMemo)((()=>W?"hover":L?"disabled":y?"read-only":j?"with-value":"normal"),[W,L,y,j]);return(0,St.jsxs)(Nh,{color:a,"data-state":re,helperColor:l,borderWeight:A,status:c,size:i,rounded:H,disabled:L,css:{width:X,...D},className:wt("nextui-input-main-container",`nextui-input-main-container--${re}`),children:[J&&(0,St.jsx)(Hh,{id:ee.id,className:"nextui-input-block-label",htmlFor:ee.htmlFor,isTextarea:Z,underlined:z,animated:C,bordered:B,rounded:H,hasContentLeft:!!d,withValue:!!j,asPlaceholder:!!r,focused:W,children:J}),(0,St.jsx)(Mh,{animated:C,isTextarea:Z,underlined:z,isReadOnly:y,focused:W,className:wt("nextui-input-container",`nextui-input-container--${re}`,{"nextui-input-container--input":!Z,"nextui-input-container--textarea":Z,"nextui-input-container--read-only":y},P),children:(0,St.jsxs)(Ah,{as:J?"div":"label",animated:C,bordered:B,shadow:S,disabled:L,focused:W,isReadOnly:y,underlined:z,isTextarea:Z,className:wt("nextui-input-wrapper",`nextui-input-wrapper--${re}`,{"nextui-input-wrapper--bordered":B,"nextui-input-wrapper--underlined":z,"nextui-input-wrapper--shadow":S}),children:[!J&&M&&(0,St.jsx)(zh,{className:"nextui-input-placeholder",children:M}),o&&(0,St.jsx)(Dh,{className:"nextui-input-label--left",isDefaultStatus:"default"===c,underlined:z,bordered:B,isDark:U,children:o}),d&&(0,St.jsx)(Oh,{className:wt("nextui-input-content","nextui-input-content--left"),applyStyles:h,clickable:p,onClick:e=>q("left",e),children:d}),(0,St.jsx)(Rh,{type:"text",as:e,ref:F,className:wt({"nextui-input":!Z,"nextui-input-textarea":Z,"nextui-input-disabled":L,"nextui-input-rounded":H,"nextui-input-nextui-input-right-content":u,"nextui-input-left-content":d}),isTextarea:Z,focused:W,bordered:B,placeholder:Y,disabled:L,readOnly:y,required:k,onFocus:e=>{V(!0),I&&I(e)},onBlur:e=>{V(!1),T&&T(e)},onChange:e=>{L||y||(_(e.target.value),$&&$(e))},autoComplete:N,hasLeftContent:!!d,hasRightContent:!!u,"data-state":re,"aria-placeholder":Y,"aria-readonly":y,"aria-required":k,"aria-multiline":Z,...Q,...te}),w&&(0,St.jsx)(Kh,{type:"button",className:"nextui-input-clear-button",animated:C,underlined:z,visible:Boolean(j),hasContentRight:!!u,disabled:L||y,onClick:e=>{if(e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),_(""),x&&x(e),!F.current)return;const t=((e,t)=>({...t,target:e,currentTarget:e}))(F.current,e);t.target.value="",$&&$(t),F.current.focus()},children:(0,St.jsx)(Kp,{fill:"currentColor"})}),u&&(0,St.jsx)(Oh,{className:wt("nextui-input-content","nextui-input-content--right"),applyStyles:m,clickable:p,onClick:e=>q("right",e),children:u}),n&&(0,St.jsx)(Dh,{className:"nextui-input-label--right",isDefaultStatus:"default"===c,underlined:z,bordered:B,isRight:!0,isDark:U,children:n})]})}),(0,St.jsx)(Lh,{className:"nextui-input-helper-text-container",withValue:!!s,children:s&&(0,St.jsx)(Bh,{className:"nextui-input-helper-text",children:s})})]})}));Fh.displayName="NextUI.Input",Fh.defaultProps=Ih,Fh.toString=()=>".nextui-input";const jh=Fh,_h=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],Wh={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Vh="undefined"!=typeof document&&!!document.documentElement.currentStyle,Uh=e=>{Object.keys(Wh).forEach((t=>{e.style.setProperty(t,Wh[t],"important")}))};let Gh=null;const Jh=m().forwardRef(((e,t)=>{const r=(0,g.useRef)(null),o=m().useRef(0),n=m().useRef(),{cacheMeasurements:i,rows:s,maxRows:a,minRows:l,onChange:c,onHeightChange:d,css:u,...h}=e;Object.keys(h).forEach((e=>{p.indexOf(e)>-1&&delete h[e]}));const f=void 0!==h.value;(0,g.useImperativeHandle)(t,(()=>r.current));const b=()=>{const e=r.current,t=i&&n.current?n.current:(e=>{const t=window.getComputedStyle(e);if(null===t)return null;const r=(o=t,_h.reduce(((e,t)=>(e[t]=o[t],e)),{}));var o;const{boxSizing:n}=r;return""===n?null:(Vh&&"border-box"===n&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})})(e);if(!t)return;n.current=t;const[c,u]=((e,t,r=1,o=1/0)=>{Gh||(Gh=document.createElement("textarea"),Gh.setAttribute("tabindex","-1"),Gh.setAttribute("aria-hidden","true"),Uh(Gh)),null===Gh.parentNode&&document.body.appendChild(Gh);const{paddingSize:n,borderSize:i,sizingStyle:s}=e,{boxSizing:a}=s;Object.keys(s).forEach((e=>{const t=e;Gh.style[t]=s[t]})),Uh(Gh),Gh.value=t;let l=((e,t)=>{const r=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?r+t.borderSize:r-t.paddingSize})(Gh,e);Gh.value="x";const c=Gh.scrollHeight-n;let d=c*r;"border-box"===a&&(d=d+n+i),l=Math.max(d,l);let u=c*o;return"border-box"===a&&(u=u+n+i),l=Math.min(u,l),[l,c]})(t,e.value||e.placeholder||"x",s||l,s||a);o.current!==c&&(o.current=c,e.style.setProperty("height",`${c}px`,"important"),d&&d(c,{rowHeight:u}))};return"undefined"!=typeof document&&((0,g.useLayoutEffect)(b),y(b)),(0,St.jsx)(tg,{as:"textarea",ref:r,onChange:e=>{f||b(),c&&c(e)},css:{...u},...h})}));Jh.toString=()=>".nextui-textarea";const Yh=vt(Jh,{minRows:3,maxRows:6,cacheMeasurements:!0,initialValue:""}),Xh=({visible:e})=>(0,St.jsx)("svg",{viewBox:"0 0 24 24",width:"16",height:"16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",className:"nextui-input-password-icon",shapeRendering:"geometricPrecision",style:{color:"currentColor"},children:e?(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24"}),(0,St.jsx)("path",{d:"M1 1l22 22"})]}):(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,St.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}),qh=m().memo(Xh),Zh={...Ih,hideToggle:!1,visibleIcon:(0,St.jsx)(qh,{visible:!0}),hiddenIcon:(0,St.jsx)(qh,{visible:!1})},Qh=m().forwardRef((({hideToggle:e,visibleIcon:t,hiddenIcon:r,children:o,...n},i)=>{const s=(0,g.useRef)(null),[a,l]=(0,g.useState)(!1);(0,g.useImperativeHandle)(i,(()=>s.current));const c=()=>{l((e=>!e))},d=(0,g.useMemo)((()=>({...n,ref:s,className:wt("nextui-input-password",n.className),contentClickable:!0,onContentClick:c,type:a?"text":"password"})),[n,c,a,s]),u=(0,g.useMemo)((()=>e?null:a?t:r),[e,a,t,r]);return(0,St.jsx)(jh,{contentRight:u,...d,children:o})}));Qh.toString=()=>".nextui-input-password";const eg=vt(Qh,Zh);jh.Textarea=Yh,jh.Password=eg;const tg=jh;function rg(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}rg({},"Layout",(()=>og));class og{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}validate(e){}getInitialLayoutInfo(e){return e}getFinalLayoutInfo(e){return e}}rg({},"LayoutInfo",(()=>ng));class ng{copy(){let e=new ng(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}constructor(e,t,r){this.type=e,this.key=t,this.parentKey=null,this.rect=r,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}rg({},"Point",(()=>ig));class ig{copy(){return new ig(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return 0===this.x&&0===this.y}constructor(e=0,t=0){this.x=e,this.y=t}}rg({},"Rect",(()=>sg));class sg{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new ig(this.x,this.y)}get topRight(){return new ig(this.maxX,this.y)}get bottomLeft(){return new ig(this.x,this.maxY)}get bottomRight(){return new ig(this.maxX,this.maxY)}intersects(e){return this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}copy(){return new sg(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,r=0,o=0){this.x=e,this.y=t,this.width=r,this.height=o}}rg({},"Size",(()=>ag));class ag{copy(){return new ag(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}constructor(e=0,t=0){this.width=e,this.height=t}}rg({},"ReusableView",(()=>cg));let lg=0;class cg{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}constructor(e){this.virtualizer=e,this.key=++lg}}rg({},"useVirtualizerState",(()=>vg));let dg,ug="undefined"!=typeof window?window.performance:null,pg=ug&&(ug.now||ug.webkitNow||ug.msNow||ug.mozNow),hg=pg?pg.bind(ug):function(){return Date.now?Date.now():(new Date).getTime()};function gg(e){return Math.sin(e*Math.PI/2)}function mg(e,t){let r=new Set;for(let o of e.keys())t.has(o)||r.add(o);return r}class fg{addSample(e){this.count++,this.value+=(e-this.value)/this.count}constructor(){this.count=0,this.value=0}}class bg{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(this.averageTime.addSample(t),e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}collectMetrics(){let e=performance.now()-this.startTime;if(e<500&&this.averagePerf.addSample(e),this.visibleRect.height>0){let e=Math.abs(this.velocity.y*(this.averageTime.value+this.averagePerf.value));this.overscanY.addSample(e)}if(this.visibleRect.width>0){let e=Math.abs(this.velocity.x*(this.averageTime.value+this.averagePerf.value));this.overscanX.addSample(e)}}getOverscannedRect(){let e=this.visibleRect.copy(),t=100*Math.round(Math.min(2*this.visibleRect.height,this.overscanY.value)/100);this.velocity.y>0?(e.y-=.2*t,e.height+=t+.2*t):(e.y-=t,e.height+=t+.2*t);let r=100*Math.round(Math.min(2*this.visibleRect.width,this.overscanX.value)/100);return this.velocity.x>0?(e.x-=.2*r,e.width+=r+.2*r):(e.x-=r,e.width+=r+.2*r),e}constructor(){this.startTime=0,this.averagePerf=new fg,this.averageTime=new fg,this.velocity=new ig(5,5),this.overscanX=new fg,this.overscanY=new fg,this.visibleRect=new sg}}class $g{constructor(){this.level=0,this.actions=[],this.animated=!0,this.initialMap=new Map,this.finalMap=new Map,this.initialLayoutInfo=new Map,this.finalLayoutInfo=new Map,this.removed=new Map,this.toRemove=new Map}}class yg{_setContentSize(e){this._contentSize=e,this.delegate.setContentSize(e)}_setContentOffset(e){let t=new sg(e.x,e.y,this._visibleRect.width,this._visibleRect.height);this.delegate.setVisibleRect(t)}get contentSize(){return this._contentSize}get visibleRect(){return this._visibleRect}set visibleRect(e){this._setVisibleRect(e)}_setVisibleRect(e,t=!1){let r=this._visibleRect;if(e.equals(r))return;this.shouldOverscan&&this._overscanManager.setVisibleRect(e);let o=this.layout&&this.layout.shouldInvalidate(e,this._visibleRect);this._resetAnimatedContentOffset(),this._visibleRect=e,o?this.relayout({offsetChanged:!e.pointEquals(r),sizeChanged:!e.sizeEquals(r)}):this.updateSubviews(t)}get collection(){return this._collection}set collection(e){this._setData(e)}_setData(e){e!==this._collection&&(this._collection?this._runTransaction((()=>{this._collection=e}),this.transitionDuration>0):(this._collection=e,this.reloadData()))}reloadData(){this.relayout({contentChanged:!0})}getItem(e){return this._collection?this._collection.getItem(e):null}get layout(){return this._layout}set layout(e){this.setLayout(e)}setLayout(e,t=!1){if(e===this._layout)return;let r=()=>{this._layout&&(this._layout.virtualizer=null),e.virtualizer=this,this._layout=e};t?this._runTransaction(r):(r(),this.relayout())}_getReuseType(e,t){if("item"===e.type&&t){let r=this.delegate.getType?this.delegate.getType(t):"item";return{type:r,reuseType:"item"===r?"item":e.type+"_"+r}}return{type:e.type,reuseType:e.type}}getReusableView(e){let t=this.getItem(e.key),{reuseType:r}=this._getReuseType(e,t);this._reusableViews[r]||(this._reusableViews[r]=[]);let o=this._reusableViews[r],n=o.length>0?o.pop():new cg(this);return n.viewType=r,this._animatedContentOffset.isOrigin()||((e=e.copy()).rect.x+=this._animatedContentOffset.x,e.rect.y+=this._animatedContentOffset.y),n.layoutInfo=e,this._renderView(n),n}_renderView(e){let{type:t,key:r}=e.layoutInfo;e.content=this.getItem(r),e.rendered=this._renderContent(t,e.content)}_renderContent(e,t){let r=this._renderedContent.get(t);if(null!=r)return r;let o=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,o),o}get visibleViews(){return Array.from(this._visibleViews.values())}getView(e){return this._visibleViews.get(e)||null}getViewsOfType(e){return this.visibleViews.filter((t=>t.layoutInfo&&t.layoutInfo.type===e))}keyForView(e){return e&&e.layoutInfo?e.layoutInfo.key:null}keyAtPoint(e){let t=new sg(e.x,e.y,1,1),r=this.layout.getVisibleLayoutInfos(t)[0];return r?r.key:null}willUnmount(){cancelAnimationFrame(this._relayoutRaf)}relayout(e={}){this._scrollAnimation||"undefined"==typeof requestAnimationFrame||(this._invalidationContext?Object.assign(this._invalidationContext,e):(this._invalidationContext=e,this._relayoutRaf=requestAnimationFrame((()=>{this._relayoutRaf=null,this.relayoutNow()}))))}relayoutNow(e=this._invalidationContext||{}){if(this._relayoutRaf&&(cancelAnimationFrame(this._relayoutRaf),this._relayoutRaf=null,e={...this._invalidationContext,...e}),this._invalidationContext=null,!this.layout||!this._collection||this._scrollAnimation)return;let t=this._getScrollAnchor();"function"==typeof e.beforeLayout&&e.beforeLayout(),this.layout.validate(e),this._setContentSize(this.layout.getContentSize()),"function"==typeof e.afterLayout&&e.afterLayout();let r=this.getVisibleRect(),o=this._restoreScrollAnchor(t,e),n=e.contentChanged?0:o.x,i=e.contentChanged?0:o.y;n=Math.max(0,Math.min(this.contentSize.width-r.width,n)),i=Math.max(0,Math.min(this.contentSize.height-r.height,i));let s=!1;if(n!==r.x||i!==r.y?e.animated||!this._animatedContentOffset.isOrigin()?(this._animatedContentOffset.x+=r.x-n,this._animatedContentOffset.y+=r.y-i,s=this.updateSubviews(e.contentChanged)):this._setContentOffset(new ig(n,i)):s=this.updateSubviews(e.contentChanged),e.transaction&&e.animated||this._applyLayoutInfos(),e.animated&&s){this._enableTransitions();let t=()=>{if(this._disableTransitions(),!this._animatedContentOffset.isOrigin()){let{x:e,y:t}=this.getVisibleRect();this._resetAnimatedContentOffset(),this._setContentOffset(new ig(e,t))}"function"==typeof e.afterAnimation&&e.afterAnimation()};setTimeout(t,this.transitionDuration+100)}else"function"==typeof e.afterAnimation&&e.afterAnimation()}_correctItemOrder(){if(!this._isScrolling&&!this._transaction)for(let e of this._visibleLayoutInfos.keys()){let t=this._visibleViews.get(e);this._children.delete(t),this._children.add(t)}}_enableTransitions(){this.delegate.beginAnimations()}_disableTransitions(){this.delegate.endAnimations()}_getScrollAnchor(){if(!this.anchorScrollPosition)return null;let e=this.getVisibleRect();if(this.delegate.getScrollAnchor){let t=this.delegate.getScrollAnchor(e);if(null!=t){let r=this.layout.getLayoutInfo(t),o=r.rect.getCornerInRect(e);if(o)return{key:r.key,layoutInfo:r,corner:o,offset:r.rect[o].y-e.y}}}if(0===e.y&&!this.anchorScrollPositionAtTop)return null;let t=null;for(let[r,o]of this._visibleViews){let n=o.layoutInfo;if(n&&n.rect.area>0){let o=n.rect.getCornerInRect(e);if(o){let i=n.rect[o].y-e.y;(!t||i<t.offset)&&(t={key:r,layoutInfo:n,corner:o,offset:i})}}}return t}_restoreScrollAnchor(e,t){let r=this.getVisibleRect();if(e){var o;let n=(null===(o=t.transaction)||void 0===o?void 0:o.animated)?t.transaction.finalMap.get(e.key):this.layout.getLayoutInfo(e.layoutInfo.key);if(n){let t=n.rect[e.corner].y-r.y-e.offset;r.y+=t}}return r}getVisibleRect(){let e=this.visibleRect,t=e.x-this._animatedContentOffset.x,r=e.y-this._animatedContentOffset.y;return new sg(t,r,e.width,e.height)}getVisibleLayoutInfos(){let e=this.shouldOverscan?this._overscanManager.getOverscannedRect():this.getVisibleRect();return this._visibleLayoutInfos=this._getLayoutInfoMap(e),this._visibleLayoutInfos}_getLayoutInfoMap(e,t=!1){let r=this.layout.getVisibleLayoutInfos(e),o=new Map;for(let e of r)t&&(e=e.copy()),o.set(e.key,e);return o}updateSubviews(e=!1){if(!this._collection)return;let t,r,o,n=this.getVisibleLayoutInfos(),i=this._visibleViews;if(e)t=n,r=i,o=new Set;else{({toAdd:t,toRemove:r,toUpdate:o}=function(e,t){let r=mg(e,t),o=mg(t,e),n=new Set;for(let r of e.keys())t.has(r)&&n.add(r);return{toRemove:r,toAdd:o,toUpdate:n}}(i,n));for(let e of o){let s=i.get(e);if(!s||!s.layoutInfo)continue;let a=this.getItem(n.get(e).key);if(s.content===a)o.delete(e);else{let{reuseType:n}=this._getReuseType(s.layoutInfo,a);s.viewType!==n&&(o.delete(e),t.add(e),r.add(e))}}if(0===t.size&&0===r.size&&0===o.size)return void(this._transaction&&this._applyLayoutInfos())}let s=new Set;for(let e of r.keys()){let t=this._visibleViews.get(e);t&&(s.add(t),this._visibleViews.delete(e),this._transaction?this._transaction.toRemove.set(e,t):this.reuseView(t))}for(let e of t.keys()){let t,r=n.get(e);this._transaction&&(this._transaction.initialLayoutInfo.has(e)&&(r=this._transaction.initialLayoutInfo.get(e)),t=this._transaction.toRemove.get(e),t&&(this._transaction.toRemove.delete(e),this._applyLayoutInfo(t,r))),t||(t=this.getReusableView(r),s.has(t)||this._children.add(t)),this._visibleViews.set(e,t),s.delete(t)}for(let e of o){let t=i.get(e);this._renderedContent.delete(e),this._renderView(t)}this._transaction||this.removeViews(s),this._correctItemOrder(),this._flushVisibleViews();let a=this._transaction&&(t.size>0||r.size>0||this._hasLayoutUpdates());return a&&requestAnimationFrame((()=>{this._transaction&&requestAnimationFrame((()=>this._applyLayoutInfos()))})),a}afterRender(){this.shouldOverscan&&this._overscanManager.collectMetrics()}_flushVisibleViews(){let e=new Map([[null,[]]]);for(let t of this._children)e.has(t.layoutInfo.parentKey)||e.set(t.layoutInfo.parentKey,[]),e.get(t.layoutInfo.parentKey).push(t),e.has(t.layoutInfo.key)||e.set(t.layoutInfo.key,[]);let t=(r,o)=>o.map((o=>{let n=e.get(o.layoutInfo.key);return this.delegate.renderWrapper(r,o,n,(e=>t(o,e)))})),r=t(null,e.get(null));this.delegate.setVisibleViews(r)}_applyLayoutInfo(e,t){return e.layoutInfo!==t&&(e.layoutInfo=t,!0)}_applyLayoutInfos(){let e=!1;for(let t of this._visibleViews.values()){let r=t.layoutInfo;if(r){let o=this.layout.getLayoutInfo(r.key);this._applyLayoutInfo(t,o)&&(e=!0)}}if(this._transaction){for(let t of this._transaction.toRemove.values()){let r=t.layoutInfo,o=this.layout.getLayoutInfo(r.key);this._applyLayoutInfo(t,o)&&(e=!0)}for(let t of this._transaction.removed.values()){let r=t.layoutInfo,o=this._transaction.finalLayoutInfo.get(r.key)||r;o=this.layout.getFinalLayoutInfo(o.copy()),this._applyLayoutInfo(t,o)&&(e=!0)}}e&&this._flushVisibleViews()}_hasLayoutUpdates(){if(!this._transaction)return!1;for(let e of this._visibleViews.values()){let t=e.layoutInfo;if(!t)return!0;let r=this.layout.getLayoutInfo(t.key);if(!t.rect.equals(r.rect)||t.opacity!==r.opacity||t.transform!==r.transform)return!0}return!1}reuseView(e){e.prepareForReuse(),this._reusableViews[e.viewType].push(e)}removeViews(e){for(let t of e)this._children.delete(t)}updateItemSize(e,t){this.layout.updateItemSize&&(this._scrollAnimation?this._sizeUpdateQueue.set(e,t):this.layout.updateItemSize(e,t)&&this.relayout())}startScrolling(){this._isScrolling=!0}endScrolling(){this._isScrolling=!1,this._correctItemOrder(),this._flushVisibleViews()}_resetAnimatedContentOffset(){this._animatedContentOffset.isOrigin()||(this._animatedContentOffset=new ig(0,0),this._applyLayoutInfos())}scrollToItem(e,t){if(null==e)return;let r=this.layout.getLayoutInfo(e);if(!r)return;let{duration:o=300,shouldScrollX:n=!0,shouldScrollY:i=!0,offsetX:s=0,offsetY:a=0}=t,l=this.visibleRect.x,c=this.visibleRect.y,d=r.rect.x-s,u=r.rect.y-a,p=l+this.visibleRect.width,h=c+this.visibleRect.height;return n&&(d<=l||0===p?l=d:r.rect.maxX>p&&(l+=r.rect.maxX-p)),i&&(u<=c||0===h?c=u:r.rect.maxY>h&&(c+=r.rect.maxY-h)),this.scrollTo(new ig(l,c),o)}scrollTo(e,t=300){return this._scrollAnimation&&(this._scrollAnimation.cancel(),this._scrollAnimation=null),t<=0||this.visibleRect.pointEquals(e)?(this._setContentOffset(e),Promise.resolve()):(this.startScrolling(),this._scrollAnimation=function(e,t,r,o,n){let i,s=!1,a=new Promise((a=>{let l=hg(),c=t.x-e.x,d=t.y-e.y;i=requestAnimationFrame((function u(p){null==dg&&(dg=p>1e12!=hg()>1e12),dg&&(p=hg());let h=p-l;h>r?(n(t),a()):!1===n(new ig(e.x+c*o(h/r),e.y+d*o(h/r)))||s||(i=requestAnimationFrame(u))}))}));return a.cancel=function(){s=!0,cancelAnimationFrame(i)},a}(this.visibleRect,e,t,gg,(e=>{this._setContentOffset(e)})),this._scrollAnimation.then((()=>{this._scrollAnimation=null;for(let[e,t]of this._sizeUpdateQueue)this.updateItemSize(e,t);this._sizeUpdateQueue.clear(),this.relayout(),this._processTransactionQueue(),this.endScrolling()})),this._scrollAnimation)}_runTransaction(e,t){this._startTransaction(),this._nextTransaction&&this._nextTransaction.actions.push(e),this._endTransaction(t)}_startTransaction(){this._nextTransaction||(this._nextTransaction=new $g),this._nextTransaction.level++}_endTransaction(e){return!(!this._nextTransaction||(null!=e&&(this._nextTransaction.animated=e),--this._nextTransaction.level>0||(0===this._nextTransaction.actions.length?(this._nextTransaction=null,1):(null==this._nextTransaction.animated&&(this._nextTransaction.animated=!0),this._transactionQueue.push(this._nextTransaction),this._nextTransaction=null,this._processTransactionQueue(),0))))}_processTransactionQueue(){if(this._transaction||this._scrollAnimation)return;let e=this._transactionQueue.shift();e&&this._performTransaction(e)}_getContentRect(){return new sg(0,0,this.contentSize.width,this.contentSize.height)}_performTransaction(e){this._transaction=e,this.relayoutNow({transaction:e,animated:e.animated,beforeLayout:()=>{e.animated&&(e.initialMap=this._getLayoutInfoMap(this._getContentRect(),!0));for(let t of e.actions)t()},afterLayout:()=>{e.animated?(e.finalMap=this._getLayoutInfoMap(this._getContentRect()),this._setupTransactionAnimations(e)):this._transaction=null},afterAnimation:()=>{if(e.toRemove.size>0||e.removed.size>0)for(let t of function*(...e){for(let t of e)yield*t}(e.toRemove.values(),e.removed.values()))this._children.delete(t),this.reuseView(t);this._transaction=null,this._correctItemOrder(),this._flushVisibleViews(),this._processTransactionQueue()}})}_setupTransactionAnimations(e){let{initialMap:t,finalMap:r}=e;for(let[o,n]of t)r.has(o)?e.initialLayoutInfo.set(o,n):e.finalLayoutInfo.set(n.key,n);for(let[o,n]of r)if(!t.has(o)){let t=this.layout.getInitialLayoutInfo(n.copy());e.initialLayoutInfo.set(o,t)}for(let[t,o]of this._visibleViews)!r.has(t)&&o.layoutInfo.rect.width>0&&(e.removed.set(t,o),this._visibleViews.delete(t),o.layoutInfo&&(e.finalLayoutInfo.has(o.layoutInfo.key)||e.finalLayoutInfo.set(o.layoutInfo.key,o.layoutInfo)))}constructor(e={}){var t;this._contentSize=new ag,this._visibleRect=new sg,this._reusableViews={},this._visibleLayoutInfos=new Map,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._children=new Set,this._invalidationContext=null,this._overscanManager=new bg,this._scrollAnimation=null,this._isScrolling=!1,this._sizeUpdateQueue=new Map,this._animatedContentOffset=new ig(0,0),this._transaction=null,this._nextTransaction=null,this._transactionQueue=[],this.transitionDuration=null!==(t=e.transitionDuration)&&void 0!==t?t:500,this.anchorScrollPosition=e.anchorScrollPosition||!1,this.anchorScrollPositionAtTop=e.anchorScrollPositionAtTop||!1,this.shouldOverscan=!1!==e.shouldOverscan;for(let t of["delegate","size","layout","collection"])e[t]&&(this[t]=e[t])}}function vg(e){let[t,r]=(0,g.useState)([]),[o,n]=(0,g.useState)(new ag),[i,s]=(0,g.useState)(!1),[a,l]=(0,g.useState)(!1),c=(0,g.useMemo)((()=>new yg),[]);return c.delegate={setVisibleViews:r,setVisibleRect(t){c.visibleRect=t,e.onVisibleRectChange(t)},setContentSize:n,renderView:e.renderView,renderWrapper:e.renderWrapper,beginAnimations:()=>s(!0),endAnimations:()=>s(!1),getScrollAnchor:e.getScrollAnchor},c.layout=e.layout,c.collection=e.collection,c.transitionDuration=e.transitionDuration,pn((()=>{c.afterRender()})),(0,g.useEffect)((()=>()=>c.willUnmount()),[]),{virtualizer:c,visibleViews:t,setVisibleRect:(0,g.useCallback)((e=>{c.visibleRect=e}),[c]),contentSize:o,isAnimating:i,isScrolling:a,startScrolling:(0,g.useCallback)((()=>{c.startScrolling(),l(!0)}),[c]),endScrolling:(0,g.useCallback)((()=>{c.endScrolling(),l(!1)}),[c])}}function xg(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}var wg={};xg(wg,"announce",(()=>Eg)),xg(wg,"clearAnnouncer",(()=>Pg)),xg(wg,"destroyAnnouncer",(()=>Tg));let Sg=m().createRef(),Cg=null,kg=0;function Eg(e,t="assertive",r=7e3){Ig((o=>o.announce(e,t,r)))}function Pg(e){Ig((t=>t.clear(e)))}function Tg(){Sg.current&&(Cs().unmountComponentAtNode(Cg),document.body.removeChild(Cg),Cg=null)}function Ig(e){Sg.current?e(Sg.current):(Cg=document.createElement("div"),Cg.dataset.liveAnnouncer="true",document.body.prepend(Cg),Cs().render(m().createElement(Ng,{ref:Sg}),Cg,(()=>e(Sg.current))))}const Ng=m().forwardRef(((e,t)=>{let[r,o]=(0,g.useState)([]),[n,i]=(0,g.useState)([]),s=e=>{e&&"assertive"!==e||o([]),e&&"polite"!==e||i([])},a=(e,t="assertive",r=7e3)=>{let n=kg++;"assertive"===t?o((t=>[...t,{id:n,text:e}])):i((t=>[...t,{id:n,text:e}])),""!==e&&setTimeout((()=>{"assertive"===t?o((e=>e.filter((e=>e.id!==n)))):i((e=>e.filter((e=>e.id!==n))))}),r)};return(0,g.useImperativeHandle)(t,(()=>({announce:a,clear:s}))),m().createElement(g.Fragment,null,m().createElement(Mg,{"aria-live":"assertive"},r.map((e=>m().createElement("div",{key:e.id},e.text)))),m().createElement(Mg,{"aria-live":"polite"},n.map((e=>m().createElement("div",{key:e.id},e.text)))))}));function Mg({children:e,"aria-live":t}){return m().createElement(Is,{role:"log","aria-live":t,"aria-relevant":"additions"},e)}function Rg(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Ag(e){return ti()?e.altKey:e.ctrlKey}function Lg(e){return qn()?e.metaKey:e.ctrlKey}function Bg(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:o}=e,n=(0,g.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let i=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!i||e.ctrlKey||e.metaKey)return;" "===i&&n.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),n.search+=i;let s=t.getKeyForSearch(n.search,r.focusedKey);null==s&&(s=t.getKeyForSearch(n.search)),null!=s&&(r.setFocusedKey(s),o&&o(s)),clearTimeout(n.timeout),n.timeout=setTimeout((()=>{n.search=""}),500)}:null}}}function zg(e){let{selectionManager:t,keyboardDelegate:r,ref:o,autoFocus:n=!1,shouldFocusWrap:i=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,selectOnFocus:l="replace"===t.selectionBehavior,disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:u=!1,isVirtualized:p,scrollRef:h=o}=e,{direction:m}=Go(),f=(0,g.useRef)({top:0,left:0});ii(h,"scroll",p?null:()=>{f.current={top:h.current.scrollTop,left:h.current.scrollLeft}});const b=(0,g.useRef)(n);(0,g.useEffect)((()=>{if(b.current){let e=null;"first"===n&&(e=r.getFirstKey()),"last"===n&&(e=r.getLastKey());let i=t.selectedKeys;i.size&&(e=i.values().next().value),t.setFocused(!0),t.setFocusedKey(e),null!=e||d||al(o.current)}b.current=!1}),[]),(0,g.useEffect)((()=>{if(!p&&t.focusedKey&&(null==h?void 0:h.current)){let e=h.current.querySelector(`[data-key="${t.focusedKey}"]`);e&&ai(h.current,e)}}),[p,h,t.focusedKey]);let $,y={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!o.current.contains(e.target))return;const n=(r,o)=>{null!=r&&(t.setFocusedKey(r,o),e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):l&&!Ag(e)&&t.replaceSelection(r))};switch(e.key){case"ArrowDown":if(r.getKeyBelow){var c,d;e.preventDefault();let o=null!=t.focusedKey?r.getKeyBelow(t.focusedKey):null===(c=r.getFirstKey)||void 0===c?void 0:c.call(r);null==o&&i&&(o=null===(d=r.getFirstKey)||void 0===d?void 0:d.call(r,t.focusedKey)),n(o)}break;case"ArrowUp":if(r.getKeyAbove){var p,h;e.preventDefault();let o=null!=t.focusedKey?r.getKeyAbove(t.focusedKey):null===(p=r.getLastKey)||void 0===p?void 0:p.call(r);null==o&&i&&(o=null===(h=r.getLastKey)||void 0===h?void 0:h.call(r,t.focusedKey)),n(o)}break;case"ArrowLeft":r.getKeyLeftOf&&(e.preventDefault(),n(r.getKeyLeftOf(t.focusedKey),"rtl"===m?"first":"last"));break;case"ArrowRight":r.getKeyRightOf&&(e.preventDefault(),n(r.getKeyRightOf(t.focusedKey),"rtl"===m?"last":"first"));break;case"Home":if(r.getFirstKey){e.preventDefault();let o=r.getFirstKey(t.focusedKey,Lg(e));t.setFocusedKey(o),Lg(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(o):l&&t.replaceSelection(o)}break;case"End":if(r.getLastKey){e.preventDefault();let o=r.getLastKey(t.focusedKey,Lg(e));t.setFocusedKey(o),Lg(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(o):l&&t.replaceSelection(o)}break;case"PageDown":r.getKeyPageBelow&&(e.preventDefault(),n(r.getKeyPageBelow(t.focusedKey)));break;case"PageUp":r.getKeyPageAbove&&(e.preventDefault(),n(r.getKeyPageAbove(t.focusedKey)));break;case"a":Lg(e)&&"multiple"===t.selectionMode&&!0!==a&&(e.preventDefault(),t.selectAll());break;case"Escape":e.preventDefault(),s||t.clearSelection();break;case"Tab":if(!u){if(e.shiftKey)o.current.focus();else{let e,t,r=Sl(o.current,{tabbable:!0});do{t=r.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&Cn(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target))if(t.setFocused(!0),null==t.focusedKey){let i=e=>{null!=e&&(t.setFocusedKey(e),l&&t.replaceSelection(e))},s=e.relatedTarget;var o,n;s&&e.currentTarget.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?i(null!==(o=t.lastSelectedKey)&&void 0!==o?o:r.getLastKey()):i(null!==(n=t.firstSelectedKey)&&void 0!==n?n:r.getFirstKey())}else if(!p){h.current.scrollTop=f.current.top,h.current.scrollLeft=f.current.left;let e=h.current.querySelector(`[data-key="${t.focusedKey}"]`);e&&(Cn(e),ai(h.current,e))}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){e.currentTarget.contains(e.target)&&e.preventDefault()}},{typeSelectProps:v}=Bg({keyboardDelegate:r,selectionManager:t});return c||(y=$n(v,y)),d||($=null==t.focusedKey?0:-1),{collectionProps:{...y,tabIndex:$}}}function Hg(e){let{selectionManager:t,key:r,ref:o,shouldSelectOnPressUp:n,isVirtualized:i,shouldUseVirtualFocus:s,focus:a,isDisabled:l,onAction:c,allowsDifferentPressOrigin:d}=e,u=e=>{if("keyboard"===e.pointerType&&Ag(e))t.toggleSelection(r);else{if("none"===t.selectionMode)return;"single"===t.selectionMode?t.isSelected(r)&&!t.disallowEmptySelection?t.toggleSelection(r):t.replaceSelection(r):e&&e.shiftKey?t.extendSelection(r):"toggle"===t.selectionBehavior||e&&(Lg(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(r):t.replaceSelection(r)}},p=r===t.focusedKey;(0,g.useEffect)((()=>{p&&t.isFocused&&!s&&document.activeElement!==o.current&&(a?a():al(o.current))}),[o,p,t.focusedKey,t.childFocusStrategy,t.isFocused,s]);let h={};s||(h={tabIndex:p?0:-1,onFocus(e){e.target===o.current&&t.setFocusedKey(r)}});let m=(0,g.useRef)(null),f=c&&"none"===t.selectionMode,b=c&&"none"!==t.selectionMode&&"replace"===t.selectionBehavior,$=!l&&t.canSelectItem(r),y={};n?(y.onPressStart=e=>{m.current=e.pointerType,"keyboard"===e.pointerType&&u(e)},d?(y.onPressUp=e=>{"keyboard"!==e.pointerType&&u(e)},y.onPress=f?()=>c():null):y.onPress=e=>{"keyboard"!==e.pointerType&&u(e),f&&c()}):(y.onPressStart=e=>{m.current=e.pointerType,"touch"!==e.pointerType&&"virtual"!==e.pointerType&&u(e)},y.onPress=e=>{("touch"===e.pointerType||"virtual"===e.pointerType||f)&&(f||b?c():u(e))}),i||(h["data-key"]=r),y.preventFocusOnPress=s;let{pressProps:v,isPressed:x}=Mi(y),w=b?e=>{"mouse"===m.current&&(e.stopPropagation(),e.preventDefault(),c())}:void 0,{longPressProps:S}=ws({isDisabled:!b,onLongPress(e){"touch"===e.pointerType&&(u(e),t.setSelectionBehavior("toggle"))}}),C=b?e=>{"Enter"===e.key&&c()}:void 0;return{itemProps:$n(h,$||f?v:{},b?S:{},{onKeyUp:C,onDoubleClick:w}),isPressed:x}}Rg({},"useSelectableCollection",(()=>zg)),Rg({},"useTypeSelect",(()=>Bg)),Rg({},"useSelectableItem",(()=>Hg)),Rg({},"useSelectableList",(()=>Og)),Rg({},"ListKeyboardDelegate",(()=>Dg));class Dg{getKeyBelow(e){for(e=this.collection.getKeyAfter(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getKeyAbove(e){for(e=this.collection.getKeyBefore(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getFirstKey(){let e=this.collection.getFirstKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getKeyPageAbove(e){let t=this.ref.current,r=this.getItem(e);if(!r)return null;let o=Math.max(0,r.offsetTop+r.offsetHeight-t.offsetHeight);for(;r&&r.offsetTop>o;)e=this.getKeyAbove(e),r=this.getItem(e);return e}getKeyPageBelow(e){let t=this.ref.current,r=this.getItem(e);if(!r)return null;let o=Math.min(t.scrollHeight,r.offsetTop-r.offsetHeight+t.offsetHeight);for(;r&&r.offsetTop<o;)e=this.getKeyBelow(e),r=this.getItem(e);return e}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,o=t||this.getFirstKey();for(;null!=o;){let t=r.getItem(o),n=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(n,e))return o;o=this.getKeyBelow(o)}return null}constructor(e,t,r,o){this.collection=e,this.disabledKeys=t,this.ref=r,this.collator=o}}function Og(e){let{selectionManager:t,collection:r,disabledKeys:o,ref:n,keyboardDelegate:i,autoFocus:s,shouldFocusWrap:a,isVirtualized:l,disallowEmptySelection:c,selectOnFocus:d=!1,disallowTypeAhead:u,shouldUseVirtualFocus:p,allowsTabNavigation:h}=e,m=Qo({usage:"search",sensitivity:"base"}),f=(0,g.useMemo)((()=>i||new Dg(r,o,n,m)),[i,r,o,n,m]),{collectionProps:b}=zg({ref:n,selectionManager:t,keyboardDelegate:f,autoFocus:s,shouldFocusWrap:a,disallowEmptySelection:c,selectOnFocus:d,disallowTypeAhead:u,shouldUseVirtualFocus:p,allowsTabNavigation:h,isVirtualized:l,scrollRef:n});return{listProps:b}}function Kg(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Fg(e){return e&&e.__esModule?e.default:e}Kg({},"GridKeyboardDelegate",(()=>jg));class jg{isCell(e){return"cell"===e.type}isRow(e){return"row"===e.type||"item"===e.type}findPreviousKey(e,t){let r=null!=e?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;null!=r;){let e=this.collection.getItem(r);if(!t||t(e))return r;r=this.collection.getKeyBefore(r)}}findNextKey(e,t){let r=null!=e?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;null!=r;){let e=this.collection.getItem(r);if(!t||t(e))return r;r=this.collection.getKeyAfter(r)}}getKeyBelow(e){let t=this.collection.getItem(e);if(t&&(this.isCell(t)&&(e=t.parentKey),null!=(e=this.findNextKey(e)))){if(this.isCell(t))return[...this.collection.getItem(e).childNodes][t.index].key;if("row"===this.focusMode)return e}}getKeyAbove(e){let t=this.collection.getItem(e);if(t&&(this.isCell(t)&&(e=t.parentKey),null!=(e=this.findPreviousKey(e)))){if(this.isCell(t))return[...this.collection.getItem(e).childNodes][t.index].key;if("row"===this.focusMode)return e}}getKeyRightOf(e){let t=this.collection.getItem(e);if(t){if(this.isRow(t)){let e=[...t.childNodes];return"rtl"===this.direction?e[e.length-1].key:e[0].key}if(this.isCell(t)){let r=[...this.collection.getItem(t.parentKey).childNodes],o="rtl"===this.direction?r[t.index-1]:r[t.index+1];return o?o.key:"row"===this.focusMode?t.parentKey:"rtl"===this.direction?this.getFirstKey(e):this.getLastKey(e)}}}getKeyLeftOf(e){let t=this.collection.getItem(e);if(t){if(this.isRow(t)){let e=[...t.childNodes];return"rtl"===this.direction?e[0].key:e[e.length-1].key}if(this.isCell(t)){let r=[...this.collection.getItem(t.parentKey).childNodes],o="rtl"===this.direction?r[t.index+1]:r[t.index-1];return o?o.key:"row"===this.focusMode?t.parentKey:"rtl"===this.direction?this.getLastKey(e):this.getFirstKey(e)}}}getFirstKey(e,t){let r;if(null!=e){if(r=this.collection.getItem(e),!r)return;if(this.isCell(r)&&!t)return[...this.collection.getItem(r.parentKey).childNodes][0].key}return(null!=(e=this.findNextKey())&&r&&this.isCell(r)&&t||"cell"===this.focusMode)&&(e=[...this.collection.getItem(e).childNodes][0].key),e}getLastKey(e,t){let r;if(null!=e){if(r=this.collection.getItem(e),!r)return;if(this.isCell(r)&&!t){let e=[...this.collection.getItem(r.parentKey).childNodes];return e[e.length-1].key}}if(null!=(e=this.findPreviousKey())&&r&&this.isCell(r)&&t||"cell"===this.focusMode){let t=[...this.collection.getItem(e).childNodes];e=t[t.length-1].key}return e}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getItemRect(e){var t;if(this.layout)return null===(t=this.layout.getLayoutInfo(e))||void 0===t?void 0:t.rect;let r=this.getItem(e);return r?new sg(r.offsetLeft,r.offsetTop,r.offsetWidth,r.offsetHeight):void 0}getPageHeight(){var e,t,r;return this.layout?null===(e=this.layout.virtualizer)||void 0===e?void 0:e.visibleRect.height:null===(t=this.ref)||void 0===t||null===(r=t.current)||void 0===r?void 0:r.offsetHeight}getContentHeight(){var e,t;return this.layout?this.layout.getContentSize().height:null===(e=this.ref)||void 0===e||null===(t=e.current)||void 0===t?void 0:t.scrollHeight}getKeyPageAbove(e){let t=this.getItemRect(e);if(!t)return null;let r=Math.max(0,t.maxY-this.getPageHeight());for(;t&&t.y>r;)e=this.getKeyAbove(e),t=this.getItemRect(e);return e}getKeyPageBelow(e){let t=this.getItemRect(e);if(!t)return null;let r=this.getPageHeight(),o=Math.min(this.getContentHeight(),t.y+r);for(;t&&t.maxY<o;){let r=this.getKeyBelow(e);t=this.getItemRect(r),null!=r&&(e=r)}return e}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,o=null!=t?t:this.getFirstKey(),n=r.getItem(o);"cell"===n.type&&(o=n.parentKey);let i=!1;for(;null!=o;){let t=r.getItem(o);if(t.textValue){let r=t.textValue.slice(0,e.length);if(0===this.collator.compare(r,e))return this.isRow(t)&&"cell"===this.focusMode?[...t.childNodes][0].key:t.key}o=this.findNextKey(o),null!=o||i||(o=this.getFirstKey(),i=!0)}return null}constructor(e){this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.ref=e.ref,this.direction=e.direction,this.collator=e.collator,this.layout=e.layout,this.focusMode=e.focusMode||"row"}}Kg({},"useGrid",(()=>km));const _g=new WeakMap;var Wg,Vg,Ug,Gg,Jg,Yg,Xg,qg,Zg,Qg,em,tm,rm,om,nm,im,sm,am,lm,cm,dm,um,pm,hm,gm,mm,fm,bm,$m,ym,vm,xm,wm,Sm,Cm;function km(e,t,r){let{isVirtualized:o,keyboardDelegate:n,focusMode:i,getRowText:s=(e=>{var r;return null===(r=t.collection.getItem(e))||void 0===r?void 0:r.textValue}),scrollRef:a,onRowAction:l,onCellAction:c}=e,d=Yo(Fg(Wg));e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let u=Qo({usage:"search",sensitivity:"base"}),{direction:p}=Go(),h=(0,g.useMemo)((()=>n||new jg({collection:t.collection,disabledKeys:t.disabledKeys,ref:r,direction:p,collator:u,focusMode:i})),[n,t.collection,t.disabledKeys,r,p,u,i]),{collectionProps:m}=zg({ref:r,selectionManager:t.selectionManager,keyboardDelegate:h,isVirtualized:o,scrollRef:a}),f=gn();_g.set(t,{keyboardDelegate:h,actions:{onRowAction:l,onCellAction:c}});let b=function(e){let t=Yo(Fg(Wg)),r=is(),o=("pointer"===r||"virtual"===r||null==r)&&"undefined"!=typeof window&&"ontouchstart"in window;return Gn((0,g.useMemo)((()=>{let r,n=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior;return o&&(r=t("longPressToSelect")),"replace"===i&&"none"!==n&&e.hasItemActions?r:void 0}),[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,o]))}({selectionManager:t.selectionManager,hasItemActions:!(!l&&!c)}),$=$n(Sn(e,{labelable:!0}),{role:"grid",id:f,"aria-multiselectable":"multiple"===t.selectionManager.selectionMode?"true":void 0},m,b);o&&($["aria-rowcount"]=t.collection.size,$["aria-colcount"]=t.collection.columnCount);let y=t.selectionManager.rawSelection,v=(0,g.useRef)(y);return Hn((()=>{var e;if(!t.selectionManager.isFocused)return void(v.current=y);let r=Em(y,v.current),o=Em(v.current,y),n="replace"===t.selectionManager.selectionBehavior,i=[];if(1===t.selectionManager.selectedKeys.size&&n){if(t.collection.getItem(t.selectionManager.selectedKeys.keys().next().value)){let e=s(t.selectionManager.selectedKeys.keys().next().value);e&&i.push(d("selectedItem",{item:e}))}}else if(1===r.size&&0===o.size){let e=s(r.keys().next().value);e&&i.push(d("selectedItem",{item:e}))}else if(1===o.size&&0===r.size&&t.collection.getItem(o.keys().next().value)){let e=s(o.keys().next().value);e&&i.push(d("deselectedItem",{item:e}))}"multiple"===t.selectionManager.selectionMode&&(0===i.length||"all"===y||y.size>1||"all"===v.current||(null===(e=v.current)||void 0===e?void 0:e.size)>1)&&i.push("all"===y?d("selectedAll"):d("selectedCount",{count:y.size})),i.length>0&&Eg(i.join(" ")),v.current=y}),[y]),{gridProps:$}}function Em(e,t){let r=new Set;if("all"===e||"all"===t)return r;for(let o of e.keys())t.has(o)||r.add(o);return r}function Pm(){return{rowGroupProps:{role:"rowgroup"}}}function Tm(e,t,r){let{node:o,isVirtualized:n,shouldSelectOnPressUp:i,onAction:s}=e,{actions:{onRowAction:a}}=_g.get(t),{itemProps:l,isPressed:c}=Hg({selectionManager:t.selectionManager,key:o.key,ref:r,isVirtualized:n,shouldSelectOnPressUp:i,onAction:a?()=>a(o.key):s}),d=t.selectionManager.isSelected(o.key),u={role:"row","aria-selected":"none"!==t.selectionManager.selectionMode?d:void 0,...l};return n&&(u["aria-rowindex"]=o.index+1),{rowProps:u,isPressed:c}}function Im(e,t,r){let{node:o,isVirtualized:n,focusMode:i="child",shouldSelectOnPressUp:s,onAction:a}=e,{direction:l}=Go(),{keyboardDelegate:c,actions:{onCellAction:d}}=_g.get(t),u=()=>{let e=Sl(r.current);if("child"===i){let r="last"===t.selectionManager.childFocusStrategy?Nm(e):e.firstChild();if(r)return void al(r)}r.current.contains(document.activeElement)||al(r.current)},{itemProps:p,isPressed:h}=Hg({selectionManager:t.selectionManager,key:o.key,ref:r,isVirtualized:n,focus:u,shouldSelectOnPressUp:s,onAction:d?()=>d(o.key):a}),g=$n(p,{role:"gridcell",onKeyDownCapture:e=>{if(!e.currentTarget.contains(e.target))return;let t=Sl(r.current);switch(t.currentNode=document.activeElement,e.key){case"ArrowLeft":{let n="rtl"===l?t.nextNode():t.previousNode();if("child"===i&&n===r.current&&(n=null),n)e.preventDefault(),e.stopPropagation(),al(n);else{if(c.getKeyLeftOf(o.key)!==o.key)break;e.preventDefault(),e.stopPropagation(),"cell"===i&&"rtl"===l?al(r.current):(t.currentNode=r.current,n="rtl"===l?t.firstChild():Nm(t),n&&al(n))}break}case"ArrowRight":{let n="rtl"===l?t.previousNode():t.nextNode();if("child"===i&&n===r.current&&(n=null),n)e.preventDefault(),e.stopPropagation(),al(n);else{if(c.getKeyRightOf(o.key)!==o.key)break;e.preventDefault(),e.stopPropagation(),"cell"===i&&"ltr"===l?al(r.current):(t.currentNode=r.current,n="rtl"===l?Nm(t):t.firstChild(),n&&al(n))}break}case"ArrowUp":case"ArrowDown":!e.altKey&&r.current.contains(e.target)&&(e.stopPropagation(),e.preventDefault(),r.current.parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}},onFocus:e=>{e.target===r.current?requestAnimationFrame((()=>{"child"===i&&document.activeElement===r.current&&u()})):rs()||t.selectionManager.setFocusedKey(o.key)}});return n&&(g["aria-colindex"]=o.index+1),{gridCellProps:g,isPressed:h}}function Nm(e){let t,r;do{r=e.lastChild(),r&&(t=r)}while(r);return t}function Mm(e,t){let{key:r}=e,o=t.selectionManager,n=gn(),i=t.disabledKeys.has(r),s=t.selectionManager.isSelected(r);return{checkboxProps:{id:n,"aria-label":Yo(Fg(Wg))("select"),isSelected:s,isDisabled:i||"none"===o.selectionMode,onChange:()=>o.select(r)}}}function Rm(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}Vg=JSON.parse('{"deselectedItem":"{item} غير المحدد","longPressToSelect":"اضغط مطولًا للدخول إلى وضع التحديد.","select":"تحديد","selectedAll":"جميع العناصر المحددة.","selectedCount":"{count, plural, =0 {لم يتم تحديد عناصر} one {# عنصر محدد} other {# عنصر محدد}}.","selectedItem":"{item} المحدد"}'),Ug=JSON.parse('{"deselectedItem":"{item} не е избран.","longPressToSelect":"Натиснете и задръжте за да влезете в избирателен режим.","select":"Изберете","selectedAll":"Всички елементи са избрани.","selectedCount":"{count, plural, =0 {Няма избрани елементи} one {# избран елемент} other {# избрани елементи}}.","selectedItem":"{item} избран."}'),Gg=JSON.parse('{"deselectedItem":"Položka {item} není vybrána.","longPressToSelect":"Dlouhým stisknutím přejdete do režimu výběru.","select":"Vybrat","selectedAll":"Vybrány všechny položky.","selectedCount":"{count, plural, =0 {Nevybrány žádné položky} one {Vybrána # položka} other {Vybráno # položek}}.","selectedItem":"Vybrána položka {item}."}'),Jg=JSON.parse('{"deselectedItem":"{item} ikke valgt.","longPressToSelect":"Lav et langt tryk for at aktivere valgtilstand.","select":"Vælg","selectedAll":"Alle elementer valgt.","selectedCount":"{count, plural, =0 {Ingen elementer valgt} one {# element valgt} other {# elementer valgt}}.","selectedItem":"{item} valgt."}'),Yg=JSON.parse('{"deselectedItem":"{item} nicht ausgewählt.","longPressToSelect":"Gedrückt halten, um Auswahlmodus zu öffnen.","select":"Auswählen","selectedAll":"Alle Elemente ausgewählt.","selectedCount":"{count, plural, =0 {Keine Elemente ausgewählt} one {# Element ausgewählt} other {# Elemente ausgewählt}}.","selectedItem":"{item} ausgewählt."}'),Xg=JSON.parse('{"deselectedItem":"Δεν επιλέχθηκε το στοιχείο {item}.","longPressToSelect":"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.","select":"Επιλογή","selectedAll":"Επιλέχθηκαν όλα τα στοιχεία.","selectedCount":"{count, plural, =0 {Δεν επιλέχθηκαν στοιχεία} one {Επιλέχθηκε # στοιχείο} other {Επιλέχθηκαν # στοιχεία}}.","selectedItem":"Επιλέχθηκε το στοιχείο {item}."}'),qg=JSON.parse('{"deselectedItem":"{item} not selected.","select":"Select","selectedCount":"{count, plural, =0 {No items selected} one {# item selected} other {# items selected}}.","selectedAll":"All items selected.","selectedItem":"{item} selected.","longPressToSelect":"Long press to enter selection mode."}'),Zg=JSON.parse('{"deselectedItem":"{item} no seleccionado.","longPressToSelect":"Mantenga pulsado para abrir el modo de selección.","select":"Seleccionar","selectedAll":"Todos los elementos seleccionados.","selectedCount":"{count, plural, =0 {Ningún elemento seleccionado} one {# elemento seleccionado} other {# elementos seleccionados}}.","selectedItem":"{item} seleccionado."}'),Qg=JSON.parse('{"deselectedItem":"{item} pole valitud.","longPressToSelect":"Valikurežiimi sisenemiseks vajutage pikalt.","select":"Vali","selectedAll":"Kõik üksused valitud.","selectedCount":"{count, plural, =0 {Üksusi pole valitud} one {# üksus valitud} other {# üksust valitud}}.","selectedItem":"{item} valitud."}'),em=JSON.parse('{"deselectedItem":"Kohdetta {item} ei valittu.","longPressToSelect":"Siirry valintatilaan painamalla pitkään.","select":"Valitse","selectedAll":"Kaikki kohteet valittu.","selectedCount":"{count, plural, =0 {Ei yhtään kohdetta valittu} one {# kohde valittu} other {# kohdetta valittu}}.","selectedItem":"{item} valittu."}'),tm=JSON.parse('{"deselectedItem":"{item} non sélectionné.","longPressToSelect":"Appuyez de manière prolongée pour passer en mode de sélection.","select":"Sélectionner","selectedAll":"Tous les éléments sélectionnés.","selectedCount":"{count, plural, =0 {Aucun élément sélectionné} one {# élément sélectionné} other {# éléments sélectionnés}}.","selectedItem":"{item} sélectionné."}'),rm=JSON.parse('{"deselectedItem":"{item} לא נבחר.","longPressToSelect":"הקשה ארוכה לכניסה למצב בחירה.","select":"בחר","selectedAll":"כל הפריטים נבחרו.","selectedCount":"{count, plural, =0 {לא נבחרו פריטים} one {פריט # נבחר} other {# פריטים נבחרו}}.","selectedItem":"{item} נבחר."}'),om=JSON.parse('{"deselectedItem":"Stavka {item} nije odabrana.","longPressToSelect":"Dugo pritisnite za ulazak u način odabira.","select":"Odaberite","selectedAll":"Odabrane su sve stavke.","selectedCount":"{count, plural, =0 {Nije odabrana nijedna stavka} one {Odabrana je # stavka} other {Odabrano je # stavki}}.","selectedItem":"Stavka {item} je odabrana."}'),nm=JSON.parse('{"deselectedItem":"{item} nincs kijelölve.","longPressToSelect":"Nyomja hosszan a kijelöléshez.","select":"Kijelölés","selectedAll":"Az összes elem kijelölve.","selectedCount":"{count, plural, =0 {Egy elem sincs kijelölve} one {# elem kijelölve} other {# elem kijelölve}}.","selectedItem":"{item} kijelölve."}'),im=JSON.parse('{"deselectedItem":"{item} non selezionato.","longPressToSelect":"Premi a lungo per passare alla modalità di selezione.","select":"Seleziona","selectedAll":"Tutti gli elementi selezionati.","selectedCount":"{count, plural, =0 {Nessun elemento selezionato} one {# elemento selezionato} other {# elementi selezionati}}.","selectedItem":"{item} selezionato."}'),sm=JSON.parse('{"deselectedItem":"{item} が選択されていません。","longPressToSelect":"長押しして選択モードを開きます。","select":"選択","selectedAll":"すべての項目を選択しました。","selectedCount":"{count, plural, =0 {項目が選択されていません} one {# 項目を選択しました} other {# 項目を選択しました}}。","selectedItem":"{item} を選択しました。"}'),am=JSON.parse('{"deselectedItem":"{item}이(가) 선택되지 않았습니다.","longPressToSelect":"선택 모드로 들어가려면 길게 누르십시오.","select":"선택","selectedAll":"모든 항목이 선택되었습니다.","selectedCount":"{count, plural, =0 {선택된 항목이 없습니다} one {#개 항목이 선택되었습니다} other {#개 항목이 선택되었습니다}}.","selectedItem":"{item}이(가) 선택되었습니다."}'),lm=JSON.parse('{"deselectedItem":"{item} nepasirinkta.","longPressToSelect":"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.","select":"Pasirinkti","selectedAll":"Pasirinkti visi elementai.","selectedCount":"{count, plural, =0 {Nepasirinktas nė vienas elementas} one {Pasirinktas # elementas} other {Pasirinkta elementų: #}}.","selectedItem":"Pasirinkta: {item}."}'),cm=JSON.parse('{"deselectedItem":"Vienums {item} nav atlasīts.","longPressToSelect":"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.","select":"Atlasīt","selectedAll":"Atlasīti visi vienumi.","selectedCount":"{count, plural, =0 {Nav atlasīts neviens vienums} one {Atlasīto vienumu skaits: #} other {Atlasīto vienumu skaits: #}}.","selectedItem":"Atlasīts vienums {item}."}'),dm=JSON.parse('{"deselectedItem":"{item} er ikke valgt.","longPressToSelect":"Bruk et langt trykk for å gå inn i valgmodus.","select":"Velg","selectedAll":"Alle elementer er valgt.","selectedCount":"{count, plural, =0 {Ingen elementer er valgt} one {# element er valgt} other {# elementer er valgt}}.","selectedItem":"{item} er valgt."}'),um=JSON.parse('{"deselectedItem":"{item} niet geselecteerd.","longPressToSelect":"Druk lang om de selectiemodus te openen.","select":"Selecteren","selectedAll":"Alle items geselecteerd.","selectedCount":"{count, plural, =0 {Geen items geselecteerd} one {# item geselecteerd} other {# items geselecteerd}}.","selectedItem":"{item} geselecteerd."}'),pm=JSON.parse('{"deselectedItem":"Nie zaznaczono {item}.","longPressToSelect":"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.","select":"Zaznacz","selectedAll":"Wszystkie zaznaczone elementy.","selectedCount":"{count, plural, =0 {Nie zaznaczono żadnych elementów} one {# zaznaczony element} other {# zaznaczonych elementów}}.","selectedItem":"Zaznaczono {item}."}'),hm=JSON.parse('{"deselectedItem":"{item} não selecionado.","longPressToSelect":"Mantenha pressionado para entrar no modo de seleção.","select":"Selecionar","selectedAll":"Todos os itens selecionados.","selectedCount":"{count, plural, =0 {Nenhum item selecionado} one {# item selecionado} other {# itens selecionados}}.","selectedItem":"{item} selecionado."}'),gm=JSON.parse('{"deselectedItem":"{item} não selecionado.","longPressToSelect":"Prima continuamente para entrar no modo de seleção.","select":"Selecionar","selectedAll":"Todos os itens selecionados.","selectedCount":"{count, plural, =0 {Nenhum item selecionado} one {# item selecionado} other {# itens selecionados}}.","selectedItem":"{item} selecionado."}'),mm=JSON.parse('{"deselectedItem":"{item} neselectat.","longPressToSelect":"Apăsați lung pentru a intra în modul de selectare.","select":"Selectare","selectedAll":"Toate elementele selectate.","selectedCount":"{count, plural, =0 {Niciun element selectat} one {# element selectat} other {# elemente selectate}}.","selectedItem":"{item} selectat."}'),fm=JSON.parse('{"deselectedItem":"{item} не выбрано.","longPressToSelect":"Нажмите и удерживайте для входа в режим выбора.","select":"Выбрать","selectedAll":"Выбраны все элементы.","selectedCount":"{count, plural, =0 {Нет выбранных элементов} one {# элемент выбран} other {# элементов выбрано}}.","selectedItem":"{item} выбрано."}'),bm=JSON.parse('{"deselectedItem":"Nevybraté položky: {item}.","longPressToSelect":"Dlhším stlačením prejdite do režimu výberu.","select":"Vybrať","selectedAll":"Všetky vybraté položky.","selectedCount":"{count, plural, =0 {Žiadne vybraté položky} one {# vybratá položka} other {Počet vybratých položiek:#}}.","selectedItem":"Vybraté položky: {item}."}'),$m=JSON.parse('{"deselectedItem":"Element {item} ni izbran.","longPressToSelect":"Za izbirni način pritisnite in dlje časa držite.","select":"Izberite","selectedAll":"Vsi elementi so izbrani.","selectedCount":"{count, plural, =0 {Noben element ni izbran} one {# element je izbran} other {# elementov je izbranih}}.","selectedItem":"Element {item} je izbran."}'),ym=JSON.parse('{"deselectedItem":"{item} nije izabrano.","longPressToSelect":"Dugo pritisnite za ulazak u režim biranja.","select":"Izaberite","selectedAll":"Izabrane su sve stavke.","selectedCount":"{count, plural, =0 {Nije izabrana nijedna stavka} one {Izabrana je # stavka} other {Izabrano je # stavki}}.","selectedItem":"{item} je izabrano."}'),vm=JSON.parse('{"deselectedItem":"{item} ej markerat.","longPressToSelect":"Tryck länge när du vill öppna väljarläge.","select":"Markera","selectedAll":"Alla markerade objekt.","selectedCount":"{count, plural, =0 {Inga markerade objekt} one {# markerat objekt} other {# markerade objekt}}.","selectedItem":"{item} markerat."}'),xm=JSON.parse('{"deselectedItem":"{item} seçilmedi.","longPressToSelect":"Seçim moduna girmek için uzun basın.","select":"Seç","selectedAll":"Tüm ögeler seçildi.","selectedCount":"{count, plural, =0 {Hiçbir öge seçilmedi} one {# öge seçildi} other {# öge seçildi}}.","selectedItem":"{item} seçildi."}'),wm=JSON.parse('{"deselectedItem":"{item} не вибрано.","longPressToSelect":"Виконайте довге натиснення, щоб перейти в режим вибору.","select":"Вибрати","selectedAll":"Усі елементи вибрано.","selectedCount":"{count, plural, =0 {Жодних елементів не вибрано} one {# елемент вибрано} other {Вибрано елементів: #}}.","selectedItem":"{item} вибрано."}'),Sm=JSON.parse('{"deselectedItem":"未选择 {item}。","longPressToSelect":"长按以进入选择模式。","select":"选择","selectedAll":"已选择所有项目。","selectedCount":"{count, plural, =0 {未选择项目} one {已选择 # 个项目} other {已选择 # 个项目}}。","selectedItem":"已选择 {item}。"}'),Cm=JSON.parse('{"deselectedItem":"未選取「{item}」。","longPressToSelect":"長按以進入選擇模式。","select":"選取","selectedAll":"已選取所有項目。","selectedCount":"{count, plural, =0 {未選取任何項目} one {已選取 # 個項目} other {已選取 # 個項目}}。","selectedItem":"已選取「{item}」。"}'),Wg={"ar-AE":Vg,"bg-BG":Ug,"cs-CZ":Gg,"da-DK":Jg,"de-DE":Yg,"el-GR":Xg,"en-US":qg,"es-ES":Zg,"et-EE":Qg,"fi-FI":em,"fr-FR":tm,"he-IL":rm,"hr-HR":om,"hu-HU":nm,"it-IT":im,"ja-JP":sm,"ko-KR":am,"lt-LT":lm,"lv-LV":cm,"nb-NO":dm,"nl-NL":um,"pl-PL":pm,"pt-BR":hm,"pt-PT":gm,"ro-RO":mm,"ru-RU":fm,"sk-SK":bm,"sl-SI":$m,"sr-SP":ym,"sv-SE":vm,"tr-TR":xm,"uk-UA":wm,"zh-CN":Sm,"zh-TW":Cm},Kg({},"useGridRowGroup",(()=>Pm)),Kg({},"useGridRow",(()=>Tm)),Kg({},"useGridCell",(()=>Im)),Kg({},"useGridSelectionCheckbox",(()=>Mm));var Am={};Rm(Am,"useId",(()=>zm)),Rm(Am,"mergeIds",(()=>Hm)),Rm(Am,"useSlotId",(()=>Dm)),Rm({},"useLayoutEffect",(()=>Lm));const Lm="undefined"!=typeof window?m().useLayoutEffect:()=>{};let Bm=new Map;function zm(e){let t=(0,g.useRef)(!0);t.current=!0;let[r,o]=(0,g.useState)(e),n=(0,g.useRef)(null),i=Vt(r),s=e=>{t.current?n.current=e:o(e)};return Bm.set(i,s),Lm((()=>{t.current=!1}),[s]),Lm((()=>{let e=i;return()=>{Bm.delete(e)}}),[i]),(0,g.useEffect)((()=>{let e=n.current;e&&(o(e),n.current=null)}),[o,s]),i}function Hm(e,t){if(e===t)return e;let r=Bm.get(e);if(r)return r(t),t;let o=Bm.get(t);return o?(o(e),e):t}function Dm(e=[]){let t=zm(),[r,o]=Tf(t),n=(0,g.useCallback)((()=>{o((function*(){yield t,yield document.getElementById(t)?t:null}))}),[t,o]);return Lm(n,[t,n,...e]),r}function Om(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}function Km(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let o=e[r];for(let e in o){let r=t[e],n=o[e];"function"==typeof r&&"function"==typeof n&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Om(r,n):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof n?"id"===e&&r&&n?t.id=Hm(r,n):t[e]=void 0!==n?n:r:t[e]=rn(r,n)}}return t}Rm({},"chain",(()=>Om)),Rm({},"mergeProps",(()=>Km)),Rm({},"filterDOMProps",(()=>Wm));const Fm=new Set(["id"]),jm=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),_m=/^(data-.*)$/;function Wm(e,t={}){let{labelable:r,propNames:o}=t,n={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Fm.has(t)||r&&jm.has(t)||(null==o?void 0:o.has(t))||_m.test(t))&&(n[t]=e[t]);return n}function Vm(e){if(function(){if(null==Um){Um=!1;try{document.createElement("div").focus({get preventScroll(){return Um=!0,!0}})}catch(e){}}return Um}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,r=[],o=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:o}of e)t.scrollTop=r,t.scrollLeft=o}(t)}}Rm({},"focusWithoutScrolling",(()=>Vm));let Um=null;function Gm(e,t,r="horizontal"){let o=e.getBoundingClientRect();return t?"horizontal"===r?o.right:o.bottom:"horizontal"===r?o.left:o.top}Rm({},"getOffset",(()=>Gm));var Jm={};Rm(Jm,"clamp",(()=>an)),Rm(Jm,"snapValueToStep",(()=>ln)),Rm({},"runAfterTransition",(()=>Zm));let Ym=new Map,Xm=new Set;function qm(){if("undefined"==typeof window)return;let e=t=>{let r=Ym.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",e),Ym.delete(t.target)),0===Ym.size)){for(let e of Xm)e();Xm.clear()}};document.body.addEventListener("transitionrun",(t=>{let r=Ym.get(t.target);r||(r=new Set,Ym.set(t.target,r),t.target.addEventListener("transitioncancel",e)),r.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function Zm(e){requestAnimationFrame((()=>{0===Ym.size?e():Xm.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?qm():document.addEventListener("DOMContentLoaded",qm)),Rm({},"useDrag1D",(()=>ef));const Qm=[];function ef(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:r,orientation:o,onHover:n,onDrag:i,onPositionChange:s,onIncrement:a,onDecrement:l,onIncrementToMax:c,onDecrementToMin:d,onCollapseToggle:u}=e,p=e=>{let n=Gm(t.current,r,o),i=(e=>"horizontal"===o?e.clientX:e.clientY)(e);return r?n-i:i-n},h=(0,g.useRef)(!1),m=(0,g.useRef)(0),f=(0,g.useRef)({onPositionChange:s,onDrag:i});f.current.onDrag=i,f.current.onPositionChange=s;let b=e=>{e.preventDefault();let t=p(e);h.current||(h.current=!0,f.current.onDrag&&f.current.onDrag(!0),f.current.onPositionChange&&f.current.onPositionChange(t)),m.current!==t&&(m.current=t,s&&s(t))},$=e=>{const t=e.target;h.current=!1;let r=p(e);f.current.onDrag&&f.current.onDrag(!1),f.current.onPositionChange&&f.current.onPositionChange(r),Qm.splice(Qm.indexOf(t),1),window.removeEventListener("mouseup",$,!1),window.removeEventListener("mousemove",b,!1)};return{onMouseDown:e=>{const t=e.currentTarget;Qm.some((e=>t.contains(e)))||(Qm.push(t),window.addEventListener("mousemove",b,!1),window.addEventListener("mouseup",$,!1))},onMouseEnter:()=>{n&&n(!0)},onMouseOut:()=>{n&&n(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===o&&(e.preventDefault(),l&&!r?l():a&&r&&a());break;case"Up":case"ArrowUp":"vertical"===o&&(e.preventDefault(),l&&!r?l():a&&r&&a());break;case"Right":case"ArrowRight":"horizontal"===o&&(e.preventDefault(),a&&!r?a():l&&r&&l());break;case"Down":case"ArrowDown":"vertical"===o&&(e.preventDefault(),a&&!r?a():l&&r&&l());break;case"Home":e.preventDefault(),d&&d();break;case"End":e.preventDefault(),c&&c();break;case"Enter":e.preventDefault(),u&&u()}}}}function tf(){let e=(0,g.useRef)(new Map),t=(0,g.useCallback)(((t,r,o,n)=>{let i=(null==n?void 0:n.once)?(...t)=>{e.current.delete(o),o(...t)}:o;e.current.set(o,{type:r,eventTarget:t,fn:i,options:n}),t.addEventListener(r,o,n)}),[]),r=(0,g.useCallback)(((t,r,o,n)=>{var i;let s=(null===(i=e.current.get(o))||void 0===i?void 0:i.fn)||o;t.removeEventListener(r,s,n),e.current.delete(o)}),[]),o=(0,g.useCallback)((()=>{e.current.forEach(((e,t)=>{r(e.eventTarget,e.type,t,e.options)}))}),[r]);return(0,g.useEffect)((()=>o),[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}function rf(e,t){let{id:r,"aria-label":o,"aria-labelledby":n}=e;if(r=zm(r),n&&o){let e=new Set([...n.trim().split(/\s+/),r]);n=[...e].join(" ")}else n&&(n=n.trim().split(/\s+/).join(" "));return o||n||!t||(o=t),{id:r,"aria-label":o,"aria-labelledby":n}}function of(e){const t=(0,g.useRef)();return Lm((()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}),[e]),t}function nf(e,t){const r=(0,g.useRef)(!0);(0,g.useEffect)((()=>{r.current?r.current=!1:e()}),t)}function sf(e){const{ref:t,onResize:r}=e;(0,g.useEffect)((()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)};{const t=new window.ResizeObserver((e=>{e.length&&r()}));return t.observe(e),()=>{e&&t.unobserve(e)}}}}),[r,t])}function af(e,t){Lm((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function lf(e){for(;e&&!cf(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function cf(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}Rm({},"useGlobalListeners",(()=>tf)),Rm({},"useLabels",(()=>rf)),Rm({},"useObjectRef",(()=>of)),Rm({},"useUpdateEffect",(()=>nf)),Rm({},"useResizeObserver",(()=>sf)),Rm({},"useSyncRef",(()=>af)),Rm({},"getScrollParent",(()=>lf)),Rm({},"useViewportSize",(()=>uf));let df="undefined"!=typeof window&&window.visualViewport;function uf(){let[e,t]=(0,g.useState)((()=>pf()));return(0,g.useEffect)((()=>{let e=()=>{t((e=>{let t=pf();return t.width===e.width&&t.height===e.height?e:t}))};return df?df.addEventListener("resize",e):window.addEventListener("resize",e),()=>{df?df.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function pf(){return{width:(null==df?void 0:df.width)||window.innerWidth,height:(null==df?void 0:df.height)||window.innerHeight}}Rm({},"useDescription",(()=>mf));let hf=0;const gf=new Map;function mf(e){let[t,r]=(0,g.useState)(null);return Lm((()=>{if(!e)return;let t=gf.get(e);if(t)r(t.element.id);else{let o="react-aria-description-"+hf++;r(o);let n=document.createElement("div");n.id=o,n.style.display="none",n.textContent=e,document.body.appendChild(n),t={refCount:0,element:n},gf.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),gf.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}var ff={};function bf(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function $f(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test((window.navigator.userAgentData||window.navigator).platform)}function yf(){return $f(/^Mac/i)}function vf(){return $f(/^iPhone/i)}function xf(){return $f(/^iPad/i)||yf()&&navigator.maxTouchPoints>1}function wf(){return vf()||xf()}function Sf(){return yf()||wf()}function Cf(){return bf(/AppleWebKit/i)&&!kf()}function kf(){return bf(/Chrome/i)}function Ef(){return bf(/Android/i)}function Pf(e,t,r,o){let n=(0,g.useRef)(r);n.current=r;let i=null==r;(0,g.useEffect)((()=>{if(i)return;let r=e.current,s=e=>n.current.call(this,e);return r.addEventListener(t,s,o),()=>{r.removeEventListener(t,s,o)}}),[e,t,o,i])}function Tf(e){let[t,r]=(0,g.useState)(e),o=(0,g.useRef)(t),n=(0,g.useRef)(null);o.current=t;let i=(0,g.useRef)(null);i.current=()=>{let e=n.current.next();e.done?n.current=null:t===e.value?i.current():r(e.value)},Lm((()=>{n.current&&i.current()}));let s=(0,g.useCallback)((e=>{n.current=e(o.current),i.current()}),[n,i]);return[t,s]}function If(e,t){let r=Nf(e,t,"left"),o=Nf(e,t,"top"),n=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,l=s+e.offsetWidth,c=a+e.offsetHeight;r<=s?s=r:r+n>l&&(s+=r+n-l),o<=a?a=o:o+i>c&&(a+=o+i-c),e.scrollLeft=s,e.scrollTop=a}function Nf(e,t,r){const o="left"===r?"offsetLeft":"offsetTop";let n=0;for(;t.offsetParent&&(n+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){n-=e[o];break}t=t.offsetParent}return n}function Mf(e){return e&&e.__esModule?e.default:e}function Rf(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}Rm(ff,"isMac",(()=>yf)),Rm(ff,"isIPhone",(()=>vf)),Rm(ff,"isIPad",(()=>xf)),Rm(ff,"isIOS",(()=>wf)),Rm(ff,"isAppleDevice",(()=>Sf)),Rm(ff,"isWebKit",(()=>Cf)),Rm(ff,"isChrome",(()=>kf)),Rm(ff,"isAndroid",(()=>Ef)),Rm({},"useEvent",(()=>Pf)),Rm({},"useValueEffect",(()=>Tf)),Rm({},"scrollIntoView",(()=>If)),Rf({},"useTable",(()=>vb));const Af=new WeakMap;function Lf(e){return"string"==typeof e?e.replace(/\s*/g,""):""+e}function Bf(e,t){let r=Af.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${Lf(t)}`}function zf(e,t,r){let o=Af.get(e);if(!o)throw new Error("Unknown grid");return`${o}-${Lf(t)}-${Lf(r)}`}function Hf(e,t){return[...e.collection.rowHeaderColumnKeys].map((r=>zf(e,t,r))).join(" ")}var Df,Of,Kf,Ff,jf,_f,Wf,Vf,Uf,Gf,Jf,Yf,Xf,qf,Zf,Qf,eb,tb,rb,ob,nb,ib,sb,ab,lb,cb,db,ub,pb,hb,gb,mb,fb,bb,$b;Of=JSON.parse('{"ascending":"تصاعدي","ascendingSort":"ترتيب حسب العمود {columnName} بترتيب تصاعدي","descending":"تنازلي","descendingSort":"ترتيب حسب العمود {columnName} بترتيب تنازلي","select":"تحديد","selectAll":"تحديد الكل","sortable":"عمود قابل للترتيب"}'),Kf=JSON.parse('{"ascending":"възходящ","ascendingSort":"сортирано по колона {columnName} във възходящ ред","descending":"низходящ","descendingSort":"сортирано по колона {columnName} в низходящ ред","select":"Изберете","selectAll":"Изберете всичко","sortable":"сортираща колона"}'),Ff=JSON.parse('{"ascending":"vzestupně","ascendingSort":"řazeno vzestupně podle sloupce {columnName}","descending":"sestupně","descendingSort":"řazeno sestupně podle sloupce {columnName}","select":"Vybrat","selectAll":"Vybrat vše","sortable":"sloupec s možností řazení"}'),jf=JSON.parse('{"ascending":"stigende","ascendingSort":"sorteret efter kolonne {columnName} i stigende rækkefølge","descending":"faldende","descendingSort":"sorteret efter kolonne {columnName} i faldende rækkefølge","select":"Vælg","selectAll":"Vælg alle","sortable":"sorterbar kolonne"}'),_f=JSON.parse('{"ascending":"aufsteigend","ascendingSort":"sortiert nach Spalte {columnName} in aufsteigender Reihenfolge","descending":"absteigend","descendingSort":"sortiert nach Spalte {columnName} in absteigender Reihenfolge","select":"Auswählen","selectAll":"Alles auswählen","sortable":"sortierbare Spalte"}'),Wf=JSON.parse('{"ascending":"αύξουσα","ascendingSort":"διαλογή ανά στήλη {columnName} σε αύξουσα σειρά","descending":"φθίνουσα","descendingSort":"διαλογή ανά στήλη {columnName} σε φθίνουσα σειρά","select":"Επιλογή","selectAll":"Επιλογή όλων","sortable":"Στήλη διαλογής"}'),Vf=JSON.parse('{"select":"Select","selectAll":"Select All","sortable":"sortable column","ascending":"ascending","descending":"descending","ascendingSort":"sorted by column {columnName} in ascending order","descendingSort":"sorted by column {columnName} in descending order"}'),Uf=JSON.parse('{"ascending":"de subida","ascendingSort":"ordenado por columna {columnName} en orden de subida","descending":"de bajada","descendingSort":"ordenado por columna {columnName} en orden de bajada","select":"Seleccionar","selectAll":"Seleccionar todos","sortable":"columna ordenable"}'),Gf=JSON.parse('{"ascending":"tõusev järjestus","ascendingSort":"sorditud veeru järgi {columnName} tõusvas järjestuses","descending":"laskuv järjestus","descendingSort":"sorditud veeru järgi {columnName} laskuvas järjestuses","select":"Vali","selectAll":"Vali kõik","sortable":"sorditav veerg"}'),Jf=JSON.parse('{"ascending":"nouseva","ascendingSort":"lajiteltu sarakkeen {columnName} mukaan nousevassa järjestyksessä","descending":"laskeva","descendingSort":"lajiteltu sarakkeen {columnName} mukaan laskevassa järjestyksessä","select":"Valitse","selectAll":"Valitse kaikki","sortable":"lajiteltava sarake"}'),Yf=JSON.parse('{"ascending":"croissant","ascendingSort":"trié en fonction de la colonne {columnName} par ordre croissant","descending":"décroissant","descendingSort":"trié en fonction de la colonne {columnName} par ordre décroissant","select":"Sélectionner","selectAll":"Sélectionner tout","sortable":"colonne triable"}'),Xf=JSON.parse('{"ascending":"עולה","ascendingSort":"מוין לפי עמודה {columnName} בסדר עולה","descending":"יורד","descendingSort":"מוין לפי עמודה {columnName} בסדר יורד","select":"בחר","selectAll":"בחר הכול","sortable":"עמודה שניתן למיין"}'),qf=JSON.parse('{"ascending":"rastući","ascendingSort":"razvrstano po stupcima {columnName} rastućem redoslijedom","descending":"padajući","descendingSort":"razvrstano po stupcima {columnName} padajućim redoslijedom","select":"Odaberite","selectAll":"Odaberite sve","sortable":"stupac koji se može razvrstati"}'),Zf=JSON.parse('{"ascending":"növekvő","ascendingSort":"rendezve a(z) {columnName} oszlop szerint, növekvő sorrendben","descending":"csökkenő","descendingSort":"rendezve a(z) {columnName} oszlop szerint, csökkenő sorrendben","select":"Kijelölés","selectAll":"Összes kijelölése","sortable":"rendezendő oszlop"}'),Qf=JSON.parse('{"ascending":"crescente","ascendingSort":"in ordine crescente in base alla colonna {columnName}","descending":"decrescente","descendingSort":"in ordine decrescente in base alla colonna {columnName}","select":"Seleziona","selectAll":"Seleziona tutto","sortable":"colonna ordinabile"}'),eb=JSON.parse('{"ascending":"昇順","ascendingSort":"列 {columnName} を昇順で並べ替え","descending":"降順","descendingSort":"列 {columnName} を降順で並べ替え","select":"選択","selectAll":"すべて選択","sortable":"並べ替え可能な列"}'),tb=JSON.parse('{"ascending":"오름차순","ascendingSort":"{columnName} 열을 기준으로 오름차순으로 정렬됨","descending":"내림차순","descendingSort":"{columnName} 열을 기준으로 내림차순으로 정렬됨","select":"선택","selectAll":"모두 선택","sortable":"정렬 가능한 열"}'),rb=JSON.parse('{"ascending":"didėjančia tvarka","ascendingSort":"surikiuota pagal stulpelį {columnName} didėjančia tvarka","descending":"mažėjančia tvarka","descendingSort":"surikiuota pagal stulpelį {columnName} mažėjančia tvarka","select":"Pasirinkti","selectAll":"Pasirinkti viską","sortable":"rikiuojamas stulpelis"}'),ob=JSON.parse('{"ascending":"augošā secībā","ascendingSort":"kārtots pēc kolonnas {columnName} augošā secībā","descending":"dilstošā secībā","descendingSort":"kārtots pēc kolonnas {columnName} dilstošā secībā","select":"Atlasīt","selectAll":"Atlasīt visu","sortable":"kārtojamā kolonna"}'),nb=JSON.parse('{"ascending":"stigende","ascendingSort":"sortert etter kolonne {columnName} i stigende rekkefølge","descending":"synkende","descendingSort":"sortert etter kolonne {columnName} i synkende rekkefølge","select":"Velg","selectAll":"Velg alle","sortable":"kolonne som kan sorteres"}'),ib=JSON.parse('{"ascending":"oplopend","ascendingSort":"gesorteerd in oplopende volgorde in kolom {columnName}","descending":"aflopend","descendingSort":"gesorteerd in aflopende volgorde in kolom {columnName}","select":"Selecteren","selectAll":"Alles selecteren","sortable":"sorteerbare kolom"}'),sb=JSON.parse('{"ascending":"rosnąco","ascendingSort":"posortowano według kolumny {columnName} w porządku rosnącym","descending":"malejąco","descendingSort":"posortowano według kolumny {columnName} w porządku malejącym","select":"Zaznacz","selectAll":"Zaznacz wszystko","sortable":"kolumna z możliwością sortowania"}'),ab=JSON.parse('{"ascending":"crescente","ascendingSort":"classificado pela coluna {columnName} em ordem crescente","descending":"decrescente","descendingSort":"classificado pela coluna {columnName} em ordem decrescente","select":"Selecionar","selectAll":"Selecionar tudo","sortable":"coluna classificável"}'),lb=JSON.parse('{"ascending":"ascendente","ascendingSort":"Ordenar por coluna {columnName} em ordem ascendente","descending":"descendente","descendingSort":"Ordenar por coluna {columnName} em ordem descendente","select":"Selecionar","selectAll":"Selecionar tudo","sortable":"Coluna ordenável"}'),cb=JSON.parse('{"ascending":"crescătoare","ascendingSort":"sortate după coloana {columnName} în ordine crescătoare","descending":"descrescătoare","descendingSort":"sortate după coloana {columnName} în ordine descrescătoare","select":"Selectare","selectAll":"Selectare totală","sortable":"coloană sortabilă"}'),db=JSON.parse('{"ascending":"возрастание","ascendingSort":"сортировать столбец {columnName} в порядке возрастания","descending":"убывание","descendingSort":"сортировать столбец {columnName} в порядке убывания","select":"Выбрать","selectAll":"Выбрать все","sortable":"сортируемый столбец"}'),ub=JSON.parse('{"ascending":"vzostupne","ascendingSort":"zoradené zostupne podľa stĺpca {columnName}","descending":"zostupne","descendingSort":"zoradené zostupne podľa stĺpca {columnName}","select":"Vybrať","selectAll":"Vybrať všetko","sortable":"zoraditeľný stĺpec"}'),pb=JSON.parse('{"ascending":"naraščajoče","ascendingSort":"razvrščeno po stolpcu {columnName} v naraščajočem vrstnem redu","descending":"padajoče","descendingSort":"razvrščeno po stolpcu {columnName} v padajočem vrstnem redu","select":"Izberite","selectAll":"Izberite vse","sortable":"razvrstljivi stolpec"}'),hb=JSON.parse('{"ascending":"rastući","ascendingSort":"sortirano po kolonama {columnName} rastućim redosledom","descending":"padajući","descendingSort":"sortirano po kolonama {columnName} padajućim redosledom","select":"Izaberite","selectAll":"Izaberite sve","sortable":"kolona koja se može sortirati"}'),gb=JSON.parse('{"ascending":"stigande","ascendingSort":"sorterat på kolumn {columnName} i stigande ordning","descending":"fallande","descendingSort":"sorterat på kolumn {columnName} i fallande ordning","select":"Markera","selectAll":"Markera allt","sortable":"sorterbar kolumn"}'),mb=JSON.parse('{"ascending":"artan sırada","ascendingSort":"{columnName} sütuna göre artan düzende sırala","descending":"azalan sırada","descendingSort":"{columnName} sütuna göre azalan düzende sırala","select":"Seç","selectAll":"Tümünü Seç","sortable":"Sıralanabilir sütun"}'),fb=JSON.parse('{"ascending":"висхідний","ascendingSort":"відсортовано за стовпцем {columnName} у висхідному порядку","descending":"низхідний","descendingSort":"відсортовано за стовпцем {columnName} у низхідному порядку","select":"Вибрати","selectAll":"Вибрати все","sortable":"сортувальний стовпець"}'),bb=JSON.parse('{"ascending":"升序","ascendingSort":"按列 {columnName} 升序排序","descending":"降序","descendingSort":"按列 {columnName} 降序排序","select":"选择","selectAll":"全选","sortable":"可排序的列"}'),$b=JSON.parse('{"ascending":"遞增","ascendingSort":"已依據「{columnName}」欄遞增排序","descending":"遞減","descendingSort":"已依據「{columnName}」欄遞減排序","select":"選取","selectAll":"全選","sortable":"可排序的欄"}'),Df={"ar-AE":Of,"bg-BG":Kf,"cs-CZ":Ff,"da-DK":jf,"de-DE":_f,"el-GR":Wf,"en-US":Vf,"es-ES":Uf,"et-EE":Gf,"fi-FI":Jf,"fr-FR":Yf,"he-IL":Xf,"hr-HR":qf,"hu-HU":Zf,"it-IT":Qf,"ja-JP":eb,"ko-KR":tb,"lt-LT":rb,"lv-LV":ob,"nb-NO":nb,"nl-NL":ib,"pl-PL":sb,"pt-BR":ab,"pt-PT":lb,"ro-RO":cb,"ru-RU":db,"sk-SK":ub,"sl-SI":pb,"sr-SP":hb,"sv-SE":gb,"tr-TR":mb,"uk-UA":fb,"zh-CN":bb,"zh-TW":$b};class yb extends jg{isCell(e){return"cell"===e.type||"rowheader"===e.type||"column"===e.type}getKeyBelow(e){let t=this.collection.getItem(e);if(t){if("column"===t.type){let e=[...t.childNodes][0];if(e)return e.key;let r=this.getFirstKey();if(null==r)return;return[...this.collection.getItem(r).childNodes][t.index].key}return super.getKeyBelow(e)}}getKeyAbove(e){let t=this.collection.getItem(e);if(!t)return;if("column"===t.type){let e=this.collection.getItem(t.parentKey);return e&&"column"===e.type?e.key:void 0}let r=super.getKeyAbove(e);return null!=r&&"headerrow"!==this.collection.getItem(r).type?r:this.isCell(t)?this.collection.columns[t.index].key:this.collection.columns[0].key}findNextColumnKey(e){let t=this.findNextKey(e.key,(e=>"column"===e.type));if(null!=t)return t;let r=this.collection.headerRows[e.level];for(let e of r.childNodes)if("column"===e.type)return e.key}findPreviousColumnKey(e){let t=this.findPreviousKey(e.key,(e=>"column"===e.type));if(null!=t)return t;let r=[...this.collection.headerRows[e.level].childNodes];for(let e=r.length-1;e>=0;e--){let t=r[e];if("column"===t.type)return t.key}}getKeyRightOf(e){let t=this.collection.getItem(e);if(t)return"column"===t.type?"rtl"===this.direction?this.findPreviousColumnKey(t):this.findNextColumnKey(t):super.getKeyRightOf(e)}getKeyLeftOf(e){let t=this.collection.getItem(e);if(t)return"column"===t.type?"rtl"===this.direction?this.findNextColumnKey(t):this.findPreviousColumnKey(t):super.getKeyLeftOf(e)}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,o=null!=t?t:this.getFirstKey();if(null==o)return null;let n=r.getItem(o);"cell"===n.type&&(o=n.parentKey);let i=!1;for(;null!=o;){let s=r.getItem(o);for(let o of s.childNodes){let i=r.columns[o.index];if(r.rowHeaderColumnKeys.has(i.key)&&o.textValue){let i=o.textValue.slice(0,e.length);if(0===this.collator.compare(i,e))return"cell"===(null!=t?r.getItem(t):n).type?o.key:s.key}}o=this.getKeyBelow(o),null!=o||i||(o=this.getFirstKey(),i=!0)}return null}}function vb(e,t,r){let{keyboardDelegate:o,isVirtualized:n,layout:i}=e,s=Qo({usage:"search",sensitivity:"base"}),{direction:a}=Go(),l=(0,g.useMemo)((()=>o||new yb({collection:t.collection,disabledKeys:t.disabledKeys,ref:r,direction:a,collator:s,layout:i})),[o,t.collection,t.disabledKeys,r,a,s,i]),c=zm();Af.set(t,c);let{gridProps:d}=km({...e,id:c,keyboardDelegate:l,getRowText(e){let r=t.collection.getItem(e);if(!r)return"";if(null!=r.textValue)return r.textValue;let o=t.collection.rowHeaderColumnKeys;if(o){let e=[];for(let n of r.childNodes){let r=t.collection.columns[n.index];if(o.has(r.key)&&n.textValue&&e.push(n.textValue),e.length===o.size)break}return e.join(" ")}return""}},t,r);n&&(d["aria-rowcount"]=t.collection.size+t.collection.headerRows.length);let{column:u,direction:p}=t.sortDescriptor||{},h=Yo(Mf(Df)),m=(0,g.useMemo)((()=>{var e;let r=null===(e=t.collection.columns.find((e=>e.key===u)))||void 0===e?void 0:e.textValue;return p&&u?h(`${p}Sort`,{columnName:r}):void 0}),[p,u,t.collection.columns]),f=mf(m);return nf((()=>{Eg(m,"assertive",500)}),[m]),{gridProps:Km(d,f,{"aria-describedby":[f["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")})}}function xb(e,t,r){var o,n;let{node:i}=e,s=i.props.allowsSorting,{gridCellProps:a}=Im(e,t,r),l=i.props.isSelectionCell&&"single"===t.selectionManager.selectionMode,{pressProps:c}=Mi({isDisabled:!s||l,onPress(){t.sort(i.key)}}),{focusableProps:d}=Rl({},r),u=null,p=(null===(o=t.sortDescriptor)||void 0===o?void 0:o.column)===i.key,h=null===(n=t.sortDescriptor)||void 0===n?void 0:n.direction;i.props.allowsSorting&&!Ef()&&(u=p?h:"none");let g,m=Yo(Mf(Df));return s&&(g=`${m("sortable")}`,p&&h&&Ef()&&(g=`${g}, ${m(h)}`)),{columnHeaderProps:{...Km(a,c,d,mf(g)),role:"columnheader",id:Bf(t,i.key),"aria-colspan":i.colspan&&i.colspan>1?i.colspan:null,"aria-sort":u}}}function wb(e,t,r){let{node:o}=e,{rowProps:n,isPressed:i}=Tm(e,t,r);return{rowProps:{...n,"aria-labelledby":Hf(t,o.key)},isPressed:i}}function Sb(e,t,r){let{node:o,isVirtualized:n}=e,i={role:"row"};return n&&(i["aria-rowindex"]=o.index+1),{rowProps:i}}function Cb(e,t,r){let{gridCellProps:o,isPressed:n}=Im(e,t,r),i=e.node.column.key;return t.collection.rowHeaderColumnKeys.has(i)&&(o.role="rowheader",o.id=zf(t,e.node.parentKey,i)),{gridCellProps:o,isPressed:n}}Rf({},"useTableColumnHeader",(()=>xb)),Rf({},"useTableRow",(()=>wb)),Rf({},"useTableHeaderRow",(()=>Sb)),Rf({},"useTableCell",(()=>Cb));var kb={};function Eb(e,t){let{key:r}=e;const{checkboxProps:o}=Mm(e,t);return{checkboxProps:{...o,"aria-labelledby":`${o.id} ${Hf(t,r)}`}}}function Pb(e){let{isEmpty:t,isSelectAll:r,selectionMode:o}=e.selectionManager;return{checkboxProps:{"aria-label":Yo(Mf(Df))("single"===o?"select":"selectAll"),isSelected:r,isDisabled:"multiple"!==o,isIndeterminate:!t&&!r,onChange:()=>e.selectionManager.toggleSelectAll()}}}function Tb(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Ib(e){return null}function Nb(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&m().Children.count(e.children)>0)}Rf(kb,"useTableSelectionCheckbox",(()=>Eb)),Rf(kb,"useTableSelectAllCheckbox",(()=>Pb)),Tb({},"Item",(()=>Mb)),Ib.getCollectionNode=function*(e,t){let{childItems:r,title:o,children:n}=e,i=e.title||e.children,s=e.textValue||("string"==typeof i?i:"")||e["aria-label"]||"";s||(null==t?void 0:t.suppressTextValueWarning)||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:i,textValue:s,"aria-label":e["aria-label"],hasChildNodes:Nb(e),*childNodes(){if(r)for(let e of r)yield{type:"item",value:e};else if(o){let e=[];m().Children.forEach(n,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let Mb=Ib;function Rb(e){return null}Tb({},"Section",(()=>Ab)),Rb.getCollectionNode=function*(e){let{children:t,title:r,items:o}=e;yield{type:"section",hasChildNodes:!0,rendered:r,"aria-label":e["aria-label"],*childNodes(){if("function"==typeof t){if(!o)throw new Error("props.children was a function but props.items is missing");for(let e of o)yield{type:"item",value:e,renderer:t}}else{let e=[];m().Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let Ab=Rb;Tb({},"useCollection",(()=>Db));class Lb{build(e,t){return this.context=t,Bb((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:r}=e;if("function"==typeof t){if(!r)throw new Error("props.children was a function but props.items is missing");for(let r of e.items)yield*this.getFullNode({value:r},{renderer:t})}else{let e=[];m().Children.forEach(t,(t=>{e.push(t)}));let r=0;for(let t of e){let e=this.getFullNode({element:t,index:r},{});for(let t of e)r++,yield t}}}getKey(e,t,r,o){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${o}${t.key}`;let n=t.value;if(null!=n){var i;let e=null!==(i=n.key)&&void 0!==i?i:n.id;if(null==e)throw new Error("No key found for item");return e}return o?`${o}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,o){let n=e.element;if(!n&&e.value&&t&&t.renderer){let r=this.cache.get(e.value);if(r&&(!r.shouldInvalidate||!r.shouldInvalidate(this.context)))return r.index=e.index,r.parentKey=o?o.key:null,void(yield r);n=t.renderer(e.value)}if(m().isValidElement(n)){let i=n.type;if("function"!=typeof i&&"function"!=typeof i.getCollectionNode){let e="function"==typeof n.type?n.type.name:n.type;throw new Error(`Unknown element <${e}> in collection.`)}let s=i.getCollectionNode(n.props,this.context),a=e.index,l=s.next();for(;!l.done&&l.value;){let i=l.value;e.index=a;let c=i.key;c||(c=i.element?null:this.getKey(n,e,t,r));let d=[...this.getFullNode({...i,key:c,index:a,wrapper:zb(e.wrapper,i.wrapper)},this.getChildState(t,i),r?`${r}${n.key}`:n.key,o)];for(let t of d){if(t.value=i.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${Hb(t.type)}> in <${Hb(o.type)}>. Only <${Hb(e.type)}> is supported.`);a++,yield t}l=s.next(d)}return}if(null==e.key)return;let i=this,s={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:e.value,level:o?o.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:Bb((function*(){if(!e.hasChildNodes)return;let r=0;for(let o of e.childNodes()){null!=o.key&&(o.key=`${s.key}${o.key}`),o.index=r;let e=i.getFullNode(o,i.getChildState(t,o),s.key,s);for(let t of e)r++,yield t}}))};yield s}constructor(){this.cache=new WeakMap}}function Bb(e){let t=[],r=null;return{*[Symbol.iterator](){for(let e of t)yield e;r||(r=e());for(let e of r)t.push(e),yield e}}}function zb(e,t){return e&&t?r=>e(t(r)):e||t||void 0}function Hb(e){return e[0].toUpperCase()+e.slice(1)}function Db(e,t,r,o=[]){let n=(0,g.useMemo)((()=>new Lb),[]),i=(0,g.useRef)(null);return(0,g.useMemo)((()=>{let o=n.build(e,r);return i.current=t(o,i.current),i.current}),[n,e.children,e.items,r,...o])}Tb({},"getItemCount",(()=>Kb));const Ob=new WeakMap;function Kb(e){let t=Ob.get(e);if(null!=t)return t;t=0;for(let r of e)"section"===r.type?t+=Kb(r.childNodes):t++;return Ob.set(e,t),t}function Fb(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}Fb({},"useMultipleSelectionState",(()=>_b));class jb extends Set{constructor(e,t,r){super(e),e instanceof jb?(this.anchorKey=t||e.anchorKey,this.currentKey=r||e.currentKey):(this.anchorKey=t,this.currentKey=r)}}function _b(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:o}=e,n=(0,g.useRef)(!1),[,i]=(0,g.useState)(!1),s=(0,g.useRef)(null),a=(0,g.useRef)(null),[,l]=(0,g.useState)(null),c=(0,g.useMemo)((()=>Wb(e.selectedKeys)),[e.selectedKeys]),d=(0,g.useMemo)((()=>Wb(e.defaultSelectedKeys,new jb)),[e.defaultSelectedKeys]),[u,p]=nn(c,d,e.onSelectionChange),h=(0,g.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[m,f]=(0,g.useState)(e.selectionBehavior||"toggle");return"replace"===e.selectionBehavior&&"toggle"===m&&"object"==typeof u&&0===u.size&&f("replace"),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:m,setSelectionBehavior:f,get isFocused(){return n.current},setFocused(e){n.current=e,i(e)},get focusedKey(){return s.current},get childFocusStrategy(){return a.current},setFocusedKey(e,t="first"){s.current=e,a.current=t,l(e)},selectedKeys:u,setSelectedKeys(e){!o&&function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,u)||p(e)},disabledKeys:h}}function Wb(e,t){return e?"all"===e?"all":new jb(e):t}Fb({},"SelectionManager",(()=>Vb));class Vb{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?!this.state.disabledKeys.has(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let r=this.collection.getItem(t);(!e||(null==r?void 0:r.index)<e.index)&&(e=r)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let r=this.collection.getItem(t);(!e||(null==r?void 0:r.index)>e.index)&&(e=r)}return null==e?void 0:e.key}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new jb([e],e,e);else{let r=this.state.selectedKeys,o=r.anchorKey||e;t=new jb(r,o,e);for(let n of this.getKeyRange(o,r.currentKey||e))t.delete(n);for(let r of this.getKeyRange(e,o))this.state.disabledKeys.has(r)||t.add(r)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let r=this.collection.getItem(e),o=this.collection.getItem(t);return r&&o?r.index<=o.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let r=[],o=e;for(;o;){let e=this.collection.getItem(o);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&r.push(o),o===t)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new jb("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){"none"!==this.selectionMode&&null!=(e=this.getKey(e))&&this.state.setSelectedKeys(new jb([e],e,e))}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new jb;for(let r of e)if(r=this.getKey(r),null!=r&&(t.add(r),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=r=>{for(;r;){if(!this.state.disabledKeys.has(r)){let o=this.collection.getItem(r);"item"===o.type&&e.push(r),o.hasChildNodes&&(this.allowsCellSelection||"item"!==o.type)&&t([...o.childNodes][0].key)}r=this.collection.getKeyAfter(r)}};return t(this.collection.getFirstKey()),e}selectAll(){"multiple"===this.selectionMode&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new jb)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;for(let r of t)if(!e.has(r))return!1;return!0}canSelectItem(e){if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let t=this.collection.getItem(e);return!(!t||"cell"===t.type&&!this.allowsCellSelection)}constructor(e,t,r){var o;this.collection=e,this.state=t,this.allowsCellSelection=null!==(o=null==r?void 0:r.allowsCellSelection)&&void 0!==o&&o,this._isSelectAll=null}}function Ub(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Gb(e){let{collection:t,focusMode:r}=e,o=_b(e),n=(0,g.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),i=o.setFocusedKey;return o.setFocusedKey=(e,o)=>{if("cell"===r&&null!=e){let r=t.getItem(e);if("item"===(null==r?void 0:r.type)){var n,s;let t=[...r.childNodes];e="last"===o?null===(n=t[t.length-1])||void 0===n?void 0:n.key:null===(s=t[0])||void 0===s?void 0:s.key}}i(e,o)},(0,g.useEffect)((()=>{null==o.focusedKey||t.getItem(o.focusedKey)||o.setFocusedKey(null)}),[t,o.focusedKey]),{collection:t,disabledKeys:n,selectionManager:new Vb(t,o)}}Ub({},"useGridState",(()=>Gb)),Ub({},"GridCollection",(()=>Yb));var Jb=Symbol.iterator;class Yb{*[Jb](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){var e;return null===(e=[...this.rows][0])||void 0===e?void 0:e.key}getLastKey(){var e;let t=[...this.rows];return null===(e=t[t.length-1])||void 0===e?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=null==e?void 0:e.columnCount,this.rows=[];let t,r=t=>{let n=this.keyMap.get(t.key);e.visitNode&&(t=e.visitNode(t)),this.keyMap.set(t.key,t);let i,s=new Set;for(let e of t.childNodes)"cell"===e.type&&null==e.parentKey&&(e.parentKey=t.key),s.add(e.key),i?(i.nextKey=e.key,e.prevKey=i.key):e.prevKey=null,r(e),i=e;if(i&&(i.nextKey=null),n)for(let e of n.childNodes)s.has(e.key)||o(e)},o=e=>{this.keyMap.delete(e.key);for(let t of e.childNodes)this.keyMap.get(t.key)===t&&o(t)};e.items.forEach(((e,o)=>{let n={level:0,key:"row-"+o,type:"row",value:void 0,hasChildNodes:!0,childNodes:[...e.childNodes],rendered:void 0,textValue:void 0,...e,index:o};t?(t.nextKey=n.key,n.prevKey=t.key):n.prevKey=null,this.rows.push(n),r(n),t=n})),t&&(t.nextKey=null)}}function Xb(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}Xb({},"useTableState",(()=>t$));const qb="row-header-column-"+Math.random().toString(36).slice(2);var Zb=Symbol.iterator;class Qb extends Yb{*[Zb](){yield*this.body.childNodes}get size(){return[...this.body.childNodes].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){var e;return null===(e=[...this.body.childNodes][0])||void 0===e?void 0:e.key}getLastKey(){var e;let t=[...this.body.childNodes];return null===(e=t[t.length-1])||void 0===e?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,t,r){let o,n=new Set,i=[];if(null==r?void 0:r.showSelectionCheckboxes){let e={type:"column",key:qb,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};i.unshift(e)}let s=[],a=new Map,l=e=>{switch(e.type){case"body":o=e;break;case"column":a.set(e.key,e),e.hasChildNodes||(i.push(e),e.props.isRowHeader&&n.add(e.key));break;case"item":return void s.push(e)}for(let t of e.childNodes)l(t)};for(let t of e)l(t);let c=function(e,t){let r=[],o=new Map;for(let n of t){let t=n.parentKey,i=[n];for(;t;){let r=e.get(t);if(o.has(r)){r.colspan++;let{column:e,index:t}=o.get(r);if(t>i.length)break;for(let r=t;r<i.length;r++)e.splice(r,0,null);for(let t=i.length;t<e.length;t++)e[t]&&o.has(e[t])&&(o.get(e[t]).index=t)}else r.colspan=1,i.push(r),o.set(r,{column:i,index:i.length-1});t=r.parentKey}r.push(i),n.index=r.length-1}let n=Math.max(...r.map((e=>e.length))),i=Array(n).fill(0).map((()=>[])),s=0;for(let e of r){let t=n-1;for(let r of e){if(r){let e=i[t],o=e.reduce(((e,t)=>e+t.colspan),0);if(o<s){let n={type:"placeholder",key:"placeholder-"+r.key,colspan:s-o,index:o,value:null,rendered:null,level:t,hasChildNodes:!1,childNodes:[],textValue:null};e.length>0&&(e[e.length-1].nextKey=n.key,n.prevKey=e[e.length-1].key),e.push(n)}e.length>0&&(e[e.length-1].nextKey=r.key,r.prevKey=e[e.length-1].key),r.level=t,r.index=s,e.push(r)}t--}s++}let a=0;for(let e of i){let r=e.reduce(((e,t)=>e+t.colspan),0);if(r<t.length){let o={type:"placeholder",key:"placeholder-"+e[e.length-1].key,colspan:t.length-r,index:r,value:null,rendered:null,level:a,hasChildNodes:!1,childNodes:[],textValue:null,prevKey:e[e.length-1].key};e.push(o)}a++}return i.map(((e,t)=>({type:"headerrow",key:"headerrow-"+t,index:t,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:e,textValue:null})))}(a,i);c.forEach(((e,t)=>s.splice(t,0,e))),super({columnCount:i.length,items:s,visitNode:e=>(e.column=i[e.index],e)}),this.columns=i,this.rowHeaderColumnKeys=n,this.body=o,this.headerRows=c,0===this.rowHeaderColumnKeys.size&&this.rowHeaderColumnKeys.add(this.columns[(null==r?void 0:r.showSelectionCheckboxes)?1:0].key)}}const e$={ascending:"descending",descending:"ascending"};function t$(e){let{selectionMode:t="none"}=e,r=(0,g.useMemo)((()=>({showSelectionCheckboxes:e.showSelectionCheckboxes&&"none"!==t,selectionMode:t,columns:[]})),[e.children,e.showSelectionCheckboxes,t]),o=Db(e,((e,t)=>new Qb(e,t,r)),r),{disabledKeys:n,selectionManager:i}=Gb({...e,collection:o});return{collection:o,disabledKeys:n,selectionManager:i,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor,sort(t){var r;e.onSortChange({column:t,direction:(null===(r=e.sortDescriptor)||void 0===r?void 0:r.column)===t?e$[e.sortDescriptor.direction]:"ascending"})}}}function r$(e){return null}Xb({},"TableHeader",(()=>o$)),r$.getCollectionNode=function*(e){let{children:t,columns:r}=e;if("function"==typeof t){if(!r)throw new Error("props.children was a function but props.columns is missing");for(let e of r)yield{type:"column",value:e,renderer:t}}else{let e=[];m().Children.forEach(t,(t=>{e.push({type:"column",element:t})})),yield*e}};let o$=r$;function n$(e){return null}Xb({},"TableBody",(()=>i$)),n$.getCollectionNode=function*(e){let{children:t,items:r}=e;yield{type:"body",hasChildNodes:!0,props:e,*childNodes(){if("function"==typeof t){if(!r)throw new Error("props.children was a function but props.items is missing");for(let e of r)yield{type:"item",value:e,renderer:t}}else{let e=[];m().Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let i$=n$;function s$(e){return null}Xb({},"Column",(()=>a$)),s$.getCollectionNode=function*(e,t){let{title:r,children:o,childColumns:n}=e,i=r||o,s=e.textValue||("string"==typeof i?i:"")||e["aria-label"],a=yield{type:"column",hasChildNodes:!!n||r&&m().Children.count(o)>0,rendered:i,textValue:s,props:e,*childNodes(){if(n)for(let e of n)yield{type:"column",value:e};else if(r){let e=[];m().Children.forEach(o,(t=>{e.push({type:"column",element:t})})),yield*e}},shouldInvalidate:e=>(l(e),!1)},l=e=>{for(let t of a)t.hasChildNodes||e.columns.push(t)};l(t)};let a$=s$;function l$(e){return null}Xb({},"Row",(()=>c$)),l$.getCollectionNode=function*(e,t){let{children:r,textValue:o}=e;yield{type:"item",props:e,textValue:o,"aria-label":e["aria-label"],hasChildNodes:!0,*childNodes(){if(t.showSelectionCheckboxes&&"none"!==t.selectionMode&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),"function"==typeof r)for(let e of t.columns)yield{type:"cell",element:r(e.key),key:e.key};else{let e=[];if(m().Children.forEach(r,(t=>{e.push({type:"cell",element:t})})),e.length!==t.columns.length)throw new Error(`Cell count must match column count. Found ${e.length} cells and ${t.columns.length} columns.`);yield*e}},shouldInvalidate:e=>e.columns.length!==t.columns.length||e.columns.some(((e,r)=>e.key!==t.columns[r].key))||e.showSelectionCheckboxes!==t.showSelectionCheckboxes||e.selectionMode!==t.selectionMode}};let c$=l$;function d$(e){return null}Xb({},"Cell",(()=>u$)),d$.getCollectionNode=function*(e){let{children:t}=e,r=e.textValue||("string"==typeof t?t:"")||e["aria-label"]||"";yield{type:"cell",props:e,rendered:t,textValue:r,"aria-label":e["aria-label"],hasChildNodes:!1}};let u$=d$;const p$=Oe("tr",{ov:"visible"}),h$=Oe("th",{height:"$14",cursor:"default",bg:"$accents0",color:"$accents7",fontSize:"$xs",textAlign:"left",position:"relative","@motion":{transition:"none"},"&:first-child":{pl:"$8",br:"$md 0 0 $md"},"&:last-child":{pr:"$8",br:"0 $md $md 0"},variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}},animated:{false:{transition:"none"}},allowsSorting:{true:{transition:"background 0.25s ease 0s, color 0.25s ease 0s",cursor:"pointer","@motion":{transition:"none"},"&:hover":{color:"$accents8",bg:"$accents1"}}}},defaultVariants:{align:"left",animated:!0},compoundVariants:[{animated:!1,allowsSorting:!0,css:{transition:"none"}}]},tl),g$=Oe(h$,tl),m$=Oe("tfoot",{height:"$14",variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}}},defaultVariants:{align:"right"}}),f$=Oe("td",{}),b$=Oe(f$,{position:"relative",userSelect:"none",py:"$5",pr:"$5",zIndex:"$2",ov:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&:first-child":{pl:"$8"},"&:last-child":{pr:"$8"},"&:before":{zIndex:"-$1",transition:"background 0.25s ease 0s, opacity 0.25s ease 0s",content:'""',position:"absolute",size:"100%",top:0,left:0,opacity:0,transform:"translateZ(0)",backfaceVisibility:"hidden"},variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}}}},tl),$$=Oe("tr",{ov:"visible",color:"$text",variants:{isDisabled:{true:{color:"$accents3",pointerEvents:"none",cursor:"not-allowed"}},isSelected:{true:{color:"$$tableRowTextColor",[`& ${b$}:before`]:{opacity:1,bg:"$$tableRowColor"}}}}},tl),y$=Oe("thead",{variants:{isFixed:{true:{display:"table",width:"100%",tableLayout:"fixed"}},isInfinityScroll:{true:{display:"block",height:"100%",overflow:"auto",[`& ${$$}`]:{display:"table",width:"100%",tableLayout:"fixed"}}}},defaultVariants:{isInfinityScroll:!1}}),v$=Oe("tr",{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",height:"calc(100% - $space$14)",variants:{isAtEnd:{true:{height:"$space$18"}},isAbsolute:{true:{position:"absolute",left:"0",top:"$10"}}}}),x$=Oe("table",{borderCollapse:"separate",borderSpacing:0,width:"100%",p:"$md $sm","@motion":{[`& ${b$}:before`]:{transition:"none"}},variants:{animated:{false:{[`& ${b$}:before`]:{transition:"none"}}},color:{primary:{$$tableRowColor:"$colors$primaryLight",$$tableRowTextColor:"$colors$primaryLightContrast"},secondary:{$$tableRowColor:"$colors$secondaryLight",$$tableRowTextColor:"$colors$secondaryLightContrast"},success:{$$tableRowColor:"$colors$successLight",$$tableRowTextColor:"$colors$successLightContrast"},warning:{$$tableRowColor:"$colors$warningLight",$$tableRowTextColor:"$colors$warningLightContrast"},error:{$$tableRowColor:"$colors$errorLight",$$tableRowTextColor:"$colors$errorLightContrast"}},striped:{true:{[`& ${$$}[aria-selected=false]:nth-child(even)`]:{[`& ${b$}`]:{bg:"$accents0"}},[`& ${$$}:nth-child(even)`]:{[`& ${b$}:first-child`]:{br:"$lg 0 0 $lg"},[`& ${b$}:last-child`]:{br:"0 $lg $lg 0"}}}},sticked:{true:{p:0,[`& ${h$}:first-child`]:{br:"$lg 0 0 0"},[`& ${h$}:last-child`]:{br:"0 $lg 0 0"}}},lineWeight:{light:{$$tableLineWeight:"$borderWeights$light"},normal:{$$tableLineWeight:"$borderWeights$normal"},bold:{$$tableLineWeight:"$borderWeights$bold"},extrabold:{$$tableLineWeight:"$borderWeights$extrabold"},black:{$$tableLineWeight:"$borderWeights$black"}},headerLined:{true:{[`& ${h$}`]:{position:"relative",bg:"transparent","&:after":{content:"",position:"absolute",left:0,right:0,bottom:0,height:"calc($$tableLineWeight * 1.5)",bg:"$accents1"},"&:first-child":{ml:"$12",br:"0","&:after":{left:"$space$md"}},"&:last-child":{br:"0","&:after":{right:"$space$md"}}}}},lined:{true:{[`& ${$$}:not(:last-child)`]:{position:"relative",[`& ${b$}:after`]:{content:"",position:"absolute",bottom:0,left:0,right:0,height:"$$tableLineWeight",bg:"$border"},[`& ${b$}:first-child`]:{"&:after":{left:"$space$md"}},[`& ${b$}:last-child`]:{"&:after":{right:"$space$md"}}},[`& ${$$}[aria-selected=true]:not(last-child)`]:{[`& ${b$}:after`]:{bg:"$$tableRowTextColor",opacity:.3}}}},fixed:{true:{tableLayout:"fixed"}},hoverable:{true:{[`& ${b$}:first-child`]:{br:"$md 0 0 $md"},[`& ${b$}:last-child`]:{br:"0 $md $md 0"},[`& ${$$}`]:{cursor:"pointer"},[`& ${$$}[aria-selected=false]`]:{"&:hover":{[`& ${b$}:before`]:{opacity:1,bg:"$accents0"}}},[`& ${$$}[aria-selected=true]`]:{"&:hover":{[`& ${b$}:before`]:{opacity:.8}}}},false:{[`& ${b$}`]:{userSelect:"all"}}},isMultiple:{true:{}},hasPagination:{true:{}},shadow:{true:{}},compact:{true:{[`& ${b$}`]:{py:"$1"},[`& ${h$}`]:{height:"$12","&:first-child":{br:"$sm 0 0 $sm"},"&:last-child":{br:"0 $sm $sm 0"}}}}},compoundVariants:[{isMultiple:!0,hoverable:!0,css:{[`& ${$$}:not(:first-child):not(:last-child)`]:{[`& ${b$}:first-child`]:{br:0},[`& ${b$}:last-child`]:{br:0}},[`& ${$$}:first-child`]:{[`& ${b$}:first-child`]:{br:"$md 0 0 0"},[`& ${b$}:last-child`]:{br:"0 $md 0 0"}},[`& ${$$}:last-child`]:{[`& ${b$}:first-child`]:{br:"0 0 0 $md"},[`& ${b$}:last-child`]:{br:"0 0 $md 0"}}}},{isMultiple:!0,hoverable:!0,sticked:!0,css:{[`& ${$$}:first-child`]:{[`& ${b$}:first-child`]:{br:"0"},[`& ${b$}:last-child`]:{br:"0"}}}},{compact:!0,shadow:!0,css:{p:"$md $sm"}},{compact:!0,sticked:!0,css:{p:0}},{sticked:!0,isMultiple:!1,hoverable:!0,hasPagination:!1,css:{[`& ${$$}:not(:last-child)`]:{[`& ${b$}`]:{br:"0"}},[`& ${$$}:last-child`]:{[`& ${b$}:first-child`]:{br:"0 0 0 $md"},[`& ${b$}:last-child`]:{br:"0 0 $md 0"}}}},{sticked:!0,isMultiple:!1,hoverable:!0,hasPagination:!0,css:{[`& ${$$}`]:{[`& ${b$}`]:{br:"0"}}}},{sticked:!0,hasPagination:!0,css:{pb:"$5"}},{sticked:!0,hasPagination:!0,isMultiple:!0,hoverable:!0,css:{[`& ${$$}:last-child`]:{[`& ${b$}:first-child`]:{br:"0"},[`& ${b$}:last-child`]:{br:"0"}}}}],defaultVariants:{sticked:!1,color:"primary",lineWeight:"light"}}),w$=Oe("div",{display:"flex",flexDirection:"column",br:"$xl",overflowX:"auto",overflowY:"hidden",variants:{shadow:{true:{bs:"$md"}},bordered:{true:{borderStyle:"solid",borderColor:"$border"},false:{bw:0}},borderWeight:{light:{bw:"$light"},normal:{bw:"$normal"},bold:{bw:"$bold"},extrabold:{bw:"$extrabold"},black:{bw:"$black"}}},defaultVariants:{shadow:!0,borderWeight:"normal"}}),S$=vt((({children:e,...t})=>{const{rowGroupProps:r}={rowGroupProps:{role:"rowgroup"}};return(0,St.jsx)(y$,{className:wt("nextui-table-row-group",t.className),...t,...r,children:e})}),{as:"thead"}),C$=Oe("svg",{opacity:0,transition:"$default",path:{fill:"$$tableRowTextColor"},variants:{visible:{true:{opacity:1}},ascending:{true:{transform:"rotate(180deg)"}}}}),k$=e=>(0,St.jsx)(C$,{role:"presentation","aria-hidden":"true",focusable:"false",className:"nextui-table-sort-icon",width:22,height:22,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,St.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2ZM16.06 11.27L12.53 14.8C12.38 14.95 12.19 15.02 12 15.02C11.81 15.02 11.62 14.95 11.47 14.8L7.94 11.27C7.65 10.98 7.65 10.5 7.94 10.21C8.23 9.92 8.71 9.92 9 10.21L12 13.21L15 10.21C15.29 9.92 15.77 9.92 16.06 10.21C16.35 10.5 16.35 10.97 16.06 11.27Z"})}),E$=m().forwardRef((({column:e,state:t,...r},o)=>{var n,i;const s=(0,g.useRef)(null);(0,g.useImperativeHandle)(o,(()=>null==s?void 0:s.current));const{columnHeaderProps:a}=xb({node:e},t,s),{isFocusVisible:l,focusProps:c}=El(),{hideHeader:d,...u}=e.props;return(0,St.jsxs)(h$,{ref:s,isFocusVisible:l,colSpan:e.colspan,className:wt("nextui-table-column-header",r.className),...$n(r,a,c,u),children:[d?(0,St.jsx)(Is,{children:e.rendered}):e.rendered,u.allowsSorting&&(0,St.jsx)(k$,{visible:(null==(n=t.sortDescriptor)?void 0:n.column)===e.key,ascending:"ascending"===(null==(i=t.sortDescriptor)?void 0:i.direction),css:{position:"absolute",m:"0 $2",bottom:"calc(50% - 11px)"}})]})}));E$.displayName="NextUI.TableColumnHeader",E$.toString=()=>".nextui-table-column-header";const P$=E$,T$=m().forwardRef((({children:e,item:t,state:r,...o},n)=>{const i=(0,g.useRef)(null);(0,g.useImperativeHandle)(n,(()=>null==i?void 0:i.current));const{rowProps:s}=Sb({node:t});return(0,St.jsx)(p$,{ref:i,className:wt("nextui-table-header-row",o.className),...o,...s,children:e})}));T$.displayName="NextUI.TableHeaderRow",T$.toString=()=>".nextui-table-header-row";const I$=T$,N$=m().forwardRef((({column:e,state:t,color:r,animated:o,...n},i)=>{const s=(0,g.useRef)(null);(0,g.useImperativeHandle)(i,(()=>null==s?void 0:s.current));const a="single"===t.selectionManager.selectionMode,{columnHeaderProps:l}=xb({node:e},t,s),{checkboxProps:c}=Pb(t),{isFocusVisible:d,focusProps:u}=El();return(0,St.jsx)(g$,{ref:s,isFocusVisible:d,className:wt("nextui-table-select-all-checkbox",n.className),...$n(l,u,n),children:a?(0,St.jsx)(Is,{children:c["aria-label"]}):(0,St.jsx)(rd,{...c,color:r,disableAnimation:!o,css:{display:"inherit",$$checkboxBorderColor:"$colors$accents3"}})})}));N$.displayName="NextUI.TableSelectAllCheckbox",N$.toString=()=>".nextui-table-select-all-checkbox";const M$=N$,R$={footerAlign:"end",rowsPerPage:0,currentPage:1,animated:!0},A$=m().createContext(R$),L$=()=>m().useContext(A$),B$=({children:e,defaultValues:t})=>{const[r,o]=m().useState((null==t?void 0:t.footerAlign)||R$.footerAlign),[n,i]=m().useState(void 0===(null==t?void 0:t.animated)?R$.animated:null==t?void 0:t.animated),[s,a]=m().useState(null==t?void 0:t.collection),[l,c]=m().useState(void 0===(null==t?void 0:t.rowsPerPage)?R$.rowsPerPage:null==t?void 0:t.rowsPerPage),[d,u]=m().useState(R$.currentPage),[p,h]=m().useState(null==t?void 0:t.color),g=m().useMemo((()=>({animated:n,footerAlign:r,collection:s,rowsPerPage:l,currentPage:d,color:p,setFooterAlign:o,setCollection:a,setAnimated:i,setRowsPerPage:c,setColor:h,setCurrentPage:u})),[n,p,s,r,l,d]);return(0,St.jsx)(A$.Provider,{value:g,children:e})},z$=(A$.Consumer,({align:e,rowsPerPage:t,onPageChange:r,...o})=>{const{color:n,animated:i,collection:s,footerAlign:a,rowsPerPage:l,setFooterAlign:c,setRowsPerPage:d,setCurrentPage:u}=L$();m().useEffect((()=>{e&&e!==a&&(null==c||c(e))}),[e,a]),m().useEffect((()=>{t&&t!==l&&(null==d||d(t))}),[l,t]);const p=(0,g.useMemo)((()=>{var e;const t=null!=s&&s.body?[...null==s||null==(e=s.body)?void 0:e.childNodes].length:0;return l>0?Math.ceil(t/l):1}),[s,l]);return(0,St.jsx)(Th,{total:p,animated:i,onChange:e=>{null==u||u(e),null==r||r(e)},color:o.color||n,className:wt("nextui-table-pagination",o.className),...o})});z$.displayName="NextUI.TablePagination",z$.toString=()=>".nextui-table-pagination";const H$=z$,D$=m().forwardRef((({children:e,...t},r)=>{const o=(0,g.useRef)(null);(0,g.useImperativeHandle)(r,(()=>null==o?void 0:o.current));const{footerAlign:n}=L$();return(0,St.jsx)(m$,{ref:o,role:"rowgroup",align:t.align||n,className:wt("nextui-table-footer",t.className),...t,children:e})}));D$.displayName="NextUI.TableFooter",D$.toString=()=>".nextui-table-footer";const O$=D$,K$=m().forwardRef((({children:e,item:t,state:r,...o},n)=>{const i=(0,g.useRef)(null);(0,g.useImperativeHandle)(n,(()=>null==i?void 0:i.current));const{rowProps:s}=wb({node:t},r,i),{isFocusVisible:a,focusProps:l}=El(),c=r.disabledKeys.has(t.key);return(0,St.jsx)($$,{ref:i,isFocusVisible:a,isSelected:!!s["aria-selected"],isDisabled:c,className:wt("nextui-table-row",{"nextui-table-row--selected":s["aria-selected"],"nextui-table-row--disabled":c},o.className),css:t.props.css,...$n(s,l,o),children:e})}));K$.displayName="NextUI.TableRow",K$.toString=()=>".nextui-table-row";const F$=K$,j$=m().forwardRef((({cell:e,state:t,...r},o)=>{const n=(0,g.useRef)(null);(0,g.useImperativeHandle)(o,(()=>null==n?void 0:n.current));const{gridCellProps:i}=Cb({node:e},t,n),{isFocusVisible:s,focusProps:a}=El();return(0,St.jsx)(b$,{ref:n,isFocusVisible:s,className:wt("nextui-table-cell",r.className),css:e.props.css,...$n(i,a,r),children:e.rendered})}));j$.displayName="NextUI.TableCell",j$.toString=()=>".nextui-table-cell";const _$=j$,W$=m().forwardRef((({cell:e,state:t,color:r,animated:o,...n},i)=>{const s=(0,g.useRef)(null);(0,g.useImperativeHandle)(i,(()=>null==s?void 0:s.current));const{gridCellProps:a}=Cb({node:e},t,s),{checkboxProps:l}=Eb({key:(null==e?void 0:e.parentKey)||e.key},t),{isFocusVisible:c,focusProps:d}=El();return(0,St.jsx)(b$,{ref:s,isFocusVisible:c,className:wt("nextui-table-checkbox-cell",n.className),...$n(a,d,n),children:(0,St.jsx)(rd,{...l,color:r,disableAnimation:!o,css:{display:"inherit"}})})}));W$.displayName="NextUI.TableCheckboxCell",W$.toString=()=>".nextui-table-checkbox-cell";const V$=W$,U$=e=>{var t;const r=null==(t=e.body)?void 0:t.props;return void 0!==(null==r?void 0:r.loadingState)&&"function"==typeof(null==r?void 0:r.onLoadMore)},G$=({children:e,collection:t,state:r,animated:o,color:n,hasPagination:i,hideLoading:s,...a})=>{var l,c,d,u,p,h;const{currentPage:m,rowsPerPage:f}=L$(),b=(0,g.useMemo)((()=>U$(t)),[t.body.props]),$="loading"===(null==(l=t.body)||null==(c=l.props)?void 0:c.loadingState)||"loadingMore"===(null==(d=t.body)||null==(u=d.props)?void 0:u.loadingState),y=(0,g.useMemo)((()=>{const e=[...t.body.childNodes];return i?null==e?void 0:e.slice((m-1)*f,m*f):e}),[i,t,m,f]),v=(0,g.useMemo)((()=>{const e=y.length;return e>=f&&!b?null:(0,St.jsx)("tr",{role:"row",className:"nextui-table-hidden-row","aria-hidden":"true",children:(0,St.jsx)(f$,{"aria-hidden":"true",colSpan:t.columnCount,style:$n({"--nextui--tableBodyEmptySpaceHeight":b?"var(--nextui-space-10)":`calc(${f-e} * var(--nextui-space-14))`},(null==a?void 0:a.style)||{}),css:{height:"var(--nextui--tableBodyEmptySpaceHeight)"}})})}),[t.columnCount,y,f,b]);return(0,St.jsxs)(S$,{as:"tbody",className:wt("nextui-table-body",a.className),isInfinityScroll:b,onScroll:e=>{if(!b)return;const r=e.target;var o,n;r.scrollHeight-(r.scrollTop+40)<=r.clientHeight&&!$&&(null==(o=t.body)||null==(n=o.props)||null==n.onLoadMore||n.onLoadMore())},css:{pb:"$10",position:"relative",...a.css,...null==(p=t.body)||null==(h=p.props)?void 0:h.css},...a,children:[e,null==y?void 0:y.map((e=>e.hasChildNodes?(0,St.jsx)(F$,{"aria-hidden":"false",item:e,state:r,children:[...e.childNodes].map((e=>{var t;return null!=e&&null!=(t=e.props)&&t.isSelectionCell?(0,St.jsx)(V$,{cell:e,state:r,color:n,animated:o},null==e?void 0:e.key):(0,St.jsx)(_$,{cell:e,state:r},null==e?void 0:e.key)}))},null==e?void 0:e.key):null)),!s&&$&&(0,St.jsx)(v$,{role:"row",className:"nextui-table-hidden-row","aria-hidden":"true",isAtEnd:y.length>0,isAbsolute:!b,children:(0,St.jsx)(f$,{"aria-hidden":"true",colSpan:t.columnCount,children:(0,St.jsx)(Du,{color:n})})}),v]})};G$.displayName="NextUI.TableBody",G$.toString=()=>".nextui-table-body";const J$=G$,Y$=m().forwardRef(((e,t)=>{const{selectionMode:r,selectionBehavior:o,hideLoading:n,children:i,shadow:s,color:a,animated:l,borderWeight:c,bordered:d,containerCss:u,...p}=e,[f,b]=((e,t)=>{const[r,o]=qe(e,t);let n=null;return o&&o.length>=1&&(n=o.length>=0?o[0]:void 0),[r,n]})(i,H$),{hasPagination:$,rowsPerPage:y}=((e,t)=>{const r=m().Children.toArray(e).find((e=>m().isValidElement(e)&&e.type===t));var o;return m().isValidElement(r)?{hasPagination:!0,rowsPerPage:(null==r||null==(o=r.props)?void 0:o.rowsPerPage)||0}:{hasPagination:!1,rowsPerPage:0}})(i,H$),v=t$({...e,children:f,showSelectionCheckboxes:void 0!==e.showSelectionCheckboxes?e.showSelectionCheckboxes:"multiple"===r&&"replace"!==o});Object.keys(p).forEach((e=>{h.indexOf(e)>-1&&delete p[e]}));const x=(0,g.useRef)(null);(0,g.useImperativeHandle)(t,(()=>null==x?void 0:x.current));const{collection:w}=v,{gridProps:S}=vb(e,v,x),C=m().useMemo((()=>({collection:w,color:a,animated:l,rowsPerPage:y})),[w,l,a,y]);return(0,St.jsx)(B$,{defaultValues:C,children:(0,St.jsx)(w$,{shadow:s,borderWeight:c,bordered:d,className:"nextui-table-container",css:{...u},children:(0,St.jsxs)(x$,{ref:x,color:a,shadow:s,animated:l,hoverable:"none"!==r||p.hoverable,isMultiple:"multiple"===r,hasPagination:$,className:wt("nextui-table",p.className),...S,...p,children:[(0,St.jsxs)(S$,{as:"thead",isFixed:U$(w),children:[w.headerRows.map((e=>(0,St.jsx)(I$,{item:e,state:v,children:[...e.childNodes].map((e=>{var t;return null!=e&&null!=(t=e.props)&&t.isSelectionCell?(0,St.jsx)(M$,{column:e,state:v,color:a,animated:l},null==e?void 0:e.key):(0,St.jsx)(P$,{column:e,state:v,animated:l},null==e?void 0:e.key)}))},null==e?void 0:e.key))),!p.sticked&&(0,St.jsx)(Wd,{as:"tr",className:"nextui-table-hidden-row",y:.4})]}),(0,St.jsx)(J$,{state:v,color:a,collection:w,animated:l,hasPagination:$,hideLoading:n}),$&&(0,St.jsxs)(O$,{children:[(0,St.jsx)(Wd,{as:"tr",className:"nextui-table-hidden-row",y:.6}),(0,St.jsx)("tr",{role:"row",children:(0,St.jsx)("th",{tabIndex:-1,role:"columnheader",colSpan:w.columnCount,children:b})})]})]})})})}));Y$.displayName="NextUI.Table",Y$.toString=()=>".nextui-table";const X$=vt(Y$,{animated:!0,hideLoading:!1,selectionMode:"none",selectionBehavior:"toggle"}),q$=u$,Z$=a$,Q$=o$,ey=c$,ty=i$;X$.Cell=q$,X$.Column=Z$,X$.Header=Q$,X$.Row=ey,X$.Body=ty,X$.Pagination=H$;const ry=X$;function oy(e){let[t,r]=nn(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,setOpen:r,open(){r(!0)},close(){r(!1)},toggle(){r(!t)}}}function ny(...e){return t=>{e.forEach((e=>function(e,t){if(null!=e)if(function(e){return"function"==typeof e}(e))e(t);else try{e.current=t}catch(r){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}(e,t)))}}Object.defineProperty({},"useOverlayTriggerState",{get:()=>oy,set:void 0,enumerable:!0,configurable:!0});const[iy,sy]=Oc({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),ay=m().forwardRef(((e,t)=>{const{children:r,...o}=e,n=function(e={}){const{ref:t,triggerRef:r,scrollRef:o,isOpen:n,defaultOpen:i,onOpenChange:s,isBordered:a,borderWeight:l,disableShadow:c,shouldFlip:d=!0,offset:u=12,placement:p="bottom",onClose:h,triggerType:m="dialog",isDismissable:f=!0,shouldCloseOnBlur:b=!1,isKeyboardDismissDisabled:$=!1,disableAnimation:y=!1,shouldCloseOnInteractOutside:v}=e,x=(0,g.useRef)(null),w=(0,g.useRef)(null),S=t||x,C=r||w,k=oy({isOpen:n,defaultOpen:i,onOpenChange:s}),[E,P]=(0,g.useState)(!k.isOpen),T=(0,g.useMemo)((()=>k.isOpen?"open":"closed"),[k.isOpen]),I=(0,g.useCallback)((()=>{null==h||h(),k.close()}),[k,h]),N=(0,g.useCallback)((()=>{P(!1)}),[]),M=(0,g.useCallback)((()=>{P(!0)}),[]),{triggerProps:R,overlayProps:A}=Ys({type:m},k,C),L=(0,g.useMemo)((()=>(e=>e?e.replace("-"," "):"bottom")(p)),[p]),{overlayProps:B}=Vs({isOpen:k.isOpen,targetRef:C,scrollRef:o,placement:L,overlayRef:S,shouldFlip:d,offset:u}),z=(0,g.useCallback)(((e={},t=null)=>({...null!=r&&r.current?$n(R,e):$n(e,R),ref:ny(C,t)})),[C,r,R]),H=(0,g.useCallback)(((e={})=>({...e,...A,...B,"data-state":T,"data-placement":p})),[T,B,A,p]);return{state:k,exited:E,overlayRef:S,triggerRef:C,placement:p,disableShadow:c,disableAnimation:y,shouldCloseOnBlur:b,isDismissable:f,isBordered:a,borderWeight:l,isKeyboardDismissDisabled:$,shouldCloseOnInteractOutside:v,isOpen:k.isOpen,onClose:I,onExited:M,onEntered:N,triggerProps:R,overlayProps:A,positionProps:B,getTriggerProps:z,getPopoverProps:H}}({ref:t,...o}),[i,s]=m().Children.toArray(r),a=n.state.isOpen||!n.exited;return(0,St.jsxs)(iy,{value:n,children:[i,a&&(0,St.jsx)(ca,{children:s})]})}));ay.toString=()=>".nextui-popover";const ly=ay;function cy(e,t){let{role:r="dialog"}=e,o=fn();return o=e["aria-label"]?void 0:o,(0,g.useEffect)((()=>{if(t.current&&!t.current.contains(document.activeElement)){al(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(t.current.blur(),al(t.current))}),500);return()=>{clearTimeout(e)}}}),[t]),{dialogProps:{...Sn(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o},titleProps:{id:o}}}Object.defineProperty({},"useDialog",{get:()=>cy,set:void 0,enumerable:!0,configurable:!0});const dy=je({"0%":{opacity:0,transform:"scale(0.95)"},"60%":{opacity:.75,transform:"scale(1.05)"},"100%":{opacity:1,transform:"scale(1)"}}),uy=je({"0%":{opacity:1,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(0.5)"}}),py=Oe("div",{$$popoverMinWidth:"$space$13",$$popoverMinHeight:"$space$13",$$popoverBorderRadius:"$radii$lg",$$popoverBackground:"$colors$backgroundContrast",$$popoverBoxShadow:"$shadows$md",$$popoverBorderColor:"$colors$border",boxShadow:"$$popoverBoxShadow",outline:"none",overflow:"hidden auto",bg:"$$popoverBackground",display:"inline-flex",flexDirection:"column",boxSizing:"border-box",minWidth:"$$popoverMinWidth",minHeight:"$$popoverMinHeight",maxWidth:"calc(100% - $$popoverMinWidth)",maxHeight:"calc(100% - $$popoverMinWidth)",borderRadius:"$$popoverBorderRadius",animationFillMode:"forwards",willChange:"transform, opacity","@motion":{transition:"none"},"&.nextui-popover-content-enter":{animationName:dy,animationTimingFunction:"ease-out",animationDirection:"normal",animationDuration:"250ms"},"&.nextui-popover-content-leave":{animationName:uy,animationTimingFunction:"ease-in",animationDuration:"60ms"},variants:{disableShadow:{true:{boxShadow:"none"}},isBordered:{true:{borderStyle:"solid",borderColor:"$$popoverBorderColor"}},borderWeight:{light:{bw:"$light",$$popoverBorderWeight:"$borderWeights$light"},normal:{bw:"$normal",$$popoverBorderWeight:"$borderWeights$normal"},bold:{bw:"$bold",$$popoverBorderWeight:"$borderWeights$bold"},extrabold:{bw:"$extrabold",$$popoverBorderWeight:"$borderWeights$extrabold"},black:{bw:"$black",$$popoverBorderWeight:"$borderWeights$black"}}},defaultVariants:{isBordered:!1,borderWeight:"light"}},tl),hy=Oe("div",{transform:"translateZ(0)",backfaceVisibility:"hidden"}),gy=m().forwardRef(((e,t)=>{const{children:r,as:o,css:n,className:i,...s}=e,{state:a,placement:l,overlayRef:c,disableAnimation:d,disableShadow:u,shouldCloseOnBlur:p,isDismissable:h,isKeyboardDismissDisabled:g,shouldCloseOnInteractOutside:m,getPopoverProps:f,isBordered:b,borderWeight:$,onClose:y,onEntered:v,onExited:x}=sy(),w=(e=>{if(!e)return"bottom";switch(e){case"bottom":default:return"top center";case"top":return"bottom center";case"left":return"right center";case"right":return"left center";case"bottom-left":return"top left";case"bottom-right":return"top right";case"top-left":return"bottom left";case"top-right":return"bottom right";case"left-top":return"right top";case"left-bottom":return"right bottom";case"right-top":return"left top";case"right-bottom":return"left bottom"}})(l),{modalProps:S}=da({isDisabled:!0}),{dialogProps:C}=cy({role:"dialog"},c),{overlayProps:k}=Js({onClose:y,isOpen:a.isOpen,isDismissable:h&&a.isOpen,shouldCloseOnBlur:p,isKeyboardDismissDisabled:g,shouldCloseOnInteractOutside:m},c),E=$n({isBordered:b,disableShadow:u,borderWeight:$},s),{isFocusVisible:P,focusProps:T}=El(),I=(0,St.jsxs)(py,{ref:ny(c,t),...f($n(k,S,C,T,E)),className:wt("nextui-popover-content-container",i),isFocusVisible:P,as:o,css:{transformOrigin:w,...n},children:[(0,St.jsx)(Ua,{onDismiss:y}),(0,St.jsx)(hy,{className:"nextui-popover-content",children:r}),(0,St.jsx)(Ua,{onDismiss:y})]});return(0,St.jsx)(St.Fragment,{children:d?a.isOpen?(0,St.jsx)(pl,{restoreFocus:!0,children:I}):null:(0,St.jsx)(pl,{restoreFocus:!0,children:(0,St.jsx)(Vd,{visible:a.isOpen,name:"nextui-popover-content",enterTime:20,leaveTime:60,clearTime:300,onExited:x,onEntered:v,children:I})})})}));gy.toString=()=>".nextui-popover-content";const my=e=>{const{state:t,triggerRef:r,getTriggerProps:o}=sy(),{children:n,...i}=e,s=()=>t.open(),{buttonProps:a}=Gl({onPress:s,...i},r),l=g.Children.only(n),[,c]=qe(e.children,lc),d=void 0!==(null==c?void 0:c[0]);return g.cloneElement(l,o($n(l.props,d?{onPress:s,...i}:a),l.ref))};my.toString=()=>".nextui-popover-trigger",ly.Content=gy,ly.Trigger=my;const fy=ly;function by(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function $y(e){return null}function yy(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&m().Children.count(e.children)>0)}by({},"Item",(()=>vy)),$y.getCollectionNode=function*(e,t){let{childItems:r,title:o,children:n}=e,i=e.title||e.children,s=e.textValue||("string"==typeof i?i:"")||e["aria-label"]||"";s||(null==t?void 0:t.suppressTextValueWarning)||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:i,textValue:s,"aria-label":e["aria-label"],hasChildNodes:yy(e),*childNodes(){if(r)for(let e of r)yield{type:"item",value:e};else if(o){let e=[];m().Children.forEach(n,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let vy=$y;function xy(e){return null}by({},"Section",(()=>wy)),xy.getCollectionNode=function*(e){let{children:t,title:r,items:o}=e;yield{type:"section",hasChildNodes:!0,rendered:r,"aria-label":e["aria-label"],*childNodes(){if("function"==typeof t){if(!o)throw new Error("props.children was a function but props.items is missing");for(let e of o)yield{type:"item",value:e,renderer:t}}else{let e=[];m().Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let wy=xy;by({},"useCollection",(()=>Py));class Sy{build(e,t){return this.context=t,Cy((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:r}=e;if("function"==typeof t){if(!r)throw new Error("props.children was a function but props.items is missing");for(let r of e.items)yield*this.getFullNode({value:r},{renderer:t})}else{let e=[];m().Children.forEach(t,(t=>{e.push(t)}));let r=0;for(let t of e){let e=this.getFullNode({element:t,index:r},{});for(let t of e)r++,yield t}}}getKey(e,t,r,o){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${o}${t.key}`;let n=t.value;if(null!=n){var i;let e=null!==(i=n.key)&&void 0!==i?i:n.id;if(null==e)throw new Error("No key found for item");return e}return o?`${o}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,o){let n=e.element;if(!n&&e.value&&t&&t.renderer){let r=this.cache.get(e.value);if(r&&(!r.shouldInvalidate||!r.shouldInvalidate(this.context)))return r.index=e.index,r.parentKey=o?o.key:null,void(yield r);n=t.renderer(e.value)}if(m().isValidElement(n)){let i=n.type;if("function"!=typeof i&&"function"!=typeof i.getCollectionNode){let e="function"==typeof n.type?n.type.name:n.type;throw new Error(`Unknown element <${e}> in collection.`)}let s=i.getCollectionNode(n.props,this.context),a=e.index,l=s.next();for(;!l.done&&l.value;){let i=l.value;e.index=a;let c=i.key;c||(c=i.element?null:this.getKey(n,e,t,r));let d=[...this.getFullNode({...i,key:c,index:a,wrapper:ky(e.wrapper,i.wrapper)},this.getChildState(t,i),r?`${r}${n.key}`:n.key,o)];for(let t of d){if(t.value=i.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${Ey(t.type)}> in <${Ey(o.type)}>. Only <${Ey(e.type)}> is supported.`);a++,yield t}l=s.next(d)}return}if(null==e.key)return;let i=this,s={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:e.value,level:o?o.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:Cy((function*(){if(!e.hasChildNodes)return;let r=0;for(let o of e.childNodes()){null!=o.key&&(o.key=`${s.key}${o.key}`),o.index=r;let e=i.getFullNode(o,i.getChildState(t,o),s.key,s);for(let t of e)r++,yield t}}))};yield s}constructor(){this.cache=new WeakMap}}function Cy(e){let t=[],r=null;return{*[Symbol.iterator](){for(let e of t)yield e;r||(r=e());for(let e of r)t.push(e),yield e}}}function ky(e,t){return e&&t?r=>e(t(r)):e||t||void 0}function Ey(e){return e[0].toUpperCase()+e.slice(1)}function Py(e,t,r,o=[]){let n=(0,g.useMemo)((()=>new Sy),[]),i=(0,g.useRef)(null);return(0,g.useMemo)((()=>{let o=n.build(e,r);return i.current=t(o,i.current),i.current}),[n,e.children,e.items,r,...o])}by({},"getItemCount",(()=>Iy));const Ty=new WeakMap;function Iy(e){let t=Ty.get(e);if(null!=t)return t;t=0;for(let r of e)"section"===r.type?t+=Iy(r.childNodes):t++;return Ty.set(e,t),t}const Ny=vy,[My,Ry]=Oc({name:"DropdownContext",errorMessage:"useDropdownContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Dropdown />`"}),Ay=e=>{const{children:t,...r}=e,{getMenuTriggerProps:o}=Ry();return(0,St.jsx)(fy.Trigger,{...o(r),children:t})};Ay.toString=()=>".nextui-dropdown-trigger";const Ly=Ay;function By(e){return e&&e.__esModule?e.default:e}function zy(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}var Hy,Dy,Oy,Ky,Fy,jy,_y,Wy,Vy,Uy,Gy,Jy,Yy,Xy,qy,Zy,Qy,ev,tv,rv,ov,nv,iv,sv,av,lv,cv,dv,uv,pv,hv,gv,mv,fv,bv;function $v(e,t,r){let{type:o="menu",isDisabled:n,trigger:i="press"}=e,s=gn(),{triggerProps:a,overlayProps:l}=Ys({type:o},t,r),c=Yo(By(Hy)),{longPressProps:d}=ws({accessibilityDescription:c("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),u={onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||n||t.toggle("virtual"===e.pointerType?"first":null)},onPress(e){"touch"!==e.pointerType||n||t.toggle()}};return a=$n(a,"press"===i?u:d),{menuTriggerProps:{...a,id:s,onKeyDown:e=>{if(!n&&("longPress"!==i||e.altKey)&&r&&r.current)switch(e.key){case"Enter":case" ":if("longPress"===i)return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last")}}},menuProps:{...l,"aria-labelledby":s}}}function yv(e,t,r){let{shouldFocusWrap:o=!0,...n}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let i=Sn(e,{labelable:!0}),{listProps:s}=Og({...n,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:o});return{menuProps:$n(i,{role:"menu",...s})}}function vv(e,t,r){let{isSelected:o,isDisabled:n,key:i,onClose:s,closeOnSelect:a,isVirtualized:l,onAction:c}=e,d="menuitem";"single"===t.selectionManager.selectionMode?d="menuitemradio":"multiple"===t.selectionManager.selectionMode&&(d="menuitemcheckbox");let u=fn(),p=fn(),h=fn(),g={"aria-disabled":n,role:d,"aria-label":e["aria-label"],"aria-labelledby":u,"aria-describedby":[p,h].filter(Boolean).join(" ")||void 0};"none"!==t.selectionManager.selectionMode&&(g["aria-checked"]=o),l&&(g["aria-posinset"]=t.collection.getItem(i).index,g["aria-setsize"]=Iy(t.collection));let{itemProps:m}=Hg({selectionManager:t.selectionManager,key:i,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0}),{pressProps:f}=Mi({onPressStart:e=>{"keyboard"===e.pointerType&&c&&c(i)},onPressUp:e=>{"keyboard"!==e.pointerType&&(c&&c(i),s&&(null!=a?a:"multiple"!==t.selectionManager.selectionMode)&&s())},isDisabled:n}),{hoverProps:b}=gs({isDisabled:n,onHoverStart(){rs()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i))}});return{menuItemProps:{...g,...$n(m,f,b,{onKeyDown:e=>{if(!e.repeat)switch(e.key){case" ":!n&&"none"===t.selectionManager.selectionMode&&!1!==a&&s&&s();break;case"Enter":!n&&!1!==a&&s&&s()}}})},labelProps:{id:u},descriptionProps:{id:p},keyboardShortcutProps:{id:h}}}function xv(e){let{heading:t,"aria-label":r}=e,o=gn();return{itemProps:{role:"presentation"},headingProps:t?{id:o,"aria-hidden":!0}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?o:void 0}}}function wv(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}zy({},"useMenuTrigger",(()=>$v)),Dy=JSON.parse('{"longPressMessage":"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"}'),Oy=JSON.parse('{"longPressMessage":"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"}'),Ky=JSON.parse('{"longPressMessage":"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"}'),Fy=JSON.parse('{"longPressMessage":"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"}'),jy=JSON.parse('{"longPressMessage":"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"}'),_y=JSON.parse('{"longPressMessage":"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"}'),Wy=JSON.parse('{"longPressMessage":"Long press or press Alt + ArrowDown to open menu"}'),Vy=JSON.parse('{"longPressMessage":"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"}'),Uy=JSON.parse('{"longPressMessage":"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"}'),Gy=JSON.parse('{"longPressMessage":"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"}'),Jy=JSON.parse('{"longPressMessage":"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."}'),Yy=JSON.parse('{"longPressMessage":"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"}'),Xy=JSON.parse('{"longPressMessage":"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"}'),qy=JSON.parse('{"longPressMessage":"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"}'),Zy=JSON.parse('{"longPressMessage":"Premere a lungo o premere Alt + Freccia giù per aprire il menu"}'),Qy=JSON.parse('{"longPressMessage":"長押しまたは Alt+下矢印キーでメニューを開く"}'),ev=JSON.parse('{"longPressMessage":"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"}'),tv=JSON.parse('{"longPressMessage":"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."}'),rv=JSON.parse('{"longPressMessage":"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"}'),ov=JSON.parse('{"longPressMessage":"Langt trykk eller trykk Alt + PilNed for å åpne menyen"}'),nv=JSON.parse('{"longPressMessage":"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"}'),iv=JSON.parse('{"longPressMessage":"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"}'),sv=JSON.parse('{"longPressMessage":"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"}'),av=JSON.parse('{"longPressMessage":"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"}'),lv=JSON.parse('{"longPressMessage":"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"}'),cv=JSON.parse('{"longPressMessage":"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"}'),dv=JSON.parse('{"longPressMessage":"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"}'),uv=JSON.parse('{"longPressMessage":"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"}'),pv=JSON.parse('{"longPressMessage":"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"}'),hv=JSON.parse('{"longPressMessage":"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"}'),gv=JSON.parse('{"longPressMessage":"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"}'),mv=JSON.parse('{"longPressMessage":"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"}'),fv=JSON.parse('{"longPressMessage":"长按或按 Alt + 向下方向键以打开菜单"}'),bv=JSON.parse('{"longPressMessage":"長按或按 Alt+向下鍵以開啟功能表"}'),Hy={"ar-AE":Dy,"bg-BG":Oy,"cs-CZ":Ky,"da-DK":Fy,"de-DE":jy,"el-GR":_y,"en-US":Wy,"es-ES":Vy,"et-EE":Uy,"fi-FI":Gy,"fr-FR":Jy,"he-IL":Yy,"hr-HR":Xy,"hu-HU":qy,"it-IT":Zy,"ja-JP":Qy,"ko-KR":ev,"lt-LT":tv,"lv-LV":rv,"nb-NO":ov,"nl-NL":nv,"pl-PL":iv,"pt-BR":sv,"pt-PT":av,"ro-RO":lv,"ru-RU":cv,"sk-SK":dv,"sl-SI":uv,"sr-SP":pv,"sv-SE":hv,"tr-TR":gv,"uk-UA":mv,"zh-CN":fv,"zh-TW":bv},zy({},"useMenu",(()=>yv)),zy({},"useMenuItem",(()=>vv)),zy({},"useMenuSection",(()=>xv)),wv({},"useMultipleSelectionState",(()=>Cv));class Sv extends Set{constructor(e,t,r){super(e),e instanceof Sv?(this.anchorKey=t||e.anchorKey,this.currentKey=r||e.currentKey):(this.anchorKey=t,this.currentKey=r)}}function Cv(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:o}=e,n=(0,g.useRef)(!1),[,i]=(0,g.useState)(!1),s=(0,g.useRef)(null),a=(0,g.useRef)(null),[,l]=(0,g.useState)(null),c=(0,g.useMemo)((()=>kv(e.selectedKeys)),[e.selectedKeys]),d=(0,g.useMemo)((()=>kv(e.defaultSelectedKeys,new Sv)),[e.defaultSelectedKeys]),[u,p]=nn(c,d,e.onSelectionChange),h=(0,g.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[m,f]=(0,g.useState)(e.selectionBehavior||"toggle");return"replace"===e.selectionBehavior&&"toggle"===m&&"object"==typeof u&&0===u.size&&f("replace"),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:m,setSelectionBehavior:f,get isFocused(){return n.current},setFocused(e){n.current=e,i(e)},get focusedKey(){return s.current},get childFocusStrategy(){return a.current},setFocusedKey(e,t="first"){s.current=e,a.current=t,l(e)},selectedKeys:u,setSelectedKeys(e){!o&&function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,u)||p(e)},disabledKeys:h}}function kv(e,t){return e?"all"===e?"all":new Sv(e):t}wv({},"SelectionManager",(()=>Ev));class Ev{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?!this.state.disabledKeys.has(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let r=this.collection.getItem(t);(!e||(null==r?void 0:r.index)<e.index)&&(e=r)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let r=this.collection.getItem(t);(!e||(null==r?void 0:r.index)>e.index)&&(e=r)}return null==e?void 0:e.key}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new Sv([e],e,e);else{let r=this.state.selectedKeys,o=r.anchorKey||e;t=new Sv(r,o,e);for(let n of this.getKeyRange(o,r.currentKey||e))t.delete(n);for(let r of this.getKeyRange(e,o))this.state.disabledKeys.has(r)||t.add(r)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let r=this.collection.getItem(e),o=this.collection.getItem(t);return r&&o?r.index<=o.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let r=[],o=e;for(;o;){let e=this.collection.getItem(o);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&r.push(o),o===t)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new Sv("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){"none"!==this.selectionMode&&null!=(e=this.getKey(e))&&this.state.setSelectedKeys(new Sv([e],e,e))}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new Sv;for(let r of e)if(r=this.getKey(r),null!=r&&(t.add(r),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=r=>{for(;r;){if(!this.state.disabledKeys.has(r)){let o=this.collection.getItem(r);"item"===o.type&&e.push(r),o.hasChildNodes&&(this.allowsCellSelection||"item"!==o.type)&&t([...o.childNodes][0].key)}r=this.collection.getKeyAfter(r)}};return t(this.collection.getFirstKey()),e}selectAll(){"multiple"===this.selectionMode&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Sv)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;for(let r of t)if(!e.has(r))return!1;return!0}canSelectItem(e){if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let t=this.collection.getItem(e);return!(!t||"cell"===t.type&&!this.allowsCellSelection)}constructor(e,t,r){var o;this.collection=e,this.state=t,this.allowsCellSelection=null!==(o=null==r?void 0:r.allowsCellSelection)&&void 0!==o&&o,this._isSelectAll=null}}Object.defineProperty({},"useTreeState",{get:()=>Iv,set:void 0,enumerable:!0,configurable:!0});var Pv=Symbol.iterator;class Tv{*[Pv](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.iterable=e,t=t||new Set;let r,o=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&("section"===e.type||t.has(e.key)))for(let t of e.childNodes)o(t)};for(let t of e)o(t);let n=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=n++),r=t,r.nextKey=void 0;this.lastKey=null==r?void 0:r.key}}function Iv(e){let[t,r]=nn(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),o=Cv(e),n=(0,g.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),i=Py(e,(e=>new Tv(e,{expandedKeys:t})),null,[t]);return(0,g.useEffect)((()=>{null==o.focusedKey||i.getItem(o.focusedKey)||o.setFocusedKey(null)}),[i,o.focusedKey]),{collection:i,expandedKeys:t,disabledKeys:n,toggleKey:e=>{r(function(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}(t,e))},selectionManager:new Ev(i,o)}}const Nv=je({"100%":{strokeDashoffset:0}}),Mv=Oe("svg",{d:"block",path:{transformOrigin:"50% 50%",strokeDasharray:48,strokeDashoffset:48,animation:`${Nv} .25s cubic-bezier(0.650, 0.000, 0.450, 1.000) forwards`}}),Rv=e=>{const{width:t=24,height:r=24,size:o,strokeWidth:n=3,fill:i="currentColor",css:s,className:a}=e;return(0,St.jsx)(Mv,{role:"img",width:o||t,height:o||r,className:wt("nextui-checkmark",a),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 52",css:{...s},children:(0,St.jsx)("path",{stroke:i,strokeWidth:n,fill:"none",d:"M14.1 27.2l7.1 7.2 16.7-16.8"})})};Rv.toString=()=>".nextui-checkmark";const Av=Rv,Lv=Oe("ul",{$$dropdownItemHeight:"$space$13",$$dropdownMenuPadding:"$space$4",$$dropdownMenuWidth:"250px",listStyle:"none",position:"relative",width:"$$dropdownMenuWidth",p:"$$dropdownMenuPadding",m:0,outline:"none"}),Bv=Oe("span",{dflex:"center",flexShrink:0,mr:"$4"}),zv=Oe("kbd",{opacity:.8,ml:"$4",mr:0,dflex:"center",color:"$$dropdownItemKeyboardColor",fontSize:"$xs",fontFamily:"$sans",boxShadow:"none",bg:"transparent",transition:"border 0.26s ease 0s"}),Hv=Oe("div",{d:"flex",flex:"1 1 0%",flexDirection:"column",alignItems:"flex-start",lineHeight:1.2}),Dv=Oe("span",{flex:"1 1 0%"}),Ov=Oe("span",{fontSize:"$xs",color:"$$dropdownItemDescriptionColor",truncateText:"calc($$dropdownMenuWidth * 0.9)",transition:"color 0.26s ease 0s",variants:{hasIcon:{true:{truncateText:"calc($$dropdownMenuWidth * 0.7)"}},hasCommand:{true:{truncateText:"calc($$dropdownMenuWidth * 0.7)"}}},compoundVariants:[{hasIcon:!0,hasCommand:!0,css:{truncateText:"calc($$dropdownMenuWidth * 0.6)"}}]}),Kv=Oe("li",{$$dropdownItemPressedScale:.97,$$dropdownItemTextColor:"$colors$text",$$dropdownItemBorderRadius:"$radii$sm",$$dropdownItemKeyboardColor:"$colors$accents8",$$dropdownItemDescriptionColor:"$colors$accents8",dflex:"center",outline:"none",cursor:"pointer",justifyContent:"space-between",bg:"transparent",position:"relative",height:"$$dropdownItemHeight",px:"$6",br:"$$dropdownItemBorderRadius",color:"$$dropdownItemTextColor",mb:0,transition:"$dropdownItem",transform:"translateZ(0)",backfaceVisibility:"hidden",$$dropdownItemShadow:"$colors$primaryShadow","@motion":{transition:"none",[`& ${zv}`]:{transition:"none"},[`& ${Ov}`]:{transition:"none"}},variants:{color:{default:{$$dropdownItemHoverBackground:"$colors$neutralLight",$$dropdownItemHoverTextColor:"$colors$neutralLightContrast",$$dropdownItemActiveBackground:"$colors$neutralLightActive",$$dropdownItemSolidHoverBackground:"$colors$neutral",$$dropdownItemSolidHoverTextColor:"$colors$neutralSolidContrast",$$dropdownItemShadow:"$colors$neutralShadow",$$dropdownItemHoverBorderColor:"$colors$neutralBorder"},primary:{$$dropdownItemHoverBackground:"$colors$primaryLight",$$dropdownItemHoverTextColor:"$colors$primaryLightContrast",$$dropdownItemActiveBackground:"$colors$primaryLightActive",$$dropdownItemSolidHoverBackground:"$colors$primary",$$dropdownItemSolidHoverTextColor:"$colors$primarySolidContrast",$$dropdownItemShadow:"$colors$primaryShadow",$$dropdownItemHoverBorderColor:"$colors$primaryBorder"},secondary:{$$dropdownItemHoverBackground:"$colors$secondaryLight",$$dropdownItemHoverTextColor:"$colors$secondaryLightContrast",$$dropdownItemActiveBackground:"$colors$secondaryLightActive",$$dropdownItemSolidHoverBackground:"$colors$secondary",$$dropdownItemSolidHoverTextColor:"$colors$secondarySolidContrast",$$dropdownItemShadow:"$colors$secondaryShadow",$$dropdownItemHoverBorderColor:"$colors$secondaryBorder"},success:{$$dropdownItemHoverBackground:"$colors$successLight",$$dropdownItemHoverTextColor:"$colors$successLightContrast",$$dropdownItemActiveBackground:"$colors$successLightActive",$$dropdownItemSolidHoverBackground:"$colors$success",$$dropdownItemSolidHoverTextColor:"$colors$successSolidContrast",$$dropdownItemShadow:"$colors$successShadow",$$dropdownItemHoverBorderColor:"$colors$successBorder"},warning:{$$dropdownItemHoverBackground:"$colors$warningLight",$$dropdownItemHoverTextColor:"$colors$warningLightContrast",$$dropdownItemActiveBackground:"$colors$warningLightActive",$$dropdownItemSolidHoverBackground:"$colors$warning",$$dropdownItemSolidHoverTextColor:"$colors$warningSolidContrast",$$dropdownItemShadow:"$colors$warningShadow",$$dropdownItemHoverBorderColor:"$colors$warningBorder"},error:{$$dropdownItemHoverBackground:"$colors$errorLight",$$dropdownItemHoverTextColor:"$colors$errorLightContrast",$$dropdownItemActiveBackground:"$colors$errorLightActive",$$dropdownItemSolidHoverBackground:"$colors$error",$$dropdownItemSolidHoverTextColor:"$colors$errorSolidContrast",$$dropdownItemShadow:"$colors$errorShadow",$$dropdownItemHoverBorderColor:"$colors$errorBorder"}},textColor:{default:{},primary:{$$dropdownItemTextColor:"$colors$primaryLightContrast",$$dropdownItemHoverTextColor:"$colors$primaryLightContrast"},secondary:{$$dropdownItemTextColor:"$colors$secondaryLightContrast",$$dropdownItemHoverTextColor:"$colors$secondaryLightContrast"},success:{$$dropdownItemTextColor:"$colors$successLightContrast",$$dropdownItemHoverTextColor:"$colors$successLightContrast"},warning:{$$dropdownItemTextColor:"$colors$warningLightContrast",$$dropdownItemHoverTextColor:"$colors$warningLightContrast"},error:{$$dropdownItemTextColor:"$colors$errorLightContrast",$$dropdownItemHoverTextColor:"$colors$errorLightContrast"}},variant:{flat:{true:{}},light:{true:{}},solid:{true:{}},shadow:{true:{}}},isPressed:{true:{bg:"$$dropdownItemActiveBackground"}},isFocused:{true:{bg:"$$dropdownItemHoverBackground",color:"$$dropdownItemHoverTextColor",[`& ${zv}`]:{color:"$$dropdownItemHoverTextColor",borderColor:"$$dropdownItemHoverBorderColor"},[`& ${Ov}`]:{color:"currentColor"}}},isHovered:{true:{bg:"$$dropdownItemHoverBackground",color:"$$dropdownItemHoverTextColor",[`& ${zv}`]:{color:"$$dropdownItemHoverTextColor",borderColor:"$$dropdownItemHoverBorderColor"},[`& ${Ov}`]:{color:"currentColor"}}},shouldShowOutline:{true:{outline:"solid 2px $$dropdownItemActiveBackground"}},isSelected:{true:{}},isSelectable:{true:{}},isDisabled:{true:{color:"$accents5",cursor:"default"}},withDescription:{true:{height:"calc($$dropdownItemHeight * 1.2)"}},withDivider:{true:{mt:"$6","&:before":{content:'""',position:"absolute",top:"-$3",left:"-$$dropdownMenuPadding",right:"-$$dropdownMenuPadding",height:"$$dropdownItemBorderWeight",bg:"$border"}}},dividerWeight:{light:{$$dropdownItemBorderWeight:"$borderWeights$light"},normal:{$$dropdownItemBorderWeight:"$borderWeights$normal"},bold:{$$dropdownItemBorderWeight:"$borderWeights$bold"},extrabold:{$$dropdownItemBorderWeight:"$borderWeights$extrabold"},black:{$$dropdownItemBorderWeight:"$borderWeights$black"}},disableAnimation:{true:{transition:"none",[`& ${zv}`]:{transition:"none"},[`& ${Ov}`]:{transition:"none"}}}},compoundVariants:[{isPressed:!0,disableAnimation:!1,css:{transform:"scale($$dropdownItemPressedScale)"}},{isHovered:!0,variant:"light",css:{bg:"transparent"}},{isFocused:!0,variant:"light",css:{bg:"transparent"}},{isHovered:!0,variant:"solid",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",[`& ${zv}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isFocused:!0,variant:"solid",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",[`& ${zv}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isHovered:!0,variant:"shadow",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",boxShadow:"0 3px 10px 0 $$dropdownItemShadow",[`& ${zv}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isFocused:!0,variant:"shadow",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",boxShadow:"0 3px 10px 0 $$dropdownItemShadow",[`& ${zv}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{variant:"flat",color:"default",css:{$$dropdownItemHoverTextColor:"$colors$foreground"}}],defaultVariants:{color:"default",textColor:"default",dividerWeight:"light",variant:"flat"}},tl),Fv=Oe("li",{mb:0}),jv=Oe("ul",{m:0,p:0,listStyle:"none"}),_v=Oe("span",{fontWeight:"$medium",fontSize:"$xs",padding:"0 $4",color:"$accents8"}),Wv=({as:e,css:t,item:r,state:o,color:n,icon:i,command:s,description:a,textColor:l,variant:c,autoFocus:d,isVirtualized:u,withDivider:p,dividerWeight:h,onAction:m,className:f})=>{const{onClose:b,closeOnSelect:$,disableAnimation:y,borderWeight:v}=Ry(),{rendered:x,key:w}=r,S=o.selectionManager.isSelected(w),C=o.selectionManager.focusedKey===r.key,k=o.disabledKeys.has(w),E=(0,g.useRef)(null),{pressProps:P,isPressed:T}=Mi({ref:E,isDisabled:k}),{isFocusVisible:I,focusProps:N}=El({autoFocus:d}),{hoverProps:M,isHovered:R}=gs({isDisabled:k}),A="none"!==o.selectionManager.selectionMode&&!k,{menuItemProps:L,labelProps:B,descriptionProps:z,keyboardShortcutProps:H}=vv({key:w,onClose:b,isSelected:S,isDisabled:k,"aria-label":r["aria-label"],closeOnSelect:$,isVirtualized:u,onAction:m},o,E),D=(0,g.useMemo)((()=>R?"hovered":S?"selected":T?"pressed":k?"disabled":"ready"),[S,k,R,T]),O=(0,g.useMemo)((()=>r.props.textColor?r.props.textColor:r.props.color&&"default"===l?r.props.color:l),[l,r.props.color,r.props.textColor]),K=(0,g.useMemo)((()=>a||r.props.description),[a,r.props.description]),F=(0,g.useMemo)((()=>s||r.props.command),[s,r.props.command]),j=(0,g.useMemo)((()=>i||r.props.icon),[i,r.props.icon]);return(0,St.jsxs)(Kv,{ref:E,...$n(L,M,P,N),as:r.props.as||e,css:{...$n(t,r.props.css)},"data-state":D,color:r.props.color||n,variant:r.props.variant||c,textColor:O,isFocused:C,isFocusVisible:I,shouldShowOutline:I&&"shadow"===c,isHovered:R,isSelected:S,isDisabled:k,isPressed:T,isSelectable:A,withDivider:p||r.props.withDivider,withDescription:!!K,dividerWeight:h||r.props.dividerWeight||v,disableAnimation:y,className:wt("nextui-dropdown-item",{"is-disabled":k,"is-selected":S,"is-selectable":A,"is-hovered":R,"is-focused":C,"is-pressed":T},f,r.props.className),children:[j&&(0,St.jsx)(Bv,{className:"nextui-dropdown-item-icon-wrapper",children:j}),K?(0,St.jsxs)(Hv,{children:[(0,St.jsx)(Dv,{className:"nextui-dropdown-item-content",...B,children:x}),(0,St.jsx)(Ov,{className:"nextui-dropdown-item-description",hasIcon:!!j,hasCommand:!!F,...z,children:K})]}):(0,St.jsx)(Dv,{className:"nextui-dropdown-item-content",...B,children:x}),F&&(0,St.jsx)(zv,{className:"nextui-dropdown-item-command",...H,children:F}),S&&(0,St.jsx)(Av,{css:{ml:"$4"}})]})};Wv.toString=()=>".nextui-dropdown-item";const Vv=Wv,Uv=e=>{var t,r;const{item:o,state:n,css:i,as:s,color:a,textColor:l,variant:c,withDivider:d=!0,className:u,onAction:p}=e,{itemProps:h,headingProps:m,groupProps:f}=xv({heading:o.rendered,"aria-label":o["aria-label"]});return(0,St.jsxs)(g.Fragment,{children:[o.key!==n.collection.getFirstKey()&&d&&(0,St.jsx)(Pc,{as:"li",className:"nextui-dropdown-section-divider",css:{my:"$2"}}),(0,St.jsxs)(Fv,{...h,className:"nextui-dropdown-section-wrapper",children:[o.rendered&&(0,St.jsx)(_v,{...m,className:"nextui-dropdown-section-title",children:o.rendered}),(0,St.jsx)(jv,{...f,as:(null==(t=o.props)?void 0:t.as)||s,css:{...$n(i,null==(r=o.props)?void 0:r.css)},className:wt("nextui-dropdown-section",u),children:[...o.childNodes].map((e=>{let t=(0,St.jsx)(Vv,{item:e,state:n,onAction:p,color:a,textColor:l,variant:c},e.key);return e.wrapper&&(t=e.wrapper(t)),t}))})]})]})};Uv.toString=()=>".nextui-dropdown-section";const Gv=Uv,Jv=m().forwardRef(((e,t)=>{const{css:r={},as:o,color:n="default",textColor:i="default",variant:s="flat",...a}=e,l=Ry(),c={...$n(l,a)},d=Al(t),u=Iv(c),{menuProps:p}=yv(c,u,d);return function(e,t){(0,g.useLayoutEffect)((()=>{if(e&&e.ref&&t&&t.current)return e.ref.current=t.current,()=>{var t;null!=(t=e.ref)&&t.current&&(e.ref.current=null)}}),[e,t])}(l,d),(0,St.jsx)(Lv,{ref:d,as:o,css:{...r},className:wt("nextui-dropdown-menu",e.className),...p,children:[...u.collection].map((e=>{if("section"===e.type)return(0,St.jsx)(Gv,{item:e,state:u,onAction:c.onAction,color:n,textColor:i,variant:s},e.key);let t=(0,St.jsx)(Vv,{item:e,state:u,onAction:c.onAction,color:n,textColor:i,variant:s},e.key);return e.wrapper&&(t=e.wrapper(t)),t}))})}));Jv.toString=()=>".nextui-dropdown-menu";const Yv=Jv,Xv=({fill:e,size:t,height:r,width:o,...n})=>(0,St.jsx)("svg",{width:t||o||24,height:t||r||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,St.jsx)("path",{d:"M17.9188 8.17969H11.6888H6.07877C5.11877 8.17969 4.63877 9.33969 5.31877 10.0197L10.4988 15.1997C11.3288 16.0297 12.6788 16.0297 13.5088 15.1997L15.4788 13.2297L18.6888 10.0197C19.3588 9.33969 18.8788 8.17969 17.9188 8.17969Z",fill:e})});Xv.toString=()=>".nextui-dropdown-icon";const qv=Xv,Zv=m().forwardRef(((e,t)=>{const{children:r,className:o,iconRight:n,iconRightCss:i,auto:s=!0,animated:a,...l}=e,{disableAnimation:c}=Ry(),d=Al(t),u=(0,g.useMemo)((()=>n||(0,St.jsx)(qv,{size:14,fill:"currentColor"})),[n]),p=(0,g.useMemo)((()=>a||!c),[a,c]);return(0,St.jsx)(Ly,{children:(0,St.jsx)(lc,{ref:d,auto:s,className:wt("nextui-dropdown-button",o),iconRight:u,animated:p,iconRightCss:{mt:"$1",...i},...l,children:r})})}));Zv.toString=()=>".nextui-dropdown-button";const Qv=Zv;function ex(e){let t=oy(e),[r,o]=(0,g.useState)(null);return{focusStrategy:r,...t,open(e=null){o(e),t.open()},toggle(e=null){o(e),t.toggle()}}}Object.defineProperty({},"useMenuTriggerState",{get:()=>ex,set:void 0,enumerable:!0,configurable:!0});const tx=e=>{const{children:t,...r}=e,o=function(e={}){const{triggerRef:t,type:r="menu",trigger:o="press",isDisabled:n=!1,borderWeight:i,closeOnSelect:s,disableAnimation:a=!1,...l}=e,c=(0,g.useRef)(null),d=t||c,u=(0,g.useRef)(null),p=(0,g.useRef)(null),h=ex(e),{menuTriggerProps:m,menuProps:f}=$v({type:r,trigger:o,isDisabled:n},h,d),b=(0,g.useCallback)(((e={},r=null)=>({...null!=t&&t.current?$n(m,e):$n(e,m),ref:ny(c,r)})),[c,t,m]);return{...f,popoverProps:l,state:h,ref:u,onClose:h.close,autoFocus:h.focusStrategy||!0,disableAnimation:a,menuRef:u,borderWeight:i,menuPopoverRef:p,menuTriggerRef:d,closeOnSelect:s,getMenuTriggerProps:b}}(r),[n,i]=m().Children.toArray(t);return(0,St.jsx)(My,{value:o,children:(0,St.jsxs)(fy,{ref:o.menuPopoverRef,...o.popoverProps,triggerRef:o.menuTriggerRef,scrollRef:o.menuRef,isOpen:o.state.isOpen,onClose:o.state.close,borderWeight:o.borderWeight,disableAnimation:o.disableAnimation,children:[n,(0,St.jsx)(fy.Content,{children:i})]})})};tx.toString=()=>".nextui-dropdown";const rx=tx;rx.Trigger=Ly,rx.Button=Qv,rx.Menu=Yv,rx.Section=wy,rx.Item=Ny;const ox=rx})(),i})()}));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.NextUI=t(require("react"),require("react-dom")):e.NextUI=t(e.React,e.ReactDOM)}(self,(function(e,t){return(()=>{var r={189:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},774:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},260:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},466:(e,t,r)=>{"use strict";var o=r(774);t.__esModule=!0,t.default=void 0;var n=o(r(397)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=n,e.exports=t.default},345:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},285:(e,t,r)=>{"use strict";var o=r(774);t.__esModule=!0,t.default=function(e){var t=(0,s.default)(e),r=(0,i.default)(t),o=t&&t.documentElement,a={top:0,left:0,height:0,width:0};if(t)return(0,n.default)(o,e)?(void 0!==e.getBoundingClientRect&&(a=e.getBoundingClientRect()),{top:a.top+(r.pageYOffset||o.scrollTop)-(o.clientTop||0),left:a.left+(r.pageXOffset||o.scrollLeft)-(o.clientLeft||0),width:(null==a.width?e.offsetWidth:a.width)||0,height:(null==a.height?e.offsetHeight:a.height)||0}):a};var n=o(r(466)),i=o(r(345)),s=o(r(260));e.exports=t.default},334:(e,t,r)=>{"use strict";var o=r(774);t.__esModule=!0,t.default=function(e){for(var t=(0,n.default)(e),r=e&&e.offsetParent;r&&"html"!==s(e)&&"static"===(0,i.default)(r,"position");)r=r.offsetParent;return r||t.documentElement};var n=o(r(260)),i=o(r(651));function s(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default},438:(e,t,r)=>{"use strict";var o=r(774);t.__esModule=!0,t.default=function(e,t){var r,o={top:0,left:0};return"fixed"===(0,c.default)(e,"position")?r=e.getBoundingClientRect():(t=t||(0,s.default)(e),r=(0,i.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(o=(0,i.default)(t)),o.top+=parseInt((0,c.default)(t,"borderTopWidth"),10)-(0,a.default)(t)||0,o.left+=parseInt((0,c.default)(t,"borderLeftWidth"),10)-(0,l.default)(t)||0),(0,n.default)({},r,{top:r.top-o.top-(parseInt((0,c.default)(e,"marginTop"),10)||0),left:r.left-o.left-(parseInt((0,c.default)(e,"marginLeft"),10)||0)})};var n=o(r(189)),i=o(r(285)),s=o(r(334)),a=o(r(319)),l=o(r(875)),c=o(r(651));e.exports=t.default},875:(e,t,r)=>{"use strict";var o=r(774);t.__esModule=!0,t.default=function(e,t){var r=(0,n.default)(e);if(void 0===t)return r?"pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft:e.scrollLeft;r?r.scrollTo(t,"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop):e.scrollLeft=t};var n=o(r(345));e.exports=t.default},319:(e,t,r)=>{"use strict";var o=r(774);t.__esModule=!0,t.default=function(e,t){var r=(0,n.default)(e);if(void 0===t)return r?"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop:e.scrollTop;r?r.scrollTo("pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft,t):e.scrollTop=t};var n=o(r(345));e.exports=t.default},493:(e,t,r)=>{"use strict";var o=r(774);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var r=e.style;"float"==(t=(0,n.default)(t))&&(t="styleFloat");var o=e.currentStyle[t]||null;if(null==o&&r&&r[t]&&(o=r[t]),s.test(o)&&!i.test(t)){var a=r.left,l=e.runtimeStyle,c=l&&l.left;c&&(l.left=e.currentStyle.left),r.left="fontSize"===t?"1em":o,o=r.pixelLeft+"px",r.left=a,c&&(l.left=c)}return o}}};var n=o(r(854)),i=/^(top|right|bottom|left)$/,s=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},651:(e,t,r)=>{"use strict";var o=r(774);t.__esModule=!0,t.default=function(e,t,r){var o="",d="",u=t;if("string"==typeof t){if(void 0===r)return e.style[(0,n.default)(t)]||(0,s.default)(e).getPropertyValue((0,i.default)(t));(u={})[t]=r}Object.keys(u).forEach((function(t){var r=u[t];r||0===r?(0,c.default)(t)?d+=t+"("+r+") ":o+=(0,i.default)(t)+": "+r+";":(0,a.default)(e,(0,i.default)(t))})),d&&(o+=l.transform+": "+d+";"),e.style.cssText+=";"+o};var n=o(r(854)),i=o(r(692)),s=o(r(493)),a=o(r(78)),l=r(859),c=o(r(195));e.exports=t.default},78:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},195:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},859:(e,t,r)=>{"use strict";var o=r(774);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var n,i,s,a,l,c,d,u,p,h,g,m=o(r(397)),f="transform";if(t.transform=f,t.animationEnd=s,t.transitionEnd=i,t.transitionDelay=d,t.transitionTiming=c,t.transitionDuration=l,t.transitionProperty=a,t.animationDelay=g,t.animationTiming=h,t.animationDuration=p,t.animationName=u,m.default){var b=function(){for(var e,t,r=document.createElement("div").style,o={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},n=Object.keys(o),i="",s=0;s<n.length;s++){var a=n[s];if(a+"TransitionProperty"in r){i="-"+a.toLowerCase(),e=o[a]("TransitionEnd"),t=o[a]("AnimationEnd");break}}return!e&&"transitionProperty"in r&&(e="transitionend"),!t&&"animationName"in r&&(t="animationend"),r=null,{animationEnd:t,transitionEnd:e,prefix:i}}();n=b.prefix,t.transitionEnd=i=b.transitionEnd,t.animationEnd=s=b.animationEnd,t.transform=f=n+"-"+f,t.transitionProperty=a=n+"-transition-property",t.transitionDuration=l=n+"-transition-duration",t.transitionDelay=d=n+"-transition-delay",t.transitionTiming=c=n+"-transition-timing-function",t.animationName=u=n+"-animation-name",t.animationDuration=p=n+"-animation-duration",t.animationTiming=h=n+"-animation-delay",t.animationDelay=g=n+"-animation-timing-function"}var $={transform:f,end:i,property:a,timing:c,delay:d,duration:l};t.default=$},390:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,(function(e,t){return t.toUpperCase()}))};var r=/-(.)/g;e.exports=t.default},854:(e,t,r)=>{"use strict";var o=r(774);t.__esModule=!0,t.default=function(e){return(0,n.default)(e.replace(i,"ms-"))};var n=o(r(390)),i=/^-ms-/;e.exports=t.default},746:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,"-$1").toLowerCase()};var r=/([A-Z])/g;e.exports=t.default},692:(e,t,r)=>{"use strict";var o=r(774);t.__esModule=!0,t.default=function(e){return(0,n.default)(e).replace(i,"-ms-")};var n=o(r(746)),i=/^ms-/;e.exports=t.default},397:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},753:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var s,a,l=n(e),c=1;c<arguments.length;c++){for(var d in s=Object(arguments[c]))r.call(s,d)&&(l[d]=s[d]);if(t){a=t(s);for(var u=0;u<a.length;u++)o.call(s,a[u])&&(l[a[u]]=s[a[u]])}}return l}},460:(e,t,r)=>{"use strict";r(753);var o=r(787),n=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;n=i("react.element"),t.Fragment=i("react.fragment")}var s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var o,i={},c=null,d=null;for(o in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,o)&&!l.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:n,type:e,key:c,ref:d,props:i,_owner:s.current}}t.jsx=c,t.jsxs=c},570:(e,t,r)=>{"use strict";e.exports=r(460)},787:t=>{"use strict";t.exports=e},156:e=>{"use strict";e.exports=t}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return r[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.r(i),n.d(i,{Avatar:()=>Vl,Backdrop:()=>Cp,Button:()=>lc,Card:()=>Tc,Checkbox:()=>rd,Code:()=>sd,Col:()=>dd,Collapse:()=>Pd,Container:()=>Md,CssBaseline:()=>Mt,Divider:()=>Pc,Drip:()=>Pt,Dropdown:()=>ox,Grid:()=>Fd,Image:()=>wc,Input:()=>tg,KeyCode:()=>ut,KeyMod:()=>pt,Link:()=>Cu,Loading:()=>Du,Modal:()=>dh,NextUIProvider:()=>Qa,Pagination:()=>Th,Popover:()=>fy,Progress:()=>Dp,Radio:()=>sp,Row:()=>hu,Snippet:()=>cu,Spacer:()=>Wd,Spinner:()=>zu,StyledAvatar:()=>Bl,StyledAvatarGroup:()=>Fl,StyledAvatarGroupCount:()=>Kl,StyledBackdrop:()=>wp,StyledBackdropContent:()=>vp,StyledBackdropLayer:()=>xp,StyledButton:()=>ec,StyledButtonGroup:()=>nc,StyledButtonIcon:()=>ql,StyledCard:()=>dc,StyledCardBody:()=>cc,StyledCardFooter:()=>pc,StyledCardHeader:()=>uc,StyledCheckboxContainer:()=>Jc,StyledCheckboxGroup:()=>Yc,StyledCheckboxLabel:()=>jc,StyledCheckboxMask:()=>Uc,StyledCheckboxText:()=>Gc,StyledCode:()=>od,StyledCol:()=>ad,StyledCollapse:()=>ud,StyledCollapseContent:()=>hd,StyledCollapseGroup:()=>md,StyledCollapseIcon:()=>gd,StyledCollapseView:()=>pd,StyledContainer:()=>Td,StyledDivider:()=>Cc,StyledDividerText:()=>kc,StyledDropdownItem:()=>Kv,StyledDropdownItemContent:()=>Dv,StyledDropdownItemContentWrapper:()=>Hv,StyledDropdownItemDescription:()=>Ov,StyledDropdownItemIconWrapper:()=>Bv,StyledDropdownItemKbd:()=>zv,StyledDropdownMenu:()=>Lv,StyledDropdownSection:()=>jv,StyledDropdownSectionTitle:()=>_v,StyledDropdownSectionWrapper:()=>Fv,StyledGridContainer:()=>Rd,StyledGridItem:()=>Ad,StyledHelperText:()=>Bh,StyledHelperTextContainer:()=>Lh,StyledIconCheck:()=>Vc,StyledIconCheckFirstLine:()=>_c,StyledIconCheckSecondLine:()=>Wc,StyledImage:()=>bc,StyledImageContainer:()=>fc,StyledImageSkeleton:()=>$c,StyledInput:()=>Rh,StyledInputBlockLabel:()=>Hh,StyledInputClearButton:()=>Kh,StyledInputContainer:()=>Mh,StyledInputContent:()=>Oh,StyledInputLabel:()=>Dh,StyledInputMainContainer:()=>Nh,StyledInputPlaceholder:()=>zh,StyledInputWrapper:()=>Ah,StyledLink:()=>yu,StyledLinkIcon:()=>$u,StyledLoading:()=>Au,StyledLoadingContainer:()=>Iu,StyledLoadingLabel:()=>Lu,StyledModal:()=>Yp,StyledModalBody:()=>Gp,StyledModalCloseButton:()=>Vp,StyledModalFooter:()=>Jp,StyledModalHeader:()=>Up,StyledModalHideTab:()=>Wp,StyledPagination:()=>$h,StyledPaginationEllipsis:()=>hh,StyledPaginationHighlight:()=>bh,StyledPaginationIcon:()=>gh,StyledPaginationItem:()=>fh,StyledPaginationItemContent:()=>mh,StyledPopover:()=>hy,StyledPre:()=>nd,StyledProgress:()=>Bp,StyledProgressBar:()=>zp,StyledRadioContainer:()=>Yu,StyledRadioDescription:()=>Ju,StyledRadioGroup:()=>qu,StyledRadioGroupContainer:()=>Zu,StyledRadioLabel:()=>Gu,StyledRadioPoint:()=>Uu,StyledRadioText:()=>Vu,StyledRow:()=>du,StyledSnippetCopyButton:()=>iu,StyledSnippetCopyButtonIcon:()=>nu,StyledSnippetPre:()=>ou,StyledSpacer:()=>jd,StyledSpinner:()=>Mu,StyledSpinnerContainer:()=>Nu,StyledSpinnerSpan:()=>Ru,StyledSwitch:()=>fp,StyledSwitchCircle:()=>mp,StyledSwitchContainer:()=>hp,StyledSwitchInput:()=>gp,StyledTable:()=>x$,StyledTableCell:()=>b$,StyledTableHeaderCell:()=>g$,StyledTableRow:()=>$$,StyledText:()=>ap,StyledTooltip:()=>Xd,StyledTooltipArrow:()=>Yd,StyledTooltipContent:()=>qd,StyledTooltipTrigger:()=>Jd,StyledUser:()=>kp,StyledUserDesc:()=>Tp,StyledUserInfo:()=>Ep,StyledUserName:()=>Pp,Switch:()=>$p,Table:()=>ry,Text:()=>pp,Textarea:()=>Yh,Tooltip:()=>tu,User:()=>Ap,blue:()=>$e,blueDark:()=>ye,changeTheme:()=>Za,config:()=>Ve,createTheme:()=>Ue,css:()=>Ke,cssFocusVisible:()=>tl,cssNoBlurriness:()=>rl,cyan:()=>Te,cyanDark:()=>Ie,defaultTheme:()=>We,excludedInputPropsForTextarea:()=>p,excludedTableProps:()=>h,extendedColors:()=>o,extendedColorsNoGradient:()=>s,extraColors:()=>a,getCssText:()=>_e,getDocumentTheme:()=>Xa,getTokenValue:()=>Ya,globalCss:()=>Fe,gray:()=>Re,grayDark:()=>Ae,green:()=>we,greenDark:()=>Se,keyframes:()=>je,normalColors:()=>t,normalLoaders:()=>l,normalWeights:()=>c,pink:()=>Ne,pinkDark:()=>Me,purple:()=>ve,purpleDark:()=>xe,red:()=>Ee,redDark:()=>Pe,sharedDialogPopup:()=>nl,sharedFocus:()=>el,sharedVisuallyHidden:()=>ol,simpleColors:()=>r,stitchesConfig:()=>Ve,styled:()=>Oe,textTransforms:()=>u,textWeights:()=>d,theme:()=>We,tuple:()=>e,useAsyncList:()=>Ht,useBodyScroll:()=>nt,useClickAnywhere:()=>ct,useClickAway:()=>it,useClipboard:()=>lt,useCollator:()=>Qo,useCurrentState:()=>f,useDrip:()=>yt,useInput:()=>dt,useKeyboard:()=>mt,useModal:()=>uh,usePagination:()=>$t,usePortal:()=>et,useRealShape:()=>$,useResize:()=>y,useSSR:()=>Xe,useTheme:()=>Ye,yellow:()=>Ce,yellowDark:()=>ke});const e=(...e)=>e,t=(e("xs","sm","md","lg","xl"),e("default","primary","secondary","success","warning","error","gradient")),r=e("default","primary","secondary","success","warning","error"),o=e("default","primary","secondary","success","warning","error","invert","gradient"),s=e("default","primary","secondary","success","warning","error","invert"),a=e("default","primary","secondary","success","warning","error","dark","lite","alert","purple","violet","gradient","cyan"),l=e("default","points","points-opacity","gradient","spinner"),c=e("light","normal","bold","extrabold","black"),d=e("normal","bold","lighter","bolder","inherit","initial","revert","unset"),u=e("none","capitalize","uppercase","lowercase","full-width","full-size-kana","inherit","initial","revert","unset"),p=(e("default","slient","prevent"),e("hover","click"),e("top","topStart","topEnd","left","leftStart","leftEnd","bottom","bottomStart","bottomEnd","right","rightStart","rightEnd"),e("static","relative","absolute","fixed","sticky","inherit","initial","revert","unset"),e("contain","cover","fill","none","scale-down","inherit","initial","revert","unset"),e("start","center","end","left","right"),e("flex-start","center","flex-end","space-between","space-around","space-evenly"),e("flex-start","flex-end","center","stretch","baseline"),e("stretch","center","flex-start","flex-end","space-between","space-around"),e("row","row-reverse","column","column-reverse"),e("nowrap","wrap","wrap-reverse"),e("flex","block","grid","inline","inline-block","inline-flex","inline-grid"),e("left","right"),e("start","center","end"),e("clearable","as","rounded","labelLeft","labelRight","contentLeft","contentRight","contentClickable","contentLeftStyling","contentRightStyling","onContentClick","onClearClick","css")),h=e("items","disabledKeys","allowDuplicateSelectionEvents","disallowEmptySelection","defaultSelectedKeys","sortDescriptor","onSortChange");e("toggle","replace"),e("none","single","multiple"),e("flat","light","solid","shadow"),e("flat","bordered","shadow");var g=n(787),m=n.n(g);const f=e=>{const[t,r]=(0,g.useState)((()=>"function"==typeof e?e():e)),o=(0,g.useRef)(e);return(0,g.useEffect)((()=>{o.current=t}),[t]),[t,e=>{const t="function"==typeof e?e(o.current):e;o.current=t,r(t)},o]},b=(e,t)=>{if(!e)return 0;const r=e.includes("px")?+e.split("px")[0]:e.includes("%")?+e.split("%")[0]*t*.01:e;return Number.isNaN(+r)?0:+r},$=e=>{const[t,r]=(0,g.useState)({width:0,height:0}),o=()=>{const{width:t,height:o}=(e=>{if(!e||"undefined"==typeof window)return{width:0,height:0};const t=e.getBoundingClientRect(),{width:r,height:o}=window.getComputedStyle(e);return{width:b(`${r}`,t.width),height:b(`${o}`,t.height)}})(e.current);r({width:t,height:o})};return(0,g.useEffect)((()=>o()),[e.current]),[t,o]},y=(e,t=!0)=>{(0,g.useEffect)((()=>{const r=()=>e();return t&&r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)}),[])};var v="colors",x="sizes",w="space",S={gap:w,gridGap:w,columnGap:w,gridColumnGap:w,rowGap:w,gridRowGap:w,inset:w,insetBlock:w,insetBlockEnd:w,insetBlockStart:w,insetInline:w,insetInlineEnd:w,insetInlineStart:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockEnd:w,marginBlockStart:w,marginInline:w,marginInlineEnd:w,marginInlineStart:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockEnd:w,paddingBlockStart:w,paddingInline:w,paddingInlineEnd:w,paddingInlineStart:w,top:w,right:w,bottom:w,left:w,scrollMargin:w,scrollMarginTop:w,scrollMarginRight:w,scrollMarginBottom:w,scrollMarginLeft:w,scrollMarginX:w,scrollMarginY:w,scrollMarginBlock:w,scrollMarginBlockEnd:w,scrollMarginBlockStart:w,scrollMarginInline:w,scrollMarginInlineEnd:w,scrollMarginInlineStart:w,scrollPadding:w,scrollPaddingTop:w,scrollPaddingRight:w,scrollPaddingBottom:w,scrollPaddingLeft:w,scrollPaddingX:w,scrollPaddingY:w,scrollPaddingBlock:w,scrollPaddingBlockEnd:w,scrollPaddingBlockStart:w,scrollPaddingInline:w,scrollPaddingInlineEnd:w,scrollPaddingInlineStart:w,fontSize:"fontSizes",background:v,backgroundColor:v,backgroundImage:v,borderImage:v,border:v,borderBlock:v,borderBlockEnd:v,borderBlockStart:v,borderBottom:v,borderBottomColor:v,borderColor:v,borderInline:v,borderInlineEnd:v,borderInlineStart:v,borderLeft:v,borderLeftColor:v,borderRight:v,borderRightColor:v,borderTop:v,borderTopColor:v,caretColor:v,color:v,columnRuleColor:v,fill:v,outline:v,outlineColor:v,stroke:v,textDecorationColor:v,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:x,minBlockSize:x,maxBlockSize:x,inlineSize:x,minInlineSize:x,maxInlineSize:x,width:x,minWidth:x,maxWidth:x,height:x,minHeight:x,maxHeight:x,flexBasis:x,gridTemplateColumns:x,gridTemplateRows:x,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},C=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,k=()=>{const e=Object.create(null);return(t,r,...o)=>{const n=(e=>JSON.stringify(e,C))(t);return n in e?e[n]:e[n]=r(t,...o)}},E=Symbol.for("sxs.internal"),P=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),T=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:I}=Object.prototype,N=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),M=/\s+(?![^()]*\))/,R=e=>t=>e(..."string"==typeof t?String(t).split(M):[t]),A={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:R(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:R(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:R(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:R(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:R(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:R(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},L=/([\d.]+)([^]*)/,B=(e,t)=>e.length?e.reduce(((e,r)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(e)?`:is(${r})`:r):r+" "+e))),e)),[]):t,z=(e,t)=>e in H&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,r,o,n)=>r+("stretch"===o?`-moz-available${n};${N(e)}:${r}-webkit-fill-available`:`-moz-fit-content${n};${N(e)}:${r}fit-content`)+n)):String(t),H={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},D=e=>e?e+"-":"",O=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,o,n,i,s)=>"$"==i==!!n?e:(o||"--"==i?"calc(":"")+"var(--"+("$"===i?D(t)+(s.includes("$")?"":D(r))+s.replace(/\$/g,"-"):s)+")"+(o||"--"==i?"*"+(o||"")+(n||"1")+")":""))),K=/\s*,\s*(?![^()]*\))/,F=Object.prototype.toString,j=(e,t,r,o,n)=>{let i,s,a;const l=(e,t,r)=>{let c,d;const u=e=>{for(c in e){const g=64===c.charCodeAt(0),m=g&&Array.isArray(e[c])?e[c]:[e[c]];for(d of m){const e=/[A-Z]/.test(h=c)?h:h.replace(/-[^]/g,(e=>e[1].toUpperCase())),m="object"==typeof d&&d&&d.toString===F&&(!o.utils[e]||!t.length);if(e in o.utils&&!m){const t=o.utils[e];if(t!==s){s=t,u(t(d)),s=null;continue}}else if(e in A){const t=A[e];if(t!==a){a=t,u(t(d)),a=null;continue}}if(g&&(p=c.slice(1)in o.media?"@media "+o.media[c.slice(1)]:c,c=p.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,r,o,n,i)=>{const s=L.test(t),a=.0625*(s?-1:1),[l,c]=s?[o,t]:[t,o];return"("+("="===r[0]?"":">"===r[0]===s?"max-":"min-")+l+":"+("="!==r[0]&&1===r.length?c.replace(L,((e,t,o)=>Number(t)+a*(">"===r?1:-1)+o)):c)+(n?") and ("+(">"===n[0]?"min-":"max-")+l+":"+(1===n.length?i.replace(L,((e,t,r)=>Number(t)+a*(">"===n?-1:1)+r)):i):"")+")"}))),m){const e=g?r.concat(c):[...r],o=g?[...t]:B(t,c.split(K));void 0!==i&&n(_(...i)),i=void 0,l(d,o,e)}else void 0===i&&(i=[[],t,r]),c=g||36!==c.charCodeAt(0)?c:`--${D(o.prefix)}${c.slice(1).replace(/\$/g,"-")}`,d=m?d:"number"==typeof d?d&&e in W?String(d)+"px":String(d):O(z(e,null==d?"":d),o.prefix,o.themeMap[e]),i[0].push(`${g?`${c} `:`${N(c)}:`}${d}`)}}var p,h};u(e),void 0!==i&&n(_(...i)),i=void 0};l(e,t,r)},_=(e,t,r)=>`${r.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,W={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},V=e=>String.fromCharCode(e+(e>25?39:97)),U=e=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=V(t%52)+r;return V(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(e))>>>0),G=["themed","global","styled","onevar","resonevar","allvar","inline"],J=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},Y=e=>{let t;const r=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((r,o)=>{const{cssText:n}=r;let i="";if(n.startsWith("--sxs"))return"";if(e[o-1]&&(i=e[o-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===r)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${n}`;return r.cssRules.length?`${i}${n}`:""}return n})).join("")},o=()=>{if(t){const{rules:e,sheet:r}=t;if(!r.deleteRule){for(;3===Object(Object(r.cssRules)[0]).type;)r.cssRules.splice(0,1);r.cssRules=[]}for(const t in e)delete e[t]}const n=Object(e).styleSheets||[];for(const e of n)if(J(e)){for(let n=0,i=e.cssRules;i[n];++n){const s=Object(i[n]);if(1!==s.type)continue;const a=Object(i[n+1]);if(4!==a.type)continue;++n;const{cssText:l}=s;if(!l.startsWith("--sxs"))continue;const c=l.slice(14,-3).trim().split(/\s+/),d=G[c[0]];d&&(t||(t={sheet:e,reset:o,rules:{},toString:r}),t.rules[d]={group:a,index:n,cache:new Set(c)})}if(t)break}if(!t){const n=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,n(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:n("","text/css"),rules:{},reset:o,toString:r}}const{sheet:i,rules:s}=t;for(let e=G.length-1;e>=0;--e){const t=G[e];if(!s[t]){const r=G[e+1],o=s[r]?s[r].index:i.cssRules.length;i.insertRule("@media{}",o),i.insertRule(`--sxs{--sxs:${e}}`,o),s[t]={group:i.cssRules[o+1],index:o,cache:new Set([e])}}X(s[t])}};return o(),t},X=e=>{const t=e.group;let r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},q=Symbol(),Z=k(),Q=(e,t)=>Z(e,(()=>(...r)=>{let o={type:null,composers:new Set};for(const t of r)if(null!=t)if(t[E]){null==o.type&&(o.type=t[E].type);for(const e of t[E].composers)o.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==o.type&&(o.type=t):o.composers.add(ee(t,e));return null==o.type&&(o.type="span"),o.composers.size||o.composers.add(["PJLV",{},[],[],{},[]]),te(e,o,t)})),ee=({variants:e,compoundVariants:t,defaultVariants:r,...o},n)=>{const i=`${D(n.prefix)}c-${U(o)}`,s=[],a=[],l=Object.create(null),c=[];for(const e in r)l[e]=String(r[e]);if("object"==typeof e&&e)for(const t in e){d=l,u=t,I.call(d,u)||(l[t]="undefined");const r=e[t];for(const e in r){const o={[t]:String(e)};"undefined"===String(e)&&c.push(t);const n=r[e],i=[o,n,!T(n)];s.push(i)}}var d,u;if("object"==typeof t&&t)for(const e of t){let{css:t,...r}=e;t="object"==typeof t&&t||{};for(const e in r)r[e]=String(r[e]);const o=[r,t,!T(t)];a.push(o)}return[i,o,s,a,l,c]},te=(e,t,r)=>{const[o,n,i,s]=re(t.composers),a="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;r<t[q].length;r++){const[o,n]=t[q][r];e.rules[o].apply(n)}return t[q]=[],null}return t[q]=[],t.rules={},G.forEach((e=>t.rules[e]={apply:r=>t[q].push([e,r])})),t})(r):null,l=(a||r).rules,c=`.${o}${n.length>1?`:where(.${n.slice(1).join(".")})`:""}`,d=d=>{d="object"==typeof d&&d||ne;const{css:u,...p}=d,h={};for(const e in i)if(delete p[e],e in d){let t=d[e];"object"==typeof t&&t?h[e]={"@initial":i[e],...t}:(t=String(t),h[e]="undefined"!==t||s.has(e)?t:i[e])}else h[e]=i[e];const g=new Set([...n]);for(const[o,n,i,s]of t.composers){r.rules.styled.cache.has(o)||(r.rules.styled.cache.add(o),j(n,[`.${o}`],[],e,(e=>{l.styled.apply(e)})));const t=oe(i,h,e.media),a=oe(s,h,e.media,!0);for(const n of t)if(void 0!==n)for(const[t,i,s]of n){const n=`${o}-${U(i)}-${t}`;g.add(n);const a=(s?r.rules.resonevar:r.rules.onevar).cache,c=s?l.resonevar:l.onevar;a.has(n)||(a.add(n),j(i,[`.${n}`],[],e,(e=>{c.apply(e)})))}for(const t of a)if(void 0!==t)for(const[n,i]of t){const t=`${o}-${U(i)}-${n}`;g.add(t),r.rules.allvar.cache.has(t)||(r.rules.allvar.cache.add(t),j(i,[`.${t}`],[],e,(e=>{l.allvar.apply(e)})))}}if("object"==typeof u&&u){const t=`${o}-i${U(u)}-css`;g.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),j(u,[`.${t}`],[],e,(e=>{l.inline.apply(e)})))}for(const e of String(d.className||"").trim().split(/\s+/))e&&g.add(e);const m=p.className=[...g].join(" ");return{type:t.type,className:m,selector:c,props:p,toString:()=>m,deferredInjector:a}};return P(d,{className:o,selector:c,[E]:t,toString:()=>(r.rules.styled.cache.has(o)||d(),o)})},re=e=>{let t="";const r=[],o={},n=[];for(const[i,,,,s,a]of e){""===t&&(t=i),r.push(i),n.push(...a);for(const e in s){const t=s[e];(void 0===o[e]||"undefined"!==t||a.includes(t))&&(o[e]=t)}}return[t,r,o,new Set(n)]},oe=(e,t,r,o)=>{const n=[];e:for(let[i,s,a]of e){if(a)continue;let e,l=0,c=!1;for(e in i){const o=i[e];let n=t[e];if(n!==o){if("object"!=typeof n||!n)continue e;{let e,t,i=0;for(const s in n){if(o===String(n[s])){if("@initial"!==s){const e=s.slice(1);(t=t||[]).push(e in r?r[e]:s.replace(/^@media ?/,"")),c=!0}l+=i,e=!0}++i}if(t&&t.length&&(s={["@media "+t.join(", ")]:s}),!e)continue e}}}(n[l]=n[l]||[]).push([o?"cv":`${e}-${i[e]}`,s,c])}return n},ne={},ie=k(),se=(e,t)=>ie(e,(()=>(...r)=>{const o=()=>{for(let o of r){o="object"==typeof o&&o||{};let r=U(o);if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in o){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let r of[].concat(o["@import"]))r=r.includes('"')||r.includes("'")?r:`"${r}"`,t.sheet.insertRule(`@import ${r};`,e++);delete o["@import"]}j(o,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return P(o,{toString:o})})),ae=k(),le=(e,t)=>ae(e,(()=>r=>{const o=`${D(e.prefix)}k-${U(r)}`,n=()=>{if(!t.rules.global.cache.has(o)){t.rules.global.cache.add(o);const n=[];j(r,[],[],e,(e=>n.push(e)));const i=`@keyframes ${o}{${n.join("")}}`;t.rules.global.apply(i)}return o};return P(n,{get name(){return n()},toString:n})})),ce=class{constructor(e,t,r,o){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==r?"":String(r),this.prefix=null==o?"":String(o)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+D(this.prefix)+D(this.scale)+this.token}toString(){return this.computedValue}},de=k(),ue=(e,t)=>de(e,(()=>(r,o)=>{o="object"==typeof r&&r||Object(o);const n=`.${r=(r="string"==typeof r?r:"")||`${D(e.prefix)}t-${U(o)}`}`,i={},s=[];for(const t in o){i[t]={};for(const r in o[t]){const n=`--${D(e.prefix)}${t}-${r}`,a=O(String(o[t][r]),e.prefix,t);i[t][r]=new ce(r,a,t,e.prefix),s.push(`${n}:${a}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);const n=`${o===e.theme?":root,":""}.${r}{${s.join(";")}}`;t.rules.themed.apply(n)}return r};return{...i,get className(){return a()},selector:n,toString:a}})),pe=k(),he=k();const ge={fonts:{sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI','Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans','Helvetica Neue', sans-serif;",mono:"Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono','Courier New', monospace;"},fontSizes:{xs:"0.75rem",sm:"0.875rem",base:"1rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem",xl5:"3rem",xl6:"3.75rem",xl7:"4.5rem",xl8:"6rem",xl9:"8rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{xs:1,sm:1.25,base:1.5,md:1.5,lg:1.75,xl:1.75,xl2:2,xl3:2.25,xl4:2.5,xl5:1,xl6:1,xl7:1,xl8:1,xl9:1},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},space:{0:"0rem",xs:"0.5rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"2.25rem",px:"1px",1:"0.125rem",2:"0.25rem",3:"0.375rem",4:"0.5rem",5:"0.625rem",6:"0.75rem",7:"0.875rem",8:"1rem",9:"1.25rem",10:"1.5rem",11:"1.75rem",12:"2rem",13:"2.25rem",14:"2.5rem",15:"2.75rem",16:"3rem",17:"3.5rem",18:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},radii:{xs:"7px",sm:"9px",md:"12px",base:"14px",lg:"14px",xl:"18px",squared:"33%",rounded:"50%",pill:"9999px"},zIndices:{1:"100",2:"200",3:"300",4:"400",5:"500",10:"1000",max:"9999"},borderWeights:{light:"1px",normal:"2px",bold:"3px",extrabold:"4px",black:"5px"},transitions:{default:"all 250ms ease",button:"background 0.25s ease 0s, color 0.25s ease 0s, border-color 0.25s ease 0s, box-shadow 0.25s ease 0s, transform 0.25s ease 0s, opacity 0.25s ease 0s",avatar:"box-shadow 0.25s ease 0s, opacity 0.25s ease 0s",link:"opacity 0.25s ease 0s, background 0.25s ease 0s",card:"transform 0.25s ease 0s, filter 0.25s ease 0s, box-shadow 0.25s ease 0s",dropdownItem:"background 0.25s ease, transform 0.25s ease, color 0.15s ease, box-shadow 0.25s ease 0s"},breakpoints:{xs:"650px",sm:"960px",md:"1280px",lg:"1400px",xl:"1920px"}},me={xs:`(min-width: ${ge.breakpoints.xs})`,sm:`(min-width: ${ge.breakpoints.sm})`,md:`(min-width: ${ge.breakpoints.md})`,lg:`(min-width: ${ge.breakpoints.lg})`,xl:`(min-width: ${ge.breakpoints.xl})`,xsMax:`(max-width: ${ge.breakpoints.xs})`,smMax:`(max-width: ${ge.breakpoints.sm})`,mdMax:`(max-width: ${ge.breakpoints.md})`,lgMax:`(max-width: ${ge.breakpoints.lg})`,xlMax:`(max-width: ${ge.breakpoints.xl})`,motion:"(prefers-reduced-motion: reduce)",safari:"not all and (min-resolution:.001dpcm)",hover:"(any-hover: hover)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"},fe={...S,width:"space",height:"space",minWidth:"space",maxWidth:"space",minHeight:"space",maxHeight:"space",flexBasis:"space",gridTemplateColumns:"space",gridTemplateRows:"space",blockSize:"space",minBlockSize:"space",maxBlockSize:"space",inlineSize:"space",minInlineSize:"space",maxInlineSize:"space",borderWidth:"borderWeights"},be={prefix:"nextui",theme:{...ge,colors:{white:"#ffffff",black:"#000000",primaryLight:"$blue200",primaryLightHover:"$blue300",primaryLightActive:"$blue400",primaryLightContrast:"$blue600",primary:"$blue600",primaryBorder:"$blue500",primaryBorderHover:"$blue600",primarySolidHover:"$blue700",primarySolidContrast:"$white",primaryShadow:"$blue500",secondaryLight:"$purple200",secondaryLightHover:"$purple300",secondaryLightActive:"$purple400",secondaryLightContrast:"$purple600",secondary:"$purple600",secondaryBorder:"$purple500",secondaryBorderHover:"$purple600",secondarySolidHover:"$purple700",secondarySolidContrast:"$white",secondaryShadow:"$purple500",successLight:"$green200",successLightHover:"$green300",successLightActive:"$green400",successLightContrast:"$green700",success:"$green600",successBorder:"$green500",successBorderHover:"$green600",successSolidHover:"$green700",successSolidContrast:"$white",successShadow:"$green500",warningLight:"$yellow200",warningLightHover:"$yellow300",warningLightActive:"$yellow400",warningLightContrast:"$yellow700",warning:"$yellow600",warningBorder:"$yellow500",warningBorderHover:"$yellow600",warningSolidHover:"$yellow700",warningSolidContrast:"$white",warningShadow:"$yellow500",errorLight:"$red200",errorLightHover:"$red300",errorLightActive:"$red400",errorLightContrast:"$red600",error:"$red600",errorBorder:"$red500",errorBorderHover:"$red600",errorSolidHover:"$red700",errorSolidContrast:"$white",errorShadow:"$red500",neutralLight:"$gray100",neutralLightHover:"$gray200",neutralLightActive:"$gray300",neutralLightContrast:"$gray800",neutral:"$gray600",neutralBorder:"$gray400",neutralBorderHover:"$gray500",neutralSolidHover:"$gray600",neutralSolidContrast:"$white",neutralShadow:"$gray400",gradient:"linear-gradient(112deg, $cyan600 -63.59%, $pink600 -20.3%, $blue600 70.46%)",accents0:"$gray50",accents1:"$gray100",accents2:"$gray200",accents3:"$gray300",accents4:"$gray400",accents5:"$gray500",accents6:"$gray600",accents7:"$gray700",accents8:"$gray800",accents9:"$gray900",border:"$gray300"},shadows:{},dropShadows:{}},media:me,utils:{p:e=>({padding:e}),pt:e=>({paddingTop:e}),pr:e=>({paddingRight:e}),pb:e=>({paddingBottom:e}),pl:e=>({paddingLeft:e}),px:e=>({paddingLeft:e,paddingRight:e}),py:e=>({paddingTop:e,paddingBottom:e}),m:e=>({margin:e}),mt:e=>({marginTop:e}),mr:e=>({marginRight:e}),mb:e=>({marginBottom:e}),ml:e=>({marginLeft:e}),mx:e=>({marginLeft:e,marginRight:e}),my:e=>({marginTop:e,marginBottom:e}),ta:e=>({textAlign:e}),tt:e=>({textTransform:e}),to:e=>({textOverflow:e}),d:e=>({display:e}),dflex:e=>({display:"flex",alignItems:e,justifyContent:e}),fd:e=>({flexDirection:e}),fw:e=>({flexWrap:e}),ai:e=>({alignItems:e}),ac:e=>({alignContent:e}),jc:e=>({justifyContent:e}),as:e=>({alignSelf:e}),fg:e=>({flexGrow:e}),fs:e=>({fontSize:e}),fb:e=>({flexBasis:e}),bc:e=>({backgroundColor:e}),bf:e=>({backdropFilter:e}),bg:e=>({background:e}),bgBlur:e=>({bf:"saturate(180%) blur(10px)",bg:e}),bgColor:e=>({backgroundColor:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),bgClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),br:e=>({borderRadius:e}),bw:e=>({borderWidth:e}),btrr:e=>({borderTopRightRadius:e}),bbrr:e=>({borderBottomRightRadius:e}),bblr:e=>({borderBottomLeftRadius:e}),btlr:e=>({borderTopLeftRadius:e}),bs:e=>({boxShadow:e}),ds:e=>({dropShadow:e}),shadow:e=>({boxShadow:e}),dshadow:e=>({dropShadow:e}),dropShadow:e=>({filter:`$dropShadows${e}`}),normalShadow:e=>({boxShadow:`0 4px 14px 0 $colors${e}`}),normalShadowVar:e=>({boxShadow:`0 4px 14px 0 ${e}`}),lh:e=>({lineHeight:e}),ov:e=>({overflow:e}),ox:e=>({overflowX:e}),oy:e=>({overflowY:e}),pe:e=>({pointerEvents:e}),events:e=>({pointerEvents:e}),us:e=>({WebkitUserSelect:e,userSelect:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),w:e=>({width:e}),h:e=>({height:e}),mw:e=>({maxWidth:e}),maxW:e=>({maxWidth:e}),mh:e=>({maxHeight:e}),maxH:e=>({maxHeight:e}),size:e=>({width:e,height:e}),minSize:e=>({minWidth:e,minHeight:e,width:e,height:e}),sizeMin:e=>({minWidth:e,minHeight:e,width:e,height:e}),maxSize:e=>({maxWidth:e,maxHeight:e}),sizeMax:e=>({maxWidth:e,maxHeight:e}),appearance:e=>({WebkitAppearance:e,appearance:e}),scale:e=>({transform:`scale(${e})`}),linearGradient:e=>({backgroundImage:`linear-gradient(${e})`}),tdl:e=>({textDecorationLine:e}),truncateText:e=>({maxWidth:e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),textGradient:e=>({backgroundImage:`linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent","&::selection":{WebkitTextFillColor:"$colors$text"}})},themeMap:fe},$e={blue50:"#EDF5FF",blue100:"#E1EFFF",blue200:"#CEE4FE",blue300:"#B7D5F8",blue400:"#96C1F2",blue500:"#5EA2EF",blue600:"#0072F5",blue700:"#005FCC",blue800:"#004799",blue900:"#00254D"},ye={blue50:"#10253E",blue100:"#102C4C",blue200:"#0F3158",blue300:"#0D3868",blue400:"#0A4281",blue500:"#0952A5",blue600:"#0072F5",blue700:"#3694FF",blue800:"#3694FF",blue900:"#EAF4FF"},ve={purple50:"#F7F2FD",purple100:"#F1E8FB",purple200:"#EADCF8",purple300:"#E0CBF5",purple400:"#D1B1F0",purple500:"#BC8EE9",purple600:"#7828C8",purple700:"#6622AA",purple800:"#4D1980",purple900:"#290E44"},xe={purple50:"#1F0A33",purple100:"#240C3C",purple200:"#2E0F4D",purple300:"#3B1362",purple400:"#451773",purple500:"#571D91",purple600:"#7828C8",purple700:"#9750DD",purple800:"#B583E7",purple900:"#F7ECFC"},we={green50:"#F1FDF7",green100:"#E8FCF1",green200:"#DAFBE8",green300:"#C8F9DD",green400:"#ADF5CC",green500:"#88F1B6",green600:"#17C964",green700:"#13A452",green800:"#108944",green900:"#06371B"},Se={green50:"#042F14",green100:"#06381B",green200:"#074A24",green300:"#0A6130",green400:"#0B7439",green500:"#0F9549",green600:"#17C964",green700:"#41EC8B",green800:"#78F2AD",green900:"#ECFDF4"},Ce={yellow50:"#FEF9F0",yellow100:"#FEF5E7",yellow200:"#FDEFD8",yellow300:"#FCE7C5",yellow400:"#FBDBA7",yellow500:"#F9CB80",yellow600:"#F5A524",yellow700:"#B97509",yellow800:"#925D07",yellow900:"#4E3104"},ke={yellow50:"#3A2503",yellow100:"#442B03",yellow200:"#583804",yellow300:"#704705",yellow400:"#845306",yellow500:"#A66908",yellow600:"#F5A524",yellow700:"#F6AD37",yellow800:"#F8C572",yellow900:"#FEF7EC"},Ee={red50:"#FEF0F5",red100:"#FEE7EF",red200:"#FDD8E5",red300:"#FCC5D8",red400:"#FAA8C5",red500:"#F881AB",red600:"#F31260",red700:"#B80A47",red800:"#910838",red900:"#4E041E"},Pe={red50:"#300313",red100:"#300313",red200:"#44041A",red300:"#5C0523",red400:"#6F062B",red500:"#910838",red600:"#F31260",red700:"#F4256D",red800:"#F75F94",red900:"#FDD8E5"},Te={cyan50:"#F0FCFF",cyan100:"#E6FAFE",cyan200:"#D7F8FE",cyan300:"#C3F4FD",cyan400:"#A5EEFD",cyan500:"#7EE7FC",cyan600:"#06B7DB",cyan700:"#09AACD",cyan800:"#0E8AAA",cyan900:"#053B48"},Ie={cyan50:"#012A32",cyan100:"#023A46",cyan200:"#024B5A",cyan300:"#036072",cyan400:"#037086",cyan500:"#048EA9",cyan600:"#06B7DB",cyan700:"#33D9FA",cyan800:"#6FE4FB",cyan900:"#EBFBFE"},Ne={pink50:"#FFF0FB",pink100:"#FFE5F8",pink200:"#FFD6F3",pink300:"#FFC2EE",pink400:"#FFA3E5",pink500:"#FF7AD9",pink600:"#FF4ECD",pink700:"#D6009A",pink800:"#B80084",pink900:"#4D0037"},Me={pink50:"#330025",pink100:"#470033",pink200:"#5C0042",pink300:"#750054",pink400:"#8A0063",pink500:"#AD007C",pink600:"#FF4ECD",pink700:"#FF2EC4",pink800:"#FF6BD5",pink900:"#FFEBF9"},Re={gray50:"#F1F3F5",gray100:"#ECEEF0",gray200:"#E6E8EB",gray300:"#DFE3E6",gray400:"#D7DBDF",gray500:"#C1C8CD",gray600:"#889096",gray700:"#7E868C",gray800:"#687076",gray900:"#11181C"},Ae={gray50:"#16181A",gray100:"#26292B",gray200:"#2B2F31",gray300:"#313538",gray400:"#3A3F42",gray500:"#4C5155",gray600:"#697177",gray700:"#787F85",gray800:"#9BA1A6",gray900:"#ECEDEE"},Le={colors:{background:"$white",foreground:"$black",backgroundContrast:"$white",...$e,...ve,...we,...Ce,...Ee,...Te,...Ne,...Re,text:"$gray900",link:"$blue600",codeLight:"$pink100",code:"$pink600",selection:"$blue200"},shadows:{xs:"0 2px 8px 1px rgb(104 112 118 / 0.07), 0 1px 1px -1px rgb(104 112 118 / 0.04)",sm:"0 2px 8px 2px rgb(104 112 118 / 0.07), 0 2px 4px -1px rgb(104 112 118 / 0.04)",md:"0 12px 20px 6px rgb(104 112 118 / 0.08)",lg:"0 12px 34px 6px rgb(104 112 118 / 0.18)",xl:"0 25px 65px 0px rgb(104 112 118 / 0.35)"},dropShadows:{xs:"drop-shadow(0 2px 4px rgb(104 112 118 / 0.07)) drop-shadow(0 1px 1px rgb(104 112 118 / 0.04))",sm:"drop-shadow(0 2px 8px rgb(104 112 118 / 0.07)) drop-shadow(0 2px 4px rgb(104 112 118 / 0.04))",md:"drop-shadow(0 4px 12px rgb(104 112 118 / 0.08)) drop-shadow(0 20px 8px rgb(104 112 118 / 0.04))",lg:"drop-shadow(0 12px 24px rgb(104 112 118 / 0.15)) drop-shadow(0 12px 14px rgb(104 112 118 / 0.1))",xl:"drop-shadow(0 25px 34px rgb(104 112 118 / 0.35))"}},Be={colors:{background:"$black",foreground:"$white",backgroundContrast:"$accents0",...ye,...xe,...Se,...ke,...Pe,...Ie,...Me,...Ae,primaryLight:"$blue50",primaryLightHover:"$blue100",primaryLightActive:"$blue200",primaryLightContrast:"$blue600",secondaryLight:"$purple50",secondaryLightHover:"$purple100",secondaryLightActive:"$purple200",secondaryLightContrast:"$purple800",secondary:"$purple700",secondaryBorder:"$purple500",secondaryBorderHover:"$purple600",secondarySolidHover:"$purple700",secondaryShadow:"$purple500",successLight:"$green50",successLightHover:"$green100",successLightActive:"$green200",warningLight:"$yellow50",warningLightHover:"$yellow100",warningLightActive:"$yellow200",errorLight:"$red50",errorLightHover:"$red100",errorLightActive:"$red200",errorLightContrast:"$red700",neutralLight:"$gray200",neutralLightHover:"$gray300",neutralLightActive:"$gray400",neutralSolidContrast:"$white",text:"$gray900",link:"$blue700",codeLight:"$cyan50",code:"$cyan600",selection:"$pink800"},shadows:{xs:"0 2px 8px 1px rgb(0 0 0 / 0.07), 0 1px 1px -1px rgb(0 0 0 / 0.04)",sm:"0 2px 8px 2px rgb(0 0 0 / 0.07), 0 2px 4px -1px rgb(0 0 0 / 0.04)",md:"0 12px 20px 6px rgb(0 0 0 / 0.08)",lg:"0 12px 34px 6px rgb(0 0 0 / 0.18)",xl:"0 25px 65px 0px rgb(0 0 0 / 0.35)"},dropShadows:{xs:"drop-shadow(0 2px 4px rgb(0 0 0 / 0.07)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.04))",sm:"drop-shadow(0 2px 8px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.04))",md:"drop-shadow(0 4px 12px rgb(0 0 0 / 0.08)) drop-shadow(0 20px 8px rgb(0 0 0 / 0.04))",lg:"drop-shadow(0 12px 24px rgb(0 0 0 / 0.15)) drop-shadow(0 12px 14px rgb(0 0 0 / 0.1))",xl:"drop-shadow(0 25px 34px rgb(0 0 0 / 0.35))"}};function ze(e){for(var t,r,o=Array.prototype.slice.call(arguments,1);o.length;)for(r in t=o.shift())t.hasOwnProperty(r)&&("object"==typeof e[r]&&e[r]&&"[object Array]"!==Object.prototype.toString.call(e[r])&&"object"==typeof t[r]&&null!==t[r]?e[r]=ze({},e[r],t[r]):e[r]=t[r]);return e}const He=(e=>{const t=(e=>{let t=!1;const r=pe(e,(e=>{t=!0;const r="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",o="object"==typeof e.media&&e.media||{},n="object"==typeof e.root?e.root||null:globalThis.document||null,i="object"==typeof e.theme&&e.theme||{},s={prefix:r,media:o,theme:i,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...S},utils:"object"==typeof e.utils&&e.utils||{}},a=Y(n),l={css:Q(s,a),globalCss:se(s,a),keyframes:le(s,a),createTheme:ue(s,a),reset(){a.reset(),l.theme.toString()},theme:{},sheet:a,config:s,prefix:r,getCssText:a.toString,toString:a.toString};return String(l.theme=l.createTheme(i)),l}));return t||r.reset(),r})(e);return t.styled=(({config:e,sheet:t})=>he(e,(()=>{const r=Q(e,t);return(...e)=>{const t=r(...e),o=t[E].type,n=g.forwardRef(((e,r)=>{const n=e&&e.as||o,{props:i,deferredInjector:s}=t(e);return delete i.as,i.ref=r,s?g.createElement(g.Fragment,null,g.createElement(n,i),g.createElement(s,null)):g.createElement(n,i)}));return n.className=t.className,n.displayName=`Styled.${o.displayName||o.name||o}`,n.selector=t.selector,n.toString=()=>t.selector,n[E]=t[E],n}})))(t),t})({...be,theme:{...be.theme,shadows:{...Le.shadows},dropShadows:{...Le.dropShadows},colors:{...be.theme.colors,...Le.colors}}}),De=He.createTheme,Oe=He.styled,Ke=He.css,Fe=He.globalCss,je=He.keyframes,_e=He.getCssText,We=He.theme,Ve=He.config,Ue=({type:e,theme:t,className:r})=>{if(!e)throw new Error("Theme type is required");return De(r||`${e}-theme`,ze("dark"===e?Be:Le,t))},Ge={isDark:!1,theme:We,type:"light"},Je=m().createContext(Ge),Ye=()=>m().useContext(Je),Xe=()=>{const[e,t]=(0,g.useState)(!1);return(0,g.useEffect)((()=>{t(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))}),[]),{isBrowser:e,isServer:!e}},qe=(e,t)=>{let r=[];return[m().Children.map(e,(e=>m().isValidElement(e)&&e.type===t?(r.push(e),null):e)),r.length>=0?r:void 0]},Ze=()=>!!Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)&&navigator.platform.toUpperCase().indexOf("MAC")>=0,Qe=e=>{const t=document.createElement("div");return t.setAttribute("id",e),t},et=(e=(()=>Math.random().toString(32).slice(2,10))(),t)=>{const r=`nextui-${e}`,{isBrowser:o}=Xe(),[n,i]=(0,g.useState)(o?Qe(r):null);return(0,g.useEffect)((()=>{const e=(t?t():null)||document.body,o=e.querySelector(`#${r}`),n=o||Qe(r);o||e.appendChild(n),i(n)}),[]),n},tt={scrollLayer:!1},rt=new Map,ot=e=>!!(e.touches&&e.touches.length>1)||(e.preventDefault(),!1),nt=(e,t)=>{if("undefined"==typeof document)return[!1,e=>e];const r=e||(0,g.useRef)(document.body),[o,n]=(0,g.useState)(!1),i={...tt,...t||{}},s=()=>!i.scrollLayer&&!("undefined"==typeof window||!window.navigator)&&/iP(ad|hone|od)/.test(window.navigator.platform);return(0,g.useEffect)((()=>{if(!r||!r.current)return;const e=r.current.style.overflow;if(o){if(rt.has(r.current))return;return s()?document.addEventListener("touchmove",ot,{passive:!1}):r.current.style.overflow="hidden",void rt.set(r.current,{last:e})}if(rt.has(r.current)){if(s())document.removeEventListener("touchmove",ot);else{const e=rt.get(r.current);r.current.style.overflow=e.last}rt.delete(r.current)}}),[o,r]),[o,n]},it=(e,t)=>{(0,g.useEffect)((()=>{const r=r=>{const o=e.current;r&&o&&!o.contains(r.target)&&t(r)};return document.addEventListener("click",r),()=>document.removeEventListener("click",r)}),[e,t])},st={},at={onError:()=>false},lt=(e=at)=>{const t=et("clipboard"),r=(0,g.useCallback)((r=>{((t,r)=>{if(!t||!r)return;const o=window.getSelection();if(!o)return;t.style.whiteSpace="pre",t.textContent=r;const n=window.document.createRange();o.removeAllRanges(),n.selectNode(t),o.addRange(n);try{window.document.execCommand("copy")}catch(t){e.onError&&e.onError()}o.removeAllRanges(),t&&(t.textContent="")})(t,r)}),[t]);return{copy:r}},ct=e=>{(0,g.useEffect)((()=>{const t=t=>e(t);return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}),[e])},dt=e=>{const[t,r,o]=f(e);return{value:t,setValue:r,currentRef:o,reset:()=>r(e),bindings:{value:t,onChange:e=>{"object"==typeof e&&e.target?r(e.target.value):r(e)}}}},ut={Unknown:0,Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,PauseBreak:19,CapsLock:20,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46,KEY_0:48,KEY_1:49,KEY_2:50,KEY_3:51,KEY_4:52,KEY_5:53,KEY_6:54,KEY_7:55,KEY_8:56,KEY_9:57,KEY_A:65,KEY_B:66,KEY_C:67,KEY_D:68,KEY_E:69,KEY_F:70,KEY_G:71,KEY_H:72,KEY_I:73,KEY_J:74,KEY_K:75,KEY_L:76,KEY_M:77,KEY_N:78,KEY_O:79,KEY_P:80,KEY_Q:81,KEY_R:82,KEY_S:83,KEY_T:84,KEY_U:85,KEY_V:86,KEY_W:87,KEY_X:88,KEY_Y:89,KEY_Z:90,Meta:91,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NumLock:144,ScrollLock:145,Equal:187,Minus:189,Backquote:192,Backslash:220},pt={CtrlCmd:2048,Shift:1024,Alt:512,WinCtrl:256},ht=e=>e&&"object"==typeof e,gt=(e,t)=>ht(e)?e instanceof Array?[...e]:e[t]:e,mt=(e,t,r={})=>{const o=Array.isArray(t)?t:[t],{disableGlobalEvent:n=!1,capture:i=!1,stopPropagation:s=!1,preventDefault:a=!1,event:l="keydown"}=r,c=(e=>{const t=e.filter((e=>!!gt(pt,e))),r={CtrlCmd:!1,Shift:!1,Alt:!1,WinCtrl:!1};return t.forEach((e=>{const t=gt(pt,e);r[t]=!0})),r})(o),d=o.filter((e=>!gt(pt,e))),{CtrlCmd:u,WinCtrl:p}={CtrlCmd:Ze()?"metaKey":"ctrlKey",WinCtrl:Ze()?"ctrlKey":"metaKey"},h=t=>{c.Shift&&!t.shiftKey||c.Alt&&!t.altKey||c.CtrlCmd&&!t[u]||c.WinCtrl&&!t[p]||d.length>0&&!d.includes(t.keyCode)||(s&&t.stopPropagation(),a&&t.preventDefault(),e&&e(t))};(0,g.useEffect)((()=>(n||document.addEventListener(l,h),()=>{document.removeEventListener(l,h)})),[n]);const m=(e,t=!1)=>e!==l||t!==i?()=>{}:e=>h(e);return{bindings:{onKeyDown:m("keydown"),onKeyDownCapture:m("keydown",!0),onKeyPress:m("keypress"),onKeyPressCapture:m("keypress",!0),onKeyUp:m("keyup"),onKeyUpCapture:m("keyup",!0)}}};function ft(e,t){const r=t-e+1;return Array.from({length:r},((t,r)=>r+e))}const bt="dots",$t=({page:e,total:t,siblings:r=1,boundaries:o=1,initialPage:n=1,onChange:i})=>{const[s,a]=(0,g.useState)(e||n);(0,g.useEffect)((()=>{e&&e!==s&&a(e)}),[e]);const l=(0,g.useCallback)((e=>{var r;a(r=e<=0?1:e>t?t:e),i&&i(r)}),[t]);return{range:(0,g.useMemo)((()=>{if(2*r+3+2*o>=t)return ft(1,t);const e=Math.max(s-r,o),n=Math.min(s+r,t-o),i=e>o+2,a=n<t-(o+1);if(!i&&a)return[...ft(1,2*r+o+2),bt,...ft(t-(o-1),t)];if(i&&!a){const e=o+1+2*r;return[...ft(1,o),bt,...ft(t-e,t)]}return[...ft(1,o),bt,...ft(e,n),bt,...ft(t-o+1,t)]}),[t,r,s]),active:s,setPage:l,next:()=>l(s+1),previous:()=>l(s-1),first:()=>l(1),last:()=>l(t)}},yt=(e=!1,t)=>{const[r,o]=(0,g.useState)(e),[n,i]=(0,g.useState)(0),[s,a]=(0,g.useState)(0);return{visible:r,x:n,y:s,onClick:e=>{if(!t.current)return;const r=t.current.getBoundingClientRect();o(!0),i(e.clientX-r.left),a(e.clientY-r.top)},onCompleted:()=>{o(!1),i(0),a(0)}}},vt=(e,t)=>(e.defaultProps=t,e);function xt(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=xt(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function wt(...e){for(var t,r,o=0,n="";o<e.length;)(t=e[o++])&&(r=xt(t))&&(n&&(n+=" "),n+=r);return n}var St=n(570);const Ct=je({"0%":{opacity:0,transform:"scale(0.25)"},"30%":{opacity:1},"80%":{opacity:.5},"100%":{transform:"scale(28)",opacity:0}}),kt=Oe("div",{position:"absolute",left:0,right:0,top:0,bottom:0,"& svg":{position:"absolute",animation:`350ms linear ${Ct}`,animationFillMode:"forwards",width:"$md",height:"$md"}}),Et=({visible:e,x:t,y:r,color:o,onCompleted:n,className:i,...s})=>{const a=(0,g.useRef)(null),l=Number.isNaN(+r)?0:r-10,c=Number.isNaN(+t)?0:t-10;return(0,g.useEffect)((()=>{if(a.current)return a.current.addEventListener("animationend",n),()=>{a.current&&a.current.removeEventListener("animationend",n)}})),e?(0,St.jsx)(kt,{ref:a,className:wt("nextui-drip",i),...s,children:(0,St.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",style:{top:l,left:c},children:(0,St.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,St.jsx)("g",{className:"nextui-drip-filler",fill:o,children:(0,St.jsx)("rect",{width:"100%",height:"100%",rx:"10"})})})})}):null},Pt=vt(m().memo(Et),{visible:!1,x:0,y:0,className:""}),Tt=Fe({"*, *:before, *:after":{boxSizing:"border-box",textRendering:"geometricPrecision",WebkitTapHighlightColor:"transparent"},html:{fontSize:"$base"},body:{margin:0,padding:0,minHeight:"100%",position:"relative",overflowX:"hidden",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",fontSize:"$base",lineHeight:"$md",fontFamily:"$sans"},"html, body":{backgroundColor:"$background",color:"$text"},"p, small":{color:"inherit",letterSpacing:"$tighter",fontWeight:"$normal",fontFamily:"$sans"},p:{fontSize:"$base",lineHeight:"$lg"},small:{margin:0,lineHeight:"$xs",fontSize:"$xs"},b:{fontWeight:"$semibold"},span:{fontSize:"inherit",color:"inherit",fontWeight:"inherit"},img:{maxWidth:"100%"},a:{cursor:"pointer",fontSize:"inherit",WebkitTouchCallout:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitBoxAlign:"center",alignItems:"center",color:"$link",textDecoration:"none"},"a:hover":{textDecoration:"none"},"ul,ol":{padding:0,listStyleType:"none",margin:"$sm $sm $sm $lg",color:"$foreground"},ol:{listStyleType:"decimal"},li:{marginBottom:"$5",fontSize:"$base",lineHeight:"$lg"},"h1,h2,h3,h4,h5,h6":{color:"inherit",margin:"0 0 $5 0"},h1:{letterSpacing:"$tighter",fontSize:"$xl5",lineHeight:"$md",fontWeight:"$bold"},h2:{letterSpacing:"$tighter",fontSize:"$xl4",fontWeight:"$semibold"},h3:{letterSpacing:"$tighter",fontSize:"$xl2",fontWeight:"$semibold"},h4:{letterSpacing:"$tighter",fontSize:"$xl",fontWeight:"$semibold"},h5:{letterSpacing:"$tight",fontSize:"$md",fontWeight:"$semibold"},h6:{letterSpacing:"$tight",fontSize:"$sm",fontWeight:"$semibold"},"button, input, select,textarea":{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",color:"inherit",margin:0},"button:focus, input:focus, select:focus, textarea:focus":{outline:"none"},code:{color:"$code",padding:"$1 $2",borderRadius:"$xs",bg:"$codeLight",fontFamily:"$mono",fontSize:"$sm",whiteSpace:"pre-wrap",transition:"opacity 0.25s ease 0s"},"code:hover":{opacity:.8},pre:{overflow:"auto",whiteSpace:"pre",textAlign:"left",fontSize:"$sm",borderRadius:"$lg",padding:"$md $lg",margin:"$lg 0 ",fontFamily:"$mono",lineHeight:"$md",webkitOverflowScrolling:"touch"},"pre code":{color:"$foreground",fontSize:"$sm",lineHeight:"$sm",whiteSpace:"pre"},"pre code:before,pre code:after":{display:"none"},"pre p":{margin:0},"pre::-webkit-scrollbar":{display:"none",width:0,height:0,background:"transparent"},hr:{background:"$border",borderColor:"transparent",borderWidth:"0px",borderStyle:"none",height:"1px"},details:{backgroundColor:"$accents1",border:"none"},"details:focus, details:hover, details:active":{outline:"none"},summary:{cursor:"pointer",userSelect:"none",listStyle:"none",outline:"none"},"summary::-webkit-details-marker, summary::before":{display:"none"},"summary::-moz-list-bullet":{fontSize:0},"summary:focus, summary:hover, summary:active":{outline:"none",listStyle:"none"},"::selection":{backgroundColor:"$selection"},blockquote:{padding:"$md $lg",color:"$accents7",backgroundColor:"$accents0",borderRadius:"$lg",margin:"$10 0"},"blockquote *:first-child":{marginTop:0},"blockquote *:last-child":{marginBottom:0},kbd:{width:"fit-content",textAlign:"center",display:"inline-block",color:"$accents8",bg:"$accents0",border:"1px solid $border",boxShadow:"0 0 1px 0 rgb(0 0 0 / 14%)",fontFamily:"$sans",borderRadius:"5px",padding:"$1 $3",mx:"$1",lineHeight:"$sm",fontSize:"$sm"},"kbd + kbd":{ml:"$2"}}),It=({children:e})=>(Tt(),(0,St.jsx)(m().Fragment,{children:e})),Nt=m().memo(It);Nt.flush=()=>(0,St.jsx)("style",{id:"stitches",dangerouslySetInnerHTML:{__html:_e()}});const Mt=Nt;function Rt(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function At(e,t){let{cursor:r,getKey:o}=e;return{setSelectedKeys(e){t((t=>({...t,selectedKeys:e})))},setFilterText(e){t((t=>({...t,filterText:e})))},insert(e,...r){t((t=>Lt(t,e,...r)))},insertBefore(e,...r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));if(-1!==n)return Lt(t,n,...r)}))},insertAfter(e,...r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));if(-1!==n)return Lt(t,n+1,...r)}))},prepend(...e){t((t=>Lt(t,0,...e)))},append(...e){t((t=>Lt(t,t.items.length,...e)))},remove(...e){t((t=>{let n=new Set(e),i=t.items.filter((e=>!n.has(o(e)))),s="all";if("all"!==t.selectedKeys){s=new Set(t.selectedKeys);for(let t of e)s.delete(t)}return null==r&&0===i.length&&(s=new Set),{...t,items:i,selectedKeys:s}}))},removeSelectedItems(){t((e=>{if("all"===e.selectedKeys)return{...e,items:[],selectedKeys:new Set};let t=e.selectedKeys,r=e.items.filter((e=>!t.has(o(e))));return{...e,items:r,selectedKeys:new Set}}))},move(e,r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));if(-1===n)return t;let i=t.items.slice(),[s]=i.splice(n,1);return i.splice(r,0,s),{...t,items:i}}))},moveBefore(e,r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));if(-1===n)return t;let i=r.map((e=>t.items.findIndex((t=>o(t)===e)))).sort();return Bt(t,i,n)}))},moveAfter(e,r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));if(-1===n)return t;let i=r.map((e=>t.items.findIndex((t=>o(t)===e)))).sort();return Bt(t,i,n+1)}))},update(e,r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));return-1===n?t:{...t,items:[...t.items.slice(0,n),r,...t.items.slice(n+1)]}}))}}}function Lt(e,t,...r){return{...e,items:[...e.items.slice(0,t),...r,...e.items.slice(t)]}}function Bt(e,t,r){for(let e of t)e<r&&r--;let o=t.map((e=>({from:e,to:r++})));for(let e=0;e<o.length;e++){let t=o[e].from;for(let r=e;r<o.length;r++)o[r].from>t&&o[r].from--}for(let e=0;e<o.length;e++){let t=o[e];for(let r=o.length-1;r>e;r--){let e=o[r];e.from<t.to?t.to++:e.from++}}let n=e.items.slice();for(let e of o){let[t]=n.splice(e.from,1);n.splice(e.to,0,t)}return{...e,items:n}}function zt(e,t){let r;switch(e.state){case"idle":case"error":switch(t.type){case"loading":case"loadingMore":case"sorting":case"filtering":var o,n;return{...e,filterText:null!==(o=t.filterText)&&void 0!==o?o:e.filterText,state:t.type,items:"loading"===t.type?[]:e.items,sortDescriptor:null!==(n=t.sortDescriptor)&&void 0!==n?n:e.sortDescriptor,abortController:t.abortController};case"update":return{...e,...t.updater(e)};case"success":case"error":return e;default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}case"loading":case"sorting":case"filtering":switch(t.type){case"success":return t.abortController!==e.abortController?e:(r=null!==(i=t.selectedKeys)&&void 0!==i?i:e.selectedKeys,{...e,filterText:null!==(s=t.filterText)&&void 0!==s?s:e.filterText,state:"idle",items:[...t.items],selectedKeys:"all"===r?"all":new Set(r),sortDescriptor:null!==(a=t.sortDescriptor)&&void 0!==a?a:e.sortDescriptor,abortController:null,cursor:t.cursor});var i,s,a;case"error":return t.abortController!==e.abortController?e:{...e,state:"error",error:t.error,abortController:null};case"loading":case"loadingMore":case"sorting":case"filtering":var l;return e.abortController.abort(),{...e,filterText:null!==(l=t.filterText)&&void 0!==l?l:e.filterText,state:t.type,items:"loading"===t.type?[]:e.items,abortController:t.abortController};case"update":return{...e,...t.updater(e)};default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}case"loadingMore":switch(t.type){case"success":var c,d;return r="all"===e.selectedKeys||"all"===t.selectedKeys?"all":new Set([...e.selectedKeys,...null!==(c=t.selectedKeys)&&void 0!==c?c:[]]),{...e,state:"idle",items:[...e.items,...t.items],selectedKeys:r,sortDescriptor:null!==(d=t.sortDescriptor)&&void 0!==d?d:e.sortDescriptor,abortController:null,cursor:t.cursor};case"error":return t.abortController!==e.abortController?e:{...e,state:"error",error:t.error};case"loading":case"sorting":case"filtering":var u;return e.abortController.abort(),{...e,filterText:null!==(u=t.filterText)&&void 0!==u?u:e.filterText,state:t.type,items:"loading"===t.type?[]:e.items,abortController:t.abortController};case"loadingMore":return t.abortController.abort(),e;case"update":return{...e,...t.updater(e)};default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}default:throw new Error(`Invalid state "${e.state}"`)}}function Ht(e){const{load:t,sort:r,initialSelectedKeys:o,initialSortDescriptor:n,getKey:i=(e=>e.id||e.key),initialFilterText:s=""}=e;let[a,l]=(0,g.useReducer)(zt,{state:"idle",error:null,items:[],selectedKeys:"all"===o?"all":new Set(o),sortDescriptor:n,filterText:s});const c=async(e,r)=>{let o=new AbortController;try{var n;l({...e,abortController:o});let d=null!==(n=e.filterText)&&void 0!==n?n:a.filterText;var i;let u=await r({items:a.items.slice(),selectedKeys:a.selectedKeys,sortDescriptor:null!==(i=e.sortDescriptor)&&void 0!==i?i:a.sortDescriptor,signal:o.signal,cursor:"loadingMore"===e.type?a.cursor:null,filterText:d});var s;let p=null!==(s=u.filterText)&&void 0!==s?s:d;l({type:"success",...u,abortController:o}),p&&p!==d&&!o.signal.aborted&&c({type:"filtering",filterText:p},t)}catch(e){l({type:"error",error:e,abortController:o})}};return(0,g.useEffect)((()=>{c({type:"loading"},t)}),[]),{items:a.items,selectedKeys:a.selectedKeys,sortDescriptor:a.sortDescriptor,isLoading:"loading"===a.state||"loadingMore"===a.state||"sorting"===a.state||"filtering"===a.state,loadingState:a.state,error:a.error,filterText:a.filterText,getItem:e=>a.items.find((t=>i(t)===e)),reload(){c({type:"loading"},t)},loadMore(){"loadingMore"!==a.state&&"filtering"!==a.state&&null!=a.cursor&&c({type:"loadingMore"},t)},sort(e){c({type:"sorting",sortDescriptor:e},r||t)},...At({...e,getKey:i,cursor:a.cursor},(e=>{l({type:"update",updater:e})})),setFilterText(e){c({type:"filtering",filterText:e},t)}}}function Dt(e){let{initialItems:t=[],initialSelectedKeys:r,getKey:o=(e=>e.id||e.key),getChildren:n=(e=>e.children)}=e,i=(0,g.useMemo)((()=>new Map),[]),s=(0,g.useMemo)((()=>u(t)),[]),[a,l]=(0,g.useState)(s),[c,d]=(0,g.useState)(new Set(r||[]));function u(e=[],t){return e.map((e=>{let r={key:o(e),parentKey:t,value:e,children:null};return r.children=u(n(e),r.key),i.set(r.key,r),r}))}function p(e,t,r){let o=i.get(t);if(!o)return e;let n=r(o);for(null==n?m(o):h(n);o.parentKey;){let e=i.get(o.parentKey),t={key:e.key,parentKey:e.parentKey,value:e.value,children:null},r=e.children;null==n&&(r=r.filter((e=>e!==o))),t.children=r.map((e=>e===o?n:e)),i.set(t.key,t),n=t,o=e}return null==n&&(e=e.filter((e=>e!==o))),e.map((e=>e===o?n:e))}function h(e){i.set(e.key,e);for(let t of e.children)h(t)}function m(e){i.delete(e.key);for(let t of e.children)m(t)}return{items:a,selectedKeys:c,setSelectedKeys:d,getItem:e=>i.get(e),insert(e,t,...r){l((o=>{let n=u(r,e);return null==e?[...o.slice(0,t),...n,...o.slice(t)]:p(o,e,(e=>({key:e.key,parentKey:e.parentKey,value:e.value,children:[...e.children.slice(0,t),...n,...e.children.slice(t)]})))}))},insertBefore(e,...t){let r=i.get(e);if(!r)return;let o=i.get(r.parentKey),n=(o?o.children:a).indexOf(r);this.insert(null==o?void 0:o.key,n,...t)},insertAfter(e,...t){let r=i.get(e);if(!r)return;let o=i.get(r.parentKey),n=(o?o.children:a).indexOf(r);this.insert(null==o?void 0:o.key,n+1,...t)},prepend(e,...t){this.insert(e,0,...t)},append(e,...t){if(null==e)this.insert(null,a.length,...t);else{let r=i.get(e);if(!r)return;this.insert(e,r.children.length,...t)}},remove(...e){let t=a;for(let r of e)t=p(t,r,(()=>null));l(t);let r=new Set(c);for(let e of c)i.has(e)||r.delete(e);d(r)},removeSelectedItems(){this.remove(...c)},move(e,t,r){l((o=>{let n=i.get(e);if(!n)return o;o=p(o,e,(()=>null));const s={...n,parentKey:t};return p(o,t,(e=>({key:e.key,parentKey:e.parentKey,value:e.value,children:[...e.children.slice(0,r),s,...e.children.slice(r)]})))}))},update(e,t){l((r=>p(r,e,(e=>{let r={key:e.key,parentKey:e.parentKey,value:t,children:null};return r.children=u(n(t),r.key),r}))))}}}function Ot(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}Rt({},"useAsyncList",(()=>Ht)),Rt({},"useTreeData",(()=>Dt));var Kt={};Ot(Kt,"SSRProvider",(()=>_t)),Ot(Kt,"useSSRSafeId",(()=>Vt)),Ot(Kt,"useIsSSR",(()=>Ut));const Ft={prefix:String(Math.round(1e10*Math.random())),current:0},jt=m().createContext(Ft);function _t(e){let t=(0,g.useContext)(jt),r=(0,g.useMemo)((()=>({prefix:t===Ft?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return m().createElement(jt.Provider,{value:r},e.children)}let Wt=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function Vt(e){let t=(0,g.useContext)(jt);return t!==Ft||Wt||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,g.useMemo)((()=>e||`react-aria${t.prefix}-${++t.current}`),[e])}function Ut(){let e=(0,g.useContext)(jt)!==Ft,[t,r]=(0,g.useState)(e);return"undefined"!=typeof window&&e&&(0,g.useLayoutEffect)((()=>{r(!1)}),[]),t}var Gt=function(e,t){return Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Gt(e,t)};function Jt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Gt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Yt,Xt,qt,Zt=function(){return Zt=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Zt.apply(this,arguments)};function Qt(e,t,r){if(r||2===arguments.length)for(var o,n=0,i=t.length;n<i;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function er(e){return e.type===Xt.literal}function tr(e){return e.type===Xt.argument}function rr(e){return e.type===Xt.number}function or(e){return e.type===Xt.date}function nr(e){return e.type===Xt.time}function ir(e){return e.type===Xt.select}function sr(e){return e.type===Xt.plural}function ar(e){return e.type===Xt.pound}function lr(e){return e.type===Xt.tag}function cr(e){return!(!e||"object"!=typeof e||e.type!==qt.number)}function dr(e){return!(!e||"object"!=typeof e||e.type!==qt.dateTime)}Object.create,Object.create,function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Yt||(Yt={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Xt||(Xt={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(qt||(qt={}));var ur=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,pr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function hr(e){var t={};return e.replace(pr,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var gr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,mr=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,fr=/^(@+)?(\+|#+)?[rs]?$/g,br=/(\*)(0+)|(#+)(0+)|(0+)/g,$r=/^(0+)$/;function yr(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(fr,(function(e,r,o){return"string"!=typeof o?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===o?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof o?o.length:0)),""})),t}function vr(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function xr(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!$r.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function wr(e){return vr(e)||{}}function Sr(e){for(var t={},r=0,o=e;r<o.length;r++){var n=o[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Zt(Zt(Zt({},t),{notation:"scientific"}),n.options.reduce((function(e,t){return Zt(Zt({},e),wr(t))}),{}));continue;case"engineering":t=Zt(Zt(Zt({},t),{notation:"engineering"}),n.options.reduce((function(e,t){return Zt(Zt({},e),wr(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(br,(function(e,r,o,n,i,s){if(r)t.minimumIntegerDigits=o.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if($r.test(n.stem))t.minimumIntegerDigits=n.stem.length;else if(mr.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(mr,(function(e,r,o,n,i,s){return"*"===o?t.minimumFractionDigits=r.length:n&&"#"===n[0]?t.maximumFractionDigits=n.length:i&&s?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var i=n.options[0];"w"===i?t=Zt(Zt({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=Zt(Zt({},t),yr(i)))}else if(fr.test(n.stem))t=Zt(Zt({},t),yr(n.stem));else{var s=vr(n.stem);s&&(t=Zt(Zt({},t),s));var a=xr(n.stem);a&&(t=Zt(Zt({},t),a))}}return t}var Cr,kr={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function Er(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,o=e.language;return"root"!==o&&(r=e.maximize().region),(kr[r||""]||kr[o||""]||kr["".concat(o,"-001")]||kr["001"])[0]}var Pr=new RegExp("^".concat(ur.source,"*")),Tr=new RegExp("".concat(ur.source,"*$"));function Ir(e,t){return{start:e,end:t}}var Nr=!!String.prototype.startsWith,Mr=!!String.fromCodePoint,Rr=!!Object.fromEntries,Ar=!!String.prototype.codePointAt,Lr=!!String.prototype.trimStart,Br=!!String.prototype.trimEnd,zr=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Hr=!0;try{Hr="a"===(null===(Cr=Vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Cr?void 0:Cr[0])}catch(e){Hr=!1}var Dr,Or=Nr?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Kr=Mr?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,o="",n=e.length,i=0;n>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");o+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return o},Fr=Rr?Object.fromEntries:function(e){for(var t={},r=0,o=e;r<o.length;r++){var n=o[r],i=n[0],s=n[1];t[i]=s}return t},jr=Ar?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var o,n=e.charCodeAt(t);return n<55296||n>56319||t+1===r||(o=e.charCodeAt(t+1))<56320||o>57343?n:o-56320+(n-55296<<10)+65536}},_r=Lr?function(e){return e.trimStart()}:function(e){return e.replace(Pr,"")},Wr=Br?function(e){return e.trimEnd()}:function(e){return e.replace(Tr,"")};function Vr(e,t){return new RegExp(e,t)}if(Hr){var Ur=Vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Dr=function(e,t){var r;return Ur.lastIndex=t,null!==(r=Ur.exec(e)[1])&&void 0!==r?r:""}}else Dr=function(e,t){for(var r=[];;){var o=jr(e,t);if(void 0===o||Xr(o)||qr(o))break;r.push(o),t+=o>=65536?2:1}return Kr.apply(void 0,r)};var Gr=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var o=[];!this.isEOF();){var n=this.char();if(123===n){if((i=this.parseArgument(e,r)).err)return i;o.push(i.val)}else{if(125===n&&e>0)break;if(35!==n||"plural"!==t&&"selectordinal"!==t){if(60===n&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Yt.UNMATCHED_CLOSING_TAG,Ir(this.clonePosition(),this.clonePosition()))}if(60===n&&!this.ignoreTag&&Jr(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;o.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;o.push(i.val)}}else{var s=this.clonePosition();this.bump(),o.push({type:Xt.pound,location:Ir(s,this.clonePosition())})}}}return{val:o,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Xt.literal,value:"<".concat(o,"/>"),location:Ir(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(e+1,t,!0);if(n.err)return n;var i=n.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Jr(this.char()))return this.error(Yt.INVALID_TAG,Ir(s,this.clonePosition()));var a=this.clonePosition();return o!==this.parseTagName()?this.error(Yt.UNMATCHED_CLOSING_TAG,Ir(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Xt.tag,value:o,children:i,location:Ir(r,this.clonePosition())},err:null}:this.error(Yt.INVALID_TAG,Ir(s,this.clonePosition())))}return this.error(Yt.UNCLOSED_TAG,Ir(r,this.clonePosition()))}return this.error(Yt.INVALID_TAG,Ir(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Yr(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(t);if(n)o+=n;else{var i=this.tryParseUnquoted(e,t);if(i)o+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;o+=s}}}var a=Ir(r,this.clonePosition());return{val:{type:Xt.literal,value:o,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Jr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Kr.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),Kr(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Yt.EXPECT_ARGUMENT_CLOSING_BRACE,Ir(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Yt.EMPTY_ARGUMENT,Ir(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(Yt.MALFORMED_ARGUMENT,Ir(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Yt.EXPECT_ARGUMENT_CLOSING_BRACE,Ir(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Xt.argument,value:o,location:Ir(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Yt.EXPECT_ARGUMENT_CLOSING_BRACE,Ir(r,this.clonePosition())):this.parseArgumentOptions(e,t,o,r);default:return this.error(Yt.MALFORMED_ARGUMENT,Ir(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Dr(this.message,t),o=t+r.length;return this.bumpTo(o),{value:r,location:Ir(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,o){var n,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(Yt.EXPECT_ARGUMENT_TYPE,Ir(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(h=Wr(b.val)).length)return this.error(Yt.EXPECT_ARGUMENT_STYLE,Ir(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:Ir(c,this.clonePosition())}}if(($=this.tryParseArgumentClose(o)).err)return $;var d=Ir(o,this.clonePosition());if(l&&Or(null==l?void 0:l.style,"::",0)){var u=_r(l.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?b:{val:{type:Xt.number,value:r,location:d,style:b.val},err:null};if(0===u.length)return this.error(Yt.EXPECT_DATE_TIME_SKELETON,d);var p=u;this.locale&&(p=function(e,t){for(var r="",o=0;o<e.length;o++){var n=e.charAt(o);if("j"===n){for(var i=0;o+1<e.length&&e.charAt(o+1)===n;)i++,o++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=Er(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=l+r}else r+="J"===n?"H":n}return r}(u,this.locale));var h={type:qt.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?hr(p):{}};return{val:{type:"date"===s?Xt.date:Xt.time,value:r,location:d,style:h},err:null}}return{val:{type:"number"===s?Xt.number:"date"===s?Xt.date:Xt.time,value:r,location:d,style:null!==(n=null==l?void 0:l.style)&&void 0!==n?n:null},err:null};case"plural":case"selectordinal":case"select":var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Yt.EXPECT_SELECT_ARGUMENT_OPTIONS,Ir(g,Zt({},g)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),f=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(Yt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ir(this.clonePosition(),this.clonePosition()));var b;if(this.bumpSpace(),(b=this.tryParseDecimalInteger(Yt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Yt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return b;this.bumpSpace(),m=this.parseIdentifierIfPossible(),f=b.val}var $,y=this.tryParsePluralOrSelectOptions(e,s,t,m);if(y.err)return y;if(($=this.tryParseArgumentClose(o)).err)return $;var v=Ir(o,this.clonePosition());return"select"===s?{val:{type:Xt.select,value:r,options:Fr(y.val),location:v},err:null}:{val:{type:Xt.plural,value:r,options:Fr(y.val),offset:f,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(Yt.INVALID_ARGUMENT_TYPE,Ir(i,a))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Yt.EXPECT_ARGUMENT_CLOSING_BRACE,Ir(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Yt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ir(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(gr).filter((function(e){return e.length>0})),r=[],o=0,n=t;o<n.length;o++){var i=n[o].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var s=i[0],a=i.slice(1),l=0,c=a;l<c.length;l++)if(0===c[l].length)throw new Error("Invalid number skeleton");r.push({stem:s,options:a})}return r}(e)}catch(e){return this.error(Yt.INVALID_NUMBER_SKELETON,t)}return{val:{type:qt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Sr(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,o){for(var n,i=!1,s=[],a=new Set,l=o.value,c=o.location;;){if(0===l.length){var d=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(Yt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Yt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;c=Ir(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}if(a.has(l))return this.error("select"===t?Yt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Yt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Yt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Yt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ir(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,r);if(h.err)return h;var g=this.tryParseArgumentClose(p);if(g.err)return g;s.push([l,{value:h.val,location:Ir(p,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(n=this.parseIdentifierIfPossible()).value,c=n.location}return 0===s.length?this.error("select"===t?Yt.EXPECT_SELECT_ARGUMENT_SELECTOR:Yt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ir(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Yt.MISSING_OTHER_CLAUSE,Ir(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;n=!0,i=10*i+(s-48),this.bump()}var a=Ir(o,this.clonePosition());return n?zr(i*=r)?{val:i,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=jr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Or(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Xr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Jr(e){return e>=97&&e<=122||e>=65&&e<=90}function Yr(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Xr(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function qr(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Zr(e){e.forEach((function(e){if(delete e.location,ir(e)||sr(e))for(var t in e.options)delete e.options[t].location,Zr(e.options[t].value);else rr(e)&&cr(e.style)||(or(e)||nr(e))&&dr(e.style)?delete e.style.location:lr(e)&&Zr(e.children)}))}function Qr(e,t){void 0===t&&(t={}),t=Zt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Gr(e,t).parse();if(r.err){var o=SyntaxError(Yt[r.err.kind]);throw o.location=r.err.location,o.originalMessage=r.err.message,o}return(null==t?void 0:t.captureLocation)||Zr(r.val),r.val}function eo(e,t){var r=t&&t.cache?t.cache:lo,o=t&&t.serializer?t.serializer:io;return(t&&t.strategy?t.strategy:no)(e,{cache:r,serializer:o})}function to(e,t,r,o){var n,i=null==(n=o)||"number"==typeof n||"boolean"==typeof n?o:r(o),s=t.get(i);return void 0===s&&(s=e.call(this,o),t.set(i,s)),s}function ro(e,t,r){var o=Array.prototype.slice.call(arguments,3),n=r(o),i=t.get(n);return void 0===i&&(i=e.apply(this,o),t.set(n,i)),i}function oo(e,t,r,o,n){return r.bind(t,e,o,n)}function no(e,t){return oo(e,this,1===e.length?to:ro,t.cache.create(),t.serializer)}var io=function(){return JSON.stringify(arguments)};function so(){this.cache=Object.create(null)}so.prototype.get=function(e){return this.cache[e]},so.prototype.set=function(e,t){this.cache[e]=t};var ao,lo={create:function(){return new so}},co={variadic:function(e,t){return oo(e,this,ro,t.cache.create(),t.serializer)},monadic:function(e,t){return oo(e,this,to,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ao||(ao={}));var uo,po=function(e){function t(t,r,o){var n=e.call(this,t)||this;return n.code=r,n.originalMessage=o,n}return Jt(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ho=function(e){function t(t,r,o,n){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),ao.INVALID_VALUE,n)||this}return Jt(t,e),t}(po),go=function(e){function t(t,r,o){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),ao.INVALID_VALUE,o)||this}return Jt(t,e),t}(po),mo=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),ao.MISSING_VALUE,r)||this}return Jt(t,e),t}(po);function fo(e){return"function"==typeof e}function bo(e,t,r,o,n,i,s){if(1===e.length&&er(e[0]))return[{type:uo.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var d=c[l];if(er(d))a.push({type:uo.literal,value:d.value});else if(ar(d))"number"==typeof i&&a.push({type:uo.literal,value:r.getNumberFormat(t).format(i)});else{var u=d.value;if(!n||!(u in n))throw new mo(u,s);var p=n[u];if(tr(d))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?uo.literal:uo.object,value:p});else if(or(d)){var h="string"==typeof d.style?o.date[d.style]:dr(d.style)?d.style.parsedOptions:void 0;a.push({type:uo.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(nr(d))h="string"==typeof d.style?o.time[d.style]:dr(d.style)?d.style.parsedOptions:o.time.medium,a.push({type:uo.literal,value:r.getDateTimeFormat(t,h).format(p)});else if(rr(d))(h="string"==typeof d.style?o.number[d.style]:cr(d.style)?d.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),a.push({type:uo.literal,value:r.getNumberFormat(t,h).format(p)});else{if(lr(d)){var g=d.children,m=d.value,f=n[m];if(!fo(f))throw new go(m,"function",s);var b=f(bo(g,t,r,o,n,i).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),a.push.apply(a,b.map((function(e){return{type:"string"==typeof e?uo.literal:uo.object,value:e}})))}if(ir(d)){if(!($=d.options[p]||d.options.other))throw new ho(d.value,p,Object.keys(d.options),s);a.push.apply(a,bo($.value,t,r,o,n))}else if(sr(d)){var $;if(!($=d.options["=".concat(p)])){if(!Intl.PluralRules)throw new po('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ao.MISSING_INTL_API,s);var y=r.getPluralRules(t,{type:d.pluralType}).select(p-(d.offset||0));$=d.options[y]||d.options.other}if(!$)throw new ho(d.value,p,Object.keys(d.options),s);a.push.apply(a,bo($.value,t,r,o,n,p-(d.offset||0)))}}}}return(v=a).length<2?v:v.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===uo.literal&&t.type===uo.literal?r.value+=t.value:e.push(t),e}),[]);var v}function $o(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(uo||(uo={}));var yo=function(){function e(t,r,o,n){var i,s,a,l=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=l.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===uo.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return bo(l.ast,l.locales,l.formatters,l.formats,e,void 0,l.message)},this.resolvedOptions=function(){return{locale:l.resolvedLocale.toString()}},this.getAst=function(){return l.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(s=e.formats,(a=o)?Object.keys(s).reduce((function(e,t){var r,o;return e[t]=(r=s[t],(o=a[t])?Zt(Zt(Zt({},r||{}),o||{}),Object.keys(r).reduce((function(e,t){return e[t]=Zt(Zt({},r[t]),o[t]||{}),e}),{})):r),e}),Zt({},s)):s),this.formatters=n&&n.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:eo((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Qt([void 0],t,!1)))}),{cache:$o(i.number),strategy:co.variadic}),getDateTimeFormat:eo((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Qt([void 0],t,!1)))}),{cache:$o(i.dateTime),strategy:co.variadic}),getPluralRules:eo((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Qt([void 0],t,!1)))}),{cache:$o(i.pluralRules),strategy:co.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=Qr,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const vo=yo;function xo(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}xo({},"MessageDictionary",(()=>wo));class wo{getStringForLocale(e,t){let r=this.messages[t];r||(r=function(e,t,r="en-US"){if(t[e])return t[e];let o=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);for(let e in t)if(e.startsWith(o+"-"))return t[e];return t[r]}(t,this.messages,this.defaultLocale),this.messages[t]=r);let o=r[e];if(!o)throw new Error(`Could not find intl message ${e} in ${t} locale`);return o}constructor(e,t="en-US"){this.messages={...e},this.defaultLocale=t}}xo({},"MessageFormatter",(()=>So));class So{format(e,t){let r,o=this.cache[e];if(!o){let t=this.messages.getStringForLocale(e,this.locale);if(!t)throw new Error(`Could not find intl message ${e} in ${this.locale} locale`);o=new vo(t,this.locale),this.cache[e]=o}return t&&(r=Object.keys(t).reduce(((e,r)=>(e[r]=null!=t[r]&&t[r],e)),{})),o.format(r)}constructor(e,t){this.locale=e,this.messages=t,this.cache={}}}new Map,new Map,new WeakMap,new WeakMap,new WeakMap,new WeakMap;let Co=new Map;class ko{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(e),o=this.formatter.formatToParts(t);return[...r.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...o.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==Io&&(Io="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),Io&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let r=Po(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),o=parseInt(r.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),n=parseInt(r.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===o&&23===n)return"h23";if(24===o&&23===n)return"h24";if(0===o&&11===n)return"h11";if(12===o&&11===n)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),e}constructor(e,t={}){this.formatter=Po(e,t),this.options=t}}const Eo={true:{ja:"h11"},false:{}};function Po(e,t={}){if("boolean"==typeof t.hour12&&(null==To&&(To="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),To)){t={...t};let r=Eo[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=null!=r?r:o,delete t.hour12}let r=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(Co.has(r))return Co.get(r);let o=new Intl.DateTimeFormat(e,t);return Co.set(r,o),o}let To=null,Io=null,No=new Map,Mo=!1;try{Mo="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(v){}let Ro=!1;try{Ro="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const Ao={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Lo{format(e){let t="";if(t=Mo||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,r){if("auto"===t)return e.format(r);if("never"===t)return e.format(Math.abs(r));{let o=!1;if("always"===t?o=r>0||Object.is(r,0):"exceptZero"===t&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):o=r>0),o){let t=e.format(-r),o=e.format(r),n=t.replace(o,"").replace(/\u200e|\u061C/,"");return 1!==[...n].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(o,"!!!").replace(n,"+").replace("!!!",o)}return e.format(r)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!Ro){var r;let{unit:e,unitDisplay:o="short",locale:n}=this.resolvedOptions(),i=null===(r=Ao[e])||void 0===r?void 0:r[o];t+=i[n]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),o=this.numberFormatter.formatToParts(t);return[...r.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...o.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return Mo||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),Ro||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:r}=t;if(r&&-1===e.indexOf("-u-nu-")&&(e=`${e}-u-nu-${r}`),"unit"===t.style&&!Ro){var o;let{unit:e,unitDisplay:r="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(o=Ao[e])||void 0===o?void 0:o[r]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${r}`);t={...t,style:"decimal"}}let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(No.has(n))return No.get(n);let i=new Intl.NumberFormat(e,t);return No.set(n,i),i}(e,t),this.options=t}}function Bo(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}new Map,new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);var zo={};Bo(zo,"I18nProvider",(()=>Uo)),Bo(zo,"useLocale",(()=>Go));const Ho=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Do=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Oo(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return Ho.has(t)}let t=e.split("-")[0];return Do.has(t)}function Ko(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:Oo(e)?"rtl":"ltr"}}let Fo=Ko(),jo=new Set;function _o(){Fo=Ko();for(let e of jo)e(Fo)}function Wo(){let e=Ut(),[t,r]=(0,g.useState)(Fo);return(0,g.useEffect)((()=>(0===jo.size&&window.addEventListener("languagechange",_o),jo.add(r),()=>{jo.delete(r),0===jo.size&&window.removeEventListener("languagechange",_o)})),[]),e?{locale:"en-US",direction:"ltr"}:t}const Vo=m().createContext(null);function Uo(e){let{locale:t,children:r}=e,o=Wo(),n=t?{locale:t,direction:Oo(t)?"rtl":"ltr"}:o;return m().createElement(Vo.Provider,{value:n},r)}function Go(){let e=Wo();return(0,g.useContext)(Vo)||e}Bo({},"useMessageFormatter",(()=>Yo));const Jo=new WeakMap;function Yo(e){let{locale:t}=Go(),r=(0,g.useMemo)((()=>function(e){let t=Jo.get(e);return t||(t=new wo(e),Jo.set(e,t)),t}(e)),[e]),o=(0,g.useMemo)((()=>new So(t,r)),[t,r]);return(0,g.useCallback)(((e,t)=>o.format(e,t)),[o])}function Xo(e){let t=(0,g.useRef)(null);e&&t.current&&function(e,t){if(e===t)return!0;let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let o of r)if(t[o]!==e[o])return!1;return!0}(e,t.current)&&(e=t.current),t.current=e;let{locale:r}=Go();return(0,g.useMemo)((()=>new ko(r,e)),[r,e])}function qo(e={}){let{locale:t}=Go();return(0,g.useMemo)((()=>new Lo(t,e)),[t,e])}Bo({},"useDateFormatter",(()=>Xo)),Bo({},"useNumberFormatter",(()=>qo)),Bo({},"useCollator",(()=>Qo));let Zo=new Map;function Qo(e){let{locale:t}=Go(),r=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(Zo.has(r))return Zo.get(r);let o=new Intl.Collator(t,e);return Zo.set(r,o),o}function en(e){let t=Qo({usage:"search",...e});return{startsWith:(e,r)=>0===r.length||(e=e.normalize("NFC"),r=r.normalize("NFC"),0===t.compare(e.slice(0,r.length),r)),endsWith:(e,r)=>0===r.length||(e=e.normalize("NFC"),r=r.normalize("NFC"),0===t.compare(e.slice(-r.length),r)),contains(e,r){if(0===r.length)return!0;e=e.normalize("NFC");let o=0,n=(r=r.normalize("NFC")).length;for(;o+n<=e.length;o++){let i=e.slice(o,o+n);if(0===t.compare(r,i))return!0}return!1}}}function tn(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=tn(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function rn(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=tn(e))&&(o&&(o+=" "),o+=t);return o}function on(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function nn(e,t,r){let[o,n]=(0,g.useState)(e||t),i=(0,g.useRef)(void 0!==e),s=i.current,a=void 0!==e,l=(0,g.useRef)(o);s!==a&&console.warn(`WARN: A component changed from ${s?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a;let c=(0,g.useCallback)(((e,...t)=>{let o=(e,...t)=>{r&&(Object.is(l.current,e)||r(e,...t)),a||(l.current=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),n(((r,...n)=>{let i=e(a?l.current:r,...n);return o(i,...t),a?r:i}))):(a||n(e),o(e,...t))}),[a,r]);return a?l.current=e:e=o,[e,c]}Bo({},"useFilter",(()=>en)),on({},"useControlledState",(()=>nn));var sn={};function an(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function ln(e,t,r,o){let n=(e-(isNaN(t)?0:t))%o,i=2*Math.abs(n)>=o?e+Math.sign(n)*(o-Math.abs(n)):e-n;isNaN(t)?!isNaN(r)&&i>r&&(i=Math.floor(r/o)*o):i<t?i=t:!isNaN(r)&&i>r&&(i=t+Math.floor((r-t)/o)*o);let s=o.toString(),a=s.indexOf("."),l=a>=0?s.length-a:0;if(l>0){let e=Math.pow(10,l);i=Math.round(i*e)/e}return i}function cn(e,t,r=10){const o=Math.pow(r,t);return Math.round(e*o)/o}function dn(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}on(sn,"clamp",(()=>an)),on(sn,"snapValueToStep",(()=>ln)),on(sn,"toFixedNumber",(()=>cn));var un={};dn(un,"useId",(()=>gn)),dn(un,"mergeIds",(()=>mn)),dn(un,"useSlotId",(()=>fn)),dn({},"useLayoutEffect",(()=>pn));const pn="undefined"!=typeof window?m().useLayoutEffect:()=>{};let hn=new Map;function gn(e){let t=(0,g.useRef)(!0);t.current=!0;let[r,o]=(0,g.useState)(e),n=(0,g.useRef)(null),i=Vt(r),s=e=>{t.current?n.current=e:o(e)};return hn.set(i,s),pn((()=>{t.current=!1}),[s]),pn((()=>{let e=i;return()=>{hn.delete(e)}}),[i]),(0,g.useEffect)((()=>{let e=n.current;e&&(o(e),n.current=null)}),[o,s]),i}function mn(e,t){if(e===t)return e;let r=hn.get(e);if(r)return r(t),t;let o=hn.get(t);return o?(o(e),e):t}function fn(e=[]){let t=gn(),[r,o]=si(t),n=(0,g.useCallback)((()=>{o((function*(){yield t,yield document.getElementById(t)?t:null}))}),[t,o]);return pn(n,[t,n,...e]),r}function bn(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}function $n(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let o=e[r];for(let e in o){let r=t[e],n=o[e];"function"==typeof r&&"function"==typeof n&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=bn(r,n):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof n?"id"===e&&r&&n?t.id=mn(r,n):t[e]=void 0!==n?n:r:t[e]=rn(r,n)}}return t}function yn(...e){return t=>{for(let r of e)"function"==typeof r?r(t):null!=r&&(r.current=t)}}dn({},"chain",(()=>bn)),dn({},"mergeProps",(()=>$n)),dn({},"mergeRefs",(()=>yn)),dn({},"filterDOMProps",(()=>Sn));const vn=new Set(["id"]),xn=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),wn=/^(data-.*)$/;function Sn(e,t={}){let{labelable:r,propNames:o}=t,n={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(vn.has(t)||r&&xn.has(t)||(null==o?void 0:o.has(t))||wn.test(t))&&(n[t]=e[t]);return n}function Cn(e){if(function(){if(null==kn){kn=!1;try{document.createElement("div").focus({get preventScroll(){return kn=!0,!0}})}catch(e){}}return kn}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,r=[],o=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:o}of e)t.scrollTop=r,t.scrollLeft=o}(t)}}dn({},"focusWithoutScrolling",(()=>Cn));let kn=null;function En(e,t,r="horizontal"){let o=e.getBoundingClientRect();return t?"horizontal"===r?o.right:o.bottom:"horizontal"===r?o.left:o.top}dn({},"getOffset",(()=>En));var Pn={};dn(Pn,"clamp",(()=>an)),dn(Pn,"snapValueToStep",(()=>ln)),dn({},"runAfterTransition",(()=>Mn));let Tn=new Map,In=new Set;function Nn(){if("undefined"==typeof window)return;let e=t=>{let r=Tn.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",e),Tn.delete(t.target)),0===Tn.size)){for(let e of In)e();In.clear()}};document.body.addEventListener("transitionrun",(t=>{let r=Tn.get(t.target);r||(r=new Set,Tn.set(t.target,r),t.target.addEventListener("transitioncancel",e)),r.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function Mn(e){requestAnimationFrame((()=>{0===Tn.size?e():In.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?Nn():document.addEventListener("DOMContentLoaded",Nn)),dn({},"useDrag1D",(()=>An));const Rn=[];function An(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:r,orientation:o,onHover:n,onDrag:i,onPositionChange:s,onIncrement:a,onDecrement:l,onIncrementToMax:c,onDecrementToMin:d,onCollapseToggle:u}=e,p=e=>{let n=En(t.current,r,o),i=(e=>"horizontal"===o?e.clientX:e.clientY)(e);return r?n-i:i-n},h=(0,g.useRef)(!1),m=(0,g.useRef)(0),f=(0,g.useRef)({onPositionChange:s,onDrag:i});f.current.onDrag=i,f.current.onPositionChange=s;let b=e=>{e.preventDefault();let t=p(e);h.current||(h.current=!0,f.current.onDrag&&f.current.onDrag(!0),f.current.onPositionChange&&f.current.onPositionChange(t)),m.current!==t&&(m.current=t,s&&s(t))},$=e=>{const t=e.target;h.current=!1;let r=p(e);f.current.onDrag&&f.current.onDrag(!1),f.current.onPositionChange&&f.current.onPositionChange(r),Rn.splice(Rn.indexOf(t),1),window.removeEventListener("mouseup",$,!1),window.removeEventListener("mousemove",b,!1)};return{onMouseDown:e=>{const t=e.currentTarget;Rn.some((e=>t.contains(e)))||(Rn.push(t),window.addEventListener("mousemove",b,!1),window.addEventListener("mouseup",$,!1))},onMouseEnter:()=>{n&&n(!0)},onMouseOut:()=>{n&&n(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===o&&(e.preventDefault(),l&&!r?l():a&&r&&a());break;case"Up":case"ArrowUp":"vertical"===o&&(e.preventDefault(),l&&!r?l():a&&r&&a());break;case"Right":case"ArrowRight":"horizontal"===o&&(e.preventDefault(),a&&!r?a():l&&r&&l());break;case"Down":case"ArrowDown":"vertical"===o&&(e.preventDefault(),a&&!r?a():l&&r&&l());break;case"Home":e.preventDefault(),d&&d();break;case"End":e.preventDefault(),c&&c();break;case"Enter":e.preventDefault(),u&&u()}}}}function Ln(){let e=(0,g.useRef)(new Map),t=(0,g.useCallback)(((t,r,o,n)=>{let i=(null==n?void 0:n.once)?(...t)=>{e.current.delete(o),o(...t)}:o;e.current.set(o,{type:r,eventTarget:t,fn:i,options:n}),t.addEventListener(r,o,n)}),[]),r=(0,g.useCallback)(((t,r,o,n)=>{var i;let s=(null===(i=e.current.get(o))||void 0===i?void 0:i.fn)||o;t.removeEventListener(r,s,n),e.current.delete(o)}),[]),o=(0,g.useCallback)((()=>{e.current.forEach(((e,t)=>{r(e.eventTarget,e.type,t,e.options)}))}),[r]);return(0,g.useEffect)((()=>o),[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}function Bn(e,t){let{id:r,"aria-label":o,"aria-labelledby":n}=e;if(r=gn(r),n&&o){let e=new Set([...n.trim().split(/\s+/),r]);n=[...e].join(" ")}else n&&(n=n.trim().split(/\s+/).join(" "));return o||n||!t||(o=t),{id:r,"aria-label":o,"aria-labelledby":n}}function zn(e){const t=(0,g.useRef)();return pn((()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}),[e]),t}function Hn(e,t){const r=(0,g.useRef)(!0);(0,g.useEffect)((()=>{r.current?r.current=!1:e()}),t)}function Dn(e){const{ref:t,onResize:r}=e;(0,g.useEffect)((()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)};{const t=new window.ResizeObserver((e=>{e.length&&r()}));return t.observe(e),()=>{e&&t.unobserve(e)}}}}),[r,t])}function On(e,t){pn((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function Kn(e){for(;e&&!Fn(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Fn(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}dn({},"useGlobalListeners",(()=>Ln)),dn({},"useLabels",(()=>Bn)),dn({},"useObjectRef",(()=>zn)),dn({},"useUpdateEffect",(()=>Hn)),dn({},"useResizeObserver",(()=>Dn)),dn({},"useSyncRef",(()=>On)),dn({},"getScrollParent",(()=>Kn)),dn({},"useViewportSize",(()=>_n));let jn="undefined"!=typeof window&&window.visualViewport;function _n(){let[e,t]=(0,g.useState)((()=>Wn()));return(0,g.useEffect)((()=>{let e=()=>{t((e=>{let t=Wn();return t.width===e.width&&t.height===e.height?e:t}))};return jn?jn.addEventListener("resize",e):window.addEventListener("resize",e),()=>{jn?jn.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function Wn(){return{width:(null==jn?void 0:jn.width)||window.innerWidth,height:(null==jn?void 0:jn.height)||window.innerHeight}}dn({},"useDescription",(()=>Gn));let Vn=0;const Un=new Map;function Gn(e){let[t,r]=(0,g.useState)(null);return pn((()=>{if(!e)return;let t=Un.get(e);if(t)r(t.element.id);else{let o="react-aria-description-"+Vn++;r(o);let n=document.createElement("div");n.id=o,n.style.display="none",n.textContent=e,document.body.appendChild(n),t={refCount:0,element:n},Un.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),Un.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}var Jn={};function Yn(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function Xn(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test((window.navigator.userAgentData||window.navigator).platform)}function qn(){return Xn(/^Mac/i)}function Zn(){return Xn(/^iPhone/i)}function Qn(){return Xn(/^iPad/i)||qn()&&navigator.maxTouchPoints>1}function ei(){return Zn()||Qn()}function ti(){return qn()||ei()}function ri(){return Yn(/AppleWebKit/i)&&!oi()}function oi(){return Yn(/Chrome/i)}function ni(){return Yn(/Android/i)}function ii(e,t,r,o){let n=(0,g.useRef)(r);n.current=r;let i=null==r;(0,g.useEffect)((()=>{if(i)return;let r=e.current,s=e=>n.current.call(this,e);return r.addEventListener(t,s,o),()=>{r.removeEventListener(t,s,o)}}),[e,t,o,i])}function si(e){let[t,r]=(0,g.useState)(e),o=(0,g.useRef)(t),n=(0,g.useRef)(null);o.current=t;let i=(0,g.useRef)(null);i.current=()=>{let e=n.current.next();e.done?n.current=null:t===e.value?i.current():r(e.value)},pn((()=>{n.current&&i.current()}));let s=(0,g.useCallback)((e=>{n.current=e(o.current),i.current()}),[n,i]);return[t,s]}function ai(e,t){let r=li(e,t,"left"),o=li(e,t,"top"),n=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,l=s+e.offsetWidth,c=a+e.offsetHeight;r<=s?s=r:r+n>l&&(s+=r+n-l),o<=a?a=o:o+i>c&&(a+=o+i-c),e.scrollLeft=s,e.scrollTop=a}function li(e,t,r){const o="left"===r?"offsetLeft":"offsetTop";let n=0;for(;t.offsetParent&&(n+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){n-=e[o];break}t=t.offsetParent}return n}dn(Jn,"isMac",(()=>qn)),dn(Jn,"isIPhone",(()=>Zn)),dn(Jn,"isIPad",(()=>Qn)),dn(Jn,"isIOS",(()=>ei)),dn(Jn,"isAppleDevice",(()=>ti)),dn(Jn,"isWebKit",(()=>ri)),dn(Jn,"isChrome",(()=>oi)),dn(Jn,"isAndroid",(()=>ni)),dn({},"useEvent",(()=>ii)),dn({},"useValueEffect",(()=>si)),dn({},"scrollIntoView",(()=>ai));var ci=n(651),di=n.n(ci),ui=n(285),pi=n.n(ui),hi=n(438),gi=n.n(hi),mi=n(875),fi=n.n(mi),bi=n(319),$i=n.n(bi),yi=n(260),vi=n.n(yi);function xi(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}xi({},"Pressable",(()=>Oi)),xi({},"usePress",(()=>Mi));let wi="default",Si="",Ci=new WeakMap;function ki(e){ei()?("default"===wi&&(Si=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),wi="disabled"):e&&(Ci.set(e,e.style.userSelect),e.style.userSelect="none")}function Ei(e){if(ei()){if("disabled"!==wi)return;wi="restoring",setTimeout((()=>{Mn((()=>{"restoring"===wi&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=Si||""),Si="",wi="default")}))}),300)}else if(e&&Ci.has(e)){let t=Ci.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Ci.delete(e)}}function Pi(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}class Ti{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Ii(e){let t=(0,g.useRef)({isFocused:!1,onBlur:e,observer:null}),r=t.current;return r.onBlur=e,pn((()=>()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}),[r]),e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){r.isFocused=!0;let o=e.target,n=e=>{var r;let n=t.current;n.isFocused=!1,o.disabled&&(null===(r=n.onBlur)||void 0===r||r.call(n,new Ti("blur",e))),n.observer&&(n.observer.disconnect(),n.observer=null)};o.addEventListener("focusout",n,{once:!0}),r.observer=new MutationObserver((()=>{r.isFocused&&o.disabled&&(r.observer.disconnect(),o.dispatchEvent(new FocusEvent("blur")),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))})),r.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}}}const Ni=m().createContext(null);function Mi(e){let{onPress:t,onPressChange:r,onPressStart:o,onPressEnd:n,onPressUp:i,isDisabled:s,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:u,...p}=function(e){let t=(0,g.useContext)(Ni);if(t){let{register:r,...o}=t;e=$n(o,e),r()}return On(t,e.ref),e}(e),h=(0,g.useRef)(null);h.current={onPress:t,onPressChange:r,onPressStart:o,onPressEnd:n,onPressUp:i,isDisabled:s,shouldCancelOnPointerExit:c};let[m,f]=(0,g.useState)(!1),b=(0,g.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:$,removeAllGlobalListeners:y}=Ln(),v=(0,g.useMemo)((()=>{let e=b.current,t=(t,r)=>{let{onPressStart:o,onPressChange:n,isDisabled:i}=h.current;i||e.didFirePressStart||(o&&o({type:"pressstart",pointerType:r,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),n&&n(!0),e.didFirePressStart=!0,f(!0))},r=(t,r,o=!0)=>{let{onPressEnd:n,onPressChange:i,onPress:s,isDisabled:a}=h.current;e.didFirePressStart&&(e.ignoreClickAfterPress=!0,e.didFirePressStart=!1,n&&n({type:"pressend",pointerType:r,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),i&&i(!1),f(!1),s&&o&&!a&&s({type:"press",pointerType:r,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}))},o=(e,t)=>{let{onPressUp:r,isDisabled:o}=h.current;o||r&&r({type:"pressup",pointerType:t,target:e.currentTarget,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},n=t=>{e.isPressed&&(e.isOverTarget&&r(Bi(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),d||Ei(e.target))},i={onKeyDown(r){Ai(r.nativeEvent)&&r.currentTarget.contains(r.target)&&(Di(r.target)&&r.preventDefault(),r.stopPropagation(),e.isPressed||r.repeat||(e.target=r.currentTarget,e.isPressed=!0,t(r,"keyboard"),$(document,"keyup",a,!1)))},onKeyUp(t){Ai(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&o(Bi(e.target,t),"keyboard")},onClick(n){n&&!n.currentTarget.contains(n.target)||n&&0===n.button&&(n.stopPropagation(),s&&n.preventDefault(),e.ignoreClickAfterPress||e.ignoreEmulatedMouseEvents||"virtual"!==e.pointerType&&!Pi(n.nativeEvent)||(s||l||Cn(n.currentTarget),t(n,"virtual"),o(n,"virtual"),r(n,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{if(e.isPressed&&Ai(t)){Di(t.target)&&t.preventDefault(),t.stopPropagation(),e.isPressed=!1;let o=t.target;r(Bi(e.target,t),"keyboard",e.target.contains(o)),y(),(e.target.contains(o)&&Ri(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){i.onPointerDown=r=>{var o;0===r.button&&r.currentTarget.contains(r.target)&&(0===(o=r.nativeEvent).width&&0===o.height||1===o.width&&1===o.height&&0===o.pressure&&0===o.detail?e.pointerType="virtual":(Hi(r.currentTarget)&&r.preventDefault(),e.pointerType=r.pointerType,r.stopPropagation(),e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=r.pointerId,e.target=r.currentTarget,s||l||Cn(r.currentTarget),d||ki(e.target),t(r,e.pointerType),$(document,"pointermove",a,!1),$(document,"pointerup",c,!1),$(document,"pointercancel",u,!1))))},i.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Hi(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},i.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&zi(t,t.currentTarget)&&o(t,e.pointerType||t.pointerType)};let a=o=>{o.pointerId===e.activePointerId&&(zi(o,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(Bi(e.target,o),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,r(Bi(e.target,o),e.pointerType,!1),h.current.shouldCancelOnPointerExit&&n(o)))},c=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(zi(t,e.target)?r(Bi(e.target,t),e.pointerType):e.isOverTarget&&r(Bi(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),d||Ei(e.target))},u=e=>{n(e)};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&n(e)}}else{i.onMouseDown=r=>{0===r.button&&r.currentTarget.contains(r.target)&&(Hi(r.currentTarget)&&r.preventDefault(),r.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=r.currentTarget,e.pointerType=Pi(r.nativeEvent)?"virtual":"mouse",s||l||Cn(r.currentTarget),t(r,e.pointerType),$(document,"mouseup",a,!1)))},i.onMouseEnter=r=>{r.currentTarget.contains(r.target)&&(r.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,t(r,e.pointerType)))},i.onMouseLeave=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,r(t,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&n(t)))},i.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||o(t,e.pointerType))};let a=t=>{0===t.button&&(e.isPressed=!1,y(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(zi(t,e.target)?r(Bi(e.target,t),e.pointerType):e.isOverTarget&&r(Bi(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};i.onTouchStart=r=>{if(!r.currentTarget.contains(r.target))return;r.stopPropagation();let o=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(r.nativeEvent);o&&(e.activePointerId=o.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=r.currentTarget,e.pointerType="touch",s||l||Cn(r.currentTarget),d||ki(e.target),t(r,e.pointerType),$(window,"scroll",c,!0))},i.onTouchMove=o=>{if(!o.currentTarget.contains(o.target))return;if(o.stopPropagation(),!e.isPressed)return;let i=Li(o.nativeEvent,e.activePointerId);i&&zi(i,o.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,t(o,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,r(o,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&n(o))},i.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(t.stopPropagation(),!e.isPressed)return;let n=Li(t.nativeEvent,e.activePointerId);n&&zi(n,t.currentTarget)?(o(t,e.pointerType),r(t,e.pointerType)):e.isOverTarget&&r(t,e.pointerType,!1),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,d||Ei(e.target),y()},i.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&n(t))};let c=t=>{e.isPressed&&t.target.contains(e.target)&&n({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&n(e)}}return i}),[$,s,l,y,d]);return(0,g.useEffect)((()=>()=>{d||Ei(b.current.target)}),[d]),{isPressed:a||m,pressProps:$n(p,v)}}function Ri(e){return"A"===e.tagName&&e.hasAttribute("href")}function Ai(e){const{key:t,code:r,target:o}=e,n=o,{tagName:i,isContentEditable:s}=n,a=n.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t&&"Space"!==r||"INPUT"===i||"TEXTAREA"===i||!0===s||Ri(n)&&("button"!==a||"Enter"===t)||"link"===a&&"Enter"!==t)}function Li(e,t){const r=e.changedTouches;for(let e=0;e<r.length;e++){const o=r[e];if(o.identifier===t)return o}return null}function Bi(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function zi(e,t){let r=t.getBoundingClientRect(),o=function(e){let t=e.width/2||e.radiusX||0,r=e.height/2||e.radiusY||0;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}(e);return function(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}(r,o)}function Hi(e){return!e.draggable}function Di(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&"submit"===e.type)}Ni.displayName="PressResponderContext";const Oi=m().forwardRef((({children:e,...t},r)=>{let o=(0,g.useRef)();r=null!=r?r:o;let{pressProps:n}=Mi({...t,ref:r}),i=m().Children.only(e);return m().cloneElement(i,{ref:r,...$n(i.props,n)})}));xi({},"PressResponder",(()=>Ki));const Ki=m().forwardRef((({children:e,...t},r)=>{let o=(0,g.useRef)(!1),n=(0,g.useContext)(Ni),i=$n(n||{},{...t,ref:r||(null==n?void 0:n.ref),register(){o.current=!0,n&&n.register()}});return On(n,r),(0,g.useEffect)((()=>{o.current||console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.")}),[]),m().createElement(Ni.Provider,{value:i},e)}));function Fi(e){let t;t=e.isDisabled||!e.onBlur&&!e.onFocusChange?null:t=>{if(t.target===t.currentTarget)return e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1),!0};let r,o=Ii(t);return!e.isDisabled&&(e.onFocus||e.onFocusChange||e.onBlur)&&(r=t=>{t.target===t.currentTarget&&(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0),o(t))}),{focusProps:{onFocus:r,onBlur:t}}}xi({},"useFocus",(()=>Fi));var ji={};xi(ji,"isFocusVisible",(()=>rs)),xi(ji,"getInteractionModality",(()=>os)),xi(ji,"setInteractionModality",(()=>ns)),xi(ji,"useInteractionModality",(()=>is)),xi(ji,"useFocusVisible",(()=>ss)),xi(ji,"useFocusVisibleListener",(()=>as));let _i=null,Wi=new Set,Vi=!1,Ui=!1,Gi=!1;const Ji={Tab:!0,Escape:!0};function Yi(e,t){for(let r of Wi)r(e,t)}function Xi(e){Ui=!0,function(e){return!(e.metaKey||!qn()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(_i="keyboard",Yi("keyboard",e))}function qi(e){_i="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Ui=!0,Yi("pointer",e))}function Zi(e){Pi(e)&&(Ui=!0,_i="virtual")}function Qi(e){e.target!==window&&e.target!==document&&(Ui||Gi||(_i="virtual",Yi("virtual",e)),Ui=!1,Gi=!1)}function es(){Ui=!1,Gi=!0}function ts(){if("undefined"==typeof window||Vi)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Ui=!0,e.apply(this,arguments)},document.addEventListener("keydown",Xi,!0),document.addEventListener("keyup",Xi,!0),document.addEventListener("click",Zi,!0),window.addEventListener("focus",Qi,!0),window.addEventListener("blur",es,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",qi,!0),document.addEventListener("pointermove",qi,!0),document.addEventListener("pointerup",qi,!0)):(document.addEventListener("mousedown",qi,!0),document.addEventListener("mousemove",qi,!0),document.addEventListener("mouseup",qi,!0)),Vi=!0}function rs(){return"pointer"!==_i}function os(){return _i}function ns(e){_i=e,Yi(e,null)}function is(){ts();let[e,t]=(0,g.useState)(_i);return(0,g.useEffect)((()=>{let e=()=>{t(_i)};return Wi.add(e),()=>{Wi.delete(e)}}),[]),e}function ss(e={}){let{isTextInput:t,autoFocus:r}=e,[o,n]=(0,g.useState)(r||rs());return as((e=>{n(e)}),[t],{isTextInput:t}),{isFocusVisible:o}}function as(e,t,r){ts(),(0,g.useEffect)((()=>{let t=(t,o)=>{(function(e,t,r){return!(e&&"keyboard"===t&&r instanceof KeyboardEvent&&!Ji[r.key])})(null==r?void 0:r.isTextInput,t,o)&&e(rs())};return Wi.add(t),()=>{Wi.delete(t)}}),t)}function ls(e){let t=(0,g.useRef)({isFocusWithin:!1}).current,r=e.isDisabled?null:r=>{t.isFocusWithin&&!r.currentTarget.contains(r.relatedTarget)&&(t.isFocusWithin=!1,e.onBlurWithin&&e.onBlurWithin(r),e.onFocusWithinChange&&e.onFocusWithinChange(!1))},o=Ii(r),n=e.isDisabled?null:r=>{t.isFocusWithin||(e.onFocusWithin&&e.onFocusWithin(r),e.onFocusWithinChange&&e.onFocusWithinChange(!0),t.isFocusWithin=!0,o(r))};return{focusWithinProps:{onFocus:n,onBlur:r}}}"undefined"!=typeof document&&("loading"!==document.readyState?ts():document.addEventListener("DOMContentLoaded",ts)),xi({},"useFocusWithin",(()=>ls)),xi({},"useHover",(()=>gs));let cs=!1,ds=0;function us(){cs=!0,setTimeout((()=>{cs=!1}),50)}function ps(e){"touch"===e.pointerType&&us()}function hs(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",ps):document.addEventListener("touchend",us),ds++,()=>{ds--,ds>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",ps):document.removeEventListener("touchend",us))}}function gs(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,isDisabled:n}=e,[i,s]=(0,g.useState)(!1),a=(0,g.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,g.useEffect)(hs,[]);let{hoverProps:l,triggerHoverEnd:c}=(0,g.useMemo)((()=>{let e=(e,o)=>{if(a.pointerType=o,n||"touch"===o||a.isHovered||!e.currentTarget.contains(e.target))return;a.isHovered=!0;let i=e.currentTarget;a.target=i,t&&t({type:"hoverstart",target:i,pointerType:o}),r&&r(!0),s(!0)},i=(e,t)=>{if(a.pointerType="",a.target=null,"touch"===t||!a.isHovered)return;a.isHovered=!1;let n=e.currentTarget;o&&o({type:"hoverend",target:n,pointerType:t}),r&&r(!1),s(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{cs&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!n&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(l.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{a.ignoreEmulatedMouseEvents||cs||e(t,"mouse"),a.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!n&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:l,triggerHoverEnd:i}}),[t,r,o,n,a]);return(0,g.useEffect)((()=>{n&&c({currentTarget:a.target},a.pointerType)}),[n]),{hoverProps:l,isHovered:i}}function ms(e){let{ref:t,onInteractOutside:r,isDisabled:o,onInteractOutsideStart:n}=e,i=(0,g.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:r,onInteractOutsideStart:n}).current;i.onInteractOutside=r,i.onInteractOutsideStart=n,(0,g.useEffect)((()=>{if(o)return;let e=e=>{fs(e,t)&&i.onInteractOutside&&(i.onInteractOutsideStart&&i.onInteractOutsideStart(e),i.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let r=e=>{i.isPointerDown&&i.onInteractOutside&&fs(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("pointerdown",e,!0),document.addEventListener("pointerup",r,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("pointerup",r,!0)}}{let r=e=>{i.ignoreEmulatedMouseEvents?i.ignoreEmulatedMouseEvents=!1:i.isPointerDown&&i.onInteractOutside&&fs(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))},o=e=>{i.ignoreEmulatedMouseEvents=!0,i.onInteractOutside&&i.isPointerDown&&fs(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("mousedown",e,!0),document.addEventListener("mouseup",r,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",o,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("mouseup",r,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",o,!0)}}}),[t,i,o])}function fs(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1}return t.current&&!t.current.contains(e.target)}function bs(e){if(!e)return;let t=!0;return r=>{let o={...r,preventDefault(){r.preventDefault()},isDefaultPrevented:()=>r.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(o),t&&r.stopPropagation()}}function $s(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:bs(e.onKeyDown),onKeyUp:bs(e.onKeyUp)}}}function ys(e){let{onMoveStart:t,onMove:r,onMoveEnd:o}=e,n=(0,g.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:s}=Ln(),a=(0,g.useMemo)((()=>{let e={},a=()=>{ki(),n.current.didMove=!1},l=(e,o,i,s)=>{0===i&&0===s||(n.current.didMove||(n.current.didMove=!0,null==t||t({type:"movestart",pointerType:o,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),r({type:"move",pointerType:o,deltaX:i,deltaY:s,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},c=(e,t)=>{Ei(),n.current.didMove&&(null==o||o({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))};if("undefined"==typeof PointerEvent){let t=e=>{0===e.button&&(l(e,"mouse",e.pageX-n.current.lastPosition.pageX,e.pageY-n.current.lastPosition.pageY),n.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},r=e=>{0===e.button&&(c(e,"mouse"),s(window,"mousemove",t,!1),s(window,"mouseup",r,!1))};e.onMouseDown=e=>{0===e.button&&(a(),e.stopPropagation(),e.preventDefault(),n.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i(window,"mousemove",t,!1),i(window,"mouseup",r,!1))};let o=e=>{let t=[...e.changedTouches].findIndex((({identifier:e})=>e===n.current.id));if(t>=0){let{pageX:r,pageY:o}=e.changedTouches[t];l(e,"touch",r-n.current.lastPosition.pageX,o-n.current.lastPosition.pageY),n.current.lastPosition={pageX:r,pageY:o}}},d=e=>{[...e.changedTouches].findIndex((({identifier:e})=>e===n.current.id))>=0&&(c(e,"touch"),n.current.id=null,s(window,"touchmove",o),s(window,"touchend",d),s(window,"touchcancel",d))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=n.current.id)return;let{pageX:t,pageY:r,identifier:s}=e.changedTouches[0];a(),e.stopPropagation(),e.preventDefault(),n.current.lastPosition={pageX:t,pageY:r},n.current.id=s,i(window,"touchmove",o,!1),i(window,"touchend",d,!1),i(window,"touchcancel",d,!1)}}else{let t=e=>{if(e.pointerId===n.current.id){let t=e.pointerType||"mouse";l(e,t,e.pageX-n.current.lastPosition.pageX,e.pageY-n.current.lastPosition.pageY),n.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},r=e=>{if(e.pointerId===n.current.id){let o=e.pointerType||"mouse";c(e,o),n.current.id=null,s(window,"pointermove",t,!1),s(window,"pointerup",r,!1),s(window,"pointercancel",r,!1)}};e.onPointerDown=e=>{0===e.button&&null==n.current.id&&(a(),e.stopPropagation(),e.preventDefault(),n.current.lastPosition={pageX:e.pageX,pageY:e.pageY},n.current.id=e.pointerId,i(window,"pointermove",t,!1),i(window,"pointerup",r,!1),i(window,"pointercancel",r,!1))}}let d=(e,t,r)=>{a(),l(e,"keyboard",t,r),c(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),d(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),d(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),d(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),d(e,0,1)}},e}),[n,t,r,o,i,s]);return{moveProps:a}}function vs(e,t){let{onScroll:r,isDisabled:o}=e,n=(0,g.useCallback)((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),r&&r({deltaX:e.deltaX,deltaY:e.deltaY}))}),[r]);ii(t,"wheel",o?null:n)}xi({},"useInteractOutside",(()=>ms)),xi({},"useKeyboard",(()=>$s)),xi({},"useMove",(()=>ys)),xi({},"useScrollWheel",(()=>vs)),xi({},"useLongPress",(()=>ws));const xs=500;function ws(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:o,onLongPress:n,threshold:i=xs,accessibilityDescription:s}=e;const a=(0,g.useRef)(null);let{addGlobalListener:l,removeGlobalListener:c}=Ln(),{pressProps:d}=Mi({isDisabled:t,onPressStart(e){if(("mouse"===e.pointerType||"touch"===e.pointerType)&&(r&&r({...e,type:"longpressstart"}),a.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),n&&n({...e,type:"longpress"}),a.current=null}),i),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};l(e.target,"contextmenu",t,{once:!0}),l(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){a.current&&clearTimeout(a.current),!o||"mouse"!==e.pointerType&&"touch"!==e.pointerType||o({...e,type:"longpressend"})}});return{longPressProps:$n(d,Gn(n&&!t?s:null))}}var Ss=n(156),Cs=n.n(Ss);function ks(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}var Es={};ks(Es,"useVisuallyHidden",(()=>Ts)),ks(Es,"VisuallyHidden",(()=>Is));const Ps={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"};function Ts(e={}){let{style:t,isFocusable:r}=e,[o,n]=(0,g.useState)(!1),{focusProps:i}=Fi({isDisabled:!r,onFocusChange:n});return{visuallyHiddenProps:{...i,style:(0,g.useMemo)((()=>o?t:t?{...Ps,...t}:Ps),[o])}}}function Is(e){let{children:t,elementType:r="div",isFocusable:o,style:n,...i}=e,{visuallyHiddenProps:s}=Ts(e);return m().createElement(r,$n(i,s),t)}function Ns(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Ms(e){return e&&e.__esModule?e.default:e}Ns({},"useOverlayPosition",(()=>Vs));const Rs={top:"top",bottom:"top",left:"left",right:"left"},As={top:"bottom",bottom:"top",left:"right",right:"left"},Ls={top:"left",left:"top"},Bs={top:"height",left:"width"},zs={};let Hs="undefined"!=typeof window&&window.visualViewport;function Ds(e,t,r,o,n){let i=o.scroll[e],s=o[Bs[e]],a=t-n-i,l=t+n-i+r;return a<0?-a:l>s?Math.max(s-l,-a):0}function Os(e){if(zs[e])return zs[e];let[t,r]=e.split(" "),o=Rs[t]||"right",n=Ls[o];Rs[r]||(r="center");let i=Bs[o],s=Bs[n];return zs[e]={placement:t,crossPlacement:r,axis:o,crossAxis:n,size:i,crossSize:s},zs[e]}function Ks(e,t,r,o,n,i,s,a){let{placement:l,crossPlacement:c,axis:d,crossAxis:u,size:p,crossSize:h}=o,g={};g[u]=e[u],"center"===c?g[u]+=(e[h]-r[h])/2:c!==u&&(g[u]+=e[h]-r[h]),g[u]+=i;let m=e[u]+e[h]/2-r[h],f=e[u]+e[h]/2;if(g[u]=Math.min(Math.max(m,g[u]),f),l===d){const r=a?s[p]:t[p];g[As[d]]=Math.floor(r-e[d]+n)}else g[d]=Math.floor(e[d]+e[p]+n);return g}function Fs(e,t,r,o,n,i){let{placement:s,axis:a,size:l}=i;return s===a?Math.max(0,r[a]-e[a]-e.scroll[a]+t[a]-o[a]-o[As[a]]-n):Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-r[a]-r[l]-o[a]-o[As[a]]-n)}function js(e){let{placement:t,targetNode:r,overlayNode:o,scrollNode:n,padding:i,shouldFlip:s,boundaryElement:a,offset:l,crossOffset:c,maxHeight:d}=e,u=o.offsetParent||document.body,p="BODY"===u.tagName;const h=window.getComputedStyle(u).position;let g=!!h&&"static"!==h,m=p?pi()(r):gi()(r,u);p||(m.top+=parseInt(di()(r,"marginTop"),10)||0,m.left+=parseInt(di()(r,"marginLeft"),10)||0);let f=pi()(o),b=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(o);var $;return f.width+=b.left+b.right,f.height+=b.top+b.bottom,function(e,t,r,o,n,i,s,a,l,c,d,u,p){let h=Os(e),{size:g,crossAxis:m,crossSize:f,placement:b,crossPlacement:$}=h,y=Ks(t,a,r,h,c,d,l,u),v=c,x=Fs(a,l,t,n,i+c,h);if(s&&o[g]>x){let e=Os(`${As[b]} ${$}`),o=Ks(t,a,r,e,c,d,l,u);Fs(a,l,t,n,i+c,e)>x&&(h=e,y=o,v=c)}let w=Ds(m,y[m],r[f],a,i);y[m]+=w;let S=function(e,t,r,o,n,i){return null!=e.top?Math.max(0,t.height+t.top+t.scroll.top-(r.top+e.top)-(n.top+n.bottom+i)):Math.max(0,o.top+r.top-(t.top+t.scroll.top)-(n.top+n.bottom+i))}(y,a,l,t,n,i);p&&p<S&&(S=p),r.height=Math.min(r.height,S),y=Ks(t,a,r,h,v,d,l,u),w=Ds(m,y[m],r[f],a,i),y[m]+=w;let C={};return C[m]=t[m]-y[m]+t[f]/2,{position:y,maxHeight:S,arrowOffsetLeft:C.left,arrowOffsetTop:C.top,placement:h.placement}}(t,m,f,{top:($=n).scrollTop,left:$.scrollLeft,width:$.scrollWidth,height:$.scrollHeight},b,i,s,function(e){let t=0,r=0,o=0,n=0,i={};var s,a;return"BODY"===e.tagName?(t=null!==(s=null==Hs?void 0:Hs.width)&&void 0!==s?s:document.documentElement.clientWidth,r=null!==(a=null==Hs?void 0:Hs.height)&&void 0!==a?a:document.documentElement.clientHeight,i.top=$i()(vi()(e).documentElement)||$i()(e),i.left=fi()(vi()(e).documentElement)||fi()(e)):(({width:t,height:r,top:o,left:n}=pi()(e)),i.top=$i()(e),i.left=fi()(e)),{width:t,height:r,scroll:i,top:o,left:n}}(a),"BODY"===a.tagName?pi()(u):gi()(u,a),l,c,g,d)}const _s=new WeakMap;let Ws="undefined"!=typeof window&&window.visualViewport;function Vs(e){let{direction:t}=Go(),{targetRef:r,overlayRef:o,scrollRef:n=o,placement:i="bottom",containerPadding:s=12,shouldFlip:a=!0,boundaryElement:l=("undefined"!=typeof document?document.body:null),offset:c=0,crossOffset:d=0,shouldUpdatePosition:u=!0,isOpen:p=!0,onClose:h,maxHeight:m}=e,[f,b]=(0,g.useState)({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),$=[u,i,o.current,r.current,n.current,s,a,l,c,d,p,t,m],y=(0,g.useCallback)((()=>{!1!==u&&p&&o.current&&r.current&&n.current&&l&&b(js({placement:Us(i,t),overlayNode:o.current,targetNode:r.current,scrollNode:n.current,padding:s,shouldFlip:a,boundaryElement:l,offset:c,crossOffset:d,maxHeight:m}))}),$);var v;pn(y,$),pn((()=>(window.addEventListener("resize",v,!1),()=>{window.removeEventListener("resize",v,!1)})),[v=y]);let x=(0,g.useRef)(!1);pn((()=>{let e,t=()=>{x.current=!0,clearTimeout(e),e=setTimeout((()=>{x.current=!1}),500),y()};return null==Ws||Ws.addEventListener("resize",t),()=>{null==Ws||Ws.removeEventListener("resize",t)}}),[y]);let w=(0,g.useCallback)((()=>{x.current||h()}),[h,x]);return function(e){let{triggerRef:t,isOpen:r,onClose:o}=e;(0,g.useEffect)((()=>{if(!r)return;let e=e=>{let r=e.target;if(!t.current||r instanceof Node&&!r.contains(t.current))return;let n=o||_s.get(t.current);n&&n()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[r,o,t])}({triggerRef:r,isOpen:p,onClose:h?w:void 0}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...f.position,maxHeight:f.maxHeight}},placement:f.placement,arrowProps:{style:{left:f.arrowOffsetLeft,top:f.arrowOffsetTop}},updatePosition:y}}function Us(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}Ns({},"useOverlay",(()=>Js));const Gs=[];function Js(e,t){let{onClose:r,shouldCloseOnBlur:o,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:a}=e;(0,g.useEffect)((()=>(n&&Gs.push(t),()=>{let e=Gs.indexOf(t);e>=0&&Gs.splice(e,1)})),[n,t]);let l=()=>{Gs[Gs.length-1]===t&&r&&r()};ms({ref:t,onInteractOutside:i?e=>{a&&!a(e.target)||(Gs[Gs.length-1]===t&&(e.stopPropagation(),e.preventDefault()),l())}:null,onInteractOutsideStart:e=>{a&&!a(e.target)||Gs[Gs.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=ls({isDisabled:!o,onBlurWithin:e=>{a&&!a(e.relatedTarget)||r()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||s||(e.stopPropagation(),e.preventDefault(),l())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}function Ys(e,t,r){let o,{type:n}=e,{isOpen:i}=t;(0,g.useEffect)((()=>{r&&r.current&&_s.set(r.current,t.close)})),"menu"===n?o=!0:"listbox"===n&&(o="listbox");let s=gn();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?s:null},overlayProps:{id:s}}}Ns({},"useOverlayTrigger",(()=>Ys)),Ns({},"usePreventScroll",(()=>Zs));const Xs="undefined"!=typeof window&&window.visualViewport,qs=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Zs(e={}){let{isDisabled:t}=e;pn((()=>{if(!t)return ei()?function(){let e,t=0,r=window.pageXOffset,o=window.pageYOffset,n=bn(Qs(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),Qs(document.documentElement,"overflow","hidden"),Qs(document.body,"marginTop",`-${o}px`));window.scrollTo(0,0);let i=bn(ea(document,"touchstart",(r=>{e=Kn(r.target),e===document.documentElement&&e===document.body||(t=r.changedTouches[0].pageY)}),{passive:!1,capture:!0}),ea(document,"touchmove",(r=>{if(e===document.documentElement||e===document.body)return void r.preventDefault();let o=r.changedTouches[0].pageY,n=e.scrollTop,i=e.scrollHeight-e.clientHeight;(n<=0&&o>t||n>=i&&o<t)&&r.preventDefault(),t=o}),{passive:!1,capture:!0}),ea(document,"touchend",(e=>{let t=e.target;ra(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),ea(document,"focus",(e=>{let t=e.target;ra(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",Xs&&(Xs.height<window.innerHeight?requestAnimationFrame((()=>{ta(t)})):Xs.addEventListener("resize",(()=>ta(t)),{once:!0}))})))}),!0),ea(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{n(),i(),window.scrollTo(r,o)}}():bn(Qs(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),Qs(document.documentElement,"overflow","hidden"))}),[t])}function Qs(e,t,r){let o=e.style[t];return e.style[t]=r,()=>{e.style[t]=o}}function ea(e,t,r,o){return e.addEventListener(t,r,o),()=>{e.removeEventListener(t,r,o)}}function ta(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=Kn(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let r=t.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>r+e.clientHeight&&(t.scrollTop+=o-r)}e=t.parentElement}}function ra(e){return e instanceof HTMLInputElement&&!qs.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var oa={};Ns(oa,"ModalProvider",(()=>ia)),Ns(oa,"useModalProvider",(()=>sa)),Ns(oa,"OverlayProvider",(()=>la)),Ns(oa,"OverlayContainer",(()=>ca)),Ns(oa,"useModal",(()=>da));const na=m().createContext(null);function ia(e){let{children:t}=e,r=(0,g.useContext)(na),[o,n]=(0,g.useState)(0),i=(0,g.useMemo)((()=>({parent:r,modalCount:o,addModal(){n((e=>e+1)),r&&r.addModal()},removeModal(){n((e=>e-1)),r&&r.removeModal()}})),[r,o]);return m().createElement(na.Provider,{value:i},t)}function sa(){let e=(0,g.useContext)(na);return{modalProviderProps:{"aria-hidden":!!(e&&e.modalCount>0)||null}}}function aa(e){let{modalProviderProps:t}=sa();return m().createElement("div",{"data-overlay-container":!0,...e,...t})}function la(e){return m().createElement(ia,null,m().createElement(aa,e))}function ca(e){let{portalContainer:t=document.body,...r}=e;m().useEffect((()=>{if(t.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")}),[t]);let o=m().createElement(la,r);return Cs().createPortal(o,t)}function da(e){let t=(0,g.useContext)(na);if(!t)throw new Error("Modal is not contained within a provider");return(0,g.useEffect)((()=>{if(!(null==e?void 0:e.isDisabled)&&t&&t.parent)return t.parent.addModal(),()=>{t&&t.parent&&t.parent.removeModal()}}),[t,t.parent,null==e?void 0:e.isDisabled]),{modalProps:{"data-ismodal":!(null==e?void 0:e.isDisabled)}}}var ua,pa,ha,ga,ma,fa,ba,$a,ya,va,xa,wa,Sa,Ca,ka,Ea,Pa,Ta,Ia,Na,Ma,Ra,Aa,La,Ba,za,Ha,Da,Oa,Ka,Fa,ja,_a,Wa,Va;function Ua(e){let{onDismiss:t,...r}=e,o=Bn(r,Yo(Ms(ua))("dismiss"));return m().createElement(Is,null,m().createElement("button",{...o,tabIndex:-1,onClick:()=>{t&&t()}}))}Ns({},"DismissButton",(()=>Ua)),pa=JSON.parse('{"dismiss":"تجاهل"}'),ha=JSON.parse('{"dismiss":"Отхвърляне"}'),ga=JSON.parse('{"dismiss":"Odstranit"}'),ma=JSON.parse('{"dismiss":"Luk"}'),fa=JSON.parse('{"dismiss":"Schließen"}'),ba=JSON.parse('{"dismiss":"Απόρριψη"}'),$a=JSON.parse('{"dismiss":"Dismiss"}'),ya=JSON.parse('{"dismiss":"Descartar"}'),va=JSON.parse('{"dismiss":"Lõpeta"}'),xa=JSON.parse('{"dismiss":"Hylkää"}'),wa=JSON.parse('{"dismiss":"Rejeter"}'),Sa=JSON.parse('{"dismiss":"התעלם"}'),Ca=JSON.parse('{"dismiss":"Odbaci"}'),ka=JSON.parse('{"dismiss":"Elutasítás"}'),Ea=JSON.parse('{"dismiss":"Ignora"}'),Pa=JSON.parse('{"dismiss":"閉じる"}'),Ta=JSON.parse('{"dismiss":"무시"}'),Ia=JSON.parse('{"dismiss":"Atmesti"}'),Na=JSON.parse('{"dismiss":"Nerādīt"}'),Ma=JSON.parse('{"dismiss":"Lukk"}'),Ra=JSON.parse('{"dismiss":"Negeren"}'),Aa=JSON.parse('{"dismiss":"Zignoruj"}'),La=JSON.parse('{"dismiss":"Descartar"}'),Ba=JSON.parse('{"dismiss":"Dispensar"}'),za=JSON.parse('{"dismiss":"Revocare"}'),Ha=JSON.parse('{"dismiss":"Пропустить"}'),Da=JSON.parse('{"dismiss":"Zrušiť"}'),Oa=JSON.parse('{"dismiss":"Opusti"}'),Ka=JSON.parse('{"dismiss":"Odbaci"}'),Fa=JSON.parse('{"dismiss":"Avvisa"}'),ja=JSON.parse('{"dismiss":"Kapat"}'),_a=JSON.parse('{"dismiss":"Скасувати"}'),Wa=JSON.parse('{"dismiss":"取消"}'),Va=JSON.parse('{"dismiss":"關閉"}'),ua={"ar-AE":pa,"bg-BG":ha,"cs-CZ":ga,"da-DK":ma,"de-DE":fa,"el-GR":ba,"en-US":$a,"es-ES":ya,"et-EE":va,"fi-FI":xa,"fr-FR":wa,"he-IL":Sa,"hr-HR":Ca,"hu-HU":ka,"it-IT":Ea,"ja-JP":Pa,"ko-KR":Ta,"lt-LT":Ia,"lv-LV":Na,"nb-NO":Ma,"nl-NL":Ra,"pl-PL":Aa,"pt-BR":La,"pt-PT":Ba,"ro-RO":za,"ru-RU":Ha,"sk-SK":Da,"sl-SI":Oa,"sr-SP":Ka,"sv-SE":Fa,"tr-TR":ja,"uk-UA":_a,"zh-CN":Wa,"zh-TW":Va},Ns({},"ariaHideOutside",(()=>Ja));let Ga=new WeakMap;function Ja(e,t=document.body){let r=new Set(e),o=new Set,n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>(t instanceof HTMLElement&&"true"===t.dataset.liveAnnouncer&&r.add(t),r.has(t)||o.has(t.parentElement)?NodeFilter.FILTER_REJECT:t instanceof HTMLElement&&"row"===t.getAttribute("role")||e.some((e=>t.contains(e)))?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT)}),i=e=>{var t;let r=null!==(t=Ga.get(e))&&void 0!==t?t:0;"true"===e.getAttribute("aria-hidden")&&0===r||(0===r&&e.setAttribute("aria-hidden","true"),o.add(e),Ga.set(e,r+1))},s=n.nextNode();for(;null!=s;)i(s),s=n.nextNode();let a=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...r,...o].some((e=>e.contains(t.target))))for(let e of t.addedNodes)e instanceof HTMLElement&&"true"===e.dataset.liveAnnouncer?r.add(e):e instanceof Element&&i(e)}));return a.observe(t,{childList:!0,subtree:!0}),()=>{a.disconnect();for(let e of o){let t=Ga.get(e);1===t?(e.removeAttribute("aria-hidden"),Ga.delete(e)):Ga.set(e,t-1)}}}const Ya=(e,t)=>{if(!document||!e)return"";let r=getComputedStyle(document.documentElement);const o=`--${be.prefix}-${e}-${t}`,n=r.getPropertyValue(o);return n&&n.includes("var")&&Ya(e,n),n},Xa=e=>{var t;const r=(null==e||null==(t=e.getAttribute("style"))?void 0:t.split(";").map((e=>e.trim())).filter((e=>e.includes("color-scheme"))))||[],o=r.length>0?r[0].replace("color-scheme: ","").replace(";",""):"";return(null==e?void 0:e.getAttribute("data-theme"))||o},qa=e=>"string"==typeof e&&null!=e&&e.includes("-theme")?null==e?void 0:e.replace("-theme",""):e,Za=e=>{var t,r;if(!document)return;const o=document.documentElement,n=(null==o||null==(t=o.getAttribute("class"))?void 0:t.split(" ").filter((e=>!e.includes("theme")&&!e.includes("light")&&!e.includes("dark"))))||[],i=(null==o||null==(r=o.getAttribute("style"))?void 0:r.split(";").filter((e=>!e.includes("color-scheme")&&e.length)).map((e=>`${e};`)))||[];null==o||o.setAttribute("class",wt(n,`${qa(e)}-theme`)),null==o||o.setAttribute("style",wt(i,`color-scheme: ${e};`))},Qa=vt((({theme:e,disableBaseline:t,children:r})=>{const{isBrowser:o}=Xe(),[n,i]=(0,g.useState)(Ge.type),s=e=>{i((t=>t!==e?e:t))},a=e=>{const t=Xa(e);t&&s(t)},l=(0,g.useMemo)((()=>{const e=o?(()=>{const e=[...Object.keys(be.theme.colors),...Object.keys(Le.colors)],t=Object.keys(Le.shadows);return{colors:e.reduce(((e,t)=>{const r=Ya("colors",t);return r&&(e[t]={prefix:be.prefix,scale:"colors",token:t,value:r}),e}),{}),shadows:t.reduce(((e,t)=>{const r=Ya("shadows",t);return r&&(e[t]={prefix:be.prefix,scale:"shadows",token:t,value:r}),e}),{})}})():{},t=ze(ht(r=Ge.theme)?r instanceof Array?[...r]:{...r}:r,e);var r;const i=qa(n);return{theme:t,type:i,isDark:"dark"===i}}),[n,o]);return(0,g.useEffect)((()=>{var e,t,r;a(null==(e=document)?void 0:e.documentElement);const o=new MutationObserver((e=>{var t;if(e&&e.length>0&&"BODY"===(null==(t=e[0])?void 0:t.target.nodeName)){var r,o,n;const e=null==(r=document)||null==(o=r.body)||null==(n=o.dataset)?void 0:n.theme;e&&s(e)}else{var i;a(null==(i=document)?void 0:i.documentElement)}}));return o.observe(null==(t=document)?void 0:t.documentElement,{attributes:!0,attributeFilter:["data-theme","style"]}),o.observe(null==(r=document)?void 0:r.body,{attributes:!0,attributeFilter:["data-theme","style"]}),()=>o.disconnect()}),[]),(0,g.useEffect)((()=>{o&&e&&null!=e&&e.className&&(Za(e.className),s(qa(e.className)))}),[o,e]),(0,St.jsx)(_t,{children:(0,St.jsx)(la,{children:(0,St.jsxs)(Je.Provider,{value:l,children:[!t&&(0,St.jsx)(Mt,{}),r]})})})}),{disableBaseline:!1}),el=Ke({WebkitTapHighlightColor:"transparent","&:focus:not(&:focus-visible)":{boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},"@safari":{WebkitTapHighlightColor:"transparent",outline:"none"}}),tl=Ke({variants:{isFocusVisible:{true:{outline:"transparent solid 2px",outlineOffset:"2px",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},false:{outline:"none"}}}}),rl=Ke({transform:"translateZ(0)",backfaceVisibility:"hidden"}),ol=Ke({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"}),nl=Ke({'&[aria-haspopup="true"]&[aria-expanded="true"]':{opacity:.7,transform:"scale(0.97)"}});function il(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}var sl={};function al(e){if("virtual"===os()){let t=document.activeElement;Mn((()=>{document.activeElement===t&&document.contains(e)&&Cn(e)}))}else Cn(e)}function ll(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:r}=e.style,o="none"!==t&&"hidden"!==r&&"collapse"!==r;if(o){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:r,visibility:n}=t(e);o="none"!==r&&"hidden"!==n&&"collapse"!==n}return o}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||ll(e.parentElement,e))}il(sl,"FocusScope",(()=>pl)),il(sl,"useFocusManager",(()=>hl)),il(sl,"getFocusableTreeWalker",(()=>Sl)),il(sl,"createFocusManager",(()=>Cl)),il({},"focusSafely",(()=>al));const cl=m().createContext(null);let dl=null,ul=new Map;function pl(e){let{children:t,contain:r,restoreFocus:o,autoFocus:n}=e,i=(0,g.useRef)(),s=(0,g.useRef)(),a=(0,g.useRef)([]),l=(0,g.useContext)(cl),c=null==l?void 0:l.scopeRef;pn((()=>{let e=i.current.nextSibling,t=[];for(;e&&e!==s.current;)t.push(e),e=e.nextSibling;a.current=t}),[t,c]),pn((()=>(ul.set(a,c),()=>{a!==dl&&!vl(a,dl)||c&&!ul.has(c)||(dl=c),ul.delete(a)})),[a,c]),function(e,t){let r=(0,g.useRef)(),o=(0,g.useRef)(null);pn((()=>{let n=e.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==dl)return;let r=document.activeElement,o=e.current;if(!$l(r,o))return;let n=Sl(bl(o),{tabbable:!0},o);n.currentNode=r;let i=t.shiftKey?n.previousNode():n.nextNode();i||(n.currentNode=t.shiftKey?o[o.length-1].nextElementSibling:o[0].previousElementSibling,i=t.shiftKey?n.previousNode():n.nextNode()),t.preventDefault(),i&&xl(i,!0)},s=t=>{!dl||vl(dl,e)?(dl=e,r.current=t.target):e!==dl||yl(t.target,e)?e===dl&&(r.current=t.target):r.current?r.current.focus():dl&&wl(dl.current)},a=t=>{o.current=requestAnimationFrame((()=>{e!==dl||yl(document.activeElement,e)||(dl=e,r.current=t.target,r.current.focus())}))};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",s,!1),n.forEach((e=>e.addEventListener("focusin",s,!1))),n.forEach((e=>e.addEventListener("focusout",a,!1))),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",s,!1),n.forEach((e=>e.removeEventListener("focusin",s,!1))),n.forEach((e=>e.removeEventListener("focusout",a,!1)))}}),[e,t]),(0,g.useEffect)((()=>()=>cancelAnimationFrame(o.current)),[o])}(a,r),function(e,t,r){const o=(0,g.useRef)("undefined"!=typeof document?document.activeElement:null);pn((()=>{let n=o.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey)return;let r=document.activeElement;if(!$l(r,e.current))return;let o=Sl(document.body,{tabbable:!0});o.currentNode=r;let i=t.shiftKey?o.previousNode():o.nextNode();if(document.body.contains(n)&&n!==document.body||(n=null),(!i||!$l(i,e.current))&&n){o.currentNode=n;do{i=t.shiftKey?o.previousNode():o.nextNode()}while($l(i,e.current));t.preventDefault(),t.stopPropagation(),i?xl(i,!0):function(e){for(let t of ul.keys())if($l(e,t.current))return!0;return!1}(n)?xl(n,!0):r.blur()}};return r||document.addEventListener("keydown",i,!0),()=>{r||document.removeEventListener("keydown",i,!0),t&&n&&$l(document.activeElement,e.current)&&requestAnimationFrame((()=>{document.body.contains(n)&&xl(n)}))}}),[e,t,r])}(a,o,r),function(e,t){const r=m().useRef(t);(0,g.useEffect)((()=>{r.current&&(dl=e,$l(document.activeElement,dl.current)||wl(e.current)),r.current=!1}),[])}(a,n);let d=function(e){return{focusNext(t={}){let r=e.current,{from:o,tabbable:n,wrap:i}=t,s=o||document.activeElement,a=r[0].previousElementSibling,l=Sl(bl(r),{tabbable:n},r);l.currentNode=$l(s,r)?s:a;let c=l.nextNode();return!c&&i&&(l.currentNode=a,c=l.nextNode()),c&&xl(c,!0),c},focusPrevious(t={}){let r=e.current,{from:o,tabbable:n,wrap:i}=t,s=o||document.activeElement,a=r[r.length-1].nextElementSibling,l=Sl(bl(r),{tabbable:n},r);l.currentNode=$l(s,r)?s:a;let c=l.previousNode();return!c&&i&&(l.currentNode=a,c=l.previousNode()),c&&xl(c,!0),c},focusFirst(t={}){let r=e.current,{tabbable:o}=t,n=Sl(bl(r),{tabbable:o},r);n.currentNode=r[0].previousElementSibling;let i=n.nextNode();return i&&xl(i,!0),i},focusLast(t={}){let r=e.current,{tabbable:o}=t,n=Sl(bl(r),{tabbable:o},r);n.currentNode=r[r.length-1].nextElementSibling;let i=n.previousNode();return i&&xl(i,!0),i}}}(a);return m().createElement(cl.Provider,{value:{scopeRef:a,focusManager:d}},m().createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,m().createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function hl(){var e;return null===(e=(0,g.useContext)(cl))||void 0===e?void 0:e.focusManager}const gl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],ml=gl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";gl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const fl=gl.join(':not([hidden]):not([tabindex="-1"]),');function bl(e){return e[0].parentElement}function $l(e,t){return t.some((t=>t.contains(e)))}function yl(e,t){for(let r of ul.keys())if((r===t||vl(t,r))&&$l(e,r.current))return!0;return!1}function vl(e,t){let r=ul.get(t);return!!r&&(r===e||vl(e,r))}function xl(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{al(e)}catch(e){}}function wl(e){let t=e[0].previousElementSibling,r=Sl(bl(e),{tabbable:!0},e);r.currentNode=t,xl(r.nextNode())}function Sl(e,t,r){let o=(null==t?void 0:t.tabbable)?fl:ml,n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var n;return(null==t||null===(n=t.from)||void 0===n?void 0:n.contains(e))?NodeFilter.FILTER_REJECT:e.matches(o)&&ll(e)&&(!r||$l(e,r))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(n.currentNode=t.from),n}function Cl(e){return{focusNext(t={}){let r=e.current,{from:o,tabbable:n,wrap:i}=t,s=o||document.activeElement,a=Sl(r,{tabbable:n});r.contains(s)&&(a.currentNode=s);let l=a.nextNode();return!l&&i&&(a.currentNode=r,l=a.nextNode()),l&&xl(l,!0),l},focusPrevious(t={}){let r=e.current,{from:o,tabbable:n,wrap:i}=t,s=o||document.activeElement,a=Sl(r,{tabbable:n});if(!r.contains(s)){let e=kl(a);return e&&xl(e,!0),e}a.currentNode=s;let l=a.previousNode();return!l&&i&&(a.currentNode=r,l=kl(a)),l&&xl(l,!0),l},focusFirst(t={}){let r=e.current,{tabbable:o}=t,n=Sl(r,{tabbable:o}).nextNode();return n&&xl(n,!0),n},focusLast(t={}){let r=e.current,{tabbable:o}=t,n=kl(Sl(r,{tabbable:o}));return n&&xl(n,!0),n}}}function kl(e){let t,r;do{r=e.lastChild(),r&&(t=r)}while(r);return t}function El(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,n=(0,g.useRef)({isFocused:!1,isFocusVisible:t||rs()}).current,[i,s]=(0,g.useState)(!1),[a,l]=(0,g.useState)((()=>n.isFocused&&n.isFocusVisible)),c=()=>l(n.isFocused&&n.isFocusVisible),d=e=>{n.isFocused=e,s(e),c()};as((e=>{n.isFocusVisible=e,c()}),[],{isTextInput:r});let{focusProps:u}=Fi({isDisabled:o,onFocusChange:d}),{focusWithinProps:p}=ls({isDisabled:!o,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:n.isFocused&&a,focusProps:o?p:u}}function Pl(e){let{children:t,focusClass:r,focusRingClass:o}=e,{isFocused:n,isFocusVisible:i,focusProps:s}=El(e),a=m().Children.only(t);return m().cloneElement(a,$n(a.props,{...s,className:rn({[r||""]:n,[o||""]:i})}))}il({},"FocusRing",(()=>Pl)),il({},"useFocusRing",(()=>El));var Tl={};il(Tl,"FocusableProvider",(()=>Ml)),il(Tl,"useFocusable",(()=>Rl));let Il=m().createContext(null);function Nl(e,t){let{children:r,...o}=e,n={...o,ref:t};return m().createElement(Il.Provider,{value:n},r)}let Ml=m().forwardRef(Nl);function Rl(e,t){let{focusProps:r}=Fi(e),{keyboardProps:o}=$s(e),n=$n(r,o),i=function(e){let t=(0,g.useContext)(Il)||{};On(t,e);let{ref:r,...o}=t;return o}(t),s=e.isDisabled?{}:i,a=(0,g.useRef)(e.autoFocus);return(0,g.useEffect)((()=>{a.current&&t.current&&al(t.current),a.current=!1}),[t]),{focusableProps:$n({...n,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function Al(e){const t=(0,g.useRef)(null);return(0,g.useImperativeHandle)(e,(()=>t.current)),t}function Ll(e,t){const r=(0,g.useRef)(null);return(0,g.useImperativeHandle)(e,(()=>function(e,t=e){return{...(r=e,{UNSAFE_getDOMNode:()=>r.current}),focus(){t.current&&t.current.focus()}};var r}(r,t))),r}"undefined"==typeof window||!window.document||window.document.createElement;const Bl=Oe("span",{dflex:"center",position:"relative",zIndex:"$1",boxSizing:"border-box",overflow:"hidden",verticalAlign:"top",cursor:"auto",transition:"transform 250ms ease 0ms, box-shadow 0.25s ease 0s",".nextui-avatar-bg":{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:"$2",transition:"$avatar",size:"100%"},"&:hover .nextui-avatar-bg":{boxShadow:" inset 0 0 40px 0 rgb(0 0 0 / 14%)"},".nextui-avatar-img":{opacity:0,zIndex:"$3",display:"flex",bg:"$background",transition:"transform 250ms ease 0ms, opacity 200ms ease-in 0ms",width:"100%",height:"100%",objectFit:"cover"},'&[data-state="ready"] .nextui-avatar-img':{opacity:1},".nextui-avatar-icon":{display:"flex",position:"absolute",left:"50%",top:"50%",ta:"center",zIndex:"$2",transform:"translate(-50%, -50%)",whiteSpace:"nowrap",us:"none"},".nextui-avatar-text":{position:"absolute",zIndex:"$2",left:"50%",top:"50%",ta:"center",color:"$text",fontWeight:"$medium",transform:"translate(-50%, -50%) scale(0.65)",whiteSpace:"nowrap",us:"none"},"@motion":{transition:"none",".nextui-avatar-bg, .nextui-avatar-img":{transition:"none"}},variants:{color:{default:{".nextui-avatar-bg":{bg:"$accents2"}},primary:{".nextui-avatar-bg":{bg:"$primary"}},secondary:{".nextui-avatar-bg":{bg:"$secondary"}},success:{".nextui-avatar-bg":{bg:"$success"}},warning:{".nextui-avatar-bg":{bg:"$warning"}},error:{".nextui-avatar-bg":{bg:"$error"}},gradient:{".nextui-avatar-bg":{bg:"$gradient"}}},textColor:{default:{".nextui-avatar-text":{color:"$text"}},white:{".nextui-avatar-text":{color:"$white"}},primary:{".nextui-avatar-text":{color:"$primary"}},secondary:{".nextui-avatar-text":{color:"$secondary"}},success:{".nextui-avatar-text":{color:"$success"}},warning:{".nextui-avatar-text":{color:"$warning"}},error:{".nextui-avatar-text":{color:"$error"}}},size:{xs:{$$avatarXs:"$space$9",sizeMin:"$$avatarXs",".nextui-avatar-text":{fontSize:"$sm"}},sm:{$$avatarSm:"$space$11",sizeMin:"$$avatarSm",".nextui-avatar-text":{fontSize:"$md"}},md:{$$avatarMd:"$space$14",sizeMin:"$$avatarMd",".nextui-avatar-text":{fontSize:"$lg"}},lg:{$$avatarLg:"$space$16",sizeMin:"$$avatarLg",".nextui-avatar-text":{fontSize:"$xl"}},xl:{$$avatarXl:"$space$18",sizeMin:"$$avatarXl",".nextui-avatar-text":{fontSize:"$xl2"}}},borderWeight:{light:{".nextui-avatar-img":{borderWidth:"$light"}},normal:{".nextui-avatar-img":{borderWidth:"$normal"}},bold:{".nextui-avatar-img":{borderWidth:"$normal"}},extrabold:{".nextui-avatar-img":{borderWidth:"$normal"}},black:{".nextui-avatar-img":{borderWidth:"$normal"}}},bordered:{true:{"&:hover:not(.only-text-avatar) .nextui-avatar-bg":{opacity:"0.6"},".nextui-avatar-img":{borderStyle:"solid",borderColor:"$background"}}},stacked:{true:{ml:"-$5"}},pointer:{true:{cursor:"pointer"}},rounded:{true:{borderRadius:"$rounded",".nextui-avatar-img":{borderRadius:"$rounded"}}},squared:{true:{borderRadius:"$squared",".nextui-avatar-img":{borderRadius:"$squared"}}},zoomed:{true:{"&:hover .nextui-avatar-img":{transform:"scale(1.125)"}}}},compoundVariants:[{bordered:!0,borderWeight:"light",css:{padding:"calc($1/2)"}},{bordered:!0,borderWeight:"normal",css:{padding:"$1"}},{bordered:!0,borderWeight:"bold",css:{padding:"calc($2/1.5)"}},{bordered:!0,borderWeight:"extrabold",css:{padding:"$2"}},{bordered:!0,borderWeight:"black",css:{padding:"calc($3/1.5)"}},{rounded:!0,squared:!0,css:{borderRadius:"$squared",".nextui-avatar-img":{borderRadius:"$squared"}}}],defaultVariants:{size:"md",rounded:!0,color:"default",textColor:"default",borderWeight:"normal"}},tl,nl),zl=Bl,Hl=e=>(null==e?void 0:e.length)<=4?e:null==e?void 0:e.slice(0,3),Dl=m().forwardRef(((e,t)=>{const{as:r,src:o,css:n,text:i,icon:s,alt:a,className:l,...c}=e,d=Al(t),u=!o,[p,h]=(0,g.useState)(!1),m=(0,g.useRef)(null),{isFocusVisible:f,focusProps:b}=El();(0,g.useEffect)((()=>{var e;(null==m||null==(e=m.current)?void 0:e.complete)&&h(!0)}),[]);const $=(0,g.useMemo)((()=>!p&&o?"loading":"ready"),[o,p]);return(0,St.jsxs)(zl,{ref:d,as:r,...$n(c,b),className:wt({"only-text-avatar":u},l),"data-state":$,isFocusVisible:f,css:$n("button"===r?{appearance:"none",outline:"none",border:"none",cursor:"pointer"}:{},n),children:[(0,St.jsx)("span",{className:"nextui-avatar-bg"}),!u&&(0,St.jsx)("img",{ref:m,className:wt("nextui-avatar-img",`nextui-avatar--${$}`,{"nextui-avatar-ready":p}),src:o,alt:a,"data-state":$,onLoad:()=>h(!0)}),u&&!s&&i&&(0,St.jsx)("span",{className:"nextui-avatar-text",children:Hl(i)}),s&&(0,St.jsx)("span",{className:"nextui-avatar-icon",children:s})]})}));Dl.toString=()=>".nextui-avatar";const Ol=Dl,Kl=Oe("span",{fontSize:"$xs",display:"inline-flex",alignItems:"center",marginLeft:"$3",color:"$text"}),Fl=Oe("div",{dflex:"center",height:"auto",width:"max-content","@motion":{transition:"none"},[`& ${zl}`]:{marginLeft:"-$space$5",transition:"$default",".only-text-avatar":{boxShadow:"$xs"}},".only-text-avatar":{boxShadow:"$xs"},variants:{animated:{true:{[`& ${zl}:hover`]:{transform:"translate(-$space$5)"}}}},defaultVariants:{animated:!0}}),jl=Fl,_l=m().forwardRef(((e,t)=>{const{count:r,children:o,...n}=e,i=Al(t);return(0,St.jsxs)(jl,{ref:i,...n,children:[o,r&&(0,St.jsxs)(Kl,{className:"nextui-avatar-group-count",children:["+",r]})]})}));_l.toString=()=>".nextui-avatar-group";const Wl=_l;Ol.Group=Wl;const Vl=Ol;function Ul(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Gl(e,t){let r,{elementType:o="button",isDisabled:n,onPress:i,onPressStart:s,onPressEnd:a,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:u,href:p,target:h,rel:g,type:m="button"}=e;r="button"===o?{type:m,disabled:n}:{role:"button",tabIndex:n?void 0:0,href:"a"===o&&n?void 0:p,target:"a"===o?h:void 0,type:"input"===o?m:void 0,disabled:"input"===o?n:void 0,"aria-disabled":n&&"input"!==o?n:void 0,rel:"a"===o?g:void 0};let{pressProps:f,isPressed:b}=Mi({onPressStart:s,onPressEnd:a,onPressChange:l,onPress:i,isDisabled:n,preventFocusOnPress:c,ref:t}),{focusableProps:$}=Rl(e,t);d&&($.tabIndex=n?-1:$.tabIndex);let y=$n($,f,Sn(e,{labelable:!0}));return{isPressed:b,buttonProps:$n(r,y,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{u&&(u(e),console.warn("onClick is deprecated, please use onPress"))}})}}function Jl(e,t,r){const{isSelected:o}=t,{isPressed:n,buttonProps:i}=Gl({...e,onPress:bn(t.toggle,e.onPress)},r);return{isPressed:n,buttonProps:$n(i,{"aria-pressed":o})}}Ul({},"useButton",(()=>Gl)),Ul({},"useToggleButton",(()=>Jl));const Yl={isButtonGroup:!1,disabled:!1},Xl=m().createContext(Yl),ql=Oe("span",{dflex:"center",position:"absolute",left:"$$buttonPadding",right:"auto",top:"50%",transform:"translateY(-50%)",color:"inherit",zIndex:"$1","& svg":{background:"transparent"},variants:{isAuto:{true:{position:"relative",transform:"none",top:"0%"}},isRight:{true:{right:"$$buttonPadding",left:"auto"}},isSingle:{true:{position:"static",transform:"none"}},isGradientButtonBorder:{true:{}}},compoundVariants:[{isAuto:!0,isRight:!0,isSingle:!1,css:{order:2,ml:"calc($$buttonPadding / 2)",right:"0%",left:"0%"}},{isAuto:!0,isRight:!1,isSingle:!1,css:{order:0,mr:"calc($$buttonPadding / 2)",right:"0%",left:"0%"}},{isSingle:!0,isRight:!1,css:{ml:0}},{isSingle:!0,isRight:!0,css:{mr:0}},{isSingle:!0,isRight:!1,isGradientButtonBorder:!0,css:{mr:"calc($$buttonPadding / 2)"}}]}),Zl=({children:e,className:t,css:r,...o})=>(0,St.jsx)(ql,{className:wt("nextui-button-icon",{"nextui-button-icon-right":o.isRight,"nextui-button-icon-single":o.isSingle},t),css:{...r},...o,children:e});Zl.toString=()=>".nextui-button-icon";const Ql=vt(m().memo(Zl),{className:""}),ec=Oe("button",{$$buttonBorderRadius:"$radii$md",$$buttonPressedScale:.97,dflex:"center",appearance:"none",boxSizing:"border-box",fontWeight:"$medium",us:"none",lineHeight:"$sm",ta:"center",whiteSpace:"nowrap",transition:"$button",position:"relative",overflow:"hidden",border:"none",cursor:"pointer",pe:"auto",p:0,br:"$$buttonBorderRadius","@motion":{transition:"none"},".nextui-button-text":{dflex:"center",zIndex:"$2","p, pre, div":{margin:0}},[`& ${kt}`]:{zIndex:"$1",".nextui-drip-filler":{opacity:.25,fill:"$accents2"}},variants:{bordered:{true:{bg:"transparent",borderStyle:"solid",color:"$text"}},ghost:{true:{}},color:{default:{bg:"$primary",color:"$primarySolidContrast"},primary:{bg:"$primary",color:"$primarySolidContrast"},secondary:{bg:"$secondary",color:"$secondarySolidContrast"},success:{bg:"$success",color:"$successSolidContrast"},warning:{bg:"$warning",color:"$warningSolidContrast"},error:{bg:"$error",color:"$errorSolidContrast"},gradient:{bg:"$gradient",color:"$primarySolidContrast"}},size:{xs:{$$buttonPadding:"$space$3",$$buttonBorderRadius:"$radii$xs",$$buttonHeight:"$space$10",px:"$3",height:"$$buttonHeight",lh:"$space$10",width:"auto",minWidth:"$20",fontSize:"$xs"},sm:{$$buttonPadding:"$space$5",$$buttonBorderRadius:"$radii$sm",$$buttonHeight:"$space$12",px:"$5",height:"$$buttonHeight",lh:"$space$14",width:"auto",minWidth:"$36",fontSize:"$sm"},md:{$$buttonPadding:"$space$7",$$buttonBorderRadius:"$radii$md",$$buttonHeight:"$space$14",px:"$7",height:"$$buttonHeight",lh:"$space$14",width:"auto",minWidth:"$48",fontSize:"$sm"},lg:{$$buttonPadding:"$space$9",$$buttonBorderRadius:"$radii$base",$$buttonHeight:"$space$16",px:"$9",height:"$$buttonHeight",lh:"$space$15",width:"auto",minWidth:"$60",fontSize:"$md"},xl:{$$buttonPadding:"$space$10",$$buttonBorderRadius:"$radii$xl",$$buttonHeight:"$space$18",px:"$10",height:"$$buttonHeight",lh:"$space$17",width:"auto",minWidth:"$72",fontSize:"$lg"}},borderWeight:{light:{bw:"$light",$$buttonBorderWeight:"$borderWeights$light"},normal:{bw:"$normal",$$buttonBorderWeight:"$borderWeights$normal"},bold:{bw:"$bold",$$buttonBorderWeight:"$borderWeights$bold"},extrabold:{bw:"$extrabold",$$buttonBorderWeight:"$borderWeights$extrabold"},black:{bw:"$black",$$buttonBorderWeight:"$borderWeights$black"}},flat:{true:{color:"$text"}},light:{true:{bg:"transparent",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$accents2"}}}},shadow:{true:{bs:"$sm"}},animated:{false:{transition:"none"}},auto:{true:{width:"auto",minWidth:"min-content"}},rounded:{true:{$$buttonBorderRadius:"$radii$pill"}},isPressed:{true:{}},isHovered:{true:{}},isChildLess:{true:{p:0,width:"$$buttonHeight",height:"$$buttonHeight"}}},compoundVariants:[{isPressed:!0,animated:!0,css:{transform:"scale($$buttonPressedScale)"}},{auto:!0,isChildLess:!1,size:"xs",css:{px:"$5",minWidth:"min-content"}},{auto:!0,isChildLess:!1,size:"sm",css:{px:"$8",minWidth:"min-content"}},{auto:!0,isChildLess:!1,size:"md",css:{px:"$9",minWidth:"min-content"}},{auto:!0,isChildLess:!1,size:"lg",css:{px:"$10",minWidth:"min-content"}},{auto:!0,isChildLess:!1,size:"xl",css:{px:"$11",minWidth:"min-content"}},{shadow:!0,color:"default",css:{normalShadow:"$primaryShadow"}},{shadow:!0,color:"primary",css:{normalShadow:"$primaryShadow"}},{shadow:!0,color:"secondary",css:{normalShadow:"$secondaryShadow"}},{shadow:!0,color:"warning",css:{normalShadow:"$warningShadow"}},{shadow:!0,color:"success",css:{normalShadow:"$successShadow"}},{shadow:!0,color:"error",css:{normalShadow:"$errorShadow"}},{shadow:!0,color:"gradient",css:{normalShadow:"$primaryShadow"}},{light:!0,color:"default",css:{bg:"transparent",color:"$text",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$primaryLightActive"}}}},{light:!0,color:"primary",css:{bg:"transparent",color:"$primary",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$primaryLightActive"}}}},{light:!0,color:"secondary",css:{bg:"transparent",color:"$secondary",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$secondaryLightActive"}}}},{light:!0,color:"warning",css:{bg:"transparent",color:"$warning",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$warningLightActive"}}}},{light:!0,color:"success",css:{bg:"transparent",color:"$success",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$successLightActive"}}}},{light:!0,color:"error",css:{bg:"transparent",color:"$error",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$errorLightActive"}}}},{bordered:!0,color:"default",css:{bg:"transparent",borderColor:"$primary",color:"$primary",[`& ${kt}`]:{".nextui-drip-filler":{fill:"$primary"}}}},{bordered:!0,color:"primary",css:{bg:"transparent",borderColor:"$primary",color:"$primary",[`& ${kt}`]:{".nextui-drip-filler":{fill:"$primary"}}}},{bordered:!0,color:"secondary",css:{bg:"transparent",borderColor:"$secondary",color:"$secondary",[`& ${kt}`]:{".nextui-drip-filler":{fill:"$secondary"}}}},{bordered:!0,color:"success",css:{bg:"transparent",borderColor:"$success",color:"$success",[`& ${kt}`]:{".nextui-drip-filler":{fill:"$success"}}}},{bordered:!0,color:"warning",css:{bg:"transparent",borderColor:"$warning",color:"$warning",[`& ${kt}`]:{".nextui-drip-filler":{fill:"$warning"}}}},{bordered:!0,color:"error",css:{bg:"transparent",borderColor:"$error",color:"$error",[`& ${kt}`]:{".nextui-drip-filler":{fill:"$error"}}}},{bordered:!0,color:"gradient",css:{bg:"transparent",color:"$text",padding:"$$buttonBorderWeight",bgClip:"content-box, border-box",borderColor:"$primary",backgroundImage:"linear-gradient($background, $background), $gradient",border:"none",[`& ${kt}`]:{".nextui-drip-filler":{fill:"$secondary"}}}},{ghost:!0,isHovered:!0,color:"default",css:{bg:"$primary",color:"$primarySolidContrast"}},{ghost:!0,isHovered:!0,color:"primary",css:{bg:"$primary",color:"$primarySolidContrast"}},{ghost:!0,isHovered:!0,color:"secondary",css:{bg:"$secondary",color:"$secondarySolidContrast"}},{ghost:!0,isHovered:!0,color:"success",css:{bg:"$success",color:"$successSolidContrast"}},{ghost:!0,isHovered:!0,color:"warning",css:{bg:"$warning",color:"$warningSolidContrast"}},{ghost:!0,isHovered:!0,color:"error",css:{bg:"$error",color:"$errorSolidContrast"}},{ghost:!0,color:"gradient",isHovered:!0,css:{bg:"$gradient",color:"$white"}},{flat:!0,color:"default",css:{bg:"$primaryLight",color:"$primaryLightContrast",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$primary"}}}},{flat:!0,color:"primary",css:{bg:"$primaryLight",color:"$primaryLightContrast",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$primary"}}}},{flat:!0,color:"secondary",css:{bg:"$secondaryLight",color:"$secondaryLightContrast",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$secondary"}}}},{flat:!0,color:"success",css:{bg:"$successLight",color:"$successLightContrast",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$success"}}}},{flat:!0,color:"warning",css:{bg:"$warningLight",color:"$warningLightContrast",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$warning"}}}},{flat:!0,color:"error",css:{bg:"$errorLight",color:"$errorLightContrast",[`& ${kt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$error"}}}},{flat:!0,isHovered:!0,color:"default",css:{bg:"$primaryLightHover"}},{flat:!0,isHovered:!0,color:"primary",css:{bg:"$primaryLightHover"}},{flat:!0,isHovered:!0,color:"secondary",css:{bg:"$secondaryLightHover"}},{flat:!0,isHovered:!0,color:"success",css:{bg:"$successLightHover"}},{flat:!0,isHovered:!0,color:"warning",css:{bg:"$warningLightHover"}},{flat:!0,isHovered:!0,color:"error",css:{bg:"$errorLightHover"}},{flat:!0,isPressed:!0,color:"default",css:{bg:"$primaryLightActive"}},{flat:!0,isPressed:!0,color:"primary",css:{bg:"$primaryLightActive"}},{flat:!0,isPressed:!0,color:"secondary",css:{bg:"$secondaryLightActive"}},{flat:!0,isPressed:!0,color:"success",css:{bg:"$successLightActive"}},{flat:!0,isPressed:!0,color:"warning",css:{bg:"$warningLightActive"}},{flat:!0,isPressed:!0,color:"error",css:{bg:"$errorLightActive"}},{auto:!0,color:"gradient",bordered:!0,css:{".nextui-button-text":{px:"$$buttonPadding"},".nextui-button-icon":{ml:"$$buttonPadding"},".nextui-button-icon-right":{mr:"$$buttonPadding"},".nextui-button-text-left":{pl:0},".nextui-button-text-right":{pr:0}}},{rounded:!0,size:"xs",css:{br:"$pill"}},{rounded:!0,size:"sm",css:{br:"$pill"}},{rounded:!0,size:"md",css:{br:"$pill"}},{rounded:!0,size:"lg",css:{br:"$pill"}},{rounded:!0,size:"xl",css:{br:"$pill"}}],defaultVariants:{color:"default",borderWeight:"normal",animated:!0,size:"md"}},tl,nl),tc=ec,rc=m().forwardRef((({onClick:e,onPress:t,as:r,css:o,iconLeftCss:n,iconRightCss:i,...s},a)=>{const l=((e,t)=>{var r,o,n,i,s,a,l,c,d,u,p;return t.isButtonGroup?{...e,auto:!0,shadow:!1,bordered:null!=(r=t.bordered)?r:e.bordered,borderWeight:null!=(o=t.borderWeight)?o:e.borderWeight,ghost:null!=(n=t.ghost)?n:e.ghost,ripple:null!=(i=t.ripple)?i:e.ripple,flat:null!=(s=t.flat)?s:e.flat,animated:null!=(a=t.animated)?a:e.animated,rounded:null!=(l=t.rounded)?l:e.rounded,light:null!=(c=t.light)?c:e.light,size:null!=(d=t.size)?d:e.size,color:null!=(u=t.color)?u:e.color,disabled:null!=(p=t.disabled)?p:e.disabled}:e})(s,m().useContext(Xl)),c=(e=>{if(!e.disabled)return e.auto&&"gradient"===e.color&&(e.bordered||e.ghost)?{px:"$$buttonBorderWeight",py:"$$buttonBorderWeight"}:{};const t={bg:"$accents1",color:"$accents7",transform:"none",boxShadow:"none",pe:"none"};return e.bordered||e.flat||e.ghost||e.light?"gradient"===e.color&&(e.bordered||e.ghost)?{color:"$accents4",backgroundImage:"linear-gradient($background, $background), linear-gradient($accents2, $accents2)",transform:"none",boxShadow:"none",pe:"none",pl:"$$buttonBorderWeight",pr:"$$buttonBorderWeight"}:e.bordered||e.ghost||e.light?{...t,bg:"transparent",borderColor:"$accents4"}:e.flat?{...t,bg:"$accents1"}:{}:t})(l),{flat:d,children:u,disabled:p,animated:h,light:f,ripple:b,bordered:$,auto:y,borderWeight:v,icon:x,iconRight:w,ghost:S,autoFocus:C,className:k,...E}=l,P=e=>{h&&b&&T.current&&z(e)},T=Al(a),{buttonProps:I,isPressed:N}=Gl({...s,onClick:t=>{P(t),null==e||e(t)},isDisabled:p,elementType:r,onPress:r=>{"keyboard"!==r.pointerType&&"virtual"!==r.pointerType||(P(r),null==e||e(r)),null==t||t(r)}},T),{hoverProps:M,isHovered:R}=gs({isDisabled:p}),{isFocused:A,isFocusVisible:L,focusProps:B}=El({autoFocus:C}),{onClick:z,...H}=yt(!1,T),D=x||w,O=0===m().Children.count(u),K=Boolean(w),F=(0,g.useMemo)((()=>N?"pressed":R?"hovered":p?"disabled":"ready"),[p,R,N]),j=(0,g.useMemo)((()=>K?i:n),[K,i,n]);return(0,St.jsxs)(tc,{as:r,ref:T,borderWeight:v,auto:y,flat:d,light:f,ghost:S,bordered:$||S,"data-state":F,animated:h,isChildLess:O,isPressed:N,isHovered:R||S&&A,isFocusVisible:L&&!p,className:wt("nextui-button",`nextui-button--${F}`,k),css:{...o,...c},...$n(I,B,M,E),children:[0===m().Children.count(u)?(0,St.jsx)(Ql,{isSingle:!0,isAuto:y,isRight:K,css:j,isGradientButtonBorder:"gradient"===E.color&&($||S),children:D}):D?(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)(Ql,{isSingle:!1,isAuto:y,isRight:K,css:j,isGradientButtonBorder:"gradient"===E.color&&($||S),children:D}),(0,St.jsx)("div",{className:wt("nextui-button-text",{"nextui-button-text-right":K,"nextui-button-text-left":!K}),children:u})]}):(0,St.jsx)("span",{className:"nextui-button-text",children:u}),(0,St.jsx)(Pt,{color:"white",...H})]})}));rc.toString=()=>".nextui-button";const oc=vt(rc,{ghost:!1,bordered:!1,ripple:!0,animated:!0,disabled:!1,autoFocus:!1,auto:!1,className:"",type:"button"}),nc=Oe("div",{display:"inline-flex",margin:"$3",backgroundColor:"transparent",height:"min-content",[`& ${tc}`]:{".nextui-button-text":{top:0}},variants:{vertical:{true:{fd:"column",[`& ${tc}`]:{"&:not(:first-child)":{btlr:0,btrr:0},"&:not(:last-child)":{bblr:0,bbrr:0}}},false:{fd:"row",[`& ${tc}`]:{"&:not(:first-child)":{btlr:0,bblr:0},"&:not(:last-child)":{btrr:0,bbrr:0}}}},size:{xs:{br:"$xs"},sm:{br:"$sm"},md:{br:"$md"},lg:{br:"$base"},xl:{br:"$xl"}},rounded:{true:{br:"$pill"}},bordered:{true:{bg:"transparent"}},gradient:{true:{pl:0}}},defaultVariants:{vertical:!1},compoundVariants:[{bordered:!0,vertical:!0,css:{[`& ${tc}`]:{"&:not(:last-child)":{borderBottom:"none",paddingBottom:"0"}}}},{bordered:!0,vertical:!1,css:{[`& ${tc}`]:{"&:not(:first-child)":{borderLeft:"none"}}}},{bordered:!0,vertical:!1,gradient:!0,css:{[`& ${tc}`]:{"&:not(:last-child)&:not(:first-child)":{pl:0},"&:last-child":{pl:0}}}}]}),ic=nc,sc=e=>{const{disabled:t,size:r,color:o,bordered:n,ghost:i,light:s,flat:a,shadow:l,auto:c,animated:d,rounded:u,ripple:p,borderWeight:h,children:m,...f}=e,b=(0,g.useMemo)((()=>({disabled:t,size:r,color:o,bordered:n,light:s,ghost:i,flat:a,shadow:l,auto:c,borderWeight:h,animated:d,rounded:u,ripple:p,isButtonGroup:!0})),[t,d,r,p,o,n,s,i,a,h]);return(0,St.jsx)(Xl.Provider,{value:b,children:(0,St.jsx)(ic,{size:r,bordered:n||i,gradient:"gradient"===e.color,...f,children:m})})};sc.toString=()=>".nextui-button-group";const ac=vt(m().memo(sc),{borderWeight:"normal",size:"md",color:"default"});oc.Group=ac;const lc=oc,cc=Oe("div",{d:"flex",w:"100%",h:"auto",flex:"1 1 auto",fd:"column",jc:"inherit",ai:"inherit",ac:"inherit",py:"$lg",px:"$sm",oy:"auto",position:"relative",ta:"left"}),dc=Oe("div",{$$cardColor:"$colors$backgroundContrast",$$cardTextColor:"$colors$text",m:0,p:0,br:"$lg",bg:"$$cardColor",color:"$$cardTextColor",position:"relative",display:"flex",overflow:"hidden",fd:"column",width:"100%",height:"auto",boxSizing:"border-box","@motion":{transition:"none"},".nextui-image":{width:"100%"},[`& ${kt}`]:{zIndex:"$1",".nextui-drip-filler":{opacity:.25,fill:"$accents6"}},variants:{variant:{flat:{bg:"$accents0"},shadow:{dropShadow:"$lg"},bordered:{borderStyle:"solid",borderColor:"$border"}},borderWeight:{light:{bw:"$light"},normal:{bw:"$normal"},bold:{bw:"$bold"},extrabold:{bw:"$extrabold"},black:{bw:"$black"}},disableAnimation:{true:{transition:"none"},false:{transition:"$card"}},isPressable:{true:{cursor:"pointer",us:"none",WebkitTapHighlightColor:"transparent"}},isPressed:{true:{}},isHovered:{true:{dropShadow:"$lg"}}},compoundVariants:[{isPressed:!0,disableAnimation:!1,css:{transform:"scale(0.97)"}},{isHovered:!0,disableAnimation:!1,css:{transform:"translateY(-2px)"}},{isHovered:!0,variant:"shadow",css:{dropShadow:"$xl"}}]},rl,tl),uc=Oe("div",{w:"100%",display:"flex",flexShrink:0,zIndex:"$1",jc:"flex-start",ai:"center",overflow:"hidden",color:"inherit",p:"$sm"}),pc=Oe("div",{w:"100%",h:"auto",p:"$sm",d:"flex",ai:"center",overflow:"hidden",color:"inherit",bblr:"$lg",bbrr:"$lg",variants:{isBlurred:{true:{bf:"saturate(180%) blur(10px)",bg:"$$cardColor"}}}}),hc=m().forwardRef((({...e},t)=>{const{as:r,css:o,children:n,...i}=e,{cardRef:s,variant:a,isFocusVisible:l,isPressable:c,isPressed:d,disableAnimation:u,disableRipple:p,borderWeight:h,isHovered:g,pressProps:m,focusProps:f,hoverProps:b,dripBindings:$}=(e=>{const{ref:t,disableAnimation:r=!1,disableRipple:o=!1,variant:n="shadow",isHoverable:i=!1,borderWeight:s="light",isPressable:a=!1,onClick:l,onPress:c,autoFocus:d,...u}=e,p=Al(t),{onClick:h,...g}=yt(!1,p),m=e=>{r||o||!p.current||h(e)},{isPressed:f,pressProps:b}=Mi({isDisabled:!a,onPress:e=>{"keyboard"!==e.pointerType&&"virtual"!==e.pointerType||(m(e),null==l||l(e)),null==c||c(e)},...u}),{hoverProps:$,isHovered:y}=gs({isDisabled:!i,...u}),{isFocusVisible:v,focusProps:x}=El({autoFocus:d});return b.onClick=e=>{a&&(m(e),null==l||l(e))},{cardRef:p,variant:n,borderWeight:s,isPressable:a,isHovered:y,isPressed:f,disableAnimation:r,disableRipple:o,pressProps:b,hoverProps:$,dripBindings:g,focusProps:x,onDripClickHandler:h,isFocusVisible:v,...u}})({...i,ref:t});return(0,St.jsxs)(dc,{ref:s,as:r,css:o,variant:a,role:c?"button":"section",borderWeight:h,disableAnimation:u,isPressable:c,isPressed:d,isHovered:g,tabIndex:c?0:-1,isFocusVisible:l,...c?$n(m,f,b,i):$n(f,b,i),children:[c&&!u&&!p&&(0,St.jsx)(Pt,{...$}),n]})}));hc.toString=()=>".nextui-card";const gc=hc,mc=je({"0%":{backgroundPosition:"200% 0"},to:{backgroundPosition:"-200% 0"}}),fc=Oe("div",{opacity:0,margin:"0 auto",position:"relative",overflow:"hidden",maxWidth:"100%",transition:"transform 250ms ease 0ms, opacity 200ms ease-in 0ms","@motion":{transition:"none"},variants:{ready:{true:{opacity:1},false:{opacity:0}}}}),bc=Oe("img",{size:"100%",display:"block"}),$c=Oe("div",{position:"absolute",top:0,left:0,right:0,bottom:0,size:"100%",borderRadius:"inherit",backgroundImage:"linear-gradient(270deg, $colors$accents1, $colors$accents2, $colors$accents2, $colors$accents1)",backgroundSize:"400% 100%",animation:`${mc} 5s ease-in-out infinite`,transition:"opacity 300ms ease-out"}),yc=m().memo((({opacity:e,css:t,className:r,...o})=>(0,St.jsx)($c,{css:{opacity:e,...t},className:wt("nextui-image-skeleton",r),...o})));yc.toString=()=>".nextui-image-skeleton";const vc=vt(yc,{opacity:.5,className:""}),xc=m().forwardRef(((e,t)=>{const{src:r,width:o,height:n,showSkeleton:i=!0,className:s,maxDelay:a=3e3,autoResize:l=!1,objectFit:c="scale-down",containerCss:d,css:u,...p}=e,h=Al(t),[m,b]=(0,g.useState)(!0),[v,x]=(0,g.useState)(i),{w,h:S}=(0,g.useMemo)((()=>({w:o?"number"==typeof o?`${o}px`:o:"auto",h:n?"number"==typeof n?`${n}px`:n:"auto"})),[o,n]),[C,k,E]=f(S),[P,T]=$(h),I=i&&!!o&&!!n;(0,g.useEffect)((()=>{h.current&&h.current.complete&&(b(!1),x(!1))})),(0,g.useEffect)((()=>{const e=setTimeout((()=>{I&&x(!1),clearTimeout(e)}),a);return()=>clearTimeout(e)}),[m]),(0,g.useEffect)((()=>{if(!l)return;const e=0===P.width,t="auto"===E.current;!e&&o&&n&&(P.width<o?!t&&k("auto"):t&&k(S))}),[P,o]),y((()=>{l&&T()}));const N=(0,g.useMemo)((()=>m?"loading":"ready"),[m]);return(0,St.jsxs)(fc,{className:wt("nextui-image-container",`nextui-image--${N}`,s),"data-state":N,ready:!m||v,css:{width:w,height:C,...d},children:[v&&(0,St.jsx)(vc,{opacity:1}),(0,St.jsx)(bc,{ref:h,className:"nextui-image",width:o,height:n,onLoad:()=>{b(!1)},src:r,"data-state":N,alt:e.alt||"",css:{objectFit:c,...u},...p})]})}));xc.toString=()=>".nextui-image";const wc=m().memo(xc),Sc=e=>`calc(${15.25*e}pt + 1px * ${e-1})`,Cc=Oe("div",{width:"100%",maxWidth:"100%",position:"relative",variants:{color:{default:{bg:"$border"},primary:{bg:"$primary"},secondary:{bg:"$secondary"},success:{bg:"$success"},warning:{bg:"$warning"},error:{bg:"$error"}}},defaultVariants:{color:"default"}}),kc=Oe("span",{position:"absolute",left:"50%",top:"50%",minHeight:"100%",display:"inline-flex",jc:"center",ai:"center",transform:"translate(-50%, -50%)",padding:"0 $lg",fontSize:"$base",fontWeight:"bold",textTransform:"capitalize",backgroundColor:"$background",zIndex:"$1",variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}}}}),Ec=({height:e,x:t,y:r,align:o,children:n,textColor:i,css:s,...a})=>{const l=(0,g.useMemo)((()=>o&&"center"!==o?"left"===o||"start"===o?{transform:"translateY(-50%)",left:"7%"}:{transform:"translateY(-50%)",left:"auto",right:"7%"}:""),[o]),c=r?Sc(r/2):0,d=t?Sc(t/2):0;return(0,St.jsx)(Cc,{role:"separator",css:{margin:`${c} ${d}`,height:`calc(${e} * 1px)`,...s},...a,children:n&&(0,St.jsx)(kc,{css:{...l},color:i,className:"nextui-divider-text",children:n})})};Ec.toString=()=>".nextui-divider";const Pc=vt(m().memo(Ec),{x:0,y:0,height:1,align:"center"});gc.Header=uc,gc.Body=cc,gc.Footer=pc,gc.Image=wc,gc.Divider=Pc;const Tc=gc;function Ic(e={}){let{isReadOnly:t}=e,[r,o]=nn(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:r,setSelected:function(e){t||o(e)},toggle:function(){t||o(!r)}}}function Nc(e,t,r){let{isDisabled:o=!1,isRequired:n,isReadOnly:i,value:s,name:a,children:l,"aria-label":c,"aria-labelledby":d,validationState:u="valid"}=e;null!=l||null!=c||null!=d||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:p}=Mi({isDisabled:o}),{focusableProps:h}=Rl(e,r),g=$n(p,h);return{inputProps:$n(Sn(e,{labelable:!0}),{"aria-invalid":"invalid"===u||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,"aria-required":n||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:o,value:s,name:a,type:"checkbox",...g})}}function Mc(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Rc(e){let{id:t,label:r,"aria-labelledby":o,"aria-label":n,labelElementType:i="label"}=e;t=gn(t);let s=gn(),a={};return r?(o=o?`${o} ${s}`:s,a={id:s,htmlFor:"label"===i?t:void 0}):o||n||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:a,fieldProps:Bn({id:t,"aria-label":n,"aria-labelledby":o})}}function Ac(e){let{description:t,errorMessage:r,validationState:o}=e,{labelProps:n,fieldProps:i}=Rc(e),s=fn([Boolean(t),Boolean(r),o]),a=fn([Boolean(t),Boolean(r),o]);return i=$n(i,{"aria-describedby":[s,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:n,fieldProps:i,descriptionProps:{id:s},errorMessageProps:{id:a}}}function Lc(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Bc(e,t,r){let{inputProps:o}=Nc(e,t,r),{isSelected:n}=t,{isIndeterminate:i}=e;return(0,g.useEffect)((()=>{r.current&&(r.current.indeterminate=i)})),{inputProps:{...o,checked:n,"aria-checked":i?"mixed":n}}}Object.defineProperty({},"useToggleState",{get:()=>Ic,set:void 0,enumerable:!0,configurable:!0}),Object.defineProperty({},"useToggle",{get:()=>Nc,set:void 0,enumerable:!0,configurable:!0}),Mc({},"useField",(()=>Ac)),Mc({},"useLabel",(()=>Rc)),Lc({},"useCheckbox",(()=>Bc)),Lc({},"useCheckboxGroup",(()=>Hc));const zc=new WeakMap;function Hc(e,t){let{isDisabled:r,name:o}=e,{labelProps:n,fieldProps:i}=Rc({...e,labelElementType:"span"}),s=Sn(e,{labelable:!0});return zc.set(t,o),{groupProps:$n(s,{role:"group","aria-disabled":r||void 0,...i}),labelProps:n}}function Dc(e,t,r){const o=Ic({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(r){r?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(r)}});let{inputProps:n}=Bc({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||zc.get(t)},o,r);return{inputProps:n}}function Oc(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,n=g.createContext(void 0);return n.displayName=o,[n.Provider,function e(){const o=g.useContext(n);if(!o&&t){const t=new Error(r);throw t.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(t,e),t}return o},n]}Lc({},"useCheckboxGroupItem",(()=>Dc));const[Kc,Fc]=Oc({name:"CheckboxGroupContext",strict:!1}),jc=Oe("label",{d:"inline-flex",jc:"flex-start",ai:"center",position:"relative",w:"auto",cursor:"pointer",zIndex:"$1",opacity:1,transition:"opacity 0.25s ease",$$checkboxBorderColor:"$colors$border","@motion":{transition:"none"},variants:{size:{xs:{$$checkboxSize:"$space$7"},sm:{$$checkboxSize:"$space$8"},md:{$$checkboxSize:"$space$9"},lg:{$$checkboxSize:"$space$10"},xl:{$$checkboxSize:"$space$11"}},isDisabled:{true:{opacity:.75,cursor:"not-allowed"}},disableAnimation:{true:{transition:"none"}}},defaultVariants:{size:"md"}}),_c=Oe("div",{content:"",background:"transparent",position:"absolute",width:"8px",height:"1px",br:"5px",zIndex:"$1",bottom:"0px","&:after":{content:"",position:"absolute",left:"0px",width:"0%",height:"2px",background:"$white",br:"5px 0px 0px 5px"},"@motion":{"&:after":{transition:"none"}},variants:{isIndeterminate:{true:{display:"none"}},isChecked:{true:{"&:after":{width:"100%",transition:"width 0.25s ease 0.1s"}}},disableAnimation:{true:{"&:after":{transition:"none"}}}},compoundVariants:[{isChecked:!0,disableAnimation:!0,css:{"&:after":{transition:"none"}}}]}),Wc=Oe("div",{content:"",position:"absolute",h:"13px",br:"5px",bottom:"0",right:"0",zIndex:"$1",background:"transparent",width:"2px","&:after":{content:"",position:"absolute",width:"2px",height:"0%",background:"$white",left:"0px",bottom:"0px",br:"5px 5px 0px 0px"},"@motion":{"&:after":{transition:"none"}},variants:{isIndeterminate:{true:{display:"none"}},isChecked:{true:{"&:after":{height:"100%",transition:"height 0.2s ease 0.3s"}}},disableAnimation:{true:{"&:after":{transition:"none"}}}},compoundVariants:[{isChecked:!0,disableAnimation:!0,css:{"&:after":{transition:"none"}}}]}),Vc=Oe("i",{size:"$$checkboxSize",dflex:"center",br:"inherit",opacity:0,zIndex:"$2",transition:"transform 0.35s ease","&:after":{content:"",opacity:0,position:"relative",width:"10px",height:"2px",br:"1px",background:"$white",display:"block"},"@motion":{transition:"none","&:after":{transition:"none"}},variants:{isIndeterminate:{true:{opacity:1,transform:"rotate(0deg)",width:"auto",height:"auto",margin:"0px","&:after":{opacity:1}},false:{width:"8px",height:"14px",display:"block",position:"relative",marginTop:"-4px"}},size:{xs:{marginTop:"-2px",transform:"rotate(45deg) scale(0.5)"},sm:{marginTop:"-2px",transform:"rotate(45deg) scale(0.5)"},md:{transform:"rotate(45deg) scale(0.8)"},lg:{transform:"rotate(45deg)"},xl:{transform:"rotate(45deg)"}},isChecked:{true:{opacity:1}},disableAnimation:{true:{transition:"none","&:after":{transition:"none"}}}},compoundVariants:[{isIndeterminate:!0,size:"xs",css:{scale:"0.5"}},{isIndeterminate:!0,size:"sm",css:{scale:"0.5"}},{isIndeterminate:!0,size:"md",css:{scale:"0.8"}},{isIndeterminate:!0,size:"lg",css:{transform:"none"}},{isIndeterminate:!0,size:"lg",css:{transform:"none"}}]}),Uc=Oe("div",{$$checkboxMaskTransition:"transform 0.25s ease 0s, opacity 0.25s ease 0s, background 0.25s ease 0s, border-color 0.25s ease 0s",size:"100%",position:"absolute",pe:"none",boxSizing:"border-box",dflex:"center",zIndex:"-$1",br:"inherit",color:"$$checkboxBorderColor","&:before":{content:"",position:"absolute",top:"0px",left:"0px",size:"100%",br:"inherit",transition:"$$checkboxMaskTransition",zIndex:"-$1",border:"$borderWeights$normal solid currentColor",boxSizing:"border-box"},"&:after":{content:"",position:"absolute",top:"0px",left:"0px",size:"100%",bg:"$$checkboxColor",scale:.5,br:"inherit",opacity:0,transition:"$$checkboxMaskTransition",zIndex:"-$1"},"@motion":{"&:before":{transition:"none"},"&:after":{transition:"none"}},variants:{isChecked:{true:{"&:before":{opacity:0,scale:1.2},"&:after":{opacity:1,scale:1}}},isIndeterminate:{true:{"&:before":{opacity:0,scale:1.2},"&:after":{opacity:1,scale:1}}},disableAnimation:{true:{"&:before":{transition:"none"},"&:after":{transition:"none"}}}}}),Gc=Oe("span",{position:"relative",dflex:"center",color:"$text",opacity:1,pl:"calc($$checkboxSize * 0.57)",ln:"$$checkboxSize",fontSize:"$$checkboxSize",us:"none",transition:"opacity 0.25s ease 0s","@motion":{transition:"none","&:before":{transition:"none"}},variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}},lineThrough:{true:{"&:before":{content:"",position:"absolute",width:"0px",height:"2px",background:"$text",transition:"width 0.25s ease 0s"}}},isChecked:{true:{"&:before":{opacity:.8}}},isDisabled:{true:{color:"$accents5"}},disableAnimation:{true:{transition:"none","&:before":{transition:"none"}}}},compoundVariants:[{lineThrough:!0,isChecked:!0,css:{opacity:.6,"&:before":{w:"calc(100% - 10px)"}}}]}),Jc=Oe("div",{br:"$squared",position:"relative",sizeMin:"$$checkboxSize",transition:"box-shadow 0.25s ease",zIndex:"$1",".nextui-checkbox-input":{position:"absolute",width:"100%",height:"100%",top:"0px",left:"0px",margin:"0px",padding:"0px",opacity:0,zIndex:"$1",cursor:"pointer","&:disabled":{cursor:"not-allowed"}},"@motion":{transition:"none"},variants:{color:{default:{$$checkboxColor:"$colors$primary",$$checkboxColorHover:"$colors$primarySolidHover"},primary:{$$checkboxColor:"$colors$primary",$$checkboxColorHover:"$colors$primarySolidHover"},secondary:{$$checkboxColor:"$colors$secondary",$$checkboxColorHover:"$colors$secondarySolidHover"},success:{$$checkboxColor:"$colors$success",$$checkboxColorHover:"$colors$successSolidHover"},warning:{$$checkboxColor:"$colors$warning",$$checkboxColorHover:"$colors$warningSolidHover"},error:{$$checkboxColor:"$colors$error",$$checkboxColorHover:"$colors$errorSolidHover"},gradient:{$$checkboxColor:"$colors$gradient",$$checkboxColorHover:"$colors$gradient"}},isRounded:{true:{br:"$pill"}},isDisabled:{true:{opacity:.4,cursor:"not-allowed"}},disableAnimation:{true:{transition:"none"}},isHovered:{true:{[`& ${Uc}:before`]:{bg:"$$checkboxBorderColor",border:"2px solid transparent"},[`& ${Uc}:after`]:{bg:"$$checkboxColorHover"}}}},defaultVariants:{color:"default"}},tl),Yc=Oe("div",{display:"flex",flexDirection:"column","& .nextui-checkbox-group-label":{d:"block",fontWeight:"$normal",fontSize:"calc($$checkboxSize * 0.8)",color:"$accents7",mb:"$3"},variants:{size:{xs:{$$checkboxSize:"$space$7"},sm:{$$checkboxSize:"$space$8"},md:{$$checkboxSize:"$space$9"},lg:{$$checkboxSize:"$space$10"},xl:{$$checkboxSize:"$space$11"}},isDisabled:{true:{"& .nextui-checkbox-group-label":{color:"$accents5"}}}}}),Xc=Oe("div",{display:"flex",flexDirection:"column",variants:{isRow:{true:{flexDirection:"row",mt:0,[`& ${jc}`]:{mr:"$$checkboxSize"}},false:{mr:0,flexDirection:"column",[`& ${jc}:not(:first-child)`]:{mt:"$$checkboxSize"}}}},defaultVariants:{isRow:!1}}),qc=m().forwardRef(((e,t)=>{const{className:r,as:o,css:n,children:i,label:s,...a}=e,{size:l,color:c,labelColor:d,isRounded:u,lineThrough:p,disableAnimation:h,isIndeterminate:m,inputRef:f,inputProps:b}=(e=>{var t,r,o;const n=Fc(),{size:i=(null!=(t=null==n?void 0:n.size)?t:"md"),color:s=(null!=(r=null==n?void 0:n.color)?r:"default"),labelColor:a=(null!=(o=null==n?void 0:n.labelColor)?o:"default"),lineThrough:l,isRounded:c=!1,disableAnimation:d=!1,isIndeterminate:u=!1,...p}=e,h=(0,g.useRef)(null),m=(0,g.useMemo)((()=>{var e,t;return{...p,isIndeterminate:u,value:null!=(e=p.value)?e:"",isRequired:null!=(t=p.isRequired)&&t}}),[u,p]),{inputProps:f}=n?Dc({...m,validationState:p.validationState},n.groupState,h):Bc(m,Ic(m),h);return{size:i,color:s,labelColor:a,isRounded:c,lineThrough:l,disableAnimation:d,isIndeterminate:u,inputRef:h,inputProps:f}})({...a,children:null!=i?i:s}),$=Ll(t,f),{hoverProps:y,isHovered:v}=gs({isDisabled:b.disabled}),{pressProps:x}=Mi({isDisabled:b.disabled}),{focusProps:w,isFocusVisible:S}=El({autoFocus:b.autoFocus}),C=(0,g.useMemo)((()=>v?"hovered":m&&b.checked?"mixed":b.checked?"checked":"uncheked"),[v,m,b.checked]);return(0,St.jsxs)(jc,{ref:$,...$n(y,x),className:wt("nextui-checkbox-label",`nextui-checkbox--${C}`,r),as:o,css:n,size:l,isDisabled:b.disabled,disableAnimation:h,children:[(0,St.jsxs)(Jc,{className:"nextui-checkbox-container",color:c,isRounded:u,isHovered:v,isDisabled:b.disabled,isFocusVisible:S,disableAnimation:h,...w,children:[(0,St.jsx)(Is,{children:(0,St.jsx)("input",{ref:f,className:"nextui-checkbox-input",...$n(b,w)})}),(0,St.jsx)(Uc,{className:"nextui-checkbox-mask",isChecked:b.checked,isIndeterminate:m,disableAnimation:h,children:(0,St.jsxs)(Vc,{className:"nextui-icon-check",size:l,isChecked:b.checked,isIndeterminate:m,disableAnimation:h,children:[(0,St.jsx)(_c,{className:"nextui-icon-check-line1",isChecked:b.checked,isIndeterminate:m,disableAnimation:h}),(0,St.jsx)(Wc,{className:"nextui-icon-check-line2",isChecked:b.checked,isIndeterminate:m,disableAnimation:h})]})})]}),(i||s)&&(0,St.jsx)(Gc,{className:"nextui-checkbox-text",color:d,lineThrough:p,isChecked:b.checked,isDisabled:b.disabled,disableAnimation:h,children:i||s})]})}));qc.toString=()=>".nextui-checkbox";const Zc=qc;function Qc(e={}){let[t,r]=nn(e.value,e.defaultValue||[],e.onChange);return{value:t,setValue(t){e.isReadOnly||e.isDisabled||r(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected:e=>t.includes(e),addValue(o){e.isReadOnly||e.isDisabled||t.includes(o)||r(t.concat(o))},removeValue(o){e.isReadOnly||e.isDisabled||t.includes(o)&&r(t.filter((e=>e!==o)))},toggleValue(o){e.isReadOnly||e.isDisabled||(t.includes(o)?r(t.filter((e=>e!==o))):r(t.concat(o)))}}}Object.defineProperty({},"useCheckboxGroupState",{get:()=>Qc,set:void 0,enumerable:!0,configurable:!0});const ed=m().forwardRef(((e,t)=>{const{children:r,className:o,as:n,label:i,...s}=e,{css:a,...l}=((e={})=>{const{size:t="md",color:r="default",labelColor:o="default",orientation:n="vertical",css:i,...s}=e,a=Qc(s),{labelProps:l,groupProps:c}=Hc(s,a);return{css:i,size:t,orientation:n,color:r,labelColor:o,groupState:a,labelProps:l,groupProps:c}})({...s,label:i}),c=Al(t);return(0,St.jsxs)(Yc,{ref:c,...l.groupProps,className:wt("nextui-checkbox-group",o),size:l.size,isDisabled:l.groupState.isDisabled,as:n,css:a,children:[i&&(0,St.jsx)("label",{className:"nextui-checkbox-group-label",...l.labelProps,children:i}),(0,St.jsx)(Xc,{className:"nextui-checkbox-group-items",role:"presentation",isRow:"horizontal"===l.orientation,children:(0,St.jsx)(Kc,{value:l,children:r})})]})}));ed.toString=()=>".nextui-checkbox-group";const td=ed;Zc.Group=td;const rd=Zc,od=Oe("code",{}),nd=Oe("pre",{width:"initial",mw:"100"}),id=({block:e,children:t,...r})=>e?(0,St.jsx)(nd,{...r,children:(0,St.jsx)(od,{children:t})}):(0,St.jsx)(od,{...r,children:t});id.toString=()=>".nextui-code";const sd=vt(m().memo(id),{block:!1}),ad=Oe("div",{float:"left",boxSizing:"border-box",pl:"calc($$rowGap / 2)",pr:"calc($$rowGap / 2)"}),ld=ad,cd=({children:e,span:t,offset:r,css:o,...n})=>(0,St.jsx)(ld,{css:{width:100/12*t+"%",marginLeft:100/12*r+"%",...o},...n,children:e});cd.toString=()=>".nextui-column";const dd=vt(m().memo(cd),{span:12,offset:0}),ud=Oe("div",{transition:"$default",".nextui-collapse-title-content":{w:"100%","h1,h2,h3,h4,h5,h6,p,span,b":{margin:0}},".nextui-collapse-title-container":{d:"flex",jc:"space-between",ai:"center"},".nextui-collapse-title":{color:"$foreground"},".nextui-collapse-subtitle":{color:"$accents7",margin:0,"*":{margin:0}},".nextui-collapse-title-content-left":{mr:"$sm"},".nextui-collapse-title-content-left, .nextui-collapse-title-content-right":{d:"flex",ai:"center"},"@motion":{transition:"none",".nextui-collapse-title-content-right ":{svg:{transition:"none"}}},variants:{shadow:{true:{border:"none",boxShadow:"$md",br:"$lg",p:"0 $lg",bg:"$backgroundContrast"}},borderWeight:{light:{$$collapseBorderWidth:"$borderWeights$light"},normal:{$$collapseBorderWidth:"$borderWeights$normal"},bold:{$$collapseBorderWidth:"$borderWeights$bold"},extrabold:{$$collapseBorderWidth:"$borderWeights$extrabold"},black:{$$collapseBorderWidth:"$borderWeights$black"}},divider:{true:{borderTop:"$$collapseBorderWidth solid $border",borderBottom:"$$collapseBorderWidth solid $border"}},bordered:{true:{br:"$lg",p:"0 $lg",border:"$$collapseBorderWidth solid $border"}},animated:{true:{".nextui-collapse-title-content-right ":{svg:{transition:"transform 200ms ease"}}},false:{transition:"none"}},visible:{true:{".nextui-collapse-title-content-right ":{svg:{transform:"rotateZ(-90deg)"}}},false:{".nextui-collapse-title-content-right":{svg:{transform:"rotateZ(0deg)"}}}}},defaultVariants:{borderWeight:"light"}},el),pd=Oe("div",{w:"100%",d:"block",ta:"left",bg:"transparent",border:"none",cursor:"pointer",outline:"none",padding:"$lg 0",variants:{disabled:{true:{cursor:"not-allowed",".nextui-collapse-title, .nextui-collapse-subtitle":{opacity:.5}}}}},tl),hd=Oe("div",{fontSize:"$base",lineHeight:"$lg",pb:"$lg","*:first-child":{mt:0},"*:last-child":{mb:0}}),gd=Oe("svg",{path:{stroke:"$accents7"}}),md=Oe("div",{width:"auto",padding:"0 $sm","div + div":{borderTop:"none"},[`& ${ud}:first-child`]:{borderTop:"none"},[`& ${ud}:last-child`]:{borderBottom:"none"},variants:{borderWeight:{light:{$$collapseGroupBorderWidth:"$borderWeights$light"},normal:{$$collapseGroupBorderWidth:"$borderWeights$normal"},bold:{$$collapseGroupBorderWidth:"$borderWeights$bold"},extrabold:{$$collapseGroupBorderWidth:"$borderWeights$extrabold"},black:{$$collapseGroupBorderWidth:"$borderWeights$black"}},shadow:{true:{br:"$lg",border:"none",boxShadow:"$md",p:"0 $lg",bg:"$backgroundContrast"}},bordered:{true:{br:"$lg",p:"0 $lg",border:"$$collapseGroupBorderWidth solid $border"}},splitted:{true:{[`& ${ud}`]:{br:"$lg",border:"none",bg:"$backgroundContrast",boxShadow:"$md",p:"0 $lg",margin:"$md 0"}}}},defaultVariants:{borderWeight:"light",shadow:!1,bordered:!1,splitted:!1}}),fd=({...e})=>(0,St.jsx)(gd,{role:"presentation",focusable:"false",className:"nextui-collapse-icon",width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,St.jsx)("path",{d:"M15.5 19l-7-7 7-7",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})});fd.toString=()=>".nextui-collapse-icon";const bd=m().memo(fd),$d=Oe("div",{p:0,m:0,h:0,opacity:0,overflow:"hidden",variants:{expanded:{true:{opacity:1}}}}),yd=vt((({isExpanded:e,delay:t,animated:r,css:o,children:n})=>{const[i,s]=(0,g.useState)(e?"auto":"0"),[a,l]=(0,g.useState)(e),c=(0,g.useRef)(null),d=(0,g.useRef)(),u=(0,g.useRef)(),p=(0,g.useRef)(),[h,m]=$(c);return(0,g.useEffect)((()=>s(`${h.height}px`)),[h.height]),(0,g.useEffect)((()=>{if(e!==a)return e||(m(),s(`${h.height}px`)),d.current=window.setTimeout((()=>{l(e),clearTimeout(d.current)}),30),e?p.current=window.setTimeout((()=>{s("auto"),clearTimeout(p.current)}),t):u.current=window.setTimeout((()=>{clearTimeout(u.current)}),t/2),()=>{clearTimeout(d.current),clearTimeout(u.current),clearTimeout(p.current)}}),[e]),(0,St.jsx)($d,{expanded:a,css:{height:a?i:"0",transition:r?`height ${t}ms ease 0ms,\n opacity ${1.5*t}ms ease 0ms;`:"none",...o},children:(0,St.jsx)("div",{ref:c,className:"nextui-expand-content",children:n})})}),{isExpanded:!1,animated:!0,delay:200}),vd={values:[]},xd=m().createContext(vd),wd="nextui-collapse",Sd=({children:e,title:t,subtitle:r,expanded:o,shadow:n,className:i,divider:s,arrowIcon:a,showArrow:l,disabled:c,onChange:d,bordered:u,contentLeft:p,preventDefault:h,animated:b,borderWeight:$,index:y,...v})=>{const[x,w,S]=f(o),{values:C,divider:k,animated:E,updateValues:P}=m().useContext(xd),{isFocusVisible:T,focusProps:I}=El();t||((e,t)=>{const r=`[Next UI]${t?` [${t}]`:" "}: ${e}`;"undefined"!=typeof console&&(st[r]||(st[r]=!0,console.warn(r)))})('"title" is required.',"Collapse"),(0,g.useEffect)((()=>{x!==o&&w(o)}),[o]),(0,g.useEffect)((()=>{if(!C.length)return;const e=!!C.find((e=>e===y));w(e)}),[C.join(",")]);const N=gn(),M=gn(),R=(0,g.useMemo)((()=>l?a||(0,St.jsx)(bd,{}):null),[a,l]),A=void 0===k?s:k,L=(0,g.useMemo)((()=>void 0===E?b:E),[E,b]),B=e=>{if(c)return;const t=!S.current;w(t),P&&P(y,t),d&&d(e,y,t)},{bindings:z}=mt((e=>{B(e)}),[ut.Enter,ut.Space],{disableGlobalEvent:!0,preventDefault:h}),H=(0,g.useMemo)((()=>x?"open":"closed"),[x]);return(0,St.jsxs)(ud,{tabIndex:-1,shadow:n,bordered:u,animated:L,divider:A,borderWeight:$,visible:x,"data-state":H,className:wt(i,wd,`${wd}--${H}`),...v,children:[(0,St.jsx)(pd,{role:"button",tabIndex:c?-1:0,id:N,className:`${wd}-view`,"data-state":H,disabled:c,"aria-disabled":c,"aria-expanded":x,"aria-controls":M,isFocusVisible:T,onClick:B,...I,...z,children:(0,St.jsxs)("div",{className:wt(`${wd}-title-container`),children:[p&&(0,St.jsx)("div",{className:`${wd}-title-content-left`,children:p}),(0,St.jsxs)("div",{className:`${wd}-title-content`,children:[m().isValidElement(t)?t:(0,St.jsx)("h3",{className:`${wd}-title`,children:t}),r&&(0,St.jsx)("div",{className:`${wd}-subtitle`,children:r})]}),(0,St.jsx)("div",{className:`${wd}-title-content-right`,children:R})]})}),(0,St.jsx)(yd,{isExpanded:x,animated:L,children:(0,St.jsx)(hd,{role:"region",tabIndex:-1,id:M,"aria-labelledby":N,className:`${wd}-content`,children:e})})]})};Sd.toString=()=>".nextui-collapse";const Cd=vt(Sd,{shadow:!1,divider:!0,bordered:!1,showArrow:!0,animated:!0,disabled:!1,preventDefault:!0,expanded:!1}),kd=({children:e,accordion:t,animated:r,divider:o,onChange:n,...i})=>{const[s,a,l]=f([]),c=(e,r)=>{const o=l.current.find((t=>t===e));if(n&&n(e,r),t)return a(r?[e]:[]);if(r){if(o)return;return a([...l.current,e])}a(l.current.filter((t=>t!==e)))},d=(0,g.useMemo)((()=>({values:s,updateValues:c,divider:o,animated:r})),[s.join(",")]),u=(0,g.useMemo)((()=>((e,t=[])=>{if(0===m().Children.count(e))return[];const r=0===t.length,o=(e,t={})=>m().cloneElement(e,t);let n=0;return m().Children.map(e,(e=>{if(!m().isValidElement(e))return e;if(n+=1,r)return o(e,{index:n});const i=t.find((t=>t===e.type));return i?o(e,{index:n}):(n-=1,e)}))})(e,[Cd])),[e]);return(0,St.jsx)(xd.Provider,{value:d,children:(0,St.jsx)(md,{...i,children:u})})};kd.toString=()=>".nextui-collapse-group";const Ed=vt(kd,{accordion:!0});Cd.Group=Ed;const Pd=Cd,Td=Oe("div",{w:"100%",mr:"auto",ml:"auto",variants:{fluid:{true:{maxWidth:"100%"}},responsive:{true:{"@xs":{maxWidth:"$breakpoints$xs"},"@sm":{maxWidth:"$breakpoints$sm"},"@md":{maxWidth:"$breakpoints$md"},"@lg":{maxWidth:"$breakpoints$lg"},"@xl":{maxWidth:"$breakpoints$xl"}}}},defaultVariants:{fluid:!1,responsive:!0}}),Id=Td,Nd=({xs:e,sm:t,md:r,lg:o,xl:n,wrap:i,gap:s,as:a,display:l,justify:c,direction:d,alignItems:u,alignContent:p,children:h,responsive:m,fluid:f,css:b,...$})=>{const y=(0,g.useMemo)((()=>`calc(${s} * $space$sm)`),[s]);return(0,St.jsx)(Id,{css:{px:y,maxWidth:e?"$breakpoints$xs":t?"$breakpoints$sm":r?"$breakpoints$md":o?"$breakpoints$lg":n?"$breakpoints$xl":"",alignItems:u,alignContent:p,flexWrap:i,display:l,justifyContent:c,flexDirection:d,...b},responsive:m,fluid:f,as:a,...$,children:h})};Nd.toString=()=>".nextui-container",Nd.defaultProps={gap:2,xs:!1,sm:!1,md:!1,lg:!1,xl:!1,responsive:!0,fluid:!1,wrap:"wrap",as:"div",display:"block"};const Md=m().memo(Nd),Rd=Oe("div",{}),Ad=Oe("div",{margin:0,boxSizing:"border-box",padding:"$$gridGapUnit"}),Ld=e=>{const t=0===e?"none":"inherit";if("number"==typeof e){const r=100/12*e,o=r>100?"100%":r<0?"0":`${r}%`;return{flexGrow:0,display:t,maxWidth:o,flexBasis:o}}return{flexGrow:1,display:t,maxWidth:"100%",flexBasis:"0"}},Bd=m().forwardRef((({xs:e,sm:t,md:r,lg:o,xl:n,css:i,justify:s,direction:a,alignItems:l,alignContent:c,children:d,className:u,...p},h)=>{const m=(0,g.useMemo)((()=>{const i={xs:e,sm:t,md:r,lg:o,xl:n};return Object.keys(i).reduce(((e,t)=>void 0!==i[t]&&!1!==i[t]?`${e} ${t}`:e),"").trim()}),[e,t,r,o,n]);return(0,St.jsx)(Ad,{ref:h,className:wt("nextui-grid-item",m,u),css:{alignItems:l,alignContent:c,justifyContent:s,flexDirection:a,"&.xs":{...Ld(e)},"@xsMax":{"&.xs":{...Ld(e)}},"@sm":{"&.sm":{...Ld(t)}},"@md":{"&.md":{...Ld(r)}},"@lg":{"&.lg":{...Ld(o)}},"@xl":{"&.xl":{...Ld(n)}},...i},...p,children:d})}));Bd.displayName="NextUI.GridItem",Bd.toString=()=>".nextui-grid-item";const zd=vt(Bd,{xs:!1,sm:!1,md:!1,lg:!1,xl:!1,className:""}),Hd=m().forwardRef((({children:e,css:t,...r},o)=>(0,St.jsx)(zd,{ref:o,css:{...t},...r,children:e})));Hd.displayName="NextUI.Grid",Hd.toString=()=>".nextui-grid";const Dd=Hd,Od=m().forwardRef((({gap:e,wrap:t,css:r,children:o,className:n,...i},s)=>{const a=(0,g.useMemo)((()=>`calc(${e} * $space$3)`),[e]);return(0,St.jsx)(zd,{ref:s,className:wt("nextui-grid-container",n),css:{$$gridGapUnit:a,display:"flex",flexWrap:t,boxSizing:"border-box",margin:"calc(-1 * $$gridGapUnit)",width:"calc(100% + $$gridGapUnit * 2)",...r},...i,children:o})}));Od.displayName="NextUI.GridContainer",Od.toString=()=>".nextui-grid-container";const Kd=vt(Od,{gap:0,wrap:"wrap",className:""});Dd.Container=Kd;const Fd=Dd,jd=Oe("span",{size:"1px",variants:{inline:{true:{display:"inline-block"},false:{display:"block"}}},defaultVariants:{inline:!1}}),_d=({x:e,y:t,inline:r,css:o,...n})=>{const i=Sc(e),s=Sc(t);return(0,St.jsx)(jd,{css:{marginLeft:`${i} !important`,marginTop:`${s} !important`,...o},"aria-hidden":"true",...n})};_d.toString=()=>".nextui-spacer";const Wd=vt(m().memo(_d),{x:1,y:1}),Vd=vt((({children:e,childrenRef:t,className:r,visible:o,enterTime:n,leaveTime:i,clearTime:s,name:a,onExited:l,onEntered:c,...d})=>{const[u,p]=(0,g.useState)(""),[h,f]=(0,g.useState)(o);return(0,g.useEffect)((()=>{const e=o?"enter":"leave",t=o?n:i;o&&!h&&f(!0),p(`${a}-${e}`);const r=setTimeout((()=>{p(`${a}-${e} ${a}-${e}-active`),"leave"===e?null==l||l():null==c||c(),clearTimeout(r)}),t),d=setTimeout((()=>{o||(p(""),f(!1)),clearTimeout(d)}),t+s);return()=>{clearTimeout(r),clearTimeout(d)}}),[o,h]),(0,g.useEffect)((()=>{if(null==t||!t.current)return;const e=u.split(" "),r=t.current.className.split(" ").filter((e=>!e.includes(a)));t.current.className=wt(r,e)}),[t,u]),m().isValidElement(e)&&h?m().cloneElement(e,{...d,className:wt(e.props.className,r,null!=t&&t.current?"":u)}):null}),{visible:!1,enterTime:60,leaveTime:60,clearTime:60,className:"",name:"transition"}),Ud={top:-1e3,left:-1e3,right:-1e3,bottom:-1e3,width:0,height:0},Gd={top:"-1000px",left:"-1000px",transform:"none"},Jd=Oe("div",{width:"max-content",display:"inherit"}),Yd=Oe("span",{display:"none",content:"",size:"$5",zIndex:"-2",background:"$$tooltipColor",br:"0px 0px 2px 0px",position:"absolute"}),Xd=Oe("div",{position:"relative",fs:"$sm",padding:0,variants:{hideArrow:{false:{[`& ${Yd}`]:{display:"block"}}}}}),qd=Oe("div",{position:"absolute",width:"auto",padding:"$3 $sm",opacity:0,zIndex:"$10",br:"$lg","@motion":{transition:"none"},variants:{color:{default:{$$tooltipColor:"$colors$background",bg:"$$tooltipColor"},primary:{$$tooltipColor:"$colors$primary",bg:"$$tooltipColor"},secondary:{$$tooltipColor:"$colors$secondary",bg:"$$tooltipColor"},success:{$$tooltipColor:"$colors$success",bg:"$$tooltipColor"},warning:{$$tooltipColor:"$colors$warning",bg:"$$tooltipColor"},error:{$$tooltipColor:"$colors$error",bg:"$$tooltipColor"},invert:{$$tooltipColor:"$colors$foreground",bg:"$$tooltipColor"}},contentColor:{default:{$$tooltipTextColor:"$colors$text",color:"$$tooltipTextColor"},primary:{$$tooltipTextColor:"$colors$primary",color:"$$tooltipTextColor"},secondary:{$$tooltipTextColor:"$colors$secondary",color:"$$tooltipTextColor"},success:{$$tooltipTextColor:"$colors$success",color:"$$tooltipTextColor"},warning:{$$tooltipTextColor:"$colors$warning",color:"$$tooltipTextColor"},error:{$$tooltipTextColor:"$colors$error",color:"$$tooltipTextColor"},invert:{$$tooltipTextColor:"$colors$invert",color:"$$tooltipTextColor"}},rounded:{true:{br:"$pill"}},shadow:{true:{bs:"$md"}},animated:{true:{transition:"opacity 0.25s ease 0s, top 0.25s ease 0s"},false:{transition:"none"}}},compoundVariants:[{color:"primary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"secondary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"success",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"error",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"invert",contentColor:"default",css:{$$tooltipTextColor:"$colors$background"}}],defaultVariants:{color:"default",contentColor:"default"}}),Zd=({children:e,parent:t,visible:r,offset:o,placement:n,rounded:i,animated:s,className:a,hideArrow:l,css:c,...d})=>{const u=et("tooltip"),p=(0,g.useRef)(null),[h,m]=(0,g.useState)(Gd);if(!t)return null;const f=()=>{const e=((e,t,r)=>{const o={top:{top:t.top-r+"px",left:`${t.left+t.width/2}px`,transform:"translate(-50%, -100%)"},topStart:{top:t.top-r+"px",left:`${t.left}px`,transform:"translate(0, -100%)"},topEnd:{top:t.top-r+"px",left:`${t.left+t.width}px`,transform:"translate(-100%, -100%)"},bottom:{top:`${t.bottom+r}px`,left:`${t.left+t.width/2}px`,transform:"translate(-50%, 0)"},bottomStart:{top:`${t.bottom+r}px`,left:`${t.left}px`,transform:"translate(0, 0)"},bottomEnd:{top:`${t.bottom+r}px`,left:`${t.left+t.width}px`,transform:"translate(-100%, 0)"},left:{top:`${t.top+t.height/2}px`,left:t.left-r+"px",transform:"translate(-100%, -50%)"},leftStart:{top:`${t.top}px`,left:t.left-r+"px",transform:"translate(-100%, 0)"},leftEnd:{top:`${t.top+t.height}px`,left:t.left-r+"px",transform:"translate(-100%, -100%)"},right:{top:`${t.top+t.height/2}px`,left:`${t.right+r}px`,transform:"translate(0, -50%)"},rightStart:{top:`${t.top}px`,left:`${t.right+r}px`,transform:"translate(0, 0)"},rightEnd:{top:`${t.top+t.height}px`,left:`${t.right+r}px`,transform:"translate(0, -100%)"}};return o[e]||o.top})(n,(e=>{if(!e||!e.current)return Ud;const t=e.current.getBoundingClientRect();return{...t,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top,top:t.top+document.documentElement.scrollTop,bottom:t.bottom+document.documentElement.scrollTop,left:t.left+document.documentElement.scrollLeft,right:t.right+document.documentElement.scrollLeft}})(t),o);m(e)},{transform:b,top:$,left:v,right:x,bottom:w}=(0,g.useMemo)((()=>((e,t)=>{const r={top:{top:"auto",right:"auto",left:"50%",bottom:"0px",transform:"translate(-50%, 100%) rotate(45deg)"},topStart:{top:"auto",right:"auto",left:"8%",bottom:"0px",transform:"translate(8%, 100%) rotate(45deg)"},topEnd:{top:"auto",right:"8%",left:"auto",bottom:"0px",transform:"translate(8%, 100%) rotate(45deg)"},bottom:{top:"0px",right:"auto",left:"50%",bottom:"auto",transform:"translate(-50%, -100%) rotate(225deg)"},bottomStart:{top:"0px",right:"auto",left:"8%",bottom:"auto",transform:"translate(8%, -100%) rotate(225deg)"},bottomEnd:{top:"0px",right:"8%",left:"auto",bottom:"auto",transform:"translate(8%, -100%) rotate(225deg)"},left:{top:"50%",right:"-4px",left:"auto",bottom:"auto",transform:"translate(100%, -50%) rotate(-45deg)"},leftStart:{top:"calc(15% + 1px)",right:"-4px",left:"auto",bottom:"auto",transform:"translate(100%, 0) rotate(-45deg)"},leftEnd:{top:"auto",right:"-4px",left:"auto",bottom:"calc(15% + 1px)",transform:"translate(100%, 0) rotate(-45deg)"},right:{top:"50%",right:"auto",left:"-4px",bottom:"auto",transform:"translate(-100%, -50%) rotate(135deg)"},rightStart:{top:"calc(15% + 1px)",right:"auto",left:"-4px",bottom:"auto",transform:"translate(-100%, 0) rotate(135deg)"},rightEnd:{top:"auto",right:"auto",left:"-4px",bottom:"calc(15% + 1px)",transform:"translate(-100%, 0) rotate(135deg)"}};return r[e]||r.top})(n)),[n]);y(f),ct((()=>f())),(0,g.useEffect)((()=>{f()}),[r]);const S=(0,g.useMemo)((()=>r?"open":"closed"),[r]);return u?(0,Ss.createPortal)((0,St.jsx)(Vd,{name:"nextui-tooltip-wrapper",visible:r,enterTime:20,leaveTime:20,children:(0,St.jsx)(qd,{className:wt("nextui-tooltip-content",`nextui-tooltip--${S}`,a),"data-state":S,ref:p,onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},animated:s,css:{left:h.left,top:`calc(${h.top} + 6px)`,transform:h.transform,"&.nextui-tooltip-wrapper-enter-active":{opacity:1,top:h.top},...c},...d,children:(0,St.jsxs)(Xd,{role:"tooltip","data-state":S,hideArrow:l,className:wt("nextui-tooltip",{"nextui-tooltip--with-arrow":!l}),children:[(0,St.jsx)(Yd,{className:"nextui-tooltip-arrow",css:{left:v,top:$,right:x,bottom:w,transform:b}}),e]})})}),u):null};Zd.toString=()=>".nextui-tooltip-content";const Qd=vt(Zd,{placement:"top",offset:12,className:""}),eu=({children:e,initialVisible:t,content:r,offset:o,placement:n,portalClassName:i,enterDelay:s,leaveDelay:a,trigger:l,rounded:c,animated:d,shadow:u,className:p,color:h,contentColor:m,onVisibleChange:f,hideArrow:b,css:$,triggerCss:y,onClick:v,keepMounted:x,visible:w,...S})=>{const C=(0,g.useRef)(),k=(0,g.useRef)(null),[E,P]=(0,g.useState)(t),T={animated:d,visible:E,css:$,shadow:u,offset:o,placement:n,rounded:c,color:h,contentColor:m,hideArrow:b,parent:k,className:i},I=e=>{const t=()=>{clearTimeout(C.current),C.current=void 0},r=e=>{P(e),f(e),t()};t(),C.current=e?window.setTimeout((()=>r(!0)),s):window.setTimeout((()=>r(!1)),a)},N=e=>{"hover"===l&&I(e)};return it(k,(()=>"click"===l&&!x&&I(!1))),(0,g.useEffect)((()=>{void 0!==w&&I(w)}),[w]),(0,St.jsxs)(Jd,{ref:k,role:"button",tabIndex:-1,className:`nextui-tooltip-button ${p}`,onClick:()=>{"click"===l&&I(!E),null==v||v()},onKeyUp:()=>N(!0),onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),onFocus:()=>N(!0),onBlur:()=>N(!1),css:{...y},...S,children:[e,r&&(0,St.jsx)(Qd,{...T,children:r})]})};eu.toString=()=>".nextui-tooltip";const tu=vt(eu,{initialVisible:!1,hideArrow:!1,animated:!0,shadow:!0,rounded:!1,keepMounted:!1,trigger:"hover",enterDelay:0,leaveDelay:0,className:"",portalClassName:"",onVisibleChange:()=>{}}),ru=Oe("div",{display:"flex",position:"relative",width:"initial",maxWidth:"100%",padding:"calc($space$lg * 0.75) $space$lg",br:"$lg",bg:"$background",variants:{color:{default:{$$snippetBorderColor:"$border",$$snippetBgColor:"$background",color:"$text"},primary:{$$snippetBorderColor:"$border",$$snippetBgColor:"$primary",color:"$text"},success:{$$snippetBorderColor:"$success",$$snippetBgColor:"$background",color:"$success"},warning:{$$snippetBorderColor:"$warning",$$snippetBgColor:"$background",color:"$warning"},error:{$$snippetBorderColor:"$error",$$snippetBgColor:"$background",color:"$error"},secondary:{$$snippetBorderColor:"$secondary",$$snippetBgColor:"$background",color:"$secondary"},invert:{$$snippetBorderColor:"$foreground",$$snippetBgColor:"$foreground",color:"$background"}},borderWeight:{light:{$$borderWeight:"$light"},normal:{$$borderWeight:"$normal"},bold:{$$borderWeight:"$bold"},extrabold:{$$borderWeight:"$extrabold"},black:{$$borderWeight:"$black"}},bordered:{true:{border:"$$borderWeight solid $$snippetBorderColor"}},filled:{true:{backgroundColor:"$$snippetBgColor"}}},defaultVariants:{color:"default",borderWeight:"normal",filled:!1}}),ou=Oe("pre",{margin:0,padding:0,border:"none",br:0,bgColor:"transparent",color:"inherit",fontSize:"$sm","*":{margin:0,padding:0,fontSize:"inherit",color:"inherit"},variants:{withCopyButton:{true:{width:"calc(100% - 2 * $lg)"},false:{width:"100%"}}}}),nu=Oe("svg",{}),iu=Oe("button",{display:"inline-flex",jc:"center",border:"none",ai:"flex-start",bg:"transparent",width:"calc(2 * $space$lg)",br:"$xs",color:"inherit",transition:"opacity 0.2s ease 0s",cursor:"pointer",us:"none","@motion":{transition:"none"},"&:hover":{opacity:"0.7"},[`& ${nu}`]:{path:{fill:"$accents6"}}},el),su=({size:e,fill:t,width:r,height:o,...n})=>(0,St.jsx)(nu,{xmlns:"http://www.w3.org/2000/svg",width:e||r,height:e||o,viewBox:"0 0 24 24",...n,children:(0,St.jsx)("path",{fill:t,d:"M20 2H10c-1.103 0-2 .897-2 2v4H4c-1.103 0-2 .897-2 2v10c0 1.103.897 2 2 2h10c1.103 0 2-.897 2-2v-4h4c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zM4 20V10h10l.002 10H4zm16-6h-4v-4c0-1.103-.897-2-2-2h-4V4h10v10z"})});su.toString=()=>".nextui-snippet-copy-icon";const au=vt(g.memo(su),{width:18,height:18}),lu=({bordered:e,children:t,symbol:r,showTooltip:o,text:n,tooltipCopyText:i,tooltipCopiedText:s,tooltipColor:a,copy:l,...c})=>{const[d,u]=(0,g.useState)(!1),{copy:p}=lt(),h=(0,g.useRef)(null),m=n&&Array.isArray(n),f=(0,g.useMemo)((()=>"prevent"!==l),[l]),b=(0,g.useMemo)((()=>m?(e=>e.reduce(((e,t)=>t?e?`${e}\n${t}`:t:e),""))(n):t?h.current?h.current.textContent:"":n),[h.current,t,n]),$=(0,g.useMemo)((()=>{const e=r.trim();return e?`${e} `:""}),[r]),y=()=>{b&&f&&(p(b),"slient"!==l&&u(!0))};return(0,St.jsxs)(ru,{...c,children:[m?n.map(((e,t)=>(0,St.jsx)(ou,{css:{"&:before":{content:$,us:"none"}},className:"nextui-snippet-pre",children:e},`${t}-${e}`))):(0,St.jsx)(ou,{css:{"&:before":{content:$,us:"none"}},className:"nextui-snippet-pre",ref:h,children:t||n}),f&&"slient"!==l?(0,St.jsx)(tu,{hideArrow:!0,rounded:!0,color:a,content:d?s:i,onVisibleChange:()=>{setTimeout((()=>{d&&u(!1)}),400)},children:(0,St.jsx)(iu,{className:"nextui-snippet-copy-button",onClick:y,children:(0,St.jsx)(au,{})})}):"prevent"!==l&&(0,St.jsx)(iu,{className:"nextui-snippet-copy-button",onClick:y,children:(0,St.jsx)(au,{})})]})};lu.toString=()=>".nextui-snippet";const cu=vt(m().memo(lu),{symbol:"$",showTooltip:!0,copy:"default",tooltipColor:"default",tooltipCopyText:"Copy",tooltipCopiedText:"Copied"}),du=Oe("div",{display:"flex",position:"relative",boxSizing:"border-box",variants:{fluid:{true:{width:"100%"}}},defaultVariants:{fluid:!0}}),uu=du,pu=({children:e,gap:t,justify:r,align:o,wrap:n,css:i,...s})=>(0,St.jsx)(uu,{css:{flexWrap:n,$$rowGap:`calc(${t} * $space$lg)`,marginLeft:`calc(${t} * $space$lg / 2)`,marginRight:`calc(${t} * $space$lg / 2)`,justifyContent:r,alignItems:o,...i},...s,children:e});pu.toString=()=>".nextui-row";const hu=vt(m().memo(pu),{gap:0,wrap:"nowrap",justify:"flex-start",align:"flex-start"}),gu=e=>{if("undefined"!=typeof document||!e){const t=mu(e)?e.replace("var(","").replace(")",""):`--${e}`;return getComputedStyle(document.documentElement).getPropertyValue(t)}return""},mu=e=>!(!e||0!==(null==e?void 0:e.indexOf("var(")));var fu,bu;const $u=Oe("svg",{ml:"$1",as:"center",display:"inline-flex",color:"currentColor"}),yu=Oe("a",{display:"inline-flex",alignItems:"baseline",lineHeight:"inherit",textDecoration:"none",width:"fitContent",backgroundImage:"inherit",backgroundColor:"inherit",backgroundClip:"inherit",WebkitTextFillColor:"inherit","&:hover":{opacity:.8},"@motion":{transition:"none"},variants:{color:{default:{color:"$link"},text:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}},underline:{true:{"&:hover, &:active, &:focus":{textDecoration:"underline"}}},block:{true:{padding:"$2 $4",borderRadius:"$base"}},animated:{true:{transition:"$link"}}},compoundVariants:[{color:"default",block:!0,css:{"&:hover":{backgroundColor:((e,t=1)=>{if(!e)return"";const r=mu(e)?gu(e):e;if(/#[a-fA-F0-9]{3,6}/g.test(r))return((e,t=1)=>{let r=0,o=0,n=0;return 4==e.length?(r="0x"+e[1]+e[1],o="0x"+e[2]+e[2],n="0x"+e[3]+e[3]):7==e.length&&(r="0x"+e[1]+e[2],o="0x"+e[3]+e[4],n="0x"+e[5]+e[6]),`rgba(${+r}, ${+o},${+n},${t})`})(r,t);if(!/^#|rgb|RGB/.test(r))return r;const[o,n,i]=(e=>{const t=mu(e)?gu(e):e;if("#"===t.charAt(0))return(e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,r,o)=>`${t}${t}${r}${r}${o}${o}`)),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)throw new Error(`Next UI: Unsupported ${e} color.`);return[Number.parseInt(r[1],16),Number.parseInt(r[2],16),Number.parseInt(r[3],16)]})(t);const r=t.replace(/ /g,""),o=t.substr(0,4),n=r.match(/\((.+)\)/);if(!o.startsWith("rgb")||!n)throw new Error('Next UI: Only support ["RGB", "RGBA", "HEX"] color.');return n[1].split(",").map((e=>Number.parseFloat(e)))})(r);return`rgba(${o}, ${n}, ${i}, ${t>1?1:t<0?0:t})`})(null==(fu=We.colors)||null==(bu=fu.link)?void 0:bu.value,.2)}}},{color:"primary",block:!0,css:{"&:hover":{backgroundColor:"$primaryLight"}}},{color:"secondary",block:!0,css:{"&:hover":{backgroundColor:"$secondaryLight"}}},{color:"success",block:!0,css:{"&:hover":{backgroundColor:"$successLight"}}},{color:"warning",block:!0,css:{"&:hover":{backgroundColor:"$warningLight"}}},{color:"error",block:!0,css:{"&:hover":{backgroundColor:"$errorLight"}}}],defaultVariants:{color:"default",animated:!0}}),vu=yu,xu=()=>(0,St.jsxs)($u,{viewBox:"0 0 24 24",width:"1em",height:"1em",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",className:"nextui-link-icon",children:[(0,St.jsx)("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),(0,St.jsx)("path",{d:"M15 3h6v6"}),(0,St.jsx)("path",{d:"M10 14L21 3"})]});xu.toString=()=>".nextui-link-icon";const wu=m().memo(xu),Su=m().forwardRef((({children:e,icon:t,...r},o)=>(0,St.jsx)(vu,{...r,ref:o,children:(0,St.jsxs)(St.Fragment,{children:[e,t&&(0,St.jsx)(wu,{})]})})));Su.toString=()=>".nextui-link";const Cu=vt(Su,{icon:!1}),ku=je({"0%":{opacity:"0.2"},"20%":{opacity:1},"100%":{opacity:"0.2"}}),Eu=je({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Pu=je({"0%":{transform:"translate(0px, 0px)"},"50%":{transform:"translate(0, calc(-$$loadingSize * 1.4))"},"100%":{transform:"translate(0px, 0px)"}}),Tu=je({"0%":{opacity:1},"100%":{opacity:.15}}),Iu=Oe("div",{d:"inline-flex",fd:"column",ai:"center",position:"relative",variants:{color:{currentColor:{$$loadingColor:"currentColor"},white:{$$loadingColor:"$colors$white"},default:{$$loadingColor:"$colors$primary"},primary:{$$loadingColor:"$colors$primary"},secondary:{$$loadingColor:"$colors$secondary"},success:{$$loadingColor:"$colors$success"},warning:{$$loadingColor:"$colors$warning"},error:{$$loadingColor:"$colors$error"}},textColor:{white:{$$loadingTextColor:"$colors$white"},default:{$$loadingTextColor:"$colors$text"},primary:{$$loadingTextColor:"$colors$primary"},secondary:{$$loadingTextColor:"$colors$secondary"},success:{$$loadingTextColor:"$colors$success"},warning:{$$loadingTextColor:"$colors$warning"},error:{$$loadingTextColor:"$colors$error"}}},defaultVariants:{color:"default",textColor:"default"}}),Nu=Oe("div",{size:"100%",position:"relative",left:"50%",top:"50%"}),Mu=Oe("div",{d:"flex",fd:"column",jc:"center",ai:"center",position:"relative",variants:{size:{xs:{size:"$6"},sm:{size:"$8"},md:{size:"$9"},lg:{size:"$11"},xl:{size:"$12"}}}}),Ru=Oe("span",{bg:"$$loadingColor",position:"absolute",top:"-3.9%",width:"24%",height:"8%",left:"-10%",br:"$lg",animation:`${Tu} 1.2s linear 0s infinite normal none running`,"&:nth-child(1)":{animationDelay:"-1.2s",transform:"rotate(0deg) translate(146%)"},"&:nth-child(2)":{animationDelay:"-1.1s",transform:"rotate(30deg) translate(146%)"},"&:nth-child(3)":{animationDelay:"-1s",transform:"rotate(60deg) translate(146%)"},"&:nth-child(4)":{animationDelay:"-0.9s",transform:"rotate(90deg) translate(146%)"},"&:nth-child(5)":{animationDelay:"-0.8s",transform:"rotate(120deg) translate(146%)"},"&:nth-child(6)":{animationDelay:"-0.7s",transform:"rotate(150deg) translate(146%)"},"&:nth-child(7)":{animationDelay:"-0.6s",transform:"rotate(180deg) translate(146%)"},"&:nth-child(8)":{animationDelay:"-0.5s",transform:"rotate(210deg) translate(146%)"},"&:nth-child(9)":{animationDelay:"-0.4s",transform:"rotate(240deg) translate(146%)"},"&:nth-child(10)":{animationDelay:"-0.3s",transform:"rotate(270deg) translate(146%)"},"&:nth-child(11)":{animationDelay:"-0.2s",transform:"rotate(300deg) translate(146%)"},"&:nth-child(12)":{animationDelay:"-0.1s",transform:"rotate(330deg) translate(146%)"}}),Au=Oe("span",{position:"absolute",top:0,left:0,right:0,bottom:0,size:"100%",dflex:"center",bgColor:"transparent",us:"none",variants:{size:{xs:{$$loadingSize:"$space$8",$$loadingBorder:"$space$1"},sm:{$$loadingSize:"$space$10",$$loadingBorder:"$space$1"},md:{$$loadingSize:"$space$12",$$loadingBorder:"calc($space$1 * 1.5)"},lg:{$$loadingSize:"$space$15",$$loadingBorder:"$space$2"},xl:{$$loadingSize:"$space$18",$$loadingBorder:"$space$3"}},type:{default:{d:"flex",br:"$rounded",position:"relative",size:"$$loadingSize",i:{top:"0px",size:"100%",position:"absolute",br:"inherit"},"._1":{border:"$$loadingBorder solid $$loadingColor",borderTop:"$$loadingBorder solid transparent",borderLeft:"$$loadingBorder solid transparent",borderRight:"$$loadingBorder solid transparent",animation:`${Eu} 0.8s ease infinite`},"._2":{border:"$$loadingBorder dotted $$loadingColor",borderTop:"$$loadingBorder solid transparent",borderLeft:"$$loadingBorder solid transparent",borderRight:"$$loadingBorder solid transparent",animation:`${Eu} 0.8s linear infinite`,opacity:.5},"._3":{display:"none"}},points:{d:"flex",position:"relative",transform:"translate(0, calc($$loadingSize * 0.6))",i:{size:"$$loadingSize",margin:"0 3px",bg:"$$loadingColor"},"._1":{br:"$rounded",animation:`${Pu} 0.75s ease infinite`},"._2":{br:"$rounded",animation:`${Pu} 0.75s ease infinite 0.25s`},"._3":{br:"$rounded",animation:`${Pu} 0.75s ease infinite 0.5s`}},"points-opacity":{d:"flex",position:"relative",i:{display:"inline-block",size:"$$loadingSize",br:"$rounded",bg:"$$loadingColor",margin:"0 1px",animation:`${ku} 1.4s infinite both`},"._2":{animationDelay:"0.2s"},"._3":{animationDelay:"0.4s"}},spinner:{},gradient:{display:"flex",position:"relative",size:"$$loadingSize","._1":{position:"absolute",size:"100%",border:"0px",animation:`${Eu} 1s linear infinite`,top:"0px",br:"$rounded",bg:"linear-gradient(0deg, $background 33%,$$loadingColor 100%)"},"._2":{top:"2px",position:"absolute",size:"calc(100% - 4px)",border:"0px",bg:"$background",br:"$rounded"},"._3":{display:"none"}}}},compoundVariants:[{size:"xs",type:"points-opacity",css:{$$loadingSize:"$space$1"}},{size:"sm",type:"points-opacity",css:{$$loadingSize:"$space$2"}},{size:"md",type:"points-opacity",css:{$$loadingSize:"$space$3"}},{size:"lg",type:"points-opacity",css:{$$loadingSize:"$space$4"}},{size:"xl",type:"points-opacity",css:{$$loadingSize:"$space$5"}},{size:"xs",type:"points",css:{$$loadingSize:"$space$1"}},{size:"sm",type:"points",css:{$$loadingSize:"$space$2"}},{size:"md",type:"points",css:{$$loadingSize:"$space$3"}},{size:"lg",type:"points",css:{$$loadingSize:"$space$4"}},{size:"xl",type:"points",css:{$$loadingSize:"$space$5"}}],defaultVariants:{type:"default"}}),Lu=Oe("label",{mt:"$1",color:"$$loadingTextColor",fontSize:"$$loadingSize","*":{margin:0},variants:{size:{xs:{fontSize:"$space$5",marginTop:"$2"},sm:{fontSize:"$space$6",marginTop:"$3"},md:{fontSize:"$base",marginTop:"$4"},lg:{fontSize:"$space$10",marginTop:"$4"},xl:{fontSize:"$space$11",marginTop:"$5"}}}}),Bu=({children:e,size:t,color:r,textColor:o,className:n,...i})=>{const s=Array.isArray(e)?(null==e?void 0:e.length)>1&&void 0!==e[0]:void 0!==e,a=e&&s?"":"Loading";return(0,St.jsxs)(Mu,{className:wt("nextui-spinner",n),color:r,size:t,...i,children:[(0,St.jsx)(Nu,{className:"nextui-spinner-container","aria-label":a,children:[...new Array(12)].map(((e,t)=>(0,St.jsx)(Ru,{},`nextui-spinner-${t}`)))}),e&&(0,St.jsx)(Lu,{size:t,color:o,children:e})]})};Bu.toString=()=>".nextui-spinner";const zu=Bu,Hu=({children:e,size:t,gradientBackground:r,loadingCss:o,type:n,...i})=>{const s=e?"":"Loading",a=(0,g.useMemo)((()=>"gradient"===n?{"._2":{bg:r}}:{}),[n]);return(0,St.jsx)(Iu,{...i,children:"spinner"===n?(0,St.jsx)(zu,{size:t,children:e}):(0,St.jsxs)(St.Fragment,{children:[(0,St.jsxs)(Au,{className:`nextui-loading nextui-loading-${n}`,type:n,size:t,"aria-label":s,css:{...o,...a},children:[(0,St.jsx)("i",{className:"_1"}),(0,St.jsx)("i",{className:"_2"}),(0,St.jsx)("i",{className:"_3"})]}),e&&(0,St.jsx)(Lu,{size:t,className:"nextui-loading-label",children:e})]})})};Hu.toString=()=>".nextui-loading";const Du=vt(m().memo(Hu),{size:"md",type:"default"});function Ou(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}Ou({},"useRadio",(()=>Fu));const Ku=new WeakMap;function Fu(e,t,r){let{value:o,children:n,"aria-label":i,"aria-labelledby":s}=e;const a=e.isDisabled||t.isDisabled;null!=n||null!=i||null!=s||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let l=t.selectedValue===o,{pressProps:c}=Mi({isDisabled:a}),{focusableProps:d}=Rl($n(e,{onFocus:()=>t.setLastFocusedValue(o)}),r),u=$n(c,d),p=Sn(e,{labelable:!0}),h=t.lastFocusedValue===o||null==t.lastFocusedValue?0:-1;return a&&(h=void 0),{inputProps:$n(p,{...u,type:"radio",name:Ku.get(t),tabIndex:h,disabled:a,checked:l,value:o,onChange:e=>{e.stopPropagation(),t.setSelectedValue(o)}})}}function ju(e,t){let{name:r,validationState:o,isReadOnly:n,isRequired:i,isDisabled:s,orientation:a="vertical"}=e,{direction:l}=Go(),{labelProps:c,fieldProps:d}=Rc({...e,labelElementType:"span"}),u=Sn(e,{labelable:!0}),{focusWithinProps:p}=ls({onBlurWithin(){t.selectedValue||t.setLastFocusedValue(null)}}),h=gn(r);return Ku.set(t,h),{radioGroupProps:$n(u,{role:"radiogroup",onKeyDown:e=>{let r;switch(e.key){case"ArrowRight":r="rtl"===l&&"vertical"!==a?"prev":"next";break;case"ArrowLeft":r="rtl"===l&&"vertical"!==a?"next":"prev";break;case"ArrowDown":r="next";break;case"ArrowUp":r="prev";break;default:return}e.preventDefault();let o,n=Sl(e.currentTarget,{from:e.target});"next"===r?(o=n.nextNode(),o||(n.currentNode=e.currentTarget,o=n.firstChild())):(o=n.previousNode(),o||(n.currentNode=e.currentTarget,o=n.lastChild())),o&&(o.focus(),t.setSelectedValue(o.value))},"aria-invalid":"invalid"===o||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":n||void 0,"aria-required":i||void 0,"aria-disabled":s||void 0,"aria-orientation":a,...d,...p}),labelProps:c}}Ou({},"useRadioGroup",(()=>ju));const[_u,Wu]=Oc({name:"RadioGroupContext",strict:!0,errorMessage:"useRadioGroupContext: `context` is undefined. Seems you forgot to wrap all checkbox components within `<Radio.Group />`"}),Vu=Oe("span",{fontSize:"$$radioSize",us:"none",d:"inline-flex",ai:"center",variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}},isDisabled:{true:{color:"$accents5"}},isInvalid:{true:{color:"$error"}}}}),Uu=Oe("span",{size:"$$radioSize",br:"$$radioRadii",position:"relative",d:"inline-block",mr:"calc($$radioSize * 0.375)","&:after":{content:"",d:"block",position:"absolute",size:"$$radioSize",br:"$$radioRadii",boxSizing:"border-box",border:"2px solid $border"}},tl),Gu=Oe("label",{d:"flex",w:"initial",ai:"flex-start",position:"relative",fd:"column",jc:"flex-start",cursor:"pointer","@motion":{[`& ${Uu}`]:{transition:"none","&:after":{transition:"none"}}},variants:{color:{default:{$$radioColor:"$colors$primary",$$radioColorHover:"$colors$primarySolidHover"},primary:{$$radioColor:"$colors$primary",$$radioColorHover:"$colors$primarySolidHover"},secondary:{$$radioColor:"$colors$secondary",$$radioColorHover:"$colors$secondarySolidHover"},success:{$$radioColor:"$colors$success",$$radioColorHover:"$colors$successSolidHover"},warning:{$$radioColor:"$colors$warning",$$radioColorHover:"$colors$warningSolidHover"},error:{$$radioColor:"$colors$error",$$radioColorHover:"$colors$errorSolidHover"}},size:{xs:{$$radioSize:"$space$7"},sm:{$$radioSize:"$space$8"},md:{$$radioSize:"$space$9"},lg:{$$radioSize:"$space$10"},xl:{$$radioSize:"$space$11"}},isHovered:{true:{}},isInvalid:{true:{$$radioColor:"$colors$error",$$radioColorHover:"$colors$errorSolidHover",[`& ${Uu}`]:{"&:after":{borderColor:"$colors$error"}}}},isDisabled:{true:{cursor:"not-allowed",$$radioColor:"$colors$accents4"}},isSquared:{true:{$$radioRadii:"$radii$squared"},false:{$$radioRadii:"$radii$rounded"}},isChecked:{true:{[`& ${Uu}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColor"}}}},disableAnimation:{true:{[`& ${Uu}`]:{transition:"none","&:after":{transition:"none"}}},false:{[`& ${Uu}`]:{transition:"$default","&:after":{transition:"$default"}}}}},defaultVariants:{size:"md",isSquared:!1,disableAnimation:!1},compoundVariants:[{isChecked:!0,isHovered:!0,css:{[`& ${Uu}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColorHover"}}}},{isChecked:!0,isDisabled:!0,isHovered:!0,css:{[`& ${Uu}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColor"}}}},{isChecked:!1,isDisabled:!1,isHovered:!0,css:{[`& ${Uu}`]:{bg:"$border"}}}]}),Ju=Oe("span",{color:"$accents7",fontSize:"calc($$radioSize * 0.85)",paddingLeft:"calc($$radioSize + $$radioSize * 0.375)",variants:{isInvalid:{true:{color:"$red500"}},isDisabled:{true:{color:"$accents5"}}}}),Yu=Oe("div",{w:"initial",position:"relative",d:"flex",fd:"row",ai:"center",jc:"flex-start"}),Xu=Oe("label",{d:"block",fontWeight:"$normal",fontSize:"calc($$checkboxSize * 0.9)",color:"$accents8",mb:"$3"}),qu=Oe("div",{border:0,margin:0,padding:0,display:"flex",fd:"column",variants:{size:{xs:{$$radioGroupGap:"$space$7"},sm:{$$radioGroupGap:"$space$8"},md:{$$radioGroupGap:"$space$9"},lg:{$$radioGroupGap:"$space$10"},xl:{$$radioGroupGap:"$space$11"}}}}),Zu=Oe("div",{display:"flex",flexDirection:"column",variants:{isRow:{true:{mt:0,flexDirection:"row",[`& ${Gu}:not(:last-child)`]:{mr:"$$radioSize"}},false:{mr:0,flexDirection:"column",[`& ${Gu}:not(:first-child)`]:{mt:"$$radioSize"}}}},defaultVariants:{isRow:!1}}),Qu=m().forwardRef(((e,t)=>{const{className:r,as:o,css:n,children:i,label:s,description:a,...l}=e,{size:c,color:d,inputRef:u,labelColor:p,isHovered:h,isSquared:m,isInvalid:f,isDisabled:b,autoFocus:$,disableAnimation:y,hoverProps:v,inputProps:x}=(e=>{var t,r,o;const n=Wu(),{size:i=(null!=(t=n.size)?t:"md"),color:s=(null!=(r=n.color)?r:"default"),labelColor:a=(null!=(o=n.labelColor)?o:"default"),autoFocus:l,isSquared:c=!1,disableAnimation:d=!1,...u}=e,p=(0,g.useRef)(null),{inputProps:h}=Fu(u,n.radioGroupState,p),m=(0,g.useMemo)((()=>{var e;return null!=(e=h.disabled)&&e}),[h.disabled]),{hoverProps:f,isHovered:b}=gs({isDisabled:m});return{size:i,color:s,inputRef:p,autoFocus:l,isDisabled:m,labelColor:a,isInvalid:(0,g.useMemo)((()=>"invalid"===n.validationState),[n.validationState]),isHovered:b,isSquared:c,disableAnimation:d,inputProps:h,hoverProps:f}})({...l,children:null!=i?i:s}),w=Ll(t,u),{focusProps:S,isFocusVisible:C}=El({autoFocus:$}),k=(0,g.useMemo)((()=>h?"is-hovered":b?"is-disabled":x.checked?"checked":"uncheked"),[b,x.checked,h]);return(0,St.jsxs)(Gu,{ref:w,...v,className:wt("nextui-radio-label",`nextui-radio--${k}`,r),as:o,css:n,size:c,color:d,"data-state":k,isSquared:m,isHovered:h,isInvalid:f,isChecked:x.checked,isDisabled:b,disableAnimation:y,children:[(0,St.jsxs)(Yu,{className:"nextui-radio-container",children:[(0,St.jsx)(Uu,{className:"nextui-radio-point",isFocusVisible:C,...S,children:(0,St.jsx)(Is,{children:(0,St.jsx)("input",{ref:u,className:"nextui-radio-input",...$n(x,S)})})}),(0,St.jsx)(Vu,{color:p,isInvalid:f,isDisabled:b,className:"nextui-radio-label",children:i})]}),a&&(0,St.jsx)(Ju,{className:"nextui-radio-description",isInvalid:f,isDisabled:b,children:a})]})}));Qu.toString=()=>".nextui-radio";const ep=Qu;Object.defineProperty({},"useRadioGroupState",{get:()=>op,set:void 0,enumerable:!0,configurable:!0});let tp=Math.round(1e10*Math.random()),rp=0;function op(e){let t=(0,g.useMemo)((()=>e.name||`radio-group-${tp}-${++rp}`),[e.name]),[r,o]=nn(e.value,e.defaultValue,e.onChange),[n,i]=(0,g.useState)(null);return{name:t,selectedValue:r,setSelectedValue:t=>{e.isReadOnly||e.isDisabled||o(t)},lastFocusedValue:n,setLastFocusedValue:i,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1}}const np=m().forwardRef(((e,t)=>{const{as:r,css:o,className:n,children:i,label:s,...a}=e,l=(e=>{const{size:t="md",color:r="default",labelColor:o="default",orientation:n="vertical",isRequired:i,validationState:s,...a}=e,l=(0,g.useMemo)((()=>({...a,orientation:n})),[a]),c=op(l),{radioGroupProps:d,labelProps:u}=ju(l,c);return{size:t,color:r,orientation:n,labelColor:o,isRequired:i,validationState:s,radioGroupState:c,radioGroupProps:d,labelProps:u}})({...a,label:s}),c=Al(t);return(0,St.jsxs)(qu,{ref:c,className:wt("nextui-radio-group",n),as:r,css:o,size:l.size,...l.radioGroupProps,children:[s&&(0,St.jsx)(Xu,{className:"nextui-radio-group-label",...l.labelProps,children:s}),(0,St.jsx)(Zu,{className:"nextui-radio-group-items",role:"presentation",isRow:"horizontal"===l.orientation,children:(0,St.jsx)(_u,{value:l,children:i})})]})}));np.toString=()=>".nextui-radio-group";const ip=np;ep.Group=ip;const sp=ep,ap=Oe("p",{variants:{weight:{hairline:{fontWeight:"$hairline"},thin:{fontWeight:"$thin"},light:{fontWeight:"$light"},normal:{fontWeight:"$normal"},medium:{fontWeight:"$medium"},semibold:{fontWeight:"$semibold"},bold:{fontWeight:"$bold"},extrabold:{fontWeight:"$extrabold"},black:{fontWeight:"$black"}}}}),lp=m().forwardRef(((e,r)=>{const{children:o,tag:n,color:i,transform:s,margin:a,size:l,css:c,...d}=e,u=Al(r),p=(0,g.useMemo)((()=>(e=>null!=t.find((t=>t===e)))(i)?"default"===i?"$text":`$${i}`:i),[i]),h=(0,g.useMemo)((()=>l?"number"==typeof l?`${l}px`:l:"inherit"),[l]),m=(0,g.useMemo)((()=>a?"number"==typeof a?`${l}px`:a:"inherit"),[a]);return(0,St.jsx)(ap,{ref:u,as:n,css:{color:p,fontSize:l?h:"",margin:m,tt:s,...c},...d,children:o})}));lp.toString=()=>".nextui-text-child";const cp=vt(m().memo(lp),{color:"default"}),dp=(e,t,r,o)=>{if(!e.length)return t;const n=e.slice(1,e.length);return(0,St.jsx)(cp,{tag:e[0],size:r,transform:o,children:dp(n,t,r)})},up=m().forwardRef(((e,t)=>{const{h1:r,h2:o,h3:n,h4:i,h5:s,h6:a,b:l,small:c,i:d,span:u,del:p,em:h,blockquote:m,transform:f,size:b,margin:$,children:y,...v}=e,x=Al(t),w={h1:r,h2:o,h3:n,h4:i,h5:s,h6:a,blockquote:m},S={span:u,small:c,b:l,em:h,i:d,del:p},C=Object.keys(w).filter((e=>w[e])),k=Object.keys(S).filter((e=>S[e])),E=(0,g.useMemo)((()=>C[0]?C[0]:k[0]?k[0]:"p"),[C,k]),P=k.filter((e=>e!==E)),T=(0,g.useMemo)((()=>P.length?dp(P,y,b,f):y),[P,y,b,f]);return(0,St.jsx)(cp,{ref:x,transform:f,tag:E,margin:$,size:b,...v,children:T})}));up.toString=()=>".nextui-text";const pp=vt(m().memo(up),{h1:!1,h2:!1,h3:!1,h4:!1,h5:!1,h6:!1,b:!1,small:!1,transform:"none",i:!1,span:!1,del:!1,em:!1,blockquote:!1,color:"default"}),hp=Oe("label",{WebkitTapHighlightColor:"transparent",d:"inline-block",verticalAlign:"center",whiteSpace:"nowrap",us:"none",transition:"$default",padding:"$1 0",position:"relative",cursor:"pointer","@motion":{transition:"none"},variants:{color:{default:{$$switchColor:"$colors$primary",$$switchColorShadow:"$colors$primaryShadow",$$switchColorHover:"$colors$primarySolidHover"},primary:{$$switchColor:"$colors$primary",$$switchColorShadow:"$colors$primaryShadow",$$switchColorHover:"$colors$primarySolidHover"},secondary:{$$switchColor:"$colors$secondary",$$switchColorShadow:"$colors$secondaryShadow",$$switchColorHover:"$colors$secondarySolidHover"},success:{$$switchColor:"$colors$success",$$switchColorShadow:"$colors$successShadow",$$switchColorHover:"$colors$successSolidHover"},warning:{$$switchColor:"$colors$warning",$$switchColorShadow:"$colors$warningShadow",$$switchColorHover:"$colors$warningSolidHover"},error:{$$switchColor:"$colors$error",$$switchColorShadow:"$colors$errorShadow",$$switchColorHover:"$colors$errorSolidHover"}},size:{xs:{$$switchWidth:"$space$12",$$switchHeight:"$space$9",width:" $$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},sm:{$$switchWidth:"$space$14",$$switchHeight:"$space$10",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},md:{$$switchWidth:"$space$15",$$switchHeight:"$space$11",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},lg:{$$switchWidth:"$space$17",$$switchHeight:"$space$12",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},xl:{$$switchWidth:"$space$18",$$switchHeight:"$space$13",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"}},borderWeight:{light:{$$switchBorderW:"$borderWeights$light"},normal:{$$switchBorderW:"$borderWeights$normal"},bold:{$$switchBorderW:"$borderWeights$bold"},extrabold:{$$switchBorderW:"$borderWeights$extrabold"},black:{$$switchBorderW:"$borderWeights$black"}},disabled:{true:{cursor:"not-allowed"}},animated:{false:{transition:"none"}}},defaultVariants:{color:"default",size:"md",borderWeight:"normal"}}),gp=Oe("input",{},ol),mp=Oe("span",{position:"absolute",display:"flex",size:"calc($$switchHeight * 0.7)",jc:"center",ai:"center",top:"50%",transform:"translateY(-50%)",left:"calc($$switchWidth / 15)",transition:"left 0.25s ease, width 0.2s ease",bg:"$background",br:"$pill","& svg":{bg:"transparent",size:"calc($$switchHeight * 0.44)"},"@motion":{transition:"none"}}),fp=Oe("div",{opacity:1,width:"$$switchWidth",height:"$$switchHeight",transition:"$default",position:"relative",overflow:"hidden",padding:0,br:"$pill",bg:"$accents2","@motion":{transition:"none"},variants:{checked:{true:{bg:"$$switchColor",[`& ${mp}`]:{left:"calc(100% - ($$switchWidth / 15) - $$switchHeight * 0.7)"},"&:hover:not(&:active)":{bg:"$$switchColorHover"}}},bordered:{true:{bg:"transparent",border:"$$switchBorderW solid $border","&:hover":{borderColor:"$$switchColor"},[`& ${mp}`]:{left:"calc(($$switchWidth / 15) - ($$switchBorderW / 2))",bg:"$accents2"}}},squared:{true:{br:"2px",[`& ${mp}`]:{br:"2px"}}},shadow:{true:{}},disabled:{true:{borderColor:"$accents2",bg:"$accents2",[`& ${mp}`]:{bg:"$accents4"}}},animated:{true:{"&:active":{[`& ${mp}`]:{width:"calc($$switchHeight * 0.7 + ($$switchWidth / 10))"}}},false:{transition:"none",[`& ${mp}`]:{transition:"none"}}}},compoundVariants:[{checked:!0,disabled:!0,css:{bg:"$accents3",[`& ${mp}`]:{bg:"$accents0"},"&:hover:not(&:active)":{bg:"$accents4"}}},{shadow:!0,checked:!0,css:{normalShadowVar:"$$switchColorShadow"}},{animated:!0,checked:!1,css:{"&:active":{[`& ${mp}`]:{left:"calc($$switchWidth / 7.5)"}}}},{animated:!0,checked:!0,css:{"&:active":{[`& ${mp}`]:{left:"calc(100% - ($$switchWidth / 5) - $$switchHeight * 0.7)"}}}},{checked:!0,bordered:!0,css:{bg:"$$switchColor",border:"$$switchBorderW solid transparent","&:hover:not(&:active)":{borderColor:"transparent"},[`& ${mp}`]:{left:"calc(100% - ($$switchWidth / 15) - $$switchHeight * 0.7 + ($$switchBorderW / 2))",bg:"$background"}}}]},el),bp=({initialChecked:e,checked:t,disabled:r,onChange:o,squared:n,bordered:i,shadow:s,icon:a,iconOn:l,iconOff:c,animated:d,preventDefault:u,...p})=>{const[h,m]=(0,g.useState)(e),f=(0,g.useCallback)((e=>{if(r)return;const t={target:{checked:!h},stopPropagation:e.stopPropagation,preventDefault:e.preventDefault,nativeEvent:e};m(!h),o&&o(t)}),[r,h,o]),{bindings:b}=mt((e=>{f(e)}),[ut.Enter,ut.Space],{disableGlobalEvent:!0,preventDefault:u}),$=(0,g.useMemo)((()=>{const e=a||l||c,t=Boolean(l),r=Boolean(c);return e?t&&h?l:r&&!h?c:e:null}),[h,a,l,c]);(0,g.useEffect)((()=>{void 0!==t&&m(t)}),[t]);const y=(0,g.useMemo)((()=>h?"checked":"unchecked"),[h]);return(0,St.jsxs)(hp,{"data-state":y,disabled:r,animated:d,...p,children:[(0,St.jsx)(gp,{tabIndex:-1,type:"checkbox",className:wt("nextui-switch-input"),"data-state":y,disabled:r,checked:h,onChange:f}),(0,St.jsx)(fp,{role:"switch",tabIndex:r?-1:0,checked:h,"aria-checked":h,"aria-disabled":r,animated:d,disabled:r,squared:n,bordered:i,shadow:s,"data-state":y,className:wt("nextui-switch",`nextui-switch--${y}`,{"nextui-switch-checked":h,"nextui-switch-disabled":r}),...b,children:(0,St.jsx)(mp,{className:"nextui-switch-circle",children:$})})]})};bp.toString=()=>".nextui-switch";const $p=vt(m().memo(bp),{disabled:!1,bordered:!1,shadow:!1,squared:!1,animated:!0,preventDefault:!0,initialChecked:!1}),yp=je({"0%":{opacity:0},"60%":{opacity:.75},"100%":{opacity:1}}),vp=Oe("div",{position:"relative",display:"inline-block",zIndex:"$max",outline:"none",width:"100%",margin:"$9 auto",verticalAlign:"middle","@sm":{width:"90%",maxWidth:"90%"},variants:{animated:{true:{"&":{animationName:yp,animationDuration:"200ms",animationTimingFunction:"ease-in",animationDirection:"normal"}},false:{transition:"none"}}}}),xp=Oe("div",{position:"fixed",top:0,left:0,right:0,bottom:0,size:"100%",pe:"none",zIndex:"$max","@motion":{transition:"none"},variants:{blur:{true:{bg:"$black",opacity:"$$backdropOpacity",transition:"opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1)","@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none))":{opacity:1,transition:"background 0.35s cubic-bezier(0.4, 0, 0.2, 1)",backdropFilter:"saturate(180%) blur(20px)",bg:"rgba(0, 0, 0, 0.1)"}},false:{bg:"$black",opacity:"$$backdropOpacity",transition:"opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1)"}},animated:{false:{transition:"none"}}}}),wp=Oe("div",{position:"fixed",top:0,left:0,right:0,bottom:0,overflow:"auto",zIndex:"$max",WebkitOverflowScrolling:"touch",boxSizing:"border-box",textAlign:"center","&:before":{content:"",display:"inline-block",width:0,height:"100%",verticalAlign:"middle"},".nextui-backdrop-wrapper-enter .nextui-backdrop-layer-default":{opacity:0},".nextui-backdrop-wrapper-enter-active .nextui-backdrop-layer-default":{opacity:"$$backdropOpacity"},".nextui-backdrop-wrapper-leave .nextui-backdrop-layer-default":{opacity:"$$backdropOpacity"},".nextui-backdrop-wrapper-leave-active .nextui-backdrop-layer-default":{opacity:0},".nextui-backdrop-wrapper-enter .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.1)"},".nextui-backdrop-wrapper-enter-active .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.4)"},".nextui-backdrop-wrapper-leave .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.4)"},".nextui-backdrop-wrapper-leave-active .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.1)"},variants:{fullScreen:{true:{display:"inline-flex",overflow:"hidden",[`& ${vp}`]:{width:"100vw",maxWidth:"100vw",height:"100vh",margin:0},[`& ${xp}`]:{display:"none"}}}},defaultVariants:{fullScreen:!1}}),Sp=m().memo((({children:e,onClick:t,onKeyPress:r,visible:o,maxWidth:n,blur:i,animated:s,opacity:a,preventDefault:l,className:c,css:d,...u})=>{const[,p,h]=f(!1),m=e=>{h.current||t&&t(e)},b=(0,g.useCallback)((e=>{e.stopPropagation()}),[]),$=()=>{if(!h.current)return;const e=setTimeout((()=>{p(!1),clearTimeout(e)}),0)},{bindings:y}=mt((e=>{r&&r(e)}),[ut.Escape,ut.Space],{disableGlobalEvent:!0,preventDefault:l}),v=(0,g.useMemo)((()=>o?"open":"closed"),[o]),x=(0,g.useMemo)((()=>(0,St.jsxs)(wp,{tabIndex:-1,role:"button","aria-hidden":!0,"data-state":v,onClick:m,onMouseUp:$,css:{$$backdropOpacity:a,...d},className:wt("nextui-backdrop",`nextui-backdrop--${v}`,c),...y,...u,children:[(0,St.jsx)(xp,{className:wt("nextui-backdrop-layer",i?"nextui-backdrop-layer-blur":"nextui-backdrop-layer-default"),animated:s,blur:i}),(0,St.jsx)(vp,{animated:s,className:"nextui-backdrop-content",onClick:b,css:{maxWidth:n},onMouseDown:()=>p(!0),children:e})]})),[e]);return(0,St.jsx)(St.Fragment,{children:s?(0,St.jsx)(Vd,{name:"nextui-backdrop-wrapper",visible:o,enterTime:20,leaveTime:20,clearTime:150,children:x}):o?x:null})}));Sp.toString=()=>".nextui-backdrop";const Cp=vt(Sp,{onClick:()=>{},visible:!1,blur:!1,animated:!0,preventDefault:!0,opacity:.5,className:""}),kp=Oe("div",{d:"inline-flex",p:"0 $sm",jc:"center",ai:"center",w:"max-content",maxWidth:"100%",transition:"transform 250ms ease 0ms, box-shadow 0.25s ease 0s","@motion":{transition:"none"}},tl,rl,nl),Ep=Oe("div",{ml:"$sm",d:"inline-flex",fd:"column",alignItems:"flex-start",whiteSpace:"nowrap"}),Pp=Oe("span",{fontSize:"$sm",color:"$text",lh:"$sm",tt:"capitalize",fontWeight:"$medium",maxW:"$60",to:"ellipsis",ov:"hidden"}),Tp=Oe("span",{fontSize:"$xs",color:"$accents7","*:first-child":{mt:0},"*:last-child":{mb:0}}),Ip=m().forwardRef(((e,t)=>{const{as:r,css:o,src:n,text:i,name:s,children:a,altText:l,color:c,squared:d,bordered:u,size:p,description:h,zoomed:g,pointer:m,...f}=e,b=Al(t),{isFocusVisible:$,focusProps:y}=El();return(0,St.jsxs)(kp,{ref:b,as:r,...$n(f,y),css:$n("button"===r?{borderRadius:"$xs",background:"none",appearance:"none",p:0,m:0,outline:"none",border:"none",cursor:"pointer"}:{},o),isFocusVisible:$,children:[(0,St.jsx)(Vl,{className:"nextui-user-avatar",src:n,color:c,squared:d,zoomed:g,pointer:m,bordered:u,text:i,size:p,alt:l}),(0,St.jsxs)(Ep,{className:"nextui-user-info",children:[(0,St.jsx)(Pp,{className:"nextui-user-name",children:s}),(0,St.jsx)(Tp,{className:"nextui-user-desc",children:h||a})]})]})}));Ip.toString=()=>".nextui-user";const Np=Ip,Mp=m().forwardRef(((e,t)=>{const{rel:r="noopener",color:o="primary",target:n="_blank",className:i,children:s,...a}=e;return(0,St.jsx)(Cu,{ref:t,rel:r,color:o,target:n,className:wt("nextui-user-link",i),...a,children:s})}));Mp.toString=()=>".nextui-user-link";const Rp=m().memo(Mp);Np.Link=Rp;const Ap=Np,Lp=je({"0%":{left:"-40%"},"100%":{left:"100%"}}),Bp=Oe("div",{margin:0,padding:0,width:"100%",position:"relative",overflow:"visible",variants:{color:{default:{$$progressColor:"$colors$primary",$$progressShadowColor:"$colors$primaryShadow"},primary:{$$progressColor:"$colors$primary",$$progressShadowColor:"$colors$primaryShadow"},secondary:{$$progressColor:"$colors$secondary",$$progressShadowColor:"$colors$secondaryShadow"},success:{$$progressColor:"$colors$success",$$progressShadowColor:"$colors$successShadow"},warning:{$$progressColor:"$colors$warning",$$progressShadowColor:"$colors$warningShadow"},error:{$$progressColor:"$colors$error",$$progressShadowColor:"$colors$errorShadow"},gradient:{$$progressColor:"$colors$gradient",$$progressShadowColor:"$colors$primaryShadow"}},status:{default:{bg:"$accents2"},primary:{bg:"$primaryLight"},secondary:{bg:"$secondaryLight"},success:{bg:"$successLight"},warning:{bg:"$warningLight"},error:{bg:"$errorLight"}},size:{xs:{$$progressHeight:"$space$2",height:"$$progressHeight",br:"$$progressHeight"},sm:{$$progressHeight:"$space$4",height:"$$progressHeight",br:"$$progressHeight"},md:{$$progressHeight:"$space$8",height:"$$progressHeight",br:"$$progressHeight"},lg:{$$progressHeight:"$space$10",height:"$$progressHeight",br:"$$progressHeight"},xl:{$$progressHeight:"$space$11",height:"$$progressHeight",br:"$$progressHeight"}},indeterminated:{true:{overflow:"hidden"}},squared:{true:{br:"calc($$progressHeight * 0.25)"}}},defaultVariants:{color:"default",status:"default",size:"md"}}),zp=Oe("div",{margin:0,padding:0,width:0,opacity:0,height:"100%",minWidth:"inherit",bg:"$$progressColor",br:"inherit",transition:"width 0.5s cubic-bezier(0.4, 0, 0.2, 1)","@motion":{transition:"none"},variants:{animated:{false:{transition:"none"}},shadow:{true:{normalShadowVar:"$$progressShadowColor"}},striped:{true:{backgroundImage:"linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent)",backgroundSize:"$space$lg $space$lg"}},indeterminated:{true:{position:"absolute",width:"0%",transitionProperty:"background-color, width, left, border-color,opacity, shadow, transform",transitionDuration:"300ms",willChange:"left",minWidth:"50%",animation:`1s ease 0s infinite normal none running ${Lp}`}}}}),Hp=({value:e,max:t,min:r,striped:o,animated:n,shadow:i,indeterminated:s,css:a,...l})=>{const c=(0,g.useMemo)((()=>e>t?t:e<r?r:e),[e,r,t]),d=(0,g.useMemo)((()=>function(e,t,r){return 100*(e-t)/(r-t)}(c,r,t)),[c,r,t]);return(0,St.jsx)(Bp,{role:"progressbar",indeterminated:s,css:{"nextui-progress-wrapper-enter":{opacity:0},".nextui-progress-wrapper-enter-active":{opacity:1,width:`${d}%`},...a},...l,children:(0,St.jsx)(Vd,{visible:!0,name:"nextui-progress-wrapper",enterTime:10,leaveTime:20,clearTime:300,children:(0,St.jsx)(zp,{className:wt("nextui-progress-bar",{"nextui-progress-striped":o,"nextui-progress-indeterminated":s}),"aria-valuenow":c,"aria-valuemin":r,"aria-valuemax":t,striped:o,animated:n,shadow:i,indeterminated:s,...l})})})};Hp.toString=()=>".nextui-progress";const Dp=vt(m().memo(Hp),{striped:!1,animated:!0,shadow:!1,indeterminated:!1,value:0,min:0,max:100}),Op=({size:e,fill:t,plain:r,width:o,height:n,className:i,...s})=>r?(0,St.jsx)("svg",{width:e||o,height:e||n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:i,...s,children:(0,St.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})}):(0,St.jsx)("svg",{width:e||o,height:e||n,viewBox:"0 0 24 24",className:i,...s,children:(0,St.jsx)("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:t})}),Kp=vt(g.memo(Op),{width:24,height:24,plain:!1,className:""}),Fp=je({"0%":{transform:"scale(0.95)"},"40%":{transform:"scale(1.02)"},"80%":{transform:"scale(0.98)"},"100%":{transform:"scale(1)"}}),jp=je({"0%":{opacity:0,transform:"scale(0.95)"},"60%":{opacity:.75,transform:"scale(1.02)"},"100%":{opacity:1,transform:"scale(1)"}}),_p=je({"0%":{opacity:1,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(0.95)"}}),Wp=Oe("div",{outline:"none",overflow:"hidden",width:0,height:0,opacity:0}),Vp=Oe("button",{position:"absolute",background:"transparent",border:"none",zIndex:"$1",top:"$space$3",right:"$space$2",margin:0,d:"inline-flex",ai:"center",height:"auto",cursor:"pointer",boxSizing:"border-box",transition:"$default",padding:"calc($space$sm * 0.5)",color:"$accents4",br:"$space$5",svg:{color:"currentColor"},"&:hover":{svg:{opacity:.8}},variants:{disabled:{true:{cursor:"not-allowed"}}}},el),Up=Oe("div",{display:"flex",flexShrink:0,ai:"center",ov:"hidden",color:"inherit",padding:"$sm $10",fs:"$xs",variants:{noPadding:{true:{padding:0}},autoMargin:{true:{"> *:first-child":{mt:0},"> *:last-child":{mb:0}}}}}),Gp=Oe("div",{display:"flex",flexDirection:"column",flex:"1 1 auto",padding:"$sm $10",oy:"auto",position:"relative",ta:"left",variants:{noPadding:{true:{flex:1,padding:0}},autoMargin:{true:{"> *:first-child":{mt:0},"> *":{mb:"$8"},"> *:last-child":{mb:0}}}}}),Jp=Oe("div",{d:"flex",flexWrap:"wrap",flexShrink:0,overflow:"hidden",color:"inherit",ai:"center",fs:"$xs",padding:"$sm $lg",variants:{noPadding:{true:{padding:0}},autoMargin:{true:{"> *":{m:"$2"}}}}}),Yp=Oe("section",{maxWidth:"100%",verticalAlign:"middle",overflow:"hidden",height:"fit-content(20em)",maxHeight:"inherit",display:"flex",outline:"none",flexDirection:"column",position:"relative",boxSizing:"border-box",color:"$foreground",br:"$lg",boxShadow:"$lg",bg:"$backgroundContrast",animationFillMode:"forwards","@motion":{transition:"none"},"&.nextui-modal-wrapper-enter:not(.nextui-modal-rendered)":{animationName:jp,animationDuration:"200ms",animationTimingFunction:"ease-in",animationDirection:"normal"},"&.nextui-modal-wrapper-leave":{animationName:_p,animationDuration:"50ms",animationTimingFunction:"ease-out"},variants:{fullScreen:{true:{size:"100%",maxHeight:"100%"},false:{"&.nextui-modal-rebound":{animationDuration:"250ms",animationName:Fp,animationTimingFunction:"ease",animationFillMode:"forwards"}}},scroll:{true:{maxHeight:"calc(100vh - 200px)"}},closeButton:{true:{paddingTop:"$lg",[`& ${Vp}`]:{svg:{size:"$10"}}}}},compoundVariants:[{scroll:!0,fullScreen:!0,css:{maxHeight:"100%"}}]}),Xp=({onClick:e,...t})=>(0,St.jsx)(Vp,{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),e&&e(t)},className:"nextui-modal-close-icon","aria-label":"Close",...t,children:(0,St.jsx)(Kp,{plain:!0,size:18,className:"nextui-modal-close-icon-svg",fill:"currentColor","aria-hidden":!0})});Xp.toString=()=>".nextui-modal-close-icon";const qp=m().memo(Xp),Zp=({className:e,children:t,visible:r,fullScreen:o,closeButton:n,rebound:i,animated:s,onCloseButtonClick:a,scroll:l,...c})=>{const d=(0,g.useRef)(null),u=(0,g.useRef)(null),p=(0,g.useRef)(null),[h,m]=(0,g.useState)(!1);(0,g.useEffect)((()=>{const e=setTimeout((()=>{m(!0),clearTimeout(e)}),300);return()=>clearTimeout(e)}),[]),(0,g.useEffect)((()=>{if(!r)return;const e=document.activeElement,t=((e,t)=>{if(!e||!t)return!1;let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1})(d.current,e);t||u.current&&u.current.focus()}),[r]);const f=e=>{const t=e.keyCode===ut.Tab;if(!r||!t)return;const o=document.activeElement;e.shiftKey?o===u.current&&p.current&&p.current.focus():o===p.current&&u.current&&u.current.focus()},b=()=>{a&&a()},$=(0,g.useMemo)((()=>r?"open":"closed"),[r]),y=(0,g.useMemo)((()=>(0,St.jsxs)(Yp,{role:"dialog",tabIndex:-1,"aria-modal":r,ref:d,"data-state":$,fullScreen:o,scroll:l,closeButton:n,className:wt("nextui-modal",`nextui-modal--${$}`,{"nextui-modal-fullscreen":o,"nextui-modal-with-close-button":n,"nextui-modal-rebound":i,"nextui-modal-rendered":h},e),...c,onKeyDown:f,children:[(0,St.jsx)(Wp,{role:"button",tabIndex:0,className:"nextui-modal-hide-tab","aria-hidden":"true",ref:u}),n&&(0,St.jsx)(qp,{onClick:b}),t,(0,St.jsx)(Wp,{role:"button",tabIndex:0,className:"nextui-modal-hide-tab","aria-hidden":"true",ref:p})]})),[i,t]);return(0,St.jsx)(St.Fragment,{children:s?(0,St.jsx)(Vd,{name:"nextui-modal-wrapper",visible:r,enterTime:20,leaveTime:20,clearTime:300,children:y}):r?y:null})};Zp.toString=()=>".nextui-modal-wrapper";const Qp=vt(Zp,{className:"",visible:!1,rebound:!1}),eh={},th=m().createContext(eh),rh=({children:e,onClose:t,onOpen:r,open:o,autoMargin:n,width:i,className:s,preventClose:a,blur:l,animated:c,fullScreen:d,noPadding:u,...p})=>{const h=et("modal"),[,m]=nt(null,{scrollLayer:!0}),[b,$,y]=f(!1),[v,x]=(0,g.useState)(!1),w=()=>{t&&t(),$(!1),m(!1)};(0,g.useEffect)((()=>{void 0!==o&&(o&&r&&r(),!o&&y.current&&t&&t(),$(o),m(o))}),[o]);const S=()=>{x(!0);const e=setTimeout((()=>{x(!1),clearTimeout(e)}),300)},{bindings:C}=mt((()=>{a?S():w()}),ut.Escape,{disableGlobalEvent:!0,preventDefault:!0}),k=(0,g.useMemo)((()=>({close:w,autoMargin:n,noPadding:u})),[]);return h?(0,Ss.createPortal)((0,St.jsx)(th.Provider,{value:k,children:(0,St.jsx)(Cp,{onClick:()=>{a?S():w()},visible:b,maxWidth:i,fullScreen:d,blur:l,animated:c,...C,children:(0,St.jsx)(Qp,{visible:b,onCloseButtonClick:w,className:s,fullScreen:d,rebound:v,animated:c,...p,children:e})})}),h):null};rh.toString=()=>".nextui-modal",rh.defaultProps={width:"400px",className:"",preventClose:!1,fullScreen:!1,closeButton:!1,animated:!0,blur:!1,scroll:!1,noPadding:!1};const oh=rh,nh=({children:e,className:t,justify:r,autoMargin:o,css:n,...i})=>{const{autoMargin:s,noPadding:a}=(0,g.useContext)(th),l=(0,g.useMemo)((()=>void 0!==s?s:o),[o,s]);return(0,St.jsx)(Up,{className:wt("nextui-modal-header",{"nextui-modal-header-auto-margin":l,"nextui-modal-header-no-padding":a},t),noPadding:a,autoMargin:l,css:{justifyContent:r,...n},...i,children:e})};nh.toString=()=>".nextui-modal-header";const ih=vt(m().memo(nh),{className:"",justify:"center",autoMargin:!0}),sh=({className:e,children:t,autoMargin:r,...o})=>{const{autoMargin:n,noPadding:i}=(0,g.useContext)(th),s=(0,g.useMemo)((()=>void 0!==n?n:r),[r,n]);return(0,St.jsx)(Gp,{className:wt("nextui-modal-body",{"nextui-modal-body-auto-margin":s,"nextui-modal-body-no-padding":i},e),autoMargin:s,noPadding:i,...o,children:t})};sh.toString=()=>".nextui-modal-body";const ah=vt(m().memo(sh),{className:"",autoMargin:!0}),lh=({children:e,className:t,justify:r,autoMargin:o,css:n,...i})=>{const{autoMargin:s,noPadding:a}=(0,g.useContext)(th),l=(0,g.useMemo)((()=>void 0!==s?s:o),[o,s]);return(0,St.jsx)(Jp,{className:wt("nextui-modal-footer",{"nextui-modal-footer-auto-margin":l,"nextui-modal-footer-no-padding":a},t),noPadding:a,autoMargin:l,css:{justifyContent:r,...n},...i,children:e})};lh.toString=()=>".nextui-modal-footer";const ch=vt(m().memo(lh),{className:"",justify:"flex-end",autoMargin:!0});oh.Header=ih,oh.Body=ah,oh.Footer=ch;const dh=oh,uh=(e=!1)=>{const[t,r,o]=f(e);return{visible:t,setVisible:r,currentRef:o,bindings:{open:t,onClose:()=>r(!1)}}},ph=je({"0%":{transform:"scale(1)"},"60%":{transform:"scale($$paginationScaleTransform)"},"100%":{transform:"scale(1)"}}),hh=Oe("svg",{color:"currentColor",stroke:"currentColor",variants:{isEllipsis:{true:{transform:"0deg"}},isBefore:{true:{}}},compoundVariants:[{isEllipsis:!0,isBefore:!0,css:{transform:"rotate(180deg)"}}]}),gh=Oe("svg",{transform:"rotate(180deg)",variants:{isPrev:{true:{transform:"rotate(0deg)"}}}}),mh=Oe("span",{position:"relative",display:"inline-flex",alignItems:"center",top:0,left:0,zIndex:"$2"}),fh=Oe("button",{border:"none",position:"relative",display:"inline-flex",margin:"0 $$paginationItemMargin",ai:"center",jc:"center",padding:0,boxSizing:"border-box",tt:"capitalize",us:"none",whiteSpace:"nowrap",ta:"center",verticalAlign:"middle",bs:"none",outline:"none",height:"$$paginationSize",minWidth:"$$paginationSize",fs:"inherit",cursor:"pointer",br:"$$paginationItemRadius",color:"$text",bg:"$accents0","@motion":{transition:"none"},"&:hover":{bg:"$accents1"},[`& ${gh}`]:{size:"$$paginationFontSize"},[`& ${hh}`]:{size:"$$paginationFontSize"},variants:{active:{true:{fontWeight:"$bold",cursor:"default",boxShadow:"$sm",[`& ${mh}`]:{color:"$white"}}},disabled:{true:{color:"$accents5",cursor:"not-allowed"}},bordered:{true:{bg:"transparent",border:"$$paginationItemBorderWeight solid $accents2"}},onlyDots:{true:{}},preserveContent:{true:{}},animated:{true:{transition:"transform 0.25s ease 0s, background 0.25s ease 0s, box-shadow 0.25s ease 0s"},false:{transition:"none"}}},compoundVariants:[{onlyDots:!0,preserveContent:!1,css:{[`& ${mh}`]:{display:"none"}}},{animated:!0,disabled:!1,active:!1,css:{"&:active":{transform:"scale($$paginationScaleTransform)",fs:"calc($$paginationFontSize * 0.9)"}}}]},el),bh=Oe("div",{position:"absolute",contain:"strict",top:"0px",zIndex:"$1",bg:"$$paginationColor",br:"$$paginationItemRadius",height:"$$paginationSize",minWidth:"$$paginationSize",animationName:`${ph}`,animationDirection:"normal","&.nextui-pagination-highlight--moving":{transform:"scale($$paginationScaleTransform)"},"@motion":{transition:"none","&.nextui-pagination-highlight--moving":{transform:"scale(1)"}},variants:{animated:{true:{animationDuration:"350ms",animationTimingFunction:"ease",transition:"left 350ms ease 0s, transform 300ms ease 0s"},false:{animationDuration:"none",animationTimingFunction:"none",transition:"none","&.nextui-pagination-highlight--moving":{transform:"scale(1)"}}},noMargin:{true:{br:"$squared"}},rounded:{true:{}},shadow:{true:{normalShadowVar:"$$paginationShadowColor"}}},compoundVariants:[{rounded:!0,noMargin:!0,css:{br:"$pill"}}]}),$h=Oe("nav",{m:0,p:0,d:"inline-flex",position:"relative",fontVariant:"tabular-nums",fontFeatureSettings:"tnum",variants:{color:{default:{$$paginationColor:"$colors$primary",$$paginationShadowColor:"$colors$primaryShadow"},primary:{$$paginationColor:"$colors$primary",$$paginationShadowColor:"$colors$primaryShadow"},secondary:{$$paginationColor:"$colors$secondary",$$paginationShadowColor:"$colors$secondaryShadow"},success:{$$paginationColor:"$colors$success",$$paginationShadowColor:"$colors$successShadow"},warning:{$$paginationColor:"$colors$warning",$$paginationShadowColor:"$colors$warningShadow"},error:{$$paginationColor:"$colors$error",$$paginationShadowColor:"$colors$errorShadow"},gradient:{$$paginationColor:"$colors$gradient",$$paginationShadowColor:"$colors$primaryShadow"}},size:{xs:{$$paginationWidth:"$space$10",$$paginationFontSize:"$space$5",fs:"$$paginationFontSize"},sm:{$$paginationWidth:"$space$12",$$paginationFontSize:"$space$6",fs:"$$paginationFontSize"},md:{$$paginationWidth:"$space$13",$$paginationFontSize:"$space$7",fs:"$$paginationFontSize"},lg:{$$paginationWidth:"$space$14",$$paginationFontSize:"$space$8",fs:"$$paginationFontSize"},xl:{$$paginationWidth:"$space$15",$$paginationFontSize:"$space$9",fs:"$$paginationFontSize"}},borderWeight:{light:{$$paginationItemBorderWeight:"$borderWeights$light"},normal:{$$paginationItemBorderWeight:"$borderWeights$normal"},bold:{$$paginationItemBorderWeight:"$borderWeights$bold"},extrabold:{$$paginationItemBorderWeight:"$borderWeights$extrabold"},black:{$$paginationItemBorderWeight:"$borderWeights$black"}},bordered:{true:{}},onlyDots:{true:{$$paginationSize:"calc($$paginationWidth / 2)",$$paginationItemRadius:"$radii$pill",$$paginationScaleTransform:1.05},false:{$$paginationSize:"$$paginationWidth",$$paginationScaleTransform:1.1}},rounded:{true:{$$paginationItemRadius:"$radii$pill"},false:{$$paginationItemRadius:"$radii$squared"}},noMargin:{true:{$$paginationItemRadius:"0px",$$paginationItemMargin:"0",[`& ${fh}:first-of-type`]:{btlr:"$squared",bblr:"$squared"},[`& ${fh}:last-of-type`]:{btrr:"$squared",bbrr:"$squared"}},false:{$$paginationItemMargin:"$space$1"}}},compoundVariants:[{bordered:!0,noMargin:!0,css:{[`& ${fh}:not(:last-child)`]:{borderRight:0}}},{noMargin:!0,rounded:!0,css:{$$paginationItemRadius:"0px"}},{rounded:!1,noMargin:!0,css:{$$paginationItemRadius:"0px"}}],defaultVariants:{color:"default",size:"md",borderWeight:"normal",onlyDots:!1,noMargin:!1,rounded:!1}}),yh=e=>{if(e)switch(e){case bt:return"dots element";case"<":return"previous page button";case">":return"next page button";case"first":return"first page button";case"last":return"last page button";default:return`${e} item`}},vh=({active:e,value:t,children:r,disabled:o,animated:n,bordered:i,onClick:s,onlyDots:a,preserveContent:l,...c})=>{const d=(0,g.useMemo)((()=>e?`${yh(t)} active`:yh(t)),[t,e]);return(0,St.jsx)(fh,{className:wt("nextui-pagination-item",{"nextui-pagination-item-active":e,"nextui-pagination-item-animated":n,"nextui-pagination-item-disabled":o,"nextui-pagination-item-bordered":i,"nextui-pagination-item-only-dots":a,"nextui-pagination-item-preserve-content":l}),animated:n,active:e,disabled:o,bordered:i,onlyDots:a,preserveContent:l,onClick:e=>{o||s&&s(e)},"aria-label":d,tabIndex:o?-1:0,...c,children:(0,St.jsx)(mh,{className:"nextui-pagination-item-content",children:r})})};vh.toString=()=>".nextui-pagination-item";const xh=vt(vh,{preserveContent:!1}),wh=({value:e,isBefore:t,onlyDots:r,animated:o,bordered:n,onClick:i})=>{const[s,a]=(0,g.useState)(!1);return(0,St.jsx)(xh,{value:e,onlyDots:r,animated:o,bordered:n,onClick:e=>i&&i(e),onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:s?(0,St.jsxs)(hh,{role:"presentation",focusable:"false",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",className:"nextui-pagination-ellipsis",isEllipsis:!0,isBefore:t,children:[(0,St.jsx)("path",{d:"M13 17l5-5-5-5"}),(0,St.jsx)("path",{d:"M6 17l5-5-5-5"})]}):(0,St.jsxs)(hh,{viewBox:"0 0 24 24",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",isEllipsis:!1,isBefore:t,children:[(0,St.jsx)("circle",{cx:"12",cy:"12",r:"1",fill:"currentColor"}),(0,St.jsx)("circle",{cx:"19",cy:"12",r:"1",fill:"currentColor"}),(0,St.jsx)("circle",{cx:"5",cy:"12",r:"1",fill:"currentColor"})]})})},Sh=({isPrev:e,disabled:t,onlyDots:r,animated:o,bordered:n,onClick:i,...s})=>(0,St.jsx)(xh,{preserveContent:!0,value:e?"<":">",bordered:n,animated:o,onlyDots:r,disabled:t,onClick:e=>i&&i(e),children:(0,St.jsx)(gh,{role:"presentation",focusable:"false",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"nextui-pagination-icon",isPrev:e,...s,children:(0,St.jsx)("path",{d:"M15.5 19l-7-7 7-7",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})});Sh.toString=()=>".nextui-pagination-icon";const Ch=m().memo(Sh),kh=({active:e,shadow:t,noMargin:r,rounded:o,css:n,...i})=>{const[s,a]=(0,g.useState)(e),[l,c]=(0,g.useState)("");(0,g.useEffect)((()=>{if(e!==s){a(e),c("nextui-pagination-highlight--moving");const t=setTimeout((()=>{c(""),clearTimeout(t)}),350)}}),[e]);const d=(0,g.useMemo)((()=>r?`var(--nextui--paginationSize) * ${s}`:`var(--nextui--paginationSize) * ${s} + ${4*s+2}px`),[s,r]);return(0,St.jsx)(bh,{"aria-hidden":!0,shadow:t,rounded:o,className:wt("nextui-pagination-highlight",l,{"nextui-pagination-highlight--rounded":o,"nextui-pagination-highlight--active":e,"nextui-pagination-highlight--no-margin":r,"nextui-pagination-highlight--shadow":t},i.className),noMargin:r,style:$n({"--nextui--paginationLeft":`calc(${d})`},(null==i?void 0:i.style)||{}),css:{left:"var(--nextui--paginationLeft)",...n},...i})};kh.toString=()=>".nextui-pagination-highlight";const Eh=kh,Ph=({page:e,initialPage:t,onlyDots:r,total:o,loop:n,siblings:i,boundaries:s,shadow:a,animated:l,bordered:c,dotsJump:d,controls:u,noMargin:p,onChange:h,rounded:m,...f})=>{const{range:b,active:$,setPage:y,previous:v,next:x,first:w,last:S}=$t({page:e,initialPage:t,siblings:r?10:i,boundaries:r?10:s,total:o,onChange:h}),C=(0,g.useCallback)(((e,t)=>{if(e===bt){const n=t<b.indexOf($);return(0,St.jsx)(wh,{value:e,bordered:c,animated:l,isBefore:n,onlyDots:r,onClick:()=>y(n?$-d>=1?$-d:1:$+d<=o?$+d:o)},`nextui-pagination-item-${e}-${t}`)}return(0,St.jsx)(xh,{value:e,animated:l,bordered:c,active:e===$,onClick:()=>e!==$&&y(e),onlyDots:r,children:e},`nextui-pagination-item-${e}-${t}`)}),[o,r,$,c,l]);return(0,St.jsxs)($h,{noMargin:p,bordered:c,rounded:m,onlyDots:r,className:wt("nextui-pagination",{"nextui-pagination--no-margin":p,"nextui-pagination--bordered":c,"nextui-pagination--shadow":a,"nextui-pagination--rounded":m}),...f,children:[u&&(0,St.jsx)(Ch,{isPrev:!0,bordered:c,animated:l,onlyDots:r,onClick:()=>n&&1===$?S():v(),disabled:!n&&1===$}),(0,St.jsx)(Eh,{noMargin:p,animated:l,shadow:a,rounded:m,active:u?b.indexOf($)+1:b.indexOf($)}),b.map(C),u&&(0,St.jsx)(Ch,{bordered:c,animated:l,onlyDots:r,onClick:()=>n&&$===o?w():x(),disabled:!n&&$===o})]})};Ph.defaultProps={shadow:!1,controls:!0,bordered:!1,initialPage:1,siblings:1,boundaries:1,dotsJump:5,total:1,loop:!1,animated:!0,onlyDots:!1,noMargin:!1,rounded:!1},Ph.toString=()=>".nextui-pagination";const Th=m().memo(Ph),Ih={disabled:!1,bordered:!1,readOnly:!1,clearable:!1,rounded:!1,animated:!0,underlined:!1,shadow:!0,fullWidth:!1,contentClickable:!1,contentRightStyling:!0,contentLeftStyling:!0,required:!1,width:"initial",size:"md",color:"default",helperColor:"default",status:"default",borderWeight:"normal",autoComplete:"off",className:"",placeholder:"",initialValue:""},Nh=Oe("div",{$$inputColor:"$colors$accents0",$$inputTextColor:"$colors$text",$$inputPlaceholderColor:"$colors$accents6",$$inputShadow:"$shadows$sm",$$inputBorderColor:"$colors$border",$$inputHoverBorderColor:"$colors$foreground",$$inputLabelColor:"$$inputHoverBorderColor",display:"inline-flex",flexDirection:"column",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitBoxAlign:"center",variants:{color:{default:{},primary:{$$inputHoverBorderColor:"$colors$primary",$$inputLabelColor:"$colors$primary"},secondary:{$$inputHoverBorderColor:"$colors$secondary",$$inputLabelColor:"$colors$secondary"},success:{$$inputHoverBorderColor:"$colors$success",$$inputLabelColor:"$colors$success"},warning:{$$inputHoverBorderColor:"$colors$warning",$$inputLabelColor:"$colors$warning"},error:{$$inputHoverBorderColor:"$colors$error",$$inputLabelColor:"$colors$error"}},status:{default:{},primary:{$$inputColor:"$colors$primaryLight",$$inputPlaceholderColor:"$colors$primaryLightContrast",$$inputTextColor:"$colors$primaryLightContrast",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$primary"},secondary:{$$inputColor:"$colors$secondaryLight",$$inputPlaceholderColor:"$colors$secondaryLightContrast",$$inputTextColor:"$colors$secondaryLightContrast",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$secondary"},success:{$$inputColor:"$colors$successLight",$$inputPlaceholderColor:"$colors$successLightContrast",$$inputTextColor:"$colors$successLightContrast",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$success"},warning:{$$inputColor:"$colors$warningLight",$$inputPlaceholderColor:"$colors$warningLightContrast",$$inputTextColor:"$colors$warningLightContrast",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$warning"},error:{$$inputColor:"$colors$errorLight",$$inputPlaceholderColor:"$colors$errorLightContrast",$$inputTextColor:"$colors$errorLightContrast",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$error"}},helperColor:{default:{$$inputHelperColor:"$colors$text"},primary:{$$inputHelperColor:"$colors$primary"},secondary:{$$inputHelperColor:"$colors$secondary"},success:{$$inputHelperColor:"$colors$success"},warning:{$$inputHelperColor:"$colors$warning"},error:{$$inputHelperColor:"$colors$error"}},borderWeight:{light:{$$inputBorderWeight:"$borderWeights$light"},normal:{$$inputBorderWeight:"$borderWeights$normal"},bold:{$$inputBorderWeight:"$borderWeights$bold"},extrabold:{$$inputBorderWeight:"$borderWeights$extrabold"},black:{$$inputBorderWeight:"$borderWeights$black"}},size:{xs:{$$inputBorderRadius:"$space$3",$$inputFontSize:"$fontSizes$xs",$$inputHeightRatio:"1.2",br:"$$inputBorderRadius"},sm:{$$inputBorderRadius:"$space$4",$$inputFontSize:"$fontSizes$xs",$$inputHeightRatio:"1.6",br:"$$inputBorderRadius"},md:{$$inputBorderRadius:"$space$6",$$inputFontSize:"$fontSizes$sm",$$inputHeightRatio:"2",br:"$$inputBorderRadius"},lg:{$$inputBorderRadius:"$space$7",$$inputFontSize:"$fontSizes$md",$$inputHeightRatio:"2.2",br:"$$inputBorderRadius"},xl:{$$inputBorderRadius:"$space$8",$$inputFontSize:"$fontSizes$lg",$$inputHeightRatio:"2.6",br:"$$inputBorderRadius"}},rounded:{true:{$$inputBorderRadius:"$radii$pill"}},disabled:{true:{$$inputColor:"$colors$accents1",$$inputTextColor:"$colors$accents7",$$inputPlaceholderColor:"$colors$accents7",$$inputShadow:"$shadows$sm"}}}}),Mh=Oe("div",{width:"100%",br:"$$inputBorderRadius","@motion":{transition:"none"},variants:{isTextarea:{false:{display:"inline-flex",alignItems:"center",height:"calc($$inputHeightRatio * $9)"}},focused:{true:{}},isReadOnly:{false:{}},underlined:{true:{}},animated:{true:{transition:"$default"},false:{transition:"none"}}},compoundVariants:[{isReadOnly:!1,underlined:!0,css:{transform:"none"}},{focused:!0,animated:!0,isReadOnly:!1,underlined:!1,css:{transform:"translateY(-$space$1)"}}]}),Rh=Oe("input",{padding:0,fontSize:"$$inputFontSize",bg:"transparent",border:"none",color:"$$inputTextColor",br:0,outline:"none",size:"100%",minWidth:0,WebkitAppearance:"none","::placeholder":{color:"$$inputPlaceholderColor",transition:"opacity 0.25s ease 0s",MozTransition:"opacity 0.25s ease 0s",MsTransition:"opacity 0.25s ease 0s",WebkitTransition:"opacity 0.25s ease 0s"},"@motion":{transition:"none","&::placeholder":{transition:"none"}},"&:disabled":{pe:"none",color:"$accents4",cursor:"not-allowed"},variants:{isTextarea:{true:{boxShadow:"none",display:"block",size:"100%",resize:"none",border:"none",outline:"none"}},focused:{true:{"&::placeholder":{opacity:0,transition:"opacity 0.25s ease 0s"}}},bordered:{true:{padding:"0 $3"}},rounded:{true:{padding:"0 $3"}},animated:{false:{transition:"none","::placeholder":{transition:"none"}}},hasLeftContent:{true:{ml:0}},hasRightContent:{true:{mr:0}}}}),Ah=Oe("div",{flex:1,position:"relative",br:"$$inputBorderRadius",bg:"$$inputColor",display:"inline-flex",verticalAlign:"middle",alignItems:"center",userSelect:"none","@motion":{transition:"none","&:before":{transition:"none"},"&:after":{transition:"none"}},variants:{focused:{true:{}},isReadOnly:{true:{}},bordered:{true:{bg:"transparent",border:"none",boxShadow:"0 0 0 $$inputBorderWeight $$inputBorderColor",transition:"box-shadow 0.25s ease"}},shadow:{true:{transition:"$default"}},disabled:{true:{cursor:"not-allowed"}},underlined:{true:{bg:"transparent",[`& ${Rh}`]:{margin:"$2 $3"},"&:before":{content:"",position:"absolute",zIndex:"$2",width:0,bottom:0,height:"$1",left:"50%",transform:"translate(-50%)",background:"$$inputHoverBorderColor",transition:"width 0.25s ease"},"&:after":{content:"",position:"absolute",zIndex:"$1",bottom:0,width:"100%",height:"$$inputBorderWeight",bg:"$$inputBorderColor"}},false:{[`& ${Rh}`]:{margin:"$2 $5"}}},animated:{false:{transition:"none","&:before":{transition:"none"},"&:after":{transition:"none"}}},isTextarea:{true:{boxSizing:"border-box",width:"100%",maxWidth:"100%",height:"auto"},false:{height:"100%"}}},compoundVariants:[{bordered:!0,underlined:!0,css:{boxShadow:"0 0 0 0px $$inputBorderColor"}},{focused:!0,underlined:!0,css:{"&:before":{width:"100%"}}},{focused:!0,shadow:!0,isReadOnly:!1,underlined:!1,css:{boxShadow:"$$inputShadow"}},{focused:!0,bordered:!0,isReadOnly:!1,underlined:!1,css:{boxShadow:"0 0 0 $$inputBorderWeight $$inputHoverBorderColor"}},{bordered:!0,isReadOnly:!1,underlined:!1,css:{"&:hover":{boxShadow:"0 0 0 $$inputBorderWeight $$inputHoverBorderColor"}}},{isTextarea:!0,underlined:!1,css:{[`& ${Rh}`]:{margin:"$xs $sm"}}}]}),Lh=Oe("div",{position:"absolute",opacity:0,bottom:"calc($$inputHeightRatio * -$space$5)","@motion":{transition:"none"},variants:{animated:{true:{transition:"opacity 0.25s ease"},false:{transition:"none"}},withValue:{true:{opacity:1}}}}),Bh=Oe("p",{margin:"$1 0 0 $5",fontSize:"$space$5",color:"$$inputHelperColor"}),zh=Oe("span",{},ol),Hh=Oe("label",{d:"block",fontWeight:"$normal",color:"$$inputLabelColor",p:"0 0 0 $2",mb:"$3",fs:"$$inputFontSize",lh:"$md",WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",us:"none","> *:first-child":{marginTop:0},"> *:last-child":{mb:0},"@motion":{transition:"none"},variants:{rounded:{true:{padding:"0 0 0 $3"}},asPlaceholder:{true:{position:"absolute",padding:0,zIndex:"$1",left:"$space$6",top:"20%",mb:0,cursor:"text",color:"$$inputPlaceholderColor",transition:"left 0.25s ease 0s, color 0.25s ease 0s, top 0.25s ease 0s"}},animated:{false:{transition:"none"}},focused:{true:{color:"$$inputHoverBorderColor"}},underlined:{true:{}},withValue:{true:{}},isTextarea:{true:{}},bordered:{true:{}},hasContentLeft:{true:{}}},compoundVariants:[{underlined:!0,asPlaceholder:!0,css:{left:"$space$2"}},{asPlaceholder:!0,focused:!0,underlined:!1,isTextarea:!1,css:{top:"-72%",left:"$2",cursor:"inherit"}},{asPlaceholder:!0,focused:!0,underlined:!0,isTextarea:!1,css:{top:"-72%",left:"0px",cursor:"inherit"}},{asPlaceholder:!0,withValue:!0,underlined:!1,isTextarea:!1,css:{color:"$$inputTextColor",top:"-72%",left:"$2",cursor:"inherit"}},{asPlaceholder:!0,withValue:!0,underlined:!0,isTextarea:!1,css:{color:"$$inputTextColor",top:"-72%",left:"0px",cursor:"inherit"}},{asPlaceholder:!0,isTextarea:!0,css:{top:"$5"}},{asPlaceholder:!0,hasContentLeft:!0,css:{left:"calc($space$6 + $$inputHeightRatio * $space$7)"}},{asPlaceholder:!0,isTextarea:!0,focused:!0,css:{top:"calc(-$space$10 - $space$3)",left:"$2"}},{asPlaceholder:!0,isTextarea:!0,withValue:!0,css:{top:"-$11"}},{asPlaceholder:!0,focused:!0,isTextarea:!0,bordered:!0,css:{top:"-$12"}}],defaultVariants:{asPlaceholder:!1}}),Dh=Oe("span",{position:"relative",display:"inline-flex",width:"initial",height:"100%",fontWeight:"$medium",ai:"center",pe:"none",margin:0,padding:"0 $sm",color:"$$inputPlaceholderColor",fontSize:"$$inputFontSize",lineHeight:"$xs",variants:{isRight:{true:{btrr:"$$inputBorderRadius",bbrr:"$$inputBorderRadius"},false:{btlr:"$$inputBorderRadius",bblr:"$$inputBorderRadius"}},isDark:{true:{}},isDefaultStatus:{true:{}},underlined:{true:{bg:"transparent"}},bordered:{true:{"&:after":{display:"none"},"&:before":{display:"none"}}}},compoundVariants:[{isRight:!0,underlined:!0,css:{borderLeftColor:"$$inputPlaceholderColor",borderLeftStyle:"solid",marginLeft:"$2",borderLeftWidth:"calc($$inputBorderWeight / 2)",height:"40%"}},{isRight:!1,underlined:!0,css:{borderRightColor:"$$inputPlaceholderColor",borderRightStyle:"solid",marginRight:"$2",borderRightWidth:"calc($$inputBorderWeight / 1)",height:"40%"}},{isDefaultStatus:!0,bordered:!1,underlined:!1,css:{bg:"$accents2"}},{isDefaultStatus:!0,bordered:!1,underlined:!1,isDark:!0,css:{color:"$accents6"}},{isDefaultStatus:!1,bordered:!0,underlined:!1,css:{bg:"$$inputColor"}},{bordered:!0,isRight:!0,css:{peddingRight:"$sm",paddingLeft:0}},{bordered:!0,isRight:!1,css:{peddingLeft:"$sm",paddingRight:0}}],defaultVariants:{isRight:!1}}),Oh=Oe("span",{variants:{applyStyles:{true:{display:"flex",boxSizing:"content-box",width:"calc($$inputHeightRatio * $space$4)",height:"100%",alignItems:"center",verticalAlign:"center",margin:0,padding:"0 calc($$inputHeightRatio * $3)",color:"$$inputTextColor",lineHeight:"$xs",position:"relative",cursor:"default",pe:"none"}},clickable:{true:{cursor:"pointer",pe:"auto"}}}}),Kh=Oe("button",{position:"absolute",right:0,margin:0,d:"inline-flex",ai:"center",border:"none",bg:"transparent",width:"auto",height:"auto",cursor:"pointer",boxSizing:"border-box",transition:"color 250ms ease 0s, transform 250ms ease 0s, opacity 250ms ease 0s",color:"$$inputPlaceholderColor",visibility:"hidden",transform:"translateX(20%)",opacity:0,"&:hover":{opacity:.85},svg:{color:"currentColor",size:"calc($space$5 * $$inputHeightRatio)"},"@motion":{transition:"none"},variants:{visible:{true:{visibility:"visible",transform:"translateX(0)",opacity:1}},underlined:{true:{padding:"0 $1"}},animated:{false:{transition:"none"}},hasContentRight:{true:{padding:0,position:"relative",transform:"translateX(30%)"}},disabled:{true:{cursor:"not-allowed","&:hover":{color:"$accents3"}}}}}),Fh=m().forwardRef((({as:e="input",label:t,labelPlaceholder:r,labelLeft:o,labelRight:n,size:i,helperText:s,color:a,helperColor:l,status:c,contentLeft:d,contentRight:u,contentClickable:p,contentLeftStyling:h,contentRightStyling:m,onContentClick:f,initialValue:b,onChange:$,readOnly:y,value:v,onClearClick:x,clearable:w,shadow:S,animated:C,required:k,width:E,className:P,onBlur:T,onFocus:I,autoComplete:N,placeholder:M,fullWidth:R,borderWeight:A,disabled:L,bordered:B,underlined:z,rounded:H,css:D,...O},K)=>{const F=(0,g.useRef)(null);(0,g.useImperativeHandle)(K,(()=>F.current));const[j,_]=(0,g.useState)(b),[W,V]=(0,g.useState)(!1),{isDark:U}=Ye(),G=(0,g.useMemo)((()=>void 0!==v),[v]),J=(0,g.useMemo)((()=>t||r),[t,r]),Y=(0,g.useMemo)((()=>r?"":M),[M,r]),X=(0,g.useMemo)((()=>R?"100%":E||"initial"),[R,E]),q=(e,t)=>{L||f&&f(e,t)};(0,g.useEffect)((()=>{G&&_(v)}));const Z=(0,g.useMemo)((()=>"textarea"===e),[e]),Q={...O,...G?{value:j}:{defaultValue:b}},{labelProps:ee,fieldProps:te}=Rc({...Q,label:J}),re=(0,g.useMemo)((()=>W?"hover":L?"disabled":y?"read-only":j?"with-value":"normal"),[W,L,y,j]);return(0,St.jsxs)(Nh,{color:a,"data-state":re,helperColor:l,borderWeight:A,status:c,size:i,rounded:H,disabled:L,css:{width:X,...D},className:wt("nextui-input-main-container",`nextui-input-main-container--${re}`),children:[J&&(0,St.jsx)(Hh,{id:ee.id,className:"nextui-input-block-label",htmlFor:ee.htmlFor,isTextarea:Z,underlined:z,animated:C,bordered:B,rounded:H,hasContentLeft:!!d,withValue:!!j,asPlaceholder:!!r,focused:W,children:J}),(0,St.jsx)(Mh,{animated:C,isTextarea:Z,underlined:z,isReadOnly:y,focused:W,className:wt("nextui-input-container",`nextui-input-container--${re}`,{"nextui-input-container--input":!Z,"nextui-input-container--textarea":Z,"nextui-input-container--read-only":y},P),children:(0,St.jsxs)(Ah,{as:J?"div":"label",animated:C,bordered:B,shadow:S,disabled:L,focused:W,isReadOnly:y,underlined:z,isTextarea:Z,className:wt("nextui-input-wrapper",`nextui-input-wrapper--${re}`,{"nextui-input-wrapper--bordered":B,"nextui-input-wrapper--underlined":z,"nextui-input-wrapper--shadow":S}),children:[!J&&M&&(0,St.jsx)(zh,{className:"nextui-input-placeholder",children:M}),o&&(0,St.jsx)(Dh,{className:"nextui-input-label--left",isDefaultStatus:"default"===c,underlined:z,bordered:B,isDark:U,children:o}),d&&(0,St.jsx)(Oh,{className:wt("nextui-input-content","nextui-input-content--left"),applyStyles:h,clickable:p,onClick:e=>q("left",e),children:d}),(0,St.jsx)(Rh,{type:"text",as:e,ref:F,className:wt({"nextui-input":!Z,"nextui-input-textarea":Z,"nextui-input-disabled":L,"nextui-input-rounded":H,"nextui-input-nextui-input-right-content":u,"nextui-input-left-content":d}),isTextarea:Z,focused:W,bordered:B,placeholder:Y,disabled:L,readOnly:y,required:k,onFocus:e=>{V(!0),I&&I(e)},onBlur:e=>{V(!1),T&&T(e)},onChange:e=>{L||y||(_(e.target.value),$&&$(e))},autoComplete:N,hasLeftContent:!!d,hasRightContent:!!u,"data-state":re,"aria-placeholder":Y,"aria-readonly":y,"aria-required":k,"aria-multiline":Z,...Q,...te}),w&&(0,St.jsx)(Kh,{type:"button",className:"nextui-input-clear-button",animated:C,underlined:z,visible:Boolean(j),hasContentRight:!!u,disabled:L||y,onClick:e=>{if(e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),_(""),x&&x(e),!F.current)return;const t=((e,t)=>({...t,target:e,currentTarget:e}))(F.current,e);t.target.value="",$&&$(t),F.current.focus()},children:(0,St.jsx)(Kp,{fill:"currentColor"})}),u&&(0,St.jsx)(Oh,{className:wt("nextui-input-content","nextui-input-content--right"),applyStyles:m,clickable:p,onClick:e=>q("right",e),children:u}),n&&(0,St.jsx)(Dh,{className:"nextui-input-label--right",isDefaultStatus:"default"===c,underlined:z,bordered:B,isRight:!0,isDark:U,children:n})]})}),(0,St.jsx)(Lh,{className:"nextui-input-helper-text-container",withValue:!!s,children:s&&(0,St.jsx)(Bh,{className:"nextui-input-helper-text",children:s})})]})}));Fh.displayName="NextUI.Input",Fh.defaultProps=Ih,Fh.toString=()=>".nextui-input";const jh=Fh,_h=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],Wh={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Vh="undefined"!=typeof document&&!!document.documentElement.currentStyle,Uh=e=>{Object.keys(Wh).forEach((t=>{e.style.setProperty(t,Wh[t],"important")}))};let Gh=null;const Jh=m().forwardRef(((e,t)=>{const r=(0,g.useRef)(null),o=m().useRef(0),n=m().useRef(),{cacheMeasurements:i,rows:s,maxRows:a,minRows:l,onChange:c,onHeightChange:d,css:u,...h}=e;Object.keys(h).forEach((e=>{p.indexOf(e)>-1&&delete h[e]}));const f=void 0!==h.value;(0,g.useImperativeHandle)(t,(()=>r.current));const b=()=>{const e=r.current,t=i&&n.current?n.current:(e=>{const t=window.getComputedStyle(e);if(null===t)return null;const r=(o=t,_h.reduce(((e,t)=>(e[t]=o[t],e)),{}));var o;const{boxSizing:n}=r;return""===n?null:(Vh&&"border-box"===n&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})})(e);if(!t)return;n.current=t;const[c,u]=((e,t,r=1,o=1/0)=>{Gh||(Gh=document.createElement("textarea"),Gh.setAttribute("tabindex","-1"),Gh.setAttribute("aria-hidden","true"),Uh(Gh)),null===Gh.parentNode&&document.body.appendChild(Gh);const{paddingSize:n,borderSize:i,sizingStyle:s}=e,{boxSizing:a}=s;Object.keys(s).forEach((e=>{const t=e;Gh.style[t]=s[t]})),Uh(Gh),Gh.value=t;let l=((e,t)=>{const r=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?r+t.borderSize:r-t.paddingSize})(Gh,e);Gh.value="x";const c=Gh.scrollHeight-n;let d=c*r;"border-box"===a&&(d=d+n+i),l=Math.max(d,l);let u=c*o;return"border-box"===a&&(u=u+n+i),l=Math.min(u,l),[l,c]})(t,e.value||e.placeholder||"x",s||l,s||a);o.current!==c&&(o.current=c,e.style.setProperty("height",`${c}px`,"important"),d&&d(c,{rowHeight:u}))};return"undefined"!=typeof document&&((0,g.useLayoutEffect)(b),y(b)),(0,St.jsx)(tg,{as:"textarea",ref:r,onChange:e=>{f||b(),c&&c(e)},css:{...u},...h})}));Jh.toString=()=>".nextui-textarea";const Yh=vt(Jh,{minRows:3,maxRows:6,cacheMeasurements:!0,initialValue:""}),Xh=({visible:e})=>(0,St.jsx)("svg",{viewBox:"0 0 24 24",width:"16",height:"16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",className:"nextui-input-password-icon",shapeRendering:"geometricPrecision",style:{color:"currentColor"},children:e?(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24"}),(0,St.jsx)("path",{d:"M1 1l22 22"})]}):(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,St.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}),qh=m().memo(Xh),Zh={...Ih,hideToggle:!1,visibleIcon:(0,St.jsx)(qh,{visible:!0}),hiddenIcon:(0,St.jsx)(qh,{visible:!1})},Qh=m().forwardRef((({hideToggle:e,visibleIcon:t,hiddenIcon:r,children:o,...n},i)=>{const s=(0,g.useRef)(null),[a,l]=(0,g.useState)(!1);(0,g.useImperativeHandle)(i,(()=>s.current));const c=()=>{l((e=>!e))},d=(0,g.useMemo)((()=>({...n,ref:s,className:wt("nextui-input-password",n.className),contentClickable:!0,onContentClick:c,type:a?"text":"password"})),[n,c,a,s]),u=(0,g.useMemo)((()=>e?null:a?t:r),[e,a,t,r]);return(0,St.jsx)(jh,{contentRight:u,...d,children:o})}));Qh.toString=()=>".nextui-input-password";const eg=vt(Qh,Zh);jh.Textarea=Yh,jh.Password=eg;const tg=jh;function rg(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}rg({},"Layout",(()=>og));class og{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}validate(e){}getInitialLayoutInfo(e){return e}getFinalLayoutInfo(e){return e}}rg({},"LayoutInfo",(()=>ng));class ng{copy(){let e=new ng(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}constructor(e,t,r){this.type=e,this.key=t,this.parentKey=null,this.rect=r,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}rg({},"Point",(()=>ig));class ig{copy(){return new ig(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return 0===this.x&&0===this.y}constructor(e=0,t=0){this.x=e,this.y=t}}rg({},"Rect",(()=>sg));class sg{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new ig(this.x,this.y)}get topRight(){return new ig(this.maxX,this.y)}get bottomLeft(){return new ig(this.x,this.maxY)}get bottomRight(){return new ig(this.maxX,this.maxY)}intersects(e){return this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}copy(){return new sg(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,r=0,o=0){this.x=e,this.y=t,this.width=r,this.height=o}}rg({},"Size",(()=>ag));class ag{copy(){return new ag(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}constructor(e=0,t=0){this.width=e,this.height=t}}rg({},"ReusableView",(()=>cg));let lg=0;class cg{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}constructor(e){this.virtualizer=e,this.key=++lg}}rg({},"useVirtualizerState",(()=>vg));let dg,ug="undefined"!=typeof window?window.performance:null,pg=ug&&(ug.now||ug.webkitNow||ug.msNow||ug.mozNow),hg=pg?pg.bind(ug):function(){return Date.now?Date.now():(new Date).getTime()};function gg(e){return Math.sin(e*Math.PI/2)}function mg(e,t){let r=new Set;for(let o of e.keys())t.has(o)||r.add(o);return r}class fg{addSample(e){this.count++,this.value+=(e-this.value)/this.count}constructor(){this.count=0,this.value=0}}class bg{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(this.averageTime.addSample(t),e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}collectMetrics(){let e=performance.now()-this.startTime;if(e<500&&this.averagePerf.addSample(e),this.visibleRect.height>0){let e=Math.abs(this.velocity.y*(this.averageTime.value+this.averagePerf.value));this.overscanY.addSample(e)}if(this.visibleRect.width>0){let e=Math.abs(this.velocity.x*(this.averageTime.value+this.averagePerf.value));this.overscanX.addSample(e)}}getOverscannedRect(){let e=this.visibleRect.copy(),t=100*Math.round(Math.min(2*this.visibleRect.height,this.overscanY.value)/100);this.velocity.y>0?(e.y-=.2*t,e.height+=t+.2*t):(e.y-=t,e.height+=t+.2*t);let r=100*Math.round(Math.min(2*this.visibleRect.width,this.overscanX.value)/100);return this.velocity.x>0?(e.x-=.2*r,e.width+=r+.2*r):(e.x-=r,e.width+=r+.2*r),e}constructor(){this.startTime=0,this.averagePerf=new fg,this.averageTime=new fg,this.velocity=new ig(5,5),this.overscanX=new fg,this.overscanY=new fg,this.visibleRect=new sg}}class $g{constructor(){this.level=0,this.actions=[],this.animated=!0,this.initialMap=new Map,this.finalMap=new Map,this.initialLayoutInfo=new Map,this.finalLayoutInfo=new Map,this.removed=new Map,this.toRemove=new Map}}class yg{_setContentSize(e){this._contentSize=e,this.delegate.setContentSize(e)}_setContentOffset(e){let t=new sg(e.x,e.y,this._visibleRect.width,this._visibleRect.height);this.delegate.setVisibleRect(t)}get contentSize(){return this._contentSize}get visibleRect(){return this._visibleRect}set visibleRect(e){this._setVisibleRect(e)}_setVisibleRect(e,t=!1){let r=this._visibleRect;if(e.equals(r))return;this.shouldOverscan&&this._overscanManager.setVisibleRect(e);let o=this.layout&&this.layout.shouldInvalidate(e,this._visibleRect);this._resetAnimatedContentOffset(),this._visibleRect=e,o?this.relayout({offsetChanged:!e.pointEquals(r),sizeChanged:!e.sizeEquals(r)}):this.updateSubviews(t)}get collection(){return this._collection}set collection(e){this._setData(e)}_setData(e){e!==this._collection&&(this._collection?this._runTransaction((()=>{this._collection=e}),this.transitionDuration>0):(this._collection=e,this.reloadData()))}reloadData(){this.relayout({contentChanged:!0})}getItem(e){return this._collection?this._collection.getItem(e):null}get layout(){return this._layout}set layout(e){this.setLayout(e)}setLayout(e,t=!1){if(e===this._layout)return;let r=()=>{this._layout&&(this._layout.virtualizer=null),e.virtualizer=this,this._layout=e};t?this._runTransaction(r):(r(),this.relayout())}_getReuseType(e,t){if("item"===e.type&&t){let r=this.delegate.getType?this.delegate.getType(t):"item";return{type:r,reuseType:"item"===r?"item":e.type+"_"+r}}return{type:e.type,reuseType:e.type}}getReusableView(e){let t=this.getItem(e.key),{reuseType:r}=this._getReuseType(e,t);this._reusableViews[r]||(this._reusableViews[r]=[]);let o=this._reusableViews[r],n=o.length>0?o.pop():new cg(this);return n.viewType=r,this._animatedContentOffset.isOrigin()||((e=e.copy()).rect.x+=this._animatedContentOffset.x,e.rect.y+=this._animatedContentOffset.y),n.layoutInfo=e,this._renderView(n),n}_renderView(e){let{type:t,key:r}=e.layoutInfo;e.content=this.getItem(r),e.rendered=this._renderContent(t,e.content)}_renderContent(e,t){let r=this._renderedContent.get(t);if(null!=r)return r;let o=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,o),o}get visibleViews(){return Array.from(this._visibleViews.values())}getView(e){return this._visibleViews.get(e)||null}getViewsOfType(e){return this.visibleViews.filter((t=>t.layoutInfo&&t.layoutInfo.type===e))}keyForView(e){return e&&e.layoutInfo?e.layoutInfo.key:null}keyAtPoint(e){let t=new sg(e.x,e.y,1,1),r=this.layout.getVisibleLayoutInfos(t)[0];return r?r.key:null}willUnmount(){cancelAnimationFrame(this._relayoutRaf)}relayout(e={}){this._scrollAnimation||"undefined"==typeof requestAnimationFrame||(this._invalidationContext?Object.assign(this._invalidationContext,e):(this._invalidationContext=e,this._relayoutRaf=requestAnimationFrame((()=>{this._relayoutRaf=null,this.relayoutNow()}))))}relayoutNow(e=this._invalidationContext||{}){if(this._relayoutRaf&&(cancelAnimationFrame(this._relayoutRaf),this._relayoutRaf=null,e={...this._invalidationContext,...e}),this._invalidationContext=null,!this.layout||!this._collection||this._scrollAnimation)return;let t=this._getScrollAnchor();"function"==typeof e.beforeLayout&&e.beforeLayout(),this.layout.validate(e),this._setContentSize(this.layout.getContentSize()),"function"==typeof e.afterLayout&&e.afterLayout();let r=this.getVisibleRect(),o=this._restoreScrollAnchor(t,e),n=e.contentChanged?0:o.x,i=e.contentChanged?0:o.y;n=Math.max(0,Math.min(this.contentSize.width-r.width,n)),i=Math.max(0,Math.min(this.contentSize.height-r.height,i));let s=!1;if(n!==r.x||i!==r.y?e.animated||!this._animatedContentOffset.isOrigin()?(this._animatedContentOffset.x+=r.x-n,this._animatedContentOffset.y+=r.y-i,s=this.updateSubviews(e.contentChanged)):this._setContentOffset(new ig(n,i)):s=this.updateSubviews(e.contentChanged),e.transaction&&e.animated||this._applyLayoutInfos(),e.animated&&s){this._enableTransitions();let t=()=>{if(this._disableTransitions(),!this._animatedContentOffset.isOrigin()){let{x:e,y:t}=this.getVisibleRect();this._resetAnimatedContentOffset(),this._setContentOffset(new ig(e,t))}"function"==typeof e.afterAnimation&&e.afterAnimation()};setTimeout(t,this.transitionDuration+100)}else"function"==typeof e.afterAnimation&&e.afterAnimation()}_correctItemOrder(){if(!this._isScrolling&&!this._transaction)for(let e of this._visibleLayoutInfos.keys()){let t=this._visibleViews.get(e);this._children.delete(t),this._children.add(t)}}_enableTransitions(){this.delegate.beginAnimations()}_disableTransitions(){this.delegate.endAnimations()}_getScrollAnchor(){if(!this.anchorScrollPosition)return null;let e=this.getVisibleRect();if(this.delegate.getScrollAnchor){let t=this.delegate.getScrollAnchor(e);if(null!=t){let r=this.layout.getLayoutInfo(t),o=r.rect.getCornerInRect(e);if(o)return{key:r.key,layoutInfo:r,corner:o,offset:r.rect[o].y-e.y}}}if(0===e.y&&!this.anchorScrollPositionAtTop)return null;let t=null;for(let[r,o]of this._visibleViews){let n=o.layoutInfo;if(n&&n.rect.area>0){let o=n.rect.getCornerInRect(e);if(o){let i=n.rect[o].y-e.y;(!t||i<t.offset)&&(t={key:r,layoutInfo:n,corner:o,offset:i})}}}return t}_restoreScrollAnchor(e,t){let r=this.getVisibleRect();if(e){var o;let n=(null===(o=t.transaction)||void 0===o?void 0:o.animated)?t.transaction.finalMap.get(e.key):this.layout.getLayoutInfo(e.layoutInfo.key);if(n){let t=n.rect[e.corner].y-r.y-e.offset;r.y+=t}}return r}getVisibleRect(){let e=this.visibleRect,t=e.x-this._animatedContentOffset.x,r=e.y-this._animatedContentOffset.y;return new sg(t,r,e.width,e.height)}getVisibleLayoutInfos(){let e=this.shouldOverscan?this._overscanManager.getOverscannedRect():this.getVisibleRect();return this._visibleLayoutInfos=this._getLayoutInfoMap(e),this._visibleLayoutInfos}_getLayoutInfoMap(e,t=!1){let r=this.layout.getVisibleLayoutInfos(e),o=new Map;for(let e of r)t&&(e=e.copy()),o.set(e.key,e);return o}updateSubviews(e=!1){if(!this._collection)return;let t,r,o,n=this.getVisibleLayoutInfos(),i=this._visibleViews;if(e)t=n,r=i,o=new Set;else{({toAdd:t,toRemove:r,toUpdate:o}=function(e,t){let r=mg(e,t),o=mg(t,e),n=new Set;for(let r of e.keys())t.has(r)&&n.add(r);return{toRemove:r,toAdd:o,toUpdate:n}}(i,n));for(let e of o){let s=i.get(e);if(!s||!s.layoutInfo)continue;let a=this.getItem(n.get(e).key);if(s.content===a)o.delete(e);else{let{reuseType:n}=this._getReuseType(s.layoutInfo,a);s.viewType!==n&&(o.delete(e),t.add(e),r.add(e))}}if(0===t.size&&0===r.size&&0===o.size)return void(this._transaction&&this._applyLayoutInfos())}let s=new Set;for(let e of r.keys()){let t=this._visibleViews.get(e);t&&(s.add(t),this._visibleViews.delete(e),this._transaction?this._transaction.toRemove.set(e,t):this.reuseView(t))}for(let e of t.keys()){let t,r=n.get(e);this._transaction&&(this._transaction.initialLayoutInfo.has(e)&&(r=this._transaction.initialLayoutInfo.get(e)),t=this._transaction.toRemove.get(e),t&&(this._transaction.toRemove.delete(e),this._applyLayoutInfo(t,r))),t||(t=this.getReusableView(r),s.has(t)||this._children.add(t)),this._visibleViews.set(e,t),s.delete(t)}for(let e of o){let t=i.get(e);this._renderedContent.delete(e),this._renderView(t)}this._transaction||this.removeViews(s),this._correctItemOrder(),this._flushVisibleViews();let a=this._transaction&&(t.size>0||r.size>0||this._hasLayoutUpdates());return a&&requestAnimationFrame((()=>{this._transaction&&requestAnimationFrame((()=>this._applyLayoutInfos()))})),a}afterRender(){this.shouldOverscan&&this._overscanManager.collectMetrics()}_flushVisibleViews(){let e=new Map([[null,[]]]);for(let t of this._children)e.has(t.layoutInfo.parentKey)||e.set(t.layoutInfo.parentKey,[]),e.get(t.layoutInfo.parentKey).push(t),e.has(t.layoutInfo.key)||e.set(t.layoutInfo.key,[]);let t=(r,o)=>o.map((o=>{let n=e.get(o.layoutInfo.key);return this.delegate.renderWrapper(r,o,n,(e=>t(o,e)))})),r=t(null,e.get(null));this.delegate.setVisibleViews(r)}_applyLayoutInfo(e,t){return e.layoutInfo!==t&&(e.layoutInfo=t,!0)}_applyLayoutInfos(){let e=!1;for(let t of this._visibleViews.values()){let r=t.layoutInfo;if(r){let o=this.layout.getLayoutInfo(r.key);this._applyLayoutInfo(t,o)&&(e=!0)}}if(this._transaction){for(let t of this._transaction.toRemove.values()){let r=t.layoutInfo,o=this.layout.getLayoutInfo(r.key);this._applyLayoutInfo(t,o)&&(e=!0)}for(let t of this._transaction.removed.values()){let r=t.layoutInfo,o=this._transaction.finalLayoutInfo.get(r.key)||r;o=this.layout.getFinalLayoutInfo(o.copy()),this._applyLayoutInfo(t,o)&&(e=!0)}}e&&this._flushVisibleViews()}_hasLayoutUpdates(){if(!this._transaction)return!1;for(let e of this._visibleViews.values()){let t=e.layoutInfo;if(!t)return!0;let r=this.layout.getLayoutInfo(t.key);if(!t.rect.equals(r.rect)||t.opacity!==r.opacity||t.transform!==r.transform)return!0}return!1}reuseView(e){e.prepareForReuse(),this._reusableViews[e.viewType].push(e)}removeViews(e){for(let t of e)this._children.delete(t)}updateItemSize(e,t){this.layout.updateItemSize&&(this._scrollAnimation?this._sizeUpdateQueue.set(e,t):this.layout.updateItemSize(e,t)&&this.relayout())}startScrolling(){this._isScrolling=!0}endScrolling(){this._isScrolling=!1,this._correctItemOrder(),this._flushVisibleViews()}_resetAnimatedContentOffset(){this._animatedContentOffset.isOrigin()||(this._animatedContentOffset=new ig(0,0),this._applyLayoutInfos())}scrollToItem(e,t){if(null==e)return;let r=this.layout.getLayoutInfo(e);if(!r)return;let{duration:o=300,shouldScrollX:n=!0,shouldScrollY:i=!0,offsetX:s=0,offsetY:a=0}=t,l=this.visibleRect.x,c=this.visibleRect.y,d=r.rect.x-s,u=r.rect.y-a,p=l+this.visibleRect.width,h=c+this.visibleRect.height;return n&&(d<=l||0===p?l=d:r.rect.maxX>p&&(l+=r.rect.maxX-p)),i&&(u<=c||0===h?c=u:r.rect.maxY>h&&(c+=r.rect.maxY-h)),this.scrollTo(new ig(l,c),o)}scrollTo(e,t=300){return this._scrollAnimation&&(this._scrollAnimation.cancel(),this._scrollAnimation=null),t<=0||this.visibleRect.pointEquals(e)?(this._setContentOffset(e),Promise.resolve()):(this.startScrolling(),this._scrollAnimation=function(e,t,r,o,n){let i,s=!1,a=new Promise((a=>{let l=hg(),c=t.x-e.x,d=t.y-e.y;i=requestAnimationFrame((function u(p){null==dg&&(dg=p>1e12!=hg()>1e12),dg&&(p=hg());let h=p-l;h>r?(n(t),a()):!1===n(new ig(e.x+c*o(h/r),e.y+d*o(h/r)))||s||(i=requestAnimationFrame(u))}))}));return a.cancel=function(){s=!0,cancelAnimationFrame(i)},a}(this.visibleRect,e,t,gg,(e=>{this._setContentOffset(e)})),this._scrollAnimation.then((()=>{this._scrollAnimation=null;for(let[e,t]of this._sizeUpdateQueue)this.updateItemSize(e,t);this._sizeUpdateQueue.clear(),this.relayout(),this._processTransactionQueue(),this.endScrolling()})),this._scrollAnimation)}_runTransaction(e,t){this._startTransaction(),this._nextTransaction&&this._nextTransaction.actions.push(e),this._endTransaction(t)}_startTransaction(){this._nextTransaction||(this._nextTransaction=new $g),this._nextTransaction.level++}_endTransaction(e){return!(!this._nextTransaction||(null!=e&&(this._nextTransaction.animated=e),--this._nextTransaction.level>0||(0===this._nextTransaction.actions.length?(this._nextTransaction=null,1):(null==this._nextTransaction.animated&&(this._nextTransaction.animated=!0),this._transactionQueue.push(this._nextTransaction),this._nextTransaction=null,this._processTransactionQueue(),0))))}_processTransactionQueue(){if(this._transaction||this._scrollAnimation)return;let e=this._transactionQueue.shift();e&&this._performTransaction(e)}_getContentRect(){return new sg(0,0,this.contentSize.width,this.contentSize.height)}_performTransaction(e){this._transaction=e,this.relayoutNow({transaction:e,animated:e.animated,beforeLayout:()=>{e.animated&&(e.initialMap=this._getLayoutInfoMap(this._getContentRect(),!0));for(let t of e.actions)t()},afterLayout:()=>{e.animated?(e.finalMap=this._getLayoutInfoMap(this._getContentRect()),this._setupTransactionAnimations(e)):this._transaction=null},afterAnimation:()=>{if(e.toRemove.size>0||e.removed.size>0)for(let t of function*(...e){for(let t of e)yield*t}(e.toRemove.values(),e.removed.values()))this._children.delete(t),this.reuseView(t);this._transaction=null,this._correctItemOrder(),this._flushVisibleViews(),this._processTransactionQueue()}})}_setupTransactionAnimations(e){let{initialMap:t,finalMap:r}=e;for(let[o,n]of t)r.has(o)?e.initialLayoutInfo.set(o,n):e.finalLayoutInfo.set(n.key,n);for(let[o,n]of r)if(!t.has(o)){let t=this.layout.getInitialLayoutInfo(n.copy());e.initialLayoutInfo.set(o,t)}for(let[t,o]of this._visibleViews)!r.has(t)&&o.layoutInfo.rect.width>0&&(e.removed.set(t,o),this._visibleViews.delete(t),o.layoutInfo&&(e.finalLayoutInfo.has(o.layoutInfo.key)||e.finalLayoutInfo.set(o.layoutInfo.key,o.layoutInfo)))}constructor(e={}){var t;this._contentSize=new ag,this._visibleRect=new sg,this._reusableViews={},this._visibleLayoutInfos=new Map,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._children=new Set,this._invalidationContext=null,this._overscanManager=new bg,this._scrollAnimation=null,this._isScrolling=!1,this._sizeUpdateQueue=new Map,this._animatedContentOffset=new ig(0,0),this._transaction=null,this._nextTransaction=null,this._transactionQueue=[],this.transitionDuration=null!==(t=e.transitionDuration)&&void 0!==t?t:500,this.anchorScrollPosition=e.anchorScrollPosition||!1,this.anchorScrollPositionAtTop=e.anchorScrollPositionAtTop||!1,this.shouldOverscan=!1!==e.shouldOverscan;for(let t of["delegate","size","layout","collection"])e[t]&&(this[t]=e[t])}}function vg(e){let[t,r]=(0,g.useState)([]),[o,n]=(0,g.useState)(new ag),[i,s]=(0,g.useState)(!1),[a,l]=(0,g.useState)(!1),c=(0,g.useMemo)((()=>new yg),[]);return c.delegate={setVisibleViews:r,setVisibleRect(t){c.visibleRect=t,e.onVisibleRectChange(t)},setContentSize:n,renderView:e.renderView,renderWrapper:e.renderWrapper,beginAnimations:()=>s(!0),endAnimations:()=>s(!1),getScrollAnchor:e.getScrollAnchor},c.layout=e.layout,c.collection=e.collection,c.transitionDuration=e.transitionDuration,pn((()=>{c.afterRender()})),(0,g.useEffect)((()=>()=>c.willUnmount()),[]),{virtualizer:c,visibleViews:t,setVisibleRect:(0,g.useCallback)((e=>{c.visibleRect=e}),[c]),contentSize:o,isAnimating:i,isScrolling:a,startScrolling:(0,g.useCallback)((()=>{c.startScrolling(),l(!0)}),[c]),endScrolling:(0,g.useCallback)((()=>{c.endScrolling(),l(!1)}),[c])}}function xg(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}var wg={};xg(wg,"announce",(()=>Eg)),xg(wg,"clearAnnouncer",(()=>Pg)),xg(wg,"destroyAnnouncer",(()=>Tg));let Sg=m().createRef(),Cg=null,kg=0;function Eg(e,t="assertive",r=7e3){Ig((o=>o.announce(e,t,r)))}function Pg(e){Ig((t=>t.clear(e)))}function Tg(){Sg.current&&(Cs().unmountComponentAtNode(Cg),document.body.removeChild(Cg),Cg=null)}function Ig(e){Sg.current?e(Sg.current):(Cg=document.createElement("div"),Cg.dataset.liveAnnouncer="true",document.body.prepend(Cg),Cs().render(m().createElement(Ng,{ref:Sg}),Cg,(()=>e(Sg.current))))}const Ng=m().forwardRef(((e,t)=>{let[r,o]=(0,g.useState)([]),[n,i]=(0,g.useState)([]),s=e=>{e&&"assertive"!==e||o([]),e&&"polite"!==e||i([])},a=(e,t="assertive",r=7e3)=>{let n=kg++;"assertive"===t?o((t=>[...t,{id:n,text:e}])):i((t=>[...t,{id:n,text:e}])),""!==e&&setTimeout((()=>{"assertive"===t?o((e=>e.filter((e=>e.id!==n)))):i((e=>e.filter((e=>e.id!==n))))}),r)};return(0,g.useImperativeHandle)(t,(()=>({announce:a,clear:s}))),m().createElement(g.Fragment,null,m().createElement(Mg,{"aria-live":"assertive"},r.map((e=>m().createElement("div",{key:e.id},e.text)))),m().createElement(Mg,{"aria-live":"polite"},n.map((e=>m().createElement("div",{key:e.id},e.text)))))}));function Mg({children:e,"aria-live":t}){return m().createElement(Is,{role:"log","aria-live":t,"aria-relevant":"additions"},e)}function Rg(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Ag(e){return ti()?e.altKey:e.ctrlKey}function Lg(e){return qn()?e.metaKey:e.ctrlKey}function Bg(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:o}=e,n=(0,g.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let i=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!i||e.ctrlKey||e.metaKey)return;" "===i&&n.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),n.search+=i;let s=t.getKeyForSearch(n.search,r.focusedKey);null==s&&(s=t.getKeyForSearch(n.search)),null!=s&&(r.setFocusedKey(s),o&&o(s)),clearTimeout(n.timeout),n.timeout=setTimeout((()=>{n.search=""}),500)}:null}}}function zg(e){let{selectionManager:t,keyboardDelegate:r,ref:o,autoFocus:n=!1,shouldFocusWrap:i=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,selectOnFocus:l="replace"===t.selectionBehavior,disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:u=!1,isVirtualized:p,scrollRef:h=o}=e,{direction:m}=Go(),f=(0,g.useRef)({top:0,left:0});ii(h,"scroll",p?null:()=>{f.current={top:h.current.scrollTop,left:h.current.scrollLeft}});const b=(0,g.useRef)(n);(0,g.useEffect)((()=>{if(b.current){let e=null;"first"===n&&(e=r.getFirstKey()),"last"===n&&(e=r.getLastKey());let i=t.selectedKeys;i.size&&(e=i.values().next().value),t.setFocused(!0),t.setFocusedKey(e),null!=e||d||al(o.current)}b.current=!1}),[]),(0,g.useEffect)((()=>{if(!p&&t.focusedKey&&(null==h?void 0:h.current)){let e=h.current.querySelector(`[data-key="${t.focusedKey}"]`);e&&ai(h.current,e)}}),[p,h,t.focusedKey]);let $,y={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!o.current.contains(e.target))return;const n=(r,o)=>{null!=r&&(t.setFocusedKey(r,o),e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):l&&!Ag(e)&&t.replaceSelection(r))};switch(e.key){case"ArrowDown":if(r.getKeyBelow){var c,d;e.preventDefault();let o=null!=t.focusedKey?r.getKeyBelow(t.focusedKey):null===(c=r.getFirstKey)||void 0===c?void 0:c.call(r);null==o&&i&&(o=null===(d=r.getFirstKey)||void 0===d?void 0:d.call(r,t.focusedKey)),n(o)}break;case"ArrowUp":if(r.getKeyAbove){var p,h;e.preventDefault();let o=null!=t.focusedKey?r.getKeyAbove(t.focusedKey):null===(p=r.getLastKey)||void 0===p?void 0:p.call(r);null==o&&i&&(o=null===(h=r.getLastKey)||void 0===h?void 0:h.call(r,t.focusedKey)),n(o)}break;case"ArrowLeft":r.getKeyLeftOf&&(e.preventDefault(),n(r.getKeyLeftOf(t.focusedKey),"rtl"===m?"first":"last"));break;case"ArrowRight":r.getKeyRightOf&&(e.preventDefault(),n(r.getKeyRightOf(t.focusedKey),"rtl"===m?"last":"first"));break;case"Home":if(r.getFirstKey){e.preventDefault();let o=r.getFirstKey(t.focusedKey,Lg(e));t.setFocusedKey(o),Lg(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(o):l&&t.replaceSelection(o)}break;case"End":if(r.getLastKey){e.preventDefault();let o=r.getLastKey(t.focusedKey,Lg(e));t.setFocusedKey(o),Lg(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(o):l&&t.replaceSelection(o)}break;case"PageDown":r.getKeyPageBelow&&(e.preventDefault(),n(r.getKeyPageBelow(t.focusedKey)));break;case"PageUp":r.getKeyPageAbove&&(e.preventDefault(),n(r.getKeyPageAbove(t.focusedKey)));break;case"a":Lg(e)&&"multiple"===t.selectionMode&&!0!==a&&(e.preventDefault(),t.selectAll());break;case"Escape":e.preventDefault(),s||t.clearSelection();break;case"Tab":if(!u){if(e.shiftKey)o.current.focus();else{let e,t,r=Sl(o.current,{tabbable:!0});do{t=r.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&Cn(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target))if(t.setFocused(!0),null==t.focusedKey){let i=e=>{null!=e&&(t.setFocusedKey(e),l&&t.replaceSelection(e))},s=e.relatedTarget;var o,n;s&&e.currentTarget.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?i(null!==(o=t.lastSelectedKey)&&void 0!==o?o:r.getLastKey()):i(null!==(n=t.firstSelectedKey)&&void 0!==n?n:r.getFirstKey())}else if(!p){h.current.scrollTop=f.current.top,h.current.scrollLeft=f.current.left;let e=h.current.querySelector(`[data-key="${t.focusedKey}"]`);e&&(Cn(e),ai(h.current,e))}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){e.currentTarget.contains(e.target)&&e.preventDefault()}},{typeSelectProps:v}=Bg({keyboardDelegate:r,selectionManager:t});return c||(y=$n(v,y)),d||($=null==t.focusedKey?0:-1),{collectionProps:{...y,tabIndex:$}}}function Hg(e){let{selectionManager:t,key:r,ref:o,shouldSelectOnPressUp:n,isVirtualized:i,shouldUseVirtualFocus:s,focus:a,isDisabled:l,onAction:c,allowsDifferentPressOrigin:d}=e,u=e=>{if("keyboard"===e.pointerType&&Ag(e))t.toggleSelection(r);else{if("none"===t.selectionMode)return;"single"===t.selectionMode?t.isSelected(r)&&!t.disallowEmptySelection?t.toggleSelection(r):t.replaceSelection(r):e&&e.shiftKey?t.extendSelection(r):"toggle"===t.selectionBehavior||e&&(Lg(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(r):t.replaceSelection(r)}},p=r===t.focusedKey;(0,g.useEffect)((()=>{p&&t.isFocused&&!s&&document.activeElement!==o.current&&(a?a():al(o.current))}),[o,p,t.focusedKey,t.childFocusStrategy,t.isFocused,s]);let h={};s||(h={tabIndex:p?0:-1,onFocus(e){e.target===o.current&&t.setFocusedKey(r)}});let m=(0,g.useRef)(null),f=c&&"none"===t.selectionMode,b=c&&"none"!==t.selectionMode&&"replace"===t.selectionBehavior,$=!l&&t.canSelectItem(r),y={};n?(y.onPressStart=e=>{m.current=e.pointerType,"keyboard"===e.pointerType&&u(e)},d?(y.onPressUp=e=>{"keyboard"!==e.pointerType&&u(e)},y.onPress=f?()=>c():null):y.onPress=e=>{"keyboard"!==e.pointerType&&u(e),f&&c()}):(y.onPressStart=e=>{m.current=e.pointerType,"touch"!==e.pointerType&&"virtual"!==e.pointerType&&u(e)},y.onPress=e=>{("touch"===e.pointerType||"virtual"===e.pointerType||f)&&(f||b?c():u(e))}),i||(h["data-key"]=r),y.preventFocusOnPress=s;let{pressProps:v,isPressed:x}=Mi(y),w=b?e=>{"mouse"===m.current&&(e.stopPropagation(),e.preventDefault(),c())}:void 0,{longPressProps:S}=ws({isDisabled:!b,onLongPress(e){"touch"===e.pointerType&&(u(e),t.setSelectionBehavior("toggle"))}}),C=b?e=>{"Enter"===e.key&&c()}:void 0;return{itemProps:$n(h,$||f?v:{},b?S:{},{onKeyUp:C,onDoubleClick:w}),isPressed:x}}Rg({},"useSelectableCollection",(()=>zg)),Rg({},"useTypeSelect",(()=>Bg)),Rg({},"useSelectableItem",(()=>Hg)),Rg({},"useSelectableList",(()=>Og)),Rg({},"ListKeyboardDelegate",(()=>Dg));class Dg{getKeyBelow(e){for(e=this.collection.getKeyAfter(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getKeyAbove(e){for(e=this.collection.getKeyBefore(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getFirstKey(){let e=this.collection.getFirstKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getKeyPageAbove(e){let t=this.ref.current,r=this.getItem(e);if(!r)return null;let o=Math.max(0,r.offsetTop+r.offsetHeight-t.offsetHeight);for(;r&&r.offsetTop>o;)e=this.getKeyAbove(e),r=this.getItem(e);return e}getKeyPageBelow(e){let t=this.ref.current,r=this.getItem(e);if(!r)return null;let o=Math.min(t.scrollHeight,r.offsetTop-r.offsetHeight+t.offsetHeight);for(;r&&r.offsetTop<o;)e=this.getKeyBelow(e),r=this.getItem(e);return e}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,o=t||this.getFirstKey();for(;null!=o;){let t=r.getItem(o),n=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(n,e))return o;o=this.getKeyBelow(o)}return null}constructor(e,t,r,o){this.collection=e,this.disabledKeys=t,this.ref=r,this.collator=o}}function Og(e){let{selectionManager:t,collection:r,disabledKeys:o,ref:n,keyboardDelegate:i,autoFocus:s,shouldFocusWrap:a,isVirtualized:l,disallowEmptySelection:c,selectOnFocus:d=!1,disallowTypeAhead:u,shouldUseVirtualFocus:p,allowsTabNavigation:h}=e,m=Qo({usage:"search",sensitivity:"base"}),f=(0,g.useMemo)((()=>i||new Dg(r,o,n,m)),[i,r,o,n,m]),{collectionProps:b}=zg({ref:n,selectionManager:t,keyboardDelegate:f,autoFocus:s,shouldFocusWrap:a,disallowEmptySelection:c,selectOnFocus:d,disallowTypeAhead:u,shouldUseVirtualFocus:p,allowsTabNavigation:h,isVirtualized:l,scrollRef:n});return{listProps:b}}function Kg(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Fg(e){return e&&e.__esModule?e.default:e}Kg({},"GridKeyboardDelegate",(()=>jg));class jg{isCell(e){return"cell"===e.type}isRow(e){return"row"===e.type||"item"===e.type}findPreviousKey(e,t){let r=null!=e?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;null!=r;){let e=this.collection.getItem(r);if(!t||t(e))return r;r=this.collection.getKeyBefore(r)}}findNextKey(e,t){let r=null!=e?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;null!=r;){let e=this.collection.getItem(r);if(!t||t(e))return r;r=this.collection.getKeyAfter(r)}}getKeyBelow(e){let t=this.collection.getItem(e);if(t&&(this.isCell(t)&&(e=t.parentKey),null!=(e=this.findNextKey(e)))){if(this.isCell(t))return[...this.collection.getItem(e).childNodes][t.index].key;if("row"===this.focusMode)return e}}getKeyAbove(e){let t=this.collection.getItem(e);if(t&&(this.isCell(t)&&(e=t.parentKey),null!=(e=this.findPreviousKey(e)))){if(this.isCell(t))return[...this.collection.getItem(e).childNodes][t.index].key;if("row"===this.focusMode)return e}}getKeyRightOf(e){let t=this.collection.getItem(e);if(t){if(this.isRow(t)){let e=[...t.childNodes];return"rtl"===this.direction?e[e.length-1].key:e[0].key}if(this.isCell(t)){let r=[...this.collection.getItem(t.parentKey).childNodes],o="rtl"===this.direction?r[t.index-1]:r[t.index+1];return o?o.key:"row"===this.focusMode?t.parentKey:"rtl"===this.direction?this.getFirstKey(e):this.getLastKey(e)}}}getKeyLeftOf(e){let t=this.collection.getItem(e);if(t){if(this.isRow(t)){let e=[...t.childNodes];return"rtl"===this.direction?e[0].key:e[e.length-1].key}if(this.isCell(t)){let r=[...this.collection.getItem(t.parentKey).childNodes],o="rtl"===this.direction?r[t.index+1]:r[t.index-1];return o?o.key:"row"===this.focusMode?t.parentKey:"rtl"===this.direction?this.getLastKey(e):this.getFirstKey(e)}}}getFirstKey(e,t){let r;if(null!=e){if(r=this.collection.getItem(e),!r)return;if(this.isCell(r)&&!t)return[...this.collection.getItem(r.parentKey).childNodes][0].key}return(null!=(e=this.findNextKey())&&r&&this.isCell(r)&&t||"cell"===this.focusMode)&&(e=[...this.collection.getItem(e).childNodes][0].key),e}getLastKey(e,t){let r;if(null!=e){if(r=this.collection.getItem(e),!r)return;if(this.isCell(r)&&!t){let e=[...this.collection.getItem(r.parentKey).childNodes];return e[e.length-1].key}}if(null!=(e=this.findPreviousKey())&&r&&this.isCell(r)&&t||"cell"===this.focusMode){let t=[...this.collection.getItem(e).childNodes];e=t[t.length-1].key}return e}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getItemRect(e){var t;if(this.layout)return null===(t=this.layout.getLayoutInfo(e))||void 0===t?void 0:t.rect;let r=this.getItem(e);return r?new sg(r.offsetLeft,r.offsetTop,r.offsetWidth,r.offsetHeight):void 0}getPageHeight(){var e,t,r;return this.layout?null===(e=this.layout.virtualizer)||void 0===e?void 0:e.visibleRect.height:null===(t=this.ref)||void 0===t||null===(r=t.current)||void 0===r?void 0:r.offsetHeight}getContentHeight(){var e,t;return this.layout?this.layout.getContentSize().height:null===(e=this.ref)||void 0===e||null===(t=e.current)||void 0===t?void 0:t.scrollHeight}getKeyPageAbove(e){let t=this.getItemRect(e);if(!t)return null;let r=Math.max(0,t.maxY-this.getPageHeight());for(;t&&t.y>r;)e=this.getKeyAbove(e),t=this.getItemRect(e);return e}getKeyPageBelow(e){let t=this.getItemRect(e);if(!t)return null;let r=this.getPageHeight(),o=Math.min(this.getContentHeight(),t.y+r);for(;t&&t.maxY<o;){let r=this.getKeyBelow(e);t=this.getItemRect(r),null!=r&&(e=r)}return e}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,o=null!=t?t:this.getFirstKey(),n=r.getItem(o);"cell"===n.type&&(o=n.parentKey);let i=!1;for(;null!=o;){let t=r.getItem(o);if(t.textValue){let r=t.textValue.slice(0,e.length);if(0===this.collator.compare(r,e))return this.isRow(t)&&"cell"===this.focusMode?[...t.childNodes][0].key:t.key}o=this.findNextKey(o),null!=o||i||(o=this.getFirstKey(),i=!0)}return null}constructor(e){this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.ref=e.ref,this.direction=e.direction,this.collator=e.collator,this.layout=e.layout,this.focusMode=e.focusMode||"row"}}Kg({},"useGrid",(()=>km));const _g=new WeakMap;var Wg,Vg,Ug,Gg,Jg,Yg,Xg,qg,Zg,Qg,em,tm,rm,om,nm,im,sm,am,lm,cm,dm,um,pm,hm,gm,mm,fm,bm,$m,ym,vm,xm,wm,Sm,Cm;function km(e,t,r){let{isVirtualized:o,keyboardDelegate:n,focusMode:i,getRowText:s=(e=>{var r;return null===(r=t.collection.getItem(e))||void 0===r?void 0:r.textValue}),scrollRef:a,onRowAction:l,onCellAction:c}=e,d=Yo(Fg(Wg));e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let u=Qo({usage:"search",sensitivity:"base"}),{direction:p}=Go(),h=(0,g.useMemo)((()=>n||new jg({collection:t.collection,disabledKeys:t.disabledKeys,ref:r,direction:p,collator:u,focusMode:i})),[n,t.collection,t.disabledKeys,r,p,u,i]),{collectionProps:m}=zg({ref:r,selectionManager:t.selectionManager,keyboardDelegate:h,isVirtualized:o,scrollRef:a}),f=gn();_g.set(t,{keyboardDelegate:h,actions:{onRowAction:l,onCellAction:c}});let b=function(e){let t=Yo(Fg(Wg)),r=is(),o=("pointer"===r||"virtual"===r||null==r)&&"undefined"!=typeof window&&"ontouchstart"in window;return Gn((0,g.useMemo)((()=>{let r,n=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior;return o&&(r=t("longPressToSelect")),"replace"===i&&"none"!==n&&e.hasItemActions?r:void 0}),[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,o]))}({selectionManager:t.selectionManager,hasItemActions:!(!l&&!c)}),$=$n(Sn(e,{labelable:!0}),{role:"grid",id:f,"aria-multiselectable":"multiple"===t.selectionManager.selectionMode?"true":void 0},m,b);o&&($["aria-rowcount"]=t.collection.size,$["aria-colcount"]=t.collection.columnCount);let y=t.selectionManager.rawSelection,v=(0,g.useRef)(y);return Hn((()=>{var e;if(!t.selectionManager.isFocused)return void(v.current=y);let r=Em(y,v.current),o=Em(v.current,y),n="replace"===t.selectionManager.selectionBehavior,i=[];if(1===t.selectionManager.selectedKeys.size&&n){if(t.collection.getItem(t.selectionManager.selectedKeys.keys().next().value)){let e=s(t.selectionManager.selectedKeys.keys().next().value);e&&i.push(d("selectedItem",{item:e}))}}else if(1===r.size&&0===o.size){let e=s(r.keys().next().value);e&&i.push(d("selectedItem",{item:e}))}else if(1===o.size&&0===r.size&&t.collection.getItem(o.keys().next().value)){let e=s(o.keys().next().value);e&&i.push(d("deselectedItem",{item:e}))}"multiple"===t.selectionManager.selectionMode&&(0===i.length||"all"===y||y.size>1||"all"===v.current||(null===(e=v.current)||void 0===e?void 0:e.size)>1)&&i.push("all"===y?d("selectedAll"):d("selectedCount",{count:y.size})),i.length>0&&Eg(i.join(" ")),v.current=y}),[y]),{gridProps:$}}function Em(e,t){let r=new Set;if("all"===e||"all"===t)return r;for(let o of e.keys())t.has(o)||r.add(o);return r}function Pm(){return{rowGroupProps:{role:"rowgroup"}}}function Tm(e,t,r){let{node:o,isVirtualized:n,shouldSelectOnPressUp:i,onAction:s}=e,{actions:{onRowAction:a}}=_g.get(t),{itemProps:l,isPressed:c}=Hg({selectionManager:t.selectionManager,key:o.key,ref:r,isVirtualized:n,shouldSelectOnPressUp:i,onAction:a?()=>a(o.key):s}),d=t.selectionManager.isSelected(o.key),u={role:"row","aria-selected":"none"!==t.selectionManager.selectionMode?d:void 0,...l};return n&&(u["aria-rowindex"]=o.index+1),{rowProps:u,isPressed:c}}function Im(e,t,r){let{node:o,isVirtualized:n,focusMode:i="child",shouldSelectOnPressUp:s,onAction:a}=e,{direction:l}=Go(),{keyboardDelegate:c,actions:{onCellAction:d}}=_g.get(t),u=()=>{let e=Sl(r.current);if("child"===i){let r="last"===t.selectionManager.childFocusStrategy?Nm(e):e.firstChild();if(r)return void al(r)}r.current.contains(document.activeElement)||al(r.current)},{itemProps:p,isPressed:h}=Hg({selectionManager:t.selectionManager,key:o.key,ref:r,isVirtualized:n,focus:u,shouldSelectOnPressUp:s,onAction:d?()=>d(o.key):a}),g=$n(p,{role:"gridcell",onKeyDownCapture:e=>{if(!e.currentTarget.contains(e.target))return;let t=Sl(r.current);switch(t.currentNode=document.activeElement,e.key){case"ArrowLeft":{let n="rtl"===l?t.nextNode():t.previousNode();if("child"===i&&n===r.current&&(n=null),n)e.preventDefault(),e.stopPropagation(),al(n);else{if(c.getKeyLeftOf(o.key)!==o.key)break;e.preventDefault(),e.stopPropagation(),"cell"===i&&"rtl"===l?al(r.current):(t.currentNode=r.current,n="rtl"===l?t.firstChild():Nm(t),n&&al(n))}break}case"ArrowRight":{let n="rtl"===l?t.previousNode():t.nextNode();if("child"===i&&n===r.current&&(n=null),n)e.preventDefault(),e.stopPropagation(),al(n);else{if(c.getKeyRightOf(o.key)!==o.key)break;e.preventDefault(),e.stopPropagation(),"cell"===i&&"ltr"===l?al(r.current):(t.currentNode=r.current,n="rtl"===l?Nm(t):t.firstChild(),n&&al(n))}break}case"ArrowUp":case"ArrowDown":!e.altKey&&r.current.contains(e.target)&&(e.stopPropagation(),e.preventDefault(),r.current.parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}},onFocus:e=>{e.target===r.current?requestAnimationFrame((()=>{"child"===i&&document.activeElement===r.current&&u()})):rs()||t.selectionManager.setFocusedKey(o.key)}});return n&&(g["aria-colindex"]=o.index+1),{gridCellProps:g,isPressed:h}}function Nm(e){let t,r;do{r=e.lastChild(),r&&(t=r)}while(r);return t}function Mm(e,t){let{key:r}=e,o=t.selectionManager,n=gn(),i=t.disabledKeys.has(r),s=t.selectionManager.isSelected(r);return{checkboxProps:{id:n,"aria-label":Yo(Fg(Wg))("select"),isSelected:s,isDisabled:i||"none"===o.selectionMode,onChange:()=>o.select(r)}}}function Rm(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}Vg=JSON.parse('{"deselectedItem":"{item} غير المحدد","longPressToSelect":"اضغط مطولًا للدخول إلى وضع التحديد.","select":"تحديد","selectedAll":"جميع العناصر المحددة.","selectedCount":"{count, plural, =0 {لم يتم تحديد عناصر} one {# عنصر محدد} other {# عنصر محدد}}.","selectedItem":"{item} المحدد"}'),Ug=JSON.parse('{"deselectedItem":"{item} не е избран.","longPressToSelect":"Натиснете и задръжте за да влезете в избирателен режим.","select":"Изберете","selectedAll":"Всички елементи са избрани.","selectedCount":"{count, plural, =0 {Няма избрани елементи} one {# избран елемент} other {# избрани елементи}}.","selectedItem":"{item} избран."}'),Gg=JSON.parse('{"deselectedItem":"Položka {item} není vybrána.","longPressToSelect":"Dlouhým stisknutím přejdete do režimu výběru.","select":"Vybrat","selectedAll":"Vybrány všechny položky.","selectedCount":"{count, plural, =0 {Nevybrány žádné položky} one {Vybrána # položka} other {Vybráno # položek}}.","selectedItem":"Vybrána položka {item}."}'),Jg=JSON.parse('{"deselectedItem":"{item} ikke valgt.","longPressToSelect":"Lav et langt tryk for at aktivere valgtilstand.","select":"Vælg","selectedAll":"Alle elementer valgt.","selectedCount":"{count, plural, =0 {Ingen elementer valgt} one {# element valgt} other {# elementer valgt}}.","selectedItem":"{item} valgt."}'),Yg=JSON.parse('{"deselectedItem":"{item} nicht ausgewählt.","longPressToSelect":"Gedrückt halten, um Auswahlmodus zu öffnen.","select":"Auswählen","selectedAll":"Alle Elemente ausgewählt.","selectedCount":"{count, plural, =0 {Keine Elemente ausgewählt} one {# Element ausgewählt} other {# Elemente ausgewählt}}.","selectedItem":"{item} ausgewählt."}'),Xg=JSON.parse('{"deselectedItem":"Δεν επιλέχθηκε το στοιχείο {item}.","longPressToSelect":"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.","select":"Επιλογή","selectedAll":"Επιλέχθηκαν όλα τα στοιχεία.","selectedCount":"{count, plural, =0 {Δεν επιλέχθηκαν στοιχεία} one {Επιλέχθηκε # στοιχείο} other {Επιλέχθηκαν # στοιχεία}}.","selectedItem":"Επιλέχθηκε το στοιχείο {item}."}'),qg=JSON.parse('{"deselectedItem":"{item} not selected.","select":"Select","selectedCount":"{count, plural, =0 {No items selected} one {# item selected} other {# items selected}}.","selectedAll":"All items selected.","selectedItem":"{item} selected.","longPressToSelect":"Long press to enter selection mode."}'),Zg=JSON.parse('{"deselectedItem":"{item} no seleccionado.","longPressToSelect":"Mantenga pulsado para abrir el modo de selección.","select":"Seleccionar","selectedAll":"Todos los elementos seleccionados.","selectedCount":"{count, plural, =0 {Ningún elemento seleccionado} one {# elemento seleccionado} other {# elementos seleccionados}}.","selectedItem":"{item} seleccionado."}'),Qg=JSON.parse('{"deselectedItem":"{item} pole valitud.","longPressToSelect":"Valikurežiimi sisenemiseks vajutage pikalt.","select":"Vali","selectedAll":"Kõik üksused valitud.","selectedCount":"{count, plural, =0 {Üksusi pole valitud} one {# üksus valitud} other {# üksust valitud}}.","selectedItem":"{item} valitud."}'),em=JSON.parse('{"deselectedItem":"Kohdetta {item} ei valittu.","longPressToSelect":"Siirry valintatilaan painamalla pitkään.","select":"Valitse","selectedAll":"Kaikki kohteet valittu.","selectedCount":"{count, plural, =0 {Ei yhtään kohdetta valittu} one {# kohde valittu} other {# kohdetta valittu}}.","selectedItem":"{item} valittu."}'),tm=JSON.parse('{"deselectedItem":"{item} non sélectionné.","longPressToSelect":"Appuyez de manière prolongée pour passer en mode de sélection.","select":"Sélectionner","selectedAll":"Tous les éléments sélectionnés.","selectedCount":"{count, plural, =0 {Aucun élément sélectionné} one {# élément sélectionné} other {# éléments sélectionnés}}.","selectedItem":"{item} sélectionné."}'),rm=JSON.parse('{"deselectedItem":"{item} לא נבחר.","longPressToSelect":"הקשה ארוכה לכניסה למצב בחירה.","select":"בחר","selectedAll":"כל הפריטים נבחרו.","selectedCount":"{count, plural, =0 {לא נבחרו פריטים} one {פריט # נבחר} other {# פריטים נבחרו}}.","selectedItem":"{item} נבחר."}'),om=JSON.parse('{"deselectedItem":"Stavka {item} nije odabrana.","longPressToSelect":"Dugo pritisnite za ulazak u način odabira.","select":"Odaberite","selectedAll":"Odabrane su sve stavke.","selectedCount":"{count, plural, =0 {Nije odabrana nijedna stavka} one {Odabrana je # stavka} other {Odabrano je # stavki}}.","selectedItem":"Stavka {item} je odabrana."}'),nm=JSON.parse('{"deselectedItem":"{item} nincs kijelölve.","longPressToSelect":"Nyomja hosszan a kijelöléshez.","select":"Kijelölés","selectedAll":"Az összes elem kijelölve.","selectedCount":"{count, plural, =0 {Egy elem sincs kijelölve} one {# elem kijelölve} other {# elem kijelölve}}.","selectedItem":"{item} kijelölve."}'),im=JSON.parse('{"deselectedItem":"{item} non selezionato.","longPressToSelect":"Premi a lungo per passare alla modalità di selezione.","select":"Seleziona","selectedAll":"Tutti gli elementi selezionati.","selectedCount":"{count, plural, =0 {Nessun elemento selezionato} one {# elemento selezionato} other {# elementi selezionati}}.","selectedItem":"{item} selezionato."}'),sm=JSON.parse('{"deselectedItem":"{item} が選択されていません。","longPressToSelect":"長押しして選択モードを開きます。","select":"選択","selectedAll":"すべての項目を選択しました。","selectedCount":"{count, plural, =0 {項目が選択されていません} one {# 項目を選択しました} other {# 項目を選択しました}}。","selectedItem":"{item} を選択しました。"}'),am=JSON.parse('{"deselectedItem":"{item}이(가) 선택되지 않았습니다.","longPressToSelect":"선택 모드로 들어가려면 길게 누르십시오.","select":"선택","selectedAll":"모든 항목이 선택되었습니다.","selectedCount":"{count, plural, =0 {선택된 항목이 없습니다} one {#개 항목이 선택되었습니다} other {#개 항목이 선택되었습니다}}.","selectedItem":"{item}이(가) 선택되었습니다."}'),lm=JSON.parse('{"deselectedItem":"{item} nepasirinkta.","longPressToSelect":"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.","select":"Pasirinkti","selectedAll":"Pasirinkti visi elementai.","selectedCount":"{count, plural, =0 {Nepasirinktas nė vienas elementas} one {Pasirinktas # elementas} other {Pasirinkta elementų: #}}.","selectedItem":"Pasirinkta: {item}."}'),cm=JSON.parse('{"deselectedItem":"Vienums {item} nav atlasīts.","longPressToSelect":"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.","select":"Atlasīt","selectedAll":"Atlasīti visi vienumi.","selectedCount":"{count, plural, =0 {Nav atlasīts neviens vienums} one {Atlasīto vienumu skaits: #} other {Atlasīto vienumu skaits: #}}.","selectedItem":"Atlasīts vienums {item}."}'),dm=JSON.parse('{"deselectedItem":"{item} er ikke valgt.","longPressToSelect":"Bruk et langt trykk for å gå inn i valgmodus.","select":"Velg","selectedAll":"Alle elementer er valgt.","selectedCount":"{count, plural, =0 {Ingen elementer er valgt} one {# element er valgt} other {# elementer er valgt}}.","selectedItem":"{item} er valgt."}'),um=JSON.parse('{"deselectedItem":"{item} niet geselecteerd.","longPressToSelect":"Druk lang om de selectiemodus te openen.","select":"Selecteren","selectedAll":"Alle items geselecteerd.","selectedCount":"{count, plural, =0 {Geen items geselecteerd} one {# item geselecteerd} other {# items geselecteerd}}.","selectedItem":"{item} geselecteerd."}'),pm=JSON.parse('{"deselectedItem":"Nie zaznaczono {item}.","longPressToSelect":"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.","select":"Zaznacz","selectedAll":"Wszystkie zaznaczone elementy.","selectedCount":"{count, plural, =0 {Nie zaznaczono żadnych elementów} one {# zaznaczony element} other {# zaznaczonych elementów}}.","selectedItem":"Zaznaczono {item}."}'),hm=JSON.parse('{"deselectedItem":"{item} não selecionado.","longPressToSelect":"Mantenha pressionado para entrar no modo de seleção.","select":"Selecionar","selectedAll":"Todos os itens selecionados.","selectedCount":"{count, plural, =0 {Nenhum item selecionado} one {# item selecionado} other {# itens selecionados}}.","selectedItem":"{item} selecionado."}'),gm=JSON.parse('{"deselectedItem":"{item} não selecionado.","longPressToSelect":"Prima continuamente para entrar no modo de seleção.","select":"Selecionar","selectedAll":"Todos os itens selecionados.","selectedCount":"{count, plural, =0 {Nenhum item selecionado} one {# item selecionado} other {# itens selecionados}}.","selectedItem":"{item} selecionado."}'),mm=JSON.parse('{"deselectedItem":"{item} neselectat.","longPressToSelect":"Apăsați lung pentru a intra în modul de selectare.","select":"Selectare","selectedAll":"Toate elementele selectate.","selectedCount":"{count, plural, =0 {Niciun element selectat} one {# element selectat} other {# elemente selectate}}.","selectedItem":"{item} selectat."}'),fm=JSON.parse('{"deselectedItem":"{item} не выбрано.","longPressToSelect":"Нажмите и удерживайте для входа в режим выбора.","select":"Выбрать","selectedAll":"Выбраны все элементы.","selectedCount":"{count, plural, =0 {Нет выбранных элементов} one {# элемент выбран} other {# элементов выбрано}}.","selectedItem":"{item} выбрано."}'),bm=JSON.parse('{"deselectedItem":"Nevybraté položky: {item}.","longPressToSelect":"Dlhším stlačením prejdite do režimu výberu.","select":"Vybrať","selectedAll":"Všetky vybraté položky.","selectedCount":"{count, plural, =0 {Žiadne vybraté položky} one {# vybratá položka} other {Počet vybratých položiek:#}}.","selectedItem":"Vybraté položky: {item}."}'),$m=JSON.parse('{"deselectedItem":"Element {item} ni izbran.","longPressToSelect":"Za izbirni način pritisnite in dlje časa držite.","select":"Izberite","selectedAll":"Vsi elementi so izbrani.","selectedCount":"{count, plural, =0 {Noben element ni izbran} one {# element je izbran} other {# elementov je izbranih}}.","selectedItem":"Element {item} je izbran."}'),ym=JSON.parse('{"deselectedItem":"{item} nije izabrano.","longPressToSelect":"Dugo pritisnite za ulazak u režim biranja.","select":"Izaberite","selectedAll":"Izabrane su sve stavke.","selectedCount":"{count, plural, =0 {Nije izabrana nijedna stavka} one {Izabrana je # stavka} other {Izabrano je # stavki}}.","selectedItem":"{item} je izabrano."}'),vm=JSON.parse('{"deselectedItem":"{item} ej markerat.","longPressToSelect":"Tryck länge när du vill öppna väljarläge.","select":"Markera","selectedAll":"Alla markerade objekt.","selectedCount":"{count, plural, =0 {Inga markerade objekt} one {# markerat objekt} other {# markerade objekt}}.","selectedItem":"{item} markerat."}'),xm=JSON.parse('{"deselectedItem":"{item} seçilmedi.","longPressToSelect":"Seçim moduna girmek için uzun basın.","select":"Seç","selectedAll":"Tüm ögeler seçildi.","selectedCount":"{count, plural, =0 {Hiçbir öge seçilmedi} one {# öge seçildi} other {# öge seçildi}}.","selectedItem":"{item} seçildi."}'),wm=JSON.parse('{"deselectedItem":"{item} не вибрано.","longPressToSelect":"Виконайте довге натиснення, щоб перейти в режим вибору.","select":"Вибрати","selectedAll":"Усі елементи вибрано.","selectedCount":"{count, plural, =0 {Жодних елементів не вибрано} one {# елемент вибрано} other {Вибрано елементів: #}}.","selectedItem":"{item} вибрано."}'),Sm=JSON.parse('{"deselectedItem":"未选择 {item}。","longPressToSelect":"长按以进入选择模式。","select":"选择","selectedAll":"已选择所有项目。","selectedCount":"{count, plural, =0 {未选择项目} one {已选择 # 个项目} other {已选择 # 个项目}}。","selectedItem":"已选择 {item}。"}'),Cm=JSON.parse('{"deselectedItem":"未選取「{item}」。","longPressToSelect":"長按以進入選擇模式。","select":"選取","selectedAll":"已選取所有項目。","selectedCount":"{count, plural, =0 {未選取任何項目} one {已選取 # 個項目} other {已選取 # 個項目}}。","selectedItem":"已選取「{item}」。"}'),Wg={"ar-AE":Vg,"bg-BG":Ug,"cs-CZ":Gg,"da-DK":Jg,"de-DE":Yg,"el-GR":Xg,"en-US":qg,"es-ES":Zg,"et-EE":Qg,"fi-FI":em,"fr-FR":tm,"he-IL":rm,"hr-HR":om,"hu-HU":nm,"it-IT":im,"ja-JP":sm,"ko-KR":am,"lt-LT":lm,"lv-LV":cm,"nb-NO":dm,"nl-NL":um,"pl-PL":pm,"pt-BR":hm,"pt-PT":gm,"ro-RO":mm,"ru-RU":fm,"sk-SK":bm,"sl-SI":$m,"sr-SP":ym,"sv-SE":vm,"tr-TR":xm,"uk-UA":wm,"zh-CN":Sm,"zh-TW":Cm},Kg({},"useGridRowGroup",(()=>Pm)),Kg({},"useGridRow",(()=>Tm)),Kg({},"useGridCell",(()=>Im)),Kg({},"useGridSelectionCheckbox",(()=>Mm));var Am={};Rm(Am,"useId",(()=>zm)),Rm(Am,"mergeIds",(()=>Hm)),Rm(Am,"useSlotId",(()=>Dm)),Rm({},"useLayoutEffect",(()=>Lm));const Lm="undefined"!=typeof window?m().useLayoutEffect:()=>{};let Bm=new Map;function zm(e){let t=(0,g.useRef)(!0);t.current=!0;let[r,o]=(0,g.useState)(e),n=(0,g.useRef)(null),i=Vt(r),s=e=>{t.current?n.current=e:o(e)};return Bm.set(i,s),Lm((()=>{t.current=!1}),[s]),Lm((()=>{let e=i;return()=>{Bm.delete(e)}}),[i]),(0,g.useEffect)((()=>{let e=n.current;e&&(o(e),n.current=null)}),[o,s]),i}function Hm(e,t){if(e===t)return e;let r=Bm.get(e);if(r)return r(t),t;let o=Bm.get(t);return o?(o(e),e):t}function Dm(e=[]){let t=zm(),[r,o]=Tf(t),n=(0,g.useCallback)((()=>{o((function*(){yield t,yield document.getElementById(t)?t:null}))}),[t,o]);return Lm(n,[t,n,...e]),r}function Om(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}function Km(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let o=e[r];for(let e in o){let r=t[e],n=o[e];"function"==typeof r&&"function"==typeof n&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Om(r,n):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof n?"id"===e&&r&&n?t.id=Hm(r,n):t[e]=void 0!==n?n:r:t[e]=rn(r,n)}}return t}Rm({},"chain",(()=>Om)),Rm({},"mergeProps",(()=>Km)),Rm({},"filterDOMProps",(()=>Wm));const Fm=new Set(["id"]),jm=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),_m=/^(data-.*)$/;function Wm(e,t={}){let{labelable:r,propNames:o}=t,n={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Fm.has(t)||r&&jm.has(t)||(null==o?void 0:o.has(t))||_m.test(t))&&(n[t]=e[t]);return n}function Vm(e){if(function(){if(null==Um){Um=!1;try{document.createElement("div").focus({get preventScroll(){return Um=!0,!0}})}catch(e){}}return Um}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,r=[],o=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:o}of e)t.scrollTop=r,t.scrollLeft=o}(t)}}Rm({},"focusWithoutScrolling",(()=>Vm));let Um=null;function Gm(e,t,r="horizontal"){let o=e.getBoundingClientRect();return t?"horizontal"===r?o.right:o.bottom:"horizontal"===r?o.left:o.top}Rm({},"getOffset",(()=>Gm));var Jm={};Rm(Jm,"clamp",(()=>an)),Rm(Jm,"snapValueToStep",(()=>ln)),Rm({},"runAfterTransition",(()=>Zm));let Ym=new Map,Xm=new Set;function qm(){if("undefined"==typeof window)return;let e=t=>{let r=Ym.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",e),Ym.delete(t.target)),0===Ym.size)){for(let e of Xm)e();Xm.clear()}};document.body.addEventListener("transitionrun",(t=>{let r=Ym.get(t.target);r||(r=new Set,Ym.set(t.target,r),t.target.addEventListener("transitioncancel",e)),r.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function Zm(e){requestAnimationFrame((()=>{0===Ym.size?e():Xm.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?qm():document.addEventListener("DOMContentLoaded",qm)),Rm({},"useDrag1D",(()=>ef));const Qm=[];function ef(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:r,orientation:o,onHover:n,onDrag:i,onPositionChange:s,onIncrement:a,onDecrement:l,onIncrementToMax:c,onDecrementToMin:d,onCollapseToggle:u}=e,p=e=>{let n=Gm(t.current,r,o),i=(e=>"horizontal"===o?e.clientX:e.clientY)(e);return r?n-i:i-n},h=(0,g.useRef)(!1),m=(0,g.useRef)(0),f=(0,g.useRef)({onPositionChange:s,onDrag:i});f.current.onDrag=i,f.current.onPositionChange=s;let b=e=>{e.preventDefault();let t=p(e);h.current||(h.current=!0,f.current.onDrag&&f.current.onDrag(!0),f.current.onPositionChange&&f.current.onPositionChange(t)),m.current!==t&&(m.current=t,s&&s(t))},$=e=>{const t=e.target;h.current=!1;let r=p(e);f.current.onDrag&&f.current.onDrag(!1),f.current.onPositionChange&&f.current.onPositionChange(r),Qm.splice(Qm.indexOf(t),1),window.removeEventListener("mouseup",$,!1),window.removeEventListener("mousemove",b,!1)};return{onMouseDown:e=>{const t=e.currentTarget;Qm.some((e=>t.contains(e)))||(Qm.push(t),window.addEventListener("mousemove",b,!1),window.addEventListener("mouseup",$,!1))},onMouseEnter:()=>{n&&n(!0)},onMouseOut:()=>{n&&n(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===o&&(e.preventDefault(),l&&!r?l():a&&r&&a());break;case"Up":case"ArrowUp":"vertical"===o&&(e.preventDefault(),l&&!r?l():a&&r&&a());break;case"Right":case"ArrowRight":"horizontal"===o&&(e.preventDefault(),a&&!r?a():l&&r&&l());break;case"Down":case"ArrowDown":"vertical"===o&&(e.preventDefault(),a&&!r?a():l&&r&&l());break;case"Home":e.preventDefault(),d&&d();break;case"End":e.preventDefault(),c&&c();break;case"Enter":e.preventDefault(),u&&u()}}}}function tf(){let e=(0,g.useRef)(new Map),t=(0,g.useCallback)(((t,r,o,n)=>{let i=(null==n?void 0:n.once)?(...t)=>{e.current.delete(o),o(...t)}:o;e.current.set(o,{type:r,eventTarget:t,fn:i,options:n}),t.addEventListener(r,o,n)}),[]),r=(0,g.useCallback)(((t,r,o,n)=>{var i;let s=(null===(i=e.current.get(o))||void 0===i?void 0:i.fn)||o;t.removeEventListener(r,s,n),e.current.delete(o)}),[]),o=(0,g.useCallback)((()=>{e.current.forEach(((e,t)=>{r(e.eventTarget,e.type,t,e.options)}))}),[r]);return(0,g.useEffect)((()=>o),[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}function rf(e,t){let{id:r,"aria-label":o,"aria-labelledby":n}=e;if(r=zm(r),n&&o){let e=new Set([...n.trim().split(/\s+/),r]);n=[...e].join(" ")}else n&&(n=n.trim().split(/\s+/).join(" "));return o||n||!t||(o=t),{id:r,"aria-label":o,"aria-labelledby":n}}function of(e){const t=(0,g.useRef)();return Lm((()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}),[e]),t}function nf(e,t){const r=(0,g.useRef)(!0);(0,g.useEffect)((()=>{r.current?r.current=!1:e()}),t)}function sf(e){const{ref:t,onResize:r}=e;(0,g.useEffect)((()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)};{const t=new window.ResizeObserver((e=>{e.length&&r()}));return t.observe(e),()=>{e&&t.unobserve(e)}}}}),[r,t])}function af(e,t){Lm((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function lf(e){for(;e&&!cf(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function cf(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}Rm({},"useGlobalListeners",(()=>tf)),Rm({},"useLabels",(()=>rf)),Rm({},"useObjectRef",(()=>of)),Rm({},"useUpdateEffect",(()=>nf)),Rm({},"useResizeObserver",(()=>sf)),Rm({},"useSyncRef",(()=>af)),Rm({},"getScrollParent",(()=>lf)),Rm({},"useViewportSize",(()=>uf));let df="undefined"!=typeof window&&window.visualViewport;function uf(){let[e,t]=(0,g.useState)((()=>pf()));return(0,g.useEffect)((()=>{let e=()=>{t((e=>{let t=pf();return t.width===e.width&&t.height===e.height?e:t}))};return df?df.addEventListener("resize",e):window.addEventListener("resize",e),()=>{df?df.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function pf(){return{width:(null==df?void 0:df.width)||window.innerWidth,height:(null==df?void 0:df.height)||window.innerHeight}}Rm({},"useDescription",(()=>mf));let hf=0;const gf=new Map;function mf(e){let[t,r]=(0,g.useState)(null);return Lm((()=>{if(!e)return;let t=gf.get(e);if(t)r(t.element.id);else{let o="react-aria-description-"+hf++;r(o);let n=document.createElement("div");n.id=o,n.style.display="none",n.textContent=e,document.body.appendChild(n),t={refCount:0,element:n},gf.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),gf.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}var ff={};function bf(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function $f(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test((window.navigator.userAgentData||window.navigator).platform)}function yf(){return $f(/^Mac/i)}function vf(){return $f(/^iPhone/i)}function xf(){return $f(/^iPad/i)||yf()&&navigator.maxTouchPoints>1}function wf(){return vf()||xf()}function Sf(){return yf()||wf()}function Cf(){return bf(/AppleWebKit/i)&&!kf()}function kf(){return bf(/Chrome/i)}function Ef(){return bf(/Android/i)}function Pf(e,t,r,o){let n=(0,g.useRef)(r);n.current=r;let i=null==r;(0,g.useEffect)((()=>{if(i)return;let r=e.current,s=e=>n.current.call(this,e);return r.addEventListener(t,s,o),()=>{r.removeEventListener(t,s,o)}}),[e,t,o,i])}function Tf(e){let[t,r]=(0,g.useState)(e),o=(0,g.useRef)(t),n=(0,g.useRef)(null);o.current=t;let i=(0,g.useRef)(null);i.current=()=>{let e=n.current.next();e.done?n.current=null:t===e.value?i.current():r(e.value)},Lm((()=>{n.current&&i.current()}));let s=(0,g.useCallback)((e=>{n.current=e(o.current),i.current()}),[n,i]);return[t,s]}function If(e,t){let r=Nf(e,t,"left"),o=Nf(e,t,"top"),n=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,l=s+e.offsetWidth,c=a+e.offsetHeight;r<=s?s=r:r+n>l&&(s+=r+n-l),o<=a?a=o:o+i>c&&(a+=o+i-c),e.scrollLeft=s,e.scrollTop=a}function Nf(e,t,r){const o="left"===r?"offsetLeft":"offsetTop";let n=0;for(;t.offsetParent&&(n+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){n-=e[o];break}t=t.offsetParent}return n}function Mf(e){return e&&e.__esModule?e.default:e}function Rf(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}Rm(ff,"isMac",(()=>yf)),Rm(ff,"isIPhone",(()=>vf)),Rm(ff,"isIPad",(()=>xf)),Rm(ff,"isIOS",(()=>wf)),Rm(ff,"isAppleDevice",(()=>Sf)),Rm(ff,"isWebKit",(()=>Cf)),Rm(ff,"isChrome",(()=>kf)),Rm(ff,"isAndroid",(()=>Ef)),Rm({},"useEvent",(()=>Pf)),Rm({},"useValueEffect",(()=>Tf)),Rm({},"scrollIntoView",(()=>If)),Rf({},"useTable",(()=>vb));const Af=new WeakMap;function Lf(e){return"string"==typeof e?e.replace(/\s*/g,""):""+e}function Bf(e,t){let r=Af.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${Lf(t)}`}function zf(e,t,r){let o=Af.get(e);if(!o)throw new Error("Unknown grid");return`${o}-${Lf(t)}-${Lf(r)}`}function Hf(e,t){return[...e.collection.rowHeaderColumnKeys].map((r=>zf(e,t,r))).join(" ")}var Df,Of,Kf,Ff,jf,_f,Wf,Vf,Uf,Gf,Jf,Yf,Xf,qf,Zf,Qf,eb,tb,rb,ob,nb,ib,sb,ab,lb,cb,db,ub,pb,hb,gb,mb,fb,bb,$b;Of=JSON.parse('{"ascending":"تصاعدي","ascendingSort":"ترتيب حسب العمود {columnName} بترتيب تصاعدي","descending":"تنازلي","descendingSort":"ترتيب حسب العمود {columnName} بترتيب تنازلي","select":"تحديد","selectAll":"تحديد الكل","sortable":"عمود قابل للترتيب"}'),Kf=JSON.parse('{"ascending":"възходящ","ascendingSort":"сортирано по колона {columnName} във възходящ ред","descending":"низходящ","descendingSort":"сортирано по колона {columnName} в низходящ ред","select":"Изберете","selectAll":"Изберете всичко","sortable":"сортираща колона"}'),Ff=JSON.parse('{"ascending":"vzestupně","ascendingSort":"řazeno vzestupně podle sloupce {columnName}","descending":"sestupně","descendingSort":"řazeno sestupně podle sloupce {columnName}","select":"Vybrat","selectAll":"Vybrat vše","sortable":"sloupec s možností řazení"}'),jf=JSON.parse('{"ascending":"stigende","ascendingSort":"sorteret efter kolonne {columnName} i stigende rækkefølge","descending":"faldende","descendingSort":"sorteret efter kolonne {columnName} i faldende rækkefølge","select":"Vælg","selectAll":"Vælg alle","sortable":"sorterbar kolonne"}'),_f=JSON.parse('{"ascending":"aufsteigend","ascendingSort":"sortiert nach Spalte {columnName} in aufsteigender Reihenfolge","descending":"absteigend","descendingSort":"sortiert nach Spalte {columnName} in absteigender Reihenfolge","select":"Auswählen","selectAll":"Alles auswählen","sortable":"sortierbare Spalte"}'),Wf=JSON.parse('{"ascending":"αύξουσα","ascendingSort":"διαλογή ανά στήλη {columnName} σε αύξουσα σειρά","descending":"φθίνουσα","descendingSort":"διαλογή ανά στήλη {columnName} σε φθίνουσα σειρά","select":"Επιλογή","selectAll":"Επιλογή όλων","sortable":"Στήλη διαλογής"}'),Vf=JSON.parse('{"select":"Select","selectAll":"Select All","sortable":"sortable column","ascending":"ascending","descending":"descending","ascendingSort":"sorted by column {columnName} in ascending order","descendingSort":"sorted by column {columnName} in descending order"}'),Uf=JSON.parse('{"ascending":"de subida","ascendingSort":"ordenado por columna {columnName} en orden de subida","descending":"de bajada","descendingSort":"ordenado por columna {columnName} en orden de bajada","select":"Seleccionar","selectAll":"Seleccionar todos","sortable":"columna ordenable"}'),Gf=JSON.parse('{"ascending":"tõusev järjestus","ascendingSort":"sorditud veeru järgi {columnName} tõusvas järjestuses","descending":"laskuv järjestus","descendingSort":"sorditud veeru järgi {columnName} laskuvas järjestuses","select":"Vali","selectAll":"Vali kõik","sortable":"sorditav veerg"}'),Jf=JSON.parse('{"ascending":"nouseva","ascendingSort":"lajiteltu sarakkeen {columnName} mukaan nousevassa järjestyksessä","descending":"laskeva","descendingSort":"lajiteltu sarakkeen {columnName} mukaan laskevassa järjestyksessä","select":"Valitse","selectAll":"Valitse kaikki","sortable":"lajiteltava sarake"}'),Yf=JSON.parse('{"ascending":"croissant","ascendingSort":"trié en fonction de la colonne {columnName} par ordre croissant","descending":"décroissant","descendingSort":"trié en fonction de la colonne {columnName} par ordre décroissant","select":"Sélectionner","selectAll":"Sélectionner tout","sortable":"colonne triable"}'),Xf=JSON.parse('{"ascending":"עולה","ascendingSort":"מוין לפי עמודה {columnName} בסדר עולה","descending":"יורד","descendingSort":"מוין לפי עמודה {columnName} בסדר יורד","select":"בחר","selectAll":"בחר הכול","sortable":"עמודה שניתן למיין"}'),qf=JSON.parse('{"ascending":"rastući","ascendingSort":"razvrstano po stupcima {columnName} rastućem redoslijedom","descending":"padajući","descendingSort":"razvrstano po stupcima {columnName} padajućim redoslijedom","select":"Odaberite","selectAll":"Odaberite sve","sortable":"stupac koji se može razvrstati"}'),Zf=JSON.parse('{"ascending":"növekvő","ascendingSort":"rendezve a(z) {columnName} oszlop szerint, növekvő sorrendben","descending":"csökkenő","descendingSort":"rendezve a(z) {columnName} oszlop szerint, csökkenő sorrendben","select":"Kijelölés","selectAll":"Összes kijelölése","sortable":"rendezendő oszlop"}'),Qf=JSON.parse('{"ascending":"crescente","ascendingSort":"in ordine crescente in base alla colonna {columnName}","descending":"decrescente","descendingSort":"in ordine decrescente in base alla colonna {columnName}","select":"Seleziona","selectAll":"Seleziona tutto","sortable":"colonna ordinabile"}'),eb=JSON.parse('{"ascending":"昇順","ascendingSort":"列 {columnName} を昇順で並べ替え","descending":"降順","descendingSort":"列 {columnName} を降順で並べ替え","select":"選択","selectAll":"すべて選択","sortable":"並べ替え可能な列"}'),tb=JSON.parse('{"ascending":"오름차순","ascendingSort":"{columnName} 열을 기준으로 오름차순으로 정렬됨","descending":"내림차순","descendingSort":"{columnName} 열을 기준으로 내림차순으로 정렬됨","select":"선택","selectAll":"모두 선택","sortable":"정렬 가능한 열"}'),rb=JSON.parse('{"ascending":"didėjančia tvarka","ascendingSort":"surikiuota pagal stulpelį {columnName} didėjančia tvarka","descending":"mažėjančia tvarka","descendingSort":"surikiuota pagal stulpelį {columnName} mažėjančia tvarka","select":"Pasirinkti","selectAll":"Pasirinkti viską","sortable":"rikiuojamas stulpelis"}'),ob=JSON.parse('{"ascending":"augošā secībā","ascendingSort":"kārtots pēc kolonnas {columnName} augošā secībā","descending":"dilstošā secībā","descendingSort":"kārtots pēc kolonnas {columnName} dilstošā secībā","select":"Atlasīt","selectAll":"Atlasīt visu","sortable":"kārtojamā kolonna"}'),nb=JSON.parse('{"ascending":"stigende","ascendingSort":"sortert etter kolonne {columnName} i stigende rekkefølge","descending":"synkende","descendingSort":"sortert etter kolonne {columnName} i synkende rekkefølge","select":"Velg","selectAll":"Velg alle","sortable":"kolonne som kan sorteres"}'),ib=JSON.parse('{"ascending":"oplopend","ascendingSort":"gesorteerd in oplopende volgorde in kolom {columnName}","descending":"aflopend","descendingSort":"gesorteerd in aflopende volgorde in kolom {columnName}","select":"Selecteren","selectAll":"Alles selecteren","sortable":"sorteerbare kolom"}'),sb=JSON.parse('{"ascending":"rosnąco","ascendingSort":"posortowano według kolumny {columnName} w porządku rosnącym","descending":"malejąco","descendingSort":"posortowano według kolumny {columnName} w porządku malejącym","select":"Zaznacz","selectAll":"Zaznacz wszystko","sortable":"kolumna z możliwością sortowania"}'),ab=JSON.parse('{"ascending":"crescente","ascendingSort":"classificado pela coluna {columnName} em ordem crescente","descending":"decrescente","descendingSort":"classificado pela coluna {columnName} em ordem decrescente","select":"Selecionar","selectAll":"Selecionar tudo","sortable":"coluna classificável"}'),lb=JSON.parse('{"ascending":"ascendente","ascendingSort":"Ordenar por coluna {columnName} em ordem ascendente","descending":"descendente","descendingSort":"Ordenar por coluna {columnName} em ordem descendente","select":"Selecionar","selectAll":"Selecionar tudo","sortable":"Coluna ordenável"}'),cb=JSON.parse('{"ascending":"crescătoare","ascendingSort":"sortate după coloana {columnName} în ordine crescătoare","descending":"descrescătoare","descendingSort":"sortate după coloana {columnName} în ordine descrescătoare","select":"Selectare","selectAll":"Selectare totală","sortable":"coloană sortabilă"}'),db=JSON.parse('{"ascending":"возрастание","ascendingSort":"сортировать столбец {columnName} в порядке возрастания","descending":"убывание","descendingSort":"сортировать столбец {columnName} в порядке убывания","select":"Выбрать","selectAll":"Выбрать все","sortable":"сортируемый столбец"}'),ub=JSON.parse('{"ascending":"vzostupne","ascendingSort":"zoradené zostupne podľa stĺpca {columnName}","descending":"zostupne","descendingSort":"zoradené zostupne podľa stĺpca {columnName}","select":"Vybrať","selectAll":"Vybrať všetko","sortable":"zoraditeľný stĺpec"}'),pb=JSON.parse('{"ascending":"naraščajoče","ascendingSort":"razvrščeno po stolpcu {columnName} v naraščajočem vrstnem redu","descending":"padajoče","descendingSort":"razvrščeno po stolpcu {columnName} v padajočem vrstnem redu","select":"Izberite","selectAll":"Izberite vse","sortable":"razvrstljivi stolpec"}'),hb=JSON.parse('{"ascending":"rastući","ascendingSort":"sortirano po kolonama {columnName} rastućim redosledom","descending":"padajući","descendingSort":"sortirano po kolonama {columnName} padajućim redosledom","select":"Izaberite","selectAll":"Izaberite sve","sortable":"kolona koja se može sortirati"}'),gb=JSON.parse('{"ascending":"stigande","ascendingSort":"sorterat på kolumn {columnName} i stigande ordning","descending":"fallande","descendingSort":"sorterat på kolumn {columnName} i fallande ordning","select":"Markera","selectAll":"Markera allt","sortable":"sorterbar kolumn"}'),mb=JSON.parse('{"ascending":"artan sırada","ascendingSort":"{columnName} sütuna göre artan düzende sırala","descending":"azalan sırada","descendingSort":"{columnName} sütuna göre azalan düzende sırala","select":"Seç","selectAll":"Tümünü Seç","sortable":"Sıralanabilir sütun"}'),fb=JSON.parse('{"ascending":"висхідний","ascendingSort":"відсортовано за стовпцем {columnName} у висхідному порядку","descending":"низхідний","descendingSort":"відсортовано за стовпцем {columnName} у низхідному порядку","select":"Вибрати","selectAll":"Вибрати все","sortable":"сортувальний стовпець"}'),bb=JSON.parse('{"ascending":"升序","ascendingSort":"按列 {columnName} 升序排序","descending":"降序","descendingSort":"按列 {columnName} 降序排序","select":"选择","selectAll":"全选","sortable":"可排序的列"}'),$b=JSON.parse('{"ascending":"遞增","ascendingSort":"已依據「{columnName}」欄遞增排序","descending":"遞減","descendingSort":"已依據「{columnName}」欄遞減排序","select":"選取","selectAll":"全選","sortable":"可排序的欄"}'),Df={"ar-AE":Of,"bg-BG":Kf,"cs-CZ":Ff,"da-DK":jf,"de-DE":_f,"el-GR":Wf,"en-US":Vf,"es-ES":Uf,"et-EE":Gf,"fi-FI":Jf,"fr-FR":Yf,"he-IL":Xf,"hr-HR":qf,"hu-HU":Zf,"it-IT":Qf,"ja-JP":eb,"ko-KR":tb,"lt-LT":rb,"lv-LV":ob,"nb-NO":nb,"nl-NL":ib,"pl-PL":sb,"pt-BR":ab,"pt-PT":lb,"ro-RO":cb,"ru-RU":db,"sk-SK":ub,"sl-SI":pb,"sr-SP":hb,"sv-SE":gb,"tr-TR":mb,"uk-UA":fb,"zh-CN":bb,"zh-TW":$b};class yb extends jg{isCell(e){return"cell"===e.type||"rowheader"===e.type||"column"===e.type}getKeyBelow(e){let t=this.collection.getItem(e);if(t){if("column"===t.type){let e=[...t.childNodes][0];if(e)return e.key;let r=this.getFirstKey();if(null==r)return;return[...this.collection.getItem(r).childNodes][t.index].key}return super.getKeyBelow(e)}}getKeyAbove(e){let t=this.collection.getItem(e);if(!t)return;if("column"===t.type){let e=this.collection.getItem(t.parentKey);return e&&"column"===e.type?e.key:void 0}let r=super.getKeyAbove(e);return null!=r&&"headerrow"!==this.collection.getItem(r).type?r:this.isCell(t)?this.collection.columns[t.index].key:this.collection.columns[0].key}findNextColumnKey(e){let t=this.findNextKey(e.key,(e=>"column"===e.type));if(null!=t)return t;let r=this.collection.headerRows[e.level];for(let e of r.childNodes)if("column"===e.type)return e.key}findPreviousColumnKey(e){let t=this.findPreviousKey(e.key,(e=>"column"===e.type));if(null!=t)return t;let r=[...this.collection.headerRows[e.level].childNodes];for(let e=r.length-1;e>=0;e--){let t=r[e];if("column"===t.type)return t.key}}getKeyRightOf(e){let t=this.collection.getItem(e);if(t)return"column"===t.type?"rtl"===this.direction?this.findPreviousColumnKey(t):this.findNextColumnKey(t):super.getKeyRightOf(e)}getKeyLeftOf(e){let t=this.collection.getItem(e);if(t)return"column"===t.type?"rtl"===this.direction?this.findNextColumnKey(t):this.findPreviousColumnKey(t):super.getKeyLeftOf(e)}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,o=null!=t?t:this.getFirstKey();if(null==o)return null;let n=r.getItem(o);"cell"===n.type&&(o=n.parentKey);let i=!1;for(;null!=o;){let s=r.getItem(o);for(let o of s.childNodes){let i=r.columns[o.index];if(r.rowHeaderColumnKeys.has(i.key)&&o.textValue){let i=o.textValue.slice(0,e.length);if(0===this.collator.compare(i,e))return"cell"===(null!=t?r.getItem(t):n).type?o.key:s.key}}o=this.getKeyBelow(o),null!=o||i||(o=this.getFirstKey(),i=!0)}return null}}function vb(e,t,r){let{keyboardDelegate:o,isVirtualized:n,layout:i}=e,s=Qo({usage:"search",sensitivity:"base"}),{direction:a}=Go(),l=(0,g.useMemo)((()=>o||new yb({collection:t.collection,disabledKeys:t.disabledKeys,ref:r,direction:a,collator:s,layout:i})),[o,t.collection,t.disabledKeys,r,a,s,i]),c=zm();Af.set(t,c);let{gridProps:d}=km({...e,id:c,keyboardDelegate:l,getRowText(e){let r=t.collection.getItem(e);if(!r)return"";if(null!=r.textValue)return r.textValue;let o=t.collection.rowHeaderColumnKeys;if(o){let e=[];for(let n of r.childNodes){let r=t.collection.columns[n.index];if(o.has(r.key)&&n.textValue&&e.push(n.textValue),e.length===o.size)break}return e.join(" ")}return""}},t,r);n&&(d["aria-rowcount"]=t.collection.size+t.collection.headerRows.length);let{column:u,direction:p}=t.sortDescriptor||{},h=Yo(Mf(Df)),m=(0,g.useMemo)((()=>{var e;let r=null===(e=t.collection.columns.find((e=>e.key===u)))||void 0===e?void 0:e.textValue;return p&&u?h(`${p}Sort`,{columnName:r}):void 0}),[p,u,t.collection.columns]),f=mf(m);return nf((()=>{Eg(m,"assertive",500)}),[m]),{gridProps:Km(d,f,{"aria-describedby":[f["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")})}}function xb(e,t,r){var o,n;let{node:i}=e,s=i.props.allowsSorting,{gridCellProps:a}=Im(e,t,r),l=i.props.isSelectionCell&&"single"===t.selectionManager.selectionMode,{pressProps:c}=Mi({isDisabled:!s||l,onPress(){t.sort(i.key)}}),{focusableProps:d}=Rl({},r),u=null,p=(null===(o=t.sortDescriptor)||void 0===o?void 0:o.column)===i.key,h=null===(n=t.sortDescriptor)||void 0===n?void 0:n.direction;i.props.allowsSorting&&!Ef()&&(u=p?h:"none");let g,m=Yo(Mf(Df));return s&&(g=`${m("sortable")}`,p&&h&&Ef()&&(g=`${g}, ${m(h)}`)),{columnHeaderProps:{...Km(a,c,d,mf(g)),role:"columnheader",id:Bf(t,i.key),"aria-colspan":i.colspan&&i.colspan>1?i.colspan:null,"aria-sort":u}}}function wb(e,t,r){let{node:o}=e,{rowProps:n,isPressed:i}=Tm(e,t,r);return{rowProps:{...n,"aria-labelledby":Hf(t,o.key)},isPressed:i}}function Sb(e,t,r){let{node:o,isVirtualized:n}=e,i={role:"row"};return n&&(i["aria-rowindex"]=o.index+1),{rowProps:i}}function Cb(e,t,r){let{gridCellProps:o,isPressed:n}=Im(e,t,r),i=e.node.column.key;return t.collection.rowHeaderColumnKeys.has(i)&&(o.role="rowheader",o.id=zf(t,e.node.parentKey,i)),{gridCellProps:o,isPressed:n}}Rf({},"useTableColumnHeader",(()=>xb)),Rf({},"useTableRow",(()=>wb)),Rf({},"useTableHeaderRow",(()=>Sb)),Rf({},"useTableCell",(()=>Cb));var kb={};function Eb(e,t){let{key:r}=e;const{checkboxProps:o}=Mm(e,t);return{checkboxProps:{...o,"aria-labelledby":`${o.id} ${Hf(t,r)}`}}}function Pb(e){let{isEmpty:t,isSelectAll:r,selectionMode:o}=e.selectionManager;return{checkboxProps:{"aria-label":Yo(Mf(Df))("single"===o?"select":"selectAll"),isSelected:r,isDisabled:"multiple"!==o,isIndeterminate:!t&&!r,onChange:()=>e.selectionManager.toggleSelectAll()}}}function Tb(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Ib(e){return null}function Nb(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&m().Children.count(e.children)>0)}Rf(kb,"useTableSelectionCheckbox",(()=>Eb)),Rf(kb,"useTableSelectAllCheckbox",(()=>Pb)),Tb({},"Item",(()=>Mb)),Ib.getCollectionNode=function*(e,t){let{childItems:r,title:o,children:n}=e,i=e.title||e.children,s=e.textValue||("string"==typeof i?i:"")||e["aria-label"]||"";s||(null==t?void 0:t.suppressTextValueWarning)||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:i,textValue:s,"aria-label":e["aria-label"],hasChildNodes:Nb(e),*childNodes(){if(r)for(let e of r)yield{type:"item",value:e};else if(o){let e=[];m().Children.forEach(n,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let Mb=Ib;function Rb(e){return null}Tb({},"Section",(()=>Ab)),Rb.getCollectionNode=function*(e){let{children:t,title:r,items:o}=e;yield{type:"section",hasChildNodes:!0,rendered:r,"aria-label":e["aria-label"],*childNodes(){if("function"==typeof t){if(!o)throw new Error("props.children was a function but props.items is missing");for(let e of o)yield{type:"item",value:e,renderer:t}}else{let e=[];m().Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let Ab=Rb;Tb({},"useCollection",(()=>Db));class Lb{build(e,t){return this.context=t,Bb((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:r}=e;if("function"==typeof t){if(!r)throw new Error("props.children was a function but props.items is missing");for(let r of e.items)yield*this.getFullNode({value:r},{renderer:t})}else{let e=[];m().Children.forEach(t,(t=>{e.push(t)}));let r=0;for(let t of e){let e=this.getFullNode({element:t,index:r},{});for(let t of e)r++,yield t}}}getKey(e,t,r,o){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${o}${t.key}`;let n=t.value;if(null!=n){var i;let e=null!==(i=n.key)&&void 0!==i?i:n.id;if(null==e)throw new Error("No key found for item");return e}return o?`${o}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,o){let n=e.element;if(!n&&e.value&&t&&t.renderer){let r=this.cache.get(e.value);if(r&&(!r.shouldInvalidate||!r.shouldInvalidate(this.context)))return r.index=e.index,r.parentKey=o?o.key:null,void(yield r);n=t.renderer(e.value)}if(m().isValidElement(n)){let i=n.type;if("function"!=typeof i&&"function"!=typeof i.getCollectionNode){let e="function"==typeof n.type?n.type.name:n.type;throw new Error(`Unknown element <${e}> in collection.`)}let s=i.getCollectionNode(n.props,this.context),a=e.index,l=s.next();for(;!l.done&&l.value;){let i=l.value;e.index=a;let c=i.key;c||(c=i.element?null:this.getKey(n,e,t,r));let d=[...this.getFullNode({...i,key:c,index:a,wrapper:zb(e.wrapper,i.wrapper)},this.getChildState(t,i),r?`${r}${n.key}`:n.key,o)];for(let t of d){if(t.value=i.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${Hb(t.type)}> in <${Hb(o.type)}>. Only <${Hb(e.type)}> is supported.`);a++,yield t}l=s.next(d)}return}if(null==e.key)return;let i=this,s={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:e.value,level:o?o.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:Bb((function*(){if(!e.hasChildNodes)return;let r=0;for(let o of e.childNodes()){null!=o.key&&(o.key=`${s.key}${o.key}`),o.index=r;let e=i.getFullNode(o,i.getChildState(t,o),s.key,s);for(let t of e)r++,yield t}}))};yield s}constructor(){this.cache=new WeakMap}}function Bb(e){let t=[],r=null;return{*[Symbol.iterator](){for(let e of t)yield e;r||(r=e());for(let e of r)t.push(e),yield e}}}function zb(e,t){return e&&t?r=>e(t(r)):e||t||void 0}function Hb(e){return e[0].toUpperCase()+e.slice(1)}function Db(e,t,r,o=[]){let n=(0,g.useMemo)((()=>new Lb),[]),i=(0,g.useRef)(null);return(0,g.useMemo)((()=>{let o=n.build(e,r);return i.current=t(o,i.current),i.current}),[n,e.children,e.items,r,...o])}Tb({},"getItemCount",(()=>Kb));const Ob=new WeakMap;function Kb(e){let t=Ob.get(e);if(null!=t)return t;t=0;for(let r of e)"section"===r.type?t+=Kb(r.childNodes):t++;return Ob.set(e,t),t}function Fb(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}Fb({},"useMultipleSelectionState",(()=>_b));class jb extends Set{constructor(e,t,r){super(e),e instanceof jb?(this.anchorKey=t||e.anchorKey,this.currentKey=r||e.currentKey):(this.anchorKey=t,this.currentKey=r)}}function _b(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:o}=e,n=(0,g.useRef)(!1),[,i]=(0,g.useState)(!1),s=(0,g.useRef)(null),a=(0,g.useRef)(null),[,l]=(0,g.useState)(null),c=(0,g.useMemo)((()=>Wb(e.selectedKeys)),[e.selectedKeys]),d=(0,g.useMemo)((()=>Wb(e.defaultSelectedKeys,new jb)),[e.defaultSelectedKeys]),[u,p]=nn(c,d,e.onSelectionChange),h=(0,g.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[m,f]=(0,g.useState)(e.selectionBehavior||"toggle");return"replace"===e.selectionBehavior&&"toggle"===m&&"object"==typeof u&&0===u.size&&f("replace"),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:m,setSelectionBehavior:f,get isFocused(){return n.current},setFocused(e){n.current=e,i(e)},get focusedKey(){return s.current},get childFocusStrategy(){return a.current},setFocusedKey(e,t="first"){s.current=e,a.current=t,l(e)},selectedKeys:u,setSelectedKeys(e){!o&&function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,u)||p(e)},disabledKeys:h}}function Wb(e,t){return e?"all"===e?"all":new jb(e):t}Fb({},"SelectionManager",(()=>Vb));class Vb{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?!this.state.disabledKeys.has(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let r=this.collection.getItem(t);(!e||(null==r?void 0:r.index)<e.index)&&(e=r)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let r=this.collection.getItem(t);(!e||(null==r?void 0:r.index)>e.index)&&(e=r)}return null==e?void 0:e.key}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new jb([e],e,e);else{let r=this.state.selectedKeys,o=r.anchorKey||e;t=new jb(r,o,e);for(let n of this.getKeyRange(o,r.currentKey||e))t.delete(n);for(let r of this.getKeyRange(e,o))this.state.disabledKeys.has(r)||t.add(r)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let r=this.collection.getItem(e),o=this.collection.getItem(t);return r&&o?r.index<=o.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let r=[],o=e;for(;o;){let e=this.collection.getItem(o);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&r.push(o),o===t)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new jb("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){"none"!==this.selectionMode&&null!=(e=this.getKey(e))&&this.state.setSelectedKeys(new jb([e],e,e))}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new jb;for(let r of e)if(r=this.getKey(r),null!=r&&(t.add(r),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=r=>{for(;r;){if(!this.state.disabledKeys.has(r)){let o=this.collection.getItem(r);"item"===o.type&&e.push(r),o.hasChildNodes&&(this.allowsCellSelection||"item"!==o.type)&&t([...o.childNodes][0].key)}r=this.collection.getKeyAfter(r)}};return t(this.collection.getFirstKey()),e}selectAll(){"multiple"===this.selectionMode&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new jb)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;for(let r of t)if(!e.has(r))return!1;return!0}canSelectItem(e){if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let t=this.collection.getItem(e);return!(!t||"cell"===t.type&&!this.allowsCellSelection)}constructor(e,t,r){var o;this.collection=e,this.state=t,this.allowsCellSelection=null!==(o=null==r?void 0:r.allowsCellSelection)&&void 0!==o&&o,this._isSelectAll=null}}function Ub(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function Gb(e){let{collection:t,focusMode:r}=e,o=_b(e),n=(0,g.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),i=o.setFocusedKey;return o.setFocusedKey=(e,o)=>{if("cell"===r&&null!=e){let r=t.getItem(e);if("item"===(null==r?void 0:r.type)){var n,s;let t=[...r.childNodes];e="last"===o?null===(n=t[t.length-1])||void 0===n?void 0:n.key:null===(s=t[0])||void 0===s?void 0:s.key}}i(e,o)},(0,g.useEffect)((()=>{null==o.focusedKey||t.getItem(o.focusedKey)||o.setFocusedKey(null)}),[t,o.focusedKey]),{collection:t,disabledKeys:n,selectionManager:new Vb(t,o)}}Ub({},"useGridState",(()=>Gb)),Ub({},"GridCollection",(()=>Yb));var Jb=Symbol.iterator;class Yb{*[Jb](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){var e;return null===(e=[...this.rows][0])||void 0===e?void 0:e.key}getLastKey(){var e;let t=[...this.rows];return null===(e=t[t.length-1])||void 0===e?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=null==e?void 0:e.columnCount,this.rows=[];let t,r=t=>{let n=this.keyMap.get(t.key);e.visitNode&&(t=e.visitNode(t)),this.keyMap.set(t.key,t);let i,s=new Set;for(let e of t.childNodes)"cell"===e.type&&null==e.parentKey&&(e.parentKey=t.key),s.add(e.key),i?(i.nextKey=e.key,e.prevKey=i.key):e.prevKey=null,r(e),i=e;if(i&&(i.nextKey=null),n)for(let e of n.childNodes)s.has(e.key)||o(e)},o=e=>{this.keyMap.delete(e.key);for(let t of e.childNodes)this.keyMap.get(t.key)===t&&o(t)};e.items.forEach(((e,o)=>{let n={level:0,key:"row-"+o,type:"row",value:void 0,hasChildNodes:!0,childNodes:[...e.childNodes],rendered:void 0,textValue:void 0,...e,index:o};t?(t.nextKey=n.key,n.prevKey=t.key):n.prevKey=null,this.rows.push(n),r(n),t=n})),t&&(t.nextKey=null)}}function Xb(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}Xb({},"useTableState",(()=>t$));const qb="row-header-column-"+Math.random().toString(36).slice(2);var Zb=Symbol.iterator;class Qb extends Yb{*[Zb](){yield*this.body.childNodes}get size(){return[...this.body.childNodes].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){var e;return null===(e=[...this.body.childNodes][0])||void 0===e?void 0:e.key}getLastKey(){var e;let t=[...this.body.childNodes];return null===(e=t[t.length-1])||void 0===e?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,t,r){let o,n=new Set,i=[];if(null==r?void 0:r.showSelectionCheckboxes){let e={type:"column",key:qb,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};i.unshift(e)}let s=[],a=new Map,l=e=>{switch(e.type){case"body":o=e;break;case"column":a.set(e.key,e),e.hasChildNodes||(i.push(e),e.props.isRowHeader&&n.add(e.key));break;case"item":return void s.push(e)}for(let t of e.childNodes)l(t)};for(let t of e)l(t);let c=function(e,t){let r=[],o=new Map;for(let n of t){let t=n.parentKey,i=[n];for(;t;){let r=e.get(t);if(o.has(r)){r.colspan++;let{column:e,index:t}=o.get(r);if(t>i.length)break;for(let r=t;r<i.length;r++)e.splice(r,0,null);for(let t=i.length;t<e.length;t++)e[t]&&o.has(e[t])&&(o.get(e[t]).index=t)}else r.colspan=1,i.push(r),o.set(r,{column:i,index:i.length-1});t=r.parentKey}r.push(i),n.index=r.length-1}let n=Math.max(...r.map((e=>e.length))),i=Array(n).fill(0).map((()=>[])),s=0;for(let e of r){let t=n-1;for(let r of e){if(r){let e=i[t],o=e.reduce(((e,t)=>e+t.colspan),0);if(o<s){let n={type:"placeholder",key:"placeholder-"+r.key,colspan:s-o,index:o,value:null,rendered:null,level:t,hasChildNodes:!1,childNodes:[],textValue:null};e.length>0&&(e[e.length-1].nextKey=n.key,n.prevKey=e[e.length-1].key),e.push(n)}e.length>0&&(e[e.length-1].nextKey=r.key,r.prevKey=e[e.length-1].key),r.level=t,r.index=s,e.push(r)}t--}s++}let a=0;for(let e of i){let r=e.reduce(((e,t)=>e+t.colspan),0);if(r<t.length){let o={type:"placeholder",key:"placeholder-"+e[e.length-1].key,colspan:t.length-r,index:r,value:null,rendered:null,level:a,hasChildNodes:!1,childNodes:[],textValue:null,prevKey:e[e.length-1].key};e.push(o)}a++}return i.map(((e,t)=>({type:"headerrow",key:"headerrow-"+t,index:t,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:e,textValue:null})))}(a,i);c.forEach(((e,t)=>s.splice(t,0,e))),super({columnCount:i.length,items:s,visitNode:e=>(e.column=i[e.index],e)}),this.columns=i,this.rowHeaderColumnKeys=n,this.body=o,this.headerRows=c,0===this.rowHeaderColumnKeys.size&&this.rowHeaderColumnKeys.add(this.columns[(null==r?void 0:r.showSelectionCheckboxes)?1:0].key)}}const e$={ascending:"descending",descending:"ascending"};function t$(e){let{selectionMode:t="none"}=e,r=(0,g.useMemo)((()=>({showSelectionCheckboxes:e.showSelectionCheckboxes&&"none"!==t,selectionMode:t,columns:[]})),[e.children,e.showSelectionCheckboxes,t]),o=Db(e,((e,t)=>new Qb(e,t,r)),r),{disabledKeys:n,selectionManager:i}=Gb({...e,collection:o});return{collection:o,disabledKeys:n,selectionManager:i,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor,sort(t){var r;e.onSortChange({column:t,direction:(null===(r=e.sortDescriptor)||void 0===r?void 0:r.column)===t?e$[e.sortDescriptor.direction]:"ascending"})}}}function r$(e){return null}Xb({},"TableHeader",(()=>o$)),r$.getCollectionNode=function*(e){let{children:t,columns:r}=e;if("function"==typeof t){if(!r)throw new Error("props.children was a function but props.columns is missing");for(let e of r)yield{type:"column",value:e,renderer:t}}else{let e=[];m().Children.forEach(t,(t=>{e.push({type:"column",element:t})})),yield*e}};let o$=r$;function n$(e){return null}Xb({},"TableBody",(()=>i$)),n$.getCollectionNode=function*(e){let{children:t,items:r}=e;yield{type:"body",hasChildNodes:!0,props:e,*childNodes(){if("function"==typeof t){if(!r)throw new Error("props.children was a function but props.items is missing");for(let e of r)yield{type:"item",value:e,renderer:t}}else{let e=[];m().Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let i$=n$;function s$(e){return null}Xb({},"Column",(()=>a$)),s$.getCollectionNode=function*(e,t){let{title:r,children:o,childColumns:n}=e,i=r||o,s=e.textValue||("string"==typeof i?i:"")||e["aria-label"],a=yield{type:"column",hasChildNodes:!!n||r&&m().Children.count(o)>0,rendered:i,textValue:s,props:e,*childNodes(){if(n)for(let e of n)yield{type:"column",value:e};else if(r){let e=[];m().Children.forEach(o,(t=>{e.push({type:"column",element:t})})),yield*e}},shouldInvalidate:e=>(l(e),!1)},l=e=>{for(let t of a)t.hasChildNodes||e.columns.push(t)};l(t)};let a$=s$;function l$(e){return null}Xb({},"Row",(()=>c$)),l$.getCollectionNode=function*(e,t){let{children:r,textValue:o}=e;yield{type:"item",props:e,textValue:o,"aria-label":e["aria-label"],hasChildNodes:!0,*childNodes(){if(t.showSelectionCheckboxes&&"none"!==t.selectionMode&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),"function"==typeof r)for(let e of t.columns)yield{type:"cell",element:r(e.key),key:e.key};else{let e=[];if(m().Children.forEach(r,(t=>{e.push({type:"cell",element:t})})),e.length!==t.columns.length)throw new Error(`Cell count must match column count. Found ${e.length} cells and ${t.columns.length} columns.`);yield*e}},shouldInvalidate:e=>e.columns.length!==t.columns.length||e.columns.some(((e,r)=>e.key!==t.columns[r].key))||e.showSelectionCheckboxes!==t.showSelectionCheckboxes||e.selectionMode!==t.selectionMode}};let c$=l$;function d$(e){return null}Xb({},"Cell",(()=>u$)),d$.getCollectionNode=function*(e){let{children:t}=e,r=e.textValue||("string"==typeof t?t:"")||e["aria-label"]||"";yield{type:"cell",props:e,rendered:t,textValue:r,"aria-label":e["aria-label"],hasChildNodes:!1}};let u$=d$;const p$=Oe("tr",{ov:"visible"}),h$=Oe("th",{height:"$14",cursor:"default",bg:"$accents0",color:"$accents7",fontSize:"$xs",textAlign:"left",position:"relative","@motion":{transition:"none"},"&:first-child":{pl:"$8",br:"$md 0 0 $md"},"&:last-child":{pr:"$8",br:"0 $md $md 0"},variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}},animated:{false:{transition:"none"}},allowsSorting:{true:{transition:"background 0.25s ease 0s, color 0.25s ease 0s",cursor:"pointer","@motion":{transition:"none"},"&:hover":{color:"$accents8",bg:"$accents1"}}}},defaultVariants:{align:"left",animated:!0},compoundVariants:[{animated:!1,allowsSorting:!0,css:{transition:"none"}}]},tl),g$=Oe(h$,tl),m$=Oe("tfoot",{height:"$14",variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}}},defaultVariants:{align:"right"}}),f$=Oe("td",{}),b$=Oe(f$,{position:"relative",userSelect:"none",py:"$5",pr:"$5",zIndex:"$2",ov:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&:first-child":{pl:"$8"},"&:last-child":{pr:"$8"},"&:before":{zIndex:"-$1",transition:"background 0.25s ease 0s, opacity 0.25s ease 0s",content:'""',position:"absolute",size:"100%",top:0,left:0,opacity:0,transform:"translateZ(0)",backfaceVisibility:"hidden"},variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}}}},tl),$$=Oe("tr",{ov:"visible",color:"$text",variants:{isDisabled:{true:{color:"$accents3",pointerEvents:"none",cursor:"not-allowed"}},isSelected:{true:{color:"$$tableRowTextColor",[`& ${b$}:before`]:{opacity:1,bg:"$$tableRowColor"}}}}},tl),y$=Oe("thead",{variants:{isFixed:{true:{display:"table",width:"100%",tableLayout:"fixed"}},isInfinityScroll:{true:{display:"block",height:"100%",overflow:"auto",[`& ${$$}`]:{display:"table",width:"100%",tableLayout:"fixed"}}}},defaultVariants:{isInfinityScroll:!1}}),v$=Oe("tr",{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",height:"calc(100% - $space$14)",variants:{isAtEnd:{true:{height:"$space$18"}},isAbsolute:{true:{position:"absolute",left:"0",top:"$10"}}}}),x$=Oe("table",{borderCollapse:"separate",borderSpacing:0,width:"100%",p:"$md $sm","@motion":{[`& ${b$}:before`]:{transition:"none"}},variants:{animated:{false:{[`& ${b$}:before`]:{transition:"none"}}},color:{primary:{$$tableRowColor:"$colors$primaryLight",$$tableRowTextColor:"$colors$primaryLightContrast"},secondary:{$$tableRowColor:"$colors$secondaryLight",$$tableRowTextColor:"$colors$secondaryLightContrast"},success:{$$tableRowColor:"$colors$successLight",$$tableRowTextColor:"$colors$successLightContrast"},warning:{$$tableRowColor:"$colors$warningLight",$$tableRowTextColor:"$colors$warningLightContrast"},error:{$$tableRowColor:"$colors$errorLight",$$tableRowTextColor:"$colors$errorLightContrast"}},striped:{true:{[`& ${$$}[aria-selected=false]:nth-child(even)`]:{[`& ${b$}`]:{bg:"$accents0"}},[`& ${$$}:nth-child(even)`]:{[`& ${b$}:first-child`]:{br:"$lg 0 0 $lg"},[`& ${b$}:last-child`]:{br:"0 $lg $lg 0"}}}},sticked:{true:{p:0,[`& ${h$}:first-child`]:{br:"$lg 0 0 0"},[`& ${h$}:last-child`]:{br:"0 $lg 0 0"}}},lineWeight:{light:{$$tableLineWeight:"$borderWeights$light"},normal:{$$tableLineWeight:"$borderWeights$normal"},bold:{$$tableLineWeight:"$borderWeights$bold"},extrabold:{$$tableLineWeight:"$borderWeights$extrabold"},black:{$$tableLineWeight:"$borderWeights$black"}},headerLined:{true:{[`& ${h$}`]:{position:"relative",bg:"transparent","&:after":{content:"",position:"absolute",left:0,right:0,bottom:0,height:"calc($$tableLineWeight * 1.5)",bg:"$accents1"},"&:first-child":{ml:"$12",br:"0","&:after":{left:"$space$md"}},"&:last-child":{br:"0","&:after":{right:"$space$md"}}}}},lined:{true:{[`& ${$$}:not(:last-child)`]:{position:"relative",[`& ${b$}:after`]:{content:"",position:"absolute",bottom:0,left:0,right:0,height:"$$tableLineWeight",bg:"$border"},[`& ${b$}:first-child`]:{"&:after":{left:"$space$md"}},[`& ${b$}:last-child`]:{"&:after":{right:"$space$md"}}},[`& ${$$}[aria-selected=true]:not(last-child)`]:{[`& ${b$}:after`]:{bg:"$$tableRowTextColor",opacity:.3}}}},fixed:{true:{tableLayout:"fixed"}},hoverable:{true:{[`& ${b$}:first-child`]:{br:"$md 0 0 $md"},[`& ${b$}:last-child`]:{br:"0 $md $md 0"},[`& ${$$}`]:{cursor:"pointer"},[`& ${$$}[aria-selected=false]`]:{"&:hover":{[`& ${b$}:before`]:{opacity:1,bg:"$accents0"}}},[`& ${$$}[aria-selected=true]`]:{"&:hover":{[`& ${b$}:before`]:{opacity:.8}}}},false:{[`& ${b$}`]:{userSelect:"all"}}},isMultiple:{true:{}},hasPagination:{true:{}},shadow:{true:{}},compact:{true:{[`& ${b$}`]:{py:"$1"},[`& ${h$}`]:{height:"$12","&:first-child":{br:"$sm 0 0 $sm"},"&:last-child":{br:"0 $sm $sm 0"}}}}},compoundVariants:[{isMultiple:!0,hoverable:!0,css:{[`& ${$$}:not(:first-child):not(:last-child)`]:{[`& ${b$}:first-child`]:{br:0},[`& ${b$}:last-child`]:{br:0}},[`& ${$$}:first-child`]:{[`& ${b$}:first-child`]:{br:"$md 0 0 0"},[`& ${b$}:last-child`]:{br:"0 $md 0 0"}},[`& ${$$}:last-child`]:{[`& ${b$}:first-child`]:{br:"0 0 0 $md"},[`& ${b$}:last-child`]:{br:"0 0 $md 0"}}}},{isMultiple:!0,hoverable:!0,sticked:!0,css:{[`& ${$$}:first-child`]:{[`& ${b$}:first-child`]:{br:"0"},[`& ${b$}:last-child`]:{br:"0"}}}},{compact:!0,shadow:!0,css:{p:"$md $sm"}},{compact:!0,sticked:!0,css:{p:0}},{sticked:!0,isMultiple:!1,hoverable:!0,hasPagination:!1,css:{[`& ${$$}:not(:last-child)`]:{[`& ${b$}`]:{br:"0"}},[`& ${$$}:last-child`]:{[`& ${b$}:first-child`]:{br:"0 0 0 $md"},[`& ${b$}:last-child`]:{br:"0 0 $md 0"}}}},{sticked:!0,isMultiple:!1,hoverable:!0,hasPagination:!0,css:{[`& ${$$}`]:{[`& ${b$}`]:{br:"0"}}}},{sticked:!0,hasPagination:!0,css:{pb:"$5"}},{sticked:!0,hasPagination:!0,isMultiple:!0,hoverable:!0,css:{[`& ${$$}:last-child`]:{[`& ${b$}:first-child`]:{br:"0"},[`& ${b$}:last-child`]:{br:"0"}}}}],defaultVariants:{sticked:!1,color:"primary",lineWeight:"light"}}),w$=Oe("div",{display:"flex",flexDirection:"column",br:"$xl",overflowX:"auto",overflowY:"hidden",variants:{shadow:{true:{bs:"$md"}},bordered:{true:{borderStyle:"solid",borderColor:"$border"},false:{bw:0}},borderWeight:{light:{bw:"$light"},normal:{bw:"$normal"},bold:{bw:"$bold"},extrabold:{bw:"$extrabold"},black:{bw:"$black"}}},defaultVariants:{shadow:!0,borderWeight:"normal"}}),S$=vt((({children:e,...t})=>{const{rowGroupProps:r}={rowGroupProps:{role:"rowgroup"}};return(0,St.jsx)(y$,{className:wt("nextui-table-row-group",t.className),...t,...r,children:e})}),{as:"thead"}),C$=Oe("svg",{opacity:0,transition:"$default",path:{fill:"$$tableRowTextColor"},variants:{visible:{true:{opacity:1}},ascending:{true:{transform:"rotate(180deg)"}}}}),k$=e=>(0,St.jsx)(C$,{role:"presentation","aria-hidden":"true",focusable:"false",className:"nextui-table-sort-icon",width:22,height:22,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,St.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2ZM16.06 11.27L12.53 14.8C12.38 14.95 12.19 15.02 12 15.02C11.81 15.02 11.62 14.95 11.47 14.8L7.94 11.27C7.65 10.98 7.65 10.5 7.94 10.21C8.23 9.92 8.71 9.92 9 10.21L12 13.21L15 10.21C15.29 9.92 15.77 9.92 16.06 10.21C16.35 10.5 16.35 10.97 16.06 11.27Z"})}),E$=m().forwardRef((({column:e,state:t,...r},o)=>{var n,i;const s=(0,g.useRef)(null);(0,g.useImperativeHandle)(o,(()=>null==s?void 0:s.current));const{columnHeaderProps:a}=xb({node:e},t,s),{isFocusVisible:l,focusProps:c}=El(),{hideHeader:d,...u}=e.props;return(0,St.jsxs)(h$,{ref:s,isFocusVisible:l,colSpan:e.colspan,className:wt("nextui-table-column-header",r.className),...$n(r,a,c,u),children:[d?(0,St.jsx)(Is,{children:e.rendered}):e.rendered,u.allowsSorting&&(0,St.jsx)(k$,{visible:(null==(n=t.sortDescriptor)?void 0:n.column)===e.key,ascending:"ascending"===(null==(i=t.sortDescriptor)?void 0:i.direction),css:{position:"absolute",m:"0 $2",bottom:"calc(50% - 11px)"}})]})}));E$.displayName="NextUI.TableColumnHeader",E$.toString=()=>".nextui-table-column-header";const P$=E$,T$=m().forwardRef((({children:e,item:t,state:r,...o},n)=>{const i=(0,g.useRef)(null);(0,g.useImperativeHandle)(n,(()=>null==i?void 0:i.current));const{rowProps:s}=Sb({node:t});return(0,St.jsx)(p$,{ref:i,className:wt("nextui-table-header-row",o.className),...o,...s,children:e})}));T$.displayName="NextUI.TableHeaderRow",T$.toString=()=>".nextui-table-header-row";const I$=T$,N$=m().forwardRef((({column:e,state:t,color:r,animated:o,...n},i)=>{const s=(0,g.useRef)(null);(0,g.useImperativeHandle)(i,(()=>null==s?void 0:s.current));const a="single"===t.selectionManager.selectionMode,{columnHeaderProps:l}=xb({node:e},t,s),{checkboxProps:c}=Pb(t),{isFocusVisible:d,focusProps:u}=El();return(0,St.jsx)(g$,{ref:s,isFocusVisible:d,className:wt("nextui-table-select-all-checkbox",n.className),...$n(l,u,n),children:a?(0,St.jsx)(Is,{children:c["aria-label"]}):(0,St.jsx)(rd,{...c,color:r,disableAnimation:!o,css:{display:"inherit",$$checkboxBorderColor:"$colors$accents3"}})})}));N$.displayName="NextUI.TableSelectAllCheckbox",N$.toString=()=>".nextui-table-select-all-checkbox";const M$=N$,R$={footerAlign:"end",rowsPerPage:0,currentPage:1,animated:!0},A$=m().createContext(R$),L$=()=>m().useContext(A$),B$=({children:e,defaultValues:t})=>{const[r,o]=m().useState((null==t?void 0:t.footerAlign)||R$.footerAlign),[n,i]=m().useState(void 0===(null==t?void 0:t.animated)?R$.animated:null==t?void 0:t.animated),[s,a]=m().useState(null==t?void 0:t.collection),[l,c]=m().useState(void 0===(null==t?void 0:t.rowsPerPage)?R$.rowsPerPage:null==t?void 0:t.rowsPerPage),[d,u]=m().useState(R$.currentPage),[p,h]=m().useState(null==t?void 0:t.color),g=m().useMemo((()=>({animated:n,footerAlign:r,collection:s,rowsPerPage:l,currentPage:d,color:p,setFooterAlign:o,setCollection:a,setAnimated:i,setRowsPerPage:c,setColor:h,setCurrentPage:u})),[n,p,s,r,l,d]);return(0,St.jsx)(A$.Provider,{value:g,children:e})},z$=(A$.Consumer,({align:e,rowsPerPage:t,onPageChange:r,...o})=>{const{color:n,animated:i,collection:s,footerAlign:a,rowsPerPage:l,setFooterAlign:c,setRowsPerPage:d,setCurrentPage:u}=L$();m().useEffect((()=>{e&&e!==a&&(null==c||c(e))}),[e,a]),m().useEffect((()=>{t&&t!==l&&(null==d||d(t))}),[l,t]);const p=(0,g.useMemo)((()=>{var e;const t=null!=s&&s.body?[...null==s||null==(e=s.body)?void 0:e.childNodes].length:0;return l>0?Math.ceil(t/l):1}),[s,l]);return(0,St.jsx)(Th,{total:p,animated:i,onChange:e=>{null==u||u(e),null==r||r(e)},color:o.color||n,className:wt("nextui-table-pagination",o.className),...o})});z$.displayName="NextUI.TablePagination",z$.toString=()=>".nextui-table-pagination";const H$=z$,D$=m().forwardRef((({children:e,...t},r)=>{const o=(0,g.useRef)(null);(0,g.useImperativeHandle)(r,(()=>null==o?void 0:o.current));const{footerAlign:n}=L$();return(0,St.jsx)(m$,{ref:o,role:"rowgroup",align:t.align||n,className:wt("nextui-table-footer",t.className),...t,children:e})}));D$.displayName="NextUI.TableFooter",D$.toString=()=>".nextui-table-footer";const O$=D$,K$=m().forwardRef((({children:e,item:t,state:r,...o},n)=>{const i=(0,g.useRef)(null);(0,g.useImperativeHandle)(n,(()=>null==i?void 0:i.current));const{rowProps:s}=wb({node:t},r,i),{isFocusVisible:a,focusProps:l}=El(),c=r.disabledKeys.has(t.key);return(0,St.jsx)($$,{ref:i,isFocusVisible:a,isSelected:!!s["aria-selected"],isDisabled:c,className:wt("nextui-table-row",{"nextui-table-row--selected":s["aria-selected"],"nextui-table-row--disabled":c},o.className),css:t.props.css,...$n(s,l,o),children:e})}));K$.displayName="NextUI.TableRow",K$.toString=()=>".nextui-table-row";const F$=K$,j$=m().forwardRef((({cell:e,state:t,...r},o)=>{const n=(0,g.useRef)(null);(0,g.useImperativeHandle)(o,(()=>null==n?void 0:n.current));const{gridCellProps:i}=Cb({node:e},t,n),{isFocusVisible:s,focusProps:a}=El();return(0,St.jsx)(b$,{ref:n,isFocusVisible:s,className:wt("nextui-table-cell",r.className),css:e.props.css,...$n(i,a,r),children:e.rendered})}));j$.displayName="NextUI.TableCell",j$.toString=()=>".nextui-table-cell";const _$=j$,W$=m().forwardRef((({cell:e,state:t,color:r,animated:o,...n},i)=>{const s=(0,g.useRef)(null);(0,g.useImperativeHandle)(i,(()=>null==s?void 0:s.current));const{gridCellProps:a}=Cb({node:e},t,s),{checkboxProps:l}=Eb({key:(null==e?void 0:e.parentKey)||e.key},t),{isFocusVisible:c,focusProps:d}=El();return(0,St.jsx)(b$,{ref:s,isFocusVisible:c,className:wt("nextui-table-checkbox-cell",n.className),...$n(a,d,n),children:(0,St.jsx)(rd,{...l,color:r,disableAnimation:!o,css:{display:"inherit"}})})}));W$.displayName="NextUI.TableCheckboxCell",W$.toString=()=>".nextui-table-checkbox-cell";const V$=W$,U$=e=>{var t;const r=null==(t=e.body)?void 0:t.props;return void 0!==(null==r?void 0:r.loadingState)&&"function"==typeof(null==r?void 0:r.onLoadMore)},G$=({children:e,collection:t,state:r,animated:o,color:n,hasPagination:i,hideLoading:s,...a})=>{var l,c,d,u,p,h;const{currentPage:m,rowsPerPage:f}=L$(),b=(0,g.useMemo)((()=>U$(t)),[t.body.props]),$="loading"===(null==(l=t.body)||null==(c=l.props)?void 0:c.loadingState)||"loadingMore"===(null==(d=t.body)||null==(u=d.props)?void 0:u.loadingState),y=(0,g.useMemo)((()=>{const e=[...t.body.childNodes];return i?null==e?void 0:e.slice((m-1)*f,m*f):e}),[i,t,m,f]),v=(0,g.useMemo)((()=>{const e=y.length;return e>=f&&!b?null:(0,St.jsx)("tr",{role:"row",className:"nextui-table-hidden-row","aria-hidden":"true",children:(0,St.jsx)(f$,{"aria-hidden":"true",colSpan:t.columnCount,style:$n({"--nextui--tableBodyEmptySpaceHeight":b?"var(--nextui-space-10)":`calc(${f-e} * var(--nextui-space-14))`},(null==a?void 0:a.style)||{}),css:{height:"var(--nextui--tableBodyEmptySpaceHeight)"}})})}),[t.columnCount,y,f,b]);return(0,St.jsxs)(S$,{as:"tbody",className:wt("nextui-table-body",a.className),isInfinityScroll:b,onScroll:e=>{if(!b)return;const r=e.target;var o,n;r.scrollHeight-(r.scrollTop+40)<=r.clientHeight&&!$&&(null==(o=t.body)||null==(n=o.props)||null==n.onLoadMore||n.onLoadMore())},css:{pb:"$10",position:"relative",...a.css,...null==(p=t.body)||null==(h=p.props)?void 0:h.css},...a,children:[e,null==y?void 0:y.map((e=>e.hasChildNodes?(0,St.jsx)(F$,{"aria-hidden":"false",item:e,state:r,children:[...e.childNodes].map((e=>{var t;return null!=e&&null!=(t=e.props)&&t.isSelectionCell?(0,St.jsx)(V$,{cell:e,state:r,color:n,animated:o},null==e?void 0:e.key):(0,St.jsx)(_$,{cell:e,state:r},null==e?void 0:e.key)}))},null==e?void 0:e.key):null)),!s&&$&&(0,St.jsx)(v$,{role:"row",className:"nextui-table-hidden-row","aria-hidden":"true",isAtEnd:y.length>0,isAbsolute:!b,children:(0,St.jsx)(f$,{"aria-hidden":"true",colSpan:t.columnCount,children:(0,St.jsx)(Du,{color:n})})}),v]})};G$.displayName="NextUI.TableBody",G$.toString=()=>".nextui-table-body";const J$=G$,Y$=m().forwardRef(((e,t)=>{const{selectionMode:r,selectionBehavior:o,hideLoading:n,children:i,shadow:s,color:a,animated:l,borderWeight:c,bordered:d,containerCss:u,...p}=e,[f,b]=((e,t)=>{const[r,o]=qe(e,t);let n=null;return o&&o.length>=1&&(n=o.length>=0?o[0]:void 0),[r,n]})(i,H$),{hasPagination:$,rowsPerPage:y}=((e,t)=>{const r=m().Children.toArray(e).find((e=>m().isValidElement(e)&&e.type===t));var o;return m().isValidElement(r)?{hasPagination:!0,rowsPerPage:(null==r||null==(o=r.props)?void 0:o.rowsPerPage)||0}:{hasPagination:!1,rowsPerPage:0}})(i,H$),v=t$({...e,children:f,showSelectionCheckboxes:void 0!==e.showSelectionCheckboxes?e.showSelectionCheckboxes:"multiple"===r&&"replace"!==o});Object.keys(p).forEach((e=>{h.indexOf(e)>-1&&delete p[e]}));const x=(0,g.useRef)(null);(0,g.useImperativeHandle)(t,(()=>null==x?void 0:x.current));const{collection:w}=v,{gridProps:S}=vb(e,v,x),C=m().useMemo((()=>({collection:w,color:a,animated:l,rowsPerPage:y})),[w,l,a,y]);return(0,St.jsx)(B$,{defaultValues:C,children:(0,St.jsx)(w$,{shadow:s,borderWeight:c,bordered:d,className:"nextui-table-container",css:{...u},children:(0,St.jsxs)(x$,{ref:x,color:a,shadow:s,animated:l,hoverable:"none"!==r||p.hoverable,isMultiple:"multiple"===r,hasPagination:$,className:wt("nextui-table",p.className),...S,...p,children:[(0,St.jsxs)(S$,{as:"thead",isFixed:U$(w),children:[w.headerRows.map((e=>(0,St.jsx)(I$,{item:e,state:v,children:[...e.childNodes].map((e=>{var t;return null!=e&&null!=(t=e.props)&&t.isSelectionCell?(0,St.jsx)(M$,{column:e,state:v,color:a,animated:l},null==e?void 0:e.key):(0,St.jsx)(P$,{column:e,state:v,animated:l},null==e?void 0:e.key)}))},null==e?void 0:e.key))),!p.sticked&&(0,St.jsx)(Wd,{as:"tr",className:"nextui-table-hidden-row",y:.4})]}),(0,St.jsx)(J$,{state:v,color:a,collection:w,animated:l,hasPagination:$,hideLoading:n}),$&&(0,St.jsxs)(O$,{children:[(0,St.jsx)(Wd,{as:"tr",className:"nextui-table-hidden-row",y:.6}),(0,St.jsx)("tr",{role:"row",children:(0,St.jsx)("th",{tabIndex:-1,role:"columnheader",colSpan:w.columnCount,children:b})})]})]})})})}));Y$.displayName="NextUI.Table",Y$.toString=()=>".nextui-table";const X$=vt(Y$,{animated:!0,hideLoading:!1,selectionMode:"none",selectionBehavior:"toggle"}),q$=u$,Z$=a$,Q$=o$,ey=c$,ty=i$;X$.Cell=q$,X$.Column=Z$,X$.Header=Q$,X$.Row=ey,X$.Body=ty,X$.Pagination=H$;const ry=X$;function oy(e){let[t,r]=nn(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,setOpen:r,open(){r(!0)},close(){r(!1)},toggle(){r(!t)}}}function ny(...e){return t=>{e.forEach((e=>function(e,t){if(null!=e)if(function(e){return"function"==typeof e}(e))e(t);else try{e.current=t}catch(r){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}(e,t)))}}Object.defineProperty({},"useOverlayTriggerState",{get:()=>oy,set:void 0,enumerable:!0,configurable:!0});const[iy,sy]=Oc({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),ay=m().forwardRef(((e,t)=>{const{children:r,...o}=e,n=function(e={}){const{ref:t,triggerRef:r,scrollRef:o,isOpen:n,defaultOpen:i,onOpenChange:s,isBordered:a,borderWeight:l,disableShadow:c,shouldFlip:d=!0,offset:u=12,placement:p="bottom",onClose:h,triggerType:m="dialog",isDismissable:f=!0,shouldCloseOnBlur:b=!1,isKeyboardDismissDisabled:$=!1,disableAnimation:y=!1,shouldCloseOnInteractOutside:v}=e,x=(0,g.useRef)(null),w=(0,g.useRef)(null),S=t||x,C=r||w,k=oy({isOpen:n,defaultOpen:i,onOpenChange:s}),[E,P]=(0,g.useState)(!k.isOpen),T=(0,g.useMemo)((()=>k.isOpen?"open":"closed"),[k.isOpen]),I=(0,g.useCallback)((()=>{null==h||h(),k.close()}),[k,h]),N=(0,g.useCallback)((()=>{P(!1)}),[]),M=(0,g.useCallback)((()=>{P(!0)}),[]),{triggerProps:R,overlayProps:A}=Ys({type:m},k,C),L=(0,g.useMemo)((()=>(e=>e?e.replace("-"," "):"bottom")(p)),[p]),{overlayProps:B}=Vs({isOpen:k.isOpen,targetRef:C,scrollRef:o,placement:L,overlayRef:S,shouldFlip:d,offset:u}),z=(0,g.useCallback)(((e={},t=null)=>({...null!=r&&r.current?$n(R,e):$n(e,R),ref:ny(C,t)})),[C,r,R]),H=(0,g.useCallback)(((e={})=>({...e,...A,...B,"data-state":T,"data-placement":p})),[T,B,A,p]);return{state:k,exited:E,overlayRef:S,triggerRef:C,placement:p,disableShadow:c,disableAnimation:y,shouldCloseOnBlur:b,isDismissable:f,isBordered:a,borderWeight:l,isKeyboardDismissDisabled:$,shouldCloseOnInteractOutside:v,isOpen:k.isOpen,onClose:I,onExited:M,onEntered:N,triggerProps:R,overlayProps:A,positionProps:B,getTriggerProps:z,getPopoverProps:H}}({ref:t,...o}),[i,s]=m().Children.toArray(r),a=n.state.isOpen||!n.exited;return(0,St.jsxs)(iy,{value:n,children:[i,a&&(0,St.jsx)(ca,{children:s})]})}));ay.toString=()=>".nextui-popover";const ly=ay;function cy(e,t){let{role:r="dialog"}=e,o=fn();return o=e["aria-label"]?void 0:o,(0,g.useEffect)((()=>{if(t.current&&!t.current.contains(document.activeElement)){al(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(t.current.blur(),al(t.current))}),500);return()=>{clearTimeout(e)}}}),[t]),{dialogProps:{...Sn(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o},titleProps:{id:o}}}Object.defineProperty({},"useDialog",{get:()=>cy,set:void 0,enumerable:!0,configurable:!0});const dy=je({"0%":{opacity:0,transform:"scale(0.95)"},"60%":{opacity:.75,transform:"scale(1.05)"},"100%":{opacity:1,transform:"scale(1)"}}),uy=je({"0%":{opacity:1,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(0.5)"}}),py=Oe("div",{$$popoverMinWidth:"$space$13",$$popoverMinHeight:"$space$13",$$popoverBorderRadius:"$radii$lg",$$popoverBackground:"$colors$backgroundContrast",$$popoverBoxShadow:"$shadows$md",$$popoverBorderColor:"$colors$border",boxShadow:"$$popoverBoxShadow",outline:"none",overflow:"hidden auto",bg:"$$popoverBackground",display:"inline-flex",flexDirection:"column",boxSizing:"border-box",minWidth:"$$popoverMinWidth",minHeight:"$$popoverMinHeight",maxWidth:"calc(100% - $$popoverMinWidth)",maxHeight:"calc(100% - $$popoverMinWidth)",borderRadius:"$$popoverBorderRadius",animationFillMode:"forwards",willChange:"transform, opacity","@motion":{transition:"none"},"&.nextui-popover-content-enter":{animationName:dy,animationTimingFunction:"ease-out",animationDirection:"normal",animationDuration:"250ms"},"&.nextui-popover-content-leave":{animationName:uy,animationTimingFunction:"ease-in",animationDuration:"60ms"},variants:{disableShadow:{true:{boxShadow:"none"}},isBordered:{true:{borderStyle:"solid",borderColor:"$$popoverBorderColor"}},borderWeight:{light:{bw:"$light",$$popoverBorderWeight:"$borderWeights$light"},normal:{bw:"$normal",$$popoverBorderWeight:"$borderWeights$normal"},bold:{bw:"$bold",$$popoverBorderWeight:"$borderWeights$bold"},extrabold:{bw:"$extrabold",$$popoverBorderWeight:"$borderWeights$extrabold"},black:{bw:"$black",$$popoverBorderWeight:"$borderWeights$black"}}},defaultVariants:{isBordered:!1,borderWeight:"light"}},tl),hy=Oe("div",{transform:"translateZ(0)",backfaceVisibility:"hidden"}),gy=m().forwardRef(((e,t)=>{const{children:r,as:o,css:n,className:i,...s}=e,{state:a,placement:l,overlayRef:c,disableAnimation:d,disableShadow:u,shouldCloseOnBlur:p,isDismissable:h,isKeyboardDismissDisabled:g,shouldCloseOnInteractOutside:m,getPopoverProps:f,isBordered:b,borderWeight:$,onClose:y,onEntered:v,onExited:x}=sy(),w=(e=>{if(!e)return"bottom";switch(e){case"bottom":default:return"top center";case"top":return"bottom center";case"left":return"right center";case"right":return"left center";case"bottom-left":return"top left";case"bottom-right":return"top right";case"top-left":return"bottom left";case"top-right":return"bottom right";case"left-top":return"right top";case"left-bottom":return"right bottom";case"right-top":return"left top";case"right-bottom":return"left bottom"}})(l),{modalProps:S}=da({isDisabled:!0}),{dialogProps:C}=cy({role:"dialog"},c),{overlayProps:k}=Js({onClose:y,isOpen:a.isOpen,isDismissable:h&&a.isOpen,shouldCloseOnBlur:p,isKeyboardDismissDisabled:g,shouldCloseOnInteractOutside:m},c),E=$n({isBordered:b,disableShadow:u,borderWeight:$},s),{isFocusVisible:P,focusProps:T}=El(),I=(0,St.jsxs)(py,{ref:ny(c,t),...f($n(k,S,C,T,E)),className:wt("nextui-popover-content-container",i),isFocusVisible:P,as:o,css:{transformOrigin:w,...n},children:[(0,St.jsx)(Ua,{onDismiss:y}),(0,St.jsx)(hy,{className:"nextui-popover-content",children:r}),(0,St.jsx)(Ua,{onDismiss:y})]});return(0,St.jsx)(St.Fragment,{children:d?a.isOpen?(0,St.jsx)(pl,{restoreFocus:!0,children:I}):null:(0,St.jsx)(pl,{restoreFocus:!0,children:(0,St.jsx)(Vd,{visible:a.isOpen,name:"nextui-popover-content",enterTime:20,leaveTime:60,clearTime:300,onExited:x,onEntered:v,children:I})})})}));gy.toString=()=>".nextui-popover-content";const my=e=>{const{state:t,triggerRef:r,getTriggerProps:o}=sy(),{children:n,...i}=e,s=()=>t.open(),{buttonProps:a}=Gl({onPress:s,...i},r),l=g.Children.only(n),[,c]=qe(e.children,lc),d=void 0!==(null==c?void 0:c[0]);return g.cloneElement(l,o($n(l.props,d?{onPress:s,...i}:a),l.ref))};my.toString=()=>".nextui-popover-trigger",ly.Content=gy,ly.Trigger=my;const fy=ly;function by(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function $y(e){return null}function yy(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&m().Children.count(e.children)>0)}by({},"Item",(()=>vy)),$y.getCollectionNode=function*(e,t){let{childItems:r,title:o,children:n}=e,i=e.title||e.children,s=e.textValue||("string"==typeof i?i:"")||e["aria-label"]||"";s||(null==t?void 0:t.suppressTextValueWarning)||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:i,textValue:s,"aria-label":e["aria-label"],hasChildNodes:yy(e),*childNodes(){if(r)for(let e of r)yield{type:"item",value:e};else if(o){let e=[];m().Children.forEach(n,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let vy=$y;function xy(e){return null}by({},"Section",(()=>wy)),xy.getCollectionNode=function*(e){let{children:t,title:r,items:o}=e;yield{type:"section",hasChildNodes:!0,rendered:r,"aria-label":e["aria-label"],*childNodes(){if("function"==typeof t){if(!o)throw new Error("props.children was a function but props.items is missing");for(let e of o)yield{type:"item",value:e,renderer:t}}else{let e=[];m().Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let wy=xy;by({},"useCollection",(()=>Py));class Sy{build(e,t){return this.context=t,Cy((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:r}=e;if("function"==typeof t){if(!r)throw new Error("props.children was a function but props.items is missing");for(let r of e.items)yield*this.getFullNode({value:r},{renderer:t})}else{let e=[];m().Children.forEach(t,(t=>{e.push(t)}));let r=0;for(let t of e){let e=this.getFullNode({element:t,index:r},{});for(let t of e)r++,yield t}}}getKey(e,t,r,o){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${o}${t.key}`;let n=t.value;if(null!=n){var i;let e=null!==(i=n.key)&&void 0!==i?i:n.id;if(null==e)throw new Error("No key found for item");return e}return o?`${o}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,o){let n=e.element;if(!n&&e.value&&t&&t.renderer){let r=this.cache.get(e.value);if(r&&(!r.shouldInvalidate||!r.shouldInvalidate(this.context)))return r.index=e.index,r.parentKey=o?o.key:null,void(yield r);n=t.renderer(e.value)}if(m().isValidElement(n)){let i=n.type;if("function"!=typeof i&&"function"!=typeof i.getCollectionNode){let e="function"==typeof n.type?n.type.name:n.type;throw new Error(`Unknown element <${e}> in collection.`)}let s=i.getCollectionNode(n.props,this.context),a=e.index,l=s.next();for(;!l.done&&l.value;){let i=l.value;e.index=a;let c=i.key;c||(c=i.element?null:this.getKey(n,e,t,r));let d=[...this.getFullNode({...i,key:c,index:a,wrapper:ky(e.wrapper,i.wrapper)},this.getChildState(t,i),r?`${r}${n.key}`:n.key,o)];for(let t of d){if(t.value=i.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${Ey(t.type)}> in <${Ey(o.type)}>. Only <${Ey(e.type)}> is supported.`);a++,yield t}l=s.next(d)}return}if(null==e.key)return;let i=this,s={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:e.value,level:o?o.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:Cy((function*(){if(!e.hasChildNodes)return;let r=0;for(let o of e.childNodes()){null!=o.key&&(o.key=`${s.key}${o.key}`),o.index=r;let e=i.getFullNode(o,i.getChildState(t,o),s.key,s);for(let t of e)r++,yield t}}))};yield s}constructor(){this.cache=new WeakMap}}function Cy(e){let t=[],r=null;return{*[Symbol.iterator](){for(let e of t)yield e;r||(r=e());for(let e of r)t.push(e),yield e}}}function ky(e,t){return e&&t?r=>e(t(r)):e||t||void 0}function Ey(e){return e[0].toUpperCase()+e.slice(1)}function Py(e,t,r,o=[]){let n=(0,g.useMemo)((()=>new Sy),[]),i=(0,g.useRef)(null);return(0,g.useMemo)((()=>{let o=n.build(e,r);return i.current=t(o,i.current),i.current}),[n,e.children,e.items,r,...o])}by({},"getItemCount",(()=>Iy));const Ty=new WeakMap;function Iy(e){let t=Ty.get(e);if(null!=t)return t;t=0;for(let r of e)"section"===r.type?t+=Iy(r.childNodes):t++;return Ty.set(e,t),t}const Ny=vy,[My,Ry]=Oc({name:"DropdownContext",errorMessage:"useDropdownContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Dropdown />`"}),Ay=e=>{const{children:t,...r}=e,{getMenuTriggerProps:o}=Ry();return(0,St.jsx)(fy.Trigger,{...o(r),children:t})};Ay.toString=()=>".nextui-dropdown-trigger";const Ly=Ay;function By(e){return e&&e.__esModule?e.default:e}function zy(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}var Hy,Dy,Oy,Ky,Fy,jy,_y,Wy,Vy,Uy,Gy,Jy,Yy,Xy,qy,Zy,Qy,ev,tv,rv,ov,nv,iv,sv,av,lv,cv,dv,uv,pv,hv,gv,mv,fv,bv;function $v(e,t,r){let{type:o="menu",isDisabled:n,trigger:i="press"}=e,s=gn(),{triggerProps:a,overlayProps:l}=Ys({type:o},t,r),c=Yo(By(Hy)),{longPressProps:d}=ws({accessibilityDescription:c("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),u={onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||n||t.toggle("virtual"===e.pointerType?"first":null)},onPress(e){"touch"!==e.pointerType||n||t.toggle()}};return a=$n(a,"press"===i?u:d),{menuTriggerProps:{...a,id:s,onKeyDown:e=>{if(!n&&("longPress"!==i||e.altKey)&&r&&r.current)switch(e.key){case"Enter":case" ":if("longPress"===i)return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last")}}},menuProps:{...l,"aria-labelledby":s}}}function yv(e,t,r){let{shouldFocusWrap:o=!0,...n}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let i=Sn(e,{labelable:!0}),{listProps:s}=Og({...n,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:o});return{menuProps:$n(i,{role:"menu",...s})}}function vv(e,t,r){let{isSelected:o,isDisabled:n,key:i,onClose:s,closeOnSelect:a,isVirtualized:l,onAction:c}=e,d="menuitem";"single"===t.selectionManager.selectionMode?d="menuitemradio":"multiple"===t.selectionManager.selectionMode&&(d="menuitemcheckbox");let u=fn(),p=fn(),h=fn(),g={"aria-disabled":n,role:d,"aria-label":e["aria-label"],"aria-labelledby":u,"aria-describedby":[p,h].filter(Boolean).join(" ")||void 0};"none"!==t.selectionManager.selectionMode&&(g["aria-checked"]=o),l&&(g["aria-posinset"]=t.collection.getItem(i).index,g["aria-setsize"]=Iy(t.collection));let{itemProps:m}=Hg({selectionManager:t.selectionManager,key:i,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0}),{pressProps:f}=Mi({onPressStart:e=>{"keyboard"===e.pointerType&&c&&c(i)},onPressUp:e=>{"keyboard"!==e.pointerType&&(c&&c(i),s&&(null!=a?a:"multiple"!==t.selectionManager.selectionMode)&&s())},isDisabled:n}),{hoverProps:b}=gs({isDisabled:n,onHoverStart(){rs()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i))}});return{menuItemProps:{...g,...$n(m,f,b,{onKeyDown:e=>{if(!e.repeat)switch(e.key){case" ":!n&&"none"===t.selectionManager.selectionMode&&!1!==a&&s&&s();break;case"Enter":!n&&!1!==a&&s&&s()}}})},labelProps:{id:u},descriptionProps:{id:p},keyboardShortcutProps:{id:h}}}function xv(e){let{heading:t,"aria-label":r}=e,o=gn();return{itemProps:{role:"presentation"},headingProps:t?{id:o,"aria-hidden":!0}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?o:void 0}}}function wv(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}zy({},"useMenuTrigger",(()=>$v)),Dy=JSON.parse('{"longPressMessage":"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"}'),Oy=JSON.parse('{"longPressMessage":"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"}'),Ky=JSON.parse('{"longPressMessage":"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"}'),Fy=JSON.parse('{"longPressMessage":"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"}'),jy=JSON.parse('{"longPressMessage":"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"}'),_y=JSON.parse('{"longPressMessage":"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"}'),Wy=JSON.parse('{"longPressMessage":"Long press or press Alt + ArrowDown to open menu"}'),Vy=JSON.parse('{"longPressMessage":"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"}'),Uy=JSON.parse('{"longPressMessage":"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"}'),Gy=JSON.parse('{"longPressMessage":"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"}'),Jy=JSON.parse('{"longPressMessage":"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."}'),Yy=JSON.parse('{"longPressMessage":"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"}'),Xy=JSON.parse('{"longPressMessage":"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"}'),qy=JSON.parse('{"longPressMessage":"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"}'),Zy=JSON.parse('{"longPressMessage":"Premere a lungo o premere Alt + Freccia giù per aprire il menu"}'),Qy=JSON.parse('{"longPressMessage":"長押しまたは Alt+下矢印キーでメニューを開く"}'),ev=JSON.parse('{"longPressMessage":"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"}'),tv=JSON.parse('{"longPressMessage":"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."}'),rv=JSON.parse('{"longPressMessage":"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"}'),ov=JSON.parse('{"longPressMessage":"Langt trykk eller trykk Alt + PilNed for å åpne menyen"}'),nv=JSON.parse('{"longPressMessage":"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"}'),iv=JSON.parse('{"longPressMessage":"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"}'),sv=JSON.parse('{"longPressMessage":"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"}'),av=JSON.parse('{"longPressMessage":"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"}'),lv=JSON.parse('{"longPressMessage":"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"}'),cv=JSON.parse('{"longPressMessage":"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"}'),dv=JSON.parse('{"longPressMessage":"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"}'),uv=JSON.parse('{"longPressMessage":"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"}'),pv=JSON.parse('{"longPressMessage":"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"}'),hv=JSON.parse('{"longPressMessage":"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"}'),gv=JSON.parse('{"longPressMessage":"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"}'),mv=JSON.parse('{"longPressMessage":"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"}'),fv=JSON.parse('{"longPressMessage":"长按或按 Alt + 向下方向键以打开菜单"}'),bv=JSON.parse('{"longPressMessage":"長按或按 Alt+向下鍵以開啟功能表"}'),Hy={"ar-AE":Dy,"bg-BG":Oy,"cs-CZ":Ky,"da-DK":Fy,"de-DE":jy,"el-GR":_y,"en-US":Wy,"es-ES":Vy,"et-EE":Uy,"fi-FI":Gy,"fr-FR":Jy,"he-IL":Yy,"hr-HR":Xy,"hu-HU":qy,"it-IT":Zy,"ja-JP":Qy,"ko-KR":ev,"lt-LT":tv,"lv-LV":rv,"nb-NO":ov,"nl-NL":nv,"pl-PL":iv,"pt-BR":sv,"pt-PT":av,"ro-RO":lv,"ru-RU":cv,"sk-SK":dv,"sl-SI":uv,"sr-SP":pv,"sv-SE":hv,"tr-TR":gv,"uk-UA":mv,"zh-CN":fv,"zh-TW":bv},zy({},"useMenu",(()=>yv)),zy({},"useMenuItem",(()=>vv)),zy({},"useMenuSection",(()=>xv)),wv({},"useMultipleSelectionState",(()=>Cv));class Sv extends Set{constructor(e,t,r){super(e),e instanceof Sv?(this.anchorKey=t||e.anchorKey,this.currentKey=r||e.currentKey):(this.anchorKey=t,this.currentKey=r)}}function Cv(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:o}=e,n=(0,g.useRef)(!1),[,i]=(0,g.useState)(!1),s=(0,g.useRef)(null),a=(0,g.useRef)(null),[,l]=(0,g.useState)(null),c=(0,g.useMemo)((()=>kv(e.selectedKeys)),[e.selectedKeys]),d=(0,g.useMemo)((()=>kv(e.defaultSelectedKeys,new Sv)),[e.defaultSelectedKeys]),[u,p]=nn(c,d,e.onSelectionChange),h=(0,g.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[m,f]=(0,g.useState)(e.selectionBehavior||"toggle");return"replace"===e.selectionBehavior&&"toggle"===m&&"object"==typeof u&&0===u.size&&f("replace"),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:m,setSelectionBehavior:f,get isFocused(){return n.current},setFocused(e){n.current=e,i(e)},get focusedKey(){return s.current},get childFocusStrategy(){return a.current},setFocusedKey(e,t="first"){s.current=e,a.current=t,l(e)},selectedKeys:u,setSelectedKeys(e){!o&&function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,u)||p(e)},disabledKeys:h}}function kv(e,t){return e?"all"===e?"all":new Sv(e):t}wv({},"SelectionManager",(()=>Ev));class Ev{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?!this.state.disabledKeys.has(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let r=this.collection.getItem(t);(!e||(null==r?void 0:r.index)<e.index)&&(e=r)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let r=this.collection.getItem(t);(!e||(null==r?void 0:r.index)>e.index)&&(e=r)}return null==e?void 0:e.key}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new Sv([e],e,e);else{let r=this.state.selectedKeys,o=r.anchorKey||e;t=new Sv(r,o,e);for(let n of this.getKeyRange(o,r.currentKey||e))t.delete(n);for(let r of this.getKeyRange(e,o))this.state.disabledKeys.has(r)||t.add(r)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let r=this.collection.getItem(e),o=this.collection.getItem(t);return r&&o?r.index<=o.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let r=[],o=e;for(;o;){let e=this.collection.getItem(o);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&r.push(o),o===t)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new Sv("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){"none"!==this.selectionMode&&null!=(e=this.getKey(e))&&this.state.setSelectedKeys(new Sv([e],e,e))}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new Sv;for(let r of e)if(r=this.getKey(r),null!=r&&(t.add(r),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=r=>{for(;r;){if(!this.state.disabledKeys.has(r)){let o=this.collection.getItem(r);"item"===o.type&&e.push(r),o.hasChildNodes&&(this.allowsCellSelection||"item"!==o.type)&&t([...o.childNodes][0].key)}r=this.collection.getKeyAfter(r)}};return t(this.collection.getFirstKey()),e}selectAll(){"multiple"===this.selectionMode&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Sv)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;for(let r of t)if(!e.has(r))return!1;return!0}canSelectItem(e){if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let t=this.collection.getItem(e);return!(!t||"cell"===t.type&&!this.allowsCellSelection)}constructor(e,t,r){var o;this.collection=e,this.state=t,this.allowsCellSelection=null!==(o=null==r?void 0:r.allowsCellSelection)&&void 0!==o&&o,this._isSelectAll=null}}Object.defineProperty({},"useTreeState",{get:()=>Iv,set:void 0,enumerable:!0,configurable:!0});var Pv=Symbol.iterator;class Tv{*[Pv](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.iterable=e,t=t||new Set;let r,o=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&("section"===e.type||t.has(e.key)))for(let t of e.childNodes)o(t)};for(let t of e)o(t);let n=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=n++),r=t,r.nextKey=void 0;this.lastKey=null==r?void 0:r.key}}function Iv(e){let[t,r]=nn(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),o=Cv(e),n=(0,g.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),i=Py(e,(e=>new Tv(e,{expandedKeys:t})),null,[t]);return(0,g.useEffect)((()=>{null==o.focusedKey||i.getItem(o.focusedKey)||o.setFocusedKey(null)}),[i,o.focusedKey]),{collection:i,expandedKeys:t,disabledKeys:n,toggleKey:e=>{r(function(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}(t,e))},selectionManager:new Ev(i,o)}}const Nv=je({"100%":{strokeDashoffset:0}}),Mv=Oe("svg",{d:"block",path:{transformOrigin:"50% 50%",strokeDasharray:48,strokeDashoffset:48,animation:`${Nv} .25s cubic-bezier(0.650, 0.000, 0.450, 1.000) forwards`}}),Rv=e=>{const{width:t=24,height:r=24,size:o,strokeWidth:n=3,fill:i="currentColor",css:s,className:a}=e;return(0,St.jsx)(Mv,{role:"img",width:o||t,height:o||r,className:wt("nextui-checkmark",a),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 52",css:{...s},children:(0,St.jsx)("path",{stroke:i,strokeWidth:n,fill:"none",d:"M14.1 27.2l7.1 7.2 16.7-16.8"})})};Rv.toString=()=>".nextui-checkmark";const Av=Rv,Lv=Oe("ul",{$$dropdownItemHeight:"$space$13",$$dropdownMenuPadding:"$space$4",$$dropdownMenuWidth:"250px",listStyle:"none",position:"relative",width:"$$dropdownMenuWidth",p:"$$dropdownMenuPadding",m:0,outline:"none"}),Bv=Oe("span",{dflex:"center",flexShrink:0,mr:"$4"}),zv=Oe("kbd",{opacity:.8,ml:"$4",mr:0,dflex:"center",color:"$$dropdownItemKeyboardColor",fontSize:"$xs",fontFamily:"$sans",boxShadow:"none",bg:"transparent",transition:"border 0.26s ease 0s"}),Hv=Oe("div",{d:"flex",flex:"1 1 0%",flexDirection:"column",alignItems:"flex-start",lineHeight:1.2}),Dv=Oe("span",{flex:"1 1 0%"}),Ov=Oe("span",{fontSize:"$xs",color:"$$dropdownItemDescriptionColor",truncateText:"calc($$dropdownMenuWidth * 0.9)",transition:"color 0.26s ease 0s",variants:{hasIcon:{true:{truncateText:"calc($$dropdownMenuWidth * 0.7)"}},hasCommand:{true:{truncateText:"calc($$dropdownMenuWidth * 0.7)"}}},compoundVariants:[{hasIcon:!0,hasCommand:!0,css:{truncateText:"calc($$dropdownMenuWidth * 0.6)"}}]}),Kv=Oe("li",{$$dropdownItemPressedScale:.97,$$dropdownItemTextColor:"$colors$text",$$dropdownItemBorderRadius:"$radii$sm",$$dropdownItemKeyboardColor:"$colors$accents8",$$dropdownItemDescriptionColor:"$colors$accents8",dflex:"center",outline:"none",cursor:"pointer",justifyContent:"space-between",bg:"transparent",position:"relative",height:"$$dropdownItemHeight",px:"$6",br:"$$dropdownItemBorderRadius",color:"$$dropdownItemTextColor",mb:0,transition:"$dropdownItem",transform:"translateZ(0)",backfaceVisibility:"hidden",$$dropdownItemShadow:"$colors$primaryShadow","@motion":{transition:"none",[`& ${zv}`]:{transition:"none"},[`& ${Ov}`]:{transition:"none"}},variants:{color:{default:{$$dropdownItemHoverBackground:"$colors$neutralLight",$$dropdownItemHoverTextColor:"$colors$neutralLightContrast",$$dropdownItemActiveBackground:"$colors$neutralLightActive",$$dropdownItemSolidHoverBackground:"$colors$neutral",$$dropdownItemSolidHoverTextColor:"$colors$neutralSolidContrast",$$dropdownItemShadow:"$colors$neutralShadow",$$dropdownItemHoverBorderColor:"$colors$neutralBorder"},primary:{$$dropdownItemHoverBackground:"$colors$primaryLight",$$dropdownItemHoverTextColor:"$colors$primaryLightContrast",$$dropdownItemActiveBackground:"$colors$primaryLightActive",$$dropdownItemSolidHoverBackground:"$colors$primary",$$dropdownItemSolidHoverTextColor:"$colors$primarySolidContrast",$$dropdownItemShadow:"$colors$primaryShadow",$$dropdownItemHoverBorderColor:"$colors$primaryBorder"},secondary:{$$dropdownItemHoverBackground:"$colors$secondaryLight",$$dropdownItemHoverTextColor:"$colors$secondaryLightContrast",$$dropdownItemActiveBackground:"$colors$secondaryLightActive",$$dropdownItemSolidHoverBackground:"$colors$secondary",$$dropdownItemSolidHoverTextColor:"$colors$secondarySolidContrast",$$dropdownItemShadow:"$colors$secondaryShadow",$$dropdownItemHoverBorderColor:"$colors$secondaryBorder"},success:{$$dropdownItemHoverBackground:"$colors$successLight",$$dropdownItemHoverTextColor:"$colors$successLightContrast",$$dropdownItemActiveBackground:"$colors$successLightActive",$$dropdownItemSolidHoverBackground:"$colors$success",$$dropdownItemSolidHoverTextColor:"$colors$successSolidContrast",$$dropdownItemShadow:"$colors$successShadow",$$dropdownItemHoverBorderColor:"$colors$successBorder"},warning:{$$dropdownItemHoverBackground:"$colors$warningLight",$$dropdownItemHoverTextColor:"$colors$warningLightContrast",$$dropdownItemActiveBackground:"$colors$warningLightActive",$$dropdownItemSolidHoverBackground:"$colors$warning",$$dropdownItemSolidHoverTextColor:"$colors$warningSolidContrast",$$dropdownItemShadow:"$colors$warningShadow",$$dropdownItemHoverBorderColor:"$colors$warningBorder"},error:{$$dropdownItemHoverBackground:"$colors$errorLight",$$dropdownItemHoverTextColor:"$colors$errorLightContrast",$$dropdownItemActiveBackground:"$colors$errorLightActive",$$dropdownItemSolidHoverBackground:"$colors$error",$$dropdownItemSolidHoverTextColor:"$colors$errorSolidContrast",$$dropdownItemShadow:"$colors$errorShadow",$$dropdownItemHoverBorderColor:"$colors$errorBorder"}},textColor:{default:{},primary:{$$dropdownItemTextColor:"$colors$primaryLightContrast",$$dropdownItemHoverTextColor:"$colors$primaryLightContrast"},secondary:{$$dropdownItemTextColor:"$colors$secondaryLightContrast",$$dropdownItemHoverTextColor:"$colors$secondaryLightContrast"},success:{$$dropdownItemTextColor:"$colors$successLightContrast",$$dropdownItemHoverTextColor:"$colors$successLightContrast"},warning:{$$dropdownItemTextColor:"$colors$warningLightContrast",$$dropdownItemHoverTextColor:"$colors$warningLightContrast"},error:{$$dropdownItemTextColor:"$colors$errorLightContrast",$$dropdownItemHoverTextColor:"$colors$errorLightContrast"}},variant:{flat:{true:{}},light:{true:{}},solid:{true:{}},shadow:{true:{}}},isPressed:{true:{bg:"$$dropdownItemActiveBackground"}},isFocused:{true:{bg:"$$dropdownItemHoverBackground",color:"$$dropdownItemHoverTextColor",[`& ${zv}`]:{color:"$$dropdownItemHoverTextColor",borderColor:"$$dropdownItemHoverBorderColor"},[`& ${Ov}`]:{color:"currentColor"}}},isHovered:{true:{bg:"$$dropdownItemHoverBackground",color:"$$dropdownItemHoverTextColor",[`& ${zv}`]:{color:"$$dropdownItemHoverTextColor",borderColor:"$$dropdownItemHoverBorderColor"},[`& ${Ov}`]:{color:"currentColor"}}},shouldShowOutline:{true:{outline:"solid 2px $$dropdownItemActiveBackground"}},isSelected:{true:{}},isSelectable:{true:{}},isDisabled:{true:{color:"$accents5",cursor:"default"}},withDescription:{true:{height:"calc($$dropdownItemHeight * 1.2)"}},withDivider:{true:{mt:"$6","&:before":{content:'""',position:"absolute",top:"-$3",left:"-$$dropdownMenuPadding",right:"-$$dropdownMenuPadding",height:"$$dropdownItemBorderWeight",bg:"$border"}}},dividerWeight:{light:{$$dropdownItemBorderWeight:"$borderWeights$light"},normal:{$$dropdownItemBorderWeight:"$borderWeights$normal"},bold:{$$dropdownItemBorderWeight:"$borderWeights$bold"},extrabold:{$$dropdownItemBorderWeight:"$borderWeights$extrabold"},black:{$$dropdownItemBorderWeight:"$borderWeights$black"}},disableAnimation:{true:{transition:"none",[`& ${zv}`]:{transition:"none"},[`& ${Ov}`]:{transition:"none"}}}},compoundVariants:[{isPressed:!0,disableAnimation:!1,css:{transform:"scale($$dropdownItemPressedScale)"}},{isHovered:!0,variant:"light",css:{bg:"transparent"}},{isFocused:!0,variant:"light",css:{bg:"transparent"}},{isHovered:!0,variant:"solid",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",[`& ${zv}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isFocused:!0,variant:"solid",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",[`& ${zv}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isHovered:!0,variant:"shadow",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",boxShadow:"0 3px 10px 0 $$dropdownItemShadow",[`& ${zv}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isFocused:!0,variant:"shadow",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",boxShadow:"0 3px 10px 0 $$dropdownItemShadow",[`& ${zv}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{variant:"flat",color:"default",css:{$$dropdownItemHoverTextColor:"$colors$foreground"}}],defaultVariants:{color:"default",textColor:"default",dividerWeight:"light",variant:"flat"}},tl),Fv=Oe("li",{mb:0}),jv=Oe("ul",{m:0,p:0,listStyle:"none"}),_v=Oe("span",{fontWeight:"$medium",fontSize:"$xs",padding:"0 $4",color:"$accents8"}),Wv=({as:e,css:t,item:r,state:o,color:n,icon:i,command:s,description:a,textColor:l,variant:c,autoFocus:d,isVirtualized:u,withDivider:p,dividerWeight:h,onAction:m,className:f})=>{const{onClose:b,closeOnSelect:$,disableAnimation:y,borderWeight:v}=Ry(),{rendered:x,key:w}=r,S=o.selectionManager.isSelected(w),C=o.selectionManager.focusedKey===r.key,k=o.disabledKeys.has(w),E=(0,g.useRef)(null),{pressProps:P,isPressed:T}=Mi({ref:E,isDisabled:k}),{isFocusVisible:I,focusProps:N}=El({autoFocus:d}),{hoverProps:M,isHovered:R}=gs({isDisabled:k}),A="none"!==o.selectionManager.selectionMode&&!k,{menuItemProps:L,labelProps:B,descriptionProps:z,keyboardShortcutProps:H}=vv({key:w,onClose:b,isSelected:S,isDisabled:k,"aria-label":r["aria-label"],closeOnSelect:$,isVirtualized:u,onAction:m},o,E),D=(0,g.useMemo)((()=>R?"hovered":S?"selected":T?"pressed":k?"disabled":"ready"),[S,k,R,T]),O=(0,g.useMemo)((()=>r.props.textColor?r.props.textColor:r.props.color&&"default"===l?r.props.color:l),[l,r.props.color,r.props.textColor]),K=(0,g.useMemo)((()=>a||r.props.description),[a,r.props.description]),F=(0,g.useMemo)((()=>s||r.props.command),[s,r.props.command]),j=(0,g.useMemo)((()=>i||r.props.icon),[i,r.props.icon]);return(0,St.jsxs)(Kv,{ref:E,...$n(L,M,P,N),as:r.props.as||e,css:{...$n(t,r.props.css)},"data-state":D,color:r.props.color||n,variant:r.props.variant||c,textColor:O,isFocused:C,isFocusVisible:I,shouldShowOutline:I&&"shadow"===c,isHovered:R,isSelected:S,isDisabled:k,isPressed:T,isSelectable:A,withDivider:p||r.props.withDivider,withDescription:!!K,dividerWeight:h||r.props.dividerWeight||v,disableAnimation:y,className:wt("nextui-dropdown-item",{"is-disabled":k,"is-selected":S,"is-selectable":A,"is-hovered":R,"is-focused":C,"is-pressed":T},f,r.props.className),children:[j&&(0,St.jsx)(Bv,{className:"nextui-dropdown-item-icon-wrapper",children:j}),K?(0,St.jsxs)(Hv,{children:[(0,St.jsx)(Dv,{className:"nextui-dropdown-item-content",...B,children:x}),(0,St.jsx)(Ov,{className:"nextui-dropdown-item-description",hasIcon:!!j,hasCommand:!!F,...z,children:K})]}):(0,St.jsx)(Dv,{className:"nextui-dropdown-item-content",...B,children:x}),F&&(0,St.jsx)(zv,{className:"nextui-dropdown-item-command",...H,children:F}),S&&(0,St.jsx)(Av,{css:{ml:"$4"}})]})};Wv.toString=()=>".nextui-dropdown-item";const Vv=Wv,Uv=e=>{var t,r;const{item:o,state:n,css:i,as:s,color:a,textColor:l,variant:c,withDivider:d=!0,className:u,onAction:p}=e,{itemProps:h,headingProps:m,groupProps:f}=xv({heading:o.rendered,"aria-label":o["aria-label"]});return(0,St.jsxs)(g.Fragment,{children:[o.key!==n.collection.getFirstKey()&&d&&(0,St.jsx)(Pc,{as:"li",className:"nextui-dropdown-section-divider",css:{my:"$2"}}),(0,St.jsxs)(Fv,{...h,className:"nextui-dropdown-section-wrapper",children:[o.rendered&&(0,St.jsx)(_v,{...m,className:"nextui-dropdown-section-title",children:o.rendered}),(0,St.jsx)(jv,{...f,as:(null==(t=o.props)?void 0:t.as)||s,css:{...$n(i,null==(r=o.props)?void 0:r.css)},className:wt("nextui-dropdown-section",u),children:[...o.childNodes].map((e=>{let t=(0,St.jsx)(Vv,{item:e,state:n,onAction:p,color:a,textColor:l,variant:c},e.key);return e.wrapper&&(t=e.wrapper(t)),t}))})]})]})};Uv.toString=()=>".nextui-dropdown-section";const Gv=Uv,Jv=m().forwardRef(((e,t)=>{const{css:r={},as:o,color:n="default",textColor:i="default",variant:s="flat",...a}=e,l=Ry(),c={...$n(l,a)},d=Al(t),u=Iv(c),{menuProps:p}=yv(c,u,d);return function(e,t){(0,g.useLayoutEffect)((()=>{if(e&&e.ref&&t&&t.current)return e.ref.current=t.current,()=>{var t;null!=(t=e.ref)&&t.current&&(e.ref.current=null)}}),[e,t])}(l,d),(0,St.jsx)(Lv,{ref:d,as:o,css:{...r},className:wt("nextui-dropdown-menu",e.className),...p,children:[...u.collection].map((e=>{if("section"===e.type)return(0,St.jsx)(Gv,{item:e,state:u,onAction:c.onAction,color:n,textColor:i,variant:s},e.key);let t=(0,St.jsx)(Vv,{item:e,state:u,onAction:c.onAction,color:n,textColor:i,variant:s},e.key);return e.wrapper&&(t=e.wrapper(t)),t}))})}));Jv.toString=()=>".nextui-dropdown-menu";const Yv=Jv,Xv=({fill:e,size:t,height:r,width:o,...n})=>(0,St.jsx)("svg",{width:t||o||24,height:t||r||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,St.jsx)("path",{d:"M17.9188 8.17969H11.6888H6.07877C5.11877 8.17969 4.63877 9.33969 5.31877 10.0197L10.4988 15.1997C11.3288 16.0297 12.6788 16.0297 13.5088 15.1997L15.4788 13.2297L18.6888 10.0197C19.3588 9.33969 18.8788 8.17969 17.9188 8.17969Z",fill:e})});Xv.toString=()=>".nextui-dropdown-icon";const qv=Xv,Zv=m().forwardRef(((e,t)=>{const{children:r,className:o,iconRight:n,iconRightCss:i,auto:s=!0,animated:a,...l}=e,{disableAnimation:c}=Ry(),d=Al(t),u=(0,g.useMemo)((()=>n||(0,St.jsx)(qv,{size:14,fill:"currentColor"})),[n]),p=(0,g.useMemo)((()=>a||!c),[a,c]);return(0,St.jsx)(Ly,{children:(0,St.jsx)(lc,{ref:d,auto:s,className:wt("nextui-dropdown-button",o),iconRight:u,animated:p,iconRightCss:{mt:"$1",...i},...l,children:r})})}));Zv.toString=()=>".nextui-dropdown-button";const Qv=Zv;function ex(e){let t=oy(e),[r,o]=(0,g.useState)(null);return{focusStrategy:r,...t,open(e=null){o(e),t.open()},toggle(e=null){o(e),t.toggle()}}}Object.defineProperty({},"useMenuTriggerState",{get:()=>ex,set:void 0,enumerable:!0,configurable:!0});const tx=e=>{const{children:t,...r}=e,o=function(e={}){const{triggerRef:t,type:r="menu",trigger:o="press",isDisabled:n=!1,borderWeight:i,closeOnSelect:s,disableAnimation:a=!1,...l}=e,c=(0,g.useRef)(null),d=t||c,u=(0,g.useRef)(null),p=(0,g.useRef)(null),h=ex(e),{menuTriggerProps:m,menuProps:f}=$v({type:r,trigger:o,isDisabled:n},h,d),b=(0,g.useCallback)(((e={},r=null)=>({...null!=t&&t.current?$n(m,e):$n(e,m),ref:ny(c,r)})),[c,t,m]);return{...f,popoverProps:l,state:h,ref:u,onClose:h.close,autoFocus:h.focusStrategy||!0,disableAnimation:a,menuRef:u,borderWeight:i,menuPopoverRef:p,menuTriggerRef:d,closeOnSelect:s,getMenuTriggerProps:b}}(r),[n,i]=m().Children.toArray(t);return(0,St.jsx)(My,{value:o,children:(0,St.jsxs)(fy,{ref:o.menuPopoverRef,...o.popoverProps,triggerRef:o.menuTriggerRef,scrollRef:o.menuRef,isOpen:o.state.isOpen,onClose:o.state.close,borderWeight:o.borderWeight,disableAnimation:o.disableAnimation,children:[n,(0,St.jsx)(fy.Content,{children:i})]})})};tx.toString=()=>".nextui-dropdown";const rx=tx;rx.Trigger=Ly,rx.Button=Qv,rx.Menu=Yv,rx.Section=wy,rx.Item=Ny;const ox=rx})(),i})()}));
|