@nextui-org/react 1.0.0-beta.12 → 1.0.0-beta.13

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/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,((e,t)=>(()=>{"use strict";var r={889:e=>{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)=>{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)=>{e.exports=r(628)},787:t=>{t.exports=e},156:e=>{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(()=>{n.r(i),n.d(i,{Avatar:()=>Zn,Backdrop:()=>Au,Badge:()=>Q$,Button:()=>Fa,Card:()=>nl,Checkbox:()=>Ql,Code:()=>oc,Col:()=>ac,Collapse:()=>Cc,Container:()=>Ec,CssBaseline:()=>Kt,Divider:()=>Za,Drip:()=>Rt,Dropdown:()=>K$,Grid:()=>Fc,Image:()=>Ga,Input:()=>Eg,KeyCode:()=>ft,KeyMod:()=>bt,Link:()=>yd,Loading:()=>Bd,Modal:()=>Mp,Navbar:()=>Kf,NextUIProvider:()=>Lo,Pagination:()=>Xp,Popover:()=>Ym,Progress:()=>Qu,Radio:()=>mu,Row:()=>pd,Snippet:()=>ld,Spacer:()=>Dc,Spinner:()=>zd,StyledAvatar:()=>Dn,StyledAvatarGroup:()=>_n,StyledAvatarGroupCount:()=>Gn,StyledBackdrop:()=>Bu,StyledBackdropContent:()=>Lu,StyledBackdropLayer:()=>Nu,StyledBadge:()=>X$,StyledBadgePoints:()=>Z$,StyledBadgeRoot:()=>Y$,StyledBaseNavbarItem:()=>tf,StyledBaseNavbarList:()=>rf,StyledButton:()=>Ia,StyledButtonGroup:()=>Ba,StyledButtonIcon:()=>Ta,StyledCard:()=>Qa,StyledCardBody:()=>Ja,StyledCardFooter:()=>tl,StyledCardHeader:()=>el,StyledCheckboxContainer:()=>Gl,StyledCheckboxGroup:()=>_l,StyledCheckboxLabel:()=>Wl,StyledCheckboxMask:()=>Vl,StyledCheckboxText:()=>Ul,StyledCode:()=>ec,StyledCol:()=>nc,StyledCollapse:()=>pc,StyledCollapseContent:()=>hc,StyledCollapseGroup:()=>$c,StyledCollapseIcon:()=>mc,StyledCollapseView:()=>gc,StyledContainer:()=>kc,StyledDivider:()=>qa,StyledDividerText:()=>Ya,StyledDropdownItem:()=>y$,StyledDropdownItemContent:()=>f$,StyledDropdownItemContentWrapper:()=>$$,StyledDropdownItemDescription:()=>b$,StyledDropdownItemIconWrapper:()=>h$,StyledDropdownItemKbd:()=>m$,StyledDropdownMenu:()=>g$,StyledDropdownSection:()=>x$,StyledDropdownSectionTitle:()=>w$,StyledDropdownSectionWrapper:()=>v$,StyledGridContainer:()=>Mc,StyledGridItem:()=>Ic,StyledHelperText:()=>pg,StyledHelperTextContainer:()=>ug,StyledIconCheck:()=>Ol,StyledIconCheckFirstLine:()=>Dl,StyledIconCheckSecondLine:()=>jl,StyledImage:()=>Da,StyledImageContainer:()=>Wa,StyledImageSkeleton:()=>ja,StyledInput:()=>cg,StyledInputBlockLabel:()=>hg,StyledInputClearButton:()=>fg,StyledInputContainer:()=>lg,StyledInputContent:()=>$g,StyledInputLabel:()=>mg,StyledInputMainContainer:()=>sg,StyledInputPlaceholder:()=>gg,StyledInputWrapper:()=>dg,StyledLink:()=>hd,StyledLinkIcon:()=>gd,StyledLoading:()=>Ed,StyledLoadingContainer:()=>Cd,StyledLoadingLabel:()=>Md,StyledModal:()=>dp,StyledModalBody:()=>lp,StyledModalCloseButton:()=>sp,StyledModalFooter:()=>cp,StyledModalHeader:()=>ap,StyledModalHideTab:()=>ip,StyledNavbar:()=>hf,StyledNavbarBrand:()=>cf,StyledNavbarCollapse:()=>sf,StyledNavbarCollapseItem:()=>of,StyledNavbarCollapseWrapper:()=>nf,StyledNavbarContainer:()=>gf,StyledNavbarContent:()=>pf,StyledNavbarItem:()=>df,StyledNavbarToggle:()=>lf,StyledNavbarToggleIconContainer:()=>af,StyledPagination:()=>Ap,StyledPaginationEllipsis:()=>Lp,StyledPaginationHighlight:()=>Hp,StyledPaginationIcon:()=>Np,StyledPaginationItem:()=>Rp,StyledPaginationItemContent:()=>Bp,StyledPopoverContent:()=>Gm,StyledPre:()=>tc,StyledProgress:()=>Yu,StyledProgressBar:()=>Xu,StyledRadioContainer:()=>nu,StyledRadioDescription:()=>ou,StyledRadioGroup:()=>su,StyledRadioGroupContainer:()=>au,StyledRadioLabel:()=>ru,StyledRadioPoint:()=>tu,StyledRadioText:()=>eu,StyledRow:()=>cd,StyledSnippetCopyButton:()=>nd,StyledSnippetCopyButtonIcon:()=>od,StyledSnippetPre:()=>rd,StyledSpacer:()=>Kc,StyledSpinner:()=>Pd,StyledSpinnerContainer:()=>kd,StyledSpinnerSpan:()=>Td,StyledSwitch:()=>Cu,StyledSwitchCircle:()=>Su,StyledSwitchContainer:()=>wu,StyledSwitchInput:()=>ku,StyledTable:()=>Zh,StyledTableCell:()=>_h,StyledTableHeaderCell:()=>Vh,StyledTableRow:()=>qh,StyledText:()=>$u,StyledTooltip:()=>Gc,StyledTooltipArrow:()=>Uc,StyledTooltipContent:()=>_c,StyledTooltipTrigger:()=>Vc,StyledUser:()=>Fu,StyledUserDesc:()=>Du,StyledUserInfo:()=>Ku,StyledUserName:()=>Wu,Switch:()=>Eu,Table:()=>Lm,Text:()=>xu,Textarea:()=>Rg,Tooltip:()=>ed,User:()=>_u,blue:()=>we,blueDark:()=>Se,changeTheme:()=>zo,config:()=>qe,createTheme:()=>Ye,css:()=>Oe,cssFocusVisible:()=>Bo,cssHideIn:()=>Ao,cssHideShowIn:()=>Ko,cssNoBlurriness:()=>Ro,cssShowIn:()=>Fo,cyan:()=>Le,cyanDark:()=>Ne,defaultTheme:()=>_e,excludedInputPropsForTextarea:()=>p,extendedColors:()=>o,extendedColorsNoGradient:()=>s,extraColors:()=>a,getCssText:()=>Ge,getDocumentTheme:()=>Mo,getTokenValue:()=>Eo,globalCss:()=>Ve,gray:()=>He,grayDark:()=>Ae,green:()=>Pe,greenDark:()=>Te,keyframes:()=>Ue,normalColors:()=>t,normalLoaders:()=>l,normalWeights:()=>c,pink:()=>Be,pinkDark:()=>Re,purple:()=>Ce,purpleDark:()=>ke,red:()=>Ie,redDark:()=>ze,sharedFocus:()=>No,sharedVisuallyHidden:()=>Ho,simpleColors:()=>r,stitchesConfig:()=>qe,styled:()=>je,textTransforms:()=>u,textWeights:()=>d,theme:()=>_e,tuple:()=>e,useAsyncList:()=>Vt,useBodyScroll:()=>at,useClickAnywhere:()=>pt,useClickAway:()=>lt,useClipboard:()=>ut,useCollator:()=>or,useCurrentState:()=>m,useDrip:()=>Tt,useInput:()=>gt,useIntersectionObserver:()=>Pt,useKeyboard:()=>yt,useModal:()=>Ip,usePagination:()=>wt,usePortal:()=>ot,useRealShape:()=>f,useResize:()=>b,useSSR:()=>Qe,useScrollPosition:()=>kt,useTheme:()=>Je,yellow:()=>Ee,yellowDark:()=>Me});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"));e("toggle","replace"),e("none","single","multiple"),e("flat","light","solid","shadow"),e("flat","bordered","shadow");var g=n(787),h=n.n(g);const m=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]},$=(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},f=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:$(`${r}`,t.width),height:$(`${o}`,t.height)}})(e.current);r({width:t,height:o})};return(0,g.useEffect)((()=>o()),[e.current]),[t,o]},b=(e,t=!0)=>{(0,g.useEffect)((()=>{const r=()=>e();return t&&r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)}),[])};var y="colors",v="sizes",x="space",w={gap:x,gridGap:x,columnGap:x,gridColumnGap:x,rowGap:x,gridRowGap:x,inset:x,insetBlock:x,insetBlockEnd:x,insetBlockStart:x,insetInline:x,insetInlineEnd:x,insetInlineStart:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,marginBlock:x,marginBlockEnd:x,marginBlockStart:x,marginInline:x,marginInlineEnd:x,marginInlineStart:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,paddingBlock:x,paddingBlockEnd:x,paddingBlockStart:x,paddingInline:x,paddingInlineEnd:x,paddingInlineStart:x,top:x,right:x,bottom:x,left:x,scrollMargin:x,scrollMarginTop:x,scrollMarginRight:x,scrollMarginBottom:x,scrollMarginLeft:x,scrollMarginX:x,scrollMarginY:x,scrollMarginBlock:x,scrollMarginBlockEnd:x,scrollMarginBlockStart:x,scrollMarginInline:x,scrollMarginInlineEnd:x,scrollMarginInlineStart:x,scrollPadding:x,scrollPaddingTop:x,scrollPaddingRight:x,scrollPaddingBottom:x,scrollPaddingLeft:x,scrollPaddingX:x,scrollPaddingY:x,scrollPaddingBlock:x,scrollPaddingBlockEnd:x,scrollPaddingBlockStart:x,scrollPaddingInline:x,scrollPaddingInlineEnd:x,scrollPaddingInlineStart:x,fontSize:"fontSizes",background:y,backgroundColor:y,backgroundImage:y,borderImage:y,border:y,borderBlock:y,borderBlockEnd:y,borderBlockStart:y,borderBottom:y,borderBottomColor:y,borderColor:y,borderInline:y,borderInlineEnd:y,borderInlineStart:y,borderLeft:y,borderLeftColor:y,borderRight:y,borderRightColor:y,borderTop:y,borderTopColor:y,caretColor:y,color:y,columnRuleColor:y,fill:y,outline:y,outlineColor:y,stroke:y,textDecorationColor:y,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:v,minBlockSize:v,maxBlockSize:v,inlineSize:v,minInlineSize:v,maxInlineSize:v,width:v,minWidth:v,maxWidth:v,height:v,minHeight:v,maxHeight:v,flexBasis:v,gridTemplateColumns:v,gridTemplateRows:v,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"},S=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,C=()=>{const e=Object.create(null);return(t,r,...o)=>{const n=(e=>JSON.stringify(e,S))(t);return n in e?e[n]:e[n]=r(t,...o)}},k=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:E}=Object.prototype,M=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),I=/\s+(?![^()]*\))/,z=e=>t=>e(..."string"==typeof t?String(t).split(I):[t]),L={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:z(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:z(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:z(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:z(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:z(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:z(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},N=/([\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,R=(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};${M(e)}:${r}-webkit-fill-available`:`-moz-fit-content${n};${M(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},A=e=>e?e+"-":"",F=(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?A(t)+(s.includes("$")?"":A(r))+s.replace(/\$/g,"-"):s)+")"+(o||"--"==i?"*"+(o||"")+(n||"1")+")":""))),K=/\s*,\s*(?![^()]*\))/,W=Object.prototype.toString,D=(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 h=64===c.charCodeAt(0),m=h&&Array.isArray(e[c])?e[c]:[e[c]];for(d of m){const e=/[A-Z]/.test(g=c)?g:g.replace(/-[^]/g,(e=>e[1].toUpperCase())),m="object"==typeof d&&d&&d.toString===W&&(!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 L){const t=L[e];if(t!==a){a=t,u(t(d)),a=null;continue}}if(h&&(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=N.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(N,((e,t,o)=>Number(t)+a*(">"===r?1:-1)+o)):c)+(n?") and ("+(">"===n[0]?"min-":"max-")+l+":"+(1===n.length?i.replace(N,((e,t,r)=>Number(t)+a*(">"===n?-1:1)+r)):i):"")+")"}))),m){const e=h?r.concat(c):[...r],o=h?[...t]:B(t,c.split(K));void 0!==i&&n(j(...i)),i=void 0,l(d,o,e)}else void 0===i&&(i=[[],t,r]),c=h||36!==c.charCodeAt(0)?c:`--${A(o.prefix)}${c.slice(1).replace(/\$/g,"-")}`,d=m?d:"number"==typeof d?d&&e in O?String(d)+"px":String(d):F(R(e,null==d?"":d),o.prefix,o.themeMap[e]),i[0].push(`${h?`${c} `:`${M(c)}:`}${d}`)}}var p,g};u(e),void 0!==i&&n(j(...i)),i=void 0};l(e,t,r)},j=(e,t,r)=>`${r.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,O={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"],_=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},q=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(_(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])}}Y(s[t])}};return o(),t},Y=e=>{const t=e.group;let r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},X=Symbol(),Z=C(),J=(e,t)=>Z(e,(()=>(...r)=>{let o={type:null,composers:new Set};for(const t of r)if(null!=t)if(t[k]){null==o.type&&(o.type=t[k].type);for(const e of t[k].composers)o.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==o.type&&(o.type=t):o.composers.add(Q(t,e));return null==o.type&&(o.type="span"),o.composers.size||o.composers.add(["PJLV",{},[],[],{},[]]),ee(e,o,t)})),Q=({variants:e,compoundVariants:t,defaultVariants:r,...o},n)=>{const i=`${A(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,E.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]},ee=(e,t,r)=>{const[o,n,i,s]=te(t.composers),a="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;r<t[X].length;r++){const[o,n]=t[X][r];e.rules[o].apply(n)}return t[X]=[],null}return t[X]=[],t.rules={},G.forEach((e=>t.rules[e]={apply:r=>t[X].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||oe;const{css:u,...p}=d,g={};for(const e in i)if(delete p[e],e in d){let t=d[e];"object"==typeof t&&t?g[e]={"@initial":i[e],...t}:(t=String(t),g[e]="undefined"!==t||s.has(e)?t:i[e])}else g[e]=i[e];const h=new Set([...n]);for(const[o,n,i,s]of t.composers){r.rules.styled.cache.has(o)||(r.rules.styled.cache.add(o),D(n,[`.${o}`],[],e,(e=>{l.styled.apply(e)})));const t=re(i,g,e.media),a=re(s,g,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}`;h.add(n);const a=(s?r.rules.resonevar:r.rules.onevar).cache,c=s?l.resonevar:l.onevar;a.has(n)||(a.add(n),D(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}`;h.add(t),r.rules.allvar.cache.has(t)||(r.rules.allvar.cache.add(t),D(i,[`.${t}`],[],e,(e=>{l.allvar.apply(e)})))}}if("object"==typeof u&&u){const t=`${o}-i${U(u)}-css`;h.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),D(u,[`.${t}`],[],e,(e=>{l.inline.apply(e)})))}for(const e of String(d.className||"").trim().split(/\s+/))e&&h.add(e);const m=p.className=[...h].join(" ");return{type:t.type,className:m,selector:c,props:p,toString:()=>m,deferredInjector:a}};return P(d,{className:o,selector:c,[k]:t,toString:()=>(r.rules.styled.cache.has(o)||d(),o)})},te=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)]},re=(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},oe={},ne=C(),ie=(e,t)=>ne(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"]}D(o,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return P(o,{toString:o})})),se=C(),ae=(e,t)=>se(e,(()=>r=>{const o=`${A(e.prefix)}k-${U(r)}`,n=()=>{if(!t.rules.global.cache.has(o)){t.rules.global.cache.add(o);const n=[];D(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})})),le=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"--"+A(this.prefix)+A(this.scale)+this.token}toString(){return this.computedValue}},ce=C(),de=(e,t)=>ce(e,(()=>(r,o)=>{o="object"==typeof r&&r||Object(o);const n=`.${r=(r="string"==typeof r?r:"")||`${A(e.prefix)}t-${U(o)}`}`,i={},s=[];for(const t in o){i[t]={};for(const r in o[t]){const n=`--${A(e.prefix)}${t}-${r}`,a=F(String(o[t][r]),e.prefix,t);i[t][r]=new le(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}})),ue=C(),pe=C();function ge(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]=ge({},e[r],t[r]):e[r]=t[r]);return e}const he={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","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"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,"2xl":2,"3xl":2.25,"4xl":2.5,"5xl":1,"6xl":1,"7xl":1,"8xl":1,"9xl":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","2xl":"3rem","3xl":"5rem","4xl":"10rem","5xl":"14rem","6xl":"18rem","7xl":"24rem","8xl":"32rem","9xl":"40rem",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",full:"100%",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","2xl":"24px","3xl":"32px",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",card:"transform 0.25s ease 0s, filter 0.25s ease 0s, box-shadow 0.25s ease 0s",dropdownItem:"background 0.12s ease, transform 0.12s ease, color 0.12s ease, box-shadow 0.12s ease 0s"},breakpoints:{xs:"650px",sm:"960px",md:"1280px",lg:"1400px",xl:"1920px"}},me={xs:`(min-width: ${he.breakpoints.xs})`,sm:`(min-width: ${he.breakpoints.sm})`,md:`(min-width: ${he.breakpoints.md})`,lg:`(min-width: ${he.breakpoints.lg})`,xl:`(min-width: ${he.breakpoints.xl})`,xsMin:`(min-width: ${he.breakpoints.xs})`,smMin:`(min-width: ${he.breakpoints.sm})`,mdMin:`(min-width: ${he.breakpoints.md})`,lgMin:`(min-width: ${he.breakpoints.lg})`,xlMin:`(min-width: ${he.breakpoints.xl})`,xsMax:`(max-width: ${he.breakpoints.xs})`,smMax:`(max-width: ${he.breakpoints.sm})`,mdMax:`(max-width: ${he.breakpoints.md})`,lgMax:`(max-width: ${he.breakpoints.lg})`,xlMax:`(max-width: ${he.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)"},$e={...w,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"},fe={prefix:"nextui",theme:{...he,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"},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:$e},be=(e,t=null)=>{if("undefined"==typeof document||!e)return"";const r=t||document.documentElement,o=ye(e)?e.replace("var(","").replace(")",""):e.includes("--")?e:`--${e}`;return getComputedStyle(r).getPropertyValue(o)},ye=e=>!(!e||0!==(null==e?void 0:e.indexOf("var("))),ve=(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})`},xe=(e,t=1)=>{if(!e)return"";const r=ye(e)?be(e):e;if(/#[a-fA-F0-9]{3,6}/g.test(r))return ve(r,t);if(!/^#|rgb|RGB/.test(r))return r;const[o,n,i]=(e=>{const t=ye(e)?be(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(/\((.+)\)/);return o.startsWith("rgb")&&n?n[1].split(",").map((e=>Number.parseFloat(e))):(console.warn('NextUI: Only supports ["RGB", "RGBA", "HEX"] color.'),[0,0,0])})(r);return`rgba(${o}, ${n}, ${i}, ${t>1?1:t<0?0:t})`},we={blue50:"#EDF5FF",blue100:"#E1EFFF",blue200:"#CEE4FE",blue300:"#B7D5F8",blue400:"#96C1F2",blue500:"#5EA2EF",blue600:"#0072F5",blue700:"#005FCC",blue800:"#004799",blue900:"#00254D"},Se={blue50:"#10253E",blue100:"#102C4C",blue200:"#0F3158",blue300:"#0D3868",blue400:"#0A4281",blue500:"#0952A5",blue600:"#0072F5",blue700:"#3694FF",blue800:"#3694FF",blue900:"#EAF4FF"},Ce={purple50:"#F7F2FD",purple100:"#F1E8FB",purple200:"#EADCF8",purple300:"#E0CBF5",purple400:"#D1B1F0",purple500:"#BC8EE9",purple600:"#7828C8",purple700:"#6622AA",purple800:"#4D1980",purple900:"#290E44"},ke={purple50:"#1F0A33",purple100:"#240C3C",purple200:"#2E0F4D",purple300:"#3B1362",purple400:"#451773",purple500:"#571D91",purple600:"#7828C8",purple700:"#9750DD",purple800:"#B583E7",purple900:"#F7ECFC"},Pe={green50:"#F1FDF7",green100:"#E8FCF1",green200:"#DAFBE8",green300:"#C8F9DD",green400:"#ADF5CC",green500:"#88F1B6",green600:"#17C964",green700:"#13A452",green800:"#108944",green900:"#06371B"},Te={green50:"#042F14",green100:"#06381B",green200:"#074A24",green300:"#0A6130",green400:"#0B7439",green500:"#0F9549",green600:"#17C964",green700:"#41EC8B",green800:"#78F2AD",green900:"#ECFDF4"},Ee={yellow50:"#FEF9F0",yellow100:"#FEF5E7",yellow200:"#FDEFD8",yellow300:"#FCE7C5",yellow400:"#FBDBA7",yellow500:"#F9CB80",yellow600:"#F5A524",yellow700:"#B97509",yellow800:"#925D07",yellow900:"#4E3104"},Me={yellow50:"#3A2503",yellow100:"#442B03",yellow200:"#583804",yellow300:"#704705",yellow400:"#845306",yellow500:"#A66908",yellow600:"#F5A524",yellow700:"#F6AD37",yellow800:"#F8C572",yellow900:"#FEF7EC"},Ie={red50:"#FEF0F5",red100:"#FEE7EF",red200:"#FDD8E5",red300:"#FCC5D8",red400:"#FAA8C5",red500:"#F881AB",red600:"#F31260",red700:"#B80A47",red800:"#910838",red900:"#4E041E"},ze={red50:"#300313",red100:"#300313",red200:"#44041A",red300:"#5C0523",red400:"#6F062B",red500:"#910838",red600:"#F31260",red700:"#F4256D",red800:"#F75F94",red900:"#FDD8E5"},Le={cyan50:"#F0FCFF",cyan100:"#E6FAFE",cyan200:"#D7F8FE",cyan300:"#C3F4FD",cyan400:"#A5EEFD",cyan500:"#7EE7FC",cyan600:"#06B7DB",cyan700:"#09AACD",cyan800:"#0E8AAA",cyan900:"#053B48"},Ne={cyan50:"#012A32",cyan100:"#023A46",cyan200:"#024B5A",cyan300:"#036072",cyan400:"#037086",cyan500:"#048EA9",cyan600:"#06B7DB",cyan700:"#33D9FA",cyan800:"#6FE4FB",cyan900:"#EBFBFE"},Be={pink50:"#FFF0FB",pink100:"#FFE5F8",pink200:"#FFD6F3",pink300:"#FFC2EE",pink400:"#FFA3E5",pink500:"#FF7AD9",pink600:"#FF4ECD",pink700:"#D6009A",pink800:"#B80084",pink900:"#4D0037"},Re={pink50:"#330025",pink100:"#470033",pink200:"#5C0042",pink300:"#750054",pink400:"#8A0063",pink500:"#AD007C",pink600:"#FF4ECD",pink700:"#FF2EC4",pink800:"#FF6BD5",pink900:"#FFEBF9"},He={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"},Fe={colors:{background:"$white",backgroundAlpha:"rgba(255, 255, 255, 0.8)",foreground:"$black",backgroundContrast:"$white",...we,...Ce,...Pe,...Ee,...Ie,...Le,...Be,...He,textLight:xe(He.gray900,.2),text:"$gray900",linkLight:xe(we.blue600,.2),link:"$blue600",codeLight:"$pink100",code:"$pink600",selection:"$blue200",border:"rgba(0, 0, 0, 0.15)"},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))"}},Ke={colors:{background:"$black",backgroundAlpha:"rgba(0, 0, 0, 0.6)",foreground:"$white",backgroundContrast:"$accents0",...Se,...ke,...Te,...Me,...ze,...Ne,...Re,...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",textLight:xe(Ae.gray900,.2),text:"$gray900",linkLight:xe(Se.blue600,.2),link:"$blue700",codeLight:"$cyan50",code:"$cyan600",selection:"$pink800",border:"rgba(255, 255, 255, 0.15)"},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))"}},We=(e=>{const t=(e=>{let t=!1;const r=ue(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||{...w},utils:"object"==typeof e.utils&&e.utils||{}},a=q(n),l={css:J(s,a),globalCss:ie(s,a),keyframes:ae(s,a),createTheme:de(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})=>pe(e,(()=>{const r=J(e,t);return(...e)=>{const t=r(...e),o=t[k].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[k]=t[k],n}})))(t),t})({...fe,theme:{...fe.theme,shadows:{...Fe.shadows},dropShadows:{...Fe.dropShadows},colors:{...fe.theme.colors,...Fe.colors}}}),De=We.createTheme,je=We.styled,Oe=We.css,Ve=We.globalCss,Ue=We.keyframes,Ge=We.getCssText,_e=We.theme,qe=We.config,Ye=({type:e,theme:t,className:r})=>{if(!e)throw new Error("Theme type is required");return De(r||`${e}-theme`,ge("dark"===e?Ke:Fe,t))},Xe={isDark:!1,theme:_e,type:"light"},Ze=h().createContext(Xe),Je=()=>h().useContext(Ze),Qe=()=>{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}},et=(e,t)=>{let r=[];return[h().Children.map(e,(e=>h().isValidElement(e)&&e.type===t?(r.push(e),null):e)),r.length>=0?r:void 0]},tt=()=>!!Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)&&navigator.platform.toUpperCase().indexOf("MAC")>=0,rt=e=>{const t=document.createElement("div");return t.setAttribute("id",e),t},ot=(e=(()=>Math.random().toString(32).slice(2,10))(),t)=>{const r=`nextui-${e}`,{isBrowser:o}=Qe(),[n,i]=(0,g.useState)(o?rt(r):null);return(0,g.useEffect)((()=>{const e=(t?t():null)||document.body,o=null==e?void 0:e.querySelector(`#${r}`),n=o||rt(r);o||e.appendChild(n),i(n)}),[]),n},nt={scrollLayer:!1},it=new Map,st=e=>!!(e.touches&&e.touches.length>1)||(e.preventDefault(),!1),at=(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={...nt,...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(it.has(r.current))return;return s()?document.addEventListener("touchmove",st,{passive:!1}):r.current.style.overflow="hidden",void it.set(r.current,{last:e})}if(it.has(r.current)){if(s())document.removeEventListener("touchmove",st);else{const e=it.get(r.current);r.current.style.overflow=e.last}it.delete(r.current)}}),[o,r]),[o,n]},lt=(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])},ct={},dt={onError:()=>false},ut=(e=dt)=>{const t=ot("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}},pt=e=>{(0,g.useEffect)((()=>{const t=t=>e(t);return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}),[e])},gt=e=>{const[t,r,o]=m(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)}}}},ht=e=>e&&"object"==typeof e,mt=(e,t)=>ht(e)?e instanceof Array?[...e]:e[t]:e,$t=e=>e.length&&Array.isArray(e)?e.reduce(((e,t)=>({...e,...t})),{}):{},ft={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},bt={CtrlCmd:2048,Shift:1024,Alt:512,WinCtrl:256},yt=(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=>!!mt(bt,e))),r={CtrlCmd:!1,Shift:!1,Alt:!1,WinCtrl:!1};return t.forEach((e=>{const t=mt(bt,e);r[t]=!0})),r})(o),d=o.filter((e=>!mt(bt,e))),{CtrlCmd:u,WinCtrl:p}={CtrlCmd:tt()?"metaKey":"ctrlKey",WinCtrl:tt()?"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 vt(e,t){const r=t-e+1;return Array.from({length:r},((t,r)=>r+e))}const xt="dots",wt=({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=>{a(e),null==i||i(e)}),[a,i]),c=(0,g.useCallback)((e=>{l(e<=0?1:e>t?t:e)}),[l,t]);return{range:(0,g.useMemo)((()=>{if(2*r+3+2*o>=t)return vt(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[...vt(1,2*r+o+2),xt,...vt(t-(o-1),t)];if(i&&!a){const e=o+1+2*r;return[...vt(1,o),xt,...vt(t-e,t)]}return[...vt(1,o),xt,...vt(e,n),xt,...vt(t-o+1,t)]}),[t,r,s]),active:s,setPage:c,next:()=>c(s+1),previous:()=>c(s-1),first:()=>c(1),last:()=>c(t)}},St="undefined"!=typeof window;function Ct(e){return St?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}const kt=e=>{const{elementRef:t,wait:r=30,callback:o,enabled:n}=e,i=(0,g.useRef)(n?Ct(null==t?void 0:t.current):{x:0,y:0});let s=null;const a=()=>{const e=Ct(null==t?void 0:t.current);"function"==typeof o&&o({prevPos:i.current,currPos:e}),i.current=e,s=null};return(0,g.useEffect)((()=>{if(!n)return;const e=()=>{r?null===s&&(s=setTimeout(a,r)):a()},o=(null==t?void 0:t.current)||window;return o.addEventListener("scroll",e),()=>o.removeEventListener("scroll",e)}),[null==t?void 0:t.current,r,n]),i.current},Pt=function(e,{threshold:t=0,root:r=null,rootMargin:o="0%",freezeOnceVisible:n=!1}={}){const[i,s]=(0,g.useState)(),a=(null==i?void 0:i.isIntersecting)&&n,l=!(null==i||!i.isIntersecting),c=([e])=>{s(e)};return(0,g.useEffect)((()=>{if("undefined"==typeof window)return;const n=null==e?void 0:e.current;if(!window.IntersectionObserver||a||!n)return;const i=new IntersectionObserver(c,{threshold:t,root:r,rootMargin:o});return i.observe(n),()=>i.disconnect()}),[e,t,r,o,a]),{entry:i,setEntry:s,isVisible:l,isFrozen:a}},Tt=(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)}}},Et=(e,t)=>(e.defaultProps=t,e);function Mt(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=Mt(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function It(...e){for(var t,r,o=0,n="";o<e.length;)(t=e[o++])&&(r=Mt(t))&&(n&&(n+=" "),n+=r);return n}var zt=n(678);const Lt=Ue({"0%":{opacity:0,transform:"scale(0.25)"},"30%":{opacity:1},"80%":{opacity:.5},"100%":{transform:"scale(28)",opacity:0}}),Nt=je("div",{position:"absolute",left:0,right:0,top:0,bottom:0,"& svg":{position:"absolute",animation:`350ms linear ${Lt}`,animationFillMode:"forwards",width:"$md",height:"$md"}}),Bt=({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)((()=>{let e=a.current;if(e)return e.addEventListener("animationend",n),()=>{e&&e.removeEventListener("animationend",n)}})),e?(0,zt.jsx)(Nt,{ref:a,className:It("nextui-drip",i),...s,children:(0,zt.jsx)("svg",{height:"20",style:{top:l,left:c},viewBox:"0 0 20 20",width:"20",children:(0,zt.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:(0,zt.jsx)("g",{className:"nextui-drip-filler",fill:o,children:(0,zt.jsx)("rect",{height:"100%",rx:"10",width:"100%"})})})})}):null},Rt=Et(h().memo(Bt),{visible:!1,x:0,y:0,className:""}),Ht=Ve({"*, *: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:"$5xl",lineHeight:"$md",fontWeight:"$bold"},h2:{letterSpacing:"$tighter",fontSize:"$4xl",fontWeight:"$semibold"},h3:{letterSpacing:"$tighter",fontSize:"$2xl",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"},"dl, dd, hr, figure, p":{margin:0}}),At=({children:e})=>(Ht(),(0,zt.jsx)(h().Fragment,{children:e})),Ft=h().memo(At);Ft.flush=()=>(0,zt.jsx)("style",{dangerouslySetInnerHTML:{__html:Ge()},id:"stitches"});const Kt=Ft;function Wt(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=>Dt(t,e,...r)))},insertBefore(e,...r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));if(-1!==n)return Dt(t,n,...r)}))},insertAfter(e,...r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));if(-1!==n)return Dt(t,n+1,...r)}))},prepend(...e){t((t=>Dt(t,0,...e)))},append(...e){t((t=>Dt(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=(Array.isArray(r)?r:[...r]).map((e=>t.items.findIndex((t=>o(t)===e)))).sort();return jt(t,i,n)}))},moveAfter(e,r){t((t=>{let n=t.items.findIndex((t=>o(t)===e));if(-1===n)return t;let i=(Array.isArray(r)?r:[...r]).map((e=>t.items.findIndex((t=>o(t)===e)))).sort();return jt(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 Dt(e,t,...r){return{...e,items:[...e.items.slice(0,t),...r,...e.items.slice(t)]}}function jt(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 Ot(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 Vt(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)(Ot,{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)},...Wt({...e,getKey:i,cursor:a.cursor},(e=>{l({type:"update",updater:e})})),setFilterText(e){c({type:"filtering",filterText:e},t)}}}const Ut={prefix:String(Math.round(1e10*Math.random())),current:0},Gt=h().createContext(Ut);Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);const _t=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),qt=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Yt(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return _t.has(t)}let t=e.split("-")[0];return qt.has(t)}function Xt(){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:Yt(e)?"rtl":"ltr"}}let Zt=Xt(),Jt=new Set;function Qt(){Zt=Xt();for(let e of Jt)e(Zt)}const er=h().createContext(null);function tr(){let e=function(){let e=function(){let e=(0,g.useContext)(Gt)!==Ut,[t,r]=(0,g.useState)(e);return"undefined"!=typeof window&&e&&(0,g.useLayoutEffect)((()=>{r(!1)}),[]),t}(),[t,r]=(0,g.useState)(Zt);return(0,g.useEffect)((()=>(0===Jt.size&&window.addEventListener("languagechange",Qt),Jt.add(r),()=>{Jt.delete(r),0===Jt.size&&window.removeEventListener("languagechange",Qt)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return(0,g.useContext)(er)||e}new WeakMap;let rr=new Map;function or(e){let{locale:t}=tr(),r=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(rr.has(r))return rr.get(r);let o=new Intl.Collator(t,e);return rr.set(r,o),o}const nr={prefix:String(Math.round(1e10*Math.random())),current:0},ir=h().createContext(nr);function sr(e){let t=(0,g.useContext)(ir),r=(0,g.useMemo)((()=>({prefix:t===nr?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return h().createElement(ir.Provider,{value:r},e.children)}Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);const ar={prefix:String(Math.round(1e10*Math.random())),current:0},lr=h().createContext(ar);let cr=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function dr(){let e=(0,g.useContext)(lr)!==ar,[t,r]=(0,g.useState)(e);return"undefined"!=typeof window&&e&&(0,g.useLayoutEffect)((()=>{r(!1)}),[]),t}function ur(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=ur(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}const pr=function(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=ur(e))&&(o&&(o+=" "),o+=t);return o},gr="undefined"!=typeof window?h().useLayoutEffect:()=>{};let hr=new Map;function mr(e){let[t,r]=(0,g.useState)(e),o=(0,g.useRef)(null),n=function(e){let t=(0,g.useContext)(lr);return t!==ar||cr||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])}(t),i=(0,g.useCallback)((e=>{o.current=e}),[]);return hr.set(n,i),gr((()=>{let e=n;return()=>{hr.delete(e)}}),[n]),(0,g.useEffect)((()=>{let e=o.current;e&&(o.current=null,r(e))})),n}function $r(e,t){if(e===t)return e;let r=hr.get(e);if(r)return r(t),t;let o=hr.get(t);return o?(o(e),e):t}function fr(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}new Set(["id"]),new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]);let br=new Map,yr=new Set;function vr(){if("undefined"==typeof window)return;let e=t=>{let r=br.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",e),br.delete(t.target)),0===br.size)){for(let e of yr)e();yr.clear()}};document.body.addEventListener("transitionrun",(t=>{let r=br.get(t.target);r||(r=new Set,br.set(t.target,r),t.target.addEventListener("transitioncancel",e)),r.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function xr(){return e=/^Mac/i,"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform);var e,t}function wr(e){return!(0!==e.mozInputSource||!e.isTrusted)||(t=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(r=window.navigator.userAgentData)||void 0===r?void 0:r.brands.some((e=>t.test(e.brand))))||t.test(window.navigator.userAgent))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType);var t,r}"undefined"!=typeof document&&("loading"!==document.readyState?vr():document.addEventListener("DOMContentLoaded",vr)),"undefined"!=typeof window&&window.visualViewport,new Map;class Sr{getStringForLocale(e,t){let r=this.strings[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);if(t[o])return t[o];for(let e in t)if(e.startsWith(o+"-"))return t[e];return t[r]}(t,this.strings,this.defaultLocale),this.strings[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.strings={...e},this.defaultLocale=t}}const Cr=new Map,kr=new Map;class Pr{format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return"function"==typeof r?r(t,this):r}plural(e,t,r="cardinal"){let o=t["="+e];if(o)return"function"==typeof o?o():o;let n=this.locale+":"+r,i=Cr.get(n);return i||(i=new Intl.PluralRules(this.locale,{type:r}),Cr.set(n,i)),o=t[i.select(e)]||t.other,"function"==typeof o?o():o}number(e){let t=kr.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),kr.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return"function"==typeof r?r():r}constructor(e,t){this.locale=e,this.strings=t}}const Tr=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Er=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Mr(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return Tr.has(t)}let t=e.split("-")[0];return Er.has(t)}function Ir(){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:Mr(e)?"rtl":"ltr"}}let zr=Ir(),Lr=new Set;function Nr(){zr=Ir();for(let e of Lr)e(zr)}const Br=h().createContext(null);function Rr(){let e=function(){let e=dr(),[t,r]=(0,g.useState)(zr);return(0,g.useEffect)((()=>(0===Lr.size&&window.addEventListener("languagechange",Nr),Lr.add(r),()=>{Lr.delete(r),0===Lr.size&&window.removeEventListener("languagechange",Nr)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return(0,g.useContext)(Br)||e}const Hr=new WeakMap;new Map,new WeakMap;h().createContext(null).displayName="PressResponderContext",new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);class Ar{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}}let Fr=null,Kr=new Set,Wr=!1,Dr=!1,jr=!1;function Or(e,t){for(let r of Kr)r(e,t)}function Vr(e){Dr=!0,function(e){return!(e.metaKey||!xr()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Fr="keyboard",Or("keyboard",e))}function Ur(e){Fr="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Dr=!0,Or("pointer",e))}function Gr(e){wr(e)&&(Dr=!0,Fr="virtual")}function _r(e){e.target!==window&&e.target!==document&&(Dr||jr||(Fr="virtual",Or("virtual",e)),Dr=!1,jr=!1)}function qr(){Dr=!1,jr=!0}function Yr(){if("undefined"==typeof window||Wr)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Dr=!0,e.apply(this,arguments)},document.addEventListener("keydown",Vr,!0),document.addEventListener("keyup",Vr,!0),document.addEventListener("click",Gr,!0),window.addEventListener("focus",_r,!0),window.addEventListener("blur",qr,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Ur,!0),document.addEventListener("pointermove",Ur,!0),document.addEventListener("pointerup",Ur,!0)):(document.addEventListener("mousedown",Ur,!0),document.addEventListener("mousemove",Ur,!0),document.addEventListener("mouseup",Ur,!0)),Wr=!0}function Xr(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:n}=e,i=(0,g.useRef)({isFocusWithin:!1}),s=(0,g.useCallback)((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,r&&r(e),n&&n(!1))}),[r,n,i]),a=function(e){let t=(0,g.useRef)({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,gr((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),(0,g.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{var o,n;t.current.isFocused=!1,r.disabled&&(null===(n=(o=t.current).onBlur)||void 0===n||n.call(o,new Ar("blur",e))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{t.current.isFocused&&r.disabled&&(t.current.observer.disconnect(),r.dispatchEvent(new FocusEvent("blur")),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[])}(s),l=(0,g.useCallback)((e=>{i.current.isFocusWithin||(o&&o(e),n&&n(!0),i.current.isFocusWithin=!0,a(e))}),[o,n,a]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:l,onBlur:s}}}function Zr(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)}"undefined"!=typeof document&&("loading"!==document.readyState?Yr():document.addEventListener("DOMContentLoaded",Yr));var Jr=n(156),Qr=n.n(Jr);const eo={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 to(e){let{children:t,elementType:r="div",isFocusable:o,style:n,...i}=e,{visuallyHiddenProps:s}=function(e={}){let{style:t,isFocusable:r}=e,[o,n]=(0,g.useState)(!1),{focusWithinProps:i}=Xr({isDisabled:!r,onFocusWithinChange:e=>n(e)});return{visuallyHiddenProps:{...i,style:(0,g.useMemo)((()=>o?t:t?{...eo,...t}:eo),[o])}}}(e);return h().createElement(r,function(...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]=fr(r,n):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof n?"id"===e&&r&&n?t.id=$r(r,n):t[e]=void 0!==n?n:r:t[e]=pr(r,n)}}return t}(i,s),t)}function ro(e){return e&&e.__esModule?e.default:e}const oo={top:"top",bottom:"top",left:"left",right:"left"},no={top:"bottom",bottom:"top",left:"right",right:"left"},io={top:"left",left:"top"},so={top:"height",left:"width"},ao={};let lo="undefined"!=typeof window&&window.visualViewport;function co(e,t,r,o,n){let i=o.scroll[e],s=o[so[e]],a=t-n-i,l=t+n-i+r;return a<0?-a:l>s?Math.max(s-l,-a):0}function uo(e){if(ao[e])return ao[e];let[t,r]=e.split(" "),o=oo[t]||"right",n=io[o];oo[r]||(r="center");let i=so[o],s=so[n];return ao[e]={placement:t,crossPlacement:r,axis:o,crossAxis:n,size:i,crossSize:s},ao[e]}function po(e,t,r,o,n,i,s,a){let{placement:l,crossPlacement:c,axis:d,crossAxis:u,size:p,crossSize:g}=o,h={};h[u]=e[u],"center"===c?h[u]+=(e[g]-r[g])/2:c!==u&&(h[u]+=e[g]-r[g]),h[u]+=i;let m=e[u]+e[g]/2-r[g],$=e[u]+e[g]/2;if(h[u]=Math.min(Math.max(m,h[u]),$),l===d){const r=a?s[p]:t[p];h[no[d]]=Math.floor(r-e[d]+n)}else h[d]=Math.floor(e[d]+e[p]+n);return h}function go(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[no[a]]-n):Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-r[a]-r[l]-o[a]-o[no[a]]-n)}function ho(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 instanceof HTMLElement&&o.offsetParent||document.body,p="BODY"===u.tagName;const g=window.getComputedStyle(u).position;let h=!!g&&"static"!==g,m=p?mo(r):$o(r,u);if(!p){let{marginTop:e,marginLeft:t}=window.getComputedStyle(r);m.top+=parseInt(e,10)||0,m.left+=parseInt(t,10)||0}let $=mo(o),f=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 b;return $.width+=f.left+f.right,$.height+=f.top+f.bottom,function(e,t,r,o,n,i,s,a,l,c,d,u,p){let g=uo(e),{size:h,crossAxis:m,crossSize:$,placement:f,crossPlacement:b}=g,y=po(t,a,r,g,c,d,l,u),v=c,x=go(a,l,t,n,i+c,g);if(s&&o[h]>x){let e=uo(`${no[f]} ${b}`),o=po(t,a,r,e,c,d,l,u);go(a,l,t,n,i+c,e)>x&&(g=e,y=o,v=c)}let w=co(m,y[m],r[$],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=po(t,a,r,g,v,d,l,u),w=co(m,y[m],r[$],a,i),y[m]+=w;let C={};return C[m]=t[m]-y[m]+t[$]/2,{position:y,maxHeight:S,arrowOffsetLeft:C.left,arrowOffsetTop:C.top,placement:g.placement}}(t,m,$,{top:(b=n).scrollTop,left:b.scrollLeft,width:b.scrollWidth,height:b.scrollHeight},f,i,s,function(e){let t=0,r=0,o=0,n=0,i={};if("BODY"===e.tagName){let o=document.documentElement;var s,a;t=null!==(s=null==lo?void 0:lo.width)&&void 0!==s?s:o.clientWidth,r=null!==(a=null==lo?void 0:lo.height)&&void 0!==a?a:o.clientHeight,i.top=o.scrollTop||e.scrollTop,i.left=o.scrollLeft||e.scrollLeft}else({width:t,height:r,top:o,left:n}=mo(e)),i.top=e.scrollTop,i.left=e.scrollLeft;return{width:t,height:r,scroll:i,top:o,left:n}}(a),"BODY"===a.tagName?mo(u):$o(u,a),l,c,h,d)}function mo(e){let{top:t,left:r,width:o,height:n}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:s,clientTop:a,clientLeft:l}=document.documentElement;return{top:t+i-a,left:r+s-l,width:o,height:n}}function $o(e,t){let r,o=window.getComputedStyle(e);if("fixed"===o.position){let{top:t,left:o,width:n,height:i}=e.getBoundingClientRect();r={top:t,left:o,width:n,height:i}}else{r=mo(e);let o=mo(t),n=window.getComputedStyle(t);o.top+=(parseInt(n.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(n.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(o.marginTop,10)||0,r.left-=parseInt(o.marginLeft,10)||0,r}const fo=new WeakMap;let bo="undefined"!=typeof window&&window.visualViewport;function yo(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const vo=[];"undefined"!=typeof window&&window.visualViewport,new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);const xo=h().createContext(null);function wo(e){let{children:t}=e,r=(0,g.useContext)(xo),[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 h().createElement(xo.Provider,{value:i},t)}function So(e){let{modalProviderProps:t}=function(){let e=(0,g.useContext)(xo);return{modalProviderProps:{"aria-hidden":!!(e&&e.modalCount>0)||null}}}();return h().createElement("div",{"data-overlay-container":!0,...e,...t})}function Co(e){return h().createElement(wo,null,h().createElement(So,e))}function ko(e){let t=dr(),{portalContainer:r=(t?null:document.body),...o}=e;if(h().useEffect((()=>{if(null==r?void 0:r.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")}),[r]),!r)return null;let n=h().createElement(Co,o);return Qr().createPortal(n,r)}var Po;function To(e){let{onDismiss:t,...r}=e,o=function(e,t){let{id:r,"aria-label":o,"aria-labelledby":n}=e;if(r=mr(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}}(r,function(e){let{locale:t}=Rr(),r=(0,g.useMemo)((()=>function(e){let t=Hr.get(e);return t||(t=new Sr(e),Hr.set(e,t)),t}(e)),[e]);return(0,g.useMemo)((()=>new Pr(t,r)),[t,r])}(ro(Po)).format("dismiss"));return h().createElement(to,null,h().createElement("button",{...o,tabIndex:-1,onClick:()=>{t&&t()}}))}Po={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schließen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutasítás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}},new WeakMap;const Eo=(e,t,r=1)=>{if("undefined"==typeof document||!e)return"";let o=getComputedStyle(document.documentElement);const n=`--${fe.prefix}-${e}-${t}`,i=o.getPropertyValue(n);if(i&&i.includes("var")&&Eo(e,i),i&&1!==r){if(i.includes("rgb"))return((e,t=1)=>{const[r,o,n]=e.split(",").map((e=>Number.parseFloat(e)));return`rgba(${r}, ${o}, ${n}, ${t>1?1:t<0?0:t})`})(i,r);if(i.includes("#"))return ve(i,r)}return i},Mo=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},Io=e=>"string"==typeof e&&null!=e&&e.includes("-theme")?null==e?void 0:e.replace("-theme",""):e,zo=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};`)))||[],s=Io(e);null==o||o.setAttribute("class",It(n,`${s}-theme`)),null==o||o.setAttribute("style",It(i,`color-scheme: ${s};`))},Lo=Et((({theme:e,disableBaseline:t,children:r})=>{const{isBrowser:o}=Qe(),[n,i]=(0,g.useState)(Xe.type),s=e=>{i((t=>t!==e?e:t))},a=e=>{const t=Mo(e);t&&s(t)},l=(0,g.useMemo)((()=>{const e=o?(()=>{const e=[...Object.keys(fe.theme.colors),...Object.keys(Fe.colors)],t=Object.keys(Fe.shadows);return{colors:e.reduce(((e,t)=>{const r=Eo("colors",t);return r&&(e[t]={prefix:fe.prefix,scale:"colors",token:t,value:r}),e}),{}),shadows:t.reduce(((e,t)=>{const r=Eo("shadows",t);return r&&(e[t]={prefix:fe.prefix,scale:"shadows",token:t,value:r}),e}),{})}})():{},t=ge(ht(r=Xe.theme)?r instanceof Array?[...r]:{...r}:r,e);var r;const i=Io(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&&(zo(e.className),s(Io(e.className)))}),[o,e]),(0,zt.jsx)(sr,{children:(0,zt.jsx)(Co,{children:(0,zt.jsxs)(Ze.Provider,{value:l,children:[!t&&(0,zt.jsx)(Kt,{}),r]})})})}),{disableBaseline:!1}),No=Oe({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"}}),Bo=Oe({outline:"none",variants:{isFocusVisible:{true:{boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},false:{}}}}),Ro=Oe({transform:"translateZ(0)",backfaceVisibility:"hidden"}),Ho=Oe({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"}),Ao=Oe({variants:{hideIn:{xs:{"@xsMax":{display:"none"}},sm:{"@smMax":{display:"none"}},md:{"@mdMax":{display:"none"}},lg:{"@lgMax":{display:"none"}},xl:{"@xlMax":{display:"none"}}}}}),Fo=Oe({variants:{showIn:{xs:{"@xs":{display:"none"}},sm:{"@sm":{display:"none"}},md:{"@md":{display:"none"}},lg:{"@lg":{display:"none"}},xl:{"@xl":{display:"none"}}}}}),Ko=Oe(Ao,Fo),Wo="undefined"!=typeof window?h().useLayoutEffect:()=>{};function Do(e){if(function(){if(null==jo){jo=!1;try{document.createElement("div").focus({get preventScroll(){return jo=!0,!0}})}catch(e){}}return jo}())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)}}new Map,new Set(["id"]),new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]);let jo=null,Oo=new Map,Vo=new Set;function Uo(){if("undefined"==typeof window)return;let e=t=>{let r=Oo.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",e),Oo.delete(t.target)),0===Oo.size)){for(let e of Vo)e();Vo.clear()}};document.body.addEventListener("transitionrun",(t=>{let r=Oo.get(t.target);r||(r=new Set,Oo.set(t.target,r),t.target.addEventListener("transitioncancel",e)),r.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function Go(){return e=/^Mac/i,"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform);var e,t}function _o(e){return!(0!==e.mozInputSource||!e.isTrusted)||(t=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(r=window.navigator.userAgentData)||void 0===r?void 0:r.brands.some((e=>t.test(e.brand))))||t.test(window.navigator.userAgent))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType);var t,r}"undefined"!=typeof document&&("loading"!==document.readyState?Uo():document.addEventListener("DOMContentLoaded",Uo)),"undefined"!=typeof window&&window.visualViewport,new Map,new WeakMap;h().createContext(null).displayName="PressResponderContext",new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);class qo{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 Yo(e){let t=(0,g.useRef)({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Wo((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),(0,g.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{var o,n;t.current.isFocused=!1,r.disabled&&(null===(n=(o=t.current).onBlur)||void 0===n||n.call(o,new qo("blur",e))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{t.current.isFocused&&r.disabled&&(t.current.observer.disconnect(),r.dispatchEvent(new FocusEvent("blur")),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[])}let Xo=null,Zo=new Set,Jo=!1,Qo=!1,en=!1;const tn={Tab:!0,Escape:!0};function rn(e,t){for(let r of Zo)r(e,t)}function on(e){Qo=!0,function(e){return!(e.metaKey||!Go()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Xo="keyboard",rn("keyboard",e))}function nn(e){Xo="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Qo=!0,rn("pointer",e))}function sn(e){_o(e)&&(Qo=!0,Xo="virtual")}function an(e){e.target!==window&&e.target!==document&&(Qo||en||(Xo="virtual",rn("virtual",e)),Qo=!1,en=!1)}function ln(){Qo=!1,en=!0}function cn(){if("undefined"==typeof window||Jo)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Qo=!0,e.apply(this,arguments)},document.addEventListener("keydown",on,!0),document.addEventListener("keyup",on,!0),document.addEventListener("click",sn,!0),window.addEventListener("focus",an,!0),window.addEventListener("blur",ln,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",nn,!0),document.addEventListener("pointermove",nn,!0),document.addEventListener("pointerup",nn,!0)):(document.addEventListener("mousedown",nn,!0),document.addEventListener("mousemove",nn,!0),document.addEventListener("mouseup",nn,!0)),Jo=!0}function dn(){return"pointer"!==Xo}function un(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||un(e.parentElement,e))}"undefined"!=typeof document&&("loading"!==document.readyState?cn():document.addEventListener("DOMContentLoaded",cn));const pn=h().createContext(null);let gn=null,hn=new Map;function mn(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)(pn),c=null==l?void 0:l.scopeRef;Wo((()=>{let e=i.current.nextSibling,t=[];for(;e&&e!==s.current;)t.push(e),e=e.nextSibling;a.current=t}),[t,c]),Wo((()=>(hn.set(a,c),()=>{a!==gn&&!wn(a,gn)||c&&!hn.has(c)||(gn=c),hn.delete(a)})),[a,c]),function(e,t){let r=(0,g.useRef)(),o=(0,g.useRef)(null);Wo((()=>{let n=e.current;if(!t)return void(o.current&&(cancelAnimationFrame(o.current),o.current=null));let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==gn)return;let r=document.activeElement,o=e.current;if(!vn(r,o))return;let n=kn(yn(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&&Sn(i,!0)},s=t=>{!gn||wn(gn,e)?(gn=e,r.current=t.target):e!==gn||xn(t.target,e)?e===gn&&(r.current=t.target):r.current?r.current.focus():gn&&Cn(gn.current)},a=t=>{o.current=requestAnimationFrame((()=>{e!==gn||xn(document.activeElement,e)||(gn=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)((()=>()=>{o.current&&cancelAnimationFrame(o.current)}),[o])}(a,r),function(e,t,r){const o=(0,g.useRef)("undefined"!=typeof document?document.activeElement:null);Wo((()=>{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(!vn(r,e.current))return;let o=kn(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||!vn(i,e.current))&&n){o.currentNode=n;do{i=t.shiftKey?o.previousNode():o.nextNode()}while(vn(i,e.current));t.preventDefault(),t.stopPropagation(),i?Sn(i,!0):function(e){for(let t of hn.keys())if(vn(e,t.current))return!0;return!1}(n)?Sn(n,!0):r.blur()}};return r||document.addEventListener("keydown",i,!0),()=>{r||document.removeEventListener("keydown",i,!0),t&&n&&vn(document.activeElement,e.current)&&requestAnimationFrame((()=>{document.body.contains(n)&&document.activeElement===document.body&&Sn(n)}))}}),[e,t,r])}(a,o,r),function(e,t){const r=h().useRef(t);(0,g.useEffect)((()=>{r.current&&(gn=e,vn(document.activeElement,gn.current)||Cn(e.current)),r.current=!1}),[])}(a,n);let d=function(e){return{focusNext(t={}){let r=e.current,{from:o,tabbable:n,wrap:i,accept:s}=t,a=o||document.activeElement,l=r[0].previousElementSibling,c=kn(yn(r),{tabbable:n,accept:s},r);c.currentNode=vn(a,r)?a:l;let d=c.nextNode();return!d&&i&&(c.currentNode=l,d=c.nextNode()),d&&Sn(d,!0),d},focusPrevious(t={}){let r=e.current,{from:o,tabbable:n,wrap:i,accept:s}=t,a=o||document.activeElement,l=r[r.length-1].nextElementSibling,c=kn(yn(r),{tabbable:n,accept:s},r);c.currentNode=vn(a,r)?a:l;let d=c.previousNode();return!d&&i&&(c.currentNode=l,d=c.previousNode()),d&&Sn(d,!0),d},focusFirst(t={}){let r=e.current,{tabbable:o,accept:n}=t,i=kn(yn(r),{tabbable:o,accept:n},r);i.currentNode=r[0].previousElementSibling;let s=i.nextNode();return s&&Sn(s,!0),s},focusLast(t={}){let r=e.current,{tabbable:o,accept:n}=t,i=kn(yn(r),{tabbable:o,accept:n},r);i.currentNode=r[r.length-1].nextElementSibling;let s=i.previousNode();return s&&Sn(s,!0),s}}}(a);return h().createElement(pn.Provider,{value:{scopeRef:a,focusManager:d}},h().createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,h().createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}const $n=["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]"],fn=$n.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";$n.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const bn=$n.join(':not([hidden]):not([tabindex="-1"]),');function yn(e){return e[0].parentElement}function vn(e,t){return t.some((t=>t.contains(e)))}function xn(e,t){for(let r of hn.keys())if((r===t||wn(t,r))&&vn(e,r.current))return!0;return!1}function wn(e,t){let r=hn.get(t);return!!r&&(r===e||wn(e,r))}function Sn(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{!function(e){if("virtual"===Xo){let r=document.activeElement;t=()=>{document.activeElement===r&&document.contains(e)&&Do(e)},requestAnimationFrame((()=>{0===Oo.size?t():Vo.add(t)}))}else Do(e);var t}(e)}catch(e){}}function Cn(e){let t=e[0].previousElementSibling,r=kn(yn(e),{tabbable:!0},e);r.currentNode=t,Sn(r.nextNode())}function kn(e,t,r){let o=(null==t?void 0:t.tabbable)?bn:fn,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)||!un(e)||r&&!vn(e,r)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(n.currentNode=t.from),n}function Pn(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,n=(0,g.useRef)({isFocused:!1,isFocusVisible:t||dn()}),[i,s]=(0,g.useState)(!1),[a,l]=(0,g.useState)((()=>n.current.isFocused&&n.current.isFocusVisible)),c=(0,g.useCallback)((()=>l(n.current.isFocused&&n.current.isFocusVisible)),[]),d=(0,g.useCallback)((e=>{n.current.isFocused=e,s(e),c()}),[c]);var u,p,h;u=e=>{n.current.isFocusVisible=e,c()},p=[],h={isTextInput:r},cn(),(0,g.useEffect)((()=>{let e=(e,t)=>{(function(e,t,r){return!(e&&"keyboard"===t&&r instanceof KeyboardEvent&&!tn[r.key])})(null==h?void 0:h.isTextInput,e,t)&&u(dn())};return Zo.add(e),()=>{Zo.delete(e)}}),p);let{focusProps:m}=function(e){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:n}=e;const i=(0,g.useCallback)((e=>{if(e.target===e.currentTarget)return o&&o(e),n&&n(!1),!0}),[o,n]),s=Yo(i),a=(0,g.useCallback)((e=>{e.target===e.currentTarget&&(r&&r(e),n&&n(!0),s(e))}),[n,r,s]);return{focusProps:{onFocus:!t&&(r||n||o)?a:void 0,onBlur:t||!o&&!n?null:i}}}({isDisabled:o,onFocusChange:d}),{focusWithinProps:$}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:n}=e,i=(0,g.useRef)({isFocusWithin:!1}),s=(0,g.useCallback)((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,r&&r(e),n&&n(!1))}),[r,n,i]),a=Yo(s),l=(0,g.useCallback)((e=>{i.current.isFocusWithin||(o&&o(e),n&&n(!0),i.current.isFocusWithin=!0,a(e))}),[o,n,a]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:l,onBlur:s}}}({isDisabled:!o,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:n.current.isFocused&&a,focusProps:o?$:m}}const Tn={prefix:String(Math.round(1e10*Math.random())),current:0},En=h().createContext(Tn);let Mn=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);const In="undefined"!=typeof window?h().useLayoutEffect:()=>{};let zn=new Map;function Ln(e){let[t,r]=(0,g.useState)(e),o=(0,g.useRef)(null),n=function(e){let t=(0,g.useContext)(En);return t!==Tn||Mn||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])}(t),i=(0,g.useCallback)((e=>{o.current=e}),[]);return zn.set(n,i),In((()=>{let e=n;return()=>{zn.delete(e)}}),[n]),(0,g.useEffect)((()=>{let e=o.current;e&&(o.current=null,r(e))})),n}function Nn(e,t){if(e===t)return e;let r=zn.get(e);if(r)return r(t),t;let o=zn.get(t);return o?(o(e),e):t}function Bn(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}function Rn(...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=Nn(r,n):t[e]=void 0!==n?n:r:t[e]=pr(r,n)}}return t}new Set(["id"]),new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]);let Hn=new Map,An=new Set;function Fn(){if("undefined"==typeof window)return;let e=t=>{let r=Hn.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",e),Hn.delete(t.target)),0===Hn.size)){for(let e of An)e();An.clear()}};document.body.addEventListener("transitionrun",(t=>{let r=Hn.get(t.target);r||(r=new Set,Hn.set(t.target,r),t.target.addEventListener("transitioncancel",e)),r.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function Kn(e){const t=(0,g.useRef)(null);return(0,g.useImperativeHandle)(e,(()=>t.current)),t}function Wn(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 document&&("loading"!==document.readyState?Fn():document.addEventListener("DOMContentLoaded",Fn)),"undefined"!=typeof window&&window.visualViewport,new Map,"undefined"==typeof window||!window.document||window.document.createElement;const Dn=je("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%"},".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:"$2xl"}}},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:{".nextui-avatar-img":{borderStyle:"solid",borderColor:"$background"}}},stacked:{true:{ml:"-$5"}},pointer:{true:{cursor:"pointer","&:hover .nextui-avatar-bg":{boxShadow:"inset 0 0 40px 0 rgb(0 0 0 / 14%)"}}},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"}}},{bordered:!0,pointer:!0,css:{"&:hover:not(.only-text-avatar) .nextui-avatar-bg":{opacity:"0.7"}}}],defaultVariants:{size:"md",rounded:!0,color:"default",textColor:"default",borderWeight:"normal"}},Bo),jn=Dn,On=e=>(null==e?void 0:e.length)<=4?e:null==e?void 0:e.slice(0,3),Vn=h().forwardRef(((e,t)=>{const{as:r,src:o,css:n,text:i,icon:s,alt:a,className:l,imgRef:c,...d}=e,u=Kn(t),p=!o,[h,m]=(0,g.useState)(!1),$=Kn(c),{isFocusVisible:f,focusProps:b}=Pn();(0,g.useEffect)((()=>{var e;(null==$||null==(e=$.current)?void 0:e.complete)&&m(!0)}),[]);const y=(0,g.useMemo)((()=>!h&&o?"loading":"ready"),[o,h]),v=(0,g.useMemo)((()=>{if("button"===r)return{appearance:"none",outline:"none",border:"none",cursor:"pointer"}}),[r]);return(0,zt.jsxs)(jn,{ref:u,as:r,...Rn(d,b),className:It({"only-text-avatar":p},l),css:{...v,...n},"data-state":y,isFocusVisible:f,children:[(0,zt.jsx)("span",{className:"nextui-avatar-bg"}),!p&&(0,zt.jsx)("img",{ref:$,alt:a,className:It("nextui-avatar-img",`nextui-avatar--${y}`,{"nextui-avatar-ready":h}),"data-state":y,src:o,onLoad:()=>m(!0)}),p&&!s&&i&&(0,zt.jsx)("span",{className:"nextui-avatar-text",children:On(i)}),s&&(0,zt.jsx)("span",{className:"nextui-avatar-icon",children:s})]})}));Vn.toString=()=>".nextui-avatar";const Un=Vn,Gn=je("span",{fontSize:"$xs",display:"inline-flex",alignItems:"center",marginLeft:"$3",color:"$text"}),_n=je("div",{dflex:"center",height:"auto",width:"max-content","@motion":{transition:"none"},[`& ${jn}`]:{marginLeft:"-$space$5",transition:"$default",".only-text-avatar":{boxShadow:"$xs"}},".only-text-avatar":{boxShadow:"$xs"},variants:{animated:{true:{[`& ${jn}:hover`]:{transform:"translate(-$space$5)"}}}},defaultVariants:{animated:!0}}),qn=_n,Yn=h().forwardRef(((e,t)=>{const{count:r,children:o,...n}=e,i=Kn(t);return(0,zt.jsxs)(qn,{ref:i,...n,children:[o,r&&(0,zt.jsxs)(Gn,{className:"nextui-avatar-group-count",children:["+",r]})]})}));Yn.toString=()=>".nextui-avatar-group";const Xn=Yn;Un.Group=Xn;const Zn=Un,Jn={prefix:String(Math.round(1e10*Math.random())),current:0},Qn=h().createContext(Jn);let ei=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);const ti="undefined"!=typeof window?h().useLayoutEffect:()=>{};let ri=new Map;function oi(e){let[t,r]=(0,g.useState)(e),o=(0,g.useRef)(null),n=function(e){let t=(0,g.useContext)(Qn);return t!==Jn||ei||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])}(t),i=(0,g.useCallback)((e=>{o.current=e}),[]);return ri.set(n,i),ti((()=>{let e=n;return()=>{ri.delete(e)}}),[n]),(0,g.useEffect)((()=>{let e=o.current;e&&(o.current=null,r(e))})),n}function ni(e,t){if(e===t)return e;let r=ri.get(e);if(r)return r(t),t;let o=ri.get(t);return o?(o(e),e):t}function ii(e=[]){let t=oi(),[r,o]=function(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)},ti((()=>{n.current&&i.current()}));let s=(0,g.useCallback)((e=>{n.current=e(o.current),i.current()}),[n,i]);return[t,s]}(t),n=(0,g.useCallback)((()=>{o((function*(){yield t,yield document.getElementById(t)?t:void 0}))}),[t,o]);return ti(n,[t,n,...e]),r}function si(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}function ai(...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]=si(r,n):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof n?"id"===e&&r&&n?t.id=ni(r,n):t[e]=void 0!==n?n:r:t[e]=pr(r,n)}}return t}const li=new Set(["id"]),ci=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),di=/^(data-.*)$/;function ui(e,t={}){let{labelable:r,propNames:o}=t,n={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(li.has(t)||r&&ci.has(t)||(null==o?void 0:o.has(t))||di.test(t))&&(n[t]=e[t]);return n}function pi(e){if(function(){if(null==gi){gi=!1;try{document.createElement("div").focus({get preventScroll(){return gi=!0,!0}})}catch(e){}}return gi}())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)}}let gi=null,hi=new Map,mi=new Set;function $i(){if("undefined"==typeof window)return;let e=t=>{let r=hi.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",e),hi.delete(t.target)),0===hi.size)){for(let e of mi)e();mi.clear()}};document.body.addEventListener("transitionrun",(t=>{let r=hi.get(t.target);r||(r=new Set,hi.set(t.target,r),t.target.addEventListener("transitioncancel",e)),r.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function fi(e){requestAnimationFrame((()=>{0===hi.size?e():mi.add(e)}))}function bi(){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 yi(e,t){let{id:r,"aria-label":o,"aria-labelledby":n}=e;if(r=oi(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 vi(e,t){const r=(0,g.useRef)(!0);(0,g.useEffect)((()=>{r.current?r.current=!1:e()}),t)}function xi(e,t){ti((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}"undefined"!=typeof document&&("loading"!==document.readyState?$i():document.addEventListener("DOMContentLoaded",$i)),"undefined"!=typeof window&&window.visualViewport;let wi=0;const Si=new Map;function Ci(e){let[t,r]=(0,g.useState)(void 0);return ti((()=>{if(!e)return;let t=Si.get(e);if(t)r(t.element.id);else{let o="react-aria-description-"+wi++;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},Si.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),Si.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}function ki(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Pi(){return ki(/^Mac/i)}function Ti(){return ki(/^iPhone/i)||ki(/^iPad/i)||Pi()&&navigator.maxTouchPoints>1}function Ei(){return e=/Android/i,"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));var e,t}function Mi(e,t){let r=Ii(e,t,"left"),o=Ii(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 Ii(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 zi(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Ei()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Li(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Ni="default",Bi="",Ri=new WeakMap;function Hi(e){Ti()?("default"===Ni&&(Bi=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Ni="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(Ri.set(e,e.style.userSelect),e.style.userSelect="none")}function Ai(e){if(Ti()){if("disabled"!==Ni)return;Ni="restoring",setTimeout((()=>{fi((()=>{"restoring"===Ni&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=Bi||""),Bi="",Ni="default")}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ri.has(e)){let t=Ri.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Ri.delete(e)}}const Fi=h().createContext(null);function Ki(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)(Fi);if(t){let{register:r,...o}=t;e=ai(o,e),r()}return xi(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,$]=(0,g.useState)(!1),f=(0,g.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:y}=bi(),v=(0,g.useMemo)((()=>{let e=f.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,$(!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),$(!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(Oi(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),d||Ai(e.target))},i={onKeyDown(r){Di(r.nativeEvent,r.currentTarget)&&r.currentTarget.contains(r.target)?(Gi(r.target,r.key)&&r.preventDefault(),r.stopPropagation(),e.isPressed||r.repeat||(e.target=r.currentTarget,e.isPressed=!0,t(r,"keyboard"),b(document,"keyup",a,!1))):"Enter"===r.key&&Wi(r.currentTarget)&&r.stopPropagation()},onKeyUp(t){Di(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target)&&o(Oi(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&&!zi(n.nativeEvent)||(s||l||pi(n.currentTarget),t(n,"virtual"),o(n,"virtual"),r(n,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{if(e.isPressed&&Di(t,e.target)){Gi(t.target,t.key)&&t.preventDefault(),t.stopPropagation(),e.isPressed=!1;let o=t.target;r(Oi(e.target,t),"keyboard",e.target.contains(o)),y(),e.target instanceof HTMLElement&&e.target.contains(o)&&(Wi(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&&"mouse"===o.pointerType?e.pointerType="virtual":(Ui(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||pi(r.currentTarget),d||Hi(e.target),t(r,e.pointerType),b(document,"pointermove",a,!1),b(document,"pointerup",c,!1),b(document,"pointercancel",u,!1))))},i.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Ui(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},i.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&Vi(t,t.currentTarget)&&o(t,e.pointerType||t.pointerType)};let a=o=>{o.pointerId===e.activePointerId&&(Vi(o,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(Oi(e.target,o),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,r(Oi(e.target,o),e.pointerType,!1),h.current.shouldCancelOnPointerExit&&n(o)))},c=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(Vi(t,e.target)?r(Oi(e.target,t),e.pointerType):e.isOverTarget&&r(Oi(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),d||Ai(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)&&(Ui(r.currentTarget)&&r.preventDefault(),r.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=r.currentTarget,e.pointerType=zi(r.nativeEvent)?"virtual":"mouse",s||l||pi(r.currentTarget),t(r,e.pointerType),b(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:(Vi(t,e.target)?r(Oi(e.target,t),e.pointerType):e.isOverTarget&&r(Oi(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||pi(r.currentTarget),d||Hi(e.target),t(r,e.pointerType),b(window,"scroll",c,!0))},i.onTouchMove=o=>{if(!o.currentTarget.contains(o.target))return;if(o.stopPropagation(),!e.isPressed)return;let i=ji(o.nativeEvent,e.activePointerId);i&&Vi(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=ji(t.nativeEvent,e.activePointerId);n&&Vi(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||Ai(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}),[b,s,l,y,d]);return(0,g.useEffect)((()=>()=>{d||Ai(f.current.target)}),[d]),{isPressed:a||m,pressProps:ai(p,v)}}function Wi(e){return"A"===e.tagName&&e.hasAttribute("href")}function Di(e,t){const{key:r,code:o}=e,n=t,i=n.getAttribute("role");return!("Enter"!==r&&" "!==r&&"Spacebar"!==r&&"Space"!==o||n instanceof HTMLInputElement&&!qi(n,r)||n instanceof HTMLTextAreaElement||n.isContentEditable||Wi(n)&&("button"!==i||"Enter"===r)||"link"===i&&"Enter"!==r)}function ji(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 Oi(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Vi(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 Ui(e){return!(e instanceof HTMLElement&&e.draggable)}function Gi(e,t){return e instanceof HTMLInputElement?!qi(e,t):!(e instanceof HTMLButtonElement)||"submit"!==e.type}Fi.displayName="PressResponderContext";const _i=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function qi(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:_i.has(e.type)}class Yi{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 Xi(e){let t=(0,g.useRef)({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,ti((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),(0,g.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{var o,n;t.current.isFocused=!1,r.disabled&&(null===(n=(o=t.current).onBlur)||void 0===n||n.call(o,new Yi("blur",e))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{t.current.isFocused&&r.disabled&&(t.current.observer.disconnect(),r.dispatchEvent(new FocusEvent("blur")),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[])}let Zi=null,Ji=new Set,Qi=!1,es=!1,ts=!1;function rs(e,t){for(let r of Ji)r(e,t)}function os(e){es=!0,function(e){return!(e.metaKey||!Pi()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Zi="keyboard",rs("keyboard",e))}function ns(e){Zi="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(es=!0,rs("pointer",e))}function is(e){zi(e)&&(es=!0,Zi="virtual")}function ss(e){e.target!==window&&e.target!==document&&(es||ts||(Zi="virtual",rs("virtual",e)),es=!1,ts=!1)}function as(){es=!1,ts=!0}function ls(){if("undefined"==typeof window||Qi)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){es=!0,e.apply(this,arguments)},document.addEventListener("keydown",os,!0),document.addEventListener("keyup",os,!0),document.addEventListener("click",is,!0),window.addEventListener("focus",ss,!0),window.addEventListener("blur",as,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",ns,!0),document.addEventListener("pointermove",ns,!0),document.addEventListener("pointerup",ns,!0)):(document.addEventListener("mousedown",ns,!0),document.addEventListener("mousemove",ns,!0),document.addEventListener("mouseup",ns,!0)),Qi=!0}function cs(){return"pointer"!==Zi}"undefined"!=typeof document&&("loading"!==document.readyState?ls():document.addEventListener("DOMContentLoaded",ls));let ds=!1,us=0;function ps(){ds=!0,setTimeout((()=>{ds=!1}),50)}function gs(e){"touch"===e.pointerType&&ps()}function hs(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",gs):document.addEventListener("touchend",ps),us++,()=>{us--,us>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",gs):document.removeEventListener("touchend",ps))}}function ms(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()}}const $s=500;function fs(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:o,onLongPress:n,threshold:i=$s,accessibilityDescription:s}=e;const a=(0,g.useRef)(null);let{addGlobalListener:l,removeGlobalListener:c}=bi(),{pressProps:d}=Ki({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:ai(d,Ci(n&&!t?s:null))}}function bs(e){if("virtual"===Zi){let t=document.activeElement;fi((()=>{document.activeElement===t&&document.contains(e)&&pi(e)}))}else pi(e)}function ys(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||ys(e.parentElement,e))}const vs=["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]"],xs=vs.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";vs.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const ws=vs.join(':not([hidden]):not([tabindex="-1"]),');function Ss(e,t){return t.some((t=>t.contains(e)))}function Cs(e,t,r){let o=(null==t?void 0:t.tabbable)?ws:xs,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)||!ys(e)||r&&!Ss(e,r)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(n.currentNode=t.from),n}class ks{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let o=this.fastMap.get(null!=t?t:null),n=new Ps({scopeRef:e});o.addChild(n),n.parent=o,this.fastMap.set(e,n),r&&(n.nodeToRestore=r)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e),r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef.current&&Ss(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let o=t.children;r.removeChild(t),o.length>0&&o.forEach((e=>r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.length>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new ks;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){Li(this,"fastMap",new Map),this.root=new Ps({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ps{addChild(e){this.children.push(e),e.parent=this}removeChild(e){this.children.splice(this.children.indexOf(e),1),e.parent=void 0}constructor(e){Li(this,"children",[]),Li(this,"contain",!1),this.scopeRef=e.scopeRef}}new ks;let Ts=h().createContext(null);function Es(e,t){let{focusProps:r}=function(e){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:n}=e;const i=(0,g.useCallback)((e=>{if(e.target===e.currentTarget)return o&&o(e),n&&n(!1),!0}),[o,n]),s=Xi(i),a=(0,g.useCallback)((e=>{e.target===e.currentTarget&&(r&&r(e),n&&n(!0),s(e))}),[n,r,s]);return{focusProps:{onFocus:!t&&(r||n||o)?a:void 0,onBlur:t||!o&&!n?null:i}}}(e),{keyboardProps:o}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ms(e.onKeyDown),onKeyUp:ms(e.onKeyUp)}}}(e),n=ai(r,o),i=function(e){let t=(0,g.useContext)(Ts)||{};xi(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&&bs(t.current),a.current=!1}),[t]),{focusableProps:ai({...n,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function Ms(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:g,rel:h,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?g: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?h:void 0};let{pressProps:$,isPressed:f}=Ki({onPressStart:s,onPressEnd:a,onPressChange:l,onPress:i,isDisabled:n,preventFocusOnPress:c,ref:t}),{focusableProps:b}=Es(e,t);d&&(b.tabIndex=n?-1:b.tabIndex);let y=ai(b,$,ui(e,{labelable:!0}));return{isPressed:f,buttonProps:ai(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"))}})}}const Is="undefined"!=typeof window?h().useLayoutEffect:()=>{};let zs=new Map;function Ls(e,t){if(e===t)return e;let r=zs.get(e);if(r)return r(t),t;let o=zs.get(t);return o?(o(e),e):t}function Ns(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}function Bs(...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]=Ns(r,n):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof n?"id"===e&&r&&n?t.id=Ls(r,n):t[e]=void 0!==n?n:r:t[e]=pr(r,n)}}return t}function Rs(e){if(function(){if(null==Hs){Hs=!1;try{document.createElement("div").focus({get preventScroll(){return Hs=!0,!0}})}catch(e){}}return Hs}())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)}}new Set(["id"]),new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]);let Hs=null,As=new Map,Fs=new Set;function Ks(){if("undefined"==typeof window)return;let e=t=>{let r=As.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",e),As.delete(t.target)),0===As.size)){for(let e of Fs)e();Fs.clear()}};document.body.addEventListener("transitionrun",(t=>{let r=As.get(t.target);r||(r=new Set,As.set(t.target,r),t.target.addEventListener("transitioncancel",e)),r.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function Ws(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ds(){return Ws(/^Mac/i)}function js(){return Ws(/^iPhone/i)||Ws(/^iPad/i)||Ds()&&navigator.maxTouchPoints>1}function Os(e){return!(0!==e.mozInputSource||!e.isTrusted)||(t=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(r=window.navigator.userAgentData)||void 0===r?void 0:r.brands.some((e=>t.test(e.brand))))||t.test(window.navigator.userAgent))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType);var t,r}"undefined"!=typeof document&&("loading"!==document.readyState?Ks():document.addEventListener("DOMContentLoaded",Ks)),"undefined"!=typeof window&&window.visualViewport,new Map;let Vs="default",Us="",Gs=new WeakMap;function _s(e){js()?("default"===Vs&&(Us=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Vs="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(Gs.set(e,e.style.userSelect),e.style.userSelect="none")}function qs(e){if(js()){if("disabled"!==Vs)return;Vs="restoring",setTimeout((()=>{var e;e=()=>{"restoring"===Vs&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=Us||""),Us="",Vs="default")},requestAnimationFrame((()=>{0===As.size?e():Fs.add(e)}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Gs.has(e)){let t=Gs.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Gs.delete(e)}}const Ys=h().createContext(null);function Xs(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)(Ys);if(t){let{register:r,...o}=t;e=Bs(o,e),r()}return function(e,t){Is((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}(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,$]=(0,g.useState)(!1),f=(0,g.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:y}=function(){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}}(),v=(0,g.useMemo)((()=>{let e=f.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,$(!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),$(!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(ea(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),d||qs(e.target))},i={onKeyDown(r){Js(r.nativeEvent,r.currentTarget)&&r.currentTarget.contains(r.target)?(oa(r.target,r.key)&&r.preventDefault(),r.stopPropagation(),e.isPressed||r.repeat||(e.target=r.currentTarget,e.isPressed=!0,t(r,"keyboard"),b(document,"keyup",a,!1))):"Enter"===r.key&&Zs(r.currentTarget)&&r.stopPropagation()},onKeyUp(t){Js(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target)&&o(ea(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&&!Os(n.nativeEvent)||(s||l||Rs(n.currentTarget),t(n,"virtual"),o(n,"virtual"),r(n,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{if(e.isPressed&&Js(t,e.target)){oa(t.target,t.key)&&t.preventDefault(),t.stopPropagation(),e.isPressed=!1;let o=t.target;r(ea(e.target,t),"keyboard",e.target.contains(o)),y(),e.target instanceof HTMLElement&&e.target.contains(o)&&(Zs(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&&"mouse"===o.pointerType?e.pointerType="virtual":(ra(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||Rs(r.currentTarget),d||_s(e.target),t(r,e.pointerType),b(document,"pointermove",a,!1),b(document,"pointerup",c,!1),b(document,"pointercancel",u,!1))))},i.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(ra(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},i.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&ta(t,t.currentTarget)&&o(t,e.pointerType||t.pointerType)};let a=o=>{o.pointerId===e.activePointerId&&(ta(o,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(ea(e.target,o),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,r(ea(e.target,o),e.pointerType,!1),h.current.shouldCancelOnPointerExit&&n(o)))},c=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(ta(t,e.target)?r(ea(e.target,t),e.pointerType):e.isOverTarget&&r(ea(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),d||qs(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)&&(ra(r.currentTarget)&&r.preventDefault(),r.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=r.currentTarget,e.pointerType=Os(r.nativeEvent)?"virtual":"mouse",s||l||Rs(r.currentTarget),t(r,e.pointerType),b(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:(ta(t,e.target)?r(ea(e.target,t),e.pointerType):e.isOverTarget&&r(ea(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||Rs(r.currentTarget),d||_s(e.target),t(r,e.pointerType),b(window,"scroll",c,!0))},i.onTouchMove=o=>{if(!o.currentTarget.contains(o.target))return;if(o.stopPropagation(),!e.isPressed)return;let i=Qs(o.nativeEvent,e.activePointerId);i&&ta(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=Qs(t.nativeEvent,e.activePointerId);n&&ta(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||qs(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}),[b,s,l,y,d]);return(0,g.useEffect)((()=>()=>{d||qs(f.current.target)}),[d]),{isPressed:a||m,pressProps:Bs(p,v)}}function Zs(e){return"A"===e.tagName&&e.hasAttribute("href")}function Js(e,t){const{key:r,code:o}=e,n=t,i=n.getAttribute("role");return!("Enter"!==r&&" "!==r&&"Spacebar"!==r&&"Space"!==o||n instanceof HTMLInputElement&&!ia(n,r)||n instanceof HTMLTextAreaElement||n.isContentEditable||Zs(n)&&("button"!==i||"Enter"===r)||"link"===i&&"Enter"!==r)}function Qs(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 ea(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function ta(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 ra(e){return!(e instanceof HTMLElement&&e.draggable)}function oa(e,t){return e instanceof HTMLInputElement?!ia(e,t):!(e instanceof HTMLButtonElement)||"submit"!==e.type}Ys.displayName="PressResponderContext";const na=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ia(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:na.has(e.type)}let sa=null,aa=new Set,la=!1,ca=!1,da=!1;function ua(e,t){for(let r of aa)r(e,t)}function pa(e){ca=!0,function(e){return!(e.metaKey||!Ds()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(sa="keyboard",ua("keyboard",e))}function ga(e){sa="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(ca=!0,ua("pointer",e))}function ha(e){Os(e)&&(ca=!0,sa="virtual")}function ma(e){e.target!==window&&e.target!==document&&(ca||da||(sa="virtual",ua("virtual",e)),ca=!1,da=!1)}function $a(){ca=!1,da=!0}function fa(){if("undefined"==typeof window||la)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){ca=!0,e.apply(this,arguments)},document.addEventListener("keydown",pa,!0),document.addEventListener("keyup",pa,!0),document.addEventListener("click",ha,!0),window.addEventListener("focus",ma,!0),window.addEventListener("blur",$a,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",ga,!0),document.addEventListener("pointermove",ga,!0),document.addEventListener("pointerup",ga,!0)):(document.addEventListener("mousedown",ga,!0),document.addEventListener("mousemove",ga,!0),document.addEventListener("mouseup",ga,!0)),la=!0}"undefined"!=typeof document&&("loading"!==document.readyState?fa():document.addEventListener("DOMContentLoaded",fa));let ba=!1,ya=0;function va(){ba=!0,setTimeout((()=>{ba=!1}),50)}function xa(e){"touch"===e.pointerType&&va()}function wa(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",xa):document.addEventListener("touchend",va),ya++,()=>{ya--,ya>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",xa):document.removeEventListener("touchend",va))}}function Sa(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)(wa,[]);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=>{ba&&"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||ba||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 Ca(e){return(0,g.forwardRef)(e)}const ka={isButtonGroup:!1,disabled:!1},Pa=h().createContext(ka),Ta=je("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)"}}]}),Ea=({children:e,className:t,css:r,...o})=>(0,zt.jsx)(Ta,{className:It("nextui-button-icon",{"nextui-button-icon-right":o.isRight,"nextui-button-icon-single":o.isSingle},t),css:r,...o,children:e});Ea.toString=()=>".nextui-button-icon";const Ma=Et(h().memo(Ea),{className:""}),Ia=je("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}},[`& ${Nt}`]:{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",[`& ${Nt}`]:{".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"}},isFocusVisible:{true:{},false:{}}},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,isFocusVisible:!1,color:"default",css:{normalShadow:"$primaryShadow"}},{shadow:!0,isFocusVisible:!1,color:"primary",css:{normalShadow:"$primaryShadow"}},{shadow:!0,isFocusVisible:!1,color:"secondary",css:{normalShadow:"$secondaryShadow"}},{shadow:!0,isFocusVisible:!1,color:"warning",css:{normalShadow:"$warningShadow"}},{shadow:!0,isFocusVisible:!1,color:"success",css:{normalShadow:"$successShadow"}},{shadow:!0,isFocusVisible:!1,color:"error",css:{normalShadow:"$errorShadow"}},{shadow:!0,isFocusVisible:!1,color:"gradient",css:{normalShadow:"$primaryShadow"}},{light:!0,color:"default",css:{bg:"transparent",color:"$text",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$primaryLightActive"}}}},{light:!0,color:"primary",css:{bg:"transparent",color:"$primary",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$primaryLightActive"}}}},{light:!0,color:"secondary",css:{bg:"transparent",color:"$secondary",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$secondaryLightActive"}}}},{light:!0,color:"warning",css:{bg:"transparent",color:"$warning",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$warningLightActive"}}}},{light:!0,color:"success",css:{bg:"transparent",color:"$success",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$successLightActive"}}}},{light:!0,color:"error",css:{bg:"transparent",color:"$error",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$errorLightActive"}}}},{bordered:!0,color:"default",css:{bg:"transparent",borderColor:"$primary",color:"$primary",[`& ${Nt}`]:{".nextui-drip-filler":{fill:"$primary"}}}},{bordered:!0,color:"primary",css:{bg:"transparent",borderColor:"$primary",color:"$primary",[`& ${Nt}`]:{".nextui-drip-filler":{fill:"$primary"}}}},{bordered:!0,color:"secondary",css:{bg:"transparent",borderColor:"$secondary",color:"$secondary",[`& ${Nt}`]:{".nextui-drip-filler":{fill:"$secondary"}}}},{bordered:!0,color:"success",css:{bg:"transparent",borderColor:"$success",color:"$success",[`& ${Nt}`]:{".nextui-drip-filler":{fill:"$success"}}}},{bordered:!0,color:"warning",css:{bg:"transparent",borderColor:"$warning",color:"$warning",[`& ${Nt}`]:{".nextui-drip-filler":{fill:"$warning"}}}},{bordered:!0,color:"error",css:{bg:"transparent",borderColor:"$error",color:"$error",[`& ${Nt}`]:{".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",[`& ${Nt}`]:{".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",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$primary"}}}},{flat:!0,color:"primary",css:{bg:"$primaryLight",color:"$primaryLightContrast",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$primary"}}}},{flat:!0,color:"secondary",css:{bg:"$secondaryLight",color:"$secondaryLightContrast",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$secondary"}}}},{flat:!0,color:"success",css:{bg:"$successLight",color:"$successLightContrast",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$success"}}}},{flat:!0,color:"warning",css:{bg:"$warningLight",color:"$warningLightContrast",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$warning"}}}},{flat:!0,color:"error",css:{bg:"$errorLight",color:"$errorLightContrast",[`& ${Nt}`]:{".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"}},Bo),za=Ia,La=Ca(((e,t)=>{const{as:r,css:o,iconLeftCss:n,iconRightCss:i,onClick:s,onPress:a,onPressStart:l,onPressEnd:c,onPressChange:d,onPressUp:u,...p}=e,m=((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})(p,h().useContext(Pa)),$=(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"}:void 0:t})(m),{flat:f,children:b,disabled:y,animated:v,light:x,ripple:w,bordered:S,auto:C,borderWeight:k,icon:P,iconRight:T,ghost:E,autoFocus:M,className:I,...z}=m,L=e=>{v&&w&&N.current&&D(e)},N=Kn(t),{buttonProps:B,isPressed:R}=Ms({...p,isDisabled:y,elementType:r,onPress:e=>{"keyboard"===e.pointerType||"virtual"===e.pointerType?L(e):"undefined"!=typeof window&&window.event&&L(window.event),s&&(s(e),console.warn("onClick is deprecated, please use onPress")),null==a||a(e)},onPressStart:l,onPressEnd:c,onPressChange:d,onPressUp:u},N),{hoverProps:H,isHovered:A}=Sa({isDisabled:y}),{isFocused:F,isFocusVisible:K,focusProps:W}=Pn({autoFocus:M}),{onClick:D,...j}=Tt(!1,N),O=P||T,V=0===h().Children.count(b),U=Boolean(T),G=(0,g.useMemo)((()=>R?"pressed":A?"hovered":y?"disabled":"ready"),[y,A,R]),_=(0,g.useMemo)((()=>U?i:n),[U,i,n]);return(0,zt.jsxs)(za,{ref:N,animated:v,as:r,auto:C,borderWeight:k,bordered:S||E,className:It("nextui-button",`nextui-button--${G}`,I),css:{...o,...$},"data-state":G,flat:f,ghost:E,isChildLess:V,isFocusVisible:K&&!y,isHovered:A||E&&F,isPressed:R,light:x,...Rn(B,W,H,z),children:[0===h().Children.count(b)?(0,zt.jsx)(Ma,{isSingle:!0,css:_,isAuto:C,isGradientButtonBorder:"gradient"===e.color&&(S||E),isRight:U,children:O}):O?(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.jsx)(Ma,{css:_,isAuto:C,isGradientButtonBorder:"gradient"===e.color&&(S||E),isRight:U,isSingle:!1,children:O}),(0,zt.jsx)("div",{className:It("nextui-button-text",{"nextui-button-text-right":U,"nextui-button-text-left":!U}),children:b})]}):(0,zt.jsx)("span",{className:"nextui-button-text",children:b}),(0,zt.jsx)(Rt,{className:"nextui-button-drip",color:"white",...j})]})}));La.toString=()=>".nextui-button";const Na=Et(La,{ghost:!1,bordered:!1,ripple:!0,animated:!0,disabled:!1,autoFocus:!1,auto:!1,className:"",type:"button"}),Ba=je("div",{display:"inline-flex",margin:"$3",backgroundColor:"transparent",height:"min-content",[`& ${za}`]:{".nextui-button-text":{top:0}},variants:{vertical:{true:{fd:"column",[`& ${za}`]:{"&:not(:first-child)":{btlr:0,btrr:0},"&:not(:last-child)":{bblr:0,bbrr:0}}},false:{fd:"row",[`& ${za}`]:{"&: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:{[`& ${za}`]:{"&:not(:last-child)":{borderBottom:"none",paddingBottom:"0"}}}},{bordered:!0,vertical:!1,css:{[`& ${za}`]:{"&:not(:first-child)":{borderLeft:"none"}}}},{bordered:!0,vertical:!1,gradient:!0,css:{[`& ${za}`]:{"&:not(:last-child)&:not(:first-child)":{pl:0},"&:last-child":{pl:0}}}}]}),Ra=Ba,Ha=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,...$}=e,f=(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,zt.jsx)(Pa.Provider,{value:f,children:(0,zt.jsx)(Ra,{bordered:n||i,gradient:"gradient"===e.color,size:r,...$,children:m})})};Ha.toString=()=>".nextui-button-group";const Aa=Et(h().memo(Ha),{borderWeight:"normal",size:"md",color:"default"});Na.Group=Aa;const Fa=Na,Ka=Ue({"0%":{backgroundPosition:"200% 0"},to:{backgroundPosition:"-200% 0"}}),Wa=je("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}}}}),Da=je("img",{size:"100%",display:"block"}),ja=je("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:`${Ka} 5s ease-in-out infinite`,transition:"opacity 300ms ease-out"}),Oa=h().memo((({opacity:e,css:t,className:r,...o})=>(0,zt.jsx)(ja,{className:It("nextui-image-skeleton",r),css:{opacity:e,...t},...o})));Oa.toString=()=>".nextui-image-skeleton";const Va=Et(Oa,{opacity:.5,className:""}),Ua=h().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=Kn(t),[$,y]=(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,P]=m(S),[T,E]=f(h),M=i&&!!o&&!!n;(0,g.useEffect)((()=>{h.current&&h.current.complete&&(y(!1),x(!1))})),(0,g.useEffect)((()=>{const e=setTimeout((()=>{M&&x(!1),clearTimeout(e)}),a);return()=>clearTimeout(e)}),[$]),(0,g.useEffect)((()=>{if(!l)return;const e=0===T.width,t="auto"===P.current;!e&&o&&n&&(T.width<o?!t&&k("auto"):t&&k(S))}),[T,o]),b((()=>{l&&E()}));const I=(0,g.useMemo)((()=>$?"loading":"ready"),[$]);return(0,zt.jsxs)(Wa,{className:It("nextui-image-container",`nextui-image--${I}`,s),css:{width:w,height:C,...d},"data-state":I,ready:!$||v,children:[v&&(0,zt.jsx)(Va,{opacity:1}),(0,zt.jsx)(Da,{ref:h,alt:e.alt||"",className:"nextui-image",css:{objectFit:c,...u},"data-state":I,height:n,src:r,width:o,onLoad:()=>{y(!1)},...p})]})}));Ua.toString=()=>".nextui-image";const Ga=h().memo(Ua),_a=e=>`calc(${15.25*e}pt + 1px * ${e-1})`,qa=je("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"}}),Ya=je("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"}}}}),Xa=({height:e,x:t,y:r,align:o,children:n,textColor:i,css:s,...a})=>{const l=(0,g.useMemo)((()=>{if(o&&"center"!==o)return"left"===o||"start"===o?{transform:"translateY(-50%)",left:"7%"}:{transform:"translateY(-50%)",left:"auto",right:"7%"}}),[o]),c=r?_a(r/2):0,d=t?_a(t/2):0;return(0,zt.jsx)(qa,{css:{margin:`${c} ${d}`,height:`calc(${e} * 1px)`,...s},role:"separator",...a,children:n&&(0,zt.jsx)(Ya,{className:"nextui-divider-text",color:i,css:{...l},children:n})})};Xa.toString=()=>".nextui-divider";const Za=Et(h().memo(Xa),{x:0,y:0,height:1,align:"center"}),Ja=je("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"}),Qa=je("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%"},[`& ${Nt}`]:{zIndex:"$1",".nextui-drip-filler":{opacity:.25,fill:"$accents6"}},variants:{variant:{flat:{bg:"$accents0"},shadow:{dropShadow:"$lg","@safari":{boxShadow:"$lg",dropShadow:"none"},"@-moz-document url-prefix()":{boxShadow:"$lg",dropShadow:"none"}},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","@safari":{boxShadow:"$lg",dropShadow:"none"},"@-moz-document url-prefix()":{boxShadow:"$lg",dropShadow:"none"}}}},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","@safari":{boxShadow:"$xl",dropShadow:"none"},"@-moz-document url-prefix()":{boxShadow:"$xl",dropShadow:"none"}}}]},Ro,Bo),el=je("div",{w:"100%",display:"flex",flexShrink:0,zIndex:"$1",jc:"flex-start",ai:"center",overflow:"hidden",color:"inherit",p:"$sm"}),tl=je("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"}}}}),rl=h().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:m,getCardProps:$,dripBindings:f}=(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,allowTextSelectionOnPress:u=!0,...p}=e,h=Kn(t),{onClick:m,...$}=Tt(!1,h),f=e=>{r||o||!h.current||m(e)},{isPressed:b,pressProps:y}=Xs({isDisabled:!a,onPress:e=>{"keyboard"!==e.pointerType&&"virtual"!==e.pointerType||(f(e),null==l||l(e)),null==c||c(e)},allowTextSelectionOnPress:u,...p}),{hoverProps:v,isHovered:x}=Sa({isDisabled:!i,...p}),{isFocusVisible:w,focusProps:S}=Pn({autoFocus:d});y.onClick=e=>{a&&(f(e),null==l||l(e))};const C=(0,g.useCallback)(((e={})=>({...Rn(a?{...y,...S}:{},i?v:{},p,e)})),[a,i,y,S,v,p]);return{cardRef:h,variant:n,borderWeight:s,isPressable:a,isHovered:x,isPressed:b,disableAnimation:r,disableRipple:o,dripBindings:$,onDripClickHandler:m,isFocusVisible:w,getCardProps:C}})({...i,ref:t});return(0,zt.jsxs)(Qa,{ref:s,as:r,borderWeight:h,css:o,disableAnimation:u,isFocusVisible:l,isHovered:m,isPressable:c,isPressed:d,role:c?"button":"section",tabIndex:c?0:-1,variant:a,...$(),children:[c&&!u&&!p&&(0,zt.jsx)(Rt,{...f}),n]})}));rl.toString=()=>".nextui-card";const ol=rl;ol.Header=el,ol.Body=Ja,ol.Footer=tl,ol.Image=Ga,ol.Divider=Za;const nl=ol,il="undefined"!=typeof window?h().useLayoutEffect:()=>{};let sl=new Map;function al(e,t){if(e===t)return e;let r=sl.get(e);if(r)return r(t),t;let o=sl.get(t);return o?(o(e),e):t}function ll(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}new Set(["id"]),new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]);let cl=new Map,dl=new Set;function ul(){if("undefined"==typeof window)return;let e=t=>{let r=cl.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",e),cl.delete(t.target)),0===cl.size)){for(let e of dl)e();dl.clear()}};document.body.addEventListener("transitionrun",(t=>{let r=cl.get(t.target);r||(r=new Set,cl.set(t.target,r),t.target.addEventListener("transitioncancel",e)),r.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function pl(){return e=/^Mac/i,"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform);var e,t}function gl(e){return!(0!==e.mozInputSource||!e.isTrusted)||(t=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(r=window.navigator.userAgentData)||void 0===r?void 0:r.brands.some((e=>t.test(e.brand))))||t.test(window.navigator.userAgent))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType);var t,r}"undefined"!=typeof document&&("loading"!==document.readyState?ul():document.addEventListener("DOMContentLoaded",ul)),"undefined"!=typeof window&&window.visualViewport,new Map,new WeakMap;h().createContext(null).displayName="PressResponderContext",new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);class hl{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}}let ml=null,$l=new Set,fl=!1,bl=!1,yl=!1;function vl(e,t){for(let r of $l)r(e,t)}function xl(e){bl=!0,function(e){return!(e.metaKey||!pl()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(ml="keyboard",vl("keyboard",e))}function wl(e){ml="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(bl=!0,vl("pointer",e))}function Sl(e){gl(e)&&(bl=!0,ml="virtual")}function Cl(e){e.target!==window&&e.target!==document&&(bl||yl||(ml="virtual",vl("virtual",e)),bl=!1,yl=!1)}function kl(){bl=!1,yl=!0}function Pl(){if("undefined"==typeof window||fl)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){bl=!0,e.apply(this,arguments)},document.addEventListener("keydown",xl,!0),document.addEventListener("keyup",xl,!0),document.addEventListener("click",Sl,!0),window.addEventListener("focus",Cl,!0),window.addEventListener("blur",kl,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",wl,!0),document.addEventListener("pointermove",wl,!0),document.addEventListener("pointerup",wl,!0)):(document.addEventListener("mousedown",wl,!0),document.addEventListener("mousemove",wl,!0),document.addEventListener("mouseup",wl,!0)),fl=!0}"undefined"!=typeof document&&("loading"!==document.readyState?Pl():document.addEventListener("DOMContentLoaded",Pl));const Tl={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 El(e={}){let{style:t,isFocusable:r}=e,[o,n]=(0,g.useState)(!1),{focusWithinProps:i}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:n}=e,i=(0,g.useRef)({isFocusWithin:!1}),s=(0,g.useCallback)((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,r&&r(e),n&&n(!1))}),[r,n,i]),a=function(e){let t=(0,g.useRef)({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,il((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),(0,g.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{var o,n;t.current.isFocused=!1,r.disabled&&(null===(n=(o=t.current).onBlur)||void 0===n||n.call(o,new hl("blur",e))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{t.current.isFocused&&r.disabled&&(t.current.observer.disconnect(),r.dispatchEvent(new FocusEvent("blur")),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[])}(s),l=(0,g.useCallback)((e=>{i.current.isFocusWithin||(o&&o(e),n&&n(!0),i.current.isFocusWithin=!0,a(e))}),[o,n,a]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:l,onBlur:s}}}({isDisabled:!r,onFocusWithinChange:e=>n(e)});return{visuallyHiddenProps:{...i,style:(0,g.useMemo)((()=>o?t:t?{...Tl,...t}:Tl),[o])}}}function Ml(e){let{children:t,elementType:r="div",isFocusable:o,style:n,...i}=e,{visuallyHiddenProps:s}=El(e);return h().createElement(r,function(...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]=ll(r,n):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof n?"id"===e&&r&&n?t.id=al(r,n):t[e]=void 0!==n?n:r:t[e]=pr(r,n)}}return t}(i,s),t)}function Il(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]}function zl(e={}){let{isReadOnly:t}=e,[r,o]=Il(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:r,setSelected:function(e){t||o(e)},toggle:function(){t||o(!r)}}}function Ll(e){let{description:t,errorMessage:r,validationState:o}=e,{labelProps:n,fieldProps:i}=function(e){let{id:t,label:r,"aria-labelledby":o,"aria-label":n,labelElementType:i="label"}=e;t=oi(t);let s=oi(),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:yi({id:t,"aria-label":n,"aria-labelledby":o})}}(e),s=ii([Boolean(t),Boolean(r),o]),a=ii([Boolean(t),Boolean(r),o]);return i=ai(i,{"aria-describedby":[s,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:n,fieldProps:i,descriptionProps:{id:s},errorMessageProps:{id:a}}}function Nl(e,t,r){let{inputProps:o}=function(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}=Ki({isDisabled:o}),{focusableProps:g}=Es(e,r),h=ai(p,g);return{inputProps:ai(ui(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,...null==s?{}:{value:s},name:a,type:"checkbox",...h})}}(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}}}const Bl=new WeakMap,Rl=new WeakMap,Hl=new WeakMap;function Al(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]}const[Fl,Kl]=Al({name:"CheckboxGroupContext",strict:!1}),Wl=je("label",{$$checkboxBorderColor:"$colors$border",$$checkboxBorderRadius:"$radii$squared",d:"inline-flex",jc:"flex-start",ai:"center",position:"relative",w:"auto",cursor:"pointer",zIndex:"$1",opacity:1,transition:"opacity 0.25s ease","@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"}}),Dl=je("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"}}}]}),jl=je("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"}}}]}),Ol=je("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"}}]}),Vl=je("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"}}}}}),Ul=je("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)"}}}]}),Gl=je("div",{br:"$$checkboxBorderRadius",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:{$$checkboxBorderRadius:"$radii$pill"}},isDisabled:{true:{opacity:.4,cursor:"not-allowed"}},disableAnimation:{true:{transition:"none"}},isHovered:{true:{[`& ${Vl}:before`]:{bg:"$$checkboxBorderColor",border:"2px solid transparent"},[`& ${Vl}:after`]:{bg:"$$checkboxColorHover"}}}},defaultVariants:{color:"default"}},Bo),_l=je("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"}}}}}),ql=je("div",{display:"flex",flexDirection:"column",variants:{isRow:{true:{flexDirection:"row",mt:0,[`& ${Wl}`]:{mr:"$$checkboxSize"}},false:{mr:0,flexDirection:"column",[`& ${Wl}:not(:first-child)`]:{mt:"$$checkboxSize"}}}},defaultVariants:{isRow:!1}}),Yl=h().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:$,inputProps:f,containerCss:b}=(e=>{var t,r,o;const n=Kl(),{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,containerCss:p,...h}=e,m=(0,g.useRef)(null),$=(0,g.useMemo)((()=>{var e,t;return{...h,isIndeterminate:u,value:null!=(e=h.value)?e:"",isRequired:null!=(t=h.isRequired)&&t}}),[u,h]),{inputProps:f}=n?function(e,t,r){const o=function(e={}){let{isReadOnly:t}=e,[r,o]=Il(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:r,setSelected:function(e){t||o(e)},toggle:function(){t||o(!r)}}}({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}=Nl({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||Bl.get(t)},o,r);return{inputProps:{...n,"aria-describedby":["invalid"===t.validationState?Hl.get(t):null,Rl.get(t)].filter(Boolean).join(" ")||void 0}}}({...$,validationState:h.validationState},n.groupState,m):Nl($,zl($),m);return{size:i,color:s,labelColor:a,isRounded:c,lineThrough:l,disableAnimation:d,isIndeterminate:u,inputRef:m,inputProps:f,containerCss:p}})({...a,children:null!=i?i:s}),y=Wn(t,$),{hoverProps:v,isHovered:x}=Sa({isDisabled:f.disabled}),{pressProps:w}=Xs({isDisabled:f.disabled}),{focusProps:S,isFocusVisible:C}=Pn({autoFocus:f.autoFocus}),k=(0,g.useMemo)((()=>x?"hovered":m&&f.checked?"mixed":f.checked?"checked":"uncheked"),[x,m,f.checked]);return(0,zt.jsxs)(Wl,{ref:y,...Rn(v,w,a),as:o,className:It("nextui-checkbox-label",`nextui-checkbox--${k}`,r),css:n,disableAnimation:h,isDisabled:f.disabled,size:l,children:[(0,zt.jsxs)(Gl,{className:"nextui-checkbox-container",color:c,css:b,disableAnimation:h,isDisabled:f.disabled,isFocusVisible:C,isHovered:x,isRounded:u,...S,children:[(0,zt.jsx)(Ml,{children:(0,zt.jsx)("input",{ref:$,className:"nextui-checkbox-input",...Rn(f,S)})}),(0,zt.jsx)(Vl,{className:"nextui-checkbox-mask",disableAnimation:h,isChecked:f.checked,isIndeterminate:m,children:(0,zt.jsxs)(Ol,{className:"nextui-icon-check",disableAnimation:h,isChecked:f.checked,isIndeterminate:m,size:l,children:[(0,zt.jsx)(Dl,{className:"nextui-icon-check-line1",disableAnimation:h,isChecked:f.checked,isIndeterminate:m}),(0,zt.jsx)(jl,{className:"nextui-icon-check-line2",disableAnimation:h,isChecked:f.checked,isIndeterminate:m})]})})]}),(i||s)&&(0,zt.jsx)(Ul,{className:"nextui-checkbox-text",color:d,disableAnimation:h,isChecked:f.checked,isDisabled:f.disabled,lineThrough:p,children:i||s})]})}));Yl.toString=()=>".nextui-checkbox";const Xl=Yl,Zl=h().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=function(e={}){let[t,r]=Il(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)))},validationState:e.validationState}}(s),{labelProps:l,groupProps:c}=function(e,t){let{isDisabled:r,name:o}=e,{labelProps:n,fieldProps:i,descriptionProps:s,errorMessageProps:a}=Ll({...e,labelElementType:"span"});Rl.set(t,s.id),Hl.set(t,a.id);let l=ui(e,{labelable:!0});return Bl.set(t,o),{groupProps:ai(l,{role:"group","aria-disabled":r||void 0,...i}),labelProps:n,descriptionProps:s,errorMessageProps:a}}(s,a);return{css:i,size:t,orientation:n,color:r,labelColor:o,groupState:a,labelProps:l,groupProps:c}})({...s,label:i}),c=Kn(t);return(0,zt.jsxs)(_l,{ref:c,...l.groupProps,as:n,className:It("nextui-checkbox-group",o),css:a,isDisabled:l.groupState.isDisabled,size:l.size,children:[i&&(0,zt.jsx)("label",{className:"nextui-checkbox-group-label",...l.labelProps,children:i}),(0,zt.jsx)(ql,{className:"nextui-checkbox-group-items",isRow:"horizontal"===l.orientation,role:"presentation",children:(0,zt.jsx)(Fl,{value:l,children:r})})]})}));Zl.toString=()=>".nextui-checkbox-group";const Jl=Zl;Xl.Group=Jl;const Ql=Xl,ec=je("code",{}),tc=je("pre",{width:"initial",mw:"100"}),rc=({block:e,children:t,...r})=>e?(0,zt.jsx)(tc,{...r,children:(0,zt.jsx)(ec,{children:t})}):(0,zt.jsx)(ec,{...r,children:t});rc.toString=()=>".nextui-code";const oc=Et(h().memo(rc),{block:!1}),nc=je("div",{float:"left",boxSizing:"border-box",pl:"calc($$rowGap / 2)",pr:"calc($$rowGap / 2)"}),ic=nc,sc=({children:e,span:t,offset:r,css:o,...n})=>(0,zt.jsx)(ic,{css:{width:100/12*t+"%",marginLeft:100/12*r+"%",...o},...n,children:e});sc.toString=()=>".nextui-column";const ac=Et(h().memo(sc),{span:12,offset:0}),lc=je("div",{p:0,m:0,h:0,opacity:0,overflow:"hidden",variants:{expanded:{true:{opacity:1}}}}),cc=Et((({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]=f(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,zt.jsx)(lc,{css:{height:a?i:"0",transition:r?`height ${t}ms ease 0ms,\n opacity ${1.5*t}ms ease 0ms;`:"none",...o},expanded:a,children:(0,zt.jsx)("div",{ref:c,className:"nextui-expand-content",children:n})})}),{isExpanded:!1,animated:!0,delay:200}),dc={values:[]},uc=h().createContext(dc),pc=je("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"}},No),gc=je("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}}}}},Bo),hc=je("div",{fontSize:"$base",lineHeight:"$lg",pb:"$lg","*:first-child":{mt:0},"*:last-child":{mb:0}}),mc=je("svg",{path:{stroke:"$accents7"}}),$c=je("div",{width:"auto",padding:"0 $sm","div + div":{borderTop:"none"},[`& ${pc}:first-child`]:{borderTop:"none"},[`& ${pc}: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:{[`& ${pc}`]:{br:"$lg",border:"none",bg:"$backgroundContrast",boxShadow:"$md",p:"0 $lg",margin:"$md 0"}}}},defaultVariants:{borderWeight:"light",shadow:!1,bordered:!1,splitted:!1}}),fc=({...e})=>(0,zt.jsx)(mc,{className:"nextui-collapse-icon",fill:"none",focusable:"false",height:"20",role:"presentation",viewBox:"0 0 24 24",width:"20",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,zt.jsx)("path",{d:"M15.5 19l-7-7 7-7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})});fc.toString=()=>".nextui-collapse-icon";const bc=h().memo(fc),yc="nextui-collapse",vc=({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:$,animated:f,borderWeight:b,index:y,...v})=>{const[x,w,S]=m(o),{values:C,divider:k,animated:P,updateValues:T}=h().useContext(uc),{isFocusVisible:E,focusProps:M}=Pn();t||((e,t)=>{const r=`[Next UI]${t?` [${t}]`:" "}: ${e}`;"undefined"!=typeof console&&(ct[r]||(ct[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 I=Ln(),z=Ln(),L=(0,g.useMemo)((()=>l?a||(0,zt.jsx)(bc,{}):null),[a,l]),N=void 0===k?s:k,B=(0,g.useMemo)((()=>void 0===P?f:P),[P,f]),R=e=>{if(c)return;const t=!S.current;w(t),T&&T(y,t),d&&d(e,y,t)},{bindings:H}=yt((e=>{R(e)}),[ft.Enter,ft.Space],{disableGlobalEvent:!0,preventDefault:$}),A=(0,g.useMemo)((()=>x?"open":"closed"),[x]);return(0,zt.jsxs)(pc,{animated:B,borderWeight:b,bordered:u,className:It(i,yc,`${yc}--${A}`),"data-state":A,divider:N,shadow:n,tabIndex:-1,visible:x,...v,children:[(0,zt.jsx)(gc,{"aria-controls":z,"aria-disabled":c,"aria-expanded":x,className:`${yc}-view`,"data-state":A,disabled:c,id:I,isFocusVisible:E,role:"button",tabIndex:c?-1:0,onClick:R,...M,...H,children:(0,zt.jsxs)("div",{className:It(`${yc}-title-container`),children:[p&&(0,zt.jsx)("div",{className:`${yc}-title-content-left`,children:p}),(0,zt.jsxs)("div",{className:`${yc}-title-content`,children:[h().isValidElement(t)?t:(0,zt.jsx)("h3",{className:`${yc}-title`,children:t}),r&&(0,zt.jsx)("div",{className:`${yc}-subtitle`,children:r})]}),(0,zt.jsx)("div",{className:`${yc}-title-content-right`,children:L})]})}),(0,zt.jsx)(cc,{animated:B,isExpanded:x,children:(0,zt.jsx)(hc,{"aria-labelledby":I,className:`${yc}-content`,id:z,role:"region",tabIndex:-1,children:e})})]})};vc.toString=()=>".nextui-collapse";const xc=Et(vc,{shadow:!1,divider:!0,bordered:!1,showArrow:!0,animated:!0,disabled:!1,preventDefault:!0,expanded:!1}),wc=({children:e,accordion:t,animated:r,divider:o,onChange:n,...i})=>{const[s,a,l]=m([]),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===h().Children.count(e))return[];const r=0===t.length,o=(e,t={})=>h().cloneElement(e,t);let n=0;return h().Children.map(e,(e=>{if(!h().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,[xc])),[e]);return(0,zt.jsx)(uc.Provider,{value:d,children:(0,zt.jsx)($c,{...i,children:u})})};wc.toString=()=>".nextui-collapse-group";const Sc=Et(wc,{accordion:!0});xc.Group=Sc;const Cc=xc,kc=je("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}}),Pc=kc,Tc=h().forwardRef(((e,t)=>{const{xs:r,sm:o,md:n,lg:i,xl:s,wrap:a,gap:l,as:c,display:d,justify:u,direction:p,alignItems:h,alignContent:m,children:$,responsive:f,fluid:b,css:y,...v}=e,x=Kn(t),w=(0,g.useMemo)((()=>`calc(${l} * $space$sm)`),[l]);return(0,zt.jsx)(Pc,{ref:x,as:c,css:{px:w,maxWidth:r?"$breakpoints$xs":o?"$breakpoints$sm":n?"$breakpoints$md":i?"$breakpoints$lg":s?"$breakpoints$xl":"",alignItems:h,alignContent:m,flexWrap:a,display:d,justifyContent:u,flexDirection:p,...y},fluid:b,responsive:f,...v,children:$})}));Tc.displayName="NextUI.Container",Tc.toString=()=>".nextui-container",Tc.defaultProps={gap:2,xs:!1,sm:!1,md:!1,lg:!1,xl:!1,responsive:!0,fluid:!1,wrap:"wrap",as:"div",display:"block"};const Ec=h().memo(Tc),Mc=je("div",{}),Ic=je("div",{margin:0,boxSizing:"border-box",padding:"$$gridGapUnit"}),zc=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"}},Lc=h().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,zt.jsx)(Ic,{ref:h,className:It("nextui-grid-item",m,u),css:{alignItems:l,alignContent:c,justifyContent:s,flexDirection:a,"&.xs":{...zc(e)},"@xsMax":{"&.xs":{...zc(e)}},"@sm":{"&.sm":{...zc(t)}},"@md":{"&.md":{...zc(r)}},"@lg":{"&.lg":{...zc(o)}},"@xl":{"&.xl":{...zc(n)}},...i},...p,children:d})}));Lc.displayName="NextUI.GridItem",Lc.toString=()=>".nextui-grid-item";const Nc=Et(Lc,{xs:!1,sm:!1,md:!1,lg:!1,xl:!1,className:""}),Bc=h().forwardRef((({children:e,css:t,...r},o)=>(0,zt.jsx)(Nc,{ref:o,css:t,...r,children:e})));Bc.displayName="NextUI.Grid",Bc.toString=()=>".nextui-grid";const Rc=Bc,Hc=h().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,zt.jsx)(Nc,{ref:s,className:It("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})}));Hc.displayName="NextUI.GridContainer",Hc.toString=()=>".nextui-grid-container";const Ac=Et(Hc,{gap:0,wrap:"wrap",className:""});Rc.Container=Ac;const Fc=Rc,Kc=je("span",{size:"1px",variants:{inline:{true:{display:"inline-block"},false:{display:"block"}}},defaultVariants:{inline:!1}}),Wc=({x:e,y:t,css:r,...o})=>{const n=_a(e),i=_a(t);return(0,zt.jsx)(Kc,{"aria-hidden":"true",css:{marginLeft:`${n} !important`,marginTop:`${i} !important`,...r},...o})};Wc.toString=()=>".nextui-spacer";const Dc=Et(h().memo(Wc),{x:1,y:1}),jc=({children:e,onExited:t,onEntered:r,className:o,childrenRef:n,enterTime:i=60,leaveTime:s=60,clearTime:a=60,visible:l=!1,name:c="transition",...d})=>{const[u,p]=(0,g.useState)(""),[m,$]=(0,g.useState)(l);return(0,g.useLayoutEffect)((()=>{const e=l?"enter":"leave";l&&!m&&$(!0),p(`${c}-${e}`);const o=l?i:s,n=setTimeout((()=>{p(`${c}-${e} ${c}-${e}-active`),"leave"===e?null==t||t():null==r||r(),clearTimeout(n)}),o),d=setTimeout((()=>{l||(p(""),$(!1)),clearTimeout(d)}),o+a);return()=>{clearTimeout(n),clearTimeout(d)}}),[l,m]),(0,g.useEffect)((()=>{if(null==n||!n.current)return;const e=u.split(" "),t=n.current.className.split(" ").filter((e=>!e.includes(c)));n.current.className=It(t,e)}),[n,u]),h().isValidElement(e)&&m?h().cloneElement(e,{...d,className:It(e.props.className,o,!(null!=n&&n.current)&&u)}):null},Oc=h().memo(jc),Vc=je("div",{width:"max-content",display:"inherit"}),Uc=je("span",{display:"none",content:"",size:"$5",zIndex:"-2",background:"$$tooltipColor",br:"0px 0px 2px 0px",position:"absolute"}),Gc=je("div",{position:"relative",fs:"$sm",padding:0,variants:{hideArrow:{false:{[`& ${Uc}`]:{display:"block"}}}}}),_c=je("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"}}),qc={top:-1e3,left:-1e3,right:-1e3,bottom:-1e3,width:0,height:0},Yc={top:"-1000px",left:"-1000px",transform:"none"},Xc="nextui-tooltip",Zc=({children:e,parent:t,visible:r,offset:o,placement:n,rounded:i,animated:s,className:a,hideArrow:l,css:c,...d})=>{const u=ot("tooltip"),p=(0,g.useRef)(null),[h,m]=(0,g.useState)(Yc);if(!t)return null;const $=()=>{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 qc;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:f,top:y,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]);b($),pt((()=>$())),(0,g.useEffect)((()=>{$()}),[r]);const S=(0,g.useMemo)((()=>r?"open":"closed"),[r]);return u?(0,Jr.createPortal)((0,zt.jsx)(Oc,{enterTime:20,leaveTime:20,name:`${Xc}-wrapper`,visible:r,children:(0,zt.jsx)(_c,{ref:p,animated:s,className:It(`${Xc}-content`,`${Xc}--${S}`,a),css:{left:h.left,top:`calc(${h.top} + 6px)`,transform:h.transform,[`&.${Xc}-wrapper-enter-active`]:{opacity:1,top:h.top},...c},"data-state":S,onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},...d,children:(0,zt.jsxs)(Gc,{className:It(Xc,{[`${Xc}--with-arrow`]:!l}),"data-state":S,hideArrow:l,role:"tooltip",children:[(0,zt.jsx)(Uc,{className:`${Xc}-arrow`,css:{left:v,top:y,right:x,bottom:w,transform:f}}),e]})})}),u):null};Zc.toString=()=>".nextui-tooltip-content";const Jc=Et(Zc,{placement:"top",offset:12,className:""}),Qc=({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:$,hideArrow:f,css:b,triggerCss:y,onClick:v,keepMounted:x,visible:w,isDisabled:S,...C})=>{const k=(0,g.useRef)(),P=(0,g.useRef)(null),[T,E]=(0,g.useState)(t),M={animated:d,visible:T,css:b,shadow:u,offset:o,placement:n,rounded:c,color:h,contentColor:m,hideArrow:f,parent:P,className:i},I=e=>{const t=()=>{clearTimeout(k.current),k.current=void 0},r=e=>{E(e),$(e),t()};t(),k.current=e?window.setTimeout((()=>r(!0)),s):window.setTimeout((()=>r(!1)),a)},z=e=>{"hover"===l&&I(e)};return lt(P,(()=>"click"===l&&!x&&I(!1))),(0,g.useEffect)((()=>{void 0!==w&&I(w)}),[w]),(0,zt.jsxs)(Vc,{ref:P,className:`nextui-tooltip-button ${p}`,css:y,role:"button",tabIndex:-1,onBlur:()=>z(!1),onClickCapture:()=>{"click"===l&&I(!T),null==v||v()},onFocus:()=>z(!0),onKeyUp:()=>z(!0),onMouseEnter:()=>z(!0),onMouseLeave:()=>z(!1),...C,children:[e,r&&!S?(0,zt.jsx)(Jc,{...M,children:r}):null]})};Qc.toString=()=>".nextui-tooltip";const ed=Et(Qc,{initialVisible:!1,hideArrow:!1,animated:!0,shadow:!0,rounded:!1,keepMounted:!1,isDisabled:!1,trigger:"hover",enterDelay:0,leaveDelay:0,className:"",portalClassName:"",onVisibleChange:()=>{}}),td=je("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}}),rd=je("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%"}}}}),od=je("svg",{}),nd=je("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"},[`& ${od}`]:{path:{fill:"$accents6"}}},No),id=({size:e,fill:t,width:r,height:o,...n})=>(0,zt.jsx)(od,{height:e||o,viewBox:"0 0 24 24",width:e||r,xmlns:"http://www.w3.org/2000/svg",...n,children:(0,zt.jsx)("path",{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",fill:t})});id.toString=()=>".nextui-snippet-copy-icon";const sd=Et(g.memo(id),{width:18,height:18}),ad=({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}=ut(),h=(0,g.useRef)(null),m=n&&Array.isArray(n),$=(0,g.useMemo)((()=>"prevent"!==l),[l]),f=(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]),b=(0,g.useMemo)((()=>{const e=r.trim();return e?`${e} `:""}),[r]),y=()=>{f&&$&&(p(f),"slient"!==l&&u(!0))};return(0,zt.jsxs)(td,{...c,children:[m?n.map(((e,t)=>(0,zt.jsx)(rd,{className:"nextui-snippet-pre",css:{"&:before":{content:b,us:"none"}},children:e},`${t}-${e}`))):(0,zt.jsx)(rd,{ref:h,className:"nextui-snippet-pre",css:{"&:before":{content:b,us:"none"}},children:t||n}),$&&"slient"!==l?(0,zt.jsx)(ed,{hideArrow:!0,rounded:!0,color:a,content:d?s:i,onVisibleChange:()=>{setTimeout((()=>{d&&u(!1)}),400)},children:(0,zt.jsx)(nd,{className:"nextui-snippet-copy-button",onClick:y,children:(0,zt.jsx)(sd,{})})}):"prevent"!==l&&(0,zt.jsx)(nd,{className:"nextui-snippet-copy-button",onClick:y,children:(0,zt.jsx)(sd,{})})]})};ad.toString=()=>".nextui-snippet";const ld=Et(h().memo(ad),{symbol:"$",showTooltip:!0,copy:"default",tooltipColor:"default",tooltipCopyText:"Copy",tooltipCopiedText:"Copied"}),cd=je("div",{display:"flex",position:"relative",boxSizing:"border-box",variants:{fluid:{true:{width:"100%"}}},defaultVariants:{fluid:!0}}),dd=cd,ud=({children:e,gap:t,justify:r,align:o,wrap:n,css:i,...s})=>(0,zt.jsx)(dd,{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});ud.toString=()=>".nextui-row";const pd=Et(h().memo(ud),{gap:0,wrap:"nowrap",justify:"flex-start",align:"flex-start"}),gd=je("svg",{ml:"$1",as:"center",display:"flex",color:"currentColor"}),hd=je("a",{$$linkColor:"$colors$link",display:"inline-flex",alignItems:"center",lineHeight:"inherit",textDecoration:"none",width:"$fit",backgroundColor:"transparent",backgroundImage:"inherit",backgroundClip:"inherit",WebkitTextFillColor:"inherit",color:"$$linkColor",outline:"none",maxW:"$max","&:hover":{opacity:.8},"@motion":{transition:"none"},variants:{color:{inherit:{$$linkColor:"inherit"},default:{$$linkColor:"$colors$link"},text:{$$linkColor:"$colors$text"},primary:{$$linkColor:"$colors$primary"},secondary:{$$linkColor:"$colors$secondary"},success:{$$linkColor:"$colors$success"},warning:{$$linkColor:"$colors$warning"},error:{$$linkColor:"$colors$error"}},underline:{true:{"&:hover, &:active, &:focus":{textDecoration:"underline"}}},block:{true:{padding:"$2 $4",borderRadius:"$base","&:hover":{backgroundColor:"$$linkBackgroundColor"}}},animated:{true:{transition:"opacity 0.25s ease 0s, box-shadow 0.25s ease 0s"}}},compoundVariants:[{block:!0,animated:!0,css:{transition:"opacity 0.25s ease 0s, box-shadow 0.25s ease 0s, background 0.25s ease 0s","@motion":{transition:"none"}}}],defaultVariants:{color:"default",animated:!0}},Bo),md=hd,$d=()=>(0,zt.jsxs)(gd,{className:"nextui-link-icon",fill:"none",height:"1em",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",children:[(0,zt.jsx)("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),(0,zt.jsx)("path",{d:"M15 3h6v6"}),(0,zt.jsx)("path",{d:"M10 14L21 3"})]});$d.toString=()=>".nextui-link-icon";const fd=h().memo($d),bd=Ca(((e,t)=>{const{children:r,isExternal:o=!1,as:n,css:i,color:s="default",autoFocus:a,className:l,...c}=e,d=Kn(t),{linkProps:u}=function(e,t){let r,{elementType:o="a",onPress:n,onPressStart:i,onPressEnd:s,onClick:a,isDisabled:l,...c}=e;"a"!==o&&(r={role:"link",tabIndex:l?void 0:0});let{focusableProps:d}=Es(e,t),{pressProps:u,isPressed:p}=Ki({onPress:n,onPressStart:i,onPressEnd:s,isDisabled:l,ref:t}),g=ui(c,{labelable:!0}),h=ai(d,u);return{isPressed:p,linkProps:ai(g,{...h,...r,"aria-disabled":l||void 0,onClick:e=>{u.onClick(e),a&&(a(e),console.warn("onClick is deprecated, please use onPress"))}})}}({...c,elementType:n},d),{isFocusVisible:p,focusProps:h}=Pn({autoFocus:a}),m=(0,g.useMemo)((()=>{let e=`$colors$${s}Light`;switch(s){case"inherit":case"text":e="$colors$textLight";break;case"default":e="$colors$linkLight"}return{...i,$$linkBackgroundColor:e}}),[i,s]);return(0,zt.jsx)(md,{ref:d,as:n,className:It("nextui-link",l),color:s,css:m,isFocusVisible:p,...Rn(u,h,c),children:(0,zt.jsxs)(zt.Fragment,{children:[r,o&&(0,zt.jsx)(fd,{})]})})}));bd.toString=()=>".nextui-link";const yd=bd,vd=Ue({"0%":{opacity:"0.2"},"20%":{opacity:1},"100%":{opacity:"0.2"}}),xd=Ue({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),wd=Ue({"0%":{transform:"translate(0px, 0px)"},"50%":{transform:"translate(0, calc(-$$loadingSize * 1.4))"},"100%":{transform:"translate(0px, 0px)"}}),Sd=Ue({"0%":{opacity:1},"100%":{opacity:.15}}),Cd=je("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"}}),kd=je("div",{size:"100%",position:"relative",left:"50%",top:"50%"}),Pd=je("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"}}}}),Td=je("span",{bg:"$$loadingColor",position:"absolute",top:"-3.9%",width:"24%",height:"8%",left:"-10%",br:"$lg",animation:`${Sd} 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%)"}}),Ed=je("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:`${xd} 0.8s ease infinite`},"._2":{border:"$$loadingBorder dotted $$loadingColor",borderTop:"$$loadingBorder solid transparent",borderLeft:"$$loadingBorder solid transparent",borderRight:"$$loadingBorder solid transparent",animation:`${xd} 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:`${wd} 0.75s ease infinite`},"._2":{br:"$rounded",animation:`${wd} 0.75s ease infinite 0.25s`},"._3":{br:"$rounded",animation:`${wd} 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:`${vd} 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:`${xd} 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"}}),Md=je("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"}}}}),Id=({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,zt.jsxs)(Pd,{className:It("nextui-spinner",n),color:r,size:t,...i,children:[(0,zt.jsx)(kd,{"aria-label":a,className:"nextui-spinner-container",children:[...new Array(12)].map(((e,t)=>(0,zt.jsx)(Td,{},`nextui-spinner-${t}`)))}),e&&(0,zt.jsx)(Md,{color:o,size:t,children:e})]})};Id.toString=()=>".nextui-spinner";const zd=Id,Ld="nextui-loading",Nd=({children:e,size:t,gradientBackground:r,loadingCss:o,type:n,...i})=>{const s=e?"":"Loading",a=(0,g.useMemo)((()=>{if("gradient"===n)return{"._2":{bg:r}}}),[n]);return(0,zt.jsx)(Cd,{...i,children:"spinner"===n?(0,zt.jsx)(zd,{size:t,children:e}):(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.jsxs)(Ed,{"aria-label":s,className:`${Ld} ${Ld}-${n}`,css:{...o,...a},size:t,type:n,children:[(0,zt.jsx)("i",{className:"_1"}),(0,zt.jsx)("i",{className:"_2"}),(0,zt.jsx)("i",{className:"_3"})]}),e&&(0,zt.jsx)(Md,{className:`${Ld}-label`,size:t,children:e})]})})};Nd.toString=()=>".nextui-loading";const Bd=Et(h().memo(Nd),{size:"md",type:"default"}),Rd=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Hd=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Ad(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return Rd.has(t)}let t=e.split("-")[0];return Hd.has(t)}function Fd(){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:Ad(e)?"rtl":"ltr"}}let Kd=Fd(),Wd=new Set;function Dd(){Kd=Fd();for(let e of Wd)e(Kd)}function jd(){let e=function(){let e=(0,g.useContext)(Qn)!==Jn,[t,r]=(0,g.useState)(e);return"undefined"!=typeof window&&e&&(0,g.useLayoutEffect)((()=>{r(!1)}),[]),t}(),[t,r]=(0,g.useState)(Kd);return(0,g.useEffect)((()=>(0===Wd.size&&window.addEventListener("languagechange",Dd),Wd.add(r),()=>{Wd.delete(r),0===Wd.size&&window.removeEventListener("languagechange",Dd)})),[]),e?{locale:"en-US",direction:"ltr"}:t}const Od=h().createContext(null);function Vd(){let e=jd();return(0,g.useContext)(Od)||e}const Ud=new WeakMap;function Gd(e){let{locale:t}=Vd(),r=(0,g.useMemo)((()=>function(e){let t=Ud.get(e);return t||(t=new Sr(e),Ud.set(e,t)),t}(e)),[e]);return(0,g.useMemo)((()=>new Pr(t,r)),[t,r])}let _d=new Map;function qd(e){let{locale:t}=Vd(),r=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(_d.has(r))return _d.get(r);let o=new Intl.Collator(t,e);return _d.set(r,o),o}const Yd=new WeakMap,Xd=new WeakMap,Zd=new WeakMap;const[Jd,Qd]=Al({name:"RadioGroupContext",strict:!0,errorMessage:"useRadioGroupContext: `context` is undefined. Seems you forgot to wrap all checkbox components within `<Radio.Group />`"}),eu=je("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"}}}}),tu=je("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"}},Bo),ru=je("label",{d:"flex",w:"initial",ai:"flex-start",position:"relative",fd:"column",jc:"flex-start",cursor:"pointer","@motion":{[`& ${tu}`]:{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",[`& ${tu}`]:{"&:after":{borderColor:"$colors$error"}}}},isDisabled:{true:{cursor:"not-allowed",$$radioColor:"$colors$accents4"}},isSquared:{true:{$$radioRadii:"$radii$squared"},false:{$$radioRadii:"$radii$rounded"}},isChecked:{true:{[`& ${tu}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColor"}}}},disableAnimation:{true:{[`& ${tu}`]:{transition:"none","&:after":{transition:"none"}}},false:{[`& ${tu}`]:{transition:"$default","&:after":{transition:"$default"}}}}},defaultVariants:{size:"md",isSquared:!1,disableAnimation:!1},compoundVariants:[{isChecked:!0,isHovered:!0,css:{[`& ${tu}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColorHover"}}}},{isChecked:!0,isDisabled:!0,isHovered:!0,css:{[`& ${tu}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColor"}}}},{isChecked:!1,isDisabled:!1,isHovered:!0,css:{[`& ${tu}`]:{bg:"$border"}}}]}),ou=je("span",{color:"$accents7",fontSize:"calc($$radioSize * 0.85)",paddingLeft:"calc($$radioSize + $$radioSize * 0.375)",variants:{isInvalid:{true:{color:"$red500"}},isDisabled:{true:{color:"$accents5"}}}}),nu=je("div",{w:"initial",position:"relative",d:"flex",fd:"row",ai:"center",jc:"flex-start"}),iu=je("label",{d:"block",fontWeight:"$normal",fontSize:"calc($$checkboxSize * 0.9)",color:"$accents8",mb:"$3"}),su=je("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"}}}}),au=je("div",{display:"flex",flexDirection:"column",variants:{isRow:{true:{mt:0,flexDirection:"row",[`& ${ru}:not(:last-child)`]:{mr:"$$radioSize"}},false:{mr:0,flexDirection:"column",[`& ${ru}:not(:first-child)`]:{mt:"$$radioSize"}}}},defaultVariants:{isRow:!1}}),lu=h().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:$,isDisabled:f,autoFocus:b,disableAnimation:y,hoverProps:v,inputProps:x,isRequired:w}=(e=>{var t,r,o;const n=Qd(),{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,isDisabled:d=!1,disableAnimation:u=!1,...p}=e,h=(0,g.useRef)(null),{inputProps:m}=function(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}=Ki({isDisabled:a}),{focusableProps:d}=Es(ai(e,{onFocus:()=>t.setLastFocusedValue(o)}),r),u=ai(c,d),p=ui(e,{labelable:!0}),g=t.lastFocusedValue===o||null==t.lastFocusedValue?0:-1;return a&&(g=void 0),{inputProps:ai(p,{...u,type:"radio",name:Yd.get(t),tabIndex:g,disabled:a,checked:l,value:o,onChange:e=>{e.stopPropagation(),t.setSelectedValue(o)},"aria-describedby":["invalid"===t.validationState?Zd.get(t):null,Xd.get(t)].filter(Boolean).join(" ")||void 0}),isDisabled:a,isSelected:l}}({...p,...n,isDisabled:d},n.radioGroupState,h),$=(0,g.useMemo)((()=>{var e;return null!=(e=m.disabled)&&e}),[m.disabled]),{hoverProps:f,isHovered:b}=Sa({isDisabled:$});return{size:i,color:s,inputRef:h,autoFocus:l,isDisabled:$,labelColor:a,isInvalid:(0,g.useMemo)((()=>"invalid"===n.validationState),[n.validationState]),isHovered:b,isSquared:c,isRequired:(0,g.useMemo)((()=>{var e;return null!=(e=n.isRequired)&&e}),[n.isRequired]),disableAnimation:u,inputProps:m,hoverProps:f}})({...l,children:null!=i?i:s}),S=Wn(t,u),{focusProps:C,isFocusVisible:k}=Pn({autoFocus:b}),P=(0,g.useMemo)((()=>h?"is-hovered":f?"is-disabled":x.checked?"checked":"uncheked"),[f,x.checked,h]);return(0,zt.jsxs)(ru,{ref:S,...v,as:o,className:It("nextui-radio-label",`nextui-radio--${P}`,r),color:d,css:n,"data-state":P,disableAnimation:y,isChecked:x.checked,isDisabled:f,isHovered:h,isInvalid:$,isSquared:m,size:c,children:[(0,zt.jsxs)(nu,{className:"nextui-radio-container",children:[(0,zt.jsx)(tu,{className:"nextui-radio-point",isFocusVisible:k,...C,children:(0,zt.jsx)(Ml,{children:(0,zt.jsx)("input",{ref:u,className:"nextui-radio-input",required:w,...Rn(x,C)})})}),(0,zt.jsx)(eu,{className:"nextui-radio-text",color:p,isDisabled:f,isInvalid:$,children:i})]}),a&&(0,zt.jsx)(ou,{className:"nextui-radio-description",isDisabled:f,isInvalid:$,children:a})]})}));lu.toString=()=>".nextui-radio";const cu=lu;let du=Math.round(1e10*Math.random()),uu=0;const pu=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,isRequired:i,orientation:n})),[a]),c=function(e){let t=(0,g.useMemo)((()=>e.name||`radio-group-${du}-${++uu}`),[e.name]),[r,o]=Il(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,validationState:e.validationState}}(l),{radioGroupProps:d,labelProps:u}=function(e,t){let{name:r,validationState:o,isReadOnly:n,isRequired:i,isDisabled:s,orientation:a="vertical"}=e,{direction:l}=Vd(),{labelProps:c,fieldProps:d,descriptionProps:u,errorMessageProps:p}=Ll({...e,labelElementType:"span"});Xd.set(t,u.id),Zd.set(t,p.id);let h=ui(e,{labelable:!0}),{focusWithinProps:m}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:n}=e,i=(0,g.useRef)({isFocusWithin:!1}),s=(0,g.useCallback)((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,r&&r(e),n&&n(!1))}),[r,n,i]),a=Xi(s),l=(0,g.useCallback)((e=>{i.current.isFocusWithin||(o&&o(e),n&&n(!0),i.current.isFocusWithin=!0,a(e))}),[o,n,a]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:l,onBlur:s}}}({onBlurWithin(){t.selectedValue||t.setLastFocusedValue(null)}}),$=oi(r);return Yd.set(t,$),{radioGroupProps:ai(h,{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=Cs(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,...m}),labelProps:c,descriptionProps:u,errorMessageProps:p}}(l,c);return{size:t,color:r,orientation:n,labelColor:o,isRequired:i,validationState:s,radioGroupState:c,radioGroupProps:d,labelProps:u}},gu=h().forwardRef(((e,t)=>{const{as:r,css:o,className:n,children:i,label:s,...a}=e,l=pu({...a,label:s}),c=Kn(t);return(0,zt.jsxs)(su,{ref:c,as:r,className:It("nextui-radio-group",n),css:o,size:l.size,...l.radioGroupProps,children:[s&&(0,zt.jsx)(iu,{className:"nextui-radio-group-label",...l.labelProps,children:s}),(0,zt.jsx)(au,{className:"nextui-radio-group-items",isRow:"horizontal"===l.orientation,role:"presentation",children:(0,zt.jsx)(Jd,{value:l,children:i})})]})}));gu.toString=()=>".nextui-radio-group";const hu=gu;cu.Group=hu;const mu=cu,$u=je("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"}}}},Ko),fu=h().forwardRef(((e,r)=>{const{children:o,tag:n,color:i="default",transform:s,size:a,css:l,...c}=e,d=Kn(r),u=(0,g.useMemo)((()=>(e=>null!=t.find((t=>t===e)))(i)?"default"===i?"$text":`$${i}`:i),[i]);return(0,zt.jsx)($u,{ref:d,as:n,css:{color:u,fontSize:a,tt:s,...l},...c,children:o})}));fu.toString=()=>".nextui-text-child";const bu=h().memo(fu),yu=(e,t,r,o)=>{if(!e.length)return t;const n=e.slice(1,e.length);return(0,zt.jsx)(bu,{size:r,tag:e[0],transform:o,children:yu(n,t,r)})},vu=h().forwardRef(((e,t)=>{const{h1:r=!1,h2:o=!1,h3:n=!1,h4:i=!1,h5:s=!1,h6:a=!1,b:l=!1,small:c=!1,i:d=!1,span:u=!1,del:p=!1,em:h=!1,blockquote:m=!1,transform:$="none",size:f,children:b,...y}=e,v=Kn(t),x={h1:r,h2:o,h3:n,h4:i,h5:s,h6:a,blockquote:m},w={span:u,small:c,b:l,em:h,i:d,del:p},S=Object.keys(x).filter((e=>x[e])),C=Object.keys(w).filter((e=>w[e])),k=(0,g.useMemo)((()=>S[0]?S[0]:C[0]?C[0]:"p"),[S,C]),P=C.filter((e=>e!==k)),T=(0,g.useMemo)((()=>P.length?yu(P,b,f,$):b),[P,b,f,$]);return(0,zt.jsx)(bu,{ref:v,size:f,tag:k,transform:$,...y,children:T})}));vu.toString=()=>".nextui-text";const xu=h().memo(vu),wu=je("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"}}),Su=je("span",{position:"absolute",display:"flex",size:"calc($$switchHeight * 0.7)",jc:"center",ai:"center",top:"calc(50% - $$switchHeight * 0.35)",left:"0",transition:"transform 0.25s ease, width 0.2s ease",bg:"$background",br:"$pill","& svg":{bg:"transparent",size:"calc($$switchHeight * 0.44)"},"@motion":{transition:"none"}}),Cu=je("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","&:hover:not(&:active)":{bg:"$$switchColorHover"}}},bordered:{true:{bg:"transparent",border:"$$switchBorderW solid $border","&:hover":{borderColor:"$$switchColor"},[`& ${Su}`]:{bg:"$accents2"}}},squared:{true:{br:"2px",[`& ${Su}`]:{br:"2px"}}},shadow:{true:{}},disabled:{true:{borderColor:"$accents2",bg:"$accents2",[`& ${Su}`]:{bg:"$accents4"}}},animated:{true:{"&:active":{[`& ${Su}`]:{width:"calc($$switchHeight * 0.7 + ($$switchWidth / 10))"}}},false:{transition:"none",[`& ${Su}`]:{transition:"none"}}}},compoundVariants:[{checked:!0,disabled:!0,css:{bg:"$accents3",[`& ${Su}`]:{bg:"$accents0"},"&:hover:not(&:active)":{bg:"$accents4"}}},{shadow:!0,checked:!0,css:{normalShadowVar:"$$switchColorShadow"}},{checked:!0,bordered:!0,css:{bg:"$$switchColor",border:"$$switchBorderW solid transparent","&:hover:not(&:active)":{borderColor:"transparent"},[`& ${Su}`]:{bg:"$background"}}}]},No),ku=je("input",{[`& + ${Cu} > ${Su}`]:{transform:"translateX(calc($$switchWidth / 15))"},[`&:checked + ${Cu} > ${Su}`]:{transform:"translateX(calc($$switchWidth - $$switchWidth / 15 - $$switchHeight * 0.7))"},variants:{animated:{true:{[`& + ${Cu}:active > ${Su}`]:{transform:"translateX(calc($$switchWidth / 7.5))"},[`&:checked + ${Cu}:active > ${Su}`]:{transform:"translateX(calc($$switchWidth - $$switchWidth / 7.5 - $$switchWidth / 10 - $$switchHeight * 0.7))"}}},bordered:{true:{[`& + ${Cu} > ${Su}`]:{transform:"translateX(calc($$switchWidth / 15 - $$switchBorderW / 2))"},[`&:checked + ${Cu} > ${Su}`]:{transform:"translateX(calc($$switchWidth - $$switchWidth / 15 - $$switchBorderW * 1.5 - $$switchHeight * 0.7))"}}}},compoundVariants:[{animated:!0,bordered:!0,css:{[`& + ${Cu}:active > ${Su}`]:{transform:"translateX(calc($$switchWidth / 7.5 - $$switchBorderW / 2))"},[`&:checked + ${Cu}:active > ${Su}`]:{transform:"translateX(calc($$switchWidth - $$switchWidth / 7.5 - $$switchWidth / 10 - $$switchBorderW * 1.5 - $$switchHeight * 0.7))"}}}]},Ho),Pu="nextui-switch",Tu=({initialChecked:e,checked:t,disabled:r,onChange:o,squared:n,bordered:i,shadow:s,icon:a,iconOn:l,iconOff:c,animated:d,preventDefault:u,name:p,...h})=>{const[m,$]=(0,g.useState)(e),f=(0,g.useCallback)((e=>{if(r)return;const t={target:{checked:!m},stopPropagation:e.stopPropagation,preventDefault:e.preventDefault,nativeEvent:e};$(!m),o&&o(t)}),[r,m,o]),{bindings:b}=yt((e=>{f(e)}),[ft.Enter,ft.Space],{disableGlobalEvent:!0,preventDefault:u}),y=(0,g.useMemo)((()=>{const e=a||l||c,t=Boolean(l),r=Boolean(c);return e?t&&m?l:r&&!m?c:e:null}),[m,a,l,c]);(0,g.useEffect)((()=>{void 0!==t&&$(t)}),[t]);const v=(0,g.useMemo)((()=>m?"checked":"unchecked"),[m]);return(0,zt.jsxs)(wu,{animated:d,"data-state":v,disabled:r,...h,children:[(0,zt.jsx)(ku,{animated:d,bordered:i,checked:m,className:It(`${Pu}-input`),"data-state":v,disabled:r,tabIndex:-1,type:"checkbox",onChange:f,name:p}),(0,zt.jsx)(Cu,{animated:d,"aria-checked":m,"aria-disabled":r,bordered:i,checked:m,className:It(Pu,`${Pu}--${v}`,{[`${Pu}-checked`]:m,[`${Pu}-disabled`]:r}),"data-state":v,disabled:r,role:"switch",shadow:s,squared:n,tabIndex:r?-1:0,...b,children:(0,zt.jsx)(Su,{className:`${Pu}-circle`,children:y})})]})};Tu.toString=()=>".nextui-switch";const Eu=Et(h().memo(Tu),{disabled:!1,bordered:!1,shadow:!1,squared:!1,animated:!0,preventDefault:!0,initialChecked:!1}),Mu=Ue({"0%":{opacity:0},"60%":{opacity:.75},"100%":{opacity:1}}),Iu=Ue({"0%":{opacity:0}}),zu=Ue({"0%":{backdropFilter:"saturate(0%) blur(0)"}}),Lu=je("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:Mu,animationDuration:"200ms",animationTimingFunction:"ease-in",animationDirection:"normal"}},false:{transition:"none"}}}}),Nu=je("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","@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none))":{opacity:1,backdropFilter:"saturate(180%) blur(20px)",animationName:`${zu}, ${Iu}`,bg:"rgba(0, 0, 0, 0.1)"}},false:{bg:"$black",opacity:"$$backdropOpacity",animationName:`${Iu}`,animationDuration:"0.2s",animationTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)"}},animated:{true:{animationName:`${Iu}`,animationDuration:"0.2s",animationTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)"},false:{transition:"none"}}}}),Bu=je("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",[`& ${Lu}`]:{width:"100vw",maxWidth:"100vw",height:"100vh",margin:0},[`& ${Nu}`]:{display:"none"}}}},defaultVariants:{fullScreen:!1}}),Ru="nextui-backdrop",Hu=h().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]=m(!1),$=e=>{h.current||t&&t(e)},f=(0,g.useCallback)((e=>{e.stopPropagation()}),[]),b=()=>{if(!h.current)return;const e=setTimeout((()=>{p(!1),clearTimeout(e)}),0)},{bindings:y}=yt((e=>{r&&r(e)}),[ft.Escape,ft.Space],{disableGlobalEvent:!0,preventDefault:l}),v=(0,g.useMemo)((()=>o?"open":"closed"),[o]),x=(0,g.useMemo)((()=>(0,zt.jsxs)(Bu,{"aria-hidden":!0,className:It(Ru,`${Ru}--${v}`,c),css:{$$backdropOpacity:a,...d},"data-state":v,role:"button",tabIndex:-1,onClick:$,onMouseUp:b,...y,...u,children:[(0,zt.jsx)(Nu,{animated:s,blur:i,className:It(`${Ru}-layer`,i?`${Ru}-layer-blur`:`${Ru}-layer-default`)}),(0,zt.jsx)(Lu,{animated:s,className:`${Ru}-content`,css:{maxWidth:n},onClick:f,onMouseDown:()=>p(!0),children:e})]})),[e]);return(0,zt.jsx)(zt.Fragment,{children:s?(0,zt.jsx)(Oc,{clearTime:150,enterTime:20,leaveTime:20,name:`${Ru}-wrapper`,visible:o,children:x}):o?x:null})}));Hu.toString=()=>".nextui-backdrop";const Au=Et(Hu,{onClick:()=>{},visible:!1,blur:!1,animated:!0,preventDefault:!0,opacity:.5,className:""}),Fu=je("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"}},Bo),Ku=je("div",{ml:"$sm",d:"inline-flex",fd:"column",alignItems:"flex-start",whiteSpace:"nowrap"}),Wu=je("span",{fontSize:"$sm",color:"$text",lh:"$sm",fontWeight:"$medium",maxW:"$60",to:"ellipsis",ov:"hidden"}),Du=je("span",{fontSize:"$xs",color:"$accents7","*:first-child":{mt:0},"*:last-child":{mb:0}}),ju="nextui-user",Ou=h().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:m,pointer:$,...f}=e,b=Kn(t),{isFocusVisible:y,focusProps:v}=Pn(),x=(0,g.useMemo)((()=>{if("button"===r)return{borderRadius:"$xs",background:"none",appearance:"none",p:0,m:0,outline:"none",border:"none",cursor:"pointer"}}),[r]);return(0,zt.jsxs)(Fu,{ref:b,as:r,...Rn(f,v),css:{...x,...o},isFocusVisible:y,children:[(0,zt.jsx)(Zn,{alt:l,bordered:u,className:`${ju}-avatar`,color:c,pointer:$,size:p,squared:d,src:n,text:i,zoomed:m}),(0,zt.jsxs)(Ku,{className:`${ju}-info`,children:[(0,zt.jsx)(Wu,{className:`${ju}-name`,children:s}),(0,zt.jsx)(Du,{className:`${ju}-desc`,children:h||a})]})]})}));Ou.toString=()=>".nextui-user";const Vu=Ou,Uu=h().forwardRef(((e,t)=>{const{rel:r="noopener",color:o="primary",target:n="_blank",className:i,children:s,...a}=e;return(0,zt.jsx)(yd,{ref:t,className:It("nextui-user-link",i),color:o,rel:r,target:n,...a,children:s})}));Uu.toString=()=>".nextui-user-link";const Gu=h().memo(Uu);Vu.Link=Gu;const _u=Vu,qu=Ue({"0%":{left:"-40%"},"100%":{left:"100%"}}),Yu=je("div",{margin:0,padding:0,width:"100%",position:"relative",overflow:"hidden",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"}}),Xu=je("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 ${qu}`}}}}),Zu="nextui-progress",Ju=({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,zt.jsx)(Yu,{"aria-label":"progress","aria-valuemax":t,"aria-valuemin":r,"aria-valuenow":c,css:{"nextui-progress-wrapper-enter":{opacity:0},".nextui-progress-wrapper-enter-active":{opacity:1,width:`${d}%`},...a},indeterminated:s,role:"progressbar",...l,children:(0,zt.jsx)(Oc,{visible:!0,clearTime:300,enterTime:10,leaveTime:20,name:`${Zu}-wrapper`,children:(0,zt.jsx)(Xu,{animated:n,className:It(`${Zu}-bar`,{[`${Zu}-striped`]:o,[`${Zu}-indeterminated`]:s}),indeterminated:s,shadow:i,striped:o,...l})})})};Ju.toString=()=>".nextui-progress";const Qu=Et(h().memo(Ju),{striped:!1,animated:!0,shadow:!1,indeterminated:!1,value:0,min:0,max:100}),ep=({size:e,fill:t,plain:r,width:o,height:n,className:i,...s})=>r?(0,zt.jsx)("svg",{className:i,fill:"none",height:e||n,stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:e||o,...s,children:(0,zt.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})}):(0,zt.jsx)("svg",{className:i,height:e||n,viewBox:"0 0 24 24",width:e||o,...s,children:(0,zt.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})}),tp=Et(g.memo(ep),{width:24,height:24,plain:!1,className:""}),rp=Ue({"0%":{transform:"scale(0.95)"},"40%":{transform:"scale(1.02)"},"80%":{transform:"scale(0.98)"},"100%":{transform:"scale(1)"}}),op=Ue({"0%":{opacity:0,transform:"scale(0.95)"},"60%":{opacity:.75,transform:"scale(1.02)"},"100%":{opacity:1,transform:"scale(1)"}}),np=Ue({"0%":{opacity:1,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(0.95)"}}),ip=je("div",{outline:"none",overflow:"hidden",width:0,height:0,opacity:0}),sp=je("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"}}}},No),ap=je("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}}}}}),lp=je("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}}}}}),cp=je("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"}}}}}),dp=je("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:op,animationDuration:"200ms",animationTimingFunction:"ease-in",animationDirection:"normal"},"&.nextui-modal-wrapper-leave":{animationName:np,animationDuration:"50ms",animationTimingFunction:"ease-out"},variants:{fullScreen:{true:{size:"100%",maxHeight:"100%"},false:{"&.nextui-modal-rebound":{animationDuration:"250ms",animationName:rp,animationTimingFunction:"ease",animationFillMode:"forwards"}}},scroll:{true:{maxHeight:"calc(100vh - 200px)"}},closeButton:{true:{paddingTop:"$lg",[`& ${sp}`]:{svg:{size:"$10"}}}}},compoundVariants:[{scroll:!0,fullScreen:!0,css:{maxHeight:"100%"}}]}),up=({onClick:e,...t})=>(0,zt.jsx)(sp,{"aria-label":"Close",className:"nextui-modal-close-icon",type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),e&&e(t)},...t,children:(0,zt.jsx)(tp,{plain:!0,"aria-hidden":!0,className:"nextui-modal-close-icon-svg",fill:"currentColor",size:18})});up.toString=()=>".nextui-modal-close-icon";const pp=h().memo(up),gp="nextui-modal",hp=({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 $=e=>{const t=e.keyCode===ft.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()},f=()=>{a&&a()},b=(0,g.useMemo)((()=>r?"open":"closed"),[r]),y=(0,g.useMemo)((()=>(0,zt.jsxs)(dp,{ref:d,"aria-modal":r,className:It(gp,`${gp}--${b}`,{[`${gp}-fullscreen`]:o,[`${gp}-with-close-button`]:n,[`${gp}-rebound`]:i,[`${gp}-rendered`]:h},e),closeButton:n,"data-state":b,fullScreen:o,role:"dialog",scroll:l,tabIndex:-1,...c,onKeyDown:$,children:[(0,zt.jsx)(ip,{ref:u,"aria-hidden":"true",className:`${gp}-hide-tab`,role:"button",tabIndex:0}),n&&(0,zt.jsx)(pp,{onClick:f}),t,(0,zt.jsx)(ip,{ref:p,"aria-hidden":"true",className:`${gp}-hide-tab`,role:"button",tabIndex:0})]})),[i,t]);return(0,zt.jsx)(zt.Fragment,{children:s?(0,zt.jsx)(Oc,{clearTime:300,enterTime:20,leaveTime:20,name:`${gp}-wrapper`,visible:r,children:y}):r?y:null})};hp.toString=()=>".nextui-modal-wrapper";const mp=Et(hp,{className:"",visible:!1,rebound:!1}),$p={},fp=h().createContext($p),bp=({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=ot("modal"),[,$]=at(null,{scrollLayer:!0}),[f,b,y]=m(!1),[v,x]=(0,g.useState)(!1),w=()=>{t&&t(),b(!1),$(!1)};(0,g.useEffect)((()=>{void 0!==o&&(o&&r&&r(),!o&&y.current&&t&&t(),b(o),$(o))}),[o]);const S=()=>{x(!0);const e=setTimeout((()=>{x(!1),clearTimeout(e)}),300)},{bindings:C}=yt((()=>{a?S():w()}),ft.Escape,{disableGlobalEvent:!0,preventDefault:!0}),k=(0,g.useMemo)((()=>({close:w,autoMargin:n,noPadding:u})),[]);return h?(0,Jr.createPortal)((0,zt.jsx)(fp.Provider,{value:k,children:(0,zt.jsx)(Au,{animated:c,blur:l,fullScreen:d,maxWidth:i,visible:f,onClick:()=>{a?S():w()},...C,children:(0,zt.jsx)(mp,{animated:c,className:s,fullScreen:d,rebound:v,visible:f,onCloseButtonClick:w,...p,children:e})})}),h):null};bp.toString=()=>".nextui-modal",bp.defaultProps={width:"400px",className:"",preventClose:!1,fullScreen:!1,closeButton:!1,animated:!0,blur:!1,scroll:!1,noPadding:!1};const yp=bp,vp="nextui-modal-header",xp=({children:e,className:t,justify:r,autoMargin:o,css:n,...i})=>{const{autoMargin:s,noPadding:a}=(0,g.useContext)(fp),l=(0,g.useMemo)((()=>void 0!==s?s:o),[o,s]);return(0,zt.jsx)(ap,{autoMargin:l,className:It(vp,{[`${vp}-auto-margin`]:l,[`${vp}-no-padding`]:a},t),css:{justifyContent:r,...n},noPadding:a,...i,children:e})};xp.toString=()=>".nextui-modal-header";const wp=Et(h().memo(xp),{className:"",justify:"center",autoMargin:!0}),Sp="nextui-modal-body",Cp=({className:e,children:t,autoMargin:r,...o})=>{const{autoMargin:n,noPadding:i}=(0,g.useContext)(fp),s=(0,g.useMemo)((()=>void 0!==n?n:r),[r,n]);return(0,zt.jsx)(lp,{autoMargin:s,className:It(Sp,{[`${Sp}-auto-margin`]:s,[`${Sp}-no-padding`]:i},e),noPadding:i,...o,children:t})};Cp.toString=()=>".nextui-modal-body";const kp=Et(h().memo(Cp),{className:"",autoMargin:!0}),Pp="nextui-modal-footer",Tp=({children:e,className:t,justify:r,autoMargin:o,css:n,...i})=>{const{autoMargin:s,noPadding:a}=(0,g.useContext)(fp),l=(0,g.useMemo)((()=>void 0!==s?s:o),[o,s]);return(0,zt.jsx)(cp,{autoMargin:l,className:It(Pp,{[`${Pp}-auto-margin`]:l,[`${Pp}-no-padding`]:a},t),css:{justifyContent:r,...n},noPadding:a,...i,children:e})};Tp.toString=()=>".nextui-modal-footer";const Ep=Et(h().memo(Tp),{className:"",justify:"flex-end",autoMargin:!0});yp.Header=wp,yp.Body=kp,yp.Footer=Ep;const Mp=yp,Ip=(e=!1)=>{const[t,r,o]=m(e);return{visible:t,setVisible:r,currentRef:o,bindings:{open:t,onClose:()=>r(!1)}}},zp=Ue({"0%":{transform:"scale(1)"},"60%":{transform:"scale($$paginationScaleTransform)"},"100%":{transform:"scale(1)"}}),Lp=je("svg",{color:"currentColor",stroke:"currentColor",variants:{isEllipsis:{true:{transform:"0deg"}},isBefore:{true:{}}},compoundVariants:[{isEllipsis:!0,isBefore:!0,css:{transform:"rotate(180deg)"}}]}),Np=je("svg",{transform:"rotate(180deg)",variants:{isPrev:{true:{transform:"rotate(0deg)"}}}}),Bp=je("span",{position:"relative",display:"inline-flex",alignItems:"center",top:0,left:0,zIndex:"$2"}),Rp=je("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"},[`& ${Np}`]:{size:"$$paginationFontSize"},[`& ${Lp}`]:{size:"$$paginationFontSize"},variants:{active:{true:{fontWeight:"$bold",cursor:"default",boxShadow:"$sm",[`& ${Bp}`]:{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:{[`& ${Bp}`]:{display:"none"}}},{animated:!0,disabled:!1,active:!1,css:{"&:active":{transform:"scale($$paginationScaleTransform)",fs:"calc($$paginationFontSize * 0.9)"}}}]},No),Hp=je("div",{position:"absolute",contain:"strict",top:"0px",zIndex:"$1",bg:"$$paginationColor",br:"$$paginationItemRadius",height:"$$paginationSize",minWidth:"$$paginationSize",animationName:`${zp}`,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"}}]}),Ap=je("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",[`& ${Rp}:first-of-type`]:{btlr:"$squared",bblr:"$squared"},[`& ${Rp}:last-of-type`]:{btrr:"$squared",bbrr:"$squared"}},false:{$$paginationItemMargin:"$space$1"}}},compoundVariants:[{bordered:!0,noMargin:!0,css:{[`& ${Rp}: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}}),Fp=e=>{if(e)switch(e){case xt: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`}},Kp="nextui-pagination-item",Wp=({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?`${Fp(t)} active`:Fp(t)),[t,e]);return(0,zt.jsx)(Rp,{active:e,animated:n,"aria-label":d,bordered:i,className:It(Kp,{[`${Kp}-active`]:e,[`${Kp}-animated`]:n,[`${Kp}-disabled`]:o,[`${Kp}-bordered`]:i,[`${Kp}-only-dots`]:a,[`${Kp}-preserve-content`]:l}),disabled:o,onlyDots:a,preserveContent:l,tabIndex:o?-1:0,onClick:e=>{o||s&&s(e)},...c,children:(0,zt.jsx)(Bp,{className:`${Kp}-content`,children:r})})};Wp.toString=()=>".nextui-pagination-item";const Dp=Et(Wp,{preserveContent:!1}),jp=({value:e,isBefore:t,onlyDots:r,animated:o,bordered:n,onClick:i})=>{const[s,a]=(0,g.useState)(!1);return(0,zt.jsx)(Dp,{animated:o,bordered:n,onlyDots:r,value:e,onClick:e=>i&&i(e),onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:s?(0,zt.jsxs)(Lp,{className:"nextui-pagination-ellipsis",fill:"none",focusable:"false",isBefore:t,isEllipsis:!0,role:"presentation",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",children:[(0,zt.jsx)("path",{d:"M13 17l5-5-5-5"}),(0,zt.jsx)("path",{d:"M6 17l5-5-5-5"})]}):(0,zt.jsxs)(Lp,{fill:"none",isBefore:t,isEllipsis:!1,shapeRendering:"geometricPrecision",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",children:[(0,zt.jsx)("circle",{cx:"12",cy:"12",fill:"currentColor",r:"1"}),(0,zt.jsx)("circle",{cx:"19",cy:"12",fill:"currentColor",r:"1"}),(0,zt.jsx)("circle",{cx:"5",cy:"12",fill:"currentColor",r:"1"})]})})},Op=({isPrev:e,disabled:t,onlyDots:r,animated:o,bordered:n,onClick:i,...s})=>(0,zt.jsx)(Dp,{preserveContent:!0,animated:o,bordered:n,disabled:t,onlyDots:r,value:e?"<":">",onClick:e=>i&&i(e),children:(0,zt.jsx)(Np,{className:"nextui-pagination-icon",fill:"none",focusable:"false",isPrev:e,role:"presentation",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:(0,zt.jsx)("path",{d:"M15.5 19l-7-7 7-7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})})});Op.toString=()=>".nextui-pagination-icon";const Vp=h().memo(Op),Up="nextui-pagination-highlight",Gp=({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(`${Up}--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,zt.jsx)(Hp,{"aria-hidden":!0,className:It(Up,l,{[`${Up}--rounded`]:o,[`${Up}--active`]:e,[`${Up}--no-margin`]:r,[`${Up}--shadow`]:t},i.className),css:{left:"var(--nextui--paginationLeft)",...n},noMargin:r,rounded:o,shadow:t,style:Rn({"--nextui--paginationLeft":`calc(${d})`},(null==i?void 0:i.style)||{}),...i})};Gp.toString=()=>".nextui-pagination-highlight";const _p=Gp,qp="nextui-pagination",Yp=({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,...$})=>{const{range:f,active:b,setPage:y,previous:v,next:x,first:w,last:S}=wt({page:e,initialPage:t,siblings:r?10:i,boundaries:r?10:s,total:o,onChange:h}),C=(0,g.useCallback)(((e,t)=>{if(e===xt){const n=t<f.indexOf(b);return(0,zt.jsx)(jp,{animated:l,bordered:c,isBefore:n,onlyDots:r,value:e,onClick:()=>y(n?b-d>=1?b-d:1:b+d<=o?b+d:o)},`${qp}-item-${e}-${t}`)}return(0,zt.jsx)(Dp,{active:e===b,animated:l,bordered:c,onlyDots:r,value:e,onClick:()=>e!==b&&y(e),children:e},`${qp}-item-${e}-${t}`)}),[o,r,b,c,l,y]);return(0,zt.jsxs)(Ap,{bordered:c,className:It(qp,{[`${qp}--no-margin`]:p,[`${qp}--bordered`]:c,[`${qp}--shadow`]:a,[`${qp}--rounded`]:m}),noMargin:p,onlyDots:r,rounded:m,...$,children:[u&&(0,zt.jsx)(Vp,{isPrev:!0,animated:l,bordered:c,disabled:!n&&1===b,onlyDots:r,onClick:()=>n&&1===b?S():v()}),(0,zt.jsx)(_p,{active:u?f.indexOf(b)+1:f.indexOf(b),animated:l,noMargin:p,rounded:m,shadow:a}),f.map(C),u&&(0,zt.jsx)(Vp,{animated:l,bordered:c,disabled:!n&&b===o,onlyDots:r,onClick:()=>n&&b===o?w():x()})]})};Yp.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},Yp.toString=()=>".nextui-pagination";const Xp=h().memo(Yp),Zp={prefix:String(Math.round(1e10*Math.random())),current:0},Jp=h().createContext(Zp);let Qp=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);const eg="undefined"!=typeof window?h().useLayoutEffect:()=>{};let tg=new Map;function rg(e){let[t,r]=(0,g.useState)(e),o=(0,g.useRef)(null),n=function(e){let t=(0,g.useContext)(Jp);return t!==Zp||Qp||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])}(t),i=(0,g.useCallback)((e=>{o.current=e}),[]);return tg.set(n,i),eg((()=>{let e=n;return()=>{tg.delete(e)}}),[n]),(0,g.useEffect)((()=>{let e=o.current;e&&(o.current=null,r(e))})),n}new Set(["id"]),new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]);let og=new Map,ng=new Set;function ig(){if("undefined"==typeof window)return;let e=t=>{let r=og.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",e),og.delete(t.target)),0===og.size)){for(let e of ng)e();ng.clear()}};document.body.addEventListener("transitionrun",(t=>{let r=og.get(t.target);r||(r=new Set,og.set(t.target,r),t.target.addEventListener("transitioncancel",e)),r.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}"undefined"!=typeof document&&("loading"!==document.readyState?ig():document.addEventListener("DOMContentLoaded",ig)),"undefined"!=typeof window&&window.visualViewport,new Map;const sg=je("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"}}}}),ag={WebkitTextFillColor:"$$inputTextColor",WebkitBackgroundClip:"text !important",caretColor:"$$inputTextColor"},lg=je("div",{width:"100%",br:"$$inputBorderRadius",input:{"&:-webkit-autofill":{...ag,"&:hover":ag,"&:focus":ag,"&:active":ag}},"@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)"}}]}),cg=je("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}}}}),dg=je("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",[`& ${cg}`]:{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:{[`& ${cg}`]:{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:{[`& ${cg}`]:{margin:"$xs $sm"}}}]}),ug=je("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}}}}),pg=je("p",{margin:"$1 0 0 $5",fontSize:"$space$5",color:"$$inputHelperColor"}),gg=je("span",{},Ho),hg=je("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}}),mg=je("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}}),$g=je("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"}}}}),fg=je("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"}}}}}),bg=je("span",{display:"flex",br:"100%"},Bo),yg={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:""},vg="nextui-input",xg=h().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:$,initialValue:f,onChange:b,readOnly:y,value:v,onClearClick:x,clearable:w,shadow:S,animated:C,required:k,width:P,className:T,onBlur:E,onFocus:M,autoComplete:I,placeholder:z,fullWidth:L,borderWeight:N,disabled:B,bordered:R,underlined:H,rounded:A,css:F,...K},W)=>{const D=(0,g.useRef)(null);(0,g.useImperativeHandle)(W,(()=>D.current));const[j,O]=(0,g.useState)(f),[V,U]=(0,g.useState)(!1),{isDark:G}=Je(),_=(0,g.useMemo)((()=>void 0!==v),[v]),q=(0,g.useMemo)((()=>t||r),[t,r]),Y=(0,g.useMemo)((()=>r?"":z),[z,r]),X=(0,g.useMemo)((()=>L?"100%":P||"initial"),[L,P]),Z=(e,t)=>{B||$&&$(e,t)};(0,g.useEffect)((()=>{_&&O(v)}),[_,v]);const J=(0,g.useMemo)((()=>"textarea"===e),[e]),Q={...K,..._?{value:j}:{defaultValue:f}},{isFocusVisible:ee,focusProps:te}=Pn(),{labelProps:re,fieldProps:oe}=function(e){let{id:t,label:r,"aria-labelledby":o,"aria-label":n,labelElementType:i="label"}=e;t=rg(t);let s=rg(),a={};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");let l=function(e,t){let{id:r,"aria-label":o,"aria-labelledby":n}=e;if(r=rg(r),n&&o){let e=new Set([...n.trim().split(/\s+/),r]);n=[...e].join(" ")}else n&&(n=n.trim().split(/\s+/).join(" "));return{id:r,"aria-label":o,"aria-labelledby":n}}({id:t,"aria-label":n,"aria-labelledby":o});return{labelProps:a,fieldProps:l}}({...Q,label:q}),ne=(0,g.useMemo)((()=>V?"hover":B?"disabled":y?"read-only":j?"with-value":"normal"),[V,B,y,j]);return(0,zt.jsxs)(sg,{borderWeight:N,className:It(`${vg}-main-container`,`${vg}-main-container--${ne}`),color:a,css:{width:X,...F},"data-state":ne,disabled:B,helperColor:l,rounded:A,size:i,status:c,children:[q&&(0,zt.jsx)(hg,{animated:C,asPlaceholder:!!r,bordered:R,className:`${vg}-block-label`,focused:V,hasContentLeft:!!d,htmlFor:"htmlFor"in re?re.htmlFor:"",id:re.id,isTextarea:J,rounded:A,underlined:H,withValue:!!j,children:q}),(0,zt.jsx)(lg,{animated:C,className:It(`${vg}-container`,`${vg}-container--${ne}`,{[`${vg}-container--input`]:!J,[`${vg}-container--textarea`]:J,[`${vg}-container--read-only`]:y},T),focused:V,isReadOnly:y,isTextarea:J,underlined:H,children:(0,zt.jsxs)(dg,{animated:C,as:q?"div":"label",bordered:R,className:It(`${vg}-wrapper`,`${vg}-wrapper--${ne}`,{[`${vg}-wrapper--bordered`]:R,[`${vg}-wrapper--underlined`]:H,[`${vg}-wrapper--shadow`]:S}),disabled:B,focused:V,isReadOnly:y,isTextarea:J,shadow:S,underlined:H,children:[!q&&z&&(0,zt.jsx)(gg,{className:`${vg}-placeholder`,children:z}),o&&(0,zt.jsx)(mg,{bordered:R,className:`${vg}-label--left`,isDark:G,isDefaultStatus:"default"===c,underlined:H,children:o}),d&&(0,zt.jsx)($g,{applyStyles:h,className:It(`${vg}-content`,`${vg}-content--left`),clickable:p,onClick:e=>Z("left",e),children:d}),(0,zt.jsx)(cg,{ref:D,"aria-multiline":J,"aria-placeholder":Y,"aria-readonly":y,"aria-required":k,as:e,autoComplete:I,bordered:R,className:It({[`${vg}`]:!J,[`${vg}-textarea`]:J,[`${vg}-disabled`]:B,[`${vg}-rounded`]:A,[`${vg}-${vg}-right-content`]:u,[`${vg}-left-content`]:d}),"data-state":ne,disabled:B,focused:V,hasLeftContent:!!d,hasRightContent:!!u,isTextarea:J,placeholder:Y,readOnly:y,required:k,type:"text",onBlur:e=>{U(!1),E&&E(e)},onChange:e=>{B||y||(_||O(e.target.value),b&&b(e))},onFocus:e=>{U(!0),M&&M(e)},...Q,...oe}),w&&(0,zt.jsx)(fg,{animated:C,"aria-label":"clear",className:`${vg}-clear-button`,disabled:B||y,hasContentRight:!!u,lang:"en",type:"button",underlined:H,visible:Boolean(j),onClick:e=>{if(e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),_||O(""),x&&x(e),!D.current)return;const t=((e,t)=>({...t,target:e,currentTarget:e}))(D.current,e);t.target.value="",b&&b(t),D.current.focus()},...te,children:(0,zt.jsx)(bg,{isFocusVisible:ee,children:(0,zt.jsx)(tp,{fill:"currentColor"})})}),u&&(0,zt.jsx)($g,{applyStyles:m,className:It(`${vg}-content`,`${vg}-content--right`),clickable:p,onClick:e=>Z("right",e),children:u}),n&&(0,zt.jsx)(mg,{bordered:R,className:`${vg}-label--right`,isDark:G,isDefaultStatus:"default"===c,isRight:!0,underlined:H,children:n})]})}),(0,zt.jsx)(ug,{className:`${vg}-helper-text-container`,withValue:!!s,children:s&&(0,zt.jsx)(pg,{className:`${vg}-helper-text`,children:s})})]})}));xg.displayName="NextUI.Input",xg.defaultProps=yg,xg.toString=()=>".nextui-input";const wg=xg,Sg=({visible:e})=>(0,zt.jsx)("svg",{className:"nextui-input-password-icon",fill:"none",height:"16",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",style:{color:"currentColor"},viewBox:"0 0 24 24",width:"16",children:e?(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.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,zt.jsx)("path",{d:"M1 1l22 22"})]}):(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,zt.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}),Cg=h().memo(Sg),kg={...yg,hideToggle:!1,visibleIcon:(0,zt.jsx)(Cg,{visible:!0}),hiddenIcon:(0,zt.jsx)(Cg,{visible:!1})},Pg=h().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:It("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,zt.jsx)(wg,{contentRight:u,...d,children:o})}));Pg.toString=()=>".nextui-input-password";const Tg=Et(Pg,kg);wg.Password=Tg;const Eg=wg,Mg=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],Ig={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},zg="undefined"!=typeof document&&!!document.documentElement.currentStyle,Lg=e=>{Object.keys(Ig).forEach((t=>{e.style.setProperty(t,Ig[t],"important")}))};let Ng=null;const Bg=h().forwardRef(((e,t)=>{const r=(0,g.useRef)(null),o=h().useRef(0),n=h().useRef(),{cacheMeasurements:i,rows:s,maxRows:a,minRows:l,onChange:c,onHeightChange:d,css:u,...m}=e;Object.keys(m).forEach((e=>{p.indexOf(e)>-1&&delete m[e]}));const $=void 0!==m.value;(0,g.useImperativeHandle)(t,(()=>r.current));const f=()=>{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,Mg.reduce(((e,t)=>(e[t]=o[t],e)),{}));var o;const{boxSizing:n}=r;return""===n?null:(zg&&"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)=>{Ng||(Ng=document.createElement("textarea"),Ng.setAttribute("tabindex","-1"),Ng.setAttribute("aria-hidden","true"),Lg(Ng)),null===Ng.parentNode&&document.body.appendChild(Ng);const{paddingSize:n,borderSize:i,sizingStyle:s}=e,{boxSizing:a}=s;Object.keys(s).forEach((e=>{const t=e;Ng.style[t]=s[t]})),Lg(Ng),Ng.value=t;let l=((e,t)=>{const r=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?r+t.borderSize:r-t.paddingSize})(Ng,e);Ng.value="x";const c=Ng.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)(f),b(f)),(0,zt.jsx)(Eg,{ref:r,as:"textarea",css:u,onChange:e=>{$||f(),c&&c(e)},...m})}));Bg.toString=()=>".nextui-textarea";const Rg=Et(Bg,{minRows:3,maxRows:6,cacheMeasurements:!0,initialValue:""});class Hg{copy(){return new Hg(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}}class Ag{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 Hg(this.x,this.y)}get topRight(){return new Hg(this.maxX,this.y)}get bottomLeft(){return new Hg(this.x,this.maxY)}get bottomRight(){return new Hg(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}union(e){let t=Math.min(this.x,e.x),r=Math.min(this.y,e.y),o=Math.max(this.maxX,e.maxX)-t,n=Math.max(this.maxY,e.maxY)-r;return new Ag(t,r,o,n)}intersection(e){if(!this.intersects(e))return new Ag(0,0,0,0);let t=Math.max(this.x,e.x),r=Math.max(this.y,e.y);return new Ag(t,r,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-r)}copy(){return new Ag(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}}let Fg="undefined"!=typeof window?window.performance:null,Kg=Fg&&(Fg.now||Fg.webkitNow||Fg.msNow||Fg.mozNow);function Wg(e){return Pi()||Ti()?e.altKey:e.ctrlKey}function Dg(e){return Pi()?e.metaKey:e.ctrlKey}function jg(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}=Vd(),$=(0,g.useRef)({top:0,left:0});!function(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])}(h,"scroll",p?null:()=>{$.current={top:h.current.scrollTop,left:h.current.scrollLeft}});const f=(0,g.useRef)(n);(0,g.useEffect)((()=>{if(f.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||bs(o.current)}f.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&&Mi(h.current,e)}}),[p,h,t.focusedKey]);let b,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&&!Wg(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,g;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===(g=r.getLastKey)||void 0===g?void 0:g.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,Dg(e));t.setFocusedKey(o),Dg(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,Dg(e));t.setFocusedKey(o),Dg(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":Dg(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=Cs(o.current,{tabbable:!0});do{t=r.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&pi(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=$.current.top,h.current.scrollLeft=$.current.left;let e=h.current.querySelector(`[data-key="${t.focusedKey}"]`);e&&(pi(e),Mi(h.current,e))}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){h.current===e.target&&e.preventDefault()}},{typeSelectProps:v}=function(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=""}),1e3)}:null}}}({keyboardDelegate:r,selectionManager:t});return c||(y=ai(v,y)),d||(b=null==t.focusedKey?0:-1),{collectionProps:{...y,tabIndex:b}}}function Og(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&&Wg(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&&(Dg(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(r):t.replaceSelection(r)}};(0,g.useEffect)((()=>{r===t.focusedKey&&t.isFocused&&!s&&document.activeElement!==o.current&&(a?a():bs(o.current))}),[o,r,t.focusedKey,t.childFocusStrategy,t.isFocused,s]),l=l||t.isDisabled(r);let p={};s||l?l&&(p.onMouseDown=e=>{e.preventDefault()}):p={tabIndex:r===t.focusedKey?0:-1,onFocus(e){e.target===o.current&&t.setFocusedKey(r)}};let h=!l&&t.canSelectItem(r),m=c&&!l,$=m&&("replace"===t.selectionBehavior?!h:t.isEmpty),f=m&&h&&"replace"===t.selectionBehavior,b=$||f,y=(0,g.useRef)(null),v=b&&h,x=(0,g.useRef)(!1),w=(0,g.useRef)(!1),S={};n?(S.onPressStart=e=>{y.current=e.pointerType,x.current=v,"keyboard"!==e.pointerType||b&&!Ug()||u(e)},d?(S.onPressUp=e=>{"keyboard"!==e.pointerType&&u(e)},S.onPress=$?()=>c():null):S.onPress=e=>{if($||f&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!Vg())return;c()}else"keyboard"!==e.pointerType&&u(e)}):(S.onPressStart=e=>{y.current=e.pointerType,x.current=v,w.current=$,("mouse"===e.pointerType&&!$||"keyboard"===e.pointerType&&(!c||Ug()))&&u(e)},S.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&b&&Vg()||"mouse"===e.pointerType&&w.current)&&(b?c():u(e))}),i||(p["data-key"]=r),S.preventFocusOnPress=s;let{pressProps:C,isPressed:k}=Ki(S),P=f?e=>{"mouse"===y.current&&(e.stopPropagation(),e.preventDefault(),c())}:void 0,{longPressProps:T}=fs({isDisabled:!v,onLongPress(e){"touch"===e.pointerType&&(u(e),t.setSelectionBehavior("toggle"))}});return{itemProps:ai(p,h||$?C:{},v?T:{},{onDoubleClick:P,onDragStartCapture:e=>{"touch"===y.current&&x.current&&e.preventDefault()}}),isPressed:k,isSelected:t.isSelected(r),isDisabled:l,allowsSelection:h,hasAction:b}}function Vg(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function Ug(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}Kg&&Kg.bind(Fg);class Gg{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}}let _g=null;function qg(e,t="assertive",r=7e3){_g||(_g=new Yg),_g.announce(e,t,r)}class Yg{createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){if(!this.node)return;let o=document.createElement("div");o.textContent=e,"assertive"===t?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),""!==e&&setTimeout((()=>{o.remove()}),r)}clear(e){this.node&&(e&&"assertive"!==e||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{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"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function Xg(e){return e&&e.__esModule?e.default:e}class Zg{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 Ag(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"}}const Jg=new WeakMap;var Qg;function eh(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 th(e){let t=Gd(Xg(Qg)),r=function(){ls();let[e,t]=(0,g.useState)(Zi);return(0,g.useEffect)((()=>{let e=()=>{t(Zi)};return Ji.add(e),()=>{Ji.delete(e)}}),[]),e}(),o=("pointer"===r||"virtual"===r||null==r)&&"undefined"!=typeof window&&"ontouchstart"in window;return Ci((0,g.useMemo)((()=>{let r,n=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior;return o&&(r=t.format("longPressToSelect")),"replace"===i&&"none"!==n&&e.hasItemActions?r:void 0}),[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,o]))}function rh(e,t,r){let{isVirtualized:o,keyboardDelegate:n,focusMode:i,scrollRef:s,getRowText:a,onRowAction:l,onCellAction:c}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let d=qd({usage:"search",sensitivity:"base"}),{direction:u}=Vd(),p=(0,g.useMemo)((()=>n||new Zg({collection:t.collection,disabledKeys:t.disabledKeys,ref:r,direction:u,collator:d,focusMode:i})),[n,t.collection,t.disabledKeys,r,u,d,i]),{collectionProps:h}=jg({ref:r,selectionManager:t.selectionManager,keyboardDelegate:p,isVirtualized:o,scrollRef:s}),m=oi(e.id);Jg.set(t,{keyboardDelegate:p,actions:{onRowAction:l,onCellAction:c}});let $=th({selectionManager:t.selectionManager,hasItemActions:!(!l&&!c)}),f=ai(ui(e,{labelable:!0}),{role:"grid",id:m,"aria-multiselectable":"multiple"===t.selectionManager.selectionMode?"true":void 0},t.isKeyboardNavigationDisabled?{}:h,$);return o&&(f["aria-rowcount"]=t.collection.size,f["aria-colcount"]=t.collection.columnCount),function(e,t){let{getRowText:r=(e=>{var r;return null===(r=t.collection.getItem(e))||void 0===r?void 0:r.textValue})}=e,o=Gd(Xg(Qg)),n=t.selectionManager.rawSelection,i=(0,g.useRef)(n);vi((()=>{var e;if(!t.selectionManager.isFocused)return void(i.current=n);let s=eh(n,i.current),a=eh(i.current,n),l="replace"===t.selectionManager.selectionBehavior,c=[];if(1===t.selectionManager.selectedKeys.size&&l){if(t.collection.getItem(t.selectionManager.selectedKeys.keys().next().value)){let e=r(t.selectionManager.selectedKeys.keys().next().value);e&&c.push(o.format("selectedItem",{item:e}))}}else if(1===s.size&&0===a.size){let e=r(s.keys().next().value);e&&c.push(o.format("selectedItem",{item:e}))}else if(1===a.size&&0===s.size&&t.collection.getItem(a.keys().next().value)){let e=r(a.keys().next().value);e&&c.push(o.format("deselectedItem",{item:e}))}"multiple"===t.selectionManager.selectionMode&&(0===c.length||"all"===n||n.size>1||"all"===i.current||(null===(e=i.current)||void 0===e?void 0:e.size)>1)&&c.push("all"===n?o.format("selectedAll"):o.format("selectedCount",{count:n.size})),c.length>0&&qg(c.join(" ")),i.current=n}),[n])}({getRowText:a},t),{gridProps:f}}function oh(e,t,r){let{node:o,isVirtualized:n,focusMode:i="child",shouldSelectOnPressUp:s,onAction:a}=e,{direction:l}=Vd(),{keyboardDelegate:c,actions:{onCellAction:d}}=Jg.get(t),u=()=>{let e=Cs(r.current);if("child"===i){if(r.current.contains(document.activeElement)&&r.current!==document.activeElement)return;let o="last"===t.selectionManager.childFocusStrategy?nh(e):e.firstChild();if(o)return void bs(o)}r.current.contains(document.activeElement)||bs(r.current)},{itemProps:p,isPressed:g}=Og({selectionManager:t.selectionManager,key:o.key,ref:r,isVirtualized:n,focus:u,shouldSelectOnPressUp:s,onAction:d?()=>d(o.key):a,isDisabled:0===t.collection.size}),h=ai(p,{role:"gridcell",onKeyDownCapture:e=>{if(!e.currentTarget.contains(e.target)||t.isKeyboardNavigationDisabled)return;let n=Cs(r.current);switch(n.currentNode=document.activeElement,e.key){case"ArrowLeft":{let t="rtl"===l?n.nextNode():n.previousNode();if("child"===i&&t===r.current&&(t=null),t)e.preventDefault(),e.stopPropagation(),bs(t);else{if(c.getKeyLeftOf(o.key)!==o.key)break;e.preventDefault(),e.stopPropagation(),"cell"===i&&"rtl"===l?bs(r.current):(n.currentNode=r.current,t="rtl"===l?n.firstChild():nh(n),t&&bs(t))}break}case"ArrowRight":{let t="rtl"===l?n.previousNode():n.nextNode();if("child"===i&&t===r.current&&(t=null),t)e.preventDefault(),e.stopPropagation(),bs(t);else{if(c.getKeyRightOf(o.key)!==o.key)break;e.preventDefault(),e.stopPropagation(),"cell"===i&&"ltr"===l?bs(r.current):(n.currentNode=r.current,t="rtl"===l?nh(n):n.firstChild(),t&&bs(t))}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()})):cs()||t.selectionManager.setFocusedKey(o.key)}});var m;return n&&(h["aria-colindex"]=(null!==(m=o.colIndex)&&void 0!==m?m:o.index)+1),{gridCellProps:h,isPressed:g}}function nh(e){let t,r;do{r=e.lastChild(),r&&(t=r)}while(r);return t}function ih(e){return e&&e.__esModule?e.default:e}Qg={"ar-AE":{deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`},"bg-BG":{deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`},"cs-CZ":{deselectedItem:e=>`Položka ${e.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:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`},"da-DK":{deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`},"de-DE":{deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`},"el-GR":{deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`},"en-US":{deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."},"es-ES":{deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`},"et-EE":{deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`},"fi-FI":{deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`},"fr-FR":{deselectedItem:e=>`${e.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:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`},"he-IL":{deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`},"hr-HR":{deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`},"hu-HU":{deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`},"it-IT":{deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`},"ja-JP":{deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`},"ko-KR":{deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`},"lt-LT":{deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`},"lv-LV":{deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`},"nb-NO":{deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`},"nl-NL":{deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`},"pl-PL":{deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`},"pt-BR":{deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`},"pt-PT":{deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`},"ro-RO":{deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`},"ru-RU":{deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`},"sk-SK":{deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`},"sl-SI":{deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`},"sr-SP":{deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`},"sv-SE":{deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`},"tr-TR":{deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`},"uk-UA":{deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`},"zh-CN":{deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`},"zh-TW":{deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`}};const sh=new WeakMap;function ah(e){return"string"==typeof e?e.replace(/\s*/g,""):""+e}function lh(e,t){let r=sh.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${ah(t)}`}function ch(e,t,r){let o=sh.get(e);if(!o)throw new Error("Unknown grid");return`${o}-${ah(t)}-${ah(r)}`}function dh(e,t){return[...e.collection.rowHeaderColumnKeys].map((r=>ch(e,t,r))).join(" ")}var uh;uh={"ar-AE":{ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"},"bg-BG":{ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"},"cs-CZ":{ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"},"da-DK":{ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"},"de-DE":{ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"},"el-GR":{ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"},"en-US":{select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`},"es-ES":{ascending:"de subida",ascendingSort:e=>`ordenado por columna ${e.columnName} en orden de subida`,columnSize:e=>`${e.value} píxeles`,descending:"de bajada",descendingSort:e=>`ordenado por columna ${e.columnName} en orden de bajada`,select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"},"et-EE":{ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"},"fi-FI":{ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"},"fr-FR":{ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"},"he-IL":{ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"},"hr-HR":{ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"},"hu-HU":{ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"},"it-IT":{ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"},"ja-JP":{ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"},"ko-KR":{ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"},"lt-LT":{ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"},"lv-LV":{ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"},"nb-NO":{ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"},"nl-NL":{ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"},"pl-PL":{ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"},"pt-BR":{ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"},"pt-PT":{ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"},"ro-RO":{ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"},"ru-RU":{ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"},"sk-SK":{ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"},"sl-SI":{ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"},"sr-SP":{ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"},"sv-SE":{ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"},"tr-TR":{ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"},"uk-UA":{ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"},"zh-CN":{ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,select:"选择",selectAll:"全选",sortable:"可排序的列"},"zh-TW":{ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,select:"選取",selectAll:"全選",sortable:"可排序的欄"}};class ph extends Zg{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 gh(e,t,r){var o,n;let{node:i}=e,s=i.props.allowsSorting,{gridCellProps:a}=oh({...e,focusMode:i.props.isSelectionCell||e.hasMenu||i.props.allowsSorting?"child":"cell"},t,r),l=i.props.isSelectionCell&&"single"===t.selectionManager.selectionMode,{pressProps:c}=Ki({isDisabled:!s||l,onPress(){t.sort(i.key)},ref:r}),{focusableProps:d}=Es({},r);e.hasMenu&&(c={});let u=null,p=(null===(o=t.sortDescriptor)||void 0===o?void 0:o.column)===i.key,g=null===(n=t.sortDescriptor)||void 0===n?void 0:n.direction;i.props.allowsSorting&&!Ei()&&(u=p?g:"none");let h,m=Gd(ih(uh));return s&&(h=`${m.format("sortable")}`,p&&g&&Ei()&&(h=`${h}, ${m.format(g)}`)),{columnHeaderProps:{...ai(a,c,d,Ci(h),0===t.collection.size&&{tabIndex:null}),role:"columnheader",id:lh(t,i.key),"aria-colspan":i.colspan&&i.colspan>1?i.colspan:null,"aria-sort":u}}}function hh(e,t,r){let{gridCellProps:o,isPressed:n}=oh(e,t,r),i=e.node.column.key;return t.collection.rowHeaderColumnKeys.has(i)&&(o.role="rowheader",o.id=ch(t,e.node.parentKey,i)),{gridCellProps:o,isPressed:n}}class mh{build(e,t){return this.context=t,$h((()=>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=[];h().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(h().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:fh(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 <${bh(t.type)}> in <${bh(o.type)}>. Only <${bh(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:$h((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(){Li(this,"cache",new WeakMap)}}function $h(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 fh(e,t){return e&&t?r=>e(t(r)):e||t||void 0}function bh(e){return e[0].toUpperCase()+e.slice(1)}function yh(e,t,r,o=[]){let n=(0,g.useMemo)((()=>new mh),[]),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])}const vh=new WeakMap;function xh(e){let t=vh.get(e);if(null!=t)return t;t=0;for(let r of e)"section"===r.type?t+=xh(r.childNodes):t++;return vh.set(e,t),t}class wh extends Set{constructor(e,t,r){super(e),e instanceof wh?(this.anchorKey=t||e.anchorKey,this.currentKey=r||e.currentKey):(this.anchorKey=t,this.currentKey=r)}}function Sh(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:o,selectionBehavior:n="toggle",disabledBehavior:i="all"}=e,s=(0,g.useRef)(!1),[,a]=(0,g.useState)(!1),l=(0,g.useRef)(null),c=(0,g.useRef)(null),[,d]=(0,g.useState)(null),u=(0,g.useMemo)((()=>Ch(e.selectedKeys)),[e.selectedKeys]),p=(0,g.useMemo)((()=>Ch(e.defaultSelectedKeys,new wh)),[e.defaultSelectedKeys]),[h,m]=Il(u,p,e.onSelectionChange),$=(0,g.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[f,b]=(0,g.useState)(n);"replace"===n&&"toggle"===f&&"object"==typeof h&&0===h.size&&b("replace");let y=(0,g.useRef)(n);return(0,g.useEffect)((()=>{n!==y.current&&(b(n),y.current=n)}),[n]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:f,setSelectionBehavior:b,get isFocused(){return s.current},setFocused(e){s.current=e,a(e)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(e,t="first"){l.current=e,c.current=t,d(e)},selectedKeys:h,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,h)||m(e)},disabledKeys:$,disabledBehavior:i}}function Ch(e,t){return e?"all"===e?"all":new wh(e):t}class kh{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){(null==e||this.collection.getItem(e))&&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.canSelectItem(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}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}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 wh([e],e,e);else{let r=this.state.selectedKeys,o=r.anchorKey||e;t=new wh(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.canSelectItem(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 wh("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode)return;if(null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new wh([e],e,e):new wh;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new wh;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.canSelectItem(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 wh)}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)}isDisabled(e){return this.state.disabledKeys.has(e)&&"all"===this.state.disabledBehavior}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}}let Ph=Symbol.iterator;class Th{*[Ph](){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){Li(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)}}const Eh="row-header-column-"+Math.random().toString(36).slice(2);var Mh=Symbol.iterator;class Ih extends Th{*[Mh](){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:Eh,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.colIndex=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 zh={ascending:"descending",descending:"ascending"};function Lh(e){return null}Lh.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=[];h().Children.forEach(t,(t=>{e.push({type:"column",element:t})})),yield*e}};let Nh=Lh;function Bh(e){return null}Bh.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=[];h().Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let Rh=Bh;function Hh(e){return null}Hh.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&&h().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=[];h().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 Ah=Hh;function Fh(e){return null}Fh.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(h().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 Kh=Fh;function Wh(e){return null}Wh.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 Dh=Wh;const jh=je("tr",{ov:"visible"}),Oh=je("th",{height:"$14",cursor:"default",bg:"$accents0",color:"$accents7",fontSize:"$xs",textAlign:"left",position:"relative","@motion":{transition:"none"},"&:first-child":{pl:"$8",btlr:"$md",bblr:"$md"},"&:last-child":{pr:"$8",btrr:"$md",bbrr:"$md"},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"}}]},Bo),Vh=je(Oh,Bo),Uh=je("tfoot",{height:"$14",variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}}},defaultVariants:{align:"right"}}),Gh=je("td",{}),_h=je(Gh,{position:"relative",userSelect:"none",cursor:"default",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"}},isStatic:{true:{cursor:"text",userSelect:"text"}}}},Bo),qh=je("tr",{ov:"visible",color:"$text",variants:{isDisabled:{true:{color:"$accents3",pointerEvents:"none",cursor:"not-allowed"}},isSelected:{true:{color:"$$tableRowTextColor",[`& ${_h}:before`]:{opacity:1,bg:"$$tableRowColor"}}}}},Bo),Yh=je("thead",{variants:{isFixed:{true:{display:"table",width:"100%",tableLayout:"fixed"}},isInfinityScroll:{true:{display:"block",height:"100%",overflow:"auto",pb:"$10",[`& ${qh}`]:{display:"table",width:"100%",tableLayout:"fixed"}}}},defaultVariants:{isInfinityScroll:!1}}),Xh=je("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"}}}}),Zh=je("table",{borderCollapse:"separate",borderSpacing:0,width:"100%",p:"$md $sm","@motion":{[`& ${_h}:before`]:{transition:"none"}},variants:{animated:{false:{[`& ${_h}: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:{[`& ${qh}[aria-selected=false]:nth-child(even)`]:{[`& ${_h}`]:{bg:"$accents0"}},[`& ${qh}:nth-child(even)`]:{[`& ${_h}:first-child`]:{br:"$lg 0 0 $lg"},[`& ${_h}:last-child`]:{br:"0 $lg $lg 0"}}}},sticked:{true:{p:0,[`& ${Oh}:first-child`]:{br:"$lg 0 0 0"},[`& ${Oh}: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:{[`& ${Oh}`]:{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:{[`& ${qh}:not(:last-child)`]:{position:"relative",[`& ${_h}:after`]:{content:"",position:"absolute",bottom:0,left:0,right:0,height:"$$tableLineWeight",bg:"$border"},[`& ${_h}:first-child`]:{"&:after":{left:"$space$md"}},[`& ${_h}:last-child`]:{"&:after":{right:"$space$md"}}},[`& ${qh}[aria-selected=true]:not(last-child)`]:{[`& ${_h}:after`]:{bg:"$$tableRowTextColor",opacity:.3}}}},fixed:{true:{tableLayout:"fixed"}},hoverable:{true:{[`& ${_h}:first-child`]:{br:"$md 0 0 $md"},[`& ${_h}:last-child`]:{br:"0 $md $md 0"},[`& ${qh}`]:{cursor:"pointer"},[`& ${qh}[aria-selected=false]`]:{"&:hover":{[`& ${_h}:before`]:{opacity:1,bg:"$accents0"}}},[`& ${qh}[aria-selected=true]`]:{"&:hover":{[`& ${_h}:before`]:{opacity:.8}}}}},isMultiple:{true:{}},hasPagination:{true:{}},shadow:{true:{}},compact:{true:{[`& ${_h}`]:{py:"$1"},[`& ${Oh}`]:{height:"$12","&:first-child":{br:"$sm 0 0 $sm"},"&:last-child":{br:"0 $sm $sm 0"}}}}},compoundVariants:[{isMultiple:!0,hoverable:!0,css:{[`& ${qh}:not(:first-child):not(:last-child)`]:{[`& ${_h}:first-child`]:{br:0},[`& ${_h}:last-child`]:{br:0}},[`& ${qh}:first-child`]:{[`& ${_h}:first-child`]:{br:"$md 0 0 0"},[`& ${_h}:last-child`]:{br:"0 $md 0 0"}},[`& ${qh}:last-child`]:{[`& ${_h}:first-child`]:{br:"0 0 0 $md"},[`& ${_h}:last-child`]:{br:"0 0 $md 0"}}}},{isMultiple:!0,hoverable:!0,sticked:!0,css:{[`& ${qh}:first-child`]:{[`& ${_h}:first-child`]:{br:"0"},[`& ${_h}: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:{[`& ${qh}:not(:last-child)`]:{[`& ${_h}`]:{br:"0"}},[`& ${qh}:last-child`]:{[`& ${_h}:first-child`]:{br:"0 0 0 $md"},[`& ${_h}:last-child`]:{br:"0 0 $md 0"}}}},{sticked:!0,isMultiple:!1,hoverable:!0,hasPagination:!0,css:{[`& ${qh}`]:{[`& ${_h}`]:{br:"0"}}}},{sticked:!0,hasPagination:!0,css:{pb:"$5"}},{sticked:!0,hasPagination:!0,isMultiple:!0,hoverable:!0,css:{[`& ${qh}:last-child`]:{[`& ${_h}:first-child`]:{br:"0"},[`& ${_h}:last-child`]:{br:"0"}}}}],defaultVariants:{sticked:!1,color:"primary",lineWeight:"light"}}),Jh=je("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"}}),Qh=Et((({children:e,...t})=>{const{rowGroupProps:r}={rowGroupProps:{role:"rowgroup"}};return(0,zt.jsx)(Yh,{className:It("nextui-table-row-group",t.className),...t,...r,children:e})}),{as:"thead"}),em=je("svg",{opacity:0,transition:"$default",path:{fill:"$$tableRowTextColor"},variants:{visible:{true:{opacity:1}},ascending:{true:{transform:"rotate(180deg)"}}}}),tm=e=>(0,zt.jsx)(em,{"aria-hidden":"true",className:"nextui-table-sort-icon",fill:"none",focusable:"false",height:22,role:"presentation",viewBox:"0 0 24 24",width:22,xmlns:"http://www.w3.org/2000/svg",...e,children:(0,zt.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"})}),rm=h().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}=gh({node:e},t,s),{isFocusVisible:l,focusProps:c}=Pn(),{hideHeader:d,...u}=e.props;return(0,zt.jsxs)(Oh,{ref:s,className:It("nextui-table-column-header",r.className),colSpan:e.colspan,isFocusVisible:l,...Rn(r,a,c,u),children:[d?(0,zt.jsx)(Ml,{children:e.rendered}):e.rendered,u.allowsSorting&&(0,zt.jsx)(tm,{ascending:"ascending"===(null==(n=t.sortDescriptor)?void 0:n.direction),css:{position:"absolute",m:"0 $2",bottom:"calc(50% - 11px)"},visible:(null==(i=t.sortDescriptor)?void 0:i.column)===e.key})]})}));rm.displayName="NextUI.TableColumnHeader",rm.toString=()=>".nextui-table-column-header";const om=rm,nm=h().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}=function(e,t,r){let{node:o,isVirtualized:n}=e,i={role:"row"};return n&&(i["aria-rowindex"]=o.index+1),{rowProps:i}}({node:t});return(0,zt.jsx)(jh,{ref:i,className:It("nextui-table-header-row",o.className),...o,...s,children:e})}));nm.displayName="NextUI.TableHeaderRow",nm.toString=()=>".nextui-table-header-row";const im=nm,sm=h().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}=gh({node:e},t,s),{checkboxProps:c}=function(e){let{isEmpty:t,isSelectAll:r,selectionMode:o}=e.selectionManager;return{checkboxProps:{"aria-label":Gd(ih(uh)).format("single"===o?"select":"selectAll"),isSelected:r,isDisabled:"multiple"!==o||0===e.collection.size,isIndeterminate:!t&&!r,onChange:()=>e.selectionManager.toggleSelectAll()}}}(t),{isFocusVisible:d,focusProps:u}=Pn();return(0,zt.jsx)(Vh,{ref:s,className:It("nextui-table-select-all-checkbox",n.className),isFocusVisible:d,...Rn(l,u,n),children:a?(0,zt.jsx)(Ml,{children:c["aria-label"]}):(0,zt.jsx)(Ql,{...c,color:r,css:{display:"inherit",$$checkboxBorderColor:"$colors$accents3"},disableAnimation:!o})})}));sm.displayName="NextUI.TableSelectAllCheckbox",sm.toString=()=>".nextui-table-select-all-checkbox";const am=sm,lm={footerAlign:"end",rowsPerPage:0,currentPage:1,animated:!0},cm=h().createContext(lm),dm=()=>h().useContext(cm),um=({children:e,defaultValues:t})=>{const[r,o]=h().useState((null==t?void 0:t.footerAlign)||lm.footerAlign),[n,i]=h().useState(void 0===(null==t?void 0:t.animated)?lm.animated:null==t?void 0:t.animated),[s,a]=h().useState(null==t?void 0:t.collection),[l,c]=h().useState(void 0===(null==t?void 0:t.rowsPerPage)?lm.rowsPerPage:null==t?void 0:t.rowsPerPage),[d,u]=h().useState(lm.currentPage),[p,g]=h().useState(null==t?void 0:t.color),m=h().useMemo((()=>({animated:n,footerAlign:r,collection:s,rowsPerPage:l,currentPage:d,color:p,setFooterAlign:o,setCollection:a,setAnimated:i,setRowsPerPage:c,setColor:g,setCurrentPage:u})),[n,p,s,r,l,d]);return(0,zt.jsx)(cm.Provider,{value:m,children:e})},pm=(cm.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}=dm();h().useEffect((()=>{e&&e!==a&&(null==c||c(e))}),[e,a]),h().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,zt.jsx)(Xp,{animated:i,className:It("nextui-table-pagination",o.className),color:o.color||n,total:p,onChange:e=>{null==u||u(e),null==r||r(e)},...o})});pm.displayName="NextUI.TablePagination",pm.toString=()=>".nextui-table-pagination";const gm=pm,hm=h().forwardRef((({children:e,...t},r)=>{const o=(0,g.useRef)(null);(0,g.useImperativeHandle)(r,(()=>null==o?void 0:o.current));const{footerAlign:n}=dm();return(0,zt.jsx)(Uh,{ref:o,align:t.align||n,className:It("nextui-table-footer",t.className),role:"rowgroup",...t,children:e})}));hm.displayName="NextUI.TableFooter",hm.toString=()=>".nextui-table-footer";const mm=hm,$m=h().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}=function(e,t,r){let{node:o}=e,{rowProps:n,isPressed:i}=function(e,t,r){let{node:o,isVirtualized:n,shouldSelectOnPressUp:i,onAction:s}=e,{actions:{onRowAction:a}}=Jg.get(t),{itemProps:l,isPressed:c}=Og({selectionManager:t.selectionManager,key:o.key,ref:r,isVirtualized:n,shouldSelectOnPressUp:i,onAction:a?()=>a(o.key):s,isDisabled:0===t.collection.size}),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}}(e,t,r);return{rowProps:{...n,"aria-labelledby":dh(t,o.key)},isPressed:i}}({node:t},r,i),{isFocusVisible:a,focusProps:l}=Pn(),c=r.disabledKeys.has(t.key);return(0,zt.jsx)(qh,{ref:i,className:It("nextui-table-row",{"nextui-table-row--selected":s["aria-selected"],"nextui-table-row--disabled":c},o.className),css:t.props.css,isDisabled:c,isFocusVisible:a,isSelected:!!s["aria-selected"],...Rn(s,l,o),children:e})}));$m.displayName="NextUI.TableRow",$m.toString=()=>".nextui-table-row";const fm=$m,bm=h().forwardRef((({cell:e,state:t,isStatic:r,...o},n)=>{const i=Kn(n),{gridCellProps:s}=hh({node:e},t,i),{isFocusVisible:a,focusProps:l}=Pn(),c=r?{...s,onMouseDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()}:s;return(0,zt.jsx)(_h,{ref:i,className:It("nextui-table-cell",o.className),css:e.props.css,isFocusVisible:a,isStatic:r,...Rn(c,l,o),children:e.rendered})}));bm.displayName="NextUI.TableCell",bm.toString=()=>".nextui-table-cell";const ym=bm,vm=h().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}=hh({node:e},t,s),{checkboxProps:l}=function(e,t){let{key:r}=e;const{checkboxProps:o}=function(e,t){let{key:r}=e,o=t.selectionManager,n=oi(),i=!t.selectionManager.canSelectItem(r),s=t.selectionManager.isSelected(r);return{checkboxProps:{id:n,"aria-label":Gd(Xg(Qg)).format("select"),isSelected:s,isDisabled:i,onChange:()=>o.select(r)}}}(e,t);return{checkboxProps:{...o,"aria-labelledby":`${o.id} ${dh(t,r)}`}}}({key:(null==e?void 0:e.parentKey)||e.key},t),{isFocusVisible:c,focusProps:d}=Pn();return(0,zt.jsx)(_h,{ref:s,className:It("nextui-table-checkbox-cell",n.className),isFocusVisible:c,...Rn(a,d,n),children:(0,zt.jsx)(Ql,{...l,color:r,css:{display:"inherit"},disableAnimation:!o})})}));vm.displayName="NextUI.TableCheckboxCell",vm.toString=()=>".nextui-table-checkbox-cell";const xm=vm,wm=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)},Sm=({children:e,collection:t,state:r,animated:o,color:n,hasPagination:i,hideLoading:s,isStatic:a,...l})=>{var c,d,u,p,m,$;const{currentPage:f,rowsPerPage:b,collection:y,setCollection:v}=dm(),x=(0,g.useMemo)((()=>wm(t)),[t.body.props]);h().useEffect((()=>{t!==y&&(null==v||v(t))}),[t,y]);const w="loading"===(null==(c=t.body)||null==(d=c.props)?void 0:d.loadingState)||"loadingMore"===(null==(u=t.body)||null==(p=u.props)?void 0:p.loadingState),S=(0,g.useMemo)((()=>{const e=[...t.body.childNodes];return i?null==e?void 0:e.slice((f-1)*b,f*b):e}),[i,t,f,b]),C=(0,g.useMemo)((()=>{const e=S.length;return e>=b&&!x?null:(0,zt.jsx)("tr",{"aria-hidden":"true",className:"nextui-table-hidden-row",role:"row",children:(0,zt.jsx)(Gh,{"aria-hidden":"true",colSpan:t.columnCount,css:{height:"var(--nextui--tableBodyEmptySpaceHeight)"},style:Rn({"--nextui--tableBodyEmptySpaceHeight":x?"var(--nextui-space-10)":`calc(${b-e} * var(--nextui-space-15))`},(null==l?void 0:l.style)||{})})})}),[t.columnCount,S,b,x]);return(0,zt.jsxs)(Qh,{as:"tbody",className:It("nextui-table-body",l.className),css:{position:"relative",...l.css,...null==(m=t.body)||null==($=m.props)?void 0:$.css},isInfinityScroll:x,onScroll:e=>{if(!x)return;const r=e.target;var o,n;r.scrollHeight-(r.scrollTop+40)<=r.clientHeight&&!w&&(null==(o=t.body)||null==(n=o.props)||null==n.onLoadMore||n.onLoadMore())},...l,children:[e,null==S?void 0:S.map((e=>e.hasChildNodes?(0,zt.jsx)(fm,{"aria-hidden":"false",item:e,state:r,children:[...e.childNodes].map((e=>{var t;return null!=e&&null!=(t=e.props)&&t.isSelectionCell?(0,zt.jsx)(xm,{animated:o,cell:e,color:n,state:r},null==e?void 0:e.key):(0,zt.jsx)(ym,{cell:e,isStatic:a,state:r},null==e?void 0:e.key)}))},null==e?void 0:e.key):null)),!s&&w&&(0,zt.jsx)(Xh,{"aria-hidden":"true",className:"nextui-table-hidden-row",isAbsolute:!x,isAtEnd:S.length>0,role:"row",children:(0,zt.jsx)(Gh,{"aria-hidden":"true",colSpan:t.columnCount,children:(0,zt.jsx)(Bd,{color:n})})}),C]})};Sm.displayName="NextUI.TableBody",Sm.toString=()=>".nextui-table-body";const Cm=Sm,km=h().forwardRef(((e,t)=>{const{css:r,selectionMode:o,selectionBehavior:n,hideLoading:i,children:s,shadow:a,color:l,animated:c,borderWeight:d,bordered:u,hoverable:p,sticked:m,containerCss:$,className:f,...b}=e,[y,v]=((e,t)=>{const[r,o]=et(e,t);let n=null;return o&&o.length>=1&&(n=o.length>=0?o[0]:void 0),[r,n]})(s,gm),{hasPagination:x,rowsPerPage:w}=((e,t)=>{const r=h().Children.toArray(e).find((e=>h().isValidElement(e)&&e.type===t));var o;return h().isValidElement(r)?{hasPagination:!0,rowsPerPage:(null==r||null==(o=r.props)?void 0:o.rowsPerPage)||0}:{hasPagination:!1,rowsPerPage:0}})(s,gm),S=function(e){let[t,r]=(0,g.useState)(!1),{selectionMode:o="none"}=e,n=(0,g.useMemo)((()=>({showSelectionCheckboxes:e.showSelectionCheckboxes&&"none"!==o,selectionMode:o,columns:[]})),[e.children,e.showSelectionCheckboxes,o]),i=yh(e,((e,t)=>new Ih(e,t,n)),n),{disabledKeys:s,selectionManager:a}=function(e){let{collection:t,focusMode:r}=e,o=Sh(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]),{collection:t,disabledKeys:n,isKeyboardNavigationDisabled:!1,selectionManager:new kh(t,o)}}({...e,collection:i});return{collection:i,disabledKeys:s,selectionManager:a,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor,isKeyboardNavigationDisabled:0===i.size||t,setKeyboardNavigationDisabled:r,sort(t,r){var o;e.onSortChange({column:t,direction:null!=r?r:(null===(o=e.sortDescriptor)||void 0===o?void 0:o.column)===t?zh[e.sortDescriptor.direction]:"ascending"})}}}({...e,children:y,showSelectionCheckboxes:void 0!==e.showSelectionCheckboxes?e.showSelectionCheckboxes:"multiple"===o&&"replace"!==n}),C=Kn(t),{collection:k}=S,{gridProps:P}=function(e,t,r){let{keyboardDelegate:o,isVirtualized:n,layout:i}=e,s=qd({usage:"search",sensitivity:"base"}),{direction:a}=Vd(),l=(0,g.useMemo)((()=>o||new ph({collection:t.collection,disabledKeys:t.disabledKeys,ref:r,direction:a,collator:s,layout:i})),[o,t.collection,t.disabledKeys,r,a,s,i]),c=oi(e.id);sh.set(t,c);let{gridProps:d}=rh({...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=Gd(ih(uh)),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.format(`${p}Sort`,{columnName:r}):void 0}),[p,u,t.collection.columns]),$=Ci(m);return vi((()=>{qg(m,"assertive",500)}),[m]),{gridProps:ai(d,$,0===t.collection.size&&{tabIndex:0},{"aria-describedby":[$["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")})}}(e,S,C),T=h().useMemo((()=>({collection:k,color:l,animated:c,rowsPerPage:w})),[k,c,l,w]),E=(0,g.useMemo)((()=>!("none"===o&&!p)),[o,p]);return(0,zt.jsx)(um,{defaultValues:T,children:(0,zt.jsx)(Jh,{borderWeight:d,bordered:u,className:"nextui-table-container",css:$,shadow:a,children:(0,zt.jsxs)(Zh,{ref:C,animated:c,className:It("nextui-table",f),color:l,css:r,hasPagination:x,hoverable:E,isMultiple:"multiple"===o,shadow:a,...Rn(P,b),children:[(0,zt.jsxs)(Qh,{as:"thead",isFixed:wm(k),children:[k.headerRows.map((e=>(0,zt.jsx)(im,{item:e,state:S,children:[...e.childNodes].map((e=>{var t;return null!=e&&null!=(t=e.props)&&t.isSelectionCell?(0,zt.jsx)(am,{animated:c,color:l,column:e,state:S},null==e?void 0:e.key):(0,zt.jsx)(om,{animated:c,column:e,state:S},null==e?void 0:e.key)}))},null==e?void 0:e.key))),!m&&(0,zt.jsx)(Dc,{as:"tr",className:"nextui-table-hidden-row",y:.4})]}),(0,zt.jsx)(Cm,{animated:c,collection:k,color:l,hasPagination:x,hideLoading:i,isStatic:!E,state:S}),x&&(0,zt.jsxs)(mm,{children:[(0,zt.jsx)(Dc,{as:"tr",className:"nextui-table-hidden-row",y:.6}),(0,zt.jsx)("tr",{role:"row",children:(0,zt.jsx)("th",{colSpan:k.columnCount,role:"columnheader",tabIndex:-1,children:v})})]})]})})})}));km.displayName="NextUI.Table",km.toString=()=>".nextui-table";const Pm=Et(km,{animated:!0,hideLoading:!1,selectionMode:"none",selectionBehavior:"toggle"}),Tm=Dh,Em=Ah,Mm=Nh,Im=Kh,zm=Rh;Pm.Cell=Tm,Pm.Column=Em,Pm.Header=Mm,Pm.Row=Im,Pm.Body=zm,Pm.Pagination=gm;const Lm=Pm;function Nm(...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)))}}function Bm(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:$=!0,shouldCloseOnBlur:f=!1,isKeyboardDismissDisabled:b=!1,disableAnimation:y=!1,shouldCloseOnInteractOutside:v}=e,x=(0,g.useRef)(null),w=(0,g.useRef)(null),S=t||x,C=r||w,k=function(e){let[t,r]=Il(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,setOpen:r,open(){r(!0)},close(){r(!1)},toggle(){r(!t)}}}({isOpen:n,defaultOpen:i,onOpenChange:s}),[P,T]=(0,g.useState)(!k.isOpen),E=(0,g.useMemo)((()=>k.isOpen?"open":"closed"),[k.isOpen]),M=(0,g.useCallback)((()=>{null==h||h(),k.close()}),[k,h]),I=(0,g.useCallback)((()=>{T(!1)}),[]),z=(0,g.useCallback)((()=>{T(!0)}),[]),{triggerProps:L,overlayProps:N}=function(e,t,r){let o,{type:n}=e,{isOpen:i}=t;(0,g.useEffect)((()=>{r&&r.current&&fo.set(r.current,t.close)})),"menu"===n?o=!0:"listbox"===n&&(o="listbox");let s=mr();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?s:null,onPress:t.toggle},overlayProps:{id:s}}}({type:m},k,C),B=(0,g.useMemo)((()=>(e=>e?e.replace("-"," "):"bottom")(p)),[p]),{overlayProps:R}=function(e){let{direction:t}=Rr(),{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]=(0,g.useState)({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),b=[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&&f(ho({placement:yo(i,t),overlayNode:o.current,targetNode:r.current,scrollNode:n.current,padding:s,shouldFlip:a,boundaryElement:l,offset:c,crossOffset:d,maxHeight:m}))}),b);var v;gr(y,b),gr((()=>(window.addEventListener("resize",v,!1),()=>{window.removeEventListener("resize",v,!1)})),[v=y]);let x=(0,g.useRef)(!1);gr((()=>{let e,t=()=>{x.current=!0,clearTimeout(e),e=setTimeout((()=>{x.current=!1}),500),y()};return null==bo||bo.addEventListener("resize",t),()=>{null==bo||bo.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||fo.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,...$.position,maxHeight:$.maxHeight}},placement:$.placement,arrowProps:{style:{left:$.arrowOffsetLeft,top:$.arrowOffsetTop}},updatePosition:y}}({isOpen:k.isOpen,targetRef:C,scrollRef:o,placement:B,overlayRef:S,shouldFlip:d,offset:u}),H=(0,g.useMemo)((()=>{var e;return!(null==(e=R.style)||!e.maxHeight)}),[R.style]),A=(0,g.useCallback)(((e={},t=null)=>({...null!=r&&r.current?Rn(L,e):Rn(e,L),ref:Nm(C,t)})),[C,r,L]),F=(0,g.useCallback)(((e={},t={})=>{const r=R.style?Object.keys(R.style):[];let o={};r.forEach((e=>{const r=ht(t)&&t[e];r&&(o={...o,[e]:r})}));const n=Object.keys(o).length>0?{...R,style:{...R.style,...o}}:R;return{css:t,...e,...N,...n,"data-state":E,"data-placement":p}}),[E,R,N,p]);return{state:k,exited:P,overlayRef:S,triggerRef:C,placement:p,disableShadow:c,disableAnimation:y,shouldCloseOnBlur:f,isDismissable:$,isBordered:a,borderWeight:l,isKeyboardDismissDisabled:b,shouldCloseOnInteractOutside:v,isOpen:k.isOpen,onClose:M,onExited:z,onEntered:I,triggerProps:L,overlayProps:N,positionProps:R,getTriggerProps:A,getPopoverProps:F,isPositioned:H}}const[Rm,Hm]=Al({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),Am=h().forwardRef(((e,t)=>{const{children:r,...o}=e,n=Bm({ref:t,...o}),[i,s]=h().Children.toArray(r),a=n.state.isOpen||!n.exited;return(0,zt.jsxs)(Rm,{value:n,children:[i,a&&(0,zt.jsx)(ko,{children:s})]})}));Am.toString=()=>".nextui-popover";const Fm=Am,Km=h().forwardRef(((e,t)=>{const{triggerRef:r,getTriggerProps:o}=Hm(),{children:n,...i}=e,s=(0,g.useMemo)((()=>"string"==typeof n?(0,zt.jsx)(xu,{children:n}):g.Children.only(n)),[n]),{onPress:a,onKeyDown:l,onPressStart:c,...d}=(0,g.useMemo)((()=>o(Rn(s.props,i),s.ref)),[o,s.props,i,s.ref]),{buttonProps:u}=Ms({onPress:a,onKeyDown:l,onPressStart:c,...d},r),[,p]=et(e.children,Fa),h=(0,g.useMemo)((()=>void 0!==(null==p?void 0:p[0])),[p]),m=(0,g.useMemo)((()=>({...d,onPress:a,onKeyDown:l,onPressStart:c})),[d,a,l,c]);return(0,g.cloneElement)(s,Rn(d,h?m:u))}));Km.toString=()=>".nextui-popover-trigger";const Wm=Km;"undefined"!=typeof window&&window.visualViewport;const Dm=new WeakMap;"undefined"!=typeof window&&window.visualViewport,"undefined"!=typeof window&&window.visualViewport,new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),new WeakMap;const jm=h().createContext(null);const Om=Ue({"0%":{opacity:0,transform:"translateZ(0) scale(0.95)"},"60%":{opacity:.75,backfaceVisibility:"hidden",webkitFontSmoothing:"antialiased",transform:"translateZ(0) scale(1.05)"},"100%":{opacity:1,transform:"translateZ(0) scale(1)"}}),Vm=Ue({"0%":{opacity:1,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(0.5)"}}),Um=je("div",{$$popoverMinWidth:"$space$fit",$$popoverMinHeight:"$space$fit",$$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:Om,animationTimingFunction:"ease-out",animationDirection:"normal",animationDuration:"300ms",animationFillMode:"both"},"&.nextui-popover-content-leave":{animationName:Vm,animationTimingFunction:"ease-in",animationDuration:"60ms",animationFillMode:"both"},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"}},isPositioned:{true:{visibility:"visible"},false:{visibility:"hidden"}},disableAnimation:{true:{transition:"none","&.nextui-popover-content-enter":{animation:"none"},"&.nextui-popover-content-leave":{animation:"none"}}}},defaultVariants:{isBordered:!1,borderWeight:"light"}},Bo),Gm=je("div",{}),_m=h().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:m,shouldCloseOnInteractOutside:$,getPopoverProps:f,isBordered:b,borderWeight:y,onClose:v,onEntered:x,onExited:w,isPositioned:S}=Hm(),C=(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),k=(0,g.useMemo)((()=>({transformOrigin:C,...n})),[C,n]),{modalProps:P}=function(e){let t=(0,g.useContext)(xo);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)}}}({isDisabled:!0}),{dialogProps:T}=function(e,t){let{role:r="dialog"}=e,o=ii();o=e["aria-label"]?void 0:o;let n=(0,g.useRef)(!1);return(0,g.useEffect)((()=>{if(t.current&&!t.current.contains(document.activeElement)){bs(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(n.current=!0,t.current.blur(),bs(t.current),n.current=!1)}),500);return()=>{clearTimeout(e)}}}),[t]),function(){let e=(0,g.useContext)(jm),t=null==e?void 0:e.setContain;ti((()=>{null==t||t(!0)}),[t])}(),{dialogProps:{...ui(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:e=>{n.current&&e.stopPropagation()}},titleProps:{id:o}}}({role:"dialog"},c),{overlayProps:E}=function(e,t){let{onClose:r,shouldCloseOnBlur:o,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:a}=e;(0,g.useEffect)((()=>(n&&vo.push(t),()=>{let e=vo.indexOf(t);e>=0&&vo.splice(e,1)})),[n,t]);let l=()=>{vo[vo.length-1]===t&&r&&r()};!function(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=>{Zr(e,t)&&i.onInteractOutside&&(i.onInteractOutsideStart&&i.onInteractOutsideStart(e),i.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let r=e=>{i.isPointerDown&&i.onInteractOutside&&Zr(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&&Zr(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))},o=e=>{i.ignoreEmulatedMouseEvents=!0,i.onInteractOutside&&i.isPointerDown&&Zr(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])}({ref:t,onInteractOutside:i?e=>{a&&!a(e.target)||(vo[vo.length-1]===t&&(e.stopPropagation(),e.preventDefault()),l())}:null,onInteractOutsideStart:e=>{a&&!a(e.target)||vo[vo.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=Xr({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()}}}}({onClose:v,isOpen:a.isOpen,isDismissable:h&&a.isOpen,shouldCloseOnBlur:p,isKeyboardDismissDisabled:m,shouldCloseOnInteractOutside:$},c),M=Rn({isBordered:b,disableShadow:u,borderWeight:y},s),{isFocusVisible:I,focusProps:z}=Pn(),L=(0,g.useMemo)((()=>({clearTime:d?0:300,enterTime:d?0:20,leaveTime:d?0:60,name:"nextui-popover-content",visible:a.isOpen,onEntered:x,onExited:w})),[d,a.isOpen]),N=(0,zt.jsxs)(Um,{ref:Nm(c,t),...f(Rn(E,P,T,z,M),k),as:o,className:It("nextui-popover-content-container",i),disableAnimation:d,isFocusVisible:I,isPositioned:S,children:[(0,zt.jsx)(To,{onDismiss:v}),(0,zt.jsx)(Gm,{className:"nextui-popover-content",children:r}),(0,zt.jsx)(To,{onDismiss:v})]});return(0,zt.jsx)(zt.Fragment,{children:(0,zt.jsx)(mn,{restoreFocus:!0,children:(0,zt.jsx)(Oc,{...L,children:N})})})}));_m.toString=()=>".nextui-popover-content";const qm=_m;Fm.Content=qm,Fm.Trigger=Wm;const Ym=Fm;function Xm(e){return null}function Zm(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&h().Children.count(e.children)>0)}Xm.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:Zm(e),*childNodes(){if(r)for(let e of r)yield{type:"item",value:e};else if(o){let e=[];h().Children.forEach(n,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let Jm=Xm;function Qm(e){return null}Qm.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=[];h().Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let e$=Qm;new WeakMap;const t$=Jm;t$.toString=()=>".nextui-dropdown-item-base";const r$=t$,[o$,n$]=Al({name:"DropdownContext",errorMessage:"useDropdownContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Dropdown />`"}),i$=h().forwardRef(((e,t)=>{const{children:r,...o}=e,{getMenuTriggerProps:n}=n$();return(0,zt.jsx)(Ym.Trigger,{...n(o),children:r})}));i$.toString=()=>".nextui-dropdown-trigger";const s$=i$;function a$(e){return e&&e.__esModule?e.default:e}var l$;l$={"ar-AE":{longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"},"bg-BG":{longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"},"cs-CZ":{longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"},"da-DK":{longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"},"de-DE":{longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"},"el-GR":{longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"},"et-EE":{longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"},"it-IT":{longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"},"ja-JP":{longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"},"ko-KR":{longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"},"lt-LT":{longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."},"lv-LV":{longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"},"sk-SK":{longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"},"tr-TR":{longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"},"uk-UA":{longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"},"zh-CN":{longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"},"zh-TW":{longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"}};const c$=new WeakMap;function d$(e,t,r){let{key:o,closeOnSelect:n,isVirtualized:i}=e;var s;let a=null!==(s=e.isDisabled)&&void 0!==s?s:t.disabledKeys.has(o);var l;let c=null!==(l=e.isSelected)&&void 0!==l?l:t.selectionManager.isSelected(o),d=t.selectionManager.focusedKey===o,u=c$.get(t),p=e.onClose||u.onClose,h=e.onAction||u.onAction,m="menuitem";"single"===t.selectionManager.selectionMode?m="menuitemradio":"multiple"===t.selectionManager.selectionMode&&(m="menuitemcheckbox");let $=ii(),f=ii(),b=ii(),y={"aria-disabled":a,role:m,"aria-label":e["aria-label"],"aria-labelledby":$,"aria-describedby":[f,b].filter(Boolean).join(" ")||void 0};"none"!==t.selectionManager.selectionMode&&(y["aria-checked"]=c),i&&(y["aria-posinset"]=t.collection.getItem(o).index,y["aria-setsize"]=xh(t.collection));let{itemProps:v}=Og({selectionManager:t.selectionManager,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0}),{pressProps:x,isPressed:w}=Ki({onPressStart:e=>{"keyboard"===e.pointerType&&h&&h(o)},onPressUp:e=>{"keyboard"!==e.pointerType&&(h&&h(o),p&&(null!=n?n:"multiple"!==t.selectionManager.selectionMode)&&p())},isDisabled:a}),{hoverProps:S}=function(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=>{ds&&"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||ds||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}}({isDisabled:a,onHoverStart(){cs()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}});return{menuItemProps:{...y,...ai(v,x,S,{onKeyDown:e=>{if(!e.repeat)switch(e.key){case" ":!a&&"none"===t.selectionManager.selectionMode&&!1!==n&&p&&p();break;case"Enter":!a&&!1!==n&&p&&p()}}})},labelProps:{id:$},descriptionProps:{id:f},keyboardShortcutProps:{id:b},isFocused:d,isSelected:c,isPressed:w,isDisabled:a}}var u$=Symbol.iterator;class p${*[u$](){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}}const g$=je("ul",{$$dropdownItemHeight:"$space$13",$$dropdownMenuPadding:"$space$4",$$dropdownMenuWidth:"250px",$$dropdownMenuMinWidth:"250px",listStyle:"none",position:"relative",maxWidth:"$$dropdownMenuWidth",minWidth:"$$dropdownMenuMinWidth",width:"100%",p:"$$dropdownMenuPadding",m:0,outline:"none"}),h$=je("span",{dflex:"center",flexShrink:0,mr:"$4"}),m$=je("kbd",{opacity:.8,ml:"$4",mr:0,dflex:"center",color:"$$dropdownItemKeyboardColor",fontSize:"$xs",fontFamily:"$sans",boxShadow:"none",bg:"transparent",transition:"border 0.12s ease 0s"}),$$=je("div",{d:"flex",flex:"1 1 0%",flexDirection:"column",alignItems:"flex-start",lineHeight:1.2}),f$=je("span",{flex:"1 1 0%"}),b$=je("span",{fontSize:"$xs",color:"$$dropdownItemDescriptionColor",truncateText:"calc($$dropdownMenuWidth * 0.9)",transition:"color 0.12s 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)"}}]}),y$=je("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",[`& ${m$}`]:{transition:"none"},[`& ${b$}`]:{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",zIndex:"$1",[`& ${m$}`]:{color:"$$dropdownItemHoverTextColor",borderColor:"$$dropdownItemHoverBorderColor"},[`& ${b$}`]:{color:"currentColor"}}},isHovered:{true:{bg:"$$dropdownItemHoverBackground",color:"$$dropdownItemHoverTextColor",[`& ${m$}`]:{color:"$$dropdownItemHoverTextColor",borderColor:"$$dropdownItemHoverBorderColor"},[`& ${b$}`]:{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"}},showFullDescription:{true:{[`& ${b$}`]:{mt:"$2",overflow:"visible",textOverflow:"visible",whiteSpace:"normal"}}},disableAnimation:{true:{transition:"none",[`& ${m$}`]:{transition:"none"},[`& ${b$}`]:{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",[`& ${m$}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isFocused:!0,variant:"solid",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",[`& ${m$}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isHovered:!0,variant:"shadow",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",boxShadow:"0 3px 10px 0 $$dropdownItemShadow",[`& ${m$}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isFocused:!0,variant:"shadow",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",boxShadow:"0 3px 10px 0 $$dropdownItemShadow",[`& ${m$}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{variant:"flat",color:"default",css:{$$dropdownItemHoverTextColor:"$colors$foreground"}}],defaultVariants:{color:"default",textColor:"default",dividerWeight:"light",variant:"flat"}},Bo),v$=je("li",{mb:0}),x$=je("ul",{m:0,p:0,listStyle:"none"}),w$=je("span",{fontWeight:"$medium",fontSize:"$xs",padding:"0 $4",color:"$accents8"}),S$=Ue({"100%":{strokeDashoffset:0}}),C$=je("svg",{d:"block",path:{transformOrigin:"50% 50%",strokeDasharray:48,strokeDashoffset:48,animation:`${S$} .25s cubic-bezier(0.650, 0.000, 0.450, 1.000) forwards`}}),k$=e=>{const{width:t=24,height:r=24,size:o,strokeWidth:n=3,fill:i="currentColor",css:s,className:a}=e;return(0,zt.jsx)(C$,{className:It("nextui-checkmark",a),css:s,height:o||r,role:"img",viewBox:"0 0 52 52",width:o||t,xmlns:"http://www.w3.org/2000/svg",children:(0,zt.jsx)("path",{d:"M14.1 27.2l7.1 7.2 16.7-16.8",fill:"none",stroke:i,strokeWidth:n})})};k$.toString=()=>".nextui-checkmark";const P$=k$,T$=({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,showFullDescription:m,className:$,onAction:f})=>{const{onClose:b,closeOnSelect:y,disableAnimation:v,borderWeight:x}=n$(),{rendered:w,key:S}=r,C=o.selectionManager.isSelected(S),k=o.selectionManager.focusedKey===r.key,P=o.disabledKeys.has(S),T=(0,g.useRef)(null),{pressProps:E,isPressed:M}=Xs({ref:T,isDisabled:P}),{isFocusVisible:I,focusProps:z}=Pn({autoFocus:d}),{hoverProps:L,isHovered:N}=Sa({isDisabled:P}),B="none"!==o.selectionManager.selectionMode&&!P,{menuItemProps:R,labelProps:H,descriptionProps:A,keyboardShortcutProps:F}=d$({key:S,onClose:b,isSelected:C,isDisabled:P,"aria-label":r["aria-label"],closeOnSelect:y,isVirtualized:u,onAction:f},o,T),K=(0,g.useMemo)((()=>N?"hovered":C?"selected":M?"pressed":P?"disabled":"ready"),[C,P,N,M]),W=(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]),D=(0,g.useMemo)((()=>a||r.props.description),[a,r.props.description]),j=(0,g.useMemo)((()=>s||r.props.command),[s,r.props.command]),O=(0,g.useMemo)((()=>i||r.props.icon),[i,r.props.icon]);return(0,zt.jsxs)(y$,{ref:T,...Rn(R,L,E,z),as:r.props.as||e,className:It("nextui-dropdown-item",{"is-disabled":P,"is-selected":C,"is-selectable":B,"is-hovered":N,"is-focused":k,"is-pressed":M},$,r.props.className),color:r.props.color||n,css:{...Rn(t,r.props.css)},"data-state":K,disableAnimation:v,dividerWeight:h||r.props.dividerWeight||x,isDisabled:P,isFocusVisible:I,isFocused:k,isHovered:N,isPressed:M,isSelectable:B,isSelected:C,shouldShowOutline:I&&"shadow"===c,showFullDescription:m||r.props.showFullDescription,textColor:W,variant:r.props.variant||c,withDescription:!!D,withDivider:p||r.props.withDivider,children:[O&&(0,zt.jsx)(h$,{className:"nextui-dropdown-item-icon-wrapper",children:O}),D?(0,zt.jsxs)($$,{children:[(0,zt.jsx)(f$,{className:"nextui-dropdown-item-content",...H,children:w}),(0,zt.jsx)(b$,{className:"nextui-dropdown-item-description",hasCommand:!!j,hasIcon:!!O,...A,children:D})]}):(0,zt.jsx)(f$,{className:"nextui-dropdown-item-content",...H,children:w}),j&&(0,zt.jsx)(m$,{className:"nextui-dropdown-item-command",...F,children:j}),C&&(0,zt.jsx)(P$,{css:{ml:"$4"}})]})};T$.toString=()=>".nextui-dropdown-item";const E$=T$,M$=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:$}=function(e){let{heading:t,"aria-label":r}=e,o=oi();return{itemProps:{role:"presentation"},headingProps:t?{id:o,"aria-hidden":!0}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?o:void 0}}}({heading:o.rendered,"aria-label":o["aria-label"]});return(0,zt.jsxs)(g.Fragment,{children:[o.key!==n.collection.getFirstKey()&&d&&(0,zt.jsx)(Za,{as:"li",className:"nextui-dropdown-section-divider",css:{my:"$2"}}),(0,zt.jsxs)(v$,{...h,className:"nextui-dropdown-section-wrapper",children:[o.rendered&&(0,zt.jsx)(w$,{...m,className:"nextui-dropdown-section-title",children:o.rendered}),(0,zt.jsx)(x$,{...$,as:(null==(t=o.props)?void 0:t.as)||s,className:It("nextui-dropdown-section",u),css:{...Rn(i,null==(r=o.props)?void 0:r.css)},children:[...o.childNodes].map((e=>{let t=(0,zt.jsx)(E$,{color:a,item:e,state:n,textColor:l,variant:c,onAction:p},e.key);return e.wrapper&&(t=e.wrapper(t)),t}))})]})]})};M$.toString=()=>".nextui-dropdown-section";const I$=M$,z$=h().forwardRef(((e,t)=>{const{as:r,css:o,color:n="default",textColor:i="default",variant:s="flat",containerCss:a,...l}=e,c=n$(),d={...Rn(c,l)},u=Kn(t),p=function(e){let[t,r]=Il(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),o=Sh(e),n=(0,g.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),i=yh(e,(e=>new p$(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 kh(i,o)}}(d),{menuProps:h}=function(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=ui(e,{labelable:!0}),{listProps:s}=function(e){let{selectionManager:t,collection:r,disabledKeys:o,ref:n,keyboardDelegate:i,autoFocus:s,shouldFocusWrap:a,isVirtualized:l,disallowEmptySelection:c,selectOnFocus:d="replace"===t.selectionBehavior,disallowTypeAhead:u,shouldUseVirtualFocus:p,allowsTabNavigation:h}=e,m=qd({usage:"search",sensitivity:"base"}),$=t.disabledBehavior,f=(0,g.useMemo)((()=>i||new Gg(r,"selection"===$?new Set:o,n,m)),[i,r,o,n,m,$]),{collectionProps:b}=jg({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}}({...n,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:o});return c$.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:ai(i,{role:"menu",...s})}}(d,p,u);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])}(c,u),(0,zt.jsx)(Ym.Content,{css:a,children:(0,zt.jsx)(g$,{ref:u,as:r,className:It("nextui-dropdown-menu",e.className),css:o,...h,children:[...p.collection].map((e=>{if("section"===e.type)return(0,zt.jsx)(I$,{color:n,item:e,state:p,textColor:i,variant:s,onAction:d.onAction},e.key);let t=(0,zt.jsx)(E$,{color:n,item:e,state:p,textColor:i,variant:s,onAction:d.onAction},e.key);return e.wrapper&&(t=e.wrapper(t)),t}))})})}));z$.toString=()=>".nextui-dropdown-menu";const L$=z$,N$=({fill:e,size:t,height:r,width:o,...n})=>(0,zt.jsx)("svg",{fill:"none",height:t||r||24,viewBox:"0 0 24 24",width:t||o||24,xmlns:"http://www.w3.org/2000/svg",...n,children:(0,zt.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})});N$.toString=()=>".nextui-dropdown-icon";const B$=N$,R$=h().forwardRef(((e,t)=>{const{css:r,children:o,className:n,iconRight:i,iconRightCss:s,auto:a=!0,animated:l,...c}=e,{disableAnimation:d}=n$(),u=Kn(t),p=(0,g.useMemo)((()=>i||(0,zt.jsx)(B$,{fill:"currentColor",size:14})),[i]),h=(0,g.useMemo)((()=>l||!d),[l,d]);return(0,zt.jsx)(s$,{css:{"& .nextui-button-icon-right, & .nextui-button-text-right":{pointerEvents:"none"},...r},children:(0,zt.jsx)(Fa,{ref:u,animated:h,auto:a,className:It("nextui-dropdown-button",n),iconRight:p,iconRightCss:{mt:"$1",...s},...c,children:o})})}));R$.toString=()=>".nextui-dropdown-button";const H$=R$;const A$=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,disableTriggerPressedAnimation:l=!1,isOpen:c,defaultOpen:d,onOpenChange:u,...p}=e,h=(0,g.useRef)(null),m=t||h,$=(0,g.useRef)(null),f=(0,g.useRef)(null),b=function(e){let t=function(e){let[t,r]=Il(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,setOpen:r,open(){r(!0)},close(){r(!1)},toggle(){r(!t)}}}(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()}}}({...e,isOpen:c,defaultOpen:d,onOpenChange:u}),{menuTriggerProps:y,menuProps:v}=function(e,t,r){let{type:o="menu",isDisabled:n,trigger:i="press"}=e,s=oi(),{triggerProps:a,overlayProps:l}=function(e,t,r){let o,{type:n}=e,{isOpen:i}=t;(0,g.useEffect)((()=>{r&&r.current&&Dm.set(r.current,t.close)})),"menu"===n?o=!0:"listbox"===n&&(o="listbox");let s=oi();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?s:null,onPress:t.toggle},overlayProps:{id:s}}}({type:o},t,r),c=Gd(a$(l$)),{longPressProps:d}=fs({isDisabled:n||"longPress"!==i,accessibilityDescription:c.format("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 delete a.onPress,{menuTriggerProps:{...a,..."press"===i?u:d,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,autoFocus:t.focusStrategy,onClose:t.close}}}({type:r,trigger:o,isDisabled:n},b,m),x=(0,g.useCallback)((()=>{b.close(),null==p.onClose||p.onClose()}),[b.close,p.onClose]),w=(0,g.useCallback)(((e={},r=null)=>{const{css:o,...n}=null!=t&&t.current?Rn(y,e):Rn(e,y);return{ref:Nm(h,r),css:l?o:{'&[aria-haspopup="true"]&[aria-expanded="true"]':{opacity:.7,backfaceVisibility:"hidden",transform:"translateZ(0) scale(0.97)"},...o},...n}}),[h,t,y,l]);return{...v,popoverProps:p,state:b,ref:$,onClose:x,autoFocus:b.focusStrategy||!0,disableAnimation:a,disableTriggerPressedAnimation:l,menuRef:$,borderWeight:i,menuPopoverRef:f,menuTriggerRef:m,closeOnSelect:s,getMenuTriggerProps:w}}(r),[n,i]=h().Children.toArray(t);return(0,zt.jsx)(o$,{value:o,children:(0,zt.jsxs)(Ym,{ref:o.menuPopoverRef,...o.popoverProps,borderWeight:o.borderWeight,disableAnimation:o.disableAnimation,isOpen:o.state.isOpen,scrollRef:o.menuRef,triggerRef:o.menuTriggerRef,onClose:o.onClose,children:[n,i]})})};A$.toString=()=>".nextui-dropdown";const F$=A$;F$.Trigger=s$,F$.Button=H$,F$.Menu=L$,F$.Section=e$,F$.Item=r$;const K$=F$,W$=Ue({"0%":{opacity:1},"50%":{opacity:"0.4",transform:"scale(0.5)"},"100%":{opacity:1}}),D$=Ue({"0%":{opacity:0,transform:"scale(0.2) translate(50%, -50%)"},"60%":{opacity:.75,transform:"scale(1.2) translate(50%, -50%)"},"100%":{opacity:1,transform:"scale(1) translate(50%, -50%)"}}),j$=Ue({"0%":{opacity:1,transform:"scale(1) translate(50%, -50%)"},"100%":{opacity:0,transform:"scale(0.2) translate(50%, -50%)"}}),O$=Ue({"0%":{opacity:0,transform:"scale(0.2) translate(-50%, -50%)"},"60%":{opacity:.75,transform:"scale(1.2) translate(-50%, -50%)"},"100%":{opacity:1,transform:"scale(1) translate(-50%, -50%)"}}),V$=Ue({"0%":{opacity:1,transform:"scale(1) translate(-50%, -50%)"},"100%":{opacity:0,transform:"scale(0.2) translate(-50%, -50%)"}}),U$=Ue({"0%":{opacity:0,transform:"scale(0.2) translate(50%, 50%)"},"60%":{opacity:.75,transform:"scale(1.2) translate(50%, 50%)"},"100%":{opacity:1,transform:"scale(1) translate(50%, 50%)"}}),G$=Ue({"0%":{opacity:1,transform:"scale(1) translate(50%, 50%)"},"100%":{opacity:0,transform:"scale(0.2) translate(50%, 50%)"}}),_$=Ue({"0%":{opacity:0,transform:"scale(0.2) translate(-50%, 50%)"},"60%":{opacity:.75,transform:"scale(1.2) translate(-50%, 50%)"},"100%":{opacity:1,transform:"scale(1) translate(-50%, 50%)"}}),q$=Ue({"0%":{opacity:1,transform:"scale(1) translate(-50%, 50%)"},"100%":{opacity:0,transform:"scale(0.2) translate(-50%, 50%)"}}),Y$=je("span",{d:"inline-flex",flexShrink:0,verticalAlign:"middle",position:"relative",overflow:"visible"}),X$=je("span",{$$badgePlacementHOffset:"0%",$$badgePlacementVOffset:"0%",lineHeight:1,display:"flex",flexFlow:"row wrap",placeContent:"center",alignItems:"center",boxSizing:"border-box",whiteSpace:"nowrap",bg:"$$badgeBackgroundColor",color:"$$badgeTextColor",fontWeight:"$bold",fontSize:"$$badgeFontSize",p:"$$badgeVPadding $$badgeHPadding","@motion":{animation:"none",transition:"none","&.nextui-badge--is-invisible":{animation:"none",transition:"none"}},variants:{size:{xs:{$$badgeVPadding:"$space$2",$$badgeHPadding:"$space$2",$$badgeFontSize:"0.65rem"},sm:{$$badgeVPadding:"$space$2",$$badgeHPadding:"$space$3",$$badgeFontSize:"0.73rem"},md:{$$badgeVPadding:"$space$3",$$badgeHPadding:"$space$4",$$badgeFontSize:"$fontSizes$xs"},lg:{$$badgeVPadding:"$space$4",$$badgeHPadding:"$space$5",$$badgeFontSize:"$fontSizes$base"},xl:{$$badgeVPadding:"$space$5",$$badgeHPadding:"$space$6",$$badgeFontSize:"$fontSizes$xl"}},shape:{circle:{},rectangle:{}},asChild:{true:{zIndex:"$2",position:"absolute",lineHeight:1.5}},isOneChar:{true:{}},color:{default:{$$badgeBackgroundColor:"$colors$neutral",$$badgeTextColor:"$colors$neutralSolidContrast",$$badgeShadowColor:"$colors$neutralShadow"},primary:{$$badgeBackgroundColor:"$colors$primary",$$badgeTextColor:"$colors$primarySolidContrast",$$badgeShadowColor:"$colors$primaryShadow"},secondary:{$$badgeBackgroundColor:"$colors$secondary",$$badgeTextColor:"$colors$secondarySolidContrast",$$badgeShadowColor:"$colors$secondaryShadow"},success:{$$badgeBackgroundColor:"$colors$success",$$badgeTextColor:"$colors$successSolidContrast",$$badgeShadowColor:"$colors$successShadow"},warning:{$$badgeBackgroundColor:"$colors$warning",$$badgeTextColor:"$colors$warningSolidContrast",$$badgeShadowColor:"$colors$warningShadow"},error:{$$badgeBackgroundColor:"$colors$error",$$badgeTextColor:"$colors$errorSolidContrast",$$badgeShadowColor:"$colors$errorShadow"}},enableShadow:{true:{boxShadow:"0 2px 10px 0 $$badgeShadowColor"}},isSquared:{true:{borderRadius:"calc($$badgeFontSize * 0.45)"},false:{borderRadius:"$pill"}},placement:{"top-right":{animation:`${D$} 0.25s ease-out`,"&.nextui-badge--is-invisible":{opacity:0,animation:`${j$} 0.2s ease-in`}},"top-left":{animation:`${O$} 0.25s ease-out`,"&.nextui-badge--is-invisible":{opacity:0,animation:`${V$} 0.2s ease-in`}},"bottom-right":{animation:`${U$} 0.25s ease-out`,"&.nextui-badge--is-invisible":{opacity:0,animation:`${G$} 0.2s ease-in`}},"bottom-left":{animation:`${_$} 0.25s ease-out`,"&.nextui-badge--is-invisible":{opacity:0,animation:`${q$} 0.2s ease-in`}}},variant:{default:{},flat:{},dot:{p:0,dflex:"center",minSize:"$$badgeFontSize",boxSizing:"border-box"},points:{p:"calc($$badgeFontSize * 0.4)",boxSizing:"border-box",$$badgePlacementHOffset:"calc($$badgeFontSize * 0.8)"},bordered:{$$badgeBackgroundColor:"$colors$background",bg:"$background",bw:"$$badgeBorderWeight",borderStyle:"solid",borderColor:"$$badgeTextColor"}},borderWeight:{light:{$$badgeBorderWeight:"$borderWeights$light"},normal:{$$badgeBorderWeight:"$borderWeights$normal"},bold:{$$badgeBorderWeight:"$borderWeights$bold"},extrabold:{$$badgeBorderWeight:"$borderWeights$extrabold"},black:{$$badgeBorderWeight:"$borderWeights$black"}},disableOutline:{true:{border:"2px solid transparent"},false:{border:"2px solid $colors$background"}},disableAnimation:{true:{animation:"none",transition:"none","&.nextui-badge--is-invisible":{animation:"none",transition:"none"}}}},compoundVariants:[{variant:"flat",color:"default",css:{$$badgeBackgroundColor:"$colors$neutralLight",$$badgeTextColor:"$colors$neutralLightContrast"}},{variant:"flat",color:"primary",css:{$$badgeBackgroundColor:"$colors$primaryLight",$$badgeTextColor:"$colors$primaryLightContrast"}},{variant:"flat",color:"secondary",css:{$$badgeBackgroundColor:"$colors$secondaryLight",$$badgeTextColor:"$colors$secondaryLightContrast"}},{variant:"flat",color:"success",css:{$$badgeBackgroundColor:"$colors$successLight",$$badgeTextColor:"$colors$successLightContrast"}},{variant:"flat",color:"warning",css:{$$badgeBackgroundColor:"$colors$warningLight",$$badgeTextColor:"$colors$warningLightContrast"}},{variant:"flat",color:"error",css:{$$badgeBackgroundColor:"$colors$errorLight",$$badgeTextColor:"$colors$errorLightContrast"}},{variant:"bordered",color:"default",css:{$$badgeTextColor:"$colors$neutral"}},{variant:"bordered",color:"primary",css:{$$badgeTextColor:"$colors$primary"}},{variant:"bordered",color:"secondary",css:{$$badgeTextColor:"$colors$secondary"}},{variant:"bordered",color:"success",css:{$$badgeTextColor:"$colors$success"}},{variant:"bordered",color:"warning",css:{$$badgeTextColor:"$colors$warning"}},{variant:"bordered",color:"error",css:{$$badgeTextColor:"$colors$error"}},{asChild:!0,shape:"rectangle",placement:"top-right",css:{top:"calc(5% + $$badgePlacementVOffset)",right:"calc(5% + $$badgePlacementHOffset)",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"}},{asChild:!0,shape:"rectangle",placement:"top-left",css:{top:"calc(5% + $$badgePlacementVOffset)",left:"calc(5% + $$badgePlacementHOffset)",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"}},{asChild:!0,shape:"rectangle",placement:"bottom-right",css:{bottom:"calc(5% + $$badgePlacementVOffset)",right:"calc(5% + $$badgePlacementHOffset)",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"}},{asChild:!0,shape:"rectangle",placement:"bottom-left",css:{bottom:"calc(5% + $$badgePlacementVOffset)",left:"calc(5% + $$badgePlacementHOffset)",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"}},{asChild:!0,shape:"circle",placement:"top-right",css:{top:"calc(15% + $$badgePlacementVOffset)",right:"calc(15% + $$badgePlacementHOffset)",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"}},{asChild:!0,shape:"circle",placement:"top-left",css:{top:"calc(15% + $$badgePlacementVOffset)",left:"calc(15% + $$badgePlacementHOffset)",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"}},{asChild:!0,shape:"circle",placement:"bottom-right",css:{bottom:"calc(15% + $$badgePlacementVOffset)",right:"calc(15% + $$badgePlacementHOffset)",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"}},{asChild:!0,shape:"circle",placement:"bottom-left",css:{bottom:"calc(15% + $$badgePlacementVOffset)",left:"calc(15% + $$badgePlacementHOffset)",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"}},{variant:"dot",shape:"rectangle",css:{$$badgePlacementHOffset:"calc($$badgeFontSize * 0.2)",$$badgePlacementVOffset:"calc($$badgeFontSize * 0.1)"}},{isOneChar:!0,asChild:!0,css:{p:0,size:"calc($$badgeFontSize + $$badgeHPadding)"}},{isOneChar:!1,asChild:!0,css:{$$badgeVPadding:"0px",$$badgeHPadding:"$space$2"}},{isOneChar:!1,asChild:!0,size:"md",css:{$$badgeHPadding:"$space$3"}},{isOneChar:!1,asChild:!0,size:"lg",css:{$$badgeHPadding:"$space$4"}},{isOneChar:!1,asChild:!0,size:"xl",css:{$$badgeHPadding:"$space$5"}},{disableOutline:!0,variant:"bordered",css:{borderColor:"$$badgeTextColor"}}],defaultVariants:{size:"md",color:"default",variant:"default",borderWeight:"normal",placement:"top-right",shape:"rectangle",enableShadow:!1,disableOutline:!1,isSquared:!1}}),Z$=je("div",{position:"relative",dflex:"center","& .nextui-badge-point":{size:"calc($$badgeFontSize * 0.3)",background:"$$badgeTextColor",margin:"0 2px",borderRadius:"$pill","&:nth-child(1)":{animation:`${W$} 1.2s ease infinite`},"&:nth-child(2)":{animation:`${W$} 1.2s ease infinite 0.4s`},"&:nth-child(3)":{animation:`${W$} 1.2s ease infinite 0.8s`}}}),J$=Ca(((e,t)=>{const{css:r,children:o,content:n,isInvisible:i=!1,disableOutline:s,placement:a="top-right",variant:l="default",verticalOffset:c,horizontalOffset:d,disableAnimation:u=!1,className:p,...h}=e,m=Kn(t),$=void 0!==n&&!!o,f=g.useMemo((()=>{var e;return $&&n&&"points"!==l&&"dot"!==l?1===(null==(e=String(n))?void 0:e.length):!(!o||"string"!=typeof o)&&1===o.length}),[$,o,l,n]),b=g.useMemo((()=>"dot"===l?null:"points"===l?(0,zt.jsxs)(Z$,{className:"nextui-badge-points",children:[(0,zt.jsx)("span",{className:"nextui-badge-point"}),(0,zt.jsx)("span",{className:"nextui-badge-point"}),(0,zt.jsx)("span",{className:"nextui-badge-point"})]}):$?n:o),[l,f,$,n,o]),y=g.useMemo((()=>{const e="number"==typeof d,t="number"==typeof c;return c&&d?{$$badgePlacementHOffset:e?`${d}px`:d,$$badgePlacementVOffset:t?`${c}px`:c,...r}:c?{$$badgePlacementVOffset:t?`${c}px`:c,...r}:d?{$$badgePlacementHOffset:e?`${d}px`:d,...r}:r}),[c,d,r]);return(0,zt.jsxs)(Y$,{ref:m,className:It("nextui-badge-root",p),children:[$&&o,(0,zt.jsx)(X$,{asChild:$,className:It("nextui-badge",{"nextui-badge--is-invisible":i}),css:y,disableAnimation:u||!$,disableOutline:"bordered"===l||s,isOneChar:f,placement:a,variant:l,...h,children:b})]})}));J$.toString=()=>".nextui-badge";const Q$=J$,ef={default:{$$navbarItemActiveColor:"$colors$link",$$navbarItemHighlightBackgroundColor:"$colors$primaryLight",$$navbarItemHighlightTextColor:"$colors$primaryLightContrast",$$navbarItemHighlightSolidBackgroundColor:"$colors$primary",$$navbarItemHighlightSolidTextColor:"$colors$primarySolidContrast"},neutral:{$$navbarItemActiveColor:"$colors$neutral",$$navbarItemHighlightBackgroundColor:"$colors$neutralLight",$$navbarItemHighlightTextColor:"$colors$text",$$navbarItemHighlightSolidBackgroundColor:"$colors$neutral",$$navbarItemHighlightSolidTextColor:"$colors$neutralSolidContrast"},primary:{$$navbarItemActiveColor:"$colors$primary",$$navbarItemHighlightBackgroundColor:"$colors$primaryLight",$$navbarItemHighlightTextColor:"$colors$primaryLightContrast",$$navbarItemHighlightSolidBackgroundColor:"$colors$primary",$$navbarItemHighlightSolidTextColor:"$colors$primarySolidContrast"},secondary:{$$navbarItemActiveColor:"$colors$secondary",$$navbarItemHighlightBackgroundColor:"$colors$secondaryLight",$$navbarItemHighlightTextColor:"$colors$secondaryLightContrast",$$navbarItemHighlightSolidBackgroundColor:"$colors$secondary",$$navbarItemHighlightSolidTextColor:"$colors$secondarySolidContrast"},success:{$$navbarItemActiveColor:"$colors$success",$$navbarItemHighlightBackgroundColor:"$colors$successLight",$$navbarItemHighlightTextColor:"$colors$successLightContrast",$$navbarItemHighlightSolidBackgroundColor:"$colors$success",$$navbarItemHighlightSolidTextColor:"$colors$successSolidContrast"},warning:{$$navbarItemActiveColor:"$colors$warning",$$navbarItemHighlightBackgroundColor:"$colors$warningLight",$$navbarItemHighlightTextColor:"$colors$warningLightContrast",$$navbarItemHighlightSolidBackgroundColor:"$colors$warning",$$navbarItemHighlightSolidTextColor:"$colors$warningSolidContrast"},error:{$$navbarItemActiveColor:"$colors$error",$$navbarItemHighlightBackgroundColor:"$colors$errorLight",$$navbarItemHighlightTextColor:"$colors$errorLightContrast",$$navbarItemHighlightSolidBackgroundColor:"$colors$error",$$navbarItemHighlightSolidTextColor:"$colors$errorSolidContrast"}},tf=je("li",{mb:0,display:"flex",alignItems:"center",listStyleType:"none",lineHeight:"inherit"}),rf=je("ul",{m:0,listStyle:"none",lineHeight:"$xs",li:{mb:0}}),of=je(tf,{opacity:0,paddingBottom:"$6",fontSize:"$lg",lineHeight:"$lg",fontWeight:"$normal",transformOrigin:"top",variants:{activeColor:ef,isActive:{true:{color:"$$navbarItemActiveColor",fontWeight:"$semibold"}},disableAnimation:{true:{transition:"none"}}},defaultVariants:{activeColor:"default"}}),nf=je(rf,{py:"$8",px:"$$navbarPadding",overflowY:"scroll",maxHeight:"100%"}),sf=je("div",{$$navbarListColor:"$colors$text",$$navbarListBackgroundColor:"$colors$background",$$navbarListBlurBackgroundColor:"$colors$backgroundAlpha",$$navbarListBlur:"16px",position:"absolute",top:0,left:0,right:0,background:"$$navbarListBackgroundColor",width:"100%",height:"0px",zIndex:"$4",boxSizing:"border-box",overflow:"hidden",variants:{isOpen:{true:{top:"$$navbarHeight",pb:"$$navbarHeight",height:"100vh"}},disableBlur:{false:{"@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none))":{bg:"$$navbarListBlurBackgroundColor",backdropFilter:"saturate(180%) blur($$navbarListBlur)","@media screen and (-webkit-min-device-pixel-ratio:0)":{[`& ${nf}`]:{bg:"$$navbarListBlurBackgroundColor",backdropFilter:"saturate(180%) blur($$navbarListBlur)"}}}}},disableAnimation:{true:{[`& ${of}`]:{transition:"none"}}}},defaultVariants:{disableBlur:"false"}},Ko),af=je("div",{dflex:"center",flexDirection:"column",pointerEvents:"none",size:"22px","& .line":{height:"1px",width:"100%",backgroundColor:"$$navbarTextColor",transition:"transform 0.3s ease","&.top":{transform:"translateY(-4px) rotate(0deg)"},"&.bottom":{transform:"translateY(4px) rotate(0deg)"}},variants:{isExpanded:{true:{"& .line":{"&.top":{transform:"translateY(1px) rotate(45deg)"},"&.bottom":{transform:"translateY(0px) rotate(-45deg)"}}}}}}),lf=je("button",{appearance:"none",background:"transparent",border:"none",cursor:"pointer",p:"$2",transition:"box-shadow 0.25s ease 0s, opacity 0.25s ease 0s",variants:{isPressed:{true:{opacity:.7}}}},Ko,Bo),cf=je("span",{display:"flex",flexWrap:"nowrap",flexDirection:"row",justifyContent:"flex-start",bg:"transparent",alignItems:"center",textDecoration:"none",fontSize:"$base",whiteSpace:"nowrap",boxSizing:"border-box"},Ko),df=je(tf,{$$navbarItemFontSize:"inherit",$$navbarItemFontWeight:"$fontWeights$normal",fontSize:"$$navbarItemFontSize",fontWeight:"$$navbarItemFontWeight",position:"relative","> *":{zIndex:"$2",fontSize:"inherit !important",fontWeight:"inherit !important"},":first-child":{boxSizing:"content-box"},"&:before":{opacity:0,zIndex:"$1",content:'""',display:"block",position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"$sm"},"&:after":{opacity:0,zIndex:"$1",content:'""',display:"block",position:"absolute",left:"0",right:"0",bottom:"0",height:"$$navbarItemUnderlineHeight",borderRadius:"0px",background:"$$navbarItemActiveColor"},variants:{activeColor:ef,isActive:{true:{color:"$$navbarItemActiveColor",$$navbarItemFontWeight:"$fontWeights$semibold"}},variant:{default:{},underline:{color:"inherit",height:"100%"},"underline-rounded":{color:"inherit",height:"100%"},highlight:{},"highlight-solid":{},"highlight-rounded":{},"highlight-solid-rounded":{}},underlineHeight:{light:{$$navbarItemUnderlineHeight:"2px"},normal:{$$navbarItemUnderlineHeight:"4px"},bold:{$$navbarItemUnderlineHeight:"6px"},extrabold:{$$navbarItemUnderlineHeight:"8px"},black:{$$navbarItemUnderlineHeight:"10px"}},isDisabled:{true:{opacity:.5,cursor:"not-allowed"}}},compoundVariants:[{isActive:!0,variant:"underline",css:{color:"inherit","&:after":{opacity:1}}},{isActive:!0,variant:"underline-rounded",css:{color:"inherit","&:after":{opacity:1,borderRadius:"calc($$navbarItemUnderlineHeight / 2)"}}},{isActive:!0,variant:"highlight",css:{color:"$$navbarItemHighlightTextColor","*:first-child":{color:"inherit"},"&:before":{opacity:1,background:"$$navbarItemHighlightBackgroundColor"}}},{isActive:!0,variant:"highlight-solid",css:{color:"$$navbarItemHighlightSolidTextColor","*:first-child":{color:"inherit"},"&:before":{opacity:1,background:"$$navbarItemHighlightSolidBackgroundColor"}}},{isActive:!0,variant:"highlight-rounded",css:{color:"$$navbarItemHighlightTextColor","*:first-child":{color:"inherit"},"&:before":{opacity:1,background:"$$navbarItemHighlightBackgroundColor"}}},{isActive:!0,variant:"highlight-solid-rounded",css:{color:"$$navbarItemHighlightSolidTextColor","*:first-child":{color:"inherit"},"&:before":{opacity:1,background:"$$navbarItemHighlightSolidBackgroundColor"}}}],defaultVariants:{variant:"default",activeColor:"default",underlineHeight:"normal"}},Ko),uf=je(tf,{position:"absolute",top:"calc(50% - $$navbarItemMaxHeight * 0.5)",height:"$$navbarItemMaxHeight",background:"$neutralLight",borderRadius:"$sm",transition:"width 0.2s ease 0s, transform 0.2s ease 0s, opacity 0.2s ease 0s",variants:{color:ef,isHighlightVariant:{true:{background:"$$navbarItemHighlightBackgroundColor"}},isHighlightSolidVariant:{true:{background:"$$navbarItemHighlightSolidBackgroundColor"}},isRounded:{true:{borderRadius:"$pill"}}}}),pf=je(rf,{$$navbarContentItemGap:"$space$10",$$navbarContentItemHorizontalPadding:"$space$10",d:"flex",height:"100%",flexWrap:"nowrap",alignItems:"center",gap:"$$navbarContentItemGap",color:"inherit",variants:{enableCursorHighlight:{true:{zIndex:"$2",position:"relative"}}}},Ko),gf=je("div",{width:"100%",height:"$$navbarHeight",minHeight:"$$navbarHeight",display:"flex",flexWrap:"nowrap",justifyContent:"space-between",alignItems:"center",position:"relative",boxSizing:"border-box",color:"inherit",px:"$$navbarPadding",bg:"$$navbarBackgroundColor",maxW:"$$navbarContainerMaxWidth",zIndex:"$5","@xsMax":{$$navbarPadding:"$space$6",$$navbarFloatingMargin:"$space$6"}}),hf=je("nav",{width:"100%",dflex:"center",position:"relative",height:"auto",color:"$$navbarTextColor",zIndex:"$2",variants:{variant:{static:{position:"static"},sticky:{top:0,right:0,left:0,position:"sticky"},floating:{top:0,right:0,left:0,position:"sticky","@safari":{top:"-5px"},[`& ${gf}`]:{mt:"calc($$navbarFloatingMargin * 0.5)",mx:"$$navbarFloatingMargin",borderRadius:"$$navbarBorderRadius"},[`& ${nf}`]:{px:"calc($$navbarFloatingMargin + $space$4)"}}},maxWidth:{xs:{$$navbarContainerMaxWidth:"$breakpoints$xs"},sm:{$$navbarContainerMaxWidth:"$breakpoints$sm"},md:{$$navbarContainerMaxWidth:"$breakpoints$md"},lg:{$$navbarContainerMaxWidth:"$breakpoints$lg"},xl:{$$navbarContainerMaxWidth:"$breakpoints$xl"},fluid:{$$navbarContainerMaxWidth:"100%"}},isBordered:{true:{[`& ${gf}`]:{borderBottom:"$$navbarBorderWeight solid $$navbarBorderColor"}}},isCompact:{true:{$$navbarHeight:"$$navbarCompactHeight",$$navbarItemMaxHeight:"$$navbarCompactItemMaxHeight",$$navbarBorderRadius:"$radii$md"}},disableShadow:{false:{boxShadow:"$$navbarShadow"}},disableBlur:{false:{"@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none))":{[`& ${gf}`]:{bg:"$$navbarBlurBackgroundColor",backdropFilter:"saturate(180%) blur($$navbarBlur)"}}}}},compoundVariants:[{isBordered:!0,variant:"floating",css:{[`& ${gf}`]:{border:"$$navbarBorderWeight solid $$navbarBorderColor"}}},{variant:"floating",disableShadow:!1,css:{boxShadow:"none",[`& ${gf}`]:{boxShadow:"$$navbarShadow"}}}],defaultVariants:{variant:"static",maxWidth:"lg",isBordered:!1,disableShadow:!1,disableBlur:!1}}),mf=Ca(((e,t)=>{const r=Kn(t),{children:o,className:n,...i}=e;return(0,zt.jsx)(cf,{ref:r,className:It("nextui-navbar-brand",n),...i,children:o})}));mf.toString=()=>".nextui-navbar-brand";const $f=mf,[ff,bf]=Al({strict:!1,name:"NavbarContentContext"}),yf=Ca(((e,t)=>{const{children:r,...o}=e,n=function(e={}){const{gap:t="$10",variant:r="default",activeColor:o="default",underlineHeight:n="normal",enableCursorHighlight:i=!1,isCursorHighlightRounded:s=!1,css:a,style:l,className:c,...d}=e,[u,p]=(0,g.useState)(null),[h,m]=(0,g.useState)(null),[$,f]=(0,g.useState)(null),[b,y]=(0,g.useState)(null),[v,x]=(0,g.useState)(!0),w=(0,g.useRef)(null),S=(0,g.useRef)(null),C=null==r||null==r.toString?void 0:r.toString(),k=null==C.includes?void 0:C.includes("highlight"),P=null==C.includes?void 0:C.includes("highlight-solid"),T=(0,g.useMemo)((()=>s||(null==C.includes?void 0:C.includes("rounded"))),[s,C]),E=(0,g.useMemo)((()=>k&&"$10"===t?"0px":t),[k,t]),M=(0,g.useMemo)((()=>v?"0ms":"200ms"),[v]),I=(0,g.useMemo)((()=>$||b?1:0),[b,$]),z=(0,g.useMemo)((()=>u?k?`${u.width}px`:`calc(${u.width}px + var(--nextui--navbarContentItemHorizontalPadding))`:"0px"),[C,u]),L=(0,g.useMemo)((()=>u&&h&&`translate(${u.left-h.left}px)`),[u,h]),N=(0,g.useMemo)((()=>k?"0px":"calc(var(--nextui--navbarContentItemHorizontalPadding) * 0.5 * -1)"),[k]),B=(0,g.useMemo)((()=>Rn({"--nextui--transitionDuration":M,"--nextui--opacity":I,"--nextui--width":z,"--nextui--transform":L,"--nextui--left":N},l||{})),[M,N,I,z,L,l]),R=(0,g.useMemo)((()=>u&&h&&i?{transitionDuration:"var(--nextui--transitionDuration)",opacity:"var(--nextui--opacity)",width:"var(--nextui--width)",transform:"var(--nextui--transform)",left:"var(--nextui--left)"}:{}),[u,h,i]);return{css:a,gap:E,variant:r,activeColor:o,activeItem:b,updateActiveItem:e=>{var t;y(e),f(e),p(null==e||null==e.getBoundingClientRect?void 0:e.getBoundingClientRect()),m(null==(t=S.current)||null==t.getBoundingClientRect?void 0:t.getBoundingClientRect())},highlightedItem:$,underlineHeight:n,cursorHighlightRef:w,isRounded:T,isHighlightVariant:k,isHighlightSolidVariant:P,isCursorHighlightRounded:s,enableCursorHighlight:i,cursorHighlightCss:R,repositionHighlight:(e,t)=>{var r,o;(null==e?void 0:e.target)instanceof Element&&(p(null==(r=e.target)||null==r.getBoundingClientRect?void 0:r.getBoundingClientRect()),m(null==(o=S.current)||null==o.getBoundingClientRect?void 0:o.getBoundingClientRect()),x(!$),f(t))},resetHighlight:()=>{b?(f(b),p(null==b||null==b.getBoundingClientRect?void 0:b.getBoundingClientRect())):f(null)},wrapperRef:S,className:c,style:B,otherProps:d}}(o),i=Kn(t);return(0,zt.jsx)(ff,{value:n,children:(0,zt.jsxs)(pf,{ref:Nm(n.wrapperRef,i),className:It("nextui-navbar-content",n.className),css:{gap:n.gap,...n.css},enableCursorHighlight:n.enableCursorHighlight,style:n.style,onMouseLeave:n.resetHighlight,...n.otherProps,children:[n.enableCursorHighlight&&(0,zt.jsx)(uf,{ref:n.cursorHighlightRef,className:"nextui-navbar-cursor-highlight",color:n.activeColor,css:n.cursorHighlightCss,isHighlightSolidVariant:n.isHighlightSolidVariant,isHighlightVariant:n.isHighlightVariant,isRounded:n.isRounded}),r]})})}));yf.toString=()=>".nextui-navbar-content";const vf=yf,xf=Ca(((e,t)=>{var r;const{id:o,css:n,children:i,variant:s,activeColor:a,isActive:l,underlineHeight:c,onMouseEnter:d,onMouseLeave:u,isDisabled:p,className:m,...$}=e,f=bf(),b=Kn(t),y=s||(null==f?void 0:f.variant),v=null==y?void 0:y.toString(),x=null==v.includes?void 0:v.includes("highlight"),w=null==v.includes?void 0:v.includes("highlight-solid"),{hoverProps:S,isHovered:C}=Sa({isDisabled:p}),k=Ln(o);(0,g.useEffect)((()=>{b.current&&f&&null!=f&&f.enableCursorHighlight&&l&&x&&f.updateActiveItem(null==b?void 0:b.current)}),[b,x,l]);const P=(0,g.useMemo)((()=>{var e;return!!f&&(null==(e=f.highlightedItem)?void 0:e.id)===k}),[k,f]),T=(0,g.useMemo)((()=>{var e;return!(P||null==f||!f.enableCursorHighlight||!w||k!==(null==f||null==(e=f.activeItem)?void 0:e.id))}),[f,k,P,w]),E=(0,g.useMemo)((()=>{const e=[],t="string"==typeof i,r=null==v.includes?void 0:v.includes("highlight-solid");return f||e.push({$$navbarContentItemGap:"$space$8"}),x&&(e.push({dflex:"center",height:"$$navbarItemMaxHeight"}),t?e.push({px:"calc($$navbarContentItemHorizontalPadding * 0.5)"}):e.push({"*:first-child":{size:"100%",px:"calc($$navbarContentItemHorizontalPadding * 0.5)"}})),x&&null!=v.includes&&v.includes("rounded")&&!f.enableCursorHighlight&&e.push({"&:before":{borderRadius:"$pill"}}),f.enableCursorHighlight&&e.push({"&:before":{display:"none"}}),l&&!x&&e.push({$$navbarItemFontWeight:"$fontWeights$semibold"}),C&&f.enableCursorHighlight&&(x&&e.push({color:"$$navbarItemHighlightTextColor"}),r&&e.push({color:"$$navbarItemHighlightSolidTextColor"})),T&&e.push({color:"$$navbarItemActiveColor"}),{...$t(e),...n}}),[i,n,f,v,T,l,C,x]),M="string"==typeof i?(0,zt.jsx)(xu,{children:i}):h().Children.only(i),I=h().cloneElement(M,{id:(null==(r=M.props)?void 0:r.id)||k,onMouseEnter:e=>{var t;null!=f&&f.repositionHighlight?((null==(t=e.target)?void 0:t.id)===k&&f.repositionHighlight(e,null==b?void 0:b.current),null==d||d(e)):null==d||d(e)},onMouseLeave:e=>{null!=f&&f.resetHighlight&&f.enableCursorHighlight&&x?(f.resetHighlight(),null==u||u(e)):null==u||u(e)}});return(0,zt.jsx)(df,{ref:b,activeColor:a||(null==f?void 0:f.activeColor),className:It("nextui-navbar-item",m),css:E,id:k,isActive:l,underlineHeight:c||(null==f?void 0:f.underlineHeight),variant:y,...Rn(S,$),children:I})}));xf.toString=()=>".nextui-navbar-item";const wf=xf,Sf=Ca(((e,t)=>{const r=Kn(t),{css:o,children:n,isActive:i,color:s,activeColor:a,underlineHeight:l,itemCss:c,itemClassName:d,isDisabled:u,hideIn:p,showIn:h,variant:m,className:$,...f}=e,b=(0,g.useMemo)((()=>s||null!=o&&o.$$linkColor?{...o}:{color:"inherit",height:"100%",width:"fit-content",...o}),[s,o]);return(0,zt.jsx)(wf,{activeColor:a,className:d,css:c,hideIn:p,isActive:i,isDisabled:u,showIn:h,underlineHeight:l,variant:m,children:(0,zt.jsx)(yd,{ref:r,className:It("nextui-navbar-link",$),color:s,css:b,...f,children:n})})}));Sf.toString=()=>".nextui-navbar-link";const Cf=Sf,[kf,Pf]=Al({strict:!0,name:"NavbarContext",errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap all navbar components within `<Navbar />`"}),Tf=e=>{const{isExpanded:t=!1,className:r,...o}=e;return(0,zt.jsxs)(af,{"aria-hidden":!0,className:It("nextui-navbar-toggle-icon",r),isExpanded:t,tabIndex:-1,...o,children:[(0,zt.jsx)("span",{className:"line top"}),(0,zt.jsx)("span",{className:"line bottom"})]})};Tf.toString=()=>".nextui-navbar-toggle-icon";const Ef=Tf,Mf=Ca(((e,t)=>{const{children:r,className:o,autoFocus:n,onChange:i,as:s,css:a,...l}=e,{parentRef:c,setIsCollapseOpen:d}=Pf(),[,u]=at(c,{scrollLayer:!0}),p=Kn(t),h=zl({...e,onChange:e=>{d(e),null==i||i(e),u(e)}}),{buttonProps:m,isPressed:$}=function(e,t,r){const{isSelected:o}=t,{isPressed:n,buttonProps:i}=Ms({...e,onPress:si(t.toggle,e.onPress)},r);return{isPressed:n,buttonProps:ai(i,{"aria-pressed":o})}}(e,h,p),{isFocusVisible:f,focusProps:b}=Pn({autoFocus:n}),y=(0,g.useMemo)((()=>r||(0,zt.jsx)(Ef,{isExpanded:h.isSelected})),[r,h.isSelected]);return(0,zt.jsx)(lf,{ref:p,as:s,className:It("nextui-navbar-toggle",o),css:a,isFocusVisible:f,isPressed:$,...Rn(m,b,l),children:y})}));Mf.toString=()=>".nextui-navbar-toggle";const If=Mf,[zf,Lf]=Al({strict:!1,name:"NavbarCollapseContext"}),Nf=Ca(((e,t)=>{var r;const{children:o,className:n,transitionDelay:i,transitionTime:s,transitionMatrix:a,disableAnimation:l,style:c,css:d,...u}=e,p=Pf(),h=Lf(),m=Kn(t),{isVisible:$,setEntry:f}=Pt(m,{root:null==p||null==(r=p.parentRef)?void 0:r.current,freezeOnceVisible:p.isCollapseOpen});(0,g.useEffect)((()=>{!p.isCollapseOpen&&$&&f(null)}),[$,p.isCollapseOpen]);const b=(0,g.useMemo)((()=>{var e;return null!=h&&h.items?null==(e=h.items)?void 0:e.findIndex((e=>{var t;return(null==e||null==(t=e.props)?void 0:t.children)===o})):-1}),[null==h?void 0:h.items]),y=(0,g.useMemo)((()=>{var e,t,r;return{transitionDelay:null!=(e=null!=i?i:null==h?void 0:h.transitionDelay)?e:0,transitionTime:null!=(t=null!=s?s:null==h?void 0:h.transitionTime)?t:0,transitionMatrix:null!=(r=null!=a?a:null==h?void 0:h.transitionMatrix)?r:{in:"matrix(1, 0, 0, 1, 0, 0)",out:"matrix(0.97, 0, 0, 1, 0, 20)"}}}),[i,s,a,h.transitionMatrix,h.transitionDelay,h.transitionTime]),v=(0,g.useMemo)((()=>h.items&&b>-1?b/h.items.length*.5*1e3+y.transitionDelay:.1),[b,y.transitionDelay,null==h?void 0:h.items]),x=(0,g.useMemo)((()=>{const e=$&&!h.hasScrolled?v:0;return{"--nextui--collapseItemOpacity":$?1:0,"--nextui--collapseItemTransform":$?y.transitionMatrix.in:y.transitionMatrix.out,"--netxui--collapseItemTransition":!l&&p.isCollapseOpen?`opacity ${y.transitionTime}ms cubic-bezier(0.5, 0, 0, 1) ${e}ms, transform ${y.transitionTime}ms cubic-bezier(0.5, 0, 0, 1) ${e}ms`:"none"}}),[b,$,l,v,y.transitionMatrix,y.transitionTime,p.isCollapseOpen,h.hasScrolled]);return(0,zt.jsx)(of,{ref:m,className:It("nextui-navbar-collapse-item",n),css:{opacity:"var(--nextui--collapseItemOpacity)",transition:"var(--netxui--collapseItemTransition)",transform:"var(--nextui--collapseItemTransform)",...d},disableAnimation:l,style:{...c,...x},...u,children:o})}));Nf.toString=()=>".nextui-navbar-collapse-item";const Bf=Nf,Rf=Ca(((e,t)=>{const r=function(e={}){var t;const{css:r,children:o,ref:n,transitionDelay:i=0,transitionTime:s=350,transitionMatrix:a={in:"matrix(1, 0, 0, 1, 0, 0)",out:"matrix(0.97, 0, 0, 1, 0, 20)"},className:l,...c}=e,[d,u]=(0,g.useState)(!1),p=Pf(),h=Kn(n),[,m]=et(o,Bf),[,$]=at(null,{scrollLayer:!0});(0,g.useEffect)((()=>{var e,t;p.isCollapseOpen?$(!0):(h.current&&(null==(t=h.current)||null==t.scrollTo||t.scrollTo({top:0})),u(!1),$(!1));const r=()=>{var e;h.current&&(null==(e=h.current)?void 0:e.scrollTop)>0&&!d&&u(!0)};return null==(e=h.current)||e.addEventListener("scroll",r),()=>{var e;null==(e=h.current)||e.removeEventListener("scroll",r)}}),[p.isCollapseOpen]);const f=(0,g.useMemo)((()=>{const e=[];var t;return p.parentRef&&p.parentRef.current&&e.push({maxHeight:null==(t=p.parentRef.current)?void 0:t.clientHeight}),{...$t(e),...r}}),[null==(t=p.parentRef)?void 0:t.current,r]);return{css:r,domRef:h,children:o,items:m,collpaseCss:f,isOpen:p.isCollapseOpen,hasScrolled:d,transitionDelay:i,transitionTime:s,transitionMatrix:a,className:l,otherProps:c}}({ref:t,...e});return(0,zt.jsx)(zf,{value:r,children:(0,zt.jsx)(sf,{className:It("nextui-navbar-collapse",r.className),css:r.collpaseCss,isOpen:r.isOpen,...r.otherProps,children:(0,zt.jsx)(nf,{ref:r.domRef,className:"nextui-navbar-collapse-wrapper",children:r.children})})})}));Rf.toString=()=>".nextui-navbar-collapse";const Hf=Rf,Af=Ca(((e,t)=>{const{children:r,...o}=e,n=Kn(t),i=function(e={}){const{css:t,containerCss:r,parentRef:o,isBordered:n,variant:i="static",height:s="76px",borderWeight:a="light",shouldHideOnScroll:l=!1,disableScrollHandler:c=!1,onScrollPositionChange:d,disableBlur:u=!1,className:p,...h}=e,[m,$]=(0,g.useState)(!1),[f,b]=(0,g.useState)(!1),{theme:y}=Je(),v=(0,g.useMemo)((()=>n?`$borderWeights$${a}`:"0px"),[n,a]),x=(0,g.useMemo)((()=>u||f),[u,f]),w=(0,g.useMemo)((()=>"number"==typeof s?`${s}px`:s),[s]);Ve({":root":{$$navbarHeight:w,$$navbarCompactHeight:"calc($$navbarHeight * 0.7)",$$navbarTextColor:"$colors$text",$$navbarBackgroundColor:"$colors$background",$$navbarBlurBackgroundColor:"$colors$backgroundAlpha",$$navbarItemMaxHeight:"calc($$navbarHeight * 0.5)",$$navbarCompactItemMaxHeight:"calc($$navbarHeight * 0.5)",$$navbarBorderColor:"$colors$border",$$navbarBorderRadius:"$radii$lg",$$navbarPadding:"$space$10",$$navbarFloatingMargin:"$space$10",$$navbarContainerMaxWidth:"$breakpoints$lg",$$navbarShadow:"$shadows$md",$$navbarBorderWeight:v,$$navbarBlur:"10px"}})(),kt({elementRef:o,enabled:l||!c,callback:({prevPos:e,currPos:t})=>{null==d||d(t.y),l&&$((r=>{const o=t.y>e.y;return o!==r?o:r}))}});const S=(0,g.useMemo)((()=>{const e=[];var r,o,n,s,a,c;return"floating"===i&&e.push({bg:`linear-gradient(180deg, ${xe(null==y||null==(r=y.colors)||null==(o=r.background)?void 0:o.value,.95)} 44%, ${xe(null==y||null==(n=y.colors)||null==(s=n.background)?void 0:s.value,.46)} 73%, ${xe(null==y||null==(a=y.colors)||null==(c=a.background)?void 0:c.value,0)})`}),l&&e.push({position:"sticky",top:0,right:0,left:0,transform:m?"translateY(-100%)":"translateY(0)",transition:"transform 400ms ease"}),{...$t(e),...t}}),[t,null==y?void 0:y.colors,i,l,m]);return{css:t,variant:i,sticky:m,isBordered:n,containerCss:r,navbarCss:S,parentRef:o,borderWeight:a,shouldHideOnScroll:l,disableBlur:x,isCollapseOpen:f,setIsCollapseOpen:b,className:p,otherProps:h}}(o),[s,a]=et(r,Hf);return(0,zt.jsx)(kf,{value:i,children:(0,zt.jsxs)(hf,{ref:n,className:It("nextui-navbar",i.className),css:i.navbarCss,disableBlur:i.disableBlur,isBordered:i.isBordered,variant:i.variant,...i.otherProps,children:[(0,zt.jsx)(gf,{className:"nextui-navbar-container",css:i.containerCss,children:s}),a]})})}));Af.toString=()=>".nextui-navbar";const Ff=Af;Ff.Brand=$f,Ff.Content=vf,Ff.Item=wf,Ff.Link=Cf,Ff.Toggle=If,Ff.Collapse=Hf,Ff.CollapseItem=Bf;const Kf=Ff})(),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,((e,t)=>(()=>{"use strict";var o={889:e=>{var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=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={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).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]))o.call(s,d)&&(l[d]=s[d]);if(t){a=t(s);for(var u=0;u<a.length;u++)r.call(s,a[u])&&(l[a[u]]=s[a[u]])}}return l}},628:(e,t,o)=>{o(889);var r=o(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=r.__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,o){var r,i={},c=null,d=null;for(r in void 0!==o&&(c=""+o),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:n,type:e,key:c,ref:d,props:i,_owner:s.current}}t.jsx=c,t.jsxs=c},678:(e,t,o)=>{e.exports=o(628)},787:t=>{t.exports=e},156:e=>{e.exports=t}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[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 o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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(()=>{n.r(i),n.d(i,{Avatar:()=>Zi,Backdrop:()=>Rd,Badge:()=>Dm,Button:()=>ya,Card:()=>Fa,Checkbox:()=>ul,Code:()=>ml,Col:()=>yl,Collapse:()=>Hl,Container:()=>jl,CssBaseline:()=>Ft,Divider:()=>La,Drip:()=>Rt,Dropdown:()=>Em,Grid:()=>Xl,Image:()=>Ta,Input:()=>fp,KeyCode:()=>ft,KeyMod:()=>bt,Link:()=>zc,Loading:()=>Gc,Modal:()=>Tu,Navbar:()=>T$,NextUIProvider:()=>In,Pagination:()=>qu,Popover:()=>Ah,Progress:()=>Zd,Radio:()=>gd,Row:()=>Cc,Snippet:()=>vc,Spacer:()=>Ql,Spinner:()=>Oc,StyledAvatar:()=>Wi,StyledAvatarGroup:()=>_i,StyledAvatarGroupCount:()=>Gi,StyledBackdrop:()=>Ld,StyledBackdropContent:()=>Md,StyledBackdropLayer:()=>zd,StyledBadge:()=>Fm,StyledBadgePoints:()=>jm,StyledBadgeRoot:()=>Km,StyledBaseNavbarItem:()=>Vm,StyledBaseNavbarList:()=>Um,StyledButton:()=>ua,StyledButtonGroup:()=>ma,StyledButtonIcon:()=>la,StyledCard:()=>Ba,StyledCardBody:()=>Na,StyledCardFooter:()=>Ha,StyledCardHeader:()=>Ra,StyledCheckboxContainer:()=>nl,StyledCheckboxGroup:()=>il,StyledCheckboxLabel:()=>Ja,StyledCheckboxMask:()=>ol,StyledCheckboxText:()=>rl,StyledCode:()=>pl,StyledCol:()=>$l,StyledCollapse:()=>Cl,StyledCollapseContent:()=>Pl,StyledCollapseGroup:()=>El,StyledCollapseIcon:()=>Tl,StyledCollapseView:()=>kl,StyledContainer:()=>Al,StyledDivider:()=>Ia,StyledDividerText:()=>Ma,StyledDropdownItem:()=>lm,StyledDropdownItemContent:()=>sm,StyledDropdownItemContentWrapper:()=>im,StyledDropdownItemDescription:()=>am,StyledDropdownItemIconWrapper:()=>rm,StyledDropdownItemKbd:()=>nm,StyledDropdownMenu:()=>om,StyledDropdownSection:()=>dm,StyledDropdownSectionTitle:()=>um,StyledDropdownSectionWrapper:()=>cm,StyledGridContainer:()=>Wl,StyledGridItem:()=>Dl,StyledHelperText:()=>tp,StyledHelperTextContainer:()=>ep,StyledIconCheck:()=>tl,StyledIconCheckFirstLine:()=>Qa,StyledIconCheckSecondLine:()=>el,StyledImage:()=>wa,StyledImageContainer:()=>xa,StyledImageSkeleton:()=>Sa,StyledInput:()=>Ju,StyledInputBlockLabel:()=>rp,StyledInputClearButton:()=>sp,StyledInputContainer:()=>Zu,StyledInputContent:()=>ip,StyledInputLabel:()=>np,StyledInputMainContainer:()=>Yu,StyledInputPlaceholder:()=>op,StyledInputWrapper:()=>Qu,StyledLink:()=>Pc,StyledLinkIcon:()=>kc,StyledLoading:()=>jc,StyledLoadingContainer:()=>Hc,StyledLoadingLabel:()=>Wc,StyledModal:()=>lu,StyledModalBody:()=>su,StyledModalCloseButton:()=>nu,StyledModalFooter:()=>au,StyledModalHeader:()=>iu,StyledModalHideTab:()=>ru,StyledNavbar:()=>o$,StyledNavbarBrand:()=>Zm,StyledNavbarCollapse:()=>qm,StyledNavbarCollapseItem:()=>Gm,StyledNavbarCollapseWrapper:()=>_m,StyledNavbarContainer:()=>t$,StyledNavbarContent:()=>e$,StyledNavbarItem:()=>Jm,StyledNavbarToggle:()=>Xm,StyledNavbarToggleIconContainer:()=>Ym,StyledPagination:()=>Ru,StyledPaginationEllipsis:()=>Mu,StyledPaginationHighlight:()=>Bu,StyledPaginationIcon:()=>zu,StyledPaginationItem:()=>Nu,StyledPaginationItemContent:()=>Lu,StyledPopoverContent:()=>Bh,StyledPre:()=>gl,StyledProgress:()=>_d,StyledProgressBar:()=>qd,StyledRadioContainer:()=>rd,StyledRadioDescription:()=>od,StyledRadioGroup:()=>id,StyledRadioGroupContainer:()=>sd,StyledRadioLabel:()=>td,StyledRadioPoint:()=>ed,StyledRadioText:()=>Qc,StyledRow:()=>xc,StyledSnippetCopyButton:()=>$c,StyledSnippetCopyButtonIcon:()=>mc,StyledSnippetPre:()=>hc,StyledSpacer:()=>Zl,StyledSpinner:()=>Kc,StyledSpinnerContainer:()=>Ac,StyledSpinnerSpan:()=>Fc,StyledSwitch:()=>wd,StyledSwitchCircle:()=>xd,StyledSwitchContainer:()=>vd,StyledSwitchInput:()=>Sd,StyledTable:()=>jg,StyledTableCell:()=>Hg,StyledTableHeaderCell:()=>Ng,StyledTableRow:()=>Ag,StyledText:()=>hd,StyledTooltip:()=>nc,StyledTooltipArrow:()=>rc,StyledTooltipContent:()=>ic,StyledTooltipTrigger:()=>oc,StyledUser:()=>Hd,StyledUserDesc:()=>Fd,StyledUserInfo:()=>Ad,StyledUserName:()=>Kd,Switch:()=>Pd,Table:()=>xh,Text:()=>yd,Textarea:()=>Cp,Tooltip:()=>pc,User:()=>Ud,blue:()=>we,blueDark:()=>Se,changeTheme:()=>En,config:()=>qe,createTheme:()=>Ye,css:()=>Oe,cssFocusVisible:()=>zn,cssHideIn:()=>Bn,cssHideShowIn:()=>Hn,cssNoBlurriness:()=>Ln,cssShowIn:()=>Rn,cyan:()=>Le,cyanDark:()=>Ne,defaultTheme:()=>_e,excludedInputPropsForTextarea:()=>p,extendedColors:()=>r,extendedColorsNoGradient:()=>s,extraColors:()=>a,getCssText:()=>Ge,getDocumentTheme:()=>Pn,getTokenValue:()=>kn,globalCss:()=>Ve,gray:()=>He,grayDark:()=>Ae,green:()=>Pe,greenDark:()=>Te,keyframes:()=>Ue,normalColors:()=>t,normalLoaders:()=>l,normalWeights:()=>c,pink:()=>Be,pinkDark:()=>Re,purple:()=>Ce,purpleDark:()=>ke,red:()=>Me,redDark:()=>ze,sharedFocus:()=>Mn,sharedVisuallyHidden:()=>Nn,simpleColors:()=>o,stitchesConfig:()=>qe,styled:()=>De,textTransforms:()=>u,textWeights:()=>d,theme:()=>_e,tuple:()=>e,useAsyncList:()=>Vt,useBodyScroll:()=>at,useClickAnywhere:()=>pt,useClickAway:()=>lt,useClipboard:()=>ut,useCollator:()=>ro,useCurrentState:()=>m,useDrip:()=>Tt,useInput:()=>gt,useIntersectionObserver:()=>Pt,useKeyboard:()=>yt,useModal:()=>Eu,usePagination:()=>wt,usePortal:()=>rt,useRealShape:()=>f,useResize:()=>b,useSSR:()=>Qe,useScrollPosition:()=>kt,useTheme:()=>Je,yellow:()=>Ee,yellowDark:()=>Ie});const e=(...e)=>e,t=(e("xs","sm","md","lg","xl"),e("default","primary","secondary","success","warning","error","gradient")),o=e("default","primary","secondary","success","warning","error"),r=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"));e("toggle","replace"),e("none","single","multiple"),e("flat","light","solid","shadow"),e("flat","bordered","shadow");var g=n(787),h=n.n(g);const m=e=>{const[t,o]=(0,g.useState)((()=>"function"==typeof e?e():e)),r=(0,g.useRef)(e);return(0,g.useEffect)((()=>{r.current=t}),[t]),[t,e=>{const t="function"==typeof e?e(r.current):e;r.current=t,o(t)},r]},$=(e,t)=>{if(!e)return 0;const o=e.includes("px")?+e.split("px")[0]:e.includes("%")?+e.split("%")[0]*t*.01:e;return Number.isNaN(+o)?0:+o},f=e=>{const[t,o]=(0,g.useState)({width:0,height:0}),r=()=>{const{width:t,height:r}=(e=>{if(!e||"undefined"==typeof window)return{width:0,height:0};const t=e.getBoundingClientRect(),{width:o,height:r}=window.getComputedStyle(e);return{width:$(`${o}`,t.width),height:$(`${r}`,t.height)}})(e.current);o({width:t,height:r})};return(0,g.useEffect)((()=>r()),[e.current]),[t,r]},b=(e,t=!0)=>{(0,g.useEffect)((()=>{const o=()=>e();return t&&o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)}),[])};var y="colors",v="sizes",x="space",w={gap:x,gridGap:x,columnGap:x,gridColumnGap:x,rowGap:x,gridRowGap:x,inset:x,insetBlock:x,insetBlockEnd:x,insetBlockStart:x,insetInline:x,insetInlineEnd:x,insetInlineStart:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,marginBlock:x,marginBlockEnd:x,marginBlockStart:x,marginInline:x,marginInlineEnd:x,marginInlineStart:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,paddingBlock:x,paddingBlockEnd:x,paddingBlockStart:x,paddingInline:x,paddingInlineEnd:x,paddingInlineStart:x,top:x,right:x,bottom:x,left:x,scrollMargin:x,scrollMarginTop:x,scrollMarginRight:x,scrollMarginBottom:x,scrollMarginLeft:x,scrollMarginX:x,scrollMarginY:x,scrollMarginBlock:x,scrollMarginBlockEnd:x,scrollMarginBlockStart:x,scrollMarginInline:x,scrollMarginInlineEnd:x,scrollMarginInlineStart:x,scrollPadding:x,scrollPaddingTop:x,scrollPaddingRight:x,scrollPaddingBottom:x,scrollPaddingLeft:x,scrollPaddingX:x,scrollPaddingY:x,scrollPaddingBlock:x,scrollPaddingBlockEnd:x,scrollPaddingBlockStart:x,scrollPaddingInline:x,scrollPaddingInlineEnd:x,scrollPaddingInlineStart:x,fontSize:"fontSizes",background:y,backgroundColor:y,backgroundImage:y,borderImage:y,border:y,borderBlock:y,borderBlockEnd:y,borderBlockStart:y,borderBottom:y,borderBottomColor:y,borderColor:y,borderInline:y,borderInlineEnd:y,borderInlineStart:y,borderLeft:y,borderLeftColor:y,borderRight:y,borderRightColor:y,borderTop:y,borderTopColor:y,caretColor:y,color:y,columnRuleColor:y,fill:y,outline:y,outlineColor:y,stroke:y,textDecorationColor:y,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:v,minBlockSize:v,maxBlockSize:v,inlineSize:v,minInlineSize:v,maxInlineSize:v,width:v,minWidth:v,maxWidth:v,height:v,minHeight:v,maxHeight:v,flexBasis:v,gridTemplateColumns:v,gridTemplateRows:v,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"},S=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,C=()=>{const e=Object.create(null);return(t,o,...r)=>{const n=(e=>JSON.stringify(e,S))(t);return n in e?e[n]:e[n]=o(t,...r)}},k=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:E}=Object.prototype,I=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),M=/\s+(?![^()]*\))/,z=e=>t=>e(..."string"==typeof t?String(t).split(M):[t]),L={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:z(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:z(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:z(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:z(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:z(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:z(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},N=/([\d.]+)([^]*)/,B=(e,t)=>e.length?e.reduce(((e,o)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(o)&&/&.*&/.test(e)?`:is(${o})`:o):o+" "+e))),e)),[]):t,R=(e,t)=>e in H&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,o,r,n)=>o+("stretch"===r?`-moz-available${n};${I(e)}:${o}-webkit-fill-available`:`-moz-fit-content${n};${I(e)}:${o}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},A=e=>e?e+"-":"",K=(e,t,o)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,r,n,i,s)=>"$"==i==!!n?e:(r||"--"==i?"calc(":"")+"var(--"+("$"===i?A(t)+(s.includes("$")?"":A(o))+s.replace(/\$/g,"-"):s)+")"+(r||"--"==i?"*"+(r||"")+(n||"1")+")":""))),F=/\s*,\s*(?![^()]*\))/,j=Object.prototype.toString,W=(e,t,o,r,n)=>{let i,s,a;const l=(e,t,o)=>{let c,d;const u=e=>{for(c in e){const h=64===c.charCodeAt(0),m=h&&Array.isArray(e[c])?e[c]:[e[c]];for(d of m){const e=/[A-Z]/.test(g=c)?g:g.replace(/-[^]/g,(e=>e[1].toUpperCase())),m="object"==typeof d&&d&&d.toString===j&&(!r.utils[e]||!t.length);if(e in r.utils&&!m){const t=r.utils[e];if(t!==s){s=t,u(t(d)),s=null;continue}}else if(e in L){const t=L[e];if(t!==a){a=t,u(t(d)),a=null;continue}}if(h&&(p=c.slice(1)in r.media?"@media "+r.media[c.slice(1)]:c,c=p.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,o,r,n,i)=>{const s=N.test(t),a=.0625*(s?-1:1),[l,c]=s?[r,t]:[t,r];return"("+("="===o[0]?"":">"===o[0]===s?"max-":"min-")+l+":"+("="!==o[0]&&1===o.length?c.replace(N,((e,t,r)=>Number(t)+a*(">"===o?1:-1)+r)):c)+(n?") and ("+(">"===n[0]?"min-":"max-")+l+":"+(1===n.length?i.replace(N,((e,t,o)=>Number(t)+a*(">"===n?-1:1)+o)):i):"")+")"}))),m){const e=h?o.concat(c):[...o],r=h?[...t]:B(t,c.split(F));void 0!==i&&n(D(...i)),i=void 0,l(d,r,e)}else void 0===i&&(i=[[],t,o]),c=h||36!==c.charCodeAt(0)?c:`--${A(r.prefix)}${c.slice(1).replace(/\$/g,"-")}`,d=m?d:"number"==typeof d?d&&e in O?String(d)+"px":String(d):K(R(e,null==d?"":d),r.prefix,r.themeMap[e]),i[0].push(`${h?`${c} `:`${I(c)}:`}${d}`)}}var p,g};u(e),void 0!==i&&n(D(...i)),i=void 0};l(e,t,o)},D=(e,t,o)=>`${o.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(o.length?o.length+1:0).join("}")}`,O={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,o="";for(t=Math.abs(e);t>52;t=t/52|0)o=V(t%52)+o;return V(t%52)+o})(((e,t)=>{let o=t.length;for(;o;)e=33*e^t.charCodeAt(--o);return e})(5381,JSON.stringify(e))>>>0),G=["themed","global","styled","onevar","resonevar","allvar","inline"],_=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},q=e=>{let t;const o=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((o,r)=>{const{cssText:n}=o;let i="";if(n.startsWith("--sxs"))return"";if(e[r-1]&&(i=e[r-1].cssText).startsWith("--sxs")){if(!o.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===o)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${n}`;return o.cssRules.length?`${i}${n}`:""}return n})).join("")},r=()=>{if(t){const{rules:e,sheet:o}=t;if(!o.deleteRule){for(;3===Object(Object(o.cssRules)[0]).type;)o.cssRules.splice(0,1);o.cssRules=[]}for(const t in e)delete e[t]}const n=Object(e).styleSheets||[];for(const e of n)if(_(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:r,rules:{},toString:o}),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:r,toString:o}}const{sheet:i,rules:s}=t;for(let e=G.length-1;e>=0;--e){const t=G[e];if(!s[t]){const o=G[e+1],r=s[o]?s[o].index:i.cssRules.length;i.insertRule("@media{}",r),i.insertRule(`--sxs{--sxs:${e}}`,r),s[t]={group:i.cssRules[r+1],index:r,cache:new Set([e])}}Y(s[t])}};return r(),t},Y=e=>{const t=e.group;let o=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,o),++o}catch(e){}}},X=Symbol(),Z=C(),J=(e,t)=>Z(e,(()=>(...o)=>{let r={type:null,composers:new Set};for(const t of o)if(null!=t)if(t[k]){null==r.type&&(r.type=t[k].type);for(const e of t[k].composers)r.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==r.type&&(r.type=t):r.composers.add(Q(t,e));return null==r.type&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),ee(e,r,t)})),Q=({variants:e,compoundVariants:t,defaultVariants:o,...r},n)=>{const i=`${A(n.prefix)}c-${U(r)}`,s=[],a=[],l=Object.create(null),c=[];for(const e in o)l[e]=String(o[e]);if("object"==typeof e&&e)for(const t in e){d=l,u=t,E.call(d,u)||(l[t]="undefined");const o=e[t];for(const e in o){const r={[t]:String(e)};"undefined"===String(e)&&c.push(t);const n=o[e],i=[r,n,!T(n)];s.push(i)}}var d,u;if("object"==typeof t&&t)for(const e of t){let{css:t,...o}=e;t="object"==typeof t&&t||{};for(const e in o)o[e]=String(o[e]);const r=[o,t,!T(t)];a.push(r)}return[i,r,s,a,l,c]},ee=(e,t,o)=>{const[r,n,i,s]=te(t.composers),a="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let o=0;o<t[X].length;o++){const[r,n]=t[X][o];e.rules[r].apply(n)}return t[X]=[],null}return t[X]=[],t.rules={},G.forEach((e=>t.rules[e]={apply:o=>t[X].push([e,o])})),t})(o):null,l=(a||o).rules,c=`.${r}${n.length>1?`:where(.${n.slice(1).join(".")})`:""}`,d=d=>{d="object"==typeof d&&d||re;const{css:u,...p}=d,g={};for(const e in i)if(delete p[e],e in d){let t=d[e];"object"==typeof t&&t?g[e]={"@initial":i[e],...t}:(t=String(t),g[e]="undefined"!==t||s.has(e)?t:i[e])}else g[e]=i[e];const h=new Set([...n]);for(const[r,n,i,s]of t.composers){o.rules.styled.cache.has(r)||(o.rules.styled.cache.add(r),W(n,[`.${r}`],[],e,(e=>{l.styled.apply(e)})));const t=oe(i,g,e.media),a=oe(s,g,e.media,!0);for(const n of t)if(void 0!==n)for(const[t,i,s]of n){const n=`${r}-${U(i)}-${t}`;h.add(n);const a=(s?o.rules.resonevar:o.rules.onevar).cache,c=s?l.resonevar:l.onevar;a.has(n)||(a.add(n),W(i,[`.${n}`],[],e,(e=>{c.apply(e)})))}for(const t of a)if(void 0!==t)for(const[n,i]of t){const t=`${r}-${U(i)}-${n}`;h.add(t),o.rules.allvar.cache.has(t)||(o.rules.allvar.cache.add(t),W(i,[`.${t}`],[],e,(e=>{l.allvar.apply(e)})))}}if("object"==typeof u&&u){const t=`${r}-i${U(u)}-css`;h.add(t),o.rules.inline.cache.has(t)||(o.rules.inline.cache.add(t),W(u,[`.${t}`],[],e,(e=>{l.inline.apply(e)})))}for(const e of String(d.className||"").trim().split(/\s+/))e&&h.add(e);const m=p.className=[...h].join(" ");return{type:t.type,className:m,selector:c,props:p,toString:()=>m,deferredInjector:a}};return P(d,{className:r,selector:c,[k]:t,toString:()=>(o.rules.styled.cache.has(r)||d(),r)})},te=e=>{let t="";const o=[],r={},n=[];for(const[i,,,,s,a]of e){""===t&&(t=i),o.push(i),n.push(...a);for(const e in s){const t=s[e];(void 0===r[e]||"undefined"!==t||a.includes(t))&&(r[e]=t)}}return[t,o,r,new Set(n)]},oe=(e,t,o,r)=>{const n=[];e:for(let[i,s,a]of e){if(a)continue;let e,l=0,c=!1;for(e in i){const r=i[e];let n=t[e];if(n!==r){if("object"!=typeof n||!n)continue e;{let e,t,i=0;for(const s in n){if(r===String(n[s])){if("@initial"!==s){const e=s.slice(1);(t=t||[]).push(e in o?o[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([r?"cv":`${e}-${i[e]}`,s,c])}return n},re={},ne=C(),ie=(e,t)=>ne(e,(()=>(...o)=>{const r=()=>{for(let r of o){r="object"==typeof r&&r||{};let o=U(r);if(!t.rules.global.cache.has(o)){if(t.rules.global.cache.add(o),"@import"in r){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let o of[].concat(r["@import"]))o=o.includes('"')||o.includes("'")?o:`"${o}"`,t.sheet.insertRule(`@import ${o};`,e++);delete r["@import"]}W(r,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return P(r,{toString:r})})),se=C(),ae=(e,t)=>se(e,(()=>o=>{const r=`${A(e.prefix)}k-${U(o)}`,n=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const n=[];W(o,[],[],e,(e=>n.push(e)));const i=`@keyframes ${r}{${n.join("")}}`;t.rules.global.apply(i)}return r};return P(n,{get name(){return n()},toString:n})})),le=class{constructor(e,t,o,r){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==o?"":String(o),this.prefix=null==r?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+A(this.prefix)+A(this.scale)+this.token}toString(){return this.computedValue}},ce=C(),de=(e,t)=>ce(e,(()=>(o,r)=>{r="object"==typeof o&&o||Object(r);const n=`.${o=(o="string"==typeof o?o:"")||`${A(e.prefix)}t-${U(r)}`}`,i={},s=[];for(const t in r){i[t]={};for(const o in r[t]){const n=`--${A(e.prefix)}${t}-${o}`,a=K(String(r[t][o]),e.prefix,t);i[t][o]=new le(o,a,t,e.prefix),s.push(`${n}:${a}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(o)){t.rules.themed.cache.add(o);const n=`${r===e.theme?":root,":""}.${o}{${s.join(";")}}`;t.rules.themed.apply(n)}return o};return{...i,get className(){return a()},selector:n,toString:a}})),ue=C(),pe=C();function ge(e){for(var t,o,r=Array.prototype.slice.call(arguments,1);r.length;)for(o in t=r.shift())t.hasOwnProperty(o)&&("object"==typeof e[o]&&e[o]&&"[object Array]"!==Object.prototype.toString.call(e[o])&&"object"==typeof t[o]&&null!==t[o]?e[o]=ge({},e[o],t[o]):e[o]=t[o]);return e}const he={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","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"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,"2xl":2,"3xl":2.25,"4xl":2.5,"5xl":1,"6xl":1,"7xl":1,"8xl":1,"9xl":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","2xl":"3rem","3xl":"5rem","4xl":"10rem","5xl":"14rem","6xl":"18rem","7xl":"24rem","8xl":"32rem","9xl":"40rem",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",full:"100%",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","2xl":"24px","3xl":"32px",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",card:"transform 0.25s ease 0s, filter 0.25s ease 0s, box-shadow 0.25s ease 0s",dropdownItem:"background 0.12s ease, transform 0.12s ease, color 0.12s ease, box-shadow 0.12s ease 0s"},breakpoints:{xs:"650px",sm:"960px",md:"1280px",lg:"1400px",xl:"1920px"}},me={xs:`(min-width: ${he.breakpoints.xs})`,sm:`(min-width: ${he.breakpoints.sm})`,md:`(min-width: ${he.breakpoints.md})`,lg:`(min-width: ${he.breakpoints.lg})`,xl:`(min-width: ${he.breakpoints.xl})`,xsMin:`(min-width: ${he.breakpoints.xs})`,smMin:`(min-width: ${he.breakpoints.sm})`,mdMin:`(min-width: ${he.breakpoints.md})`,lgMin:`(min-width: ${he.breakpoints.lg})`,xlMin:`(min-width: ${he.breakpoints.xl})`,xsMax:`(max-width: ${he.breakpoints.xs})`,smMax:`(max-width: ${he.breakpoints.sm})`,mdMax:`(max-width: ${he.breakpoints.md})`,lgMax:`(max-width: ${he.breakpoints.lg})`,xlMax:`(max-width: ${he.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)"},$e={...w,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"},fe={prefix:"nextui",theme:{...he,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"},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:$e},be=(e,t=null)=>{if("undefined"==typeof document||!e)return"";const o=t||document.documentElement,r=ye(e)?e.replace("var(","").replace(")",""):e.includes("--")?e:`--${e}`;return getComputedStyle(o).getPropertyValue(r)},ye=e=>!(!e||0!==(null==e?void 0:e.indexOf("var("))),ve=(e,t=1)=>{let o=0,r=0,n=0;return 4==e.length?(o="0x"+e[1]+e[1],r="0x"+e[2]+e[2],n="0x"+e[3]+e[3]):7==e.length&&(o="0x"+e[1]+e[2],r="0x"+e[3]+e[4],n="0x"+e[5]+e[6]),`rgba(${+o},${+r},${+n},${t})`},xe=(e,t=1)=>{if(!e)return"";const o=ye(e)?be(e):e;if(/#[a-fA-F0-9]{3,6}/g.test(o))return ve(o,t);if(!/^#|rgb|RGB/.test(o))return o;const[r,n,i]=(e=>{const t=ye(e)?be(e):e;if("#"===t.charAt(0))return(e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,o,r)=>`${t}${t}${o}${o}${r}${r}`)),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!o)throw new Error(`Next UI: Unsupported ${e} color.`);return[Number.parseInt(o[1],16),Number.parseInt(o[2],16),Number.parseInt(o[3],16)]})(t);const o=t.replace(/ /g,""),r=t.substr(0,4),n=o.match(/\((.+)\)/);return r.startsWith("rgb")&&n?n[1].split(",").map((e=>Number.parseFloat(e))):(console.warn('NextUI: Only supports ["RGB", "RGBA", "HEX"] color.'),[0,0,0])})(o);return`rgba(${r}, ${n}, ${i}, ${t>1?1:t<0?0:t})`},we={blue50:"#EDF5FF",blue100:"#E1EFFF",blue200:"#CEE4FE",blue300:"#B7D5F8",blue400:"#96C1F2",blue500:"#5EA2EF",blue600:"#0072F5",blue700:"#005FCC",blue800:"#004799",blue900:"#00254D"},Se={blue50:"#10253E",blue100:"#102C4C",blue200:"#0F3158",blue300:"#0D3868",blue400:"#0A4281",blue500:"#0952A5",blue600:"#0072F5",blue700:"#3694FF",blue800:"#3694FF",blue900:"#EAF4FF"},Ce={purple50:"#F7F2FD",purple100:"#F1E8FB",purple200:"#EADCF8",purple300:"#E0CBF5",purple400:"#D1B1F0",purple500:"#BC8EE9",purple600:"#7828C8",purple700:"#6622AA",purple800:"#4D1980",purple900:"#290E44"},ke={purple50:"#1F0A33",purple100:"#240C3C",purple200:"#2E0F4D",purple300:"#3B1362",purple400:"#451773",purple500:"#571D91",purple600:"#7828C8",purple700:"#9750DD",purple800:"#B583E7",purple900:"#F7ECFC"},Pe={green50:"#F1FDF7",green100:"#E8FCF1",green200:"#DAFBE8",green300:"#C8F9DD",green400:"#ADF5CC",green500:"#88F1B6",green600:"#17C964",green700:"#13A452",green800:"#108944",green900:"#06371B"},Te={green50:"#042F14",green100:"#06381B",green200:"#074A24",green300:"#0A6130",green400:"#0B7439",green500:"#0F9549",green600:"#17C964",green700:"#41EC8B",green800:"#78F2AD",green900:"#ECFDF4"},Ee={yellow50:"#FEF9F0",yellow100:"#FEF5E7",yellow200:"#FDEFD8",yellow300:"#FCE7C5",yellow400:"#FBDBA7",yellow500:"#F9CB80",yellow600:"#F5A524",yellow700:"#B97509",yellow800:"#925D07",yellow900:"#4E3104"},Ie={yellow50:"#3A2503",yellow100:"#442B03",yellow200:"#583804",yellow300:"#704705",yellow400:"#845306",yellow500:"#A66908",yellow600:"#F5A524",yellow700:"#F6AD37",yellow800:"#F8C572",yellow900:"#FEF7EC"},Me={red50:"#FEF0F5",red100:"#FEE7EF",red200:"#FDD8E5",red300:"#FCC5D8",red400:"#FAA8C5",red500:"#F881AB",red600:"#F31260",red700:"#B80A47",red800:"#910838",red900:"#4E041E"},ze={red50:"#300313",red100:"#300313",red200:"#44041A",red300:"#5C0523",red400:"#6F062B",red500:"#910838",red600:"#F31260",red700:"#F4256D",red800:"#F75F94",red900:"#FDD8E5"},Le={cyan50:"#F0FCFF",cyan100:"#E6FAFE",cyan200:"#D7F8FE",cyan300:"#C3F4FD",cyan400:"#A5EEFD",cyan500:"#7EE7FC",cyan600:"#06B7DB",cyan700:"#09AACD",cyan800:"#0E8AAA",cyan900:"#053B48"},Ne={cyan50:"#012A32",cyan100:"#023A46",cyan200:"#024B5A",cyan300:"#036072",cyan400:"#037086",cyan500:"#048EA9",cyan600:"#06B7DB",cyan700:"#33D9FA",cyan800:"#6FE4FB",cyan900:"#EBFBFE"},Be={pink50:"#FFF0FB",pink100:"#FFE5F8",pink200:"#FFD6F3",pink300:"#FFC2EE",pink400:"#FFA3E5",pink500:"#FF7AD9",pink600:"#FF4ECD",pink700:"#D6009A",pink800:"#B80084",pink900:"#4D0037"},Re={pink50:"#330025",pink100:"#470033",pink200:"#5C0042",pink300:"#750054",pink400:"#8A0063",pink500:"#AD007C",pink600:"#FF4ECD",pink700:"#FF2EC4",pink800:"#FF6BD5",pink900:"#FFEBF9"},He={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"},Ke={colors:{background:"$white",backgroundAlpha:"rgba(255, 255, 255, 0.8)",foreground:"$black",backgroundContrast:"$white",...we,...Ce,...Pe,...Ee,...Me,...Le,...Be,...He,textLight:xe(He.gray900,.2),text:"$gray900",linkLight:xe(we.blue600,.2),link:"$blue600",codeLight:"$pink100",code:"$pink600",selection:"$blue200",border:"rgba(0, 0, 0, 0.15)"},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))"}},Fe={colors:{background:"$black",backgroundAlpha:"rgba(0, 0, 0, 0.6)",foreground:"$white",backgroundContrast:"$accents0",...Se,...ke,...Te,...Ie,...ze,...Ne,...Re,...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",textLight:xe(Ae.gray900,.2),text:"$gray900",linkLight:xe(Se.blue600,.2),link:"$blue700",codeLight:"$cyan50",code:"$cyan600",selection:"$pink800",border:"rgba(255, 255, 255, 0.15)"},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))"}},je=(e=>{const t=(e=>{let t=!1;const o=ue(e,(e=>{t=!0;const o="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",r="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:o,media:r,theme:i,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...w},utils:"object"==typeof e.utils&&e.utils||{}},a=q(n),l={css:J(s,a),globalCss:ie(s,a),keyframes:ae(s,a),createTheme:de(s,a),reset(){a.reset(),l.theme.toString()},theme:{},sheet:a,config:s,prefix:o,getCssText:a.toString,toString:a.toString};return String(l.theme=l.createTheme(i)),l}));return t||o.reset(),o})(e);return t.styled=(({config:e,sheet:t})=>pe(e,(()=>{const o=J(e,t);return(...e)=>{const t=o(...e),r=t[k].type,n=g.forwardRef(((e,o)=>{const n=e&&e.as||r,{props:i,deferredInjector:s}=t(e);return delete i.as,i.ref=o,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.${r.displayName||r.name||r}`,n.selector=t.selector,n.toString=()=>t.selector,n[k]=t[k],n}})))(t),t})({...fe,theme:{...fe.theme,shadows:{...Ke.shadows},dropShadows:{...Ke.dropShadows},colors:{...fe.theme.colors,...Ke.colors}}}),We=je.createTheme,De=je.styled,Oe=je.css,Ve=je.globalCss,Ue=je.keyframes,Ge=je.getCssText,_e=je.theme,qe=je.config,Ye=({type:e,theme:t,className:o})=>{if(!e)throw new Error("Theme type is required");return We(o||`${e}-theme`,ge("dark"===e?Fe:Ke,t))},Xe={isDark:!1,theme:_e,type:"light"},Ze=h().createContext(Xe),Je=()=>h().useContext(Ze),Qe=()=>{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}},et=(e,t)=>{let o=[];return[h().Children.map(e,(e=>h().isValidElement(e)&&e.type===t?(o.push(e),null):e)),o.length>=0?o:void 0]},tt=()=>!!Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)&&navigator.platform.toUpperCase().indexOf("MAC")>=0,ot=e=>{const t=document.createElement("div");return t.setAttribute("id",e),t},rt=(e=(()=>Math.random().toString(32).slice(2,10))(),t)=>{const o=`nextui-${e}`,{isBrowser:r}=Qe(),[n,i]=(0,g.useState)(r?ot(o):null);return(0,g.useEffect)((()=>{const e=(t?t():null)||document.body,r=null==e?void 0:e.querySelector(`#${o}`),n=r||ot(o);r||e.appendChild(n),i(n)}),[]),n},nt={scrollLayer:!1},it=new Map,st=e=>!!(e.touches&&e.touches.length>1)||(e.preventDefault(),!1),at=(e,t)=>{if("undefined"==typeof document)return[!1,e=>e];const o=e||(0,g.useRef)(document.body),[r,n]=(0,g.useState)(!1),i={...nt,...t||{}},s=()=>!i.scrollLayer&&!("undefined"==typeof window||!window.navigator)&&/iP(ad|hone|od)/.test(window.navigator.platform);return(0,g.useEffect)((()=>{if(!o||!o.current)return;const e=o.current.style.overflow;if(r){if(it.has(o.current))return;return s()?document.addEventListener("touchmove",st,{passive:!1}):o.current.style.overflow="hidden",void it.set(o.current,{last:e})}if(it.has(o.current)){if(s())document.removeEventListener("touchmove",st);else{const e=it.get(o.current);o.current.style.overflow=e.last}it.delete(o.current)}}),[r,o]),[r,n]},lt=(e,t)=>{(0,g.useEffect)((()=>{const o=o=>{const r=e.current;o&&r&&!r.contains(o.target)&&t(o)};return document.addEventListener("click",o),()=>document.removeEventListener("click",o)}),[e,t])},ct={},dt={onError:()=>false},ut=(e=dt)=>{const t=rt("clipboard"),o=(0,g.useCallback)((o=>{((t,o)=>{if(!t||!o)return;const r=window.getSelection();if(!r)return;t.style.whiteSpace="pre",t.textContent=o;const n=window.document.createRange();r.removeAllRanges(),n.selectNode(t),r.addRange(n);try{window.document.execCommand("copy")}catch(t){e.onError&&e.onError()}r.removeAllRanges(),t&&(t.textContent="")})(t,o)}),[t]);return{copy:o}},pt=e=>{(0,g.useEffect)((()=>{const t=t=>e(t);return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}),[e])},gt=e=>{const[t,o,r]=m(e);return{value:t,setValue:o,currentRef:r,reset:()=>o(e),bindings:{value:t,onChange:e=>{"object"==typeof e&&e.target?o(e.target.value):o(e)}}}},ht=e=>e&&"object"==typeof e,mt=(e,t)=>ht(e)?e instanceof Array?[...e]:e[t]:e,$t=e=>e.length&&Array.isArray(e)?e.reduce(((e,t)=>({...e,...t})),{}):{},ft={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},bt={CtrlCmd:2048,Shift:1024,Alt:512,WinCtrl:256},yt=(e,t,o={})=>{const r=Array.isArray(t)?t:[t],{disableGlobalEvent:n=!1,capture:i=!1,stopPropagation:s=!1,preventDefault:a=!1,event:l="keydown"}=o,c=(e=>{const t=e.filter((e=>!!mt(bt,e))),o={CtrlCmd:!1,Shift:!1,Alt:!1,WinCtrl:!1};return t.forEach((e=>{const t=mt(bt,e);o[t]=!0})),o})(r),d=r.filter((e=>!mt(bt,e))),{CtrlCmd:u,WinCtrl:p}={CtrlCmd:tt()?"metaKey":"ctrlKey",WinCtrl:tt()?"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 vt(e,t){const o=t-e+1;return Array.from({length:o},((t,o)=>o+e))}const xt="dots",wt=({page:e,total:t,siblings:o=1,boundaries:r=1,initialPage:n=1,onChange:i})=>{const[s,a]=(0,g.useState)(e||n),l=(0,g.useMemo)((()=>void 0!==e),[e]);(0,g.useEffect)((()=>{e&&e!==s&&a(e)}),[e,s]);const c=(0,g.useCallback)((e=>{l||a(e),null==i||i(e)}),[a,i,l]),d=(0,g.useCallback)((e=>{c(e<=0?1:e>t?t:e)}),[c,t]);return{range:(0,g.useMemo)((()=>{if(2*o+3+2*r>=t)return vt(1,t);const e=Math.max(s-o,r),n=Math.min(s+o,t-r),i=e>r+2,a=n<t-(r+1);if(!i&&a)return[...vt(1,2*o+r+2),xt,...vt(t-(r-1),t)];if(i&&!a){const e=r+1+2*o;return[...vt(1,r),xt,...vt(t-e,t)]}return[...vt(1,r),xt,...vt(e,n),xt,...vt(t-r+1,t)]}),[t,o,s]),active:s,setPage:d,next:()=>d(s+1),previous:()=>d(s-1),first:()=>d(1),last:()=>d(t)}},St="undefined"!=typeof window;function Ct(e){return St?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}const kt=e=>{const{elementRef:t,wait:o=30,callback:r,enabled:n}=e,i=(0,g.useRef)(n?Ct(null==t?void 0:t.current):{x:0,y:0});let s=null;const a=()=>{const e=Ct(null==t?void 0:t.current);"function"==typeof r&&r({prevPos:i.current,currPos:e}),i.current=e,s=null};return(0,g.useEffect)((()=>{if(!n)return;const e=()=>{o?null===s&&(s=setTimeout(a,o)):a()},r=(null==t?void 0:t.current)||window;return r.addEventListener("scroll",e),()=>r.removeEventListener("scroll",e)}),[null==t?void 0:t.current,o,n]),i.current},Pt=function(e,{threshold:t=0,root:o=null,rootMargin:r="0%",freezeOnceVisible:n=!1}={}){const[i,s]=(0,g.useState)(),a=(null==i?void 0:i.isIntersecting)&&n,l=!(null==i||!i.isIntersecting),c=([e])=>{s(e)};return(0,g.useEffect)((()=>{if("undefined"==typeof window)return;const n=null==e?void 0:e.current;if(!window.IntersectionObserver||a||!n)return;const i=new IntersectionObserver(c,{threshold:t,root:o,rootMargin:r});return i.observe(n),()=>i.disconnect()}),[e,t,o,r,a]),{entry:i,setEntry:s,isVisible:l,isFrozen:a}},Tt=(e=!1,t)=>{const[o,r]=(0,g.useState)(e),[n,i]=(0,g.useState)(0),[s,a]=(0,g.useState)(0);return{visible:o,x:n,y:s,onClick:e=>{if(!t.current)return;const o=t.current.getBoundingClientRect();r(!0),i(e.clientX-o.left),a(e.clientY-o.top)},onCompleted:()=>{r(!1),i(0),a(0)}}},Et=(e,t)=>(e.defaultProps=t,e);function It(e){var t,o,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=It(e[t]))&&(r&&(r+=" "),r+=o);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Mt(...e){for(var t,o,r=0,n="";r<e.length;)(t=e[r++])&&(o=It(t))&&(n&&(n+=" "),n+=o);return n}var zt=n(678);const Lt=Ue({"0%":{opacity:0,transform:"scale(0.25)"},"30%":{opacity:1},"80%":{opacity:.5},"100%":{transform:"scale(28)",opacity:0}}),Nt=De("div",{position:"absolute",left:0,right:0,top:0,bottom:0,"& svg":{position:"absolute",animation:`350ms linear ${Lt}`,animationFillMode:"forwards",width:"$md",height:"$md"}}),Bt=({visible:e,x:t,y:o,color:r,onCompleted:n,className:i,...s})=>{const a=(0,g.useRef)(null),l=Number.isNaN(+o)?0:o-10,c=Number.isNaN(+t)?0:t-10;return(0,g.useEffect)((()=>{let e=a.current;if(e)return e.addEventListener("animationend",n),()=>{e&&e.removeEventListener("animationend",n)}})),e?(0,zt.jsx)(Nt,{ref:a,className:Mt("nextui-drip",i),...s,children:(0,zt.jsx)("svg",{height:"20",style:{top:l,left:c},viewBox:"0 0 20 20",width:"20",children:(0,zt.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:(0,zt.jsx)("g",{className:"nextui-drip-filler",fill:r,children:(0,zt.jsx)("rect",{height:"100%",rx:"10",width:"100%"})})})})}):null},Rt=Et(h().memo(Bt),{visible:!1,x:0,y:0,className:""}),Ht=Ve({"*, *: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:"$5xl",lineHeight:"$md",fontWeight:"$bold"},h2:{letterSpacing:"$tighter",fontSize:"$4xl",fontWeight:"$semibold"},h3:{letterSpacing:"$tighter",fontSize:"$2xl",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"},"dl, dd, hr, figure, p":{margin:0}}),At=({children:e})=>(Ht(),(0,zt.jsx)(h().Fragment,{children:e})),Kt=h().memo(At);Kt.flush=()=>(0,zt.jsx)("style",{dangerouslySetInnerHTML:{__html:Ge()},id:"stitches"});const Ft=Kt;function jt(e,t){let{cursor:o,getKey:r}=e;return{setSelectedKeys(e){t((t=>({...t,selectedKeys:e})))},setFilterText(e){t((t=>({...t,filterText:e})))},insert(e,...o){t((t=>Wt(t,e,...o)))},insertBefore(e,...o){t((t=>{let n=t.items.findIndex((t=>r(t)===e));if(-1!==n)return Wt(t,n,...o)}))},insertAfter(e,...o){t((t=>{let n=t.items.findIndex((t=>r(t)===e));if(-1!==n)return Wt(t,n+1,...o)}))},prepend(...e){t((t=>Wt(t,0,...e)))},append(...e){t((t=>Wt(t,t.items.length,...e)))},remove(...e){t((t=>{let n=new Set(e),i=t.items.filter((e=>!n.has(r(e)))),s="all";if("all"!==t.selectedKeys){s=new Set(t.selectedKeys);for(let t of e)s.delete(t)}return null==o&&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,o=e.items.filter((e=>!t.has(r(e))));return{...e,items:o,selectedKeys:new Set}}))},move(e,o){t((t=>{let n=t.items.findIndex((t=>r(t)===e));if(-1===n)return t;let i=t.items.slice(),[s]=i.splice(n,1);return i.splice(o,0,s),{...t,items:i}}))},moveBefore(e,o){t((t=>{let n=t.items.findIndex((t=>r(t)===e));if(-1===n)return t;let i=(Array.isArray(o)?o:[...o]).map((e=>t.items.findIndex((t=>r(t)===e)))).sort();return Dt(t,i,n)}))},moveAfter(e,o){t((t=>{let n=t.items.findIndex((t=>r(t)===e));if(-1===n)return t;let i=(Array.isArray(o)?o:[...o]).map((e=>t.items.findIndex((t=>r(t)===e)))).sort();return Dt(t,i,n+1)}))},update(e,o){t((t=>{let n=t.items.findIndex((t=>r(t)===e));return-1===n?t:{...t,items:[...t.items.slice(0,n),o,...t.items.slice(n+1)]}}))}}}function Wt(e,t,...o){return{...e,items:[...e.items.slice(0,t),...o,...e.items.slice(t)]}}function Dt(e,t,o){for(let e of t)e<o&&o--;let r=t.map((e=>({from:e,to:o++})));for(let e=0;e<r.length;e++){let t=r[e].from;for(let o=e;o<r.length;o++)r[o].from>t&&r[o].from--}for(let e=0;e<r.length;e++){let t=r[e];for(let o=r.length-1;o>e;o--){let e=r[o];e.from<t.to?t.to++:e.from++}}let n=e.items.slice();for(let e of r){let[t]=n.splice(e.from,1);n.splice(e.to,0,t)}return{...e,items:n}}function Ot(e,t){let o;switch(e.state){case"idle":case"error":switch(t.type){case"loading":case"loadingMore":case"sorting":case"filtering":var r,n;return{...e,filterText:null!==(r=t.filterText)&&void 0!==r?r: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:(o=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"===o?"all":new Set(o),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 o="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:o,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 Vt(e){const{load:t,sort:o,initialSelectedKeys:r,initialSortDescriptor:n,getKey:i=(e=>e.id||e.key),initialFilterText:s=""}=e;let[a,l]=(0,g.useReducer)(Ot,{state:"idle",error:null,items:[],selectedKeys:"all"===r?"all":new Set(r),sortDescriptor:n,filterText:s});const c=async(e,o)=>{let r=new AbortController;try{var n;l({...e,abortController:r});let d=null!==(n=e.filterText)&&void 0!==n?n:a.filterText;var i;let u=await o({items:a.items.slice(),selectedKeys:a.selectedKeys,sortDescriptor:null!==(i=e.sortDescriptor)&&void 0!==i?i:a.sortDescriptor,signal:r.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:r}),p&&p!==d&&!r.signal.aborted&&c({type:"filtering",filterText:p},t)}catch(e){l({type:"error",error:e,abortController:r})}};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},o||t)},...jt({...e,getKey:i,cursor:a.cursor},(e=>{l({type:"update",updater:e})})),setFilterText(e){c({type:"filtering",filterText:e},t)}}}const Ut={prefix:String(Math.round(1e10*Math.random())),current:0},Gt=h().createContext(Ut);Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);const _t=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),qt=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Yt(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return _t.has(t)}let t=e.split("-")[0];return qt.has(t)}function Xt(){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:Yt(e)?"rtl":"ltr"}}let Zt=Xt(),Jt=new Set;function Qt(){Zt=Xt();for(let e of Jt)e(Zt)}const eo=h().createContext(null);function to(){let e=function(){let e=function(){let e=(0,g.useContext)(Gt)!==Ut,[t,o]=(0,g.useState)(e);return"undefined"!=typeof window&&e&&(0,g.useLayoutEffect)((()=>{o(!1)}),[]),t}(),[t,o]=(0,g.useState)(Zt);return(0,g.useEffect)((()=>(0===Jt.size&&window.addEventListener("languagechange",Qt),Jt.add(o),()=>{Jt.delete(o),0===Jt.size&&window.removeEventListener("languagechange",Qt)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return(0,g.useContext)(eo)||e}new WeakMap;let oo=new Map;function ro(e){let{locale:t}=to(),o=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(oo.has(o))return oo.get(o);let r=new Intl.Collator(t,e);return oo.set(o,r),r}const no={prefix:String(Math.round(1e10*Math.random())),current:0},io=h().createContext(no);function so(e){let t=(0,g.useContext)(io),o=(0,g.useMemo)((()=>({prefix:t===no?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return h().createElement(io.Provider,{value:o},e.children)}Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);const ao={prefix:String(Math.round(1e10*Math.random())),current:0},lo=h().createContext(ao);let co=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function uo(){let e=(0,g.useContext)(lo)!==ao,[t,o]=(0,g.useState)(e);return"undefined"!=typeof window&&e&&(0,g.useLayoutEffect)((()=>{o(!1)}),[]),t}function po(e){var t,o,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=po(e[t]))&&(r&&(r+=" "),r+=o);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const go=function(){for(var e,t,o=0,r="";o<arguments.length;)(e=arguments[o++])&&(t=po(e))&&(r&&(r+=" "),r+=t);return r},ho="undefined"!=typeof window?h().useLayoutEffect:()=>{};let mo=new Map;function $o(e){let[t,o]=(0,g.useState)(e),r=(0,g.useRef)(null),n=function(e){let t=(0,g.useContext)(lo);return t!==ao||co||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])}(t),i=(0,g.useCallback)((e=>{r.current=e}),[]);return mo.set(n,i),ho((()=>{let e=n;return()=>{mo.delete(e)}}),[n]),(0,g.useEffect)((()=>{let e=r.current;e&&(r.current=null,o(e))})),n}function fo(e,t){if(e===t)return e;let o=mo.get(e);if(o)return o(t),t;let r=mo.get(t);return r?(r(e),e):t}function bo(e=[]){let t=$o(),[o,r]=function(e){let[t,o]=(0,g.useState)(e),r=(0,g.useRef)(t),n=(0,g.useRef)(null);r.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():o(e.value)},ho((()=>{n.current&&i.current()}));let s=(0,g.useCallback)((e=>{n.current=e(r.current),i.current()}),[n,i]);return[t,s]}(t),n=(0,g.useCallback)((()=>{r((function*(){yield t,yield document.getElementById(t)?t:void 0}))}),[t,r]);return ho(n,[t,n,...e]),o}function yo(...e){return(...t)=>{for(let o of e)"function"==typeof o&&o(...t)}}function vo(...e){let t={...e[0]};for(let o=1;o<e.length;o++){let r=e[o];for(let e in r){let o=t[e],n=r[e];"function"==typeof o&&"function"==typeof n&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=yo(o,n):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof o||"string"!=typeof n?"id"===e&&o&&n?t.id=fo(o,n):t[e]=void 0!==n?n:o:t[e]=go(o,n)}}return t}const xo=new Set(["id"]),wo=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),So=/^(data-.*)$/;function Co(e,t={}){let{labelable:o,propNames:r}=t,n={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(xo.has(t)||o&&wo.has(t)||(null==r?void 0:r.has(t))||So.test(t))&&(n[t]=e[t]);return n}function ko(e){if(function(){if(null==Po){Po=!1;try{document.createElement("div").focus({get preventScroll(){return Po=!0,!0}})}catch(e){}}return Po}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,o=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&o.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&o.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),o}(e);e.focus(),function(e){for(let{element:t,scrollTop:o,scrollLeft:r}of e)t.scrollTop=o,t.scrollLeft=r}(t)}}let Po=null,To=new Map,Eo=new Set;function Io(){if("undefined"==typeof window)return;let e=t=>{let o=To.get(t.target);if(o&&(o.delete(t.propertyName),0===o.size&&(t.target.removeEventListener("transitioncancel",e),To.delete(t.target)),0===To.size)){for(let e of Eo)e();Eo.clear()}};document.body.addEventListener("transitionrun",(t=>{let o=To.get(t.target);o||(o=new Set,To.set(t.target,o),t.target.addEventListener("transitioncancel",e)),o.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function Mo(e){requestAnimationFrame((()=>{0===To.size?e():Eo.add(e)}))}function zo(){let e=(0,g.useRef)(new Map),t=(0,g.useCallback)(((t,o,r,n)=>{let i=(null==n?void 0:n.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:o,eventTarget:t,fn:i,options:n}),t.addEventListener(o,r,n)}),[]),o=(0,g.useCallback)(((t,o,r,n)=>{var i;let s=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(o,s,n),e.current.delete(r)}),[]),r=(0,g.useCallback)((()=>{e.current.forEach(((e,t)=>{o(e.eventTarget,e.type,t,e.options)}))}),[o]);return(0,g.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:o,removeAllGlobalListeners:r}}function Lo(e,t){let{id:o,"aria-label":r,"aria-labelledby":n}=e;if(o=$o(o),n&&r){let e=new Set([...n.trim().split(/\s+/),o]);n=[...e].join(" ")}else n&&(n=n.trim().split(/\s+/).join(" "));return r||n||!t||(r=t),{id:o,"aria-label":r,"aria-labelledby":n}}function No(e,t){const o=(0,g.useRef)(!0);(0,g.useEffect)((()=>{o.current?o.current=!1:e()}),t)}function Bo(e,t){ho((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}"undefined"!=typeof document&&("loading"!==document.readyState?Io():document.addEventListener("DOMContentLoaded",Io)),"undefined"!=typeof window&&window.visualViewport;let Ro=0;const Ho=new Map;function Ao(e){let[t,o]=(0,g.useState)(void 0);return ho((()=>{if(!e)return;let t=Ho.get(e);if(t)o(t.element.id);else{let r="react-aria-description-"+Ro++;o(r);let n=document.createElement("div");n.id=r,n.style.display="none",n.textContent=e,document.body.appendChild(n),t={refCount:0,element:n},Ho.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),Ho.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}function Ko(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Fo(){return Ko(/^Mac/i)}function jo(){return Ko(/^iPhone/i)||Ko(/^iPad/i)||Fo()&&navigator.maxTouchPoints>1}function Wo(){return e=/Android/i,"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));var e,t}function Do(e,t){let o=Oo(e,t,"left"),r=Oo(e,t,"top"),n=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,l=s+e.offsetWidth,c=a+e.offsetHeight;o<=s?s=o:o+n>l&&(s+=o+n-l),r<=a?a=r:r+i>c&&(a+=r+i-c),e.scrollLeft=s,e.scrollTop=a}function Oo(e,t,o){const r="left"===o?"offsetLeft":"offsetTop";let n=0;for(;t.offsetParent&&(n+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){n-=e[r];break}t=t.offsetParent}return n}function Vo(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Wo()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}class Uo{getStringForLocale(e,t){let o=this.strings[t];o||(o=function(e,t,o="en-US"){if(t[e])return t[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[o]}(t,this.strings,this.defaultLocale),this.strings[t]=o);let r=o[e];if(!r)throw new Error(`Could not find intl message ${e} in ${t} locale`);return r}constructor(e,t="en-US"){this.strings={...e},this.defaultLocale=t}}const Go=new Map,_o=new Map;class qo{format(e,t){let o=this.strings.getStringForLocale(e,this.locale);return"function"==typeof o?o(t,this):o}plural(e,t,o="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let n=this.locale+":"+o,i=Go.get(n);return i||(i=new Intl.PluralRules(this.locale,{type:o}),Go.set(n,i)),r=t[i.select(e)]||t.other,"function"==typeof r?r():r}number(e){let t=_o.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),_o.set(this.locale,t)),t.format(e)}select(e,t){let o=e[t]||e.other;return"function"==typeof o?o():o}constructor(e,t){this.locale=e,this.strings=t}}const Yo=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Xo=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Zo(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return Yo.has(t)}let t=e.split("-")[0];return Xo.has(t)}function Jo(){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:Zo(e)?"rtl":"ltr"}}let Qo=Jo(),er=new Set;function tr(){Qo=Jo();for(let e of er)e(Qo)}const or=h().createContext(null);function rr(){let e=function(){let e=uo(),[t,o]=(0,g.useState)(Qo);return(0,g.useEffect)((()=>(0===er.size&&window.addEventListener("languagechange",tr),er.add(o),()=>{er.delete(o),0===er.size&&window.removeEventListener("languagechange",tr)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return(0,g.useContext)(or)||e}const nr=new WeakMap;function ir(e){let{locale:t}=rr(),o=(0,g.useMemo)((()=>function(e){let t=nr.get(e);return t||(t=new Uo(e),nr.set(e,t)),t}(e)),[e]);return(0,g.useMemo)((()=>new qo(t,o)),[t,o])}let sr=new Map;function ar(e){let{locale:t}=rr(),o=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(sr.has(o))return sr.get(o);let r=new Intl.Collator(t,e);return sr.set(o,r),r}let lr="default",cr="",dr=new WeakMap;function ur(e){jo()?("default"===lr&&(cr=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),lr="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(dr.set(e,e.style.userSelect),e.style.userSelect="none")}function pr(e){if(jo()){if("disabled"!==lr)return;lr="restoring",setTimeout((()=>{Mo((()=>{"restoring"===lr&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=cr||""),cr="",lr="default")}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&dr.has(e)){let t=dr.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),dr.delete(e)}}const gr=h().createContext(null);function hr(e){let{onPress:t,onPressChange:o,onPressStart:r,onPressEnd:n,onPressUp:i,isDisabled:s,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:u,...p}=function(e){let t=(0,g.useContext)(gr);if(t){let{register:o,...r}=t;e=vo(r,e),o()}return Bo(t,e.ref),e}(e),h=(0,g.useRef)(null);h.current={onPress:t,onPressChange:o,onPressStart:r,onPressEnd:n,onPressUp:i,isDisabled:s,shouldCancelOnPointerExit:c};let[m,$]=(0,g.useState)(!1),f=(0,g.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:y}=zo(),v=(0,g.useMemo)((()=>{let e=f.current,t=(t,o)=>{let{onPressStart:r,onPressChange:n,isDisabled:i}=h.current;i||e.didFirePressStart||(r&&r({type:"pressstart",pointerType:o,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),n&&n(!0),e.didFirePressStart=!0,$(!0))},o=(t,o,r=!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:o,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),i&&i(!1),$(!1),s&&r&&!a&&s({type:"press",pointerType:o,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}))},r=(e,t)=>{let{onPressUp:o,isDisabled:r}=h.current;r||o&&o({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&&o(br(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),d||pr(e.target))},i={onKeyDown(o){$r(o.nativeEvent,o.currentTarget)&&o.currentTarget.contains(o.target)?(xr(o.target,o.key)&&o.preventDefault(),o.stopPropagation(),e.isPressed||o.repeat||(e.target=o.currentTarget,e.isPressed=!0,t(o,"keyboard"),b(document,"keyup",a,!1))):"Enter"===o.key&&mr(o.currentTarget)&&o.stopPropagation()},onKeyUp(t){$r(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(br(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&&!Vo(n.nativeEvent)||(s||l||ko(n.currentTarget),t(n,"virtual"),r(n,"virtual"),o(n,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{if(e.isPressed&&$r(t,e.target)){xr(t.target,t.key)&&t.preventDefault(),t.stopPropagation(),e.isPressed=!1;let r=t.target;o(br(e.target,t),"keyboard",e.target.contains(r)),y(),e.target instanceof HTMLElement&&e.target.contains(r)&&(mr(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){i.onPointerDown=o=>{var r;0===o.button&&o.currentTarget.contains(o.target)&&(0===(r=o.nativeEvent).width&&0===r.height||1===r.width&&1===r.height&&0===r.pressure&&0===r.detail&&"mouse"===r.pointerType?e.pointerType="virtual":(vr(o.currentTarget)&&o.preventDefault(),e.pointerType=o.pointerType,o.stopPropagation(),e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=o.pointerId,e.target=o.currentTarget,s||l||ko(o.currentTarget),d||ur(e.target),t(o,e.pointerType),b(document,"pointermove",a,!1),b(document,"pointerup",c,!1),b(document,"pointercancel",u,!1))))},i.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(vr(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},i.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&yr(t,t.currentTarget)&&r(t,e.pointerType||t.pointerType)};let a=r=>{r.pointerId===e.activePointerId&&(yr(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(br(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,o(br(e.target,r),e.pointerType,!1),h.current.shouldCancelOnPointerExit&&n(r)))},c=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(yr(t,e.target)?o(br(e.target,t),e.pointerType):e.isOverTarget&&o(br(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),d||pr(e.target))},u=e=>{n(e)};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&n(e)}}else{i.onMouseDown=o=>{0===o.button&&o.currentTarget.contains(o.target)&&(vr(o.currentTarget)&&o.preventDefault(),o.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=o.currentTarget,e.pointerType=Vo(o.nativeEvent)?"virtual":"mouse",s||l||ko(o.currentTarget),t(o,e.pointerType),b(document,"mouseup",a,!1)))},i.onMouseEnter=o=>{o.currentTarget.contains(o.target)&&(o.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,t(o,e.pointerType)))},i.onMouseLeave=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,o(t,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&n(t)))},i.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||r(t,e.pointerType))};let a=t=>{0===t.button&&(e.isPressed=!1,y(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(yr(t,e.target)?o(br(e.target,t),e.pointerType):e.isOverTarget&&o(br(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};i.onTouchStart=o=>{if(!o.currentTarget.contains(o.target))return;o.stopPropagation();let r=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(o.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=o.currentTarget,e.pointerType="touch",s||l||ko(o.currentTarget),d||ur(e.target),t(o,e.pointerType),b(window,"scroll",c,!0))},i.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let i=fr(r.nativeEvent,e.activePointerId);i&&yr(i,r.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,t(r,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,o(r,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&n(r))},i.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(t.stopPropagation(),!e.isPressed)return;let n=fr(t.nativeEvent,e.activePointerId);n&&yr(n,t.currentTarget)?(r(t,e.pointerType),o(t,e.pointerType)):e.isOverTarget&&o(t,e.pointerType,!1),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,d||pr(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}),[b,s,l,y,d]);return(0,g.useEffect)((()=>()=>{d||pr(f.current.target)}),[d]),{isPressed:a||m,pressProps:vo(p,v)}}function mr(e){return"A"===e.tagName&&e.hasAttribute("href")}function $r(e,t){const{key:o,code:r}=e,n=t,i=n.getAttribute("role");return!("Enter"!==o&&" "!==o&&"Spacebar"!==o&&"Space"!==r||n instanceof HTMLInputElement&&!Sr(n,o)||n instanceof HTMLTextAreaElement||n.isContentEditable||mr(n)&&("button"!==i||"Enter"===o)||"link"===i&&"Enter"!==o)}function fr(e,t){const o=e.changedTouches;for(let e=0;e<o.length;e++){const r=o[e];if(r.identifier===t)return r}return null}function br(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function yr(e,t){let o=t.getBoundingClientRect(),r=function(e){let t=e.width/2||e.radiusX||0,o=e.height/2||e.radiusY||0;return{top:e.clientY-o,right:e.clientX+t,bottom:e.clientY+o,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)}(o,r)}function vr(e){return!(e instanceof HTMLElement&&e.draggable)}function xr(e,t){return e instanceof HTMLInputElement?!Sr(e,t):!(e instanceof HTMLButtonElement)||"submit"!==e.type}gr.displayName="PressResponderContext";const wr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Sr(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:wr.has(e.type)}class Cr{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 kr(e){let t=(0,g.useRef)({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,ho((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),(0,g.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=e.target,r=e=>{var r,n;t.current.isFocused=!1,o.disabled&&(null===(n=(r=t.current).onBlur)||void 0===n||n.call(r,new Cr("blur",e))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",r,{once:!0}),t.current.observer=new MutationObserver((()=>{t.current.isFocused&&o.disabled&&(t.current.observer.disconnect(),o.dispatchEvent(new FocusEvent("blur")),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))})),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}}),[])}let Pr=null,Tr=new Set,Er=!1,Ir=!1,Mr=!1;function zr(e,t){for(let o of Tr)o(e,t)}function Lr(e){Ir=!0,function(e){return!(e.metaKey||!Fo()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Pr="keyboard",zr("keyboard",e))}function Nr(e){Pr="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Ir=!0,zr("pointer",e))}function Br(e){Vo(e)&&(Ir=!0,Pr="virtual")}function Rr(e){e.target!==window&&e.target!==document&&(Ir||Mr||(Pr="virtual",zr("virtual",e)),Ir=!1,Mr=!1)}function Hr(){Ir=!1,Mr=!0}function Ar(){if("undefined"==typeof window||Er)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Ir=!0,e.apply(this,arguments)},document.addEventListener("keydown",Lr,!0),document.addEventListener("keyup",Lr,!0),document.addEventListener("click",Br,!0),window.addEventListener("focus",Rr,!0),window.addEventListener("blur",Hr,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Nr,!0),document.addEventListener("pointermove",Nr,!0),document.addEventListener("pointerup",Nr,!0)):(document.addEventListener("mousedown",Nr,!0),document.addEventListener("mousemove",Nr,!0),document.addEventListener("mouseup",Nr,!0)),Er=!0}function Kr(){return"pointer"!==Pr}function Fr(e){let{isDisabled:t,onBlurWithin:o,onFocusWithin:r,onFocusWithinChange:n}=e,i=(0,g.useRef)({isFocusWithin:!1}),s=(0,g.useCallback)((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,o&&o(e),n&&n(!1))}),[o,n,i]),a=kr(s),l=(0,g.useCallback)((e=>{i.current.isFocusWithin||(r&&r(e),n&&n(!0),i.current.isFocusWithin=!0,a(e))}),[r,n,a]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:l,onBlur:s}}}"undefined"!=typeof document&&("loading"!==document.readyState?Ar():document.addEventListener("DOMContentLoaded",Ar));let jr=!1,Wr=0;function Dr(){jr=!0,setTimeout((()=>{jr=!1}),50)}function Or(e){"touch"===e.pointerType&&Dr()}function Vr(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Or):document.addEventListener("touchend",Dr),Wr++,()=>{Wr--,Wr>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Or):document.removeEventListener("touchend",Dr))}}function Ur(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 Gr(e){if(!e)return;let t=!0;return o=>{let r={...o,preventDefault(){o.preventDefault()},isDefaultPrevented:()=>o.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(r),t&&o.stopPropagation()}}const _r=500;function qr(e){let{isDisabled:t,onLongPressStart:o,onLongPressEnd:r,onLongPress:n,threshold:i=_r,accessibilityDescription:s}=e;const a=(0,g.useRef)(null);let{addGlobalListener:l,removeGlobalListener:c}=zo(),{pressProps:d}=hr({isDisabled:t,onPressStart(e){if(("mouse"===e.pointerType||"touch"===e.pointerType)&&(o&&o({...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),!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r({...e,type:"longpressend"})}});return{longPressProps:vo(d,Ao(n&&!t?s:null))}}var Yr=n(156),Xr=n.n(Yr);const Zr={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 Jr(e){let{children:t,elementType:o="div",isFocusable:r,style:n,...i}=e,{visuallyHiddenProps:s}=function(e={}){let{style:t,isFocusable:o}=e,[r,n]=(0,g.useState)(!1),{focusWithinProps:i}=Fr({isDisabled:!o,onFocusWithinChange:e=>n(e)});return{visuallyHiddenProps:{...i,style:(0,g.useMemo)((()=>r?t:t?{...Zr,...t}:Zr),[r])}}}(e);return h().createElement(o,vo(i,s),t)}function Qr(e){return e&&e.__esModule?e.default:e}const en={top:"top",bottom:"top",left:"left",right:"left"},tn={top:"bottom",bottom:"top",left:"right",right:"left"},on={top:"left",left:"top"},rn={top:"height",left:"width"},nn={};let sn="undefined"!=typeof window&&window.visualViewport;function an(e,t,o,r,n){let i=r.scroll[e],s=r[rn[e]],a=t-n-i,l=t+n-i+o;return a<0?-a:l>s?Math.max(s-l,-a):0}function ln(e){if(nn[e])return nn[e];let[t,o]=e.split(" "),r=en[t]||"right",n=on[r];en[o]||(o="center");let i=rn[r],s=rn[n];return nn[e]={placement:t,crossPlacement:o,axis:r,crossAxis:n,size:i,crossSize:s},nn[e]}function cn(e,t,o,r,n,i,s,a){let{placement:l,crossPlacement:c,axis:d,crossAxis:u,size:p,crossSize:g}=r,h={};h[u]=e[u],"center"===c?h[u]+=(e[g]-o[g])/2:c!==u&&(h[u]+=e[g]-o[g]),h[u]+=i;let m=e[u]+e[g]/2-o[g],$=e[u]+e[g]/2;if(h[u]=Math.min(Math.max(m,h[u]),$),l===d){const o=a?s[p]:t[p];h[tn[d]]=Math.floor(o-e[d]+n)}else h[d]=Math.floor(e[d]+e[p]+n);return h}function dn(e,t,o,r,n,i){let{placement:s,axis:a,size:l}=i;return s===a?Math.max(0,o[a]-e[a]-e.scroll[a]+t[a]-r[a]-r[tn[a]]-n):Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-o[a]-o[l]-r[a]-r[tn[a]]-n)}function un(e){let{placement:t,targetNode:o,overlayNode:r,scrollNode:n,padding:i,shouldFlip:s,boundaryElement:a,offset:l,crossOffset:c,maxHeight:d}=e,u=r instanceof HTMLElement&&r.offsetParent||document.body,p="BODY"===u.tagName;const g=window.getComputedStyle(u).position;let h=!!g&&"static"!==g,m=p?pn(o):gn(o,u);if(!p){let{marginTop:e,marginLeft:t}=window.getComputedStyle(o);m.top+=parseInt(e,10)||0,m.left+=parseInt(t,10)||0}let $=pn(r),f=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}}(r);var b;return $.width+=f.left+f.right,$.height+=f.top+f.bottom,function(e,t,o,r,n,i,s,a,l,c,d,u,p){let g=ln(e),{size:h,crossAxis:m,crossSize:$,placement:f,crossPlacement:b}=g,y=cn(t,a,o,g,c,d,l,u),v=c,x=dn(a,l,t,n,i+c,g);if(s&&r[h]>x){let e=ln(`${tn[f]} ${b}`),r=cn(t,a,o,e,c,d,l,u);dn(a,l,t,n,i+c,e)>x&&(g=e,y=r,v=c)}let w=an(m,y[m],o[$],a,i);y[m]+=w;let S=function(e,t,o,r,n,i){return null!=e.top?Math.max(0,t.height+t.top+t.scroll.top-(o.top+e.top)-(n.top+n.bottom+i)):Math.max(0,r.top+o.top-(t.top+t.scroll.top)-(n.top+n.bottom+i))}(y,a,l,t,n,i);p&&p<S&&(S=p),o.height=Math.min(o.height,S),y=cn(t,a,o,g,v,d,l,u),w=an(m,y[m],o[$],a,i),y[m]+=w;let C={};return C[m]=t[m]-y[m]+t[$]/2,{position:y,maxHeight:S,arrowOffsetLeft:C.left,arrowOffsetTop:C.top,placement:g.placement}}(t,m,$,{top:(b=n).scrollTop,left:b.scrollLeft,width:b.scrollWidth,height:b.scrollHeight},f,i,s,function(e){let t=0,o=0,r=0,n=0,i={};if("BODY"===e.tagName){let r=document.documentElement;var s,a;t=null!==(s=null==sn?void 0:sn.width)&&void 0!==s?s:r.clientWidth,o=null!==(a=null==sn?void 0:sn.height)&&void 0!==a?a:r.clientHeight,i.top=r.scrollTop||e.scrollTop,i.left=r.scrollLeft||e.scrollLeft}else({width:t,height:o,top:r,left:n}=pn(e)),i.top=e.scrollTop,i.left=e.scrollLeft;return{width:t,height:o,scroll:i,top:r,left:n}}(a),"BODY"===a.tagName?pn(u):gn(u,a),l,c,h,d)}function pn(e){let{top:t,left:o,width:r,height:n}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:s,clientTop:a,clientLeft:l}=document.documentElement;return{top:t+i-a,left:o+s-l,width:r,height:n}}function gn(e,t){let o,r=window.getComputedStyle(e);if("fixed"===r.position){let{top:t,left:r,width:n,height:i}=e.getBoundingClientRect();o={top:t,left:r,width:n,height:i}}else{o=pn(e);let r=pn(t),n=window.getComputedStyle(t);r.top+=(parseInt(n.borderTopWidth,10)||0)-t.scrollTop,r.left+=(parseInt(n.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=r.top,o.left-=r.left}return o.top-=parseInt(r.marginTop,10)||0,o.left-=parseInt(r.marginLeft,10)||0,o}const hn=new WeakMap;let mn="undefined"!=typeof window&&window.visualViewport;function $n(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const fn=[];"undefined"!=typeof window&&window.visualViewport,new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);const bn=h().createContext(null);function yn(e){let{children:t}=e,o=(0,g.useContext)(bn),[r,n]=(0,g.useState)(0),i=(0,g.useMemo)((()=>({parent:o,modalCount:r,addModal(){n((e=>e+1)),o&&o.addModal()},removeModal(){n((e=>e-1)),o&&o.removeModal()}})),[o,r]);return h().createElement(bn.Provider,{value:i},t)}function vn(e){let{modalProviderProps:t}=function(){let e=(0,g.useContext)(bn);return{modalProviderProps:{"aria-hidden":!!(e&&e.modalCount>0)||null}}}();return h().createElement("div",{"data-overlay-container":!0,...e,...t})}function xn(e){return h().createElement(yn,null,h().createElement(vn,e))}function wn(e){let t=uo(),{portalContainer:o=(t?null:document.body),...r}=e;if(h().useEffect((()=>{if(null==o?void 0:o.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")}),[o]),!o)return null;let n=h().createElement(xn,r);return Xr().createPortal(n,o)}var Sn;function Cn(e){let{onDismiss:t,...o}=e,r=Lo(o,ir(Qr(Sn)).format("dismiss"));return h().createElement(Jr,null,h().createElement("button",{...r,tabIndex:-1,onClick:()=>{t&&t()}}))}Sn={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schließen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutasítás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}},new WeakMap;const kn=(e,t,o=1)=>{if("undefined"==typeof document||!e)return"";let r=getComputedStyle(document.documentElement);const n=`--${fe.prefix}-${e}-${t}`,i=r.getPropertyValue(n);if(i&&i.includes("var")&&kn(e,i),i&&1!==o){if(i.includes("rgb"))return((e,t=1)=>{const[o,r,n]=e.split(",").map((e=>Number.parseFloat(e)));return`rgba(${o}, ${r}, ${n}, ${t>1?1:t<0?0:t})`})(i,o);if(i.includes("#"))return ve(i,o)}return i},Pn=e=>{var t;const o=(null==e||null==(t=e.getAttribute("style"))?void 0:t.split(";").map((e=>e.trim())).filter((e=>e.includes("color-scheme"))))||[],r=o.length>0?o[0].replace("color-scheme: ","").replace(";",""):"";return(null==e?void 0:e.getAttribute("data-theme"))||r},Tn=e=>"string"==typeof e&&null!=e&&e.includes("-theme")?null==e?void 0:e.replace("-theme",""):e,En=e=>{var t,o;if(!document)return;const r=document.documentElement,n=(null==r||null==(t=r.getAttribute("class"))?void 0:t.split(" ").filter((e=>!e.includes("theme")&&!e.includes("light")&&!e.includes("dark"))))||[],i=(null==r||null==(o=r.getAttribute("style"))?void 0:o.split(";").filter((e=>!e.includes("color-scheme")&&e.length)).map((e=>`${e};`)))||[],s=Tn(e);null==r||r.setAttribute("class",Mt(n,`${s}-theme`)),null==r||r.setAttribute("style",Mt(i,`color-scheme: ${s};`))},In=Et((({theme:e,disableBaseline:t,children:o})=>{const{isBrowser:r}=Qe(),[n,i]=(0,g.useState)(Xe.type),s=e=>{i((t=>t!==e?e:t))},a=e=>{const t=Pn(e);t&&s(t)},l=(0,g.useMemo)((()=>{const e=r?(()=>{const e=[...Object.keys(fe.theme.colors),...Object.keys(Ke.colors)],t=Object.keys(Ke.shadows);return{colors:e.reduce(((e,t)=>{const o=kn("colors",t);return o&&(e[t]={prefix:fe.prefix,scale:"colors",token:t,value:o}),e}),{}),shadows:t.reduce(((e,t)=>{const o=kn("shadows",t);return o&&(e[t]={prefix:fe.prefix,scale:"shadows",token:t,value:o}),e}),{})}})():{},t=ge(ht(o=Xe.theme)?o instanceof Array?[...o]:{...o}:o,e);var o;const i=Tn(n);return{theme:t,type:i,isDark:"dark"===i}}),[n,r]);return(0,g.useEffect)((()=>{var e,t,o;a(null==(e=document)?void 0:e.documentElement);const r=new MutationObserver((e=>{var t;if(e&&e.length>0&&"BODY"===(null==(t=e[0])?void 0:t.target.nodeName)){var o,r,n;const e=null==(o=document)||null==(r=o.body)||null==(n=r.dataset)?void 0:n.theme;e&&s(e)}else{var i;a(null==(i=document)?void 0:i.documentElement)}}));return r.observe(null==(t=document)?void 0:t.documentElement,{attributes:!0,attributeFilter:["data-theme","style"]}),r.observe(null==(o=document)?void 0:o.body,{attributes:!0,attributeFilter:["data-theme","style"]}),()=>r.disconnect()}),[]),(0,g.useEffect)((()=>{r&&e&&null!=e&&e.className&&(En(e.className),s(Tn(e.className)))}),[r,e]),(0,zt.jsx)(so,{children:(0,zt.jsx)(xn,{children:(0,zt.jsxs)(Ze.Provider,{value:l,children:[!t&&(0,zt.jsx)(Ft,{}),o]})})})}),{disableBaseline:!1}),Mn=Oe({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"}}),zn=Oe({outline:"none",variants:{isFocusVisible:{true:{boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},false:{}}}}),Ln=Oe({transform:"translateZ(0)",backfaceVisibility:"hidden"}),Nn=Oe({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"}),Bn=Oe({variants:{hideIn:{xs:{"@xsMax":{display:"none"}},sm:{"@smMax":{display:"none"}},md:{"@mdMax":{display:"none"}},lg:{"@lgMax":{display:"none"}},xl:{"@xlMax":{display:"none"}}}}}),Rn=Oe({variants:{showIn:{xs:{"@xs":{display:"none"}},sm:{"@sm":{display:"none"}},md:{"@md":{display:"none"}},lg:{"@lg":{display:"none"}},xl:{"@xl":{display:"none"}}}}}),Hn=Oe(Bn,Rn),An="undefined"!=typeof window?g.useLayoutEffect:()=>{};function Kn(e){if(function(){if(null==Fn){Fn=!1;try{document.createElement("div").focus({get preventScroll(){return Fn=!0,!0}})}catch(e){}}return Fn}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,o=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&o.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&o.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),o}(e);e.focus(),function(e){for(let{element:t,scrollTop:o,scrollLeft:r}of e)t.scrollTop=o,t.scrollLeft=r}(t)}}new Map,new Set(["id"]),new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]);let Fn=null,jn=new Map,Wn=new Set;function Dn(){if("undefined"==typeof window)return;let e=t=>{let o=jn.get(t.target);if(o&&(o.delete(t.propertyName),0===o.size&&(t.target.removeEventListener("transitioncancel",e),jn.delete(t.target)),0===jn.size)){for(let e of Wn)e();Wn.clear()}};document.body.addEventListener("transitionrun",(t=>{let o=jn.get(t.target);o||(o=new Set,jn.set(t.target,o),t.target.addEventListener("transitioncancel",e)),o.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function On(){return e=/^Mac/i,"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform);var e,t}function Vn(e){return!(0!==e.mozInputSource||!e.isTrusted)||(t=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(o=window.navigator.userAgentData)||void 0===o?void 0:o.brands.some((e=>t.test(e.brand))))||t.test(window.navigator.userAgent))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType);var t,o}"undefined"!=typeof document&&("loading"!==document.readyState?Dn():document.addEventListener("DOMContentLoaded",Dn)),"undefined"!=typeof window&&window.visualViewport,new Map,new WeakMap;g.createContext(null).displayName="PressResponderContext",new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);class Un{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 Gn(e){let t=(0,g.useRef)({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,An((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),(0,g.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=e.target,r=e=>{var r,n;t.current.isFocused=!1,o.disabled&&(null===(n=(r=t.current).onBlur)||void 0===n||n.call(r,new Un("blur",e))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",r,{once:!0}),t.current.observer=new MutationObserver((()=>{t.current.isFocused&&o.disabled&&(t.current.observer.disconnect(),o.dispatchEvent(new FocusEvent("blur")),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))})),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}}),[])}let _n=null,qn=new Set,Yn=!1,Xn=!1,Zn=!1;const Jn={Tab:!0,Escape:!0};function Qn(e,t){for(let o of qn)o(e,t)}function ei(e){Xn=!0,function(e){return!(e.metaKey||!On()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(_n="keyboard",Qn("keyboard",e))}function ti(e){_n="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Xn=!0,Qn("pointer",e))}function oi(e){Vn(e)&&(Xn=!0,_n="virtual")}function ri(e){e.target!==window&&e.target!==document&&(Xn||Zn||(_n="virtual",Qn("virtual",e)),Xn=!1,Zn=!1)}function ni(){Xn=!1,Zn=!0}function ii(){if("undefined"==typeof window||Yn)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Xn=!0,e.apply(this,arguments)},document.addEventListener("keydown",ei,!0),document.addEventListener("keyup",ei,!0),document.addEventListener("click",oi,!0),window.addEventListener("focus",ri,!0),window.addEventListener("blur",ni,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",ti,!0),document.addEventListener("pointermove",ti,!0),document.addEventListener("pointerup",ti,!0)):(document.addEventListener("mousedown",ti,!0),document.addEventListener("mousemove",ti,!0),document.addEventListener("mouseup",ti,!0)),Yn=!0}function si(){return"pointer"!==_n}function ai(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:o}=e.style,r="none"!==t&&"hidden"!==o&&"collapse"!==o;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:o,visibility:n}=t(e);r="none"!==o&&"hidden"!==n&&"collapse"!==n}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||ai(e.parentElement,e))}"undefined"!=typeof document&&("loading"!==document.readyState?ii():document.addEventListener("DOMContentLoaded",ii));const li=h().createContext(null);let ci=null,di=new Map;function ui(e){let{children:t,contain:o,restoreFocus:r,autoFocus:n}=e,i=(0,g.useRef)(),s=(0,g.useRef)(),a=(0,g.useRef)([]),l=(0,g.useContext)(li),c=null==l?void 0:l.scopeRef;An((()=>{let e=i.current.nextSibling,t=[];for(;e&&e!==s.current;)t.push(e),e=e.nextSibling;a.current=t}),[t,c]),An((()=>(di.set(a,c),()=>{a!==ci&&!bi(a,ci)||c&&!di.has(c)||(ci=c),di.delete(a)})),[a,c]),function(e,t){let o=(0,g.useRef)(),r=(0,g.useRef)(null);An((()=>{let n=e.current;if(!t)return void(r.current&&(cancelAnimationFrame(r.current),r.current=null));let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==ci)return;let o=document.activeElement,r=e.current;if(!$i(o,r))return;let n=xi(mi(r),{tabbable:!0},r);n.currentNode=o;let i=t.shiftKey?n.previousNode():n.nextNode();i||(n.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=t.shiftKey?n.previousNode():n.nextNode()),t.preventDefault(),i&&yi(i,!0)},s=t=>{!ci||bi(ci,e)?(ci=e,o.current=t.target):e!==ci||fi(t.target,e)?e===ci&&(o.current=t.target):o.current?o.current.focus():ci&&vi(ci.current)},a=t=>{r.current=requestAnimationFrame((()=>{e!==ci||fi(document.activeElement,e)||(ci=e,o.current=t.target,o.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)((()=>()=>{r.current&&cancelAnimationFrame(r.current)}),[r])}(a,o),function(e,t,o){const r=(0,g.useRef)("undefined"!=typeof document?document.activeElement:null);An((()=>{let n=r.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey)return;let o=document.activeElement;if(!$i(o,e.current))return;let r=xi(document.body,{tabbable:!0});r.currentNode=o;let i=t.shiftKey?r.previousNode():r.nextNode();if(document.body.contains(n)&&n!==document.body||(n=null),(!i||!$i(i,e.current))&&n){r.currentNode=n;do{i=t.shiftKey?r.previousNode():r.nextNode()}while($i(i,e.current));t.preventDefault(),t.stopPropagation(),i?yi(i,!0):function(e){for(let t of di.keys())if($i(e,t.current))return!0;return!1}(n)?yi(n,!0):o.blur()}};return o||document.addEventListener("keydown",i,!0),()=>{o||document.removeEventListener("keydown",i,!0),t&&n&&$i(document.activeElement,e.current)&&requestAnimationFrame((()=>{document.body.contains(n)&&document.activeElement===document.body&&yi(n)}))}}),[e,t,o])}(a,r,o),function(e,t){const o=h().useRef(t);(0,g.useEffect)((()=>{o.current&&(ci=e,$i(document.activeElement,ci.current)||vi(e.current)),o.current=!1}),[])}(a,n);let d=function(e){return{focusNext(t={}){let o=e.current,{from:r,tabbable:n,wrap:i,accept:s}=t,a=r||document.activeElement,l=o[0].previousElementSibling,c=xi(mi(o),{tabbable:n,accept:s},o);c.currentNode=$i(a,o)?a:l;let d=c.nextNode();return!d&&i&&(c.currentNode=l,d=c.nextNode()),d&&yi(d,!0),d},focusPrevious(t={}){let o=e.current,{from:r,tabbable:n,wrap:i,accept:s}=t,a=r||document.activeElement,l=o[o.length-1].nextElementSibling,c=xi(mi(o),{tabbable:n,accept:s},o);c.currentNode=$i(a,o)?a:l;let d=c.previousNode();return!d&&i&&(c.currentNode=l,d=c.previousNode()),d&&yi(d,!0),d},focusFirst(t={}){let o=e.current,{tabbable:r,accept:n}=t,i=xi(mi(o),{tabbable:r,accept:n},o);i.currentNode=o[0].previousElementSibling;let s=i.nextNode();return s&&yi(s,!0),s},focusLast(t={}){let o=e.current,{tabbable:r,accept:n}=t,i=xi(mi(o),{tabbable:r,accept:n},o);i.currentNode=o[o.length-1].nextElementSibling;let s=i.previousNode();return s&&yi(s,!0),s}}}(a);return h().createElement(li.Provider,{value:{scopeRef:a,focusManager:d}},h().createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,h().createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}const pi=["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]"],gi=pi.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";pi.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const hi=pi.join(':not([hidden]):not([tabindex="-1"]),');function mi(e){return e[0].parentElement}function $i(e,t){return t.some((t=>t.contains(e)))}function fi(e,t){for(let o of di.keys())if((o===t||bi(t,o))&&$i(e,o.current))return!0;return!1}function bi(e,t){let o=di.get(t);return!!o&&(o===e||bi(e,o))}function yi(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{!function(e){if("virtual"===_n){let o=document.activeElement;t=()=>{document.activeElement===o&&document.contains(e)&&Kn(e)},requestAnimationFrame((()=>{0===jn.size?t():Wn.add(t)}))}else Kn(e);var t}(e)}catch(e){}}function vi(e){let t=e[0].previousElementSibling,o=xi(mi(e),{tabbable:!0},e);o.currentNode=t,yi(o.nextNode())}function xi(e,t,o){let r=(null==t?void 0:t.tabbable)?hi:gi,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(r)||!ai(e)||o&&!$i(e,o)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(n.currentNode=t.from),n}function wi(e={}){let{autoFocus:t=!1,isTextInput:o,within:r}=e,n=(0,g.useRef)({isFocused:!1,isFocusVisible:t||si()}),[i,s]=(0,g.useState)(!1),[a,l]=(0,g.useState)((()=>n.current.isFocused&&n.current.isFocusVisible)),c=(0,g.useCallback)((()=>l(n.current.isFocused&&n.current.isFocusVisible)),[]),d=(0,g.useCallback)((e=>{n.current.isFocused=e,s(e),c()}),[c]);var u,p,h;u=e=>{n.current.isFocusVisible=e,c()},p=[],h={isTextInput:o},ii(),(0,g.useEffect)((()=>{let e=(e,t)=>{(function(e,t,o){return!(e&&"keyboard"===t&&o instanceof KeyboardEvent&&!Jn[o.key])})(null==h?void 0:h.isTextInput,e,t)&&u(si())};return qn.add(e),()=>{qn.delete(e)}}),p);let{focusProps:m}=function(e){let{isDisabled:t,onFocus:o,onBlur:r,onFocusChange:n}=e;const i=(0,g.useCallback)((e=>{if(e.target===e.currentTarget)return r&&r(e),n&&n(!1),!0}),[r,n]),s=Gn(i),a=(0,g.useCallback)((e=>{e.target===e.currentTarget&&document.activeElement===e.target&&(o&&o(e),n&&n(!0),s(e))}),[n,o,s]);return{focusProps:{onFocus:!t&&(o||n||r)?a:void 0,onBlur:t||!r&&!n?void 0:i}}}({isDisabled:r,onFocusChange:d}),{focusWithinProps:$}=function(e){let{isDisabled:t,onBlurWithin:o,onFocusWithin:r,onFocusWithinChange:n}=e,i=(0,g.useRef)({isFocusWithin:!1}),s=(0,g.useCallback)((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,o&&o(e),n&&n(!1))}),[o,n,i]),a=Gn(s),l=(0,g.useCallback)((e=>{i.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),n&&n(!0),i.current.isFocusWithin=!0,a(e))}),[r,n,a]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:l,onBlur:s}}}({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:n.current.isFocused&&a,focusProps:r?$:m}}const Si={prefix:String(Math.round(1e10*Math.random())),current:0},Ci=h().createContext(Si);let ki=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);const Pi="undefined"!=typeof window?h().useLayoutEffect:()=>{};let Ti=new Map;function Ei(e){let[t,o]=(0,g.useState)(e),r=(0,g.useRef)(null),n=function(e){let t=(0,g.useContext)(Ci);return t!==Si||ki||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])}(t),i=(0,g.useCallback)((e=>{r.current=e}),[]);return Ti.set(n,i),Pi((()=>{let e=n;return()=>{Ti.delete(e)}}),[n]),(0,g.useEffect)((()=>{let e=r.current;e&&(r.current=null,o(e))})),n}function Ii(e,t){if(e===t)return e;let o=Ti.get(e);if(o)return o(t),t;let r=Ti.get(t);return r?(r(e),e):t}function Mi(...e){return(...t)=>{for(let o of e)"function"==typeof o&&o(...t)}}function zi(...e){let t={...e[0]};for(let o=1;o<e.length;o++){let r=e[o];for(let e in r){let o=t[e],n=r[e];"function"==typeof o&&"function"==typeof n&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Mi(o,n):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof o||"string"!=typeof n?"id"===e&&o&&n?t.id=Ii(o,n):t[e]=void 0!==n?n:o:t[e]=go(o,n)}}return t}const Li=new Set(["id"]),Ni=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Bi=/^(data-.*)$/;function Ri(e,t={}){let{labelable:o,propNames:r}=t,n={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Li.has(t)||o&&Ni.has(t)||(null==r?void 0:r.has(t))||Bi.test(t))&&(n[t]=e[t]);return n}let Hi=new Map,Ai=new Set;function Ki(){if("undefined"==typeof window)return;let e=t=>{let o=Hi.get(t.target);if(o&&(o.delete(t.propertyName),0===o.size&&(t.target.removeEventListener("transitioncancel",e),Hi.delete(t.target)),0===Hi.size)){for(let e of Ai)e();Ai.clear()}};document.body.addEventListener("transitionrun",(t=>{let o=Hi.get(t.target);o||(o=new Set,Hi.set(t.target,o),t.target.addEventListener("transitioncancel",e)),o.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function Fi(e){const t=(0,g.useRef)(null);return(0,g.useImperativeHandle)(e,(()=>t.current)),t}function ji(e,t){const o=(0,g.useRef)(null);return(0,g.useImperativeHandle)(e,(()=>function(e,t=e){return{...(o=e,{UNSAFE_getDOMNode:()=>o.current}),focus(){t.current&&t.current.focus()}};var o}(o,t))),o}"undefined"!=typeof document&&("loading"!==document.readyState?Ki():document.addEventListener("DOMContentLoaded",Ki)),"undefined"!=typeof window&&window.visualViewport,new Map,"undefined"==typeof window||!window.document||window.document.createElement;const Wi=De("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%"},".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:"$2xl"}}},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:{".nextui-avatar-img":{borderStyle:"solid",borderColor:"$background"}}},stacked:{true:{ml:"-$5"}},pointer:{true:{cursor:"pointer","&:hover .nextui-avatar-bg":{boxShadow:"inset 0 0 40px 0 rgb(0 0 0 / 14%)"}}},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"}}},{bordered:!0,pointer:!0,css:{"&:hover:not(.only-text-avatar) .nextui-avatar-bg":{opacity:"0.7"}}}],defaultVariants:{size:"md",rounded:!0,color:"default",textColor:"default",borderWeight:"normal"}},zn),Di=Wi,Oi=e=>(null==e?void 0:e.length)<=4?e:null==e?void 0:e.slice(0,3),Vi=h().forwardRef(((e,t)=>{const{as:o,src:r,css:n,text:i,icon:s,alt:a,className:l,imgRef:c,...d}=e,u=Fi(t),p=!r,[h,m]=(0,g.useState)(!1),$=Fi(c),{isFocusVisible:f,focusProps:b}=wi();(0,g.useEffect)((()=>{var e;(null==$||null==(e=$.current)?void 0:e.complete)&&m(!0)}),[]);const y=(0,g.useMemo)((()=>!h&&r?"loading":"ready"),[r,h]),v=(0,g.useMemo)((()=>{if("button"===o)return{appearance:"none",outline:"none",border:"none",cursor:"pointer"}}),[o]);return(0,zt.jsxs)(Di,{ref:u,as:o,...zi(d,b),className:Mt({"only-text-avatar":p},l),css:{...v,...n},"data-state":y,isFocusVisible:f,children:[(0,zt.jsx)("span",{className:"nextui-avatar-bg"}),!p&&(0,zt.jsx)("img",{ref:$,alt:a,className:Mt("nextui-avatar-img",`nextui-avatar--${y}`,{"nextui-avatar-ready":h}),"data-state":y,src:r,onLoad:()=>m(!0)}),p&&!s&&i&&(0,zt.jsx)("span",{className:"nextui-avatar-text",children:Oi(i)}),s&&(0,zt.jsx)("span",{className:"nextui-avatar-icon",children:s})]})}));Vi.toString=()=>".nextui-avatar";const Ui=Vi,Gi=De("span",{fontSize:"$xs",display:"inline-flex",alignItems:"center",marginLeft:"$3",color:"$text"}),_i=De("div",{dflex:"center",height:"auto",width:"max-content","@motion":{transition:"none"},[`& ${Di}`]:{marginLeft:"-$space$5",transition:"$default",".only-text-avatar":{boxShadow:"$xs"}},".only-text-avatar":{boxShadow:"$xs"},variants:{animated:{true:{[`& ${Di}:hover`]:{transform:"translate(-$space$5)"}}}},defaultVariants:{animated:!0}}),qi=_i,Yi=h().forwardRef(((e,t)=>{const{count:o,children:r,...n}=e,i=Fi(t);return(0,zt.jsxs)(qi,{ref:i,...n,children:[r,o&&(0,zt.jsxs)(Gi,{className:"nextui-avatar-group-count",children:["+",o]})]})}));Yi.toString=()=>".nextui-avatar-group";const Xi=Yi;Ui.Group=Xi;const Zi=Ui;function Ji(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Qi(e){if("virtual"===Pr){let t=document.activeElement;Mo((()=>{document.activeElement===t&&document.contains(e)&&ko(e)}))}else ko(e)}function es(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:o}=e.style,r="none"!==t&&"hidden"!==o&&"collapse"!==o;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:o,visibility:n}=t(e);r="none"!==o&&"hidden"!==n&&"collapse"!==n}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||es(e.parentElement,e))}const ts=["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]"],os=ts.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ts.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const rs=ts.join(':not([hidden]):not([tabindex="-1"]),');function ns(e,t){return t.some((t=>t.contains(e)))}function is(e,t,o){let r=(null==t?void 0:t.tabbable)?rs:os,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(r)||!es(e)||o&&!ns(e,o)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(n.currentNode=t.from),n}class ss{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,o){let r=this.fastMap.get(null!=t?t:null),n=new as({scopeRef:e});r.addChild(n),n.parent=r,this.fastMap.set(e,n),o&&(n.nodeToRestore=o)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e),o=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef.current&&ns(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;o.removeChild(t),r.length>0&&r.forEach((e=>o.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.length>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new ss;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){Ji(this,"fastMap",new Map),this.root=new as({scopeRef:null}),this.fastMap.set(null,this.root)}}class as{addChild(e){this.children.push(e),e.parent=this}removeChild(e){this.children.splice(this.children.indexOf(e),1),e.parent=void 0}constructor(e){Ji(this,"children",[]),Ji(this,"contain",!1),this.scopeRef=e.scopeRef}}new ss;let ls=h().createContext(null);function cs(e,t){let{focusProps:o}=function(e){let{isDisabled:t,onFocus:o,onBlur:r,onFocusChange:n}=e;const i=(0,g.useCallback)((e=>{if(e.target===e.currentTarget)return r&&r(e),n&&n(!1),!0}),[r,n]),s=kr(i),a=(0,g.useCallback)((e=>{e.target===e.currentTarget&&(o&&o(e),n&&n(!0),s(e))}),[n,o,s]);return{focusProps:{onFocus:!t&&(o||n||r)?a:void 0,onBlur:t||!r&&!n?null:i}}}(e),{keyboardProps:r}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Gr(e.onKeyDown),onKeyUp:Gr(e.onKeyUp)}}}(e),n=vo(o,r),i=function(e){let t=(0,g.useContext)(ls)||{};Bo(t,e);let{ref:o,...r}=t;return r}(t),s=e.isDisabled?{}:i,a=(0,g.useRef)(e.autoFocus);return(0,g.useEffect)((()=>{a.current&&t.current&&Qi(t.current),a.current=!1}),[t]),{focusableProps:vo({...n,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function ds(e,t){let o,{elementType:r="button",isDisabled:n,onPress:i,onPressStart:s,onPressEnd:a,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:u,href:p,target:g,rel:h,type:m="button"}=e;o="button"===r?{type:m,disabled:n}:{role:"button",tabIndex:n?void 0:0,href:"a"===r&&n?void 0:p,target:"a"===r?g:void 0,type:"input"===r?m:void 0,disabled:"input"===r?n:void 0,"aria-disabled":n&&"input"!==r?n:void 0,rel:"a"===r?h:void 0};let{pressProps:$,isPressed:f}=hr({onPressStart:s,onPressEnd:a,onPressChange:l,onPress:i,isDisabled:n,preventFocusOnPress:c,ref:t}),{focusableProps:b}=cs(e,t);d&&(b.tabIndex=n?-1:b.tabIndex);let y=vo(b,$,Co(e,{labelable:!0}));return{isPressed:f,buttonProps:vo(o,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"))}})}}const us="undefined"!=typeof window?h().useLayoutEffect:()=>{};let ps=new Map;function gs(e,t){if(e===t)return e;let o=ps.get(e);if(o)return o(t),t;let r=ps.get(t);return r?(r(e),e):t}function hs(...e){return(...t)=>{for(let o of e)"function"==typeof o&&o(...t)}}function ms(...e){let t={...e[0]};for(let o=1;o<e.length;o++){let r=e[o];for(let e in r){let o=t[e],n=r[e];"function"==typeof o&&"function"==typeof n&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=hs(o,n):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof o||"string"!=typeof n?"id"===e&&o&&n?t.id=gs(o,n):t[e]=void 0!==n?n:o:t[e]=go(o,n)}}return t}function $s(e){if(function(){if(null==fs){fs=!1;try{document.createElement("div").focus({get preventScroll(){return fs=!0,!0}})}catch(e){}}return fs}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,o=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&o.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&o.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),o}(e);e.focus(),function(e){for(let{element:t,scrollTop:o,scrollLeft:r}of e)t.scrollTop=o,t.scrollLeft=r}(t)}}new Set(["id"]),new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]);let fs=null,bs=new Map,ys=new Set;function vs(){if("undefined"==typeof window)return;let e=t=>{let o=bs.get(t.target);if(o&&(o.delete(t.propertyName),0===o.size&&(t.target.removeEventListener("transitioncancel",e),bs.delete(t.target)),0===bs.size)){for(let e of ys)e();ys.clear()}};document.body.addEventListener("transitionrun",(t=>{let o=bs.get(t.target);o||(o=new Set,bs.set(t.target,o),t.target.addEventListener("transitioncancel",e)),o.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function xs(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function ws(){return xs(/^Mac/i)}function Ss(){return xs(/^iPhone/i)||xs(/^iPad/i)||ws()&&navigator.maxTouchPoints>1}function Cs(e){return!(0!==e.mozInputSource||!e.isTrusted)||(t=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(o=window.navigator.userAgentData)||void 0===o?void 0:o.brands.some((e=>t.test(e.brand))))||t.test(window.navigator.userAgent))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType);var t,o}"undefined"!=typeof document&&("loading"!==document.readyState?vs():document.addEventListener("DOMContentLoaded",vs)),"undefined"!=typeof window&&window.visualViewport,new Map;let ks="default",Ps="",Ts=new WeakMap;function Es(e){Ss()?("default"===ks&&(Ps=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),ks="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(Ts.set(e,e.style.userSelect),e.style.userSelect="none")}function Is(e){if(Ss()){if("disabled"!==ks)return;ks="restoring",setTimeout((()=>{var e;e=()=>{"restoring"===ks&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=Ps||""),Ps="",ks="default")},requestAnimationFrame((()=>{0===bs.size?e():ys.add(e)}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ts.has(e)){let t=Ts.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Ts.delete(e)}}const Ms=h().createContext(null);function zs(e){let{onPress:t,onPressChange:o,onPressStart:r,onPressEnd:n,onPressUp:i,isDisabled:s,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:u,...p}=function(e){let t=(0,g.useContext)(Ms);if(t){let{register:o,...r}=t;e=ms(r,e),o()}return function(e,t){us((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}(t,e.ref),e}(e),h=(0,g.useRef)(null);h.current={onPress:t,onPressChange:o,onPressStart:r,onPressEnd:n,onPressUp:i,isDisabled:s,shouldCancelOnPointerExit:c};let[m,$]=(0,g.useState)(!1),f=(0,g.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:y}=function(){let e=(0,g.useRef)(new Map),t=(0,g.useCallback)(((t,o,r,n)=>{let i=(null==n?void 0:n.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:o,eventTarget:t,fn:i,options:n}),t.addEventListener(o,r,n)}),[]),o=(0,g.useCallback)(((t,o,r,n)=>{var i;let s=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(o,s,n),e.current.delete(r)}),[]),r=(0,g.useCallback)((()=>{e.current.forEach(((e,t)=>{o(e.eventTarget,e.type,t,e.options)}))}),[o]);return(0,g.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:o,removeAllGlobalListeners:r}}(),v=(0,g.useMemo)((()=>{let e=f.current,t=(t,o)=>{let{onPressStart:r,onPressChange:n,isDisabled:i}=h.current;i||e.didFirePressStart||(r&&r({type:"pressstart",pointerType:o,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),n&&n(!0),e.didFirePressStart=!0,$(!0))},o=(t,o,r=!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:o,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),i&&i(!1),$(!1),s&&r&&!a&&s({type:"press",pointerType:o,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}))},r=(e,t)=>{let{onPressUp:o,isDisabled:r}=h.current;r||o&&o({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&&o(Rs(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),d||Is(e.target))},i={onKeyDown(o){Ns(o.nativeEvent,o.currentTarget)&&o.currentTarget.contains(o.target)?(Ks(o.target,o.key)&&o.preventDefault(),o.stopPropagation(),e.isPressed||o.repeat||(e.target=o.currentTarget,e.isPressed=!0,t(o,"keyboard"),b(document,"keyup",a,!1))):"Enter"===o.key&&Ls(o.currentTarget)&&o.stopPropagation()},onKeyUp(t){Ns(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(Rs(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&&!Cs(n.nativeEvent)||(s||l||$s(n.currentTarget),t(n,"virtual"),r(n,"virtual"),o(n,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{if(e.isPressed&&Ns(t,e.target)){Ks(t.target,t.key)&&t.preventDefault(),t.stopPropagation(),e.isPressed=!1;let r=t.target;o(Rs(e.target,t),"keyboard",e.target.contains(r)),y(),e.target instanceof HTMLElement&&e.target.contains(r)&&(Ls(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){i.onPointerDown=o=>{var r;0===o.button&&o.currentTarget.contains(o.target)&&(0===(r=o.nativeEvent).width&&0===r.height||1===r.width&&1===r.height&&0===r.pressure&&0===r.detail&&"mouse"===r.pointerType?e.pointerType="virtual":(As(o.currentTarget)&&o.preventDefault(),e.pointerType=o.pointerType,o.stopPropagation(),e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=o.pointerId,e.target=o.currentTarget,s||l||$s(o.currentTarget),d||Es(e.target),t(o,e.pointerType),b(document,"pointermove",a,!1),b(document,"pointerup",c,!1),b(document,"pointercancel",u,!1))))},i.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(As(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},i.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&Hs(t,t.currentTarget)&&r(t,e.pointerType||t.pointerType)};let a=r=>{r.pointerId===e.activePointerId&&(Hs(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(Rs(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,o(Rs(e.target,r),e.pointerType,!1),h.current.shouldCancelOnPointerExit&&n(r)))},c=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(Hs(t,e.target)?o(Rs(e.target,t),e.pointerType):e.isOverTarget&&o(Rs(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),d||Is(e.target))},u=e=>{n(e)};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&n(e)}}else{i.onMouseDown=o=>{0===o.button&&o.currentTarget.contains(o.target)&&(As(o.currentTarget)&&o.preventDefault(),o.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=o.currentTarget,e.pointerType=Cs(o.nativeEvent)?"virtual":"mouse",s||l||$s(o.currentTarget),t(o,e.pointerType),b(document,"mouseup",a,!1)))},i.onMouseEnter=o=>{o.currentTarget.contains(o.target)&&(o.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,t(o,e.pointerType)))},i.onMouseLeave=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,o(t,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&n(t)))},i.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||r(t,e.pointerType))};let a=t=>{0===t.button&&(e.isPressed=!1,y(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(Hs(t,e.target)?o(Rs(e.target,t),e.pointerType):e.isOverTarget&&o(Rs(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};i.onTouchStart=o=>{if(!o.currentTarget.contains(o.target))return;o.stopPropagation();let r=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(o.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=o.currentTarget,e.pointerType="touch",s||l||$s(o.currentTarget),d||Es(e.target),t(o,e.pointerType),b(window,"scroll",c,!0))},i.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let i=Bs(r.nativeEvent,e.activePointerId);i&&Hs(i,r.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,t(r,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,o(r,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&n(r))},i.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(t.stopPropagation(),!e.isPressed)return;let n=Bs(t.nativeEvent,e.activePointerId);n&&Hs(n,t.currentTarget)?(r(t,e.pointerType),o(t,e.pointerType)):e.isOverTarget&&o(t,e.pointerType,!1),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,d||Is(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}),[b,s,l,y,d]);return(0,g.useEffect)((()=>()=>{d||Is(f.current.target)}),[d]),{isPressed:a||m,pressProps:ms(p,v)}}function Ls(e){return"A"===e.tagName&&e.hasAttribute("href")}function Ns(e,t){const{key:o,code:r}=e,n=t,i=n.getAttribute("role");return!("Enter"!==o&&" "!==o&&"Spacebar"!==o&&"Space"!==r||n instanceof HTMLInputElement&&!js(n,o)||n instanceof HTMLTextAreaElement||n.isContentEditable||Ls(n)&&("button"!==i||"Enter"===o)||"link"===i&&"Enter"!==o)}function Bs(e,t){const o=e.changedTouches;for(let e=0;e<o.length;e++){const r=o[e];if(r.identifier===t)return r}return null}function Rs(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Hs(e,t){let o=t.getBoundingClientRect(),r=function(e){let t=e.width/2||e.radiusX||0,o=e.height/2||e.radiusY||0;return{top:e.clientY-o,right:e.clientX+t,bottom:e.clientY+o,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)}(o,r)}function As(e){return!(e instanceof HTMLElement&&e.draggable)}function Ks(e,t){return e instanceof HTMLInputElement?!js(e,t):!(e instanceof HTMLButtonElement)||"submit"!==e.type}Ms.displayName="PressResponderContext";const Fs=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function js(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:Fs.has(e.type)}let Ws=null,Ds=new Set,Os=!1,Vs=!1,Us=!1;function Gs(e,t){for(let o of Ds)o(e,t)}function _s(e){Vs=!0,function(e){return!(e.metaKey||!ws()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Ws="keyboard",Gs("keyboard",e))}function qs(e){Ws="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Vs=!0,Gs("pointer",e))}function Ys(e){Cs(e)&&(Vs=!0,Ws="virtual")}function Xs(e){e.target!==window&&e.target!==document&&(Vs||Us||(Ws="virtual",Gs("virtual",e)),Vs=!1,Us=!1)}function Zs(){Vs=!1,Us=!0}function Js(){if("undefined"==typeof window||Os)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Vs=!0,e.apply(this,arguments)},document.addEventListener("keydown",_s,!0),document.addEventListener("keyup",_s,!0),document.addEventListener("click",Ys,!0),window.addEventListener("focus",Xs,!0),window.addEventListener("blur",Zs,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",qs,!0),document.addEventListener("pointermove",qs,!0),document.addEventListener("pointerup",qs,!0)):(document.addEventListener("mousedown",qs,!0),document.addEventListener("mousemove",qs,!0),document.addEventListener("mouseup",qs,!0)),Os=!0}"undefined"!=typeof document&&("loading"!==document.readyState?Js():document.addEventListener("DOMContentLoaded",Js));let Qs=!1,ea=0;function ta(){Qs=!0,setTimeout((()=>{Qs=!1}),50)}function oa(e){"touch"===e.pointerType&&ta()}function ra(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",oa):document.addEventListener("touchend",ta),ea++,()=>{ea--,ea>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",oa):document.removeEventListener("touchend",ta))}}function na(e){let{onHoverStart:t,onHoverChange:o,onHoverEnd:r,isDisabled:n}=e,[i,s]=(0,g.useState)(!1),a=(0,g.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,g.useEffect)(ra,[]);let{hoverProps:l,triggerHoverEnd:c}=(0,g.useMemo)((()=>{let e=(e,r)=>{if(a.pointerType=r,n||"touch"===r||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:r}),o&&o(!0),s(!0)},i=(e,t)=>{if(a.pointerType="",a.target=null,"touch"===t||!a.isHovered)return;a.isHovered=!1;let n=e.currentTarget;r&&r({type:"hoverend",target:n,pointerType:t}),o&&o(!1),s(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{Qs&&"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||Qs||e(t,"mouse"),a.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!n&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:l,triggerHoverEnd:i}}),[t,o,r,n,a]);return(0,g.useEffect)((()=>{n&&c({currentTarget:a.target},a.pointerType)}),[n]),{hoverProps:l,isHovered:i}}function ia(e){return(0,g.forwardRef)(e)}const sa={isButtonGroup:!1,disabled:!1},aa=h().createContext(sa),la=De("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)"}}]}),ca=({children:e,className:t,css:o,...r})=>(0,zt.jsx)(la,{className:Mt("nextui-button-icon",{"nextui-button-icon-right":r.isRight,"nextui-button-icon-single":r.isSingle},t),css:o,...r,children:e});ca.toString=()=>".nextui-button-icon";const da=Et(h().memo(ca),{className:""}),ua=De("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}},[`& ${Nt}`]:{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",[`& ${Nt}`]:{".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"}},isFocusVisible:{true:{},false:{}}},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,isFocusVisible:!1,color:"default",css:{normalShadow:"$primaryShadow"}},{shadow:!0,isFocusVisible:!1,color:"primary",css:{normalShadow:"$primaryShadow"}},{shadow:!0,isFocusVisible:!1,color:"secondary",css:{normalShadow:"$secondaryShadow"}},{shadow:!0,isFocusVisible:!1,color:"warning",css:{normalShadow:"$warningShadow"}},{shadow:!0,isFocusVisible:!1,color:"success",css:{normalShadow:"$successShadow"}},{shadow:!0,isFocusVisible:!1,color:"error",css:{normalShadow:"$errorShadow"}},{shadow:!0,isFocusVisible:!1,color:"gradient",css:{normalShadow:"$primaryShadow"}},{light:!0,color:"default",css:{bg:"transparent",color:"$text",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$primaryLightActive"}}}},{light:!0,color:"primary",css:{bg:"transparent",color:"$primary",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$primaryLightActive"}}}},{light:!0,color:"secondary",css:{bg:"transparent",color:"$secondary",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$secondaryLightActive"}}}},{light:!0,color:"warning",css:{bg:"transparent",color:"$warning",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$warningLightActive"}}}},{light:!0,color:"success",css:{bg:"transparent",color:"$success",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$successLightActive"}}}},{light:!0,color:"error",css:{bg:"transparent",color:"$error",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.8,fill:"$errorLightActive"}}}},{bordered:!0,color:"default",css:{bg:"transparent",borderColor:"$primary",color:"$primary",[`& ${Nt}`]:{".nextui-drip-filler":{fill:"$primary"}}}},{bordered:!0,color:"primary",css:{bg:"transparent",borderColor:"$primary",color:"$primary",[`& ${Nt}`]:{".nextui-drip-filler":{fill:"$primary"}}}},{bordered:!0,color:"secondary",css:{bg:"transparent",borderColor:"$secondary",color:"$secondary",[`& ${Nt}`]:{".nextui-drip-filler":{fill:"$secondary"}}}},{bordered:!0,color:"success",css:{bg:"transparent",borderColor:"$success",color:"$success",[`& ${Nt}`]:{".nextui-drip-filler":{fill:"$success"}}}},{bordered:!0,color:"warning",css:{bg:"transparent",borderColor:"$warning",color:"$warning",[`& ${Nt}`]:{".nextui-drip-filler":{fill:"$warning"}}}},{bordered:!0,color:"error",css:{bg:"transparent",borderColor:"$error",color:"$error",[`& ${Nt}`]:{".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",[`& ${Nt}`]:{".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",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$primary"}}}},{flat:!0,color:"primary",css:{bg:"$primaryLight",color:"$primaryLightContrast",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$primary"}}}},{flat:!0,color:"secondary",css:{bg:"$secondaryLight",color:"$secondaryLightContrast",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$secondary"}}}},{flat:!0,color:"success",css:{bg:"$successLight",color:"$successLightContrast",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$success"}}}},{flat:!0,color:"warning",css:{bg:"$warningLight",color:"$warningLightContrast",[`& ${Nt}`]:{".nextui-drip-filler":{opacity:.4,fill:"$warning"}}}},{flat:!0,color:"error",css:{bg:"$errorLight",color:"$errorLightContrast",[`& ${Nt}`]:{".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"}},zn),pa=ua,ga=ia(((e,t)=>{const{as:o,css:r,iconLeftCss:n,iconRightCss:i,onClick:s,onPress:a,onPressStart:l,onPressEnd:c,onPressChange:d,onPressUp:u,...p}=e,m=((e,t)=>{var o,r,n,i,s,a,l,c,d,u,p;return t.isButtonGroup?{...e,auto:!0,shadow:!1,bordered:null!=(o=t.bordered)?o:e.bordered,borderWeight:null!=(r=t.borderWeight)?r: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})(p,h().useContext(aa)),$=(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"}:void 0:t})(m),{flat:f,children:b,disabled:y,animated:v,light:x,ripple:w,bordered:S,auto:C,borderWeight:k,icon:P,iconRight:T,ghost:E,autoFocus:I,className:M,...z}=m,L=e=>{v&&w&&N.current&&W(e)},N=Fi(t),{buttonProps:B,isPressed:R}=ds({...p,isDisabled:y,elementType:o,onPress:e=>{"keyboard"===e.pointerType||"virtual"===e.pointerType?L(e):"undefined"!=typeof window&&window.event&&L(window.event),s&&(s(e),console.warn("onClick is deprecated, please use onPress")),null==a||a(e)},onPressStart:l,onPressEnd:c,onPressChange:d,onPressUp:u},N),{hoverProps:H,isHovered:A}=na({isDisabled:y}),{isFocused:K,isFocusVisible:F,focusProps:j}=wi({autoFocus:I}),{onClick:W,...D}=Tt(!1,N),O=P||T,V=0===h().Children.count(b),U=Boolean(T),G=(0,g.useMemo)((()=>R?"pressed":A?"hovered":y?"disabled":"ready"),[y,A,R]),_=(0,g.useMemo)((()=>U?i:n),[U,i,n]);return(0,zt.jsxs)(pa,{ref:N,animated:v,as:o,auto:C,borderWeight:k,bordered:S||E,className:Mt("nextui-button",`nextui-button--${G}`,M),css:{...r,...$},"data-state":G,flat:f,ghost:E,isChildLess:V,isFocusVisible:F&&!y,isHovered:A||E&&K,isPressed:R,light:x,...zi(B,j,H,z),children:[0===h().Children.count(b)?(0,zt.jsx)(da,{isSingle:!0,css:_,isAuto:C,isGradientButtonBorder:"gradient"===e.color&&(S||E),isRight:U,children:O}):O?(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.jsx)(da,{css:_,isAuto:C,isGradientButtonBorder:"gradient"===e.color&&(S||E),isRight:U,isSingle:!1,children:O}),(0,zt.jsx)("div",{className:Mt("nextui-button-text",{"nextui-button-text-right":U,"nextui-button-text-left":!U}),children:b})]}):(0,zt.jsx)("span",{className:"nextui-button-text",children:b}),(0,zt.jsx)(Rt,{className:"nextui-button-drip",color:"white",...D})]})}));ga.toString=()=>".nextui-button";const ha=Et(ga,{ghost:!1,bordered:!1,ripple:!0,animated:!0,disabled:!1,autoFocus:!1,auto:!1,className:"",type:"button"}),ma=De("div",{display:"inline-flex",margin:"$3",backgroundColor:"transparent",height:"min-content",[`& ${pa}`]:{".nextui-button-text":{top:0}},variants:{vertical:{true:{fd:"column",[`& ${pa}`]:{"&:not(:first-child)":{btlr:0,btrr:0},"&:not(:last-child)":{bblr:0,bbrr:0}}},false:{fd:"row",[`& ${pa}`]:{"&: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:{[`& ${pa}`]:{"&:not(:last-child)":{borderBottom:"none",paddingBottom:"0"}}}},{bordered:!0,vertical:!1,css:{[`& ${pa}`]:{"&:not(:first-child)":{borderLeft:"none"}}}},{bordered:!0,vertical:!1,gradient:!0,css:{[`& ${pa}`]:{"&:not(:last-child)&:not(:first-child)":{pl:0},"&:last-child":{pl:0}}}}]}),$a=ma,fa=e=>{const{disabled:t,size:o,color:r,bordered:n,ghost:i,light:s,flat:a,shadow:l,auto:c,animated:d,rounded:u,ripple:p,borderWeight:h,children:m,...$}=e,f=(0,g.useMemo)((()=>({disabled:t,size:o,color:r,bordered:n,light:s,ghost:i,flat:a,shadow:l,auto:c,borderWeight:h,animated:d,rounded:u,ripple:p,isButtonGroup:!0})),[t,d,o,p,r,n,s,i,a,h]);return(0,zt.jsx)(aa.Provider,{value:f,children:(0,zt.jsx)($a,{bordered:n||i,gradient:"gradient"===e.color,size:o,...$,children:m})})};fa.toString=()=>".nextui-button-group";const ba=Et(h().memo(fa),{borderWeight:"normal",size:"md",color:"default"});ha.Group=ba;const ya=ha,va=Ue({"0%":{backgroundPosition:"200% 0"},to:{backgroundPosition:"-200% 0"}}),xa=De("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}}}}),wa=De("img",{size:"100%",display:"block"}),Sa=De("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:`${va} 5s ease-in-out infinite`,transition:"opacity 300ms ease-out"}),Ca=h().memo((({opacity:e,css:t,className:o,...r})=>(0,zt.jsx)(Sa,{className:Mt("nextui-image-skeleton",o),css:{opacity:e,...t},...r})));Ca.toString=()=>".nextui-image-skeleton";const ka=Et(Ca,{opacity:.5,className:""}),Pa=h().forwardRef(((e,t)=>{const{src:o,width:r,height:n,showSkeleton:i=!0,className:s,maxDelay:a=3e3,autoResize:l=!1,objectFit:c="scale-down",containerCss:d,css:u,...p}=e,h=Fi(t),[$,y]=(0,g.useState)(!0),[v,x]=(0,g.useState)(i),{w,h:S}=(0,g.useMemo)((()=>({w:r?"number"==typeof r?`${r}px`:r:"auto",h:n?"number"==typeof n?`${n}px`:n:"auto"})),[r,n]),[C,k,P]=m(S),[T,E]=f(h),I=i&&!!r&&!!n;(0,g.useEffect)((()=>{h.current&&h.current.complete&&(y(!1),x(!1))})),(0,g.useEffect)((()=>{const e=setTimeout((()=>{I&&x(!1),clearTimeout(e)}),a);return()=>clearTimeout(e)}),[$]),(0,g.useEffect)((()=>{if(!l)return;const e=0===T.width,t="auto"===P.current;!e&&r&&n&&(T.width<r?!t&&k("auto"):t&&k(S))}),[T,r]),b((()=>{l&&E()}));const M=(0,g.useMemo)((()=>$?"loading":"ready"),[$]);return(0,zt.jsxs)(xa,{className:Mt("nextui-image-container",`nextui-image--${M}`,s),css:{width:w,height:C,...d},"data-state":M,ready:!$||v,children:[v&&(0,zt.jsx)(ka,{opacity:1}),(0,zt.jsx)(wa,{ref:h,alt:e.alt||"",className:"nextui-image",css:{objectFit:c,...u},"data-state":M,height:n,src:o,width:r,onLoad:()=>{y(!1)},...p})]})}));Pa.toString=()=>".nextui-image";const Ta=h().memo(Pa),Ea=e=>`calc(${15.25*e}pt + 1px * ${e-1})`,Ia=De("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"}}),Ma=De("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"}}}}),za=({height:e,x:t,y:o,align:r,children:n,textColor:i,css:s,...a})=>{const l=(0,g.useMemo)((()=>{if(r&&"center"!==r)return"left"===r||"start"===r?{transform:"translateY(-50%)",left:"7%"}:{transform:"translateY(-50%)",left:"auto",right:"7%"}}),[r]),c=o?Ea(o/2):0,d=t?Ea(t/2):0;return(0,zt.jsx)(Ia,{css:{margin:`${c} ${d}`,height:`calc(${e} * 1px)`,...s},role:"separator",...a,children:n&&(0,zt.jsx)(Ma,{className:"nextui-divider-text",color:i,css:{...l},children:n})})};za.toString=()=>".nextui-divider";const La=Et(h().memo(za),{x:0,y:0,height:1,align:"center"}),Na=De("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"}),Ba=De("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%"},[`& ${Nt}`]:{zIndex:"$1",".nextui-drip-filler":{opacity:.25,fill:"$accents6"}},variants:{variant:{flat:{bg:"$accents0"},shadow:{dropShadow:"$lg","@safari":{boxShadow:"$lg",dropShadow:"none"},"@-moz-document url-prefix()":{boxShadow:"$lg",dropShadow:"none"}},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","@safari":{boxShadow:"$lg",dropShadow:"none"},"@-moz-document url-prefix()":{boxShadow:"$lg",dropShadow:"none"}}}},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","@safari":{boxShadow:"$xl",dropShadow:"none"},"@-moz-document url-prefix()":{boxShadow:"$xl",dropShadow:"none"}}}]},Ln,zn),Ra=De("div",{w:"100%",display:"flex",flexShrink:0,zIndex:"$1",jc:"flex-start",ai:"center",overflow:"hidden",color:"inherit",p:"$sm"}),Ha=De("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"}}}}),Aa=h().forwardRef((({...e},t)=>{const{as:o,css:r,children:n,...i}=e,{cardRef:s,variant:a,isFocusVisible:l,isPressable:c,isPressed:d,disableAnimation:u,disableRipple:p,borderWeight:h,isHovered:m,getCardProps:$,dripBindings:f}=(e=>{const{ref:t,disableAnimation:o=!1,disableRipple:r=!1,variant:n="shadow",isHoverable:i=!1,borderWeight:s="light",isPressable:a=!1,onClick:l,onPress:c,autoFocus:d,allowTextSelectionOnPress:u=!0,...p}=e,h=Fi(t),{onClick:m,...$}=Tt(!1,h),f=e=>{o||r||!h.current||m(e)},{isPressed:b,pressProps:y}=zs({isDisabled:!a,onPress:e=>{"keyboard"!==e.pointerType&&"virtual"!==e.pointerType||(f(e),null==l||l(e)),null==c||c(e)},allowTextSelectionOnPress:u,...p}),{hoverProps:v,isHovered:x}=na({isDisabled:!i,...p}),{isFocusVisible:w,focusProps:S}=wi({autoFocus:d});y.onClick=e=>{a&&(f(e),null==l||l(e))};const C=(0,g.useCallback)(((e={})=>({...zi(a?{...y,...S}:{},i?v:{},p,e)})),[a,i,y,S,v,p]);return{cardRef:h,variant:n,borderWeight:s,isPressable:a,isHovered:x,isPressed:b,disableAnimation:o,disableRipple:r,dripBindings:$,onDripClickHandler:m,isFocusVisible:w,getCardProps:C}})({...i,ref:t});return(0,zt.jsxs)(Ba,{ref:s,as:o,borderWeight:h,css:r,disableAnimation:u,isFocusVisible:l,isHovered:m,isPressable:c,isPressed:d,role:c?"button":"region",tabIndex:c?0:-1,variant:a,...$(),children:[c&&!u&&!p&&(0,zt.jsx)(Rt,{...f}),n]})}));Aa.toString=()=>".nextui-card";const Ka=Aa;Ka.Header=Ra,Ka.Body=Na,Ka.Footer=Ha,Ka.Image=Ta,Ka.Divider=La;const Fa=Ka,ja={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 Wa(e){let{children:t,elementType:o="div",isFocusable:r,style:n,...i}=e,{visuallyHiddenProps:s}=function(e={}){let{style:t,isFocusable:o}=e,[r,n]=(0,g.useState)(!1),{focusWithinProps:i}=Fr({isDisabled:!o,onFocusWithinChange:e=>n(e)});return{visuallyHiddenProps:{...i,style:(0,g.useMemo)((()=>r?t:t?{...ja,...t}:ja),[r])}}}(e);return h().createElement(o,vo(i,s),t)}function Da(e,t,o){let[r,n]=(0,g.useState)(e||t),i=(0,g.useRef)(void 0!==e),s=i.current,a=void 0!==e,l=(0,g.useRef)(r);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 r=(e,...t)=>{o&&(Object.is(l.current,e)||o(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(((o,...n)=>{let i=e(a?l.current:o,...n);return r(i,...t),a?o:i}))):(a||n(e),r(e,...t))}),[a,o]);return a?l.current=e:e=r,[e,c]}function Oa(e={}){let{isReadOnly:t}=e,[o,r]=Da(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:o,setSelected:function(e){t||r(e)},toggle:function(){t||r(!o)}}}function Va(e){let{description:t,errorMessage:o,validationState:r}=e,{labelProps:n,fieldProps:i}=function(e){let{id:t,label:o,"aria-labelledby":r,"aria-label":n,labelElementType:i="label"}=e;t=$o(t);let s=$o(),a={};return o?(r=r?`${r} ${s}`:s,a={id:s,htmlFor:"label"===i?t:void 0}):r||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:Lo({id:t,"aria-label":n,"aria-labelledby":r})}}(e),s=bo([Boolean(t),Boolean(o),r]),a=bo([Boolean(t),Boolean(o),r]);return i=vo(i,{"aria-describedby":[s,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:n,fieldProps:i,descriptionProps:{id:s},errorMessageProps:{id:a}}}function Ua(e,t,o){let{inputProps:r}=function(e,t,o){let{isDisabled:r=!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}=hr({isDisabled:r}),{focusableProps:g}=cs(e,o),h=vo(p,g);return{inputProps:vo(Co(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:r,...null==s?{}:{value:s},name:a,type:"checkbox",...h})}}(e,t,o),{isSelected:n}=t,{isIndeterminate:i}=e;return(0,g.useEffect)((()=>{o.current&&(o.current.indeterminate=i)})),{inputProps:{...r,checked:n,"aria-checked":i?"mixed":n}}}const Ga=new WeakMap,_a=new WeakMap,qa=new WeakMap;function Ya(e={}){const{strict:t=!0,errorMessage:o="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,n=g.createContext(void 0);return n.displayName=r,[n.Provider,function e(){const r=g.useContext(n);if(!r&&t){const t=new Error(o);throw t.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(t,e),t}return r},n]}const[Xa,Za]=Ya({name:"CheckboxGroupContext",strict:!1}),Ja=De("label",{$$checkboxBorderColor:"$colors$border",$$checkboxBorderRadius:"$radii$squared",d:"inline-flex",jc:"flex-start",ai:"center",position:"relative",w:"auto",cursor:"pointer",zIndex:"$1",opacity:1,transition:"opacity 0.25s ease","@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"}}),Qa=De("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"}}}]}),el=De("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"}}}]}),tl=De("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"}}]}),ol=De("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"}}}}}),rl=De("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)"}}}]}),nl=De("div",{br:"$$checkboxBorderRadius",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:{$$checkboxBorderRadius:"$radii$pill"}},isDisabled:{true:{opacity:.4,cursor:"not-allowed"}},disableAnimation:{true:{transition:"none"}},isHovered:{true:{[`& ${ol}:before`]:{bg:"$$checkboxBorderColor",border:"2px solid transparent"},[`& ${ol}:after`]:{bg:"$$checkboxColorHover"}}}},defaultVariants:{color:"default"}},zn),il=De("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"}}}}}),sl=De("div",{display:"flex",flexDirection:"column",variants:{isRow:{true:{flexDirection:"row",mt:0,[`& ${Ja}`]:{mr:"$$checkboxSize"}},false:{mr:0,flexDirection:"column",[`& ${Ja}:not(:first-child)`]:{mt:"$$checkboxSize"}}}},defaultVariants:{isRow:!1}}),al=h().forwardRef(((e,t)=>{const{className:o,as:r,css:n,children:i,label:s,...a}=e,{size:l,color:c,labelColor:d,isRounded:u,lineThrough:p,disableAnimation:h,isIndeterminate:m,inputRef:$,inputProps:f,containerCss:b}=(e=>{var t,o,r;const n=Za(),{size:i=(null!=(t=null==n?void 0:n.size)?t:"md"),color:s=(null!=(o=null==n?void 0:n.color)?o:"default"),labelColor:a=(null!=(r=null==n?void 0:n.labelColor)?r:"default"),lineThrough:l,isRounded:c=!1,disableAnimation:d=!1,isIndeterminate:u=!1,containerCss:p,...h}=e,m=(0,g.useRef)(null),$=(0,g.useMemo)((()=>{var e,t;return{...h,isIndeterminate:u,value:null!=(e=h.value)?e:"",isRequired:null!=(t=h.isRequired)&&t}}),[u,h]),{inputProps:f}=n?function(e,t,o){const r=function(e={}){let{isReadOnly:t}=e,[o,r]=Da(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:o,setSelected:function(e){t||r(e)},toggle:function(){t||r(!o)}}}({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(o){o?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(o)}});let{inputProps:n}=Ua({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||Ga.get(t)},r,o);return{inputProps:{...n,"aria-describedby":["invalid"===t.validationState?qa.get(t):null,_a.get(t)].filter(Boolean).join(" ")||void 0}}}({...$,validationState:h.validationState},n.groupState,m):Ua($,Oa($),m);return{size:i,color:s,labelColor:a,isRounded:c,lineThrough:l,disableAnimation:d,isIndeterminate:u,inputRef:m,inputProps:f,containerCss:p}})({...a,children:null!=i?i:s}),y=ji(t,$),{hoverProps:v,isHovered:x}=na({isDisabled:f.disabled}),{pressProps:w}=zs({isDisabled:f.disabled}),{focusProps:S,isFocusVisible:C}=wi({autoFocus:f.autoFocus}),k=(0,g.useMemo)((()=>x?"hovered":m&&f.checked?"mixed":f.checked?"checked":"unchecked"),[x,m,f.checked]);return(0,zt.jsxs)(Ja,{ref:y,...zi(v,w,Ri(a,{labelable:!0})),as:r,className:Mt("nextui-checkbox-label",`nextui-checkbox--${k}`,o),css:n,disableAnimation:h,isDisabled:f.disabled,size:l,children:[(0,zt.jsxs)(nl,{className:"nextui-checkbox-container",color:c,css:b,disableAnimation:h,isDisabled:f.disabled,isFocusVisible:C,isHovered:x,isRounded:u,...S,children:[(0,zt.jsx)(Wa,{children:(0,zt.jsx)("input",{ref:$,className:"nextui-checkbox-input",...zi(f,S)})}),(0,zt.jsx)(ol,{className:"nextui-checkbox-mask",disableAnimation:h,isChecked:f.checked,isIndeterminate:m,children:(0,zt.jsxs)(tl,{className:"nextui-icon-check",disableAnimation:h,isChecked:f.checked,isIndeterminate:m,size:l,children:[(0,zt.jsx)(Qa,{className:"nextui-icon-check-line1",disableAnimation:h,isChecked:f.checked,isIndeterminate:m}),(0,zt.jsx)(el,{className:"nextui-icon-check-line2",disableAnimation:h,isChecked:f.checked,isIndeterminate:m})]})})]}),(i||s)&&(0,zt.jsx)(rl,{className:"nextui-checkbox-text",color:d,disableAnimation:h,isChecked:f.checked,isDisabled:f.disabled,lineThrough:p,children:i||s})]})}));al.toString=()=>".nextui-checkbox";const ll=al,cl=h().forwardRef(((e,t)=>{const{children:o,className:r,as:n,label:i,...s}=e,{css:a,...l}=((e={})=>{const{size:t="md",color:o="default",labelColor:r="default",orientation:n="vertical",css:i,...s}=e,a=function(e={}){let[t,o]=Da(e.value,e.defaultValue||[],e.onChange);return{value:t,setValue(t){e.isReadOnly||e.isDisabled||o(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected:e=>t.includes(e),addValue(r){e.isReadOnly||e.isDisabled||t.includes(r)||o(t.concat(r))},removeValue(r){e.isReadOnly||e.isDisabled||t.includes(r)&&o(t.filter((e=>e!==r)))},toggleValue(r){e.isReadOnly||e.isDisabled||(t.includes(r)?o(t.filter((e=>e!==r))):o(t.concat(r)))},validationState:e.validationState}}(s),{labelProps:l,groupProps:c}=function(e,t){let{isDisabled:o,name:r}=e,{labelProps:n,fieldProps:i,descriptionProps:s,errorMessageProps:a}=Va({...e,labelElementType:"span"});_a.set(t,s.id),qa.set(t,a.id);let l=Co(e,{labelable:!0});return Ga.set(t,r),{groupProps:vo(l,{role:"group","aria-disabled":o||void 0,...i}),labelProps:n,descriptionProps:s,errorMessageProps:a}}(s,a);return{css:i,size:t,orientation:n,color:o,labelColor:r,groupState:a,labelProps:l,groupProps:c}})({...s,label:i}),c=Fi(t);return(0,zt.jsxs)(il,{ref:c,...l.groupProps,as:n,className:Mt("nextui-checkbox-group",r),css:a,isDisabled:l.groupState.isDisabled,size:l.size,children:[i&&(0,zt.jsx)("label",{className:"nextui-checkbox-group-label",...l.labelProps,children:i}),(0,zt.jsx)(sl,{className:"nextui-checkbox-group-items",isRow:"horizontal"===l.orientation,role:"presentation",children:(0,zt.jsx)(Xa,{value:l,children:o})})]})}));cl.toString=()=>".nextui-checkbox-group";const dl=cl;ll.Group=dl;const ul=ll,pl=De("code",{}),gl=De("pre",{width:"initial",mw:"100"}),hl=({block:e,children:t,...o})=>e?(0,zt.jsx)(gl,{...o,children:(0,zt.jsx)(pl,{children:t})}):(0,zt.jsx)(pl,{...o,children:t});hl.toString=()=>".nextui-code";const ml=Et(h().memo(hl),{block:!1}),$l=De("div",{float:"left",boxSizing:"border-box",pl:"calc($$rowGap / 2)",pr:"calc($$rowGap / 2)"}),fl=$l,bl=({children:e,span:t,offset:o,css:r,...n})=>(0,zt.jsx)(fl,{css:{width:100/12*t+"%",marginLeft:100/12*o+"%",...r},...n,children:e});bl.toString=()=>".nextui-column";const yl=Et(h().memo(bl),{span:12,offset:0}),vl=De("div",{p:0,m:0,h:0,opacity:0,overflow:"hidden",variants:{expanded:{true:{opacity:1}}}}),xl=Et((({isExpanded:e,delay:t,animated:o,css:r,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]=f(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,zt.jsx)(vl,{css:{height:a?i:"0",transition:o?`height ${t}ms ease 0ms,\n opacity ${1.5*t}ms ease 0ms;`:"none",...r},expanded:a,children:(0,zt.jsx)("div",{ref:c,className:"nextui-expand-content",children:n})})}),{isExpanded:!1,animated:!0,delay:200}),wl={values:[]},Sl=h().createContext(wl),Cl=De("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"}},Mn),kl=De("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}}}}},zn),Pl=De("div",{fontSize:"$base",lineHeight:"$lg",pb:"$lg","*:first-child":{mt:0},"*:last-child":{mb:0}}),Tl=De("svg",{path:{stroke:"$accents7"}}),El=De("div",{width:"auto",padding:"0 $sm","div + div":{borderTop:"none"},[`& ${Cl}:first-child`]:{borderTop:"none"},[`& ${Cl}: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:{[`& ${Cl}`]:{br:"$lg",border:"none",bg:"$backgroundContrast",boxShadow:"$md",p:"0 $lg",margin:"$md 0"}}}},defaultVariants:{borderWeight:"light",shadow:!1,bordered:!1,splitted:!1}}),Il=({...e})=>(0,zt.jsx)(Tl,{className:"nextui-collapse-icon",fill:"none",focusable:"false",height:"20",role:"presentation",viewBox:"0 0 24 24",width:"20",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,zt.jsx)("path",{d:"M15.5 19l-7-7 7-7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})});Il.toString=()=>".nextui-collapse-icon";const Ml=h().memo(Il),zl="nextui-collapse",Ll=({children:e,title:t,subtitle:o,expanded:r,shadow:n,className:i,divider:s,arrowIcon:a,showArrow:l,disabled:c,onChange:d,bordered:u,contentLeft:p,preventDefault:$,animated:f,borderWeight:b,index:y,...v})=>{const[x,w,S]=m(r),{values:C,divider:k,animated:P,updateValues:T}=h().useContext(Sl),{isFocusVisible:E,focusProps:I}=wi();t||((e,t)=>{const o=`[Next UI]${t?` [${t}]`:" "}: ${e}`;"undefined"!=typeof console&&(ct[o]||(ct[o]=!0,console.warn(o)))})('"title" is required.',"Collapse"),(0,g.useEffect)((()=>{x!==r&&w(r)}),[r]),(0,g.useEffect)((()=>{if(!C.length)return;const e=!!C.find((e=>e===y));w(e)}),[C.join(",")]);const M=Ei(),z=Ei(),L=(0,g.useMemo)((()=>l?a||(0,zt.jsx)(Ml,{}):null),[a,l]),N=void 0===k?s:k,B=(0,g.useMemo)((()=>void 0===P?f:P),[P,f]),R=e=>{if(c)return;const t=!S.current;w(t),T&&T(y,t),d&&d(e,y,t)},{bindings:H}=yt((e=>{R(e)}),[ft.Enter,ft.Space],{disableGlobalEvent:!0,preventDefault:$}),A=(0,g.useMemo)((()=>x?"open":"closed"),[x]);return(0,zt.jsxs)(Cl,{animated:B,borderWeight:b,bordered:u,className:Mt(i,zl,`${zl}--${A}`),"data-state":A,divider:N,shadow:n,tabIndex:-1,visible:x,...v,children:[(0,zt.jsx)(kl,{"aria-controls":z,"aria-disabled":c,"aria-expanded":x,className:`${zl}-view`,"data-state":A,disabled:c,id:M,isFocusVisible:E,role:"button",tabIndex:c?-1:0,onClick:R,...I,...H,children:(0,zt.jsxs)("div",{className:Mt(`${zl}-title-container`),children:[p&&(0,zt.jsx)("div",{className:`${zl}-title-content-left`,children:p}),(0,zt.jsxs)("div",{className:`${zl}-title-content`,children:[h().isValidElement(t)?t:(0,zt.jsx)("h3",{className:`${zl}-title`,children:t}),o&&(0,zt.jsx)("div",{className:`${zl}-subtitle`,children:o})]}),(0,zt.jsx)("div",{className:`${zl}-title-content-right`,children:L})]})}),(0,zt.jsx)(xl,{animated:B,isExpanded:x,children:(0,zt.jsx)(Pl,{"aria-labelledby":M,className:`${zl}-content`,id:z,role:"region",tabIndex:-1,children:e})})]})};Ll.toString=()=>".nextui-collapse";const Nl=Et(Ll,{shadow:!1,divider:!0,bordered:!1,showArrow:!0,animated:!0,disabled:!1,preventDefault:!0,expanded:!1}),Bl=({children:e,accordion:t,animated:o,divider:r,onChange:n,...i})=>{const[s,a,l]=m([]),c=(e,o)=>{const r=l.current.find((t=>t===e));if(n&&n(e,o),t)return a(o?[e]:[]);if(o){if(r)return;return a([...l.current,e])}a(l.current.filter((t=>t!==e)))},d=(0,g.useMemo)((()=>({values:s,updateValues:c,divider:r,animated:o})),[s.join(",")]),u=(0,g.useMemo)((()=>((e,t=[])=>{if(0===h().Children.count(e))return[];const o=0===t.length,r=(e,t={})=>h().cloneElement(e,t);let n=0;return h().Children.map(e,(e=>{if(!h().isValidElement(e))return e;if(n+=1,o)return r(e,{index:n});const i=t.find((t=>t===e.type));return i?r(e,{index:n}):(n-=1,e)}))})(e,[Nl])),[e]);return(0,zt.jsx)(Sl.Provider,{value:d,children:(0,zt.jsx)(El,{...i,children:u})})};Bl.toString=()=>".nextui-collapse-group";const Rl=Et(Bl,{accordion:!0});Nl.Group=Rl;const Hl=Nl,Al=De("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}}),Kl=Al,Fl=h().forwardRef(((e,t)=>{const{xs:o,sm:r,md:n,lg:i,xl:s,wrap:a,gap:l,as:c,display:d,justify:u,direction:p,alignItems:h,alignContent:m,children:$,responsive:f,fluid:b,css:y,...v}=e,x=Fi(t),w=(0,g.useMemo)((()=>`calc(${l} * $space$sm)`),[l]);return(0,zt.jsx)(Kl,{ref:x,as:c,css:{px:w,maxWidth:o?"$breakpoints$xs":r?"$breakpoints$sm":n?"$breakpoints$md":i?"$breakpoints$lg":s?"$breakpoints$xl":"",alignItems:h,alignContent:m,flexWrap:a,display:d,justifyContent:u,flexDirection:p,...y},fluid:b,responsive:f,...v,children:$})}));Fl.displayName="NextUI.Container",Fl.toString=()=>".nextui-container",Fl.defaultProps={gap:2,xs:!1,sm:!1,md:!1,lg:!1,xl:!1,responsive:!0,fluid:!1,wrap:"wrap",as:"div",display:"block"};const jl=h().memo(Fl),Wl=De("div",{}),Dl=De("div",{margin:0,boxSizing:"border-box",padding:"$$gridGapUnit"}),Ol=e=>{const t=0===e?"none":"inherit";if("number"==typeof e){const o=100/12*e,r=o>100?"100%":o<0?"0":`${o}%`;return{flexGrow:0,display:t,maxWidth:r,flexBasis:r}}return{flexGrow:1,display:t,maxWidth:"100%",flexBasis:"0"}},Vl=h().forwardRef((({xs:e,sm:t,md:o,lg:r,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:o,lg:r,xl:n};return Object.keys(i).reduce(((e,t)=>void 0!==i[t]&&!1!==i[t]?`${e} ${t}`:e),"").trim()}),[e,t,o,r,n]);return(0,zt.jsx)(Dl,{ref:h,className:Mt("nextui-grid-item",m,u),css:{alignItems:l,alignContent:c,justifyContent:s,flexDirection:a,"&.xs":{...Ol(e)},"@xsMax":{"&.xs":{...Ol(e)}},"@sm":{"&.sm":{...Ol(t)}},"@md":{"&.md":{...Ol(o)}},"@lg":{"&.lg":{...Ol(r)}},"@xl":{"&.xl":{...Ol(n)}},...i},...p,children:d})}));Vl.displayName="NextUI.GridItem",Vl.toString=()=>".nextui-grid-item";const Ul=Et(Vl,{xs:!1,sm:!1,md:!1,lg:!1,xl:!1,className:""}),Gl=h().forwardRef((({children:e,css:t,...o},r)=>(0,zt.jsx)(Ul,{ref:r,css:t,...o,children:e})));Gl.displayName="NextUI.Grid",Gl.toString=()=>".nextui-grid";const _l=Gl,ql=h().forwardRef((({gap:e,wrap:t,css:o,children:r,className:n,...i},s)=>{const a=(0,g.useMemo)((()=>`calc(${e} * $space$3)`),[e]);return(0,zt.jsx)(Ul,{ref:s,className:Mt("nextui-grid-container",n),css:{$$gridGapUnit:a,display:"flex",flexWrap:t,boxSizing:"border-box",margin:"calc(-1 * $$gridGapUnit)",width:"calc(100% + $$gridGapUnit * 2)",...o},...i,children:r})}));ql.displayName="NextUI.GridContainer",ql.toString=()=>".nextui-grid-container";const Yl=Et(ql,{gap:0,wrap:"wrap",className:""});_l.Container=Yl;const Xl=_l,Zl=De("span",{size:"1px",variants:{inline:{true:{display:"inline-block"},false:{display:"block"}}},defaultVariants:{inline:!1}}),Jl=({x:e,y:t,css:o,...r})=>{const n=Ea(e),i=Ea(t);return(0,zt.jsx)(Zl,{"aria-hidden":"true",css:{marginLeft:`${n} !important`,marginTop:`${i} !important`,...o},...r})};Jl.toString=()=>".nextui-spacer";const Ql=Et(h().memo(Jl),{x:1,y:1}),ec=({children:e,onExited:t,onEntered:o,className:r,childrenRef:n,enterTime:i=60,leaveTime:s=60,clearTime:a=60,visible:l=!1,name:c="transition",...d})=>{const[u,p]=(0,g.useState)(""),[m,$]=(0,g.useState)(l);return(0,g.useLayoutEffect)((()=>{const e=l?"enter":"leave";l&&!m&&$(!0),p(`${c}-${e}`);const r=l?i:s,n=setTimeout((()=>{p(`${c}-${e} ${c}-${e}-active`),"leave"===e?null==t||t():null==o||o(),clearTimeout(n)}),r),d=setTimeout((()=>{l||(p(""),$(!1)),clearTimeout(d)}),r+a);return()=>{clearTimeout(n),clearTimeout(d)}}),[l,m]),(0,g.useEffect)((()=>{if(null==n||!n.current)return;const e=u.split(" "),t=n.current.className.split(" ").filter((e=>!e.includes(c)));n.current.className=Mt(t,e)}),[n,u]),h().isValidElement(e)&&m?h().cloneElement(e,{...d,className:Mt(e.props.className,r,!(null!=n&&n.current)&&u)}):null},tc=h().memo(ec),oc=De("div",{width:"max-content",display:"inherit"}),rc=De("span",{display:"none",content:"",size:"$5",zIndex:"-2",background:"$$tooltipColor",br:"0px 0px 2px 0px",position:"absolute"}),nc=De("div",{position:"relative",fs:"$sm",padding:0,variants:{hideArrow:{false:{[`& ${rc}`]:{display:"block"}}}}}),ic=De("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"}}),sc={top:-1e3,left:-1e3,right:-1e3,bottom:-1e3,width:0,height:0},ac={top:"-1000px",left:"-1000px",transform:"none"},lc="nextui-tooltip",cc=({children:e,parent:t,visible:o,offset:r,placement:n,rounded:i,animated:s,className:a,hideArrow:l,css:c,...d})=>{const u=rt("tooltip"),p=(0,g.useRef)(null),[h,m]=(0,g.useState)(ac);if(!t)return null;const $=()=>{const e=((e,t,o)=>{const r={top:{top:t.top-o+"px",left:`${t.left+t.width/2}px`,transform:"translate(-50%, -100%)"},topStart:{top:t.top-o+"px",left:`${t.left}px`,transform:"translate(0, -100%)"},topEnd:{top:t.top-o+"px",left:`${t.left+t.width}px`,transform:"translate(-100%, -100%)"},bottom:{top:`${t.bottom+o}px`,left:`${t.left+t.width/2}px`,transform:"translate(-50%, 0)"},bottomStart:{top:`${t.bottom+o}px`,left:`${t.left}px`,transform:"translate(0, 0)"},bottomEnd:{top:`${t.bottom+o}px`,left:`${t.left+t.width}px`,transform:"translate(-100%, 0)"},left:{top:`${t.top+t.height/2}px`,left:t.left-o+"px",transform:"translate(-100%, -50%)"},leftStart:{top:`${t.top}px`,left:t.left-o+"px",transform:"translate(-100%, 0)"},leftEnd:{top:`${t.top+t.height}px`,left:t.left-o+"px",transform:"translate(-100%, -100%)"},right:{top:`${t.top+t.height/2}px`,left:`${t.right+o}px`,transform:"translate(0, -50%)"},rightStart:{top:`${t.top}px`,left:`${t.right+o}px`,transform:"translate(0, 0)"},rightEnd:{top:`${t.top+t.height}px`,left:`${t.right+o}px`,transform:"translate(0, -100%)"}};return r[e]||r.top})(n,(e=>{if(!e||!e.current)return sc;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),r);m(e)},{transform:f,top:y,left:v,right:x,bottom:w}=(0,g.useMemo)((()=>((e,t)=>{const o={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 o[e]||o.top})(n)),[n]);b($),pt((()=>$())),(0,g.useEffect)((()=>{$()}),[o]);const S=(0,g.useMemo)((()=>o?"open":"closed"),[o]);return u?(0,Yr.createPortal)((0,zt.jsx)(tc,{enterTime:20,leaveTime:20,name:`${lc}-wrapper`,visible:o,children:(0,zt.jsx)(ic,{ref:p,animated:s,className:Mt(`${lc}-content`,`${lc}--${S}`,a),css:{left:h.left,top:`calc(${h.top} + 6px)`,transform:h.transform,[`&.${lc}-wrapper-enter-active`]:{opacity:1,top:h.top},...c},"data-state":S,onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},...d,children:(0,zt.jsxs)(nc,{className:Mt(lc,{[`${lc}--with-arrow`]:!l}),"data-state":S,hideArrow:l,role:"tooltip",children:[(0,zt.jsx)(rc,{className:`${lc}-arrow`,css:{left:v,top:y,right:x,bottom:w,transform:f}}),e]})})}),u):null};cc.toString=()=>".nextui-tooltip-content";const dc=Et(cc,{placement:"top",offset:12,className:""}),uc=({children:e,initialVisible:t,content:o,offset:r,placement:n,portalClassName:i,enterDelay:s,leaveDelay:a,trigger:l,rounded:c,animated:d,shadow:u,className:p,color:h,contentColor:m,onVisibleChange:$,hideArrow:f,css:b,triggerCss:y,onClick:v,keepMounted:x,visible:w,isDisabled:S,...C})=>{const k=(0,g.useRef)(),P=(0,g.useRef)(null),[T,E]=(0,g.useState)(t),I={animated:d,visible:T,css:b,shadow:u,offset:r,placement:n,rounded:c,color:h,contentColor:m,hideArrow:f,parent:P,className:i},M=e=>{const t=()=>{clearTimeout(k.current),k.current=void 0},o=e=>{E(e),$(e),t()};t(),k.current=e?window.setTimeout((()=>o(!0)),s):window.setTimeout((()=>o(!1)),a)},z=e=>{"hover"===l&&M(e)};return lt(P,(()=>"click"===l&&!x&&M(!1))),(0,g.useEffect)((()=>{void 0!==w&&M(w)}),[w]),(0,zt.jsxs)(oc,{ref:P,className:`nextui-tooltip-button ${p}`,css:y,role:"button",tabIndex:-1,onBlur:()=>z(!1),onClickCapture:()=>{"click"===l&&M(!T),null==v||v()},onFocus:()=>z(!0),onKeyUp:()=>z(!0),onMouseEnter:()=>z(!0),onMouseLeave:()=>z(!1),...C,children:[e,o&&!S?(0,zt.jsx)(dc,{...I,children:o}):null]})};uc.toString=()=>".nextui-tooltip";const pc=Et(uc,{initialVisible:!1,hideArrow:!1,animated:!0,shadow:!0,rounded:!1,keepMounted:!1,isDisabled:!1,trigger:"hover",enterDelay:0,leaveDelay:0,className:"",portalClassName:"",onVisibleChange:()=>{}}),gc=De("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}}),hc=De("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%"}}}}),mc=De("svg",{}),$c=De("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"},[`& ${mc}`]:{path:{fill:"$accents6"}}},Mn),fc=({size:e,fill:t,width:o,height:r,...n})=>(0,zt.jsx)(mc,{height:e||r,viewBox:"0 0 24 24",width:e||o,xmlns:"http://www.w3.org/2000/svg",...n,children:(0,zt.jsx)("path",{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",fill:t})});fc.toString=()=>".nextui-snippet-copy-icon";const bc=Et(g.memo(fc),{width:18,height:18}),yc=({bordered:e,children:t,symbol:o,showTooltip:r,text:n,tooltipCopyText:i,tooltipCopiedText:s,tooltipColor:a,copy:l,...c})=>{const[d,u]=(0,g.useState)(!1),{copy:p}=ut(),h=(0,g.useRef)(null),m=n&&Array.isArray(n),$=(0,g.useMemo)((()=>"prevent"!==l),[l]),f=(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]),b=(0,g.useMemo)((()=>{const e=o.trim();return e?`${e} `:""}),[o]),y=()=>{f&&$&&(p(f),"slient"!==l&&u(!0))};return(0,zt.jsxs)(gc,{...c,children:[m?n.map(((e,t)=>(0,zt.jsx)(hc,{className:"nextui-snippet-pre",css:{"&:before":{content:b,us:"none"}},children:e},`${t}-${e}`))):(0,zt.jsx)(hc,{ref:h,className:"nextui-snippet-pre",css:{"&:before":{content:b,us:"none"}},children:t||n}),$&&"slient"!==l?(0,zt.jsx)(pc,{hideArrow:!0,rounded:!0,color:a,content:d?s:i,onVisibleChange:()=>{setTimeout((()=>{d&&u(!1)}),400)},children:(0,zt.jsx)($c,{className:"nextui-snippet-copy-button",onClick:y,children:(0,zt.jsx)(bc,{})})}):"prevent"!==l&&(0,zt.jsx)($c,{className:"nextui-snippet-copy-button",onClick:y,children:(0,zt.jsx)(bc,{})})]})};yc.toString=()=>".nextui-snippet";const vc=Et(h().memo(yc),{symbol:"$",showTooltip:!0,copy:"default",tooltipColor:"default",tooltipCopyText:"Copy",tooltipCopiedText:"Copied"}),xc=De("div",{display:"flex",position:"relative",boxSizing:"border-box",variants:{fluid:{true:{width:"100%"}}},defaultVariants:{fluid:!0}}),wc=xc,Sc=({children:e,gap:t,justify:o,align:r,wrap:n,css:i,...s})=>(0,zt.jsx)(wc,{css:{flexWrap:n,$$rowGap:`calc(${t} * $space$lg)`,marginLeft:`calc(${t} * $space$lg / 2)`,marginRight:`calc(${t} * $space$lg / 2)`,justifyContent:o,alignItems:r,...i},...s,children:e});Sc.toString=()=>".nextui-row";const Cc=Et(h().memo(Sc),{gap:0,wrap:"nowrap",justify:"flex-start",align:"flex-start"}),kc=De("svg",{ml:"$1",as:"center",display:"flex",color:"currentColor"}),Pc=De("a",{$$linkColor:"$colors$link",display:"inline-flex",alignItems:"center",lineHeight:"inherit",textDecoration:"none",width:"$fit",backgroundColor:"transparent",backgroundImage:"inherit",backgroundClip:"inherit",WebkitTextFillColor:"inherit",color:"$$linkColor",outline:"none",maxW:"$max","&:hover":{opacity:.8},"@motion":{transition:"none"},variants:{color:{inherit:{$$linkColor:"inherit"},default:{$$linkColor:"$colors$link"},text:{$$linkColor:"$colors$text"},primary:{$$linkColor:"$colors$primary"},secondary:{$$linkColor:"$colors$secondary"},success:{$$linkColor:"$colors$success"},warning:{$$linkColor:"$colors$warning"},error:{$$linkColor:"$colors$error"}},underline:{true:{"&:hover, &:active, &:focus":{textDecoration:"underline"}}},block:{true:{padding:"$2 $4",borderRadius:"$base","&:hover":{backgroundColor:"$$linkBackgroundColor"}}},animated:{true:{transition:"opacity 0.25s ease 0s, box-shadow 0.25s ease 0s"}}},compoundVariants:[{block:!0,animated:!0,css:{transition:"opacity 0.25s ease 0s, box-shadow 0.25s ease 0s, background 0.25s ease 0s","@motion":{transition:"none"}}}],defaultVariants:{color:"default",animated:!0}},zn),Tc=Pc,Ec=()=>(0,zt.jsxs)(kc,{className:"nextui-link-icon",fill:"none",height:"1em",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",children:[(0,zt.jsx)("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),(0,zt.jsx)("path",{d:"M15 3h6v6"}),(0,zt.jsx)("path",{d:"M10 14L21 3"})]});Ec.toString=()=>".nextui-link-icon";const Ic=h().memo(Ec),Mc=ia(((e,t)=>{const{children:o,isExternal:r=!1,as:n,css:i,color:s="default",autoFocus:a,className:l,...c}=e,d=Fi(t),{linkProps:u}=function(e,t){let o,{elementType:r="a",onPress:n,onPressStart:i,onPressEnd:s,onClick:a,isDisabled:l,...c}=e;"a"!==r&&(o={role:"link",tabIndex:l?void 0:0});let{focusableProps:d}=cs(e,t),{pressProps:u,isPressed:p}=hr({onPress:n,onPressStart:i,onPressEnd:s,isDisabled:l,ref:t}),g=Co(c,{labelable:!0}),h=vo(d,u);return{isPressed:p,linkProps:vo(g,{...h,...o,"aria-disabled":l||void 0,onClick:e=>{u.onClick(e),a&&(a(e),console.warn("onClick is deprecated, please use onPress"))}})}}({...c,elementType:n},d),{isFocusVisible:p,focusProps:h}=wi({autoFocus:a}),m=(0,g.useMemo)((()=>{let e=`$colors$${s}Light`;switch(s){case"inherit":case"text":e="$colors$textLight";break;case"default":e="$colors$linkLight"}return{...i,$$linkBackgroundColor:e}}),[i,s]);return(0,zt.jsx)(Tc,{ref:d,as:n,className:Mt("nextui-link",l),color:s,css:m,isFocusVisible:p,...zi(u,h,c),children:(0,zt.jsxs)(zt.Fragment,{children:[o,r&&(0,zt.jsx)(Ic,{})]})})}));Mc.toString=()=>".nextui-link";const zc=Mc,Lc=Ue({"0%":{opacity:"0.2"},"20%":{opacity:1},"100%":{opacity:"0.2"}}),Nc=Ue({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Bc=Ue({"0%":{transform:"translate(0px, 0px)"},"50%":{transform:"translate(0, calc(-$$loadingSize * 1.4))"},"100%":{transform:"translate(0px, 0px)"}}),Rc=Ue({"0%":{opacity:1},"100%":{opacity:.15}}),Hc=De("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"}}),Ac=De("div",{size:"100%",position:"relative",left:"50%",top:"50%"}),Kc=De("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"}}}}),Fc=De("span",{bg:"$$loadingColor",position:"absolute",top:"-3.9%",width:"24%",height:"8%",left:"-10%",br:"$lg",animation:`${Rc} 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%)"}}),jc=De("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:`${Nc} 0.8s ease infinite`},"._2":{border:"$$loadingBorder dotted $$loadingColor",borderTop:"$$loadingBorder solid transparent",borderLeft:"$$loadingBorder solid transparent",borderRight:"$$loadingBorder solid transparent",animation:`${Nc} 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:`${Bc} 0.75s ease infinite`},"._2":{br:"$rounded",animation:`${Bc} 0.75s ease infinite 0.25s`},"._3":{br:"$rounded",animation:`${Bc} 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:`${Lc} 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:`${Nc} 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"}}),Wc=De("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"}}}}),Dc=({children:e,size:t,color:o,textColor:r,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,zt.jsxs)(Kc,{className:Mt("nextui-spinner",n),color:o,size:t,...i,children:[(0,zt.jsx)(Ac,{"aria-label":a,className:"nextui-spinner-container",children:[...new Array(12)].map(((e,t)=>(0,zt.jsx)(Fc,{},`nextui-spinner-${t}`)))}),e&&(0,zt.jsx)(Wc,{color:r,size:t,children:e})]})};Dc.toString=()=>".nextui-spinner";const Oc=Dc,Vc="nextui-loading",Uc=({children:e,size:t,gradientBackground:o,loadingCss:r,type:n,...i})=>{const s=e?"":"Loading",a=(0,g.useMemo)((()=>{if("gradient"===n)return{"._2":{bg:o}}}),[n]);return(0,zt.jsx)(Hc,{...i,children:"spinner"===n?(0,zt.jsx)(Oc,{size:t,children:e}):(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.jsxs)(jc,{"aria-label":s,className:`${Vc} ${Vc}-${n}`,css:{...r,...a},size:t,type:n,children:[(0,zt.jsx)("i",{className:"_1"}),(0,zt.jsx)("i",{className:"_2"}),(0,zt.jsx)("i",{className:"_3"})]}),e&&(0,zt.jsx)(Wc,{className:`${Vc}-label`,size:t,children:e})]})})};Uc.toString=()=>".nextui-loading";const Gc=Et(h().memo(Uc),{size:"md",type:"default"});function _c(e){let{description:t,errorMessage:o,validationState:r}=e,{labelProps:n,fieldProps:i}=function(e){let{id:t,label:o,"aria-labelledby":r,"aria-label":n,labelElementType:i="label"}=e;t=$o(t);let s=$o(),a={};return o?(r=r?`${r} ${s}`:s,a={id:s,htmlFor:"label"===i?t:void 0}):r||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:Lo({id:t,"aria-label":n,"aria-labelledby":r})}}(e),s=bo([Boolean(t),Boolean(o),r]),a=bo([Boolean(t),Boolean(o),r]);return i=vo(i,{"aria-describedby":[s,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:n,fieldProps:i,descriptionProps:{id:s},errorMessageProps:{id:a}}}const qc=new WeakMap,Yc=new WeakMap,Xc=new WeakMap,[Zc,Jc]=Ya({name:"RadioGroupContext",strict:!0,errorMessage:"useRadioGroupContext: `context` is undefined. Seems you forgot to wrap all checkbox components within `<Radio.Group />`"}),Qc=De("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"}}}}),ed=De("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"}},zn),td=De("label",{d:"flex",w:"initial",ai:"flex-start",position:"relative",fd:"column",jc:"flex-start",cursor:"pointer","@motion":{[`& ${ed}`]:{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",[`& ${ed}`]:{"&:after":{borderColor:"$colors$error"}}}},isDisabled:{true:{cursor:"not-allowed",$$radioColor:"$colors$accents4"}},isSquared:{true:{$$radioRadii:"$radii$squared"},false:{$$radioRadii:"$radii$rounded"}},isChecked:{true:{[`& ${ed}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColor"}}}},disableAnimation:{true:{[`& ${ed}`]:{transition:"none","&:after":{transition:"none"}}},false:{[`& ${ed}`]:{transition:"$default","&:after":{transition:"$default"}}}}},defaultVariants:{size:"md",isSquared:!1,disableAnimation:!1},compoundVariants:[{isChecked:!0,isHovered:!0,css:{[`& ${ed}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColorHover"}}}},{isChecked:!0,isDisabled:!0,isHovered:!0,css:{[`& ${ed}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColor"}}}},{isChecked:!1,isDisabled:!1,isHovered:!0,css:{[`& ${ed}`]:{bg:"$border"}}}]}),od=De("span",{color:"$accents7",fontSize:"calc($$radioSize * 0.85)",paddingLeft:"calc($$radioSize + $$radioSize * 0.375)",variants:{isInvalid:{true:{color:"$red500"}},isDisabled:{true:{color:"$accents5"}}}}),rd=De("div",{w:"initial",position:"relative",d:"flex",fd:"row",ai:"center",jc:"flex-start"}),nd=De("label",{d:"block",fontWeight:"$normal",fontSize:"calc($$checkboxSize * 0.9)",color:"$accents8",mb:"$3"}),id=De("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"}}}}),sd=De("div",{display:"flex",flexDirection:"column",variants:{isRow:{true:{mt:0,flexDirection:"row",[`& ${td}:not(:last-child)`]:{mr:"$$radioSize"}},false:{mr:0,flexDirection:"column",[`& ${td}:not(:first-child)`]:{mt:"$$radioSize"}}}},defaultVariants:{isRow:!1}}),ad=h().forwardRef(((e,t)=>{const{className:o,as:r,css:n,children:i,label:s,description:a,...l}=e,{size:c,color:d,inputRef:u,labelColor:p,isHovered:h,isSquared:m,isInvalid:$,isDisabled:f,autoFocus:b,disableAnimation:y,hoverProps:v,inputProps:x,isRequired:w}=(e=>{var t,o,r;const n=Jc(),{size:i=(null!=(t=n.size)?t:"md"),color:s=(null!=(o=n.color)?o:"default"),labelColor:a=(null!=(r=n.labelColor)?r:"default"),autoFocus:l,isSquared:c=!1,isDisabled:d=!1,disableAnimation:u=!1,...p}=e,h=(0,g.useRef)(null),{inputProps:m}=function(e,t,o){let{value:r,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===r,{pressProps:c}=hr({isDisabled:a}),{focusableProps:d}=cs(vo(e,{onFocus:()=>t.setLastFocusedValue(r)}),o),u=vo(c,d),p=Co(e,{labelable:!0}),g=t.lastFocusedValue===r||null==t.lastFocusedValue?0:-1;return a&&(g=void 0),{inputProps:vo(p,{...u,type:"radio",name:qc.get(t),tabIndex:g,disabled:a,checked:l,value:r,onChange:e=>{e.stopPropagation(),t.setSelectedValue(r)},"aria-describedby":["invalid"===t.validationState?Xc.get(t):null,Yc.get(t)].filter(Boolean).join(" ")||void 0}),isDisabled:a,isSelected:l}}({...p,...n,isDisabled:d},n.radioGroupState,h),$=(0,g.useMemo)((()=>{var e;return null!=(e=m.disabled)&&e}),[m.disabled]),{hoverProps:f,isHovered:b}=na({isDisabled:$});return{size:i,color:s,inputRef:h,autoFocus:l,isDisabled:$,labelColor:a,isInvalid:(0,g.useMemo)((()=>"invalid"===n.validationState),[n.validationState]),isHovered:b,isSquared:c,isRequired:(0,g.useMemo)((()=>{var e;return null!=(e=n.isRequired)&&e}),[n.isRequired]),disableAnimation:u,inputProps:m,hoverProps:f}})({...l,children:null!=i?i:s}),S=ji(t,u),{focusProps:C,isFocusVisible:k}=wi({autoFocus:b}),P=(0,g.useMemo)((()=>h?"is-hovered":f?"is-disabled":x.checked?"checked":"unchecked"),[f,x.checked,h]);return(0,zt.jsxs)(td,{ref:S,...v,as:r,className:Mt("nextui-radio-label",`nextui-radio--${P}`,o),color:d,css:n,"data-state":P,disableAnimation:y,isChecked:x.checked,isDisabled:f,isHovered:h,isInvalid:$,isSquared:m,size:c,children:[(0,zt.jsxs)(rd,{className:"nextui-radio-container",children:[(0,zt.jsx)(ed,{className:"nextui-radio-point",isFocusVisible:k,...C,children:(0,zt.jsx)(Wa,{children:(0,zt.jsx)("input",{ref:u,className:"nextui-radio-input",required:w,...zi(x,C)})})}),(0,zt.jsx)(Qc,{className:"nextui-radio-text",color:p,isDisabled:f,isInvalid:$,children:i})]}),a&&(0,zt.jsx)(od,{className:"nextui-radio-description",isDisabled:f,isInvalid:$,children:a})]})}));ad.toString=()=>".nextui-radio";const ld=ad;let cd=Math.round(1e10*Math.random()),dd=0;const ud=h().forwardRef(((e,t)=>{const{as:o,css:r,className:n,children:i,label:s,...a}=e,l=(e=>{const{size:t="md",color:o="default",labelColor:r="default",orientation:n="vertical",isRequired:i,validationState:s,...a}=e,l=(0,g.useMemo)((()=>({...a,isRequired:i,orientation:n})),[a]),c=function(e){let t=(0,g.useMemo)((()=>e.name||`radio-group-${cd}-${++dd}`),[e.name]),[o,r]=Da(e.value,e.defaultValue,e.onChange),[n,i]=(0,g.useState)(null);return{name:t,selectedValue:o,setSelectedValue:t=>{e.isReadOnly||e.isDisabled||r(t)},lastFocusedValue:n,setLastFocusedValue:i,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,validationState:e.validationState}}(l),{radioGroupProps:d,labelProps:u}=function(e,t){let{name:o,validationState:r,isReadOnly:n,isRequired:i,isDisabled:s,orientation:a="vertical"}=e,{direction:l}=rr(),{labelProps:c,fieldProps:d,descriptionProps:u,errorMessageProps:p}=_c({...e,labelElementType:"span"});Yc.set(t,u.id),Xc.set(t,p.id);let g=Co(e,{labelable:!0}),{focusWithinProps:h}=Fr({onBlurWithin(){t.selectedValue||t.setLastFocusedValue(null)}}),m=$o(o);return qc.set(t,m),{radioGroupProps:vo(g,{role:"radiogroup",onKeyDown:e=>{let o;switch(e.key){case"ArrowRight":o="rtl"===l&&"vertical"!==a?"prev":"next";break;case"ArrowLeft":o="rtl"===l&&"vertical"!==a?"next":"prev";break;case"ArrowDown":o="next";break;case"ArrowUp":o="prev";break;default:return}e.preventDefault();let r,n=is(e.currentTarget,{from:e.target});"next"===o?(r=n.nextNode(),r||(n.currentNode=e.currentTarget,r=n.firstChild())):(r=n.previousNode(),r||(n.currentNode=e.currentTarget,r=n.lastChild())),r&&(r.focus(),t.setSelectedValue(r.value))},"aria-invalid":"invalid"===r||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,...h}),labelProps:c,descriptionProps:u,errorMessageProps:p}}(l,c);return{size:t,color:o,orientation:n,labelColor:r,isRequired:i,validationState:s,radioGroupState:c,radioGroupProps:d,labelProps:u}})({...a,label:s}),c=Fi(t);return(0,zt.jsxs)(id,{ref:c,as:o,className:Mt("nextui-radio-group",n),css:r,size:l.size,...l.radioGroupProps,children:[s&&(0,zt.jsx)(nd,{className:"nextui-radio-group-label",...l.labelProps,children:s}),(0,zt.jsx)(sd,{className:"nextui-radio-group-items",isRow:"horizontal"===l.orientation,role:"presentation",children:(0,zt.jsx)(Zc,{value:l,children:i})})]})}));ud.toString=()=>".nextui-radio-group";const pd=ud;ld.Group=pd;const gd=ld,hd=De("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"}}}},Hn),md=h().forwardRef(((e,o)=>{const{children:r,tag:n,color:i="default",transform:s,size:a,css:l,...c}=e,d=Fi(o),u=(0,g.useMemo)((()=>(e=>null!=t.find((t=>t===e)))(i)?"default"===i?"$text":`$${i}`:i),[i]);return(0,zt.jsx)(hd,{ref:d,as:n,css:{color:u,fontSize:a,tt:s,...l},...c,children:r})}));md.toString=()=>".nextui-text-child";const $d=h().memo(md),fd=(e,t,o,r)=>{if(!e.length)return t;const n=e.slice(1,e.length);return(0,zt.jsx)($d,{size:o,tag:e[0],transform:r,children:fd(n,t,o)})},bd=h().forwardRef(((e,t)=>{const{h1:o=!1,h2:r=!1,h3:n=!1,h4:i=!1,h5:s=!1,h6:a=!1,b:l=!1,small:c=!1,i:d=!1,span:u=!1,del:p=!1,em:h=!1,blockquote:m=!1,transform:$="none",size:f,children:b,...y}=e,v=Fi(t),x={h1:o,h2:r,h3:n,h4:i,h5:s,h6:a,blockquote:m},w={span:u,small:c,b:l,em:h,i:d,del:p},S=Object.keys(x).filter((e=>x[e])),C=Object.keys(w).filter((e=>w[e])),k=(0,g.useMemo)((()=>S[0]?S[0]:C[0]?C[0]:"p"),[S,C]),P=C.filter((e=>e!==k)),T=(0,g.useMemo)((()=>P.length?fd(P,b,f,$):b),[P,b,f,$]);return(0,zt.jsx)($d,{ref:v,size:f,tag:k,transform:$,...y,children:T})}));bd.toString=()=>".nextui-text";const yd=h().memo(bd),vd=De("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"}}),xd=De("span",{position:"absolute",display:"flex",size:"calc($$switchHeight * 0.7)",jc:"center",ai:"center",top:"calc(50% - $$switchHeight * 0.35)",left:"0",transition:"transform 0.25s ease, width 0.2s ease",bg:"$background",br:"$pill","& svg":{bg:"transparent",size:"calc($$switchHeight * 0.44)"},"@motion":{transition:"none"}}),wd=De("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","&:hover:not(&:active)":{bg:"$$switchColorHover"}}},bordered:{true:{bg:"transparent",border:"$$switchBorderW solid $border","&:hover":{borderColor:"$$switchColor"},[`& ${xd}`]:{bg:"$accents2"}}},squared:{true:{br:"2px",[`& ${xd}`]:{br:"2px"}}},shadow:{true:{}},disabled:{true:{borderColor:"$accents2",bg:"$accents2",[`& ${xd}`]:{bg:"$accents4"}}},animated:{true:{"&:active":{[`& ${xd}`]:{width:"calc($$switchHeight * 0.7 + ($$switchWidth / 10))"}}},false:{transition:"none",[`& ${xd}`]:{transition:"none"}}}},compoundVariants:[{checked:!0,disabled:!0,css:{bg:"$accents3",[`& ${xd}`]:{bg:"$accents0"},"&:hover:not(&:active)":{bg:"$accents4"}}},{shadow:!0,checked:!0,css:{normalShadowVar:"$$switchColorShadow"}},{checked:!0,bordered:!0,css:{bg:"$$switchColor",border:"$$switchBorderW solid transparent","&:hover:not(&:active)":{borderColor:"transparent"},[`& ${xd}`]:{bg:"$background"}}}]},Mn),Sd=De("input",{[`& + ${wd} > ${xd}`]:{transform:"translateX(calc($$switchWidth / 15))"},[`&:checked + ${wd} > ${xd}`]:{transform:"translateX(calc($$switchWidth - $$switchWidth / 15 - $$switchHeight * 0.7))"},variants:{animated:{true:{[`& + ${wd}:active > ${xd}`]:{transform:"translateX(calc($$switchWidth / 7.5))"},[`&:checked + ${wd}:active > ${xd}`]:{transform:"translateX(calc($$switchWidth - $$switchWidth / 7.5 - $$switchWidth / 10 - $$switchHeight * 0.7))"}}},bordered:{true:{[`& + ${wd} > ${xd}`]:{transform:"translateX(calc($$switchWidth / 15 - $$switchBorderW / 2))"},[`&:checked + ${wd} > ${xd}`]:{transform:"translateX(calc($$switchWidth - $$switchWidth / 15 - $$switchBorderW * 1.5 - $$switchHeight * 0.7))"}}}},compoundVariants:[{animated:!0,bordered:!0,css:{[`& + ${wd}:active > ${xd}`]:{transform:"translateX(calc($$switchWidth / 7.5 - $$switchBorderW / 2))"},[`&:checked + ${wd}:active > ${xd}`]:{transform:"translateX(calc($$switchWidth - $$switchWidth / 7.5 - $$switchWidth / 10 - $$switchBorderW * 1.5 - $$switchHeight * 0.7))"}}}]},Nn),Cd="nextui-switch",kd=({initialChecked:e,checked:t,disabled:o,onChange:r,squared:n,bordered:i,shadow:s,icon:a,iconOn:l,iconOff:c,animated:d,preventDefault:u,name:p,...h})=>{const[m,$]=(0,g.useState)(e),f=(0,g.useCallback)((e=>{if(o)return;const t={target:{checked:!m},stopPropagation:e.stopPropagation,preventDefault:e.preventDefault,nativeEvent:e};$(!m),r&&r(t)}),[o,m,r]),{bindings:b}=yt((e=>{f(e)}),[ft.Enter,ft.Space],{disableGlobalEvent:!0,preventDefault:u}),y=(0,g.useMemo)((()=>{const e=a||l||c,t=Boolean(l),o=Boolean(c);return e?t&&m?l:o&&!m?c:e:null}),[m,a,l,c]);(0,g.useEffect)((()=>{void 0!==t&&$(t)}),[t]);const v=(0,g.useMemo)((()=>m?"checked":"unchecked"),[m]);return(0,zt.jsxs)(vd,{animated:d,"data-state":v,disabled:o,...h,children:[(0,zt.jsx)(Sd,{animated:d,bordered:i,checked:m,className:Mt(`${Cd}-input`),"data-state":v,disabled:o,tabIndex:-1,type:"checkbox",onChange:f,name:p}),(0,zt.jsx)(wd,{animated:d,"aria-checked":m,"aria-disabled":o,bordered:i,checked:m,className:Mt(Cd,`${Cd}--${v}`,{[`${Cd}-checked`]:m,[`${Cd}-disabled`]:o}),"data-state":v,disabled:o,role:"switch",shadow:s,squared:n,tabIndex:o?-1:0,...b,children:(0,zt.jsx)(xd,{className:`${Cd}-circle`,children:y})})]})};kd.toString=()=>".nextui-switch";const Pd=Et(h().memo(kd),{disabled:!1,bordered:!1,shadow:!1,squared:!1,animated:!0,preventDefault:!0,initialChecked:!1}),Td=Ue({"0%":{opacity:0},"60%":{opacity:.75},"100%":{opacity:1}}),Ed=Ue({"0%":{opacity:0}}),Id=Ue({"0%":{backdropFilter:"saturate(0%) blur(0)"}}),Md=De("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:Td,animationDuration:"200ms",animationTimingFunction:"ease-in",animationDirection:"normal"}},false:{transition:"none"}}}}),zd=De("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","@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none))":{opacity:1,backdropFilter:"saturate(180%) blur(20px)",animationName:`${Id}, ${Ed}`,bg:"rgba(0, 0, 0, 0.1)"}},false:{bg:"$black",opacity:"$$backdropOpacity",animationName:`${Ed}`,animationDuration:"0.2s",animationTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)"}},animated:{true:{animationName:`${Ed}`,animationDuration:"0.2s",animationTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)"},false:{transition:"none"}}}}),Ld=De("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",[`& ${Md}`]:{width:"100vw",maxWidth:"100vw",height:"100vh",margin:0},[`& ${zd}`]:{display:"none"}}}},defaultVariants:{fullScreen:!1}}),Nd="nextui-backdrop",Bd=h().memo((({children:e,onClick:t,onKeyPress:o,visible:r,maxWidth:n,blur:i,animated:s,opacity:a,preventDefault:l,className:c,css:d,...u})=>{const[,p,h]=m(!1),$=e=>{h.current||t&&t(e)},f=(0,g.useCallback)((e=>{e.stopPropagation()}),[]),b=()=>{if(!h.current)return;const e=setTimeout((()=>{p(!1),clearTimeout(e)}),0)},{bindings:y}=yt((e=>{o&&o(e)}),[ft.Escape,ft.Space],{disableGlobalEvent:!0,preventDefault:l}),v=(0,g.useMemo)((()=>r?"open":"closed"),[r]),x=(0,g.useMemo)((()=>(0,zt.jsxs)(Ld,{"aria-hidden":!0,className:Mt(Nd,`${Nd}--${v}`,c),css:{$$backdropOpacity:a,...d},"data-state":v,role:"button",tabIndex:-1,onClick:$,onMouseUp:b,...y,...u,children:[(0,zt.jsx)(zd,{animated:s,blur:i,className:Mt(`${Nd}-layer`,i?`${Nd}-layer-blur`:`${Nd}-layer-default`)}),(0,zt.jsx)(Md,{animated:s,className:`${Nd}-content`,css:{maxWidth:n},onClick:f,onMouseDown:()=>p(!0),children:e})]})),[e]);return(0,zt.jsx)(zt.Fragment,{children:s?(0,zt.jsx)(tc,{clearTime:150,enterTime:20,leaveTime:20,name:`${Nd}-wrapper`,visible:r,children:x}):r?x:null})}));Bd.toString=()=>".nextui-backdrop";const Rd=Et(Bd,{onClick:()=>{},visible:!1,blur:!1,animated:!0,preventDefault:!0,opacity:.5,className:""}),Hd=De("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"}},zn),Ad=De("div",{ml:"$sm",d:"inline-flex",fd:"column",alignItems:"flex-start",whiteSpace:"nowrap"}),Kd=De("span",{fontSize:"$sm",color:"$text",lh:"$sm",fontWeight:"$medium",maxW:"$60",to:"ellipsis",ov:"hidden"}),Fd=De("span",{fontSize:"$xs",color:"$accents7","*:first-child":{mt:0},"*:last-child":{mb:0}}),jd="nextui-user",Wd=h().forwardRef(((e,t)=>{const{as:o,css:r,src:n,text:i,name:s,children:a,altText:l,color:c,squared:d,bordered:u,size:p,description:h,zoomed:m,pointer:$,...f}=e,b=Fi(t),{isFocusVisible:y,focusProps:v}=wi(),x=(0,g.useMemo)((()=>{if("button"===o)return{borderRadius:"$xs",background:"none",appearance:"none",p:0,m:0,outline:"none",border:"none",cursor:"pointer"}}),[o]);return(0,zt.jsxs)(Hd,{ref:b,as:o,...zi(f,v),css:{...x,...r},isFocusVisible:y,children:[(0,zt.jsx)(Zi,{alt:l,bordered:u,className:`${jd}-avatar`,color:c,pointer:$,size:p,squared:d,src:n,text:i,zoomed:m}),(0,zt.jsxs)(Ad,{className:`${jd}-info`,children:[(0,zt.jsx)(Kd,{className:`${jd}-name`,children:s}),(0,zt.jsx)(Fd,{className:`${jd}-desc`,children:h||a})]})]})}));Wd.toString=()=>".nextui-user";const Dd=Wd,Od=h().forwardRef(((e,t)=>{const{rel:o="noopener",color:r="primary",target:n="_blank",className:i,children:s,...a}=e;return(0,zt.jsx)(zc,{ref:t,className:Mt("nextui-user-link",i),color:r,rel:o,target:n,...a,children:s})}));Od.toString=()=>".nextui-user-link";const Vd=h().memo(Od);Dd.Link=Vd;const Ud=Dd,Gd=Ue({"0%":{left:"-40%"},"100%":{left:"100%"}}),_d=De("div",{margin:0,padding:0,width:"100%",position:"relative",overflow:"hidden",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"}}),qd=De("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 ${Gd}`}}}}),Yd="nextui-progress",Xd=({value:e,max:t,min:o,striped:r,animated:n,shadow:i,indeterminated:s,css:a,...l})=>{const c=(0,g.useMemo)((()=>e>t?t:e<o?o:e),[e,o,t]),d=(0,g.useMemo)((()=>function(e,t,o){return 100*(e-t)/(o-t)}(c,o,t)),[c,o,t]);return(0,zt.jsx)(_d,{"aria-label":"progress","aria-valuemax":t,"aria-valuemin":o,"aria-valuenow":c,css:{"nextui-progress-wrapper-enter":{opacity:0},".nextui-progress-wrapper-enter-active":{opacity:1,width:`${d}%`},...a},indeterminated:s,role:"progressbar",...l,children:(0,zt.jsx)(tc,{visible:!0,clearTime:300,enterTime:10,leaveTime:20,name:`${Yd}-wrapper`,children:(0,zt.jsx)(qd,{animated:n,className:Mt(`${Yd}-bar`,{[`${Yd}-striped`]:r,[`${Yd}-indeterminated`]:s}),indeterminated:s,shadow:i,striped:r,...l})})})};Xd.toString=()=>".nextui-progress";const Zd=Et(h().memo(Xd),{striped:!1,animated:!0,shadow:!1,indeterminated:!1,value:0,min:0,max:100}),Jd=({size:e,fill:t,plain:o,width:r,height:n,className:i,...s})=>o?(0,zt.jsx)("svg",{className:i,fill:"none",height:e||n,stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:e||r,...s,children:(0,zt.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})}):(0,zt.jsx)("svg",{className:i,height:e||n,viewBox:"0 0 24 24",width:e||r,...s,children:(0,zt.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})}),Qd=Et(g.memo(Jd),{width:24,height:24,plain:!1,className:""}),eu=Ue({"0%":{transform:"scale(0.95)"},"40%":{transform:"scale(1.02)"},"80%":{transform:"scale(0.98)"},"100%":{transform:"scale(1)"}}),tu=Ue({"0%":{opacity:0,transform:"scale(0.95)"},"60%":{opacity:.75,transform:"scale(1.02)"},"100%":{opacity:1,transform:"scale(1)"}}),ou=Ue({"0%":{opacity:1,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(0.95)"}}),ru=De("div",{outline:"none",overflow:"hidden",width:0,height:0,opacity:0}),nu=De("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"}}}},Mn),iu=De("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}}}}}),su=De("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}}}}}),au=De("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"}}}}}),lu=De("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:tu,animationDuration:"200ms",animationTimingFunction:"ease-in",animationDirection:"normal"},"&.nextui-modal-wrapper-leave":{animationName:ou,animationDuration:"50ms",animationTimingFunction:"ease-out"},variants:{fullScreen:{true:{size:"100%",maxHeight:"100%"},false:{"&.nextui-modal-rebound":{animationDuration:"250ms",animationName:eu,animationTimingFunction:"ease",animationFillMode:"forwards"}}},scroll:{true:{maxHeight:"calc(100vh - 200px)"}},closeButton:{true:{paddingTop:"$lg",[`& ${nu}`]:{svg:{size:"$10"}}}}},compoundVariants:[{scroll:!0,fullScreen:!0,css:{maxHeight:"100%"}}]}),cu=({onClick:e,...t})=>(0,zt.jsx)(nu,{"aria-label":"Close",className:"nextui-modal-close-icon",type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),e&&e(t)},...t,children:(0,zt.jsx)(Qd,{plain:!0,"aria-hidden":!0,className:"nextui-modal-close-icon-svg",fill:"currentColor",size:18})});cu.toString=()=>".nextui-modal-close-icon";const du=h().memo(cu),uu="nextui-modal",pu=({className:e,children:t,visible:o,fullScreen:r,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(!o)return;const e=document.activeElement,t=((e,t)=>{if(!e||!t)return!1;let o=t;for(;o;){if(o===e)return!0;o=o.parentNode}return!1})(d.current,e);t||u.current&&u.current.focus()}),[o]);const $=e=>{const t=e.keyCode===ft.Tab;if(!o||!t)return;const r=document.activeElement;e.shiftKey?r===u.current&&p.current&&p.current.focus():r===p.current&&u.current&&u.current.focus()},f=()=>{a&&a()},b=(0,g.useMemo)((()=>o?"open":"closed"),[o]),y=(0,g.useMemo)((()=>(0,zt.jsxs)(lu,{ref:d,"aria-modal":o,className:Mt(uu,`${uu}--${b}`,{[`${uu}-fullscreen`]:r,[`${uu}-with-close-button`]:n,[`${uu}-rebound`]:i,[`${uu}-rendered`]:h},e),closeButton:n,"data-state":b,fullScreen:r,role:"dialog",scroll:l,tabIndex:-1,...c,onKeyDown:$,children:[(0,zt.jsx)(ru,{ref:u,"aria-hidden":"true",className:`${uu}-hide-tab`,role:"button",tabIndex:0}),n&&(0,zt.jsx)(du,{onClick:f}),t,(0,zt.jsx)(ru,{ref:p,"aria-hidden":"true",className:`${uu}-hide-tab`,role:"button",tabIndex:0})]})),[i,t]);return(0,zt.jsx)(zt.Fragment,{children:s?(0,zt.jsx)(tc,{clearTime:300,enterTime:20,leaveTime:20,name:`${uu}-wrapper`,visible:o,children:y}):o?y:null})};pu.toString=()=>".nextui-modal-wrapper";const gu=Et(pu,{className:"",visible:!1,rebound:!1}),hu={},mu=h().createContext(hu),$u=({children:e,onClose:t,onOpen:o,open:r,autoMargin:n,width:i,className:s,preventClose:a,blur:l,animated:c,fullScreen:d,noPadding:u,...p})=>{const h=rt("modal"),[,$]=at(null,{scrollLayer:!0}),[f,b,y]=m(!1),[v,x]=(0,g.useState)(!1),w=()=>{t&&t(),b(!1),$(!1)};(0,g.useEffect)((()=>{void 0!==r&&(r&&o&&o(),!r&&y.current&&t&&t(),b(r),$(r))}),[r]);const S=()=>{x(!0);const e=setTimeout((()=>{x(!1),clearTimeout(e)}),300)},{bindings:C}=yt((()=>{a?S():w()}),ft.Escape,{disableGlobalEvent:!0,preventDefault:!0}),k=(0,g.useMemo)((()=>({close:w,autoMargin:n,noPadding:u})),[]);return h?(0,Yr.createPortal)((0,zt.jsx)(mu.Provider,{value:k,children:(0,zt.jsx)(Rd,{animated:c,blur:l,fullScreen:d,maxWidth:i,visible:f,onClick:()=>{a?S():w()},...C,children:(0,zt.jsx)(gu,{animated:c,className:s,fullScreen:d,rebound:v,visible:f,onCloseButtonClick:w,...p,children:e})})}),h):null};$u.toString=()=>".nextui-modal",$u.defaultProps={width:"400px",className:"",preventClose:!1,fullScreen:!1,closeButton:!1,animated:!0,blur:!1,scroll:!1,noPadding:!1};const fu=$u,bu="nextui-modal-header",yu=({children:e,className:t,justify:o,autoMargin:r,css:n,...i})=>{const{autoMargin:s,noPadding:a}=(0,g.useContext)(mu),l=(0,g.useMemo)((()=>void 0!==s?s:r),[r,s]);return(0,zt.jsx)(iu,{autoMargin:l,className:Mt(bu,{[`${bu}-auto-margin`]:l,[`${bu}-no-padding`]:a},t),css:{justifyContent:o,...n},noPadding:a,...i,children:e})};yu.toString=()=>".nextui-modal-header";const vu=Et(h().memo(yu),{className:"",justify:"center",autoMargin:!0}),xu="nextui-modal-body",wu=({className:e,children:t,autoMargin:o,...r})=>{const{autoMargin:n,noPadding:i}=(0,g.useContext)(mu),s=(0,g.useMemo)((()=>void 0!==n?n:o),[o,n]);return(0,zt.jsx)(su,{autoMargin:s,className:Mt(xu,{[`${xu}-auto-margin`]:s,[`${xu}-no-padding`]:i},e),noPadding:i,...r,children:t})};wu.toString=()=>".nextui-modal-body";const Su=Et(h().memo(wu),{className:"",autoMargin:!0}),Cu="nextui-modal-footer",ku=({children:e,className:t,justify:o,autoMargin:r,css:n,...i})=>{const{autoMargin:s,noPadding:a}=(0,g.useContext)(mu),l=(0,g.useMemo)((()=>void 0!==s?s:r),[r,s]);return(0,zt.jsx)(au,{autoMargin:l,className:Mt(Cu,{[`${Cu}-auto-margin`]:l,[`${Cu}-no-padding`]:a},t),css:{justifyContent:o,...n},noPadding:a,...i,children:e})};ku.toString=()=>".nextui-modal-footer";const Pu=Et(h().memo(ku),{className:"",justify:"flex-end",autoMargin:!0});fu.Header=vu,fu.Body=Su,fu.Footer=Pu;const Tu=fu,Eu=(e=!1)=>{const[t,o,r]=m(e);return{visible:t,setVisible:o,currentRef:r,bindings:{open:t,onClose:()=>o(!1)}}},Iu=Ue({"0%":{transform:"scale(1)"},"60%":{transform:"scale($$paginationScaleTransform)"},"100%":{transform:"scale(1)"}}),Mu=De("svg",{color:"currentColor",stroke:"currentColor",variants:{isEllipsis:{true:{transform:"0deg"}},isBefore:{true:{}}},compoundVariants:[{isEllipsis:!0,isBefore:!0,css:{transform:"rotate(180deg)"}}]}),zu=De("svg",{transform:"rotate(180deg)",variants:{isPrev:{true:{transform:"rotate(0deg)"}}}}),Lu=De("span",{position:"relative",display:"inline-flex",alignItems:"center",top:0,left:0,zIndex:"$2"}),Nu=De("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"},[`& ${zu}`]:{size:"$$paginationFontSize"},[`& ${Mu}`]:{size:"$$paginationFontSize"},variants:{active:{true:{fontWeight:"$bold",cursor:"default",boxShadow:"$sm",[`& ${Lu}`]:{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:{[`& ${Lu}`]:{display:"none"}}},{animated:!0,disabled:!1,active:!1,css:{"&:active":{transform:"scale($$paginationScaleTransform)",fs:"calc($$paginationFontSize * 0.9)"}}}]},Mn),Bu=De("div",{position:"absolute",contain:"strict",top:"0px",zIndex:"$1",bg:"$$paginationColor",br:"$$paginationItemRadius",height:"$$paginationSize",minWidth:"$$paginationSize",animationName:`${Iu}`,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"}}]}),Ru=De("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",[`& ${Nu}:first-of-type`]:{btlr:"$squared",bblr:"$squared"},[`& ${Nu}:last-of-type`]:{btrr:"$squared",bbrr:"$squared"}},false:{$$paginationItemMargin:"$space$1"}}},compoundVariants:[{bordered:!0,noMargin:!0,css:{[`& ${Nu}: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}}),Hu=e=>{if(e)switch(e){case xt: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`}},Au="nextui-pagination-item",Ku=({active:e,value:t,children:o,disabled:r,animated:n,bordered:i,onClick:s,onlyDots:a,preserveContent:l,...c})=>{const d=(0,g.useMemo)((()=>e?`${Hu(t)} active`:Hu(t)),[t,e]);return(0,zt.jsx)(Nu,{active:e,animated:n,"aria-label":d,bordered:i,className:Mt(Au,{[`${Au}-active`]:e,[`${Au}-animated`]:n,[`${Au}-disabled`]:r,[`${Au}-bordered`]:i,[`${Au}-only-dots`]:a,[`${Au}-preserve-content`]:l}),disabled:r,onlyDots:a,preserveContent:l,tabIndex:r?-1:0,onClick:e=>{r||s&&s(e)},...c,children:(0,zt.jsx)(Lu,{className:`${Au}-content`,children:o})})};Ku.toString=()=>".nextui-pagination-item";const Fu=Et(Ku,{preserveContent:!1}),ju=({value:e,isBefore:t,onlyDots:o,animated:r,bordered:n,onClick:i})=>{const[s,a]=(0,g.useState)(!1);return(0,zt.jsx)(Fu,{animated:r,bordered:n,onlyDots:o,value:e,onClick:e=>i&&i(e),onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:s?(0,zt.jsxs)(Mu,{className:"nextui-pagination-ellipsis",fill:"none",focusable:"false",isBefore:t,isEllipsis:!0,role:"presentation",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",children:[(0,zt.jsx)("path",{d:"M13 17l5-5-5-5"}),(0,zt.jsx)("path",{d:"M6 17l5-5-5-5"})]}):(0,zt.jsxs)(Mu,{fill:"none",isBefore:t,isEllipsis:!1,shapeRendering:"geometricPrecision",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",children:[(0,zt.jsx)("circle",{cx:"12",cy:"12",fill:"currentColor",r:"1"}),(0,zt.jsx)("circle",{cx:"19",cy:"12",fill:"currentColor",r:"1"}),(0,zt.jsx)("circle",{cx:"5",cy:"12",fill:"currentColor",r:"1"})]})})},Wu=({isPrev:e,disabled:t,onlyDots:o,animated:r,bordered:n,onClick:i,...s})=>(0,zt.jsx)(Fu,{preserveContent:!0,animated:r,bordered:n,disabled:t,onlyDots:o,value:e?"<":">",onClick:e=>i&&i(e),children:(0,zt.jsx)(zu,{className:"nextui-pagination-icon",fill:"none",focusable:"false",isPrev:e,role:"presentation",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:(0,zt.jsx)("path",{d:"M15.5 19l-7-7 7-7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})})});Wu.toString=()=>".nextui-pagination-icon";const Du=h().memo(Wu),Ou="nextui-pagination-highlight",Vu=({active:e,shadow:t,noMargin:o,rounded:r,css:n,...i})=>{const[s,a]=(0,g.useState)(e),[l,c]=(0,g.useState)("");(0,g.useEffect)((()=>{if(e!==s){a(e),c(`${Ou}--moving`);const t=setTimeout((()=>{c(""),clearTimeout(t)}),350)}}),[e]);const d=(0,g.useMemo)((()=>o?`var(--nextui--paginationSize) * ${s}`:`var(--nextui--paginationSize) * ${s} + ${4*s+2}px`),[s,o]);return(0,zt.jsx)(Bu,{"aria-hidden":!0,className:Mt(Ou,l,{[`${Ou}--rounded`]:r,[`${Ou}--active`]:e,[`${Ou}--no-margin`]:o,[`${Ou}--shadow`]:t},i.className),css:{left:"var(--nextui--paginationLeft)",...n},noMargin:o,rounded:r,shadow:t,style:zi({"--nextui--paginationLeft":`calc(${d})`},(null==i?void 0:i.style)||{}),...i})};Vu.toString=()=>".nextui-pagination-highlight";const Uu=Vu,Gu="nextui-pagination",_u=({page:e,initialPage:t,onlyDots:o,total:r,loop:n,siblings:i,boundaries:s,shadow:a,animated:l,bordered:c,dotsJump:d,controls:u,noMargin:p,onChange:h,rounded:m,...$})=>{const{range:f,active:b,setPage:y,previous:v,next:x,first:w,last:S}=wt({page:e,initialPage:t,siblings:o?10:i,boundaries:o?10:s,total:r,onChange:h}),C=(0,g.useCallback)(((e,t)=>{if(e===xt){const n=t<f.indexOf(b);return(0,zt.jsx)(ju,{animated:l,bordered:c,isBefore:n,onlyDots:o,value:e,onClick:()=>y(n?b-d>=1?b-d:1:b+d<=r?b+d:r)},`${Gu}-item-${e}-${t}`)}return(0,zt.jsx)(Fu,{active:e===b,animated:l,bordered:c,onlyDots:o,value:e,onClick:()=>e!==b&&y(e),children:e},`${Gu}-item-${e}-${t}`)}),[r,o,b,c,l,y]);return(0,zt.jsxs)(Ru,{bordered:c,className:Mt(Gu,{[`${Gu}--no-margin`]:p,[`${Gu}--bordered`]:c,[`${Gu}--shadow`]:a,[`${Gu}--rounded`]:m}),noMargin:p,onlyDots:o,rounded:m,...$,children:[u&&(0,zt.jsx)(Du,{isPrev:!0,animated:l,bordered:c,disabled:!n&&1===b,onlyDots:o,onClick:()=>n&&1===b?S():v()}),(0,zt.jsx)(Uu,{active:u?f.indexOf(b)+1:f.indexOf(b),animated:l,noMargin:p,rounded:m,shadow:a}),f.map(C),u&&(0,zt.jsx)(Du,{animated:l,bordered:c,disabled:!n&&b===r,onlyDots:o,onClick:()=>n&&b===r?w():x()})]})};_u.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},_u.toString=()=>".nextui-pagination";const qu=h().memo(_u);const Yu=De("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"}}}}),Xu={WebkitTextFillColor:"$$inputTextColor",WebkitBackgroundClip:"text !important",caretColor:"$$inputTextColor"},Zu=De("div",{width:"100%",br:"$$inputBorderRadius",input:{"&:-webkit-autofill":{...Xu,"&:hover":Xu,"&:focus":Xu,"&:active":Xu}},"@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)"}}]}),Ju=De("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}}}}),Qu=De("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",[`& ${Ju}`]:{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:{[`& ${Ju}`]:{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:{[`& ${Ju}`]:{margin:"$xs $sm"}}}]}),ep=De("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}}}}),tp=De("p",{margin:"$1 0 0 $5",fontSize:"$space$5",color:"$$inputHelperColor"}),op=De("span",{},Nn),rp=De("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}}),np=De("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}}),ip=De("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"}}}}),sp=De("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"}}}}}),ap=De("span",{display:"flex",br:"100%"},zn),lp={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:""},cp="nextui-input",dp=h().forwardRef((({as:e="input",label:t,labelPlaceholder:o,labelLeft:r,labelRight:n,size:i,helperText:s,color:a,helperColor:l,status:c,contentLeft:d,contentRight:u,contentClickable:p,contentLeftStyling:h,contentRightStyling:m,onContentClick:$,initialValue:f,onChange:b,readOnly:y,value:v,onClearClick:x,clearable:w,shadow:S,animated:C,required:k,width:P,className:T,onBlur:E,onFocus:I,autoComplete:M,placeholder:z,fullWidth:L,borderWeight:N,disabled:B,bordered:R,underlined:H,rounded:A,css:K,...F},j)=>{const W=(0,g.useRef)(null);(0,g.useImperativeHandle)(j,(()=>W.current));const[D,O]=(0,g.useState)(f),[V,U]=(0,g.useState)(!1),{isDark:G}=Je(),_=(0,g.useMemo)((()=>void 0!==v),[v]),q=(0,g.useMemo)((()=>t||o),[t,o]),Y=(0,g.useMemo)((()=>o?"":z),[z,o]),X=(0,g.useMemo)((()=>L?"100%":P||"initial"),[L,P]),Z=(e,t)=>{B||$&&$(e,t)};(0,g.useEffect)((()=>{_&&O(v)}),[_,v]);const J=(0,g.useMemo)((()=>"textarea"===e),[e]),Q={...F,..._?{value:v}:{defaultValue:f}},{isFocusVisible:ee,focusProps:te}=wi(),{labelProps:oe,fieldProps:re}=function(e){let{id:t,label:o,"aria-labelledby":r,"aria-label":n,labelElementType:i="label"}=e;t=$o(t);let s=$o(),a={};return o?(r=r?`${r} ${s}`:s,a={id:s,htmlFor:"label"===i?t:void 0}):r||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:Lo({id:t,"aria-label":n,"aria-labelledby":r})}}({...Q,label:q}),ne=(0,g.useMemo)((()=>V?"hover":B?"disabled":y?"read-only":D?"with-value":"normal"),[V,B,y,D]);return(0,zt.jsxs)(Yu,{borderWeight:N,className:Mt(`${cp}-main-container`,`${cp}-main-container--${ne}`),color:a,css:{width:X,...K},"data-state":ne,disabled:B,helperColor:l,rounded:A,size:i,status:c,children:[q&&(0,zt.jsx)(rp,{animated:C,asPlaceholder:!!o,bordered:R,className:`${cp}-block-label`,focused:V,hasContentLeft:!!d,htmlFor:"htmlFor"in oe?oe.htmlFor:"",id:oe.id,isTextarea:J,rounded:A,underlined:H,withValue:!!D,children:q}),(0,zt.jsx)(Zu,{animated:C,className:Mt(`${cp}-container`,`${cp}-container--${ne}`,{[`${cp}-container--input`]:!J,[`${cp}-container--textarea`]:J,[`${cp}-container--read-only`]:y},T),focused:V,isReadOnly:y,isTextarea:J,underlined:H,children:(0,zt.jsxs)(Qu,{animated:C,as:q?"div":"label",bordered:R,className:Mt(`${cp}-wrapper`,`${cp}-wrapper--${ne}`,{[`${cp}-wrapper--bordered`]:R,[`${cp}-wrapper--underlined`]:H,[`${cp}-wrapper--shadow`]:S}),disabled:B,focused:V,isReadOnly:y,isTextarea:J,shadow:S,underlined:H,children:[!q&&z&&(0,zt.jsx)(op,{className:`${cp}-placeholder`,children:z}),r&&(0,zt.jsx)(np,{bordered:R,className:`${cp}-label--left`,isDark:G,isDefaultStatus:"default"===c,underlined:H,children:r}),d&&(0,zt.jsx)(ip,{applyStyles:h,className:Mt(`${cp}-content`,`${cp}-content--left`),clickable:p,onClick:e=>Z("left",e),children:d}),(0,zt.jsx)(Ju,{ref:W,"aria-multiline":J,"aria-placeholder":Y,"aria-readonly":y,"aria-required":k,as:e,autoComplete:M,bordered:R,className:Mt({[`${cp}`]:!J,[`${cp}-textarea`]:J,[`${cp}-disabled`]:B,[`${cp}-rounded`]:A,[`${cp}-${cp}-right-content`]:u,[`${cp}-left-content`]:d}),"data-state":ne,disabled:B,focused:V,hasLeftContent:!!d,hasRightContent:!!u,isTextarea:J,placeholder:Y,readOnly:y,required:k,type:"text",onBlur:e=>{U(!1),E&&E(e)},onChange:e=>{B||y||(_||O(e.target.value),b&&b(e))},onFocus:e=>{U(!0),I&&I(e)},...Q,...re}),w&&(0,zt.jsx)(sp,{animated:C,"aria-label":"clear",className:`${cp}-clear-button`,disabled:B||y,hasContentRight:!!u,lang:"en",type:"button",underlined:H,visible:Boolean(D),onClick:e=>{if(e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),_||O(""),x&&x(e),!W.current)return;const t=((e,t)=>({...t,target:e,currentTarget:e}))(W.current,e);t.target.value="",b&&b(t),W.current.focus()},...te,children:(0,zt.jsx)(ap,{isFocusVisible:ee,children:(0,zt.jsx)(Qd,{fill:"currentColor"})})}),u&&(0,zt.jsx)(ip,{applyStyles:m,className:Mt(`${cp}-content`,`${cp}-content--right`),clickable:p,onClick:e=>Z("right",e),children:u}),n&&(0,zt.jsx)(np,{bordered:R,className:`${cp}-label--right`,isDark:G,isDefaultStatus:"default"===c,isRight:!0,underlined:H,children:n})]})}),(0,zt.jsx)(ep,{className:`${cp}-helper-text-container`,withValue:!!s,children:s&&(0,zt.jsx)(tp,{className:`${cp}-helper-text`,children:s})})]})}));dp.displayName="NextUI.Input",dp.defaultProps=lp,dp.toString=()=>".nextui-input";const up=dp,pp=({visible:e})=>(0,zt.jsx)("svg",{className:"nextui-input-password-icon",fill:"none",height:"16",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",style:{color:"currentColor"},viewBox:"0 0 24 24",width:"16",children:e?(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.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,zt.jsx)("path",{d:"M1 1l22 22"})]}):(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,zt.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}),gp=h().memo(pp),hp={...lp,hideToggle:!1,visibleIcon:(0,zt.jsx)(gp,{visible:!0}),hiddenIcon:(0,zt.jsx)(gp,{visible:!1})},mp=h().forwardRef((({hideToggle:e,visibleIcon:t,hiddenIcon:o,children:r,...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:Mt("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:o),[e,a,t,o]);return(0,zt.jsx)(up,{contentRight:u,...d,children:r})}));mp.toString=()=>".nextui-input-password";const $p=Et(mp,hp);up.Password=$p;const fp=up,bp=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],yp={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},vp="undefined"!=typeof document&&!!document.documentElement.currentStyle,xp=e=>{Object.keys(yp).forEach((t=>{e.style.setProperty(t,yp[t],"important")}))};let wp=null;const Sp=h().forwardRef(((e,t)=>{const o=(0,g.useRef)(null),r=h().useRef(0),n=h().useRef(),{cacheMeasurements:i,rows:s,maxRows:a,minRows:l,onChange:c,onHeightChange:d,css:u,...m}=e;Object.keys(m).forEach((e=>{p.indexOf(e)>-1&&delete m[e]}));const $=void 0!==m.value;(0,g.useImperativeHandle)(t,(()=>o.current));const f=()=>{const e=o.current,t=i&&n.current?n.current:(e=>{const t=window.getComputedStyle(e);if(null===t)return null;const o=(r=t,bp.reduce(((e,t)=>(e[t]=r[t],e)),{}));var r;const{boxSizing:n}=o;return""===n?null:(vp&&"border-box"===n&&(o.width=parseFloat(o.width)+parseFloat(o.borderRightWidth)+parseFloat(o.borderLeftWidth)+parseFloat(o.paddingRight)+parseFloat(o.paddingLeft)+"px"),{sizingStyle:o,paddingSize:parseFloat(o.paddingBottom)+parseFloat(o.paddingTop),borderSize:parseFloat(o.borderBottomWidth)+parseFloat(o.borderTopWidth)})})(e);if(!t)return;n.current=t;const[c,u]=((e,t,o=1,r=1/0)=>{wp||(wp=document.createElement("textarea"),wp.setAttribute("tabindex","-1"),wp.setAttribute("aria-hidden","true"),xp(wp)),null===wp.parentNode&&document.body.appendChild(wp);const{paddingSize:n,borderSize:i,sizingStyle:s}=e,{boxSizing:a}=s;Object.keys(s).forEach((e=>{const t=e;wp.style[t]=s[t]})),xp(wp),wp.value=t;let l=((e,t)=>{const o=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?o+t.borderSize:o-t.paddingSize})(wp,e);wp.value="x";const c=wp.scrollHeight-n;let d=c*o;"border-box"===a&&(d=d+n+i),l=Math.max(d,l);let u=c*r;return"border-box"===a&&(u=u+n+i),l=Math.min(u,l),[l,c]})(t,$&&m.value||e.value||e.placeholder||"x",s||l,s||a);r.current!==c&&(r.current=c,e.style.setProperty("height",`${c}px`,"important"),d&&d(c,{rowHeight:u}))};return"undefined"!=typeof document&&((0,g.useLayoutEffect)(f),b(f)),(0,zt.jsx)(fp,{ref:o,as:"textarea",css:u,onChange:e=>{f(),c&&c(e)},...m})}));Sp.toString=()=>".nextui-textarea";const Cp=Et(Sp,{minRows:3,maxRows:6,cacheMeasurements:!0,initialValue:""});class kp{copy(){return new kp(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}}class Pp{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 kp(this.x,this.y)}get topRight(){return new kp(this.maxX,this.y)}get bottomLeft(){return new kp(this.x,this.maxY)}get bottomRight(){return new kp(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}union(e){let t=Math.min(this.x,e.x),o=Math.min(this.y,e.y),r=Math.max(this.maxX,e.maxX)-t,n=Math.max(this.maxY,e.maxY)-o;return new Pp(t,o,r,n)}intersection(e){if(!this.intersects(e))return new Pp(0,0,0,0);let t=Math.max(this.x,e.x),o=Math.max(this.y,e.y);return new Pp(t,o,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-o)}copy(){return new Pp(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,o=0,r=0){this.x=e,this.y=t,this.width=o,this.height=r}}let Tp="undefined"!=typeof window?window.performance:null,Ep=Tp&&(Tp.now||Tp.webkitNow||Tp.msNow||Tp.mozNow);function Ip(e){return Fo()||jo()?e.altKey:e.ctrlKey}function Mp(e){return Fo()?e.metaKey:e.ctrlKey}function zp(e){let{selectionManager:t,keyboardDelegate:o,ref:r,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=r}=e,{direction:m}=rr(),$=(0,g.useRef)({top:0,left:0});!function(e,t,o,r){let n=(0,g.useRef)(o);n.current=o;let i=null==o;(0,g.useEffect)((()=>{if(i)return;let o=e.current,s=e=>n.current.call(this,e);return o.addEventListener(t,s,r),()=>{o.removeEventListener(t,s,r)}}),[e,t,r,i])}(h,"scroll",p?null:()=>{$.current={top:h.current.scrollTop,left:h.current.scrollLeft}});const f=(0,g.useRef)(n);(0,g.useEffect)((()=>{if(f.current){let e=null;"first"===n&&(e=o.getFirstKey()),"last"===n&&(e=o.getLastKey());let i=t.selectedKeys;i.size&&(e=i.values().next().value),t.setFocused(!0),t.setFocusedKey(e),null!=e||d||Qi(r.current)}f.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&&Do(h.current,e)}}),[p,h,t.focusedKey]);let b,y={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!r.current.contains(e.target))return;const n=(o,r)=>{null!=o&&(t.setFocusedKey(o,r),e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(o):l&&!Ip(e)&&t.replaceSelection(o))};switch(e.key){case"ArrowDown":if(o.getKeyBelow){var c,d;e.preventDefault();let r=null!=t.focusedKey?o.getKeyBelow(t.focusedKey):null===(c=o.getFirstKey)||void 0===c?void 0:c.call(o);null==r&&i&&(r=null===(d=o.getFirstKey)||void 0===d?void 0:d.call(o,t.focusedKey)),n(r)}break;case"ArrowUp":if(o.getKeyAbove){var p,g;e.preventDefault();let r=null!=t.focusedKey?o.getKeyAbove(t.focusedKey):null===(p=o.getLastKey)||void 0===p?void 0:p.call(o);null==r&&i&&(r=null===(g=o.getLastKey)||void 0===g?void 0:g.call(o,t.focusedKey)),n(r)}break;case"ArrowLeft":o.getKeyLeftOf&&(e.preventDefault(),n(o.getKeyLeftOf(t.focusedKey),"rtl"===m?"first":"last"));break;case"ArrowRight":o.getKeyRightOf&&(e.preventDefault(),n(o.getKeyRightOf(t.focusedKey),"rtl"===m?"last":"first"));break;case"Home":if(o.getFirstKey){e.preventDefault();let r=o.getFirstKey(t.focusedKey,Mp(e));t.setFocusedKey(r),Mp(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):l&&t.replaceSelection(r)}break;case"End":if(o.getLastKey){e.preventDefault();let r=o.getLastKey(t.focusedKey,Mp(e));t.setFocusedKey(r),Mp(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):l&&t.replaceSelection(r)}break;case"PageDown":o.getKeyPageBelow&&(e.preventDefault(),n(o.getKeyPageBelow(t.focusedKey)));break;case"PageUp":o.getKeyPageAbove&&(e.preventDefault(),n(o.getKeyPageAbove(t.focusedKey)));break;case"a":Mp(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)r.current.focus();else{let e,t,o=is(r.current,{tabbable:!0});do{t=o.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&ko(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 r,n;s&&e.currentTarget.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?i(null!==(r=t.lastSelectedKey)&&void 0!==r?r:o.getLastKey()):i(null!==(n=t.firstSelectedKey)&&void 0!==n?n:o.getFirstKey())}else if(!p){h.current.scrollTop=$.current.top,h.current.scrollLeft=$.current.left;let e=h.current.querySelector(`[data-key="${t.focusedKey}"]`);e&&(ko(e),Do(h.current,e))}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){h.current===e.target&&e.preventDefault()}},{typeSelectProps:v}=function(e){let{keyboardDelegate:t,selectionManager:o,onTypeSelect:r}=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,o.focusedKey);null==s&&(s=t.getKeyForSearch(n.search)),null!=s&&(o.setFocusedKey(s),r&&r(s)),clearTimeout(n.timeout),n.timeout=setTimeout((()=>{n.search=""}),1e3)}:null}}}({keyboardDelegate:o,selectionManager:t});return c||(y=vo(v,y)),d||(b=null==t.focusedKey?0:-1),{collectionProps:{...y,tabIndex:b}}}function Lp(e){let{selectionManager:t,key:o,ref:r,shouldSelectOnPressUp:n,isVirtualized:i,shouldUseVirtualFocus:s,focus:a,isDisabled:l,onAction:c,allowsDifferentPressOrigin:d}=e,u=e=>{if("keyboard"===e.pointerType&&Ip(e))t.toggleSelection(o);else{if("none"===t.selectionMode)return;"single"===t.selectionMode?t.isSelected(o)&&!t.disallowEmptySelection?t.toggleSelection(o):t.replaceSelection(o):e&&e.shiftKey?t.extendSelection(o):"toggle"===t.selectionBehavior||e&&(Mp(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(o):t.replaceSelection(o)}};(0,g.useEffect)((()=>{o===t.focusedKey&&t.isFocused&&!s&&document.activeElement!==r.current&&(a?a():Qi(r.current))}),[r,o,t.focusedKey,t.childFocusStrategy,t.isFocused,s]),l=l||t.isDisabled(o);let p={};s||l?l&&(p.onMouseDown=e=>{e.preventDefault()}):p={tabIndex:o===t.focusedKey?0:-1,onFocus(e){e.target===r.current&&t.setFocusedKey(o)}};let h=!l&&t.canSelectItem(o),m=c&&!l,$=m&&("replace"===t.selectionBehavior?!h:t.isEmpty),f=m&&h&&"replace"===t.selectionBehavior,b=$||f,y=(0,g.useRef)(null),v=b&&h,x=(0,g.useRef)(!1),w=(0,g.useRef)(!1),S={};n?(S.onPressStart=e=>{y.current=e.pointerType,x.current=v,"keyboard"!==e.pointerType||b&&!Bp()||u(e)},d?(S.onPressUp=e=>{"keyboard"!==e.pointerType&&u(e)},S.onPress=$?()=>c():null):S.onPress=e=>{if($||f&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!Np())return;c()}else"keyboard"!==e.pointerType&&u(e)}):(S.onPressStart=e=>{y.current=e.pointerType,x.current=v,w.current=$,("mouse"===e.pointerType&&!$||"keyboard"===e.pointerType&&(!c||Bp()))&&u(e)},S.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&b&&Np()||"mouse"===e.pointerType&&w.current)&&(b?c():u(e))}),i||(p["data-key"]=o),S.preventFocusOnPress=s;let{pressProps:C,isPressed:k}=hr(S),P=f?e=>{"mouse"===y.current&&(e.stopPropagation(),e.preventDefault(),c())}:void 0,{longPressProps:T}=qr({isDisabled:!v,onLongPress(e){"touch"===e.pointerType&&(u(e),t.setSelectionBehavior("toggle"))}});return{itemProps:vo(p,h||$?C:{},v?T:{},{onDoubleClick:P,onDragStartCapture:e=>{"touch"===y.current&&x.current&&e.preventDefault()}}),isPressed:k,isSelected:t.isSelected(o),isDisabled:l,allowsSelection:h,hasAction:b}}function Np(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function Bp(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}Ep&&Ep.bind(Tp);class Rp{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,o=this.getItem(e);if(!o)return null;let r=Math.max(0,o.offsetTop+o.offsetHeight-t.offsetHeight);for(;o&&o.offsetTop>r;)e=this.getKeyAbove(e),o=this.getItem(e);return e}getKeyPageBelow(e){let t=this.ref.current,o=this.getItem(e);if(!o)return null;let r=Math.min(t.scrollHeight,o.offsetTop-o.offsetHeight+t.offsetHeight);for(;o&&o.offsetTop<r;)e=this.getKeyBelow(e),o=this.getItem(e);return e}getKeyForSearch(e,t){if(!this.collator)return null;let o=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=o.getItem(r),n=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(n,e))return r;r=this.getKeyBelow(r)}return null}constructor(e,t,o,r){this.collection=e,this.disabledKeys=t,this.ref=o,this.collator=r}}let Hp=null;function Ap(e,t="assertive",o=7e3){Hp||(Hp=new Kp),Hp.announce(e,t,o)}class Kp{createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",o=7e3){if(!this.node)return;let r=document.createElement("div");r.textContent=e,"assertive"===t?this.assertiveLog.appendChild(r):this.politeLog.appendChild(r),""!==e&&setTimeout((()=>{r.remove()}),o)}clear(e){this.node&&(e&&"assertive"!==e||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{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"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function Fp(e){return e&&e.__esModule?e.default:e}class jp{isCell(e){return"cell"===e.type}isRow(e){return"row"===e.type||"item"===e.type}findPreviousKey(e,t){let o=null!=e?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;null!=o;){let e=this.collection.getItem(o);if(!t||t(e))return o;o=this.collection.getKeyBefore(o)}}findNextKey(e,t){let o=null!=e?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;null!=o;){let e=this.collection.getItem(o);if(!t||t(e))return o;o=this.collection.getKeyAfter(o)}}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 o=[...this.collection.getItem(t.parentKey).childNodes],r="rtl"===this.direction?o[t.index-1]:o[t.index+1];return r?r.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 o=[...this.collection.getItem(t.parentKey).childNodes],r="rtl"===this.direction?o[t.index+1]:o[t.index-1];return r?r.key:"row"===this.focusMode?t.parentKey:"rtl"===this.direction?this.getLastKey(e):this.getFirstKey(e)}}}getFirstKey(e,t){let o;if(null!=e){if(o=this.collection.getItem(e),!o)return;if(this.isCell(o)&&!t)return[...this.collection.getItem(o.parentKey).childNodes][0].key}return(null!=(e=this.findNextKey())&&o&&this.isCell(o)&&t||"cell"===this.focusMode)&&(e=[...this.collection.getItem(e).childNodes][0].key),e}getLastKey(e,t){let o;if(null!=e){if(o=this.collection.getItem(e),!o)return;if(this.isCell(o)&&!t){let e=[...this.collection.getItem(o.parentKey).childNodes];return e[e.length-1].key}}if(null!=(e=this.findPreviousKey())&&o&&this.isCell(o)&&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 o=this.getItem(e);return o?new Pp(o.offsetLeft,o.offsetTop,o.offsetWidth,o.offsetHeight):void 0}getPageHeight(){var e,t,o;return this.layout?null===(e=this.layout.virtualizer)||void 0===e?void 0:e.visibleRect.height:null===(t=this.ref)||void 0===t||null===(o=t.current)||void 0===o?void 0:o.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 o=Math.max(0,t.maxY-this.getPageHeight());for(;t&&t.y>o;)e=this.getKeyAbove(e),t=this.getItemRect(e);return e}getKeyPageBelow(e){let t=this.getItemRect(e);if(!t)return null;let o=this.getPageHeight(),r=Math.min(this.getContentHeight(),t.y+o);for(;t&&t.maxY<r;){let o=this.getKeyBelow(e);t=this.getItemRect(o),null!=o&&(e=o)}return e}getKeyForSearch(e,t){if(!this.collator)return null;let o=this.collection,r=null!=t?t:this.getFirstKey(),n=o.getItem(r);"cell"===n.type&&(r=n.parentKey);let i=!1;for(;null!=r;){let t=o.getItem(r);if(t.textValue){let o=t.textValue.slice(0,e.length);if(0===this.collator.compare(o,e))return this.isRow(t)&&"cell"===this.focusMode?[...t.childNodes][0].key:t.key}r=this.findNextKey(r),null!=r||i||(r=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"}}const Wp=new WeakMap;var Dp;function Op(e,t){let o=new Set;if("all"===e||"all"===t)return o;for(let r of e.keys())t.has(r)||o.add(r);return o}function Vp(e){let t=ir(Fp(Dp)),o=function(){Ar();let[e,t]=(0,g.useState)(Pr);return(0,g.useEffect)((()=>{let e=()=>{t(Pr)};return Tr.add(e),()=>{Tr.delete(e)}}),[]),e}(),r=("pointer"===o||"virtual"===o||null==o)&&"undefined"!=typeof window&&"ontouchstart"in window;return Ao((0,g.useMemo)((()=>{let o,n=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior;return r&&(o=t.format("longPressToSelect")),"replace"===i&&"none"!==n&&e.hasItemActions?o:void 0}),[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]))}function Up(e,t,o){let{isVirtualized:r,keyboardDelegate:n,focusMode:i,scrollRef:s,getRowText:a,onRowAction:l,onCellAction:c}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let d=ar({usage:"search",sensitivity:"base"}),{direction:u}=rr(),p=(0,g.useMemo)((()=>n||new jp({collection:t.collection,disabledKeys:t.disabledKeys,ref:o,direction:u,collator:d,focusMode:i})),[n,t.collection,t.disabledKeys,o,u,d,i]),{collectionProps:h}=zp({ref:o,selectionManager:t.selectionManager,keyboardDelegate:p,isVirtualized:r,scrollRef:s}),m=$o(e.id);Wp.set(t,{keyboardDelegate:p,actions:{onRowAction:l,onCellAction:c}});let $=Vp({selectionManager:t.selectionManager,hasItemActions:!(!l&&!c)}),f=vo(Co(e,{labelable:!0}),{role:"grid",id:m,"aria-multiselectable":"multiple"===t.selectionManager.selectionMode?"true":void 0},t.isKeyboardNavigationDisabled?{}:h,$);return r&&(f["aria-rowcount"]=t.collection.size,f["aria-colcount"]=t.collection.columnCount),function(e,t){let{getRowText:o=(e=>{var o;return null===(o=t.collection.getItem(e))||void 0===o?void 0:o.textValue})}=e,r=ir(Fp(Dp)),n=t.selectionManager.rawSelection,i=(0,g.useRef)(n);No((()=>{var e;if(!t.selectionManager.isFocused)return void(i.current=n);let s=Op(n,i.current),a=Op(i.current,n),l="replace"===t.selectionManager.selectionBehavior,c=[];if(1===t.selectionManager.selectedKeys.size&&l){if(t.collection.getItem(t.selectionManager.selectedKeys.keys().next().value)){let e=o(t.selectionManager.selectedKeys.keys().next().value);e&&c.push(r.format("selectedItem",{item:e}))}}else if(1===s.size&&0===a.size){let e=o(s.keys().next().value);e&&c.push(r.format("selectedItem",{item:e}))}else if(1===a.size&&0===s.size&&t.collection.getItem(a.keys().next().value)){let e=o(a.keys().next().value);e&&c.push(r.format("deselectedItem",{item:e}))}"multiple"===t.selectionManager.selectionMode&&(0===c.length||"all"===n||n.size>1||"all"===i.current||(null===(e=i.current)||void 0===e?void 0:e.size)>1)&&c.push("all"===n?r.format("selectedAll"):r.format("selectedCount",{count:n.size})),c.length>0&&Ap(c.join(" ")),i.current=n}),[n])}({getRowText:a},t),{gridProps:f}}function Gp(e,t,o){let{node:r,isVirtualized:n,focusMode:i="child",shouldSelectOnPressUp:s,onAction:a}=e,{direction:l}=rr(),{keyboardDelegate:c,actions:{onCellAction:d}}=Wp.get(t),u=()=>{let e=is(o.current);if("child"===i){if(o.current.contains(document.activeElement)&&o.current!==document.activeElement)return;let r="last"===t.selectionManager.childFocusStrategy?_p(e):e.firstChild();if(r)return void Qi(r)}o.current.contains(document.activeElement)||Qi(o.current)},{itemProps:p,isPressed:g}=Lp({selectionManager:t.selectionManager,key:r.key,ref:o,isVirtualized:n,focus:u,shouldSelectOnPressUp:s,onAction:d?()=>d(r.key):a,isDisabled:0===t.collection.size}),h=vo(p,{role:"gridcell",onKeyDownCapture:e=>{if(!e.currentTarget.contains(e.target)||t.isKeyboardNavigationDisabled)return;let n=is(o.current);switch(n.currentNode=document.activeElement,e.key){case"ArrowLeft":{let t="rtl"===l?n.nextNode():n.previousNode();if("child"===i&&t===o.current&&(t=null),t)e.preventDefault(),e.stopPropagation(),Qi(t);else{if(c.getKeyLeftOf(r.key)!==r.key)break;e.preventDefault(),e.stopPropagation(),"cell"===i&&"rtl"===l?Qi(o.current):(n.currentNode=o.current,t="rtl"===l?n.firstChild():_p(n),t&&Qi(t))}break}case"ArrowRight":{let t="rtl"===l?n.previousNode():n.nextNode();if("child"===i&&t===o.current&&(t=null),t)e.preventDefault(),e.stopPropagation(),Qi(t);else{if(c.getKeyRightOf(r.key)!==r.key)break;e.preventDefault(),e.stopPropagation(),"cell"===i&&"ltr"===l?Qi(o.current):(n.currentNode=o.current,t="rtl"===l?_p(n):n.firstChild(),t&&Qi(t))}break}case"ArrowUp":case"ArrowDown":!e.altKey&&o.current.contains(e.target)&&(e.stopPropagation(),e.preventDefault(),o.current.parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}},onFocus:e=>{e.target===o.current?requestAnimationFrame((()=>{"child"===i&&document.activeElement===o.current&&u()})):Kr()||t.selectionManager.setFocusedKey(r.key)}});var m;return n&&(h["aria-colindex"]=(null!==(m=r.colIndex)&&void 0!==m?m:r.index)+1),{gridCellProps:h,isPressed:g}}function _p(e){let t,o;do{o=e.lastChild(),o&&(t=o)}while(o);return t}function qp(e){return e&&e.__esModule?e.default:e}Dp={"ar-AE":{deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`},"bg-BG":{deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`},"cs-CZ":{deselectedItem:e=>`Položka ${e.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:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`},"da-DK":{deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`},"de-DE":{deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`},"el-GR":{deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`},"en-US":{deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."},"es-ES":{deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`},"et-EE":{deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`},"fi-FI":{deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`},"fr-FR":{deselectedItem:e=>`${e.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:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`},"he-IL":{deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`},"hr-HR":{deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`},"hu-HU":{deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`},"it-IT":{deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`},"ja-JP":{deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`},"ko-KR":{deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`},"lt-LT":{deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`},"lv-LV":{deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`},"nb-NO":{deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`},"nl-NL":{deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`},"pl-PL":{deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`},"pt-BR":{deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`},"pt-PT":{deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`},"ro-RO":{deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`},"ru-RU":{deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`},"sk-SK":{deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`},"sl-SI":{deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`},"sr-SP":{deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`},"sv-SE":{deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`},"tr-TR":{deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`},"uk-UA":{deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`},"zh-CN":{deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`},"zh-TW":{deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`}};const Yp=new WeakMap;function Xp(e){return"string"==typeof e?e.replace(/\s*/g,""):""+e}function Zp(e,t){let o=Yp.get(e);if(!o)throw new Error("Unknown grid");return`${o}-${Xp(t)}`}function Jp(e,t,o){let r=Yp.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${Xp(t)}-${Xp(o)}`}function Qp(e,t){return[...e.collection.rowHeaderColumnKeys].map((o=>Jp(e,t,o))).join(" ")}var eg;eg={"ar-AE":{ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"},"bg-BG":{ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"},"cs-CZ":{ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"},"da-DK":{ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"},"de-DE":{ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"},"el-GR":{ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"},"en-US":{select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`},"es-ES":{ascending:"de subida",ascendingSort:e=>`ordenado por columna ${e.columnName} en orden de subida`,columnSize:e=>`${e.value} píxeles`,descending:"de bajada",descendingSort:e=>`ordenado por columna ${e.columnName} en orden de bajada`,select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"},"et-EE":{ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"},"fi-FI":{ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"},"fr-FR":{ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"},"he-IL":{ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"},"hr-HR":{ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"},"hu-HU":{ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"},"it-IT":{ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"},"ja-JP":{ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"},"ko-KR":{ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"},"lt-LT":{ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"},"lv-LV":{ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"},"nb-NO":{ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"},"nl-NL":{ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"},"pl-PL":{ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"},"pt-BR":{ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"},"pt-PT":{ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"},"ro-RO":{ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"},"ru-RU":{ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"},"sk-SK":{ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"},"sl-SI":{ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"},"sr-SP":{ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"},"sv-SE":{ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"},"tr-TR":{ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"},"uk-UA":{ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"},"zh-CN":{ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,select:"选择",selectAll:"全选",sortable:"可排序的列"},"zh-TW":{ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,select:"選取",selectAll:"全選",sortable:"可排序的欄"}};class tg extends jp{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 o=this.getFirstKey();if(null==o)return;return[...this.collection.getItem(o).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 o=super.getKeyAbove(e);return null!=o&&"headerrow"!==this.collection.getItem(o).type?o: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 o=this.collection.headerRows[e.level];for(let e of o.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 o=[...this.collection.headerRows[e.level].childNodes];for(let e=o.length-1;e>=0;e--){let t=o[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 o=this.collection,r=null!=t?t:this.getFirstKey();if(null==r)return null;let n=o.getItem(r);"cell"===n.type&&(r=n.parentKey);let i=!1;for(;null!=r;){let s=o.getItem(r);for(let r of s.childNodes){let i=o.columns[r.index];if(o.rowHeaderColumnKeys.has(i.key)&&r.textValue){let i=r.textValue.slice(0,e.length);if(0===this.collator.compare(i,e))return"cell"===(null!=t?o.getItem(t):n).type?r.key:s.key}}r=this.getKeyBelow(r),null!=r||i||(r=this.getFirstKey(),i=!0)}return null}}function og(e,t,o){var r,n;let{node:i}=e,s=i.props.allowsSorting,{gridCellProps:a}=Gp({...e,focusMode:i.props.isSelectionCell||e.hasMenu||i.props.allowsSorting?"child":"cell"},t,o),l=i.props.isSelectionCell&&"single"===t.selectionManager.selectionMode,{pressProps:c}=hr({isDisabled:!s||l,onPress(){t.sort(i.key)},ref:o}),{focusableProps:d}=cs({},o);e.hasMenu&&(c={});let u=null,p=(null===(r=t.sortDescriptor)||void 0===r?void 0:r.column)===i.key,g=null===(n=t.sortDescriptor)||void 0===n?void 0:n.direction;i.props.allowsSorting&&!Wo()&&(u=p?g:"none");let h,m=ir(qp(eg));return s&&(h=`${m.format("sortable")}`,p&&g&&Wo()&&(h=`${h}, ${m.format(g)}`)),{columnHeaderProps:{...vo(a,c,d,Ao(h),0===t.collection.size&&{tabIndex:null}),role:"columnheader",id:Zp(t,i.key),"aria-colspan":i.colspan&&i.colspan>1?i.colspan:null,"aria-sort":u}}}function rg(e,t,o){let{gridCellProps:r,isPressed:n}=Gp(e,t,o),i=e.node.column.key;return t.collection.rowHeaderColumnKeys.has(i)&&(r.role="rowheader",r.id=Jp(t,e.node.parentKey,i)),{gridCellProps:r,isPressed:n}}class ng{build(e,t){return this.context=t,ig((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:o}=e;if("function"==typeof t){if(!o)throw new Error("props.children was a function but props.items is missing");for(let o of e.items)yield*this.getFullNode({value:o},{renderer:t})}else{let e=[];h().Children.forEach(t,(t=>{e.push(t)}));let o=0;for(let t of e){let e=this.getFullNode({element:t,index:o},{});for(let t of e)o++,yield t}}}getKey(e,t,o,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${r}${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 r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,o,r){let n=e.element;if(!n&&e.value&&t&&t.renderer){let o=this.cache.get(e.value);if(o&&(!o.shouldInvalidate||!o.shouldInvalidate(this.context)))return o.index=e.index,o.parentKey=r?r.key:null,void(yield o);n=t.renderer(e.value)}if(h().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,o));let d=[...this.getFullNode({...i,key:c,index:a,wrapper:sg(e.wrapper,i.wrapper)},this.getChildState(t,i),o?`${o}${n.key}`:n.key,r)];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 <${ag(t.type)}> in <${ag(r.type)}>. Only <${ag(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:r?r.key:null,value:e.value,level:r?r.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:ig((function*(){if(!e.hasChildNodes)return;let o=0;for(let r of e.childNodes()){null!=r.key&&(r.key=`${s.key}${r.key}`),r.index=o;let e=i.getFullNode(r,i.getChildState(t,r),s.key,s);for(let t of e)o++,yield t}}))};yield s}constructor(){Ji(this,"cache",new WeakMap)}}function ig(e){let t=[],o=null;return{*[Symbol.iterator](){for(let e of t)yield e;o||(o=e());for(let e of o)t.push(e),yield e}}}function sg(e,t){return e&&t?o=>e(t(o)):e||t||void 0}function ag(e){return e[0].toUpperCase()+e.slice(1)}function lg(e,t,o,r=[]){let n=(0,g.useMemo)((()=>new ng),[]),i=(0,g.useRef)(null);return(0,g.useMemo)((()=>{let r=n.build(e,o);return i.current=t(r,i.current),i.current}),[n,e.children,e.items,o,...r])}const cg=new WeakMap;function dg(e){let t=cg.get(e);if(null!=t)return t;t=0;for(let o of e)"section"===o.type?t+=dg(o.childNodes):t++;return cg.set(e,t),t}class ug extends Set{constructor(e,t,o){super(e),e instanceof ug?(this.anchorKey=t||e.anchorKey,this.currentKey=o||e.currentKey):(this.anchorKey=t,this.currentKey=o)}}function pg(e){let{selectionMode:t="none",disallowEmptySelection:o,allowDuplicateSelectionEvents:r,selectionBehavior:n="toggle",disabledBehavior:i="all"}=e,s=(0,g.useRef)(!1),[,a]=(0,g.useState)(!1),l=(0,g.useRef)(null),c=(0,g.useRef)(null),[,d]=(0,g.useState)(null),u=(0,g.useMemo)((()=>gg(e.selectedKeys)),[e.selectedKeys]),p=(0,g.useMemo)((()=>gg(e.defaultSelectedKeys,new ug)),[e.defaultSelectedKeys]),[h,m]=Da(u,p,e.onSelectionChange),$=(0,g.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[f,b]=(0,g.useState)(n);"replace"===n&&"toggle"===f&&"object"==typeof h&&0===h.size&&b("replace");let y=(0,g.useRef)(n);return(0,g.useEffect)((()=>{n!==y.current&&(b(n),y.current=n)}),[n]),{selectionMode:t,disallowEmptySelection:o,selectionBehavior:f,setSelectionBehavior:b,get isFocused(){return s.current},setFocused(e){s.current=e,a(e)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(e,t="first"){l.current=e,c.current=t,d(e)},selectedKeys:h,setSelectedKeys(e){!r&&function(e,t){if(e.size!==t.size)return!1;for(let o of e)if(!t.has(o))return!1;return!0}(e,h)||m(e)},disabledKeys:$,disabledBehavior:i}}function gg(e,t){return e?"all"===e?"all":new ug(e):t}class hg{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){(null==e||this.collection.getItem(e))&&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.canSelectItem(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 o=this.collection.getItem(t);(!e||(null==o?void 0:o.index)<e.index)&&(e=o)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let o=this.collection.getItem(t);(!e||(null==o?void 0:o.index)>e.index)&&(e=o)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}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 ug([e],e,e);else{let o=this.state.selectedKeys,r=o.anchorKey||e;t=new ug(o,r,e);for(let n of this.getKeyRange(r,o.currentKey||e))t.delete(n);for(let o of this.getKeyRange(e,r))this.canSelectItem(o)&&t.add(o)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let o=this.collection.getItem(e),r=this.collection.getItem(t);return o&&r?o.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let o=[],r=e;for(;r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&o.push(r),r===t)return o;r=this.collection.getKeyAfter(r)}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 ug("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode)return;if(null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new ug([e],e,e):new ug;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new ug;for(let o of e)if(o=this.getKey(o),null!=o&&(t.add(o),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=o=>{for(;o;){if(this.canSelectItem(o)){let r=this.collection.getItem(o);"item"===r.type&&e.push(o),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&t([...r.childNodes][0].key)}o=this.collection.getKeyAfter(o)}};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 ug)}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 o of e)if(!t.has(o))return!1;for(let o of t)if(!e.has(o))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)}isDisabled(e){return this.state.disabledKeys.has(e)&&"all"===this.state.disabledBehavior}constructor(e,t,o){var r;this.collection=e,this.state=t,this.allowsCellSelection=null!==(r=null==o?void 0:o.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null}}let mg=Symbol.iterator;class $g{*[mg](){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){Ji(this,"keyMap",new Map),this.keyMap=new Map,this.columnCount=null==e?void 0:e.columnCount,this.rows=[];let t,o=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,o(e),i=e;if(i&&(i.nextKey=null),n)for(let e of n.childNodes)s.has(e.key)||r(e)},r=e=>{this.keyMap.delete(e.key);for(let t of e.childNodes)this.keyMap.get(t.key)===t&&r(t)};e.items.forEach(((e,r)=>{let n={level:0,key:"row-"+r,type:"row",value:void 0,hasChildNodes:!0,childNodes:[...e.childNodes],rendered:void 0,textValue:void 0,...e,index:r};t?(t.nextKey=n.key,n.prevKey=t.key):n.prevKey=null,this.rows.push(n),o(n),t=n})),t&&(t.nextKey=null)}}const fg="row-header-column-"+Math.random().toString(36).slice(2);var bg=Symbol.iterator;class yg extends $g{*[bg](){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,o){let r,n=new Set,i=[];if(null==o?void 0:o.showSelectionCheckboxes){let e={type:"column",key:fg,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":r=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 o=[],r=new Map;for(let n of t){let t=n.parentKey,i=[n];for(;t;){let o=e.get(t);if(r.has(o)){o.colspan++;let{column:e,index:t}=r.get(o);if(t>i.length)break;for(let o=t;o<i.length;o++)e.splice(o,0,null);for(let t=i.length;t<e.length;t++)e[t]&&r.has(e[t])&&(r.get(e[t]).index=t)}else o.colspan=1,i.push(o),r.set(o,{column:i,index:i.length-1});t=o.parentKey}o.push(i),n.index=o.length-1}let n=Math.max(...o.map((e=>e.length))),i=Array(n).fill(0).map((()=>[])),s=0;for(let e of o){let t=n-1;for(let o of e){if(o){let e=i[t],r=e.reduce(((e,t)=>e+t.colspan),0);if(r<s){let n={type:"placeholder",key:"placeholder-"+o.key,colspan:s-r,index:r,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=o.key,o.prevKey=e[e.length-1].key),o.level=t,o.colIndex=s,e.push(o)}t--}s++}let a=0;for(let e of i){let o=e.reduce(((e,t)=>e+t.colspan),0);if(o<t.length){let r={type:"placeholder",key:"placeholder-"+e[e.length-1].key,colspan:t.length-o,index:o,value:null,rendered:null,level:a,hasChildNodes:!1,childNodes:[],textValue:null,prevKey:e[e.length-1].key};e.push(r)}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=r,this.headerRows=c,0===this.rowHeaderColumnKeys.size&&this.rowHeaderColumnKeys.add(this.columns[(null==o?void 0:o.showSelectionCheckboxes)?1:0].key)}}const vg={ascending:"descending",descending:"ascending"};function xg(e){return null}xg.getCollectionNode=function*(e){let{children:t,columns:o}=e;if("function"==typeof t){if(!o)throw new Error("props.children was a function but props.columns is missing");for(let e of o)yield{type:"column",value:e,renderer:t}}else{let e=[];h().Children.forEach(t,(t=>{e.push({type:"column",element:t})})),yield*e}};let wg=xg;function Sg(e){return null}Sg.getCollectionNode=function*(e){let{children:t,items:o}=e;yield{type:"body",hasChildNodes:!0,props:e,*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=[];h().Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let Cg=Sg;function kg(e){return null}kg.getCollectionNode=function*(e,t){let{title:o,children:r,childColumns:n}=e,i=o||r,s=e.textValue||("string"==typeof i?i:"")||e["aria-label"],a=yield{type:"column",hasChildNodes:!!n||o&&h().Children.count(r)>0,rendered:i,textValue:s,props:e,*childNodes(){if(n)for(let e of n)yield{type:"column",value:e};else if(o){let e=[];h().Children.forEach(r,(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 Pg=kg;function Tg(e){return null}Tg.getCollectionNode=function*(e,t){let{children:o,textValue:r}=e;yield{type:"item",props:e,textValue:r,"aria-label":e["aria-label"],hasChildNodes:!0,*childNodes(){if(t.showSelectionCheckboxes&&"none"!==t.selectionMode&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),"function"==typeof o)for(let e of t.columns)yield{type:"cell",element:o(e.key),key:e.key};else{let e=[];if(h().Children.forEach(o,(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,o)=>e.key!==t.columns[o].key))||e.showSelectionCheckboxes!==t.showSelectionCheckboxes||e.selectionMode!==t.selectionMode}};let Eg=Tg;function Ig(e){return null}Ig.getCollectionNode=function*(e){let{children:t}=e,o=e.textValue||("string"==typeof t?t:"")||e["aria-label"]||"";yield{type:"cell",props:e,rendered:t,textValue:o,"aria-label":e["aria-label"],hasChildNodes:!1}};let Mg=Ig;const zg=De("tr",{ov:"visible"}),Lg=De("th",{height:"$14",cursor:"default",bg:"$accents0",color:"$accents7",fontSize:"$xs",textAlign:"left",position:"relative","@motion":{transition:"none"},"&:first-child":{pl:"$8",btlr:"$md",bblr:"$md"},"&:last-child":{pr:"$8",btrr:"$md",bbrr:"$md"},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"}}]},zn),Ng=De(Lg,zn),Bg=De("tfoot",{height:"$14",variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}}},defaultVariants:{align:"right"}}),Rg=De("td",{}),Hg=De(Rg,{position:"relative",userSelect:"none",cursor:"default",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"}},isStatic:{true:{cursor:"text",userSelect:"text"}}}},zn),Ag=De("tr",{ov:"visible",color:"$text",variants:{isDisabled:{true:{color:"$accents3",pointerEvents:"none",cursor:"not-allowed"}},isSelected:{true:{color:"$$tableRowTextColor",[`& ${Hg}:before`]:{opacity:1,bg:"$$tableRowColor"}}}}},zn),Kg=De("thead",{variants:{isFixed:{true:{display:"table",width:"100%",tableLayout:"fixed"}},isInfinityScroll:{true:{display:"block",height:"100%",overflow:"auto",pb:"$10",[`& ${Ag}`]:{display:"table",width:"100%",tableLayout:"fixed"}}}},defaultVariants:{isInfinityScroll:!1}}),Fg=De("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"}}}}),jg=De("table",{borderCollapse:"separate",borderSpacing:0,width:"100%",p:"$md $sm","@motion":{[`& ${Hg}:before`]:{transition:"none"}},variants:{animated:{false:{[`& ${Hg}: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:{[`& ${Ag}[aria-selected=false]:nth-child(even)`]:{[`& ${Hg}`]:{bg:"$accents0"}},[`& ${Ag}:nth-child(even)`]:{[`& ${Hg}:first-child`]:{br:"$lg 0 0 $lg"},[`& ${Hg}:last-child`]:{br:"0 $lg $lg 0"}}}},sticked:{true:{p:0,[`& ${Lg}:first-child`]:{br:"$lg 0 0 0"},[`& ${Lg}: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:{[`& ${Lg}`]:{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:{[`& ${Ag}:not(:last-child)`]:{position:"relative",[`& ${Hg}:after`]:{content:"",position:"absolute",bottom:0,left:0,right:0,height:"$$tableLineWeight",bg:"$border"},[`& ${Hg}:first-child`]:{"&:after":{left:"$space$md"}},[`& ${Hg}:last-child`]:{"&:after":{right:"$space$md"}}},[`& ${Ag}[aria-selected=true]:not(last-child)`]:{[`& ${Hg}:after`]:{bg:"$$tableRowTextColor",opacity:.3}}}},fixed:{true:{tableLayout:"fixed"}},hoverable:{true:{[`& ${Hg}:first-child`]:{br:"$md 0 0 $md"},[`& ${Hg}:last-child`]:{br:"0 $md $md 0"},[`& ${Ag}`]:{cursor:"pointer"},[`& ${Ag}[aria-selected=false]`]:{"&:hover":{[`& ${Hg}:before`]:{opacity:1,bg:"$accents0"}}},[`& ${Ag}[aria-selected=true]`]:{"&:hover":{[`& ${Hg}:before`]:{opacity:.8}}}}},isMultiple:{true:{}},hasPagination:{true:{}},shadow:{true:{}},compact:{true:{[`& ${Hg}`]:{py:"$1"},[`& ${Lg}`]:{height:"$12","&:first-child":{br:"$sm 0 0 $sm"},"&:last-child":{br:"0 $sm $sm 0"}}}}},compoundVariants:[{isMultiple:!0,hoverable:!0,css:{[`& ${Ag}:not(:first-child):not(:last-child)`]:{[`& ${Hg}:first-child`]:{br:0},[`& ${Hg}:last-child`]:{br:0}},[`& ${Ag}:first-child`]:{[`& ${Hg}:first-child`]:{br:"$md 0 0 0"},[`& ${Hg}:last-child`]:{br:"0 $md 0 0"}},[`& ${Ag}:last-child`]:{[`& ${Hg}:first-child`]:{br:"0 0 0 $md"},[`& ${Hg}:last-child`]:{br:"0 0 $md 0"}}}},{isMultiple:!0,hoverable:!0,sticked:!0,css:{[`& ${Ag}:first-child`]:{[`& ${Hg}:first-child`]:{br:"0"},[`& ${Hg}: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:{[`& ${Ag}:not(:last-child)`]:{[`& ${Hg}`]:{br:"0"}},[`& ${Ag}:last-child`]:{[`& ${Hg}:first-child`]:{br:"0 0 0 $md"},[`& ${Hg}:last-child`]:{br:"0 0 $md 0"}}}},{sticked:!0,isMultiple:!1,hoverable:!0,hasPagination:!0,css:{[`& ${Ag}`]:{[`& ${Hg}`]:{br:"0"}}}},{sticked:!0,hasPagination:!0,css:{pb:"$5"}},{sticked:!0,hasPagination:!0,isMultiple:!0,hoverable:!0,css:{[`& ${Ag}:last-child`]:{[`& ${Hg}:first-child`]:{br:"0"},[`& ${Hg}:last-child`]:{br:"0"}}}}],defaultVariants:{sticked:!1,color:"primary",lineWeight:"light"}}),Wg=De("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"}}),Dg=Et((({children:e,...t})=>{const{rowGroupProps:o}={rowGroupProps:{role:"rowgroup"}};return(0,zt.jsx)(Kg,{className:Mt("nextui-table-row-group",t.className),...t,...o,children:e})}),{as:"thead"}),Og=De("svg",{opacity:0,transition:"$default",path:{fill:"$$tableRowTextColor"},variants:{visible:{true:{opacity:1}},ascending:{true:{transform:"rotate(180deg)"}}}}),Vg=e=>(0,zt.jsx)(Og,{"aria-hidden":"true",className:"nextui-table-sort-icon",fill:"none",focusable:"false",height:22,role:"presentation",viewBox:"0 0 24 24",width:22,xmlns:"http://www.w3.org/2000/svg",...e,children:(0,zt.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"})}),Ug=h().forwardRef((({column:e,state:t,...o},r)=>{var n,i;const s=(0,g.useRef)(null);(0,g.useImperativeHandle)(r,(()=>null==s?void 0:s.current));const{columnHeaderProps:a}=og({node:e},t,s),{isFocusVisible:l,focusProps:c}=wi(),{hideHeader:d,...u}=e.props;return(0,zt.jsxs)(Lg,{ref:s,className:Mt("nextui-table-column-header",o.className),colSpan:e.colspan,isFocusVisible:l,...zi(o,a,c,u),children:[d?(0,zt.jsx)(Wa,{children:e.rendered}):e.rendered,u.allowsSorting&&(0,zt.jsx)(Vg,{ascending:"ascending"===(null==(n=t.sortDescriptor)?void 0:n.direction),css:{position:"absolute",m:"0 $2",bottom:"calc(50% - 11px)"},visible:(null==(i=t.sortDescriptor)?void 0:i.column)===e.key})]})}));Ug.displayName="NextUI.TableColumnHeader",Ug.toString=()=>".nextui-table-column-header";const Gg=Ug,_g=h().forwardRef((({children:e,item:t,state:o,...r},n)=>{const i=(0,g.useRef)(null);(0,g.useImperativeHandle)(n,(()=>null==i?void 0:i.current));const{rowProps:s}=function(e,t,o){let{node:r,isVirtualized:n}=e,i={role:"row"};return n&&(i["aria-rowindex"]=r.index+1),{rowProps:i}}({node:t});return(0,zt.jsx)(zg,{ref:i,className:Mt("nextui-table-header-row",r.className),...r,...s,children:e})}));_g.displayName="NextUI.TableHeaderRow",_g.toString=()=>".nextui-table-header-row";const qg=_g,Yg=h().forwardRef((({column:e,state:t,color:o,animated:r,...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}=og({node:e},t,s),{checkboxProps:c}=function(e){let{isEmpty:t,isSelectAll:o,selectionMode:r}=e.selectionManager;return{checkboxProps:{"aria-label":ir(qp(eg)).format("single"===r?"select":"selectAll"),isSelected:o,isDisabled:"multiple"!==r||0===e.collection.size,isIndeterminate:!t&&!o,onChange:()=>e.selectionManager.toggleSelectAll()}}}(t),{isFocusVisible:d,focusProps:u}=wi();return(0,zt.jsx)(Ng,{ref:s,className:Mt("nextui-table-select-all-checkbox",n.className),isFocusVisible:d,...zi(l,u,n),children:a?(0,zt.jsx)(Wa,{children:c["aria-label"]}):(0,zt.jsx)(ul,{...c,color:o,css:{display:"inherit",$$checkboxBorderColor:"$colors$accents3"},disableAnimation:!r})})}));Yg.displayName="NextUI.TableSelectAllCheckbox",Yg.toString=()=>".nextui-table-select-all-checkbox";const Xg=Yg,Zg={footerAlign:"end",rowsPerPage:0,currentPage:1,animated:!0},Jg=h().createContext(Zg),Qg=()=>h().useContext(Jg),eh=({children:e,defaultValues:t})=>{const[o,r]=h().useState((null==t?void 0:t.footerAlign)||Zg.footerAlign),[n,i]=h().useState(void 0===(null==t?void 0:t.animated)?Zg.animated:null==t?void 0:t.animated),[s,a]=h().useState(null==t?void 0:t.collection),[l,c]=h().useState(void 0===(null==t?void 0:t.rowsPerPage)?Zg.rowsPerPage:null==t?void 0:t.rowsPerPage),[d,u]=h().useState(Zg.currentPage),[p,g]=h().useState(null==t?void 0:t.color),m=h().useMemo((()=>({animated:n,footerAlign:o,collection:s,rowsPerPage:l,currentPage:d,color:p,setFooterAlign:r,setCollection:a,setAnimated:i,setRowsPerPage:c,setColor:g,setCurrentPage:u})),[n,p,s,o,l,d]);return(0,zt.jsx)(Jg.Provider,{value:m,children:e})},th=(Jg.Consumer,({align:e,rowsPerPage:t,onPageChange:o,...r})=>{const{color:n,animated:i,collection:s,footerAlign:a,rowsPerPage:l,setFooterAlign:c,setRowsPerPage:d,setCurrentPage:u}=Qg();h().useEffect((()=>{e&&e!==a&&(null==c||c(e))}),[e,a]),h().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,zt.jsx)(qu,{animated:i,className:Mt("nextui-table-pagination",r.className),color:r.color||n,total:p,onChange:e=>{null==u||u(e),null==o||o(e)},...r})});th.displayName="NextUI.TablePagination",th.toString=()=>".nextui-table-pagination";const oh=th,rh=h().forwardRef((({children:e,...t},o)=>{const r=(0,g.useRef)(null);(0,g.useImperativeHandle)(o,(()=>null==r?void 0:r.current));const{footerAlign:n}=Qg();return(0,zt.jsx)(Bg,{ref:r,align:t.align||n,className:Mt("nextui-table-footer",t.className),role:"rowgroup",...t,children:e})}));rh.displayName="NextUI.TableFooter",rh.toString=()=>".nextui-table-footer";const nh=rh,ih=h().forwardRef((({children:e,item:t,state:o,...r},n)=>{const i=(0,g.useRef)(null);(0,g.useImperativeHandle)(n,(()=>null==i?void 0:i.current));const{rowProps:s}=function(e,t,o){let{node:r}=e,{rowProps:n,isPressed:i}=function(e,t,o){let{node:r,isVirtualized:n,shouldSelectOnPressUp:i,onAction:s}=e,{actions:{onRowAction:a}}=Wp.get(t),{itemProps:l,isPressed:c}=Lp({selectionManager:t.selectionManager,key:r.key,ref:o,isVirtualized:n,shouldSelectOnPressUp:i,onAction:a?()=>a(r.key):s,isDisabled:0===t.collection.size}),d=t.selectionManager.isSelected(r.key),u={role:"row","aria-selected":"none"!==t.selectionManager.selectionMode?d:void 0,...l};return n&&(u["aria-rowindex"]=r.index+1),{rowProps:u,isPressed:c}}(e,t,o);return{rowProps:{...n,"aria-labelledby":Qp(t,r.key)},isPressed:i}}({node:t},o,i),{isFocusVisible:a,focusProps:l}=wi(),c=o.disabledKeys.has(t.key);return(0,zt.jsx)(Ag,{ref:i,className:Mt("nextui-table-row",{"nextui-table-row--selected":s["aria-selected"],"nextui-table-row--disabled":c},r.className),css:t.props.css,isDisabled:c,isFocusVisible:a,isSelected:!!s["aria-selected"],...zi(s,l,r),children:e})}));ih.displayName="NextUI.TableRow",ih.toString=()=>".nextui-table-row";const sh=ih,ah=h().forwardRef((({cell:e,state:t,isStatic:o,...r},n)=>{const i=Fi(n),{gridCellProps:s}=rg({node:e},t,i),{isFocusVisible:a,focusProps:l}=wi(),c=o?{...s,onMouseDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()}:s;return(0,zt.jsx)(Hg,{ref:i,className:Mt("nextui-table-cell",r.className),css:e.props.css,isFocusVisible:a,isStatic:o,...zi(c,l,r),children:e.rendered})}));ah.displayName="NextUI.TableCell",ah.toString=()=>".nextui-table-cell";const lh=ah,ch=h().forwardRef((({cell:e,state:t,color:o,animated:r,...n},i)=>{const s=(0,g.useRef)(null);(0,g.useImperativeHandle)(i,(()=>null==s?void 0:s.current));const{gridCellProps:a}=rg({node:e},t,s),{checkboxProps:l}=function(e,t){let{key:o}=e;const{checkboxProps:r}=function(e,t){let{key:o}=e,r=t.selectionManager,n=$o(),i=!t.selectionManager.canSelectItem(o),s=t.selectionManager.isSelected(o);return{checkboxProps:{id:n,"aria-label":ir(Fp(Dp)).format("select"),isSelected:s,isDisabled:i,onChange:()=>r.select(o)}}}(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${Qp(t,o)}`}}}({key:(null==e?void 0:e.parentKey)||e.key},t),{isFocusVisible:c,focusProps:d}=wi();return(0,zt.jsx)(Hg,{ref:s,className:Mt("nextui-table-checkbox-cell",n.className),isFocusVisible:c,...zi(a,d,n),children:(0,zt.jsx)(ul,{...l,color:o,css:{display:"inherit"},disableAnimation:!r})})}));ch.displayName="NextUI.TableCheckboxCell",ch.toString=()=>".nextui-table-checkbox-cell";const dh=ch,uh=e=>{var t;const o=null==(t=e.body)?void 0:t.props;return void 0!==(null==o?void 0:o.loadingState)&&"function"==typeof(null==o?void 0:o.onLoadMore)},ph=({children:e,collection:t,state:o,animated:r,color:n,hasPagination:i,hideLoading:s,isStatic:a,...l})=>{var c,d,u,p,m,$;const{currentPage:f,rowsPerPage:b,collection:y,setCollection:v}=Qg(),x=(0,g.useMemo)((()=>uh(t)),[t.body.props]);h().useEffect((()=>{t!==y&&(null==v||v(t))}),[t,y]);const w="loading"===(null==(c=t.body)||null==(d=c.props)?void 0:d.loadingState)||"loadingMore"===(null==(u=t.body)||null==(p=u.props)?void 0:p.loadingState),S=(0,g.useMemo)((()=>{const e=[...t.body.childNodes];return i?null==e?void 0:e.slice((f-1)*b,f*b):e}),[i,t,f,b]),C=(0,g.useMemo)((()=>{const e=S.length;return e>=b&&!x?null:(0,zt.jsx)("tr",{"aria-hidden":"true",className:"nextui-table-hidden-row",role:"row",children:(0,zt.jsx)(Rg,{"aria-hidden":"true",colSpan:t.columnCount,css:{height:"var(--nextui--tableBodyEmptySpaceHeight)"},style:zi({"--nextui--tableBodyEmptySpaceHeight":x?"var(--nextui-space-10)":`calc(${b-e} * var(--nextui-space-15))`},(null==l?void 0:l.style)||{})})})}),[t.columnCount,S,b,x]);return(0,zt.jsxs)(Dg,{as:"tbody",className:Mt("nextui-table-body",l.className),css:{position:"relative",...l.css,...null==(m=t.body)||null==($=m.props)?void 0:$.css},isInfinityScroll:x,onScroll:e=>{if(!x)return;const o=e.target;var r,n;o.scrollHeight-(o.scrollTop+40)<=o.clientHeight&&!w&&(null==(r=t.body)||null==(n=r.props)||null==n.onLoadMore||n.onLoadMore())},...l,children:[e,null==S?void 0:S.map((e=>e.hasChildNodes?(0,zt.jsx)(sh,{"aria-hidden":"false",item:e,state:o,children:[...e.childNodes].map((e=>{var t;return null!=e&&null!=(t=e.props)&&t.isSelectionCell?(0,zt.jsx)(dh,{animated:r,cell:e,color:n,state:o},null==e?void 0:e.key):(0,zt.jsx)(lh,{cell:e,isStatic:a,state:o},null==e?void 0:e.key)}))},null==e?void 0:e.key):null)),!s&&w&&(0,zt.jsx)(Fg,{"aria-hidden":"true",className:"nextui-table-hidden-row",isAbsolute:!x,isAtEnd:S.length>0,role:"row",children:(0,zt.jsx)(Rg,{"aria-hidden":"true",colSpan:t.columnCount,children:(0,zt.jsx)(Gc,{color:n})})}),C]})};ph.displayName="NextUI.TableBody",ph.toString=()=>".nextui-table-body";const gh=ph,hh=h().forwardRef(((e,t)=>{const{css:o,selectionMode:r,selectionBehavior:n,hideLoading:i,children:s,shadow:a,color:l,animated:c,borderWeight:d,bordered:u,hoverable:p,sticked:m,containerCss:$,className:f,...b}=e,[y,v]=((e,t)=>{const[o,r]=et(e,t);let n=null;return r&&r.length>=1&&(n=r.length>=0?r[0]:void 0),[o,n]})(s,oh),{hasPagination:x,rowsPerPage:w}=((e,t)=>{const o=h().Children.toArray(e).find((e=>h().isValidElement(e)&&e.type===t));var r;return h().isValidElement(o)?{hasPagination:!0,rowsPerPage:(null==o||null==(r=o.props)?void 0:r.rowsPerPage)||0}:{hasPagination:!1,rowsPerPage:0}})(s,oh),S=function(e){let[t,o]=(0,g.useState)(!1),{selectionMode:r="none"}=e,n=(0,g.useMemo)((()=>({showSelectionCheckboxes:e.showSelectionCheckboxes&&"none"!==r,selectionMode:r,columns:[]})),[e.children,e.showSelectionCheckboxes,r]),i=lg(e,((e,t)=>new yg(e,t,n)),n),{disabledKeys:s,selectionManager:a}=function(e){let{collection:t,focusMode:o}=e,r=pg(e),n=(0,g.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),i=r.setFocusedKey;return r.setFocusedKey=(e,r)=>{if("cell"===o&&null!=e){let o=t.getItem(e);if("item"===(null==o?void 0:o.type)){var n,s;let t=[...o.childNodes];e="last"===r?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,r)},(0,g.useEffect)((()=>{null==r.focusedKey||t.getItem(r.focusedKey)||r.setFocusedKey(null)}),[t,r]),{collection:t,disabledKeys:n,isKeyboardNavigationDisabled:!1,selectionManager:new hg(t,r)}}({...e,collection:i});return{collection:i,disabledKeys:s,selectionManager:a,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor,isKeyboardNavigationDisabled:0===i.size||t,setKeyboardNavigationDisabled:o,sort(t,o){var r;e.onSortChange({column:t,direction:null!=o?o:(null===(r=e.sortDescriptor)||void 0===r?void 0:r.column)===t?vg[e.sortDescriptor.direction]:"ascending"})}}}({...e,children:y,showSelectionCheckboxes:void 0!==e.showSelectionCheckboxes?e.showSelectionCheckboxes:"multiple"===r&&"replace"!==n}),C=Fi(t),{collection:k}=S,{gridProps:P}=function(e,t,o){let{keyboardDelegate:r,isVirtualized:n,layout:i}=e,s=ar({usage:"search",sensitivity:"base"}),{direction:a}=rr(),l=(0,g.useMemo)((()=>r||new tg({collection:t.collection,disabledKeys:t.disabledKeys,ref:o,direction:a,collator:s,layout:i})),[r,t.collection,t.disabledKeys,o,a,s,i]),c=$o(e.id);Yp.set(t,c);let{gridProps:d}=Up({...e,id:c,keyboardDelegate:l,getRowText(e){let o=t.collection.getItem(e);if(!o)return"";if(null!=o.textValue)return o.textValue;let r=t.collection.rowHeaderColumnKeys;if(r){let e=[];for(let n of o.childNodes){let o=t.collection.columns[n.index];if(r.has(o.key)&&n.textValue&&e.push(n.textValue),e.length===r.size)break}return e.join(" ")}return""}},t,o);n&&(d["aria-rowcount"]=t.collection.size+t.collection.headerRows.length);let{column:u,direction:p}=t.sortDescriptor||{},h=ir(qp(eg)),m=(0,g.useMemo)((()=>{var e;let o=null===(e=t.collection.columns.find((e=>e.key===u)))||void 0===e?void 0:e.textValue;return p&&u?h.format(`${p}Sort`,{columnName:o}):void 0}),[p,u,t.collection.columns]),$=Ao(m);return No((()=>{Ap(m,"assertive",500)}),[m]),{gridProps:vo(d,$,0===t.collection.size&&{tabIndex:0},{"aria-describedby":[$["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")})}}(e,S,C),T=h().useMemo((()=>({collection:k,color:l,animated:c,rowsPerPage:w})),[k,c,l,w]),E=(0,g.useMemo)((()=>!("none"===r&&!p)),[r,p]);return(0,zt.jsx)(eh,{defaultValues:T,children:(0,zt.jsx)(Wg,{borderWeight:d,bordered:u,className:"nextui-table-container",css:$,shadow:a,children:(0,zt.jsxs)(jg,{ref:C,animated:c,className:Mt("nextui-table",f),color:l,css:o,hasPagination:x,hoverable:E,isMultiple:"multiple"===r,shadow:a,...zi(P,b),children:[(0,zt.jsxs)(Dg,{as:"thead",isFixed:uh(k),children:[k.headerRows.map((e=>(0,zt.jsx)(qg,{item:e,state:S,children:[...e.childNodes].map((e=>{var t;return null!=e&&null!=(t=e.props)&&t.isSelectionCell?(0,zt.jsx)(Xg,{animated:c,color:l,column:e,state:S},null==e?void 0:e.key):(0,zt.jsx)(Gg,{animated:c,column:e,state:S},null==e?void 0:e.key)}))},null==e?void 0:e.key))),!m&&(0,zt.jsx)(Ql,{as:"tr",className:"nextui-table-hidden-row",y:.4})]}),(0,zt.jsx)(gh,{animated:c,collection:k,color:l,hasPagination:x,hideLoading:i,isStatic:!E,state:S}),x&&(0,zt.jsxs)(nh,{children:[(0,zt.jsx)(Ql,{as:"tr",className:"nextui-table-hidden-row",y:.6}),(0,zt.jsx)("tr",{role:"row",children:(0,zt.jsx)("th",{colSpan:k.columnCount,role:"columnheader",tabIndex:-1,children:v})})]})]})})})}));hh.displayName="NextUI.Table",hh.toString=()=>".nextui-table";const mh=Et(hh,{animated:!0,hideLoading:!1,selectionMode:"none",selectionBehavior:"toggle"}),$h=Mg,fh=Pg,bh=wg,yh=Eg,vh=Cg;mh.Cell=$h,mh.Column=fh,mh.Header=bh,mh.Row=yh,mh.Body=vh,mh.Pagination=oh;const xh=mh;function wh(...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(o){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}(e,t)))}}function Sh(e={}){const{ref:t,triggerRef:o,scrollRef:r,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:$=!0,shouldCloseOnBlur:f=!1,isKeyboardDismissDisabled:b=!1,disableAnimation:y=!1,shouldCloseOnInteractOutside:v}=e,x=(0,g.useRef)(null),w=(0,g.useRef)(null),S=t||x,C=o||w,k=function(e){let[t,o]=Da(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,setOpen:o,open(){o(!0)},close(){o(!1)},toggle(){o(!t)}}}({isOpen:n,defaultOpen:i,onOpenChange:s}),[P,T]=(0,g.useState)(!k.isOpen),E=(0,g.useMemo)((()=>k.isOpen?"open":"closed"),[k.isOpen]),I=(0,g.useCallback)((()=>{null==h||h(),k.close()}),[k,h]),M=(0,g.useCallback)((()=>{T(!1)}),[]),z=(0,g.useCallback)((()=>{T(!0)}),[]),{triggerProps:L,overlayProps:N}=function(e,t,o){let r,{type:n}=e,{isOpen:i}=t;(0,g.useEffect)((()=>{o&&o.current&&hn.set(o.current,t.close)})),"menu"===n?r=!0:"listbox"===n&&(r="listbox");let s=$o();return{triggerProps:{"aria-haspopup":r,"aria-expanded":i,"aria-controls":i?s:null,onPress:t.toggle},overlayProps:{id:s}}}({type:m},k,C),B=(0,g.useMemo)((()=>(e=>e?e.replace("-"," "):"bottom")(p)),[p]),{overlayProps:R}=function(e){let{direction:t}=rr(),{targetRef:o,overlayRef:r,scrollRef:n=r,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]=(0,g.useState)({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),b=[u,i,r.current,o.current,n.current,s,a,l,c,d,p,t,m],y=(0,g.useCallback)((()=>{!1!==u&&p&&r.current&&o.current&&n.current&&l&&f(un({placement:$n(i,t),overlayNode:r.current,targetNode:o.current,scrollNode:n.current,padding:s,shouldFlip:a,boundaryElement:l,offset:c,crossOffset:d,maxHeight:m}))}),b);var v;ho(y,b),ho((()=>(window.addEventListener("resize",v,!1),()=>{window.removeEventListener("resize",v,!1)})),[v=y]);let x=(0,g.useRef)(!1);ho((()=>{let e,t=()=>{x.current=!0,clearTimeout(e),e=setTimeout((()=>{x.current=!1}),500),y()};return null==mn||mn.addEventListener("resize",t),()=>{null==mn||mn.removeEventListener("resize",t)}}),[y]);let w=(0,g.useCallback)((()=>{x.current||h()}),[h,x]);return function(e){let{triggerRef:t,isOpen:o,onClose:r}=e;(0,g.useEffect)((()=>{if(!o)return;let e=e=>{let o=e.target;if(!t.current||o instanceof Node&&!o.contains(t.current))return;let n=r||hn.get(t.current);n&&n()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[o,r,t])}({triggerRef:o,isOpen:p,onClose:h?w:void 0}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...$.position,maxHeight:$.maxHeight}},placement:$.placement,arrowProps:{style:{left:$.arrowOffsetLeft,top:$.arrowOffsetTop}},updatePosition:y}}({isOpen:k.isOpen,targetRef:C,scrollRef:r,placement:B,overlayRef:S,shouldFlip:d,offset:u}),H=(0,g.useMemo)((()=>{var e;return!(null==(e=R.style)||!e.maxHeight)}),[R.style]),A=(0,g.useCallback)(((e={},t=null)=>({...null!=o&&o.current?zi(L,e):zi(e,L),ref:wh(C,t)})),[C,o,L]),K=(0,g.useCallback)(((e={},t={})=>{const o=R.style?Object.keys(R.style):[];let r={};o.forEach((e=>{const o=ht(t)&&t[e];o&&(r={...r,[e]:o})}));const n=Object.keys(r).length>0?{...R,style:{...R.style,...r}}:R;return{css:t,...e,...N,...n,"data-state":E,"data-placement":p}}),[E,R,N,p]);return{state:k,exited:P,overlayRef:S,triggerRef:C,placement:p,disableShadow:c,disableAnimation:y,shouldCloseOnBlur:f,isDismissable:$,isBordered:a,borderWeight:l,isKeyboardDismissDisabled:b,shouldCloseOnInteractOutside:v,isOpen:k.isOpen,onClose:I,onExited:z,onEntered:M,triggerProps:L,overlayProps:N,positionProps:R,getTriggerProps:A,getPopoverProps:K,isPositioned:H}}const[Ch,kh]=Ya({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),Ph=h().forwardRef(((e,t)=>{const{children:o,...r}=e,n=Sh({ref:t,...r}),[i,s]=h().Children.toArray(o),a=n.state.isOpen||!n.exited;return(0,zt.jsxs)(Ch,{value:n,children:[i,a&&(0,zt.jsx)(wn,{children:s})]})}));Ph.toString=()=>".nextui-popover";const Th=Ph,Eh=h().forwardRef(((e,t)=>{const{triggerRef:o,getTriggerProps:r}=kh(),{children:n,...i}=e,s=(0,g.useMemo)((()=>"string"==typeof n?(0,zt.jsx)(yd,{children:n}):g.Children.only(n)),[n]),{onPress:a,onKeyDown:l,onPressStart:c,...d}=(0,g.useMemo)((()=>r(zi(s.props,i),s.ref)),[r,s.props,i,s.ref]),{buttonProps:u}=ds({onPress:a,onKeyDown:l,onPressStart:c,...d},o),[,p]=et(e.children,ya),h=(0,g.useMemo)((()=>void 0!==(null==p?void 0:p[0])),[p]),m=(0,g.useMemo)((()=>({...d,onPress:a,onKeyDown:l,onPressStart:c})),[d,a,l,c]);return(0,g.cloneElement)(s,zi(d,h?m:u))}));Eh.toString=()=>".nextui-popover-trigger";const Ih=Eh;"undefined"!=typeof window&&window.visualViewport,new WeakMap,"undefined"!=typeof window&&window.visualViewport,"undefined"!=typeof window&&window.visualViewport,new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),new WeakMap;const Mh=h().createContext(null);const zh=Ue({"0%":{opacity:0,transform:"translateZ(0) scale(0.95)"},"60%":{opacity:.75,backfaceVisibility:"hidden",webkitFontSmoothing:"antialiased",transform:"translateZ(0) scale(1.05)"},"100%":{opacity:1,transform:"translateZ(0) scale(1)"}}),Lh=Ue({"0%":{opacity:1,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(0.5)"}}),Nh=De("div",{$$popoverMinWidth:"$space$fit",$$popoverMinHeight:"$space$fit",$$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:zh,animationTimingFunction:"ease-out",animationDirection:"normal",animationDuration:"300ms",animationFillMode:"both"},"&.nextui-popover-content-leave":{animationName:Lh,animationTimingFunction:"ease-in",animationDuration:"60ms",animationFillMode:"both"},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"}},isPositioned:{true:{visibility:"visible"},false:{visibility:"hidden"}},disableAnimation:{true:{transition:"none","&.nextui-popover-content-enter":{animation:"none"},"&.nextui-popover-content-leave":{animation:"none"}}}},defaultVariants:{isBordered:!1,borderWeight:"light"}},zn),Bh=De("div",{}),Rh=h().forwardRef(((e,t)=>{const{children:o,as:r,css:n,className:i,...s}=e,{state:a,placement:l,overlayRef:c,disableAnimation:d,disableShadow:u,shouldCloseOnBlur:p,isDismissable:h,isKeyboardDismissDisabled:m,shouldCloseOnInteractOutside:$,getPopoverProps:f,isBordered:b,borderWeight:y,onClose:v,onEntered:x,onExited:w,isPositioned:S}=kh(),C=(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),k=(0,g.useMemo)((()=>({transformOrigin:C,...n})),[C,n]),{modalProps:P}=function(e){let t=(0,g.useContext)(bn);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)}}}({isDisabled:!0}),{dialogProps:T}=function(e,t){let{role:o="dialog"}=e,r=bo();r=e["aria-label"]?void 0:r;let n=(0,g.useRef)(!1);return(0,g.useEffect)((()=>{if(t.current&&!t.current.contains(document.activeElement)){Qi(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(n.current=!0,t.current.blur(),Qi(t.current),n.current=!1)}),500);return()=>{clearTimeout(e)}}}),[t]),function(){let e=(0,g.useContext)(Mh),t=null==e?void 0:e.setContain;ho((()=>{null==t||t(!0)}),[t])}(),{dialogProps:{...Co(e,{labelable:!0}),role:o,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:e=>{n.current&&e.stopPropagation()}},titleProps:{id:r}}}({role:"dialog"},c),{overlayProps:E}=function(e,t){let{onClose:o,shouldCloseOnBlur:r,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:a}=e;(0,g.useEffect)((()=>(n&&fn.push(t),()=>{let e=fn.indexOf(t);e>=0&&fn.splice(e,1)})),[n,t]);let l=()=>{fn[fn.length-1]===t&&o&&o()};!function(e){let{ref:t,onInteractOutside:o,isDisabled:r,onInteractOutsideStart:n}=e,i=(0,g.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:o,onInteractOutsideStart:n}).current;i.onInteractOutside=o,i.onInteractOutsideStart=n,(0,g.useEffect)((()=>{if(r)return;let e=e=>{Ur(e,t)&&i.onInteractOutside&&(i.onInteractOutsideStart&&i.onInteractOutsideStart(e),i.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let o=e=>{i.isPointerDown&&i.onInteractOutside&&Ur(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("pointerdown",e,!0),document.addEventListener("pointerup",o,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("pointerup",o,!0)}}{let o=e=>{i.ignoreEmulatedMouseEvents?i.ignoreEmulatedMouseEvents=!1:i.isPointerDown&&i.onInteractOutside&&Ur(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))},r=e=>{i.ignoreEmulatedMouseEvents=!0,i.onInteractOutside&&i.isPointerDown&&Ur(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("mousedown",e,!0),document.addEventListener("mouseup",o,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",r,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("mouseup",o,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",r,!0)}}}),[t,i,r])}({ref:t,onInteractOutside:i?e=>{a&&!a(e.target)||(fn[fn.length-1]===t&&(e.stopPropagation(),e.preventDefault()),l())}:null,onInteractOutsideStart:e=>{a&&!a(e.target)||fn[fn.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=Fr({isDisabled:!r,onBlurWithin:e=>{a&&!a(e.relatedTarget)||o()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||s||(e.stopPropagation(),e.preventDefault(),l())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}({onClose:v,isOpen:a.isOpen,isDismissable:h&&a.isOpen,shouldCloseOnBlur:p,isKeyboardDismissDisabled:m,shouldCloseOnInteractOutside:$},c),I=zi({isBordered:b,disableShadow:u,borderWeight:y},s),{isFocusVisible:M,focusProps:z}=wi(),L=(0,g.useMemo)((()=>({clearTime:d?0:300,enterTime:d?0:20,leaveTime:d?0:60,name:"nextui-popover-content",visible:a.isOpen,onEntered:x,onExited:w})),[d,a.isOpen]),N=(0,zt.jsxs)(Nh,{ref:wh(c,t),...f(zi(E,P,T,z,I),k),as:r,className:Mt("nextui-popover-content-container",i),disableAnimation:d,isFocusVisible:M,isPositioned:S,children:[(0,zt.jsx)(Cn,{onDismiss:v}),(0,zt.jsx)(Bh,{className:"nextui-popover-content",children:o}),(0,zt.jsx)(Cn,{onDismiss:v})]});return(0,zt.jsx)(zt.Fragment,{children:(0,zt.jsx)(ui,{restoreFocus:!0,children:(0,zt.jsx)(tc,{...L,children:N})})})}));Rh.toString=()=>".nextui-popover-content";const Hh=Rh;Th.Content=Hh,Th.Trigger=Ih;const Ah=Th;function Kh(e){return null}function Fh(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&h().Children.count(e.children)>0)}Kh.getCollectionNode=function*(e,t){let{childItems:o,title:r,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:Fh(e),*childNodes(){if(o)for(let e of o)yield{type:"item",value:e};else if(r){let e=[];h().Children.forEach(n,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let jh=Kh;function Wh(e){return null}Wh.getCollectionNode=function*(e){let{children:t,title:o,items:r}=e;yield{type:"section",hasChildNodes:!0,rendered:o,"aria-label":e["aria-label"],*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=[];h().Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let Dh=Wh;new WeakMap;const Oh=jh;Oh.toString=()=>".nextui-dropdown-item-base";const Vh=Oh,[Uh,Gh]=Ya({name:"DropdownContext",errorMessage:"useDropdownContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Dropdown />`"}),_h=h().forwardRef(((e,t)=>{const{children:o,...r}=e,{getMenuTriggerProps:n}=Gh();return(0,zt.jsx)(Ah.Trigger,{...n(r),children:o})}));_h.toString=()=>".nextui-dropdown-trigger";const qh=_h;"undefined"!=typeof window&&window.visualViewport;const Yh=new WeakMap;function Xh(e){return e&&e.__esModule?e.default:e}var Zh;"undefined"!=typeof window&&window.visualViewport,"undefined"!=typeof window&&window.visualViewport,new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),new WeakMap,Zh={"ar-AE":{longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"},"bg-BG":{longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"},"cs-CZ":{longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"},"da-DK":{longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"},"de-DE":{longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"},"el-GR":{longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"},"et-EE":{longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"},"it-IT":{longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"},"ja-JP":{longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"},"ko-KR":{longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"},"lt-LT":{longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."},"lv-LV":{longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"},"sk-SK":{longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"},"tr-TR":{longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"},"uk-UA":{longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"},"zh-CN":{longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"},"zh-TW":{longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"}};const Jh=new WeakMap;function Qh(e,t,o){let{key:r,closeOnSelect:n,isVirtualized:i}=e;var s;let a=null!==(s=e.isDisabled)&&void 0!==s?s:t.disabledKeys.has(r);var l;let c=null!==(l=e.isSelected)&&void 0!==l?l:t.selectionManager.isSelected(r),d=t.selectionManager.focusedKey===r,u=Jh.get(t),p=e.onClose||u.onClose,h=e.onAction||u.onAction,m="menuitem";"single"===t.selectionManager.selectionMode?m="menuitemradio":"multiple"===t.selectionManager.selectionMode&&(m="menuitemcheckbox");let $=bo(),f=bo(),b=bo(),y={"aria-disabled":a,role:m,"aria-label":e["aria-label"],"aria-labelledby":$,"aria-describedby":[f,b].filter(Boolean).join(" ")||void 0};"none"!==t.selectionManager.selectionMode&&(y["aria-checked"]=c),i&&(y["aria-posinset"]=t.collection.getItem(r).index,y["aria-setsize"]=dg(t.collection));let{itemProps:v}=Lp({selectionManager:t.selectionManager,key:r,ref:o,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0}),{pressProps:x,isPressed:w}=hr({onPressStart:e=>{"keyboard"===e.pointerType&&h&&h(r)},onPressUp:e=>{"keyboard"!==e.pointerType&&(h&&h(r),p&&(null!=n?n:"multiple"!==t.selectionManager.selectionMode)&&p())},isDisabled:a}),{hoverProps:S}=function(e){let{onHoverStart:t,onHoverChange:o,onHoverEnd:r,isDisabled:n}=e,[i,s]=(0,g.useState)(!1),a=(0,g.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,g.useEffect)(Vr,[]);let{hoverProps:l,triggerHoverEnd:c}=(0,g.useMemo)((()=>{let e=(e,r)=>{if(a.pointerType=r,n||"touch"===r||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:r}),o&&o(!0),s(!0)},i=(e,t)=>{if(a.pointerType="",a.target=null,"touch"===t||!a.isHovered)return;a.isHovered=!1;let n=e.currentTarget;r&&r({type:"hoverend",target:n,pointerType:t}),o&&o(!1),s(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{jr&&"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||jr||e(t,"mouse"),a.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!n&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:l,triggerHoverEnd:i}}),[t,o,r,n,a]);return(0,g.useEffect)((()=>{n&&c({currentTarget:a.target},a.pointerType)}),[n]),{hoverProps:l,isHovered:i}}({isDisabled:a,onHoverStart(){Kr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}});return{menuItemProps:{...y,...vo(v,x,S,{onKeyDown:e=>{if(!e.repeat)switch(e.key){case" ":!a&&"none"===t.selectionManager.selectionMode&&!1!==n&&p&&p();break;case"Enter":!a&&!1!==n&&p&&p()}}})},labelProps:{id:$},descriptionProps:{id:f},keyboardShortcutProps:{id:b},isFocused:d,isSelected:c,isPressed:w,isDisabled:a}}var em=Symbol.iterator;class tm{*[em](){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 o,r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&("section"===e.type||t.has(e.key)))for(let t of e.childNodes)r(t)};for(let t of e)r(t);let n=0;for(let[e,t]of this.keyMap)o?(o.nextKey=e,t.prevKey=o.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=n++),o=t,o.nextKey=void 0;this.lastKey=null==o?void 0:o.key}}const om=De("ul",{$$dropdownItemHeight:"$space$13",$$dropdownMenuPadding:"$space$4",$$dropdownMenuWidth:"250px",$$dropdownMenuMinWidth:"250px",listStyle:"none",position:"relative",maxWidth:"$$dropdownMenuWidth",minWidth:"$$dropdownMenuMinWidth",width:"100%",p:"$$dropdownMenuPadding",m:0,outline:"none"}),rm=De("span",{dflex:"center",flexShrink:0,mr:"$4"}),nm=De("kbd",{opacity:.8,ml:"$4",mr:0,dflex:"center",color:"$$dropdownItemKeyboardColor",fontSize:"$xs",fontFamily:"$sans",boxShadow:"none",bg:"transparent",transition:"border 0.12s ease 0s"}),im=De("div",{d:"flex",flex:"1 1 0%",flexDirection:"column",alignItems:"flex-start",lineHeight:1.2}),sm=De("span",{flex:"1 1 0%"}),am=De("span",{fontSize:"$xs",color:"$$dropdownItemDescriptionColor",truncateText:"calc($$dropdownMenuWidth * 0.9)",transition:"color 0.12s 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)"}}]}),lm=De("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",[`& ${nm}`]:{transition:"none"},[`& ${am}`]:{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",zIndex:"$1",[`& ${nm}`]:{color:"$$dropdownItemHoverTextColor",borderColor:"$$dropdownItemHoverBorderColor"},[`& ${am}`]:{color:"currentColor"}}},isHovered:{true:{bg:"$$dropdownItemHoverBackground",color:"$$dropdownItemHoverTextColor",[`& ${nm}`]:{color:"$$dropdownItemHoverTextColor",borderColor:"$$dropdownItemHoverBorderColor"},[`& ${am}`]:{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"}},showFullDescription:{true:{[`& ${am}`]:{mt:"$2",overflow:"visible",textOverflow:"visible",whiteSpace:"normal"}}},disableAnimation:{true:{transition:"none",[`& ${nm}`]:{transition:"none"},[`& ${am}`]:{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",[`& ${nm}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isFocused:!0,variant:"solid",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",[`& ${nm}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isHovered:!0,variant:"shadow",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",boxShadow:"0 3px 10px 0 $$dropdownItemShadow",[`& ${nm}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isFocused:!0,variant:"shadow",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",boxShadow:"0 3px 10px 0 $$dropdownItemShadow",[`& ${nm}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{variant:"flat",color:"default",css:{$$dropdownItemHoverTextColor:"$colors$foreground"}}],defaultVariants:{color:"default",textColor:"default",dividerWeight:"light",variant:"flat"}},zn),cm=De("li",{mb:0}),dm=De("ul",{m:0,p:0,listStyle:"none"}),um=De("span",{fontWeight:"$medium",fontSize:"$xs",padding:"0 $4",color:"$accents8"}),pm=Ue({"100%":{strokeDashoffset:0}}),gm=De("svg",{d:"block",path:{transformOrigin:"50% 50%",strokeDasharray:48,strokeDashoffset:48,animation:`${pm} .25s cubic-bezier(0.650, 0.000, 0.450, 1.000) forwards`}}),hm=e=>{const{width:t=24,height:o=24,size:r,strokeWidth:n=3,fill:i="currentColor",css:s,className:a}=e;return(0,zt.jsx)(gm,{className:Mt("nextui-checkmark",a),css:s,height:r||o,role:"img",viewBox:"0 0 52 52",width:r||t,xmlns:"http://www.w3.org/2000/svg",children:(0,zt.jsx)("path",{d:"M14.1 27.2l7.1 7.2 16.7-16.8",fill:"none",stroke:i,strokeWidth:n})})};hm.toString=()=>".nextui-checkmark";const mm=hm,$m=({as:e,css:t,item:o,state:r,color:n,icon:i,command:s,description:a,textColor:l,variant:c,autoFocus:d,isVirtualized:u,withDivider:p,dividerWeight:h,showFullDescription:m,className:$,onAction:f})=>{const{onClose:b,closeOnSelect:y,disableAnimation:v,borderWeight:x}=Gh(),{rendered:w,key:S}=o,C=r.selectionManager.isSelected(S),k=r.selectionManager.focusedKey===o.key,P=r.disabledKeys.has(S),T=(0,g.useRef)(null),{pressProps:E,isPressed:I}=zs({ref:T,isDisabled:P}),{isFocusVisible:M,focusProps:z}=wi({autoFocus:d}),{hoverProps:L,isHovered:N}=na({isDisabled:P}),B="none"!==r.selectionManager.selectionMode&&!P,{menuItemProps:R,labelProps:H,descriptionProps:A,keyboardShortcutProps:K}=Qh({key:S,onClose:b,isSelected:C,isDisabled:P,"aria-label":o["aria-label"],closeOnSelect:y,isVirtualized:u,onAction:f},r,T),F=(0,g.useMemo)((()=>N?"hovered":C?"selected":I?"pressed":P?"disabled":"ready"),[C,P,N,I]),j=(0,g.useMemo)((()=>o.props.textColor?o.props.textColor:o.props.color&&"default"===l?o.props.color:l),[l,o.props.color,o.props.textColor]),W=(0,g.useMemo)((()=>a||o.props.description),[a,o.props.description]),D=(0,g.useMemo)((()=>s||o.props.command),[s,o.props.command]),O=(0,g.useMemo)((()=>i||o.props.icon),[i,o.props.icon]);return(0,zt.jsxs)(lm,{ref:T,...zi(R,L,E,z),as:o.props.as||e,className:Mt("nextui-dropdown-item",{"is-disabled":P,"is-selected":C,"is-selectable":B,"is-hovered":N,"is-focused":k,"is-pressed":I},$,o.props.className),color:o.props.color||n,css:{...zi(t,o.props.css)},"data-state":F,disableAnimation:v,dividerWeight:h||o.props.dividerWeight||x,isDisabled:P,isFocusVisible:M,isFocused:k,isHovered:N,isPressed:I,isSelectable:B,isSelected:C,shouldShowOutline:M&&"shadow"===c,showFullDescription:m||o.props.showFullDescription,textColor:j,variant:o.props.variant||c,withDescription:!!W,withDivider:p||o.props.withDivider,children:[O&&(0,zt.jsx)(rm,{className:"nextui-dropdown-item-icon-wrapper",children:O}),W?(0,zt.jsxs)(im,{children:[(0,zt.jsx)(sm,{className:"nextui-dropdown-item-content",...H,children:w}),(0,zt.jsx)(am,{className:"nextui-dropdown-item-description",hasCommand:!!D,hasIcon:!!O,...A,children:W})]}):(0,zt.jsx)(sm,{className:"nextui-dropdown-item-content",...H,children:w}),D&&(0,zt.jsx)(nm,{className:"nextui-dropdown-item-command",...K,children:D}),C&&(0,zt.jsx)(mm,{css:{ml:"$4"}})]})};$m.toString=()=>".nextui-dropdown-item";const fm=$m,bm=e=>{var t,o;const{item:r,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:$}=function(e){let{heading:t,"aria-label":o}=e,r=$o();return{itemProps:{role:"presentation"},headingProps:t?{id:r,"aria-hidden":!0}:{},groupProps:{role:"group","aria-label":o,"aria-labelledby":t?r:void 0}}}({heading:r.rendered,"aria-label":r["aria-label"]});return(0,zt.jsxs)(g.Fragment,{children:[r.key!==n.collection.getFirstKey()&&d&&(0,zt.jsx)(La,{as:"li",className:"nextui-dropdown-section-divider",css:{my:"$2"}}),(0,zt.jsxs)(cm,{...h,className:"nextui-dropdown-section-wrapper",children:[r.rendered&&(0,zt.jsx)(um,{...m,className:"nextui-dropdown-section-title",children:r.rendered}),(0,zt.jsx)(dm,{...$,as:(null==(t=r.props)?void 0:t.as)||s,className:Mt("nextui-dropdown-section",u),css:{...zi(i,null==(o=r.props)?void 0:o.css)},children:[...r.childNodes].map((e=>{let t=(0,zt.jsx)(fm,{color:a,item:e,state:n,textColor:l,variant:c,onAction:p},e.key);return e.wrapper&&(t=e.wrapper(t)),t}))})]})]})};bm.toString=()=>".nextui-dropdown-section";const ym=bm,vm=h().forwardRef(((e,t)=>{const{as:o,css:r,color:n="default",textColor:i="default",variant:s="flat",containerCss:a,...l}=e,c=Gh(),d={...zi(c,l)},u=Fi(t),p=function(e){let[t,o]=Da(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),r=pg(e),n=(0,g.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),i=lg(e,(e=>new tm(e,{expandedKeys:t})),null,[t]);return(0,g.useEffect)((()=>{null==r.focusedKey||i.getItem(r.focusedKey)||r.setFocusedKey(null)}),[i,r.focusedKey]),{collection:i,expandedKeys:t,disabledKeys:n,toggleKey:e=>{o(function(e,t){let o=new Set(e);return o.has(t)?o.delete(t):o.add(t),o}(t,e))},selectionManager:new hg(i,r)}}(d),{menuProps:h}=function(e,t,o){let{shouldFocusWrap:r=!0,...n}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let i=Co(e,{labelable:!0}),{listProps:s}=function(e){let{selectionManager:t,collection:o,disabledKeys:r,ref:n,keyboardDelegate:i,autoFocus:s,shouldFocusWrap:a,isVirtualized:l,disallowEmptySelection:c,selectOnFocus:d="replace"===t.selectionBehavior,disallowTypeAhead:u,shouldUseVirtualFocus:p,allowsTabNavigation:h}=e,m=ar({usage:"search",sensitivity:"base"}),$=t.disabledBehavior,f=(0,g.useMemo)((()=>i||new Rp(o,"selection"===$?new Set:r,n,m)),[i,o,r,n,m,$]),{collectionProps:b}=zp({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}}({...n,ref:o,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r});return Jh.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:vo(i,{role:"menu",...s})}}(d,p,u);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])}(c,u),(0,zt.jsx)(Ah.Content,{css:a,children:(0,zt.jsx)(om,{ref:u,as:o,className:Mt("nextui-dropdown-menu",e.className),css:r,...h,children:[...p.collection].map((e=>{if("section"===e.type)return(0,zt.jsx)(ym,{color:n,item:e,state:p,textColor:i,variant:s,onAction:d.onAction},e.key);let t=(0,zt.jsx)(fm,{color:n,item:e,state:p,textColor:i,variant:s,onAction:d.onAction},e.key);return e.wrapper&&(t=e.wrapper(t)),t}))})})}));vm.toString=()=>".nextui-dropdown-menu";const xm=vm,wm=({fill:e,size:t,height:o,width:r,...n})=>(0,zt.jsx)("svg",{fill:"none",height:t||o||24,viewBox:"0 0 24 24",width:t||r||24,xmlns:"http://www.w3.org/2000/svg",...n,children:(0,zt.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})});wm.toString=()=>".nextui-dropdown-icon";const Sm=wm,Cm=h().forwardRef(((e,t)=>{const{css:o,children:r,className:n,iconRight:i,iconRightCss:s,auto:a=!0,animated:l,...c}=e,{disableAnimation:d}=Gh(),u=Fi(t),p=(0,g.useMemo)((()=>i||(0,zt.jsx)(Sm,{fill:"currentColor",size:14})),[i]),h=(0,g.useMemo)((()=>l||!d),[l,d]);return(0,zt.jsx)(qh,{css:{"& .nextui-button-icon-right, & .nextui-button-text-right":{pointerEvents:"none"},...o},children:(0,zt.jsx)(ya,{ref:u,animated:h,auto:a,className:Mt("nextui-dropdown-button",n),iconRight:p,iconRightCss:{mt:"$1",...s},...c,children:r})})}));Cm.toString=()=>".nextui-dropdown-button";const km=Cm;const Pm=e=>{const{children:t,...o}=e,r=function(e={}){const{triggerRef:t,type:o="menu",trigger:r="press",isDisabled:n=!1,borderWeight:i,closeOnSelect:s,disableAnimation:a=!1,disableTriggerPressedAnimation:l=!1,isOpen:c,defaultOpen:d,onOpenChange:u,...p}=e,h=(0,g.useRef)(null),m=t||h,$=(0,g.useRef)(null),f=(0,g.useRef)(null),b=function(e){let t=function(e){let[t,o]=Da(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,setOpen:o,open(){o(!0)},close(){o(!1)},toggle(){o(!t)}}}(e),[o,r]=(0,g.useState)(null);return{focusStrategy:o,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()}}}({...e,isOpen:c,defaultOpen:d,onOpenChange:u}),{menuTriggerProps:y,menuProps:v}=function(e,t,o){let{type:r="menu",isDisabled:n,trigger:i="press"}=e,s=$o(),{triggerProps:a,overlayProps:l}=function(e,t,o){let r,{type:n}=e,{isOpen:i}=t;(0,g.useEffect)((()=>{o&&o.current&&Yh.set(o.current,t.close)})),"menu"===n?r=!0:"listbox"===n&&(r="listbox");let s=$o();return{triggerProps:{"aria-haspopup":r,"aria-expanded":i,"aria-controls":i?s:null,onPress:t.toggle},overlayProps:{id:s}}}({type:r},t,o),c=ir(Xh(Zh)),{longPressProps:d}=qr({isDisabled:n||"longPress"!==i,accessibilityDescription:c.format("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 delete a.onPress,{menuTriggerProps:{...a,..."press"===i?u:d,id:s,onKeyDown:e=>{if(!n&&("longPress"!==i||e.altKey)&&o&&o.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,autoFocus:t.focusStrategy,onClose:t.close}}}({type:o,trigger:r,isDisabled:n},b,m),x=(0,g.useCallback)((()=>{b.close(),null==p.onClose||p.onClose()}),[b.close,p.onClose]),w=(0,g.useCallback)(((e={},o=null)=>{const{css:r,...n}=null!=t&&t.current?zi(y,e):zi(e,y);return{ref:wh(h,o),css:l?r:{'&[aria-haspopup="true"]&[aria-expanded="true"]':{opacity:.7,backfaceVisibility:"hidden",transform:"translateZ(0) scale(0.97)"},...r},...n}}),[h,t,y,l]);return{...v,popoverProps:p,state:b,ref:$,onClose:x,autoFocus:b.focusStrategy||!0,disableAnimation:a,disableTriggerPressedAnimation:l,menuRef:$,borderWeight:i,menuPopoverRef:f,menuTriggerRef:m,closeOnSelect:s,getMenuTriggerProps:w}}(o),[n,i]=h().Children.toArray(t);return(0,zt.jsx)(Uh,{value:r,children:(0,zt.jsxs)(Ah,{ref:r.menuPopoverRef,...r.popoverProps,borderWeight:r.borderWeight,disableAnimation:r.disableAnimation,isOpen:r.state.isOpen,scrollRef:r.menuRef,triggerRef:r.menuTriggerRef,onClose:r.onClose,children:[n,i]})})};Pm.toString=()=>".nextui-dropdown";const Tm=Pm;Tm.Trigger=qh,Tm.Button=km,Tm.Menu=xm,Tm.Section=Dh,Tm.Item=Vh;const Em=Tm,Im=Ue({"0%":{opacity:1},"50%":{opacity:"0.4",transform:"scale(0.5)"},"100%":{opacity:1}}),Mm=Ue({"0%":{opacity:0,transform:"scale(0.2) translate(50%, -50%)"},"60%":{opacity:.75,transform:"scale(1.2) translate(50%, -50%)"},"100%":{opacity:1,transform:"scale(1) translate(50%, -50%)"}}),zm=Ue({"0%":{opacity:1,transform:"scale(1) translate(50%, -50%)"},"100%":{opacity:0,transform:"scale(0.2) translate(50%, -50%)"}}),Lm=Ue({"0%":{opacity:0,transform:"scale(0.2) translate(-50%, -50%)"},"60%":{opacity:.75,transform:"scale(1.2) translate(-50%, -50%)"},"100%":{opacity:1,transform:"scale(1) translate(-50%, -50%)"}}),Nm=Ue({"0%":{opacity:1,transform:"scale(1) translate(-50%, -50%)"},"100%":{opacity:0,transform:"scale(0.2) translate(-50%, -50%)"}}),Bm=Ue({"0%":{opacity:0,transform:"scale(0.2) translate(50%, 50%)"},"60%":{opacity:.75,transform:"scale(1.2) translate(50%, 50%)"},"100%":{opacity:1,transform:"scale(1) translate(50%, 50%)"}}),Rm=Ue({"0%":{opacity:1,transform:"scale(1) translate(50%, 50%)"},"100%":{opacity:0,transform:"scale(0.2) translate(50%, 50%)"}}),Hm=Ue({"0%":{opacity:0,transform:"scale(0.2) translate(-50%, 50%)"},"60%":{opacity:.75,transform:"scale(1.2) translate(-50%, 50%)"},"100%":{opacity:1,transform:"scale(1) translate(-50%, 50%)"}}),Am=Ue({"0%":{opacity:1,transform:"scale(1) translate(-50%, 50%)"},"100%":{opacity:0,transform:"scale(0.2) translate(-50%, 50%)"}}),Km=De("span",{d:"inline-flex",flexShrink:0,verticalAlign:"middle",position:"relative",overflow:"visible"}),Fm=De("span",{$$badgePlacementHOffset:"0%",$$badgePlacementVOffset:"0%",lineHeight:1,display:"flex",flexFlow:"row wrap",placeContent:"center",alignItems:"center",boxSizing:"border-box",whiteSpace:"nowrap",bg:"$$badgeBackgroundColor",color:"$$badgeTextColor",fontWeight:"$bold",fontSize:"$$badgeFontSize",p:"$$badgeVPadding $$badgeHPadding","@motion":{animation:"none",transition:"none","&.nextui-badge--is-invisible":{animation:"none",transition:"none"}},variants:{size:{xs:{$$badgeVPadding:"$space$2",$$badgeHPadding:"$space$2",$$badgeFontSize:"0.65rem"},sm:{$$badgeVPadding:"$space$2",$$badgeHPadding:"$space$3",$$badgeFontSize:"0.73rem"},md:{$$badgeVPadding:"$space$3",$$badgeHPadding:"$space$4",$$badgeFontSize:"$fontSizes$xs"},lg:{$$badgeVPadding:"$space$4",$$badgeHPadding:"$space$5",$$badgeFontSize:"$fontSizes$base"},xl:{$$badgeVPadding:"$space$5",$$badgeHPadding:"$space$6",$$badgeFontSize:"$fontSizes$xl"}},shape:{circle:{},rectangle:{}},asChild:{true:{zIndex:"$2",position:"absolute",lineHeight:1.5}},isOneChar:{true:{}},color:{default:{$$badgeBackgroundColor:"$colors$neutral",$$badgeTextColor:"$colors$neutralSolidContrast",$$badgeShadowColor:"$colors$neutralShadow"},primary:{$$badgeBackgroundColor:"$colors$primary",$$badgeTextColor:"$colors$primarySolidContrast",$$badgeShadowColor:"$colors$primaryShadow"},secondary:{$$badgeBackgroundColor:"$colors$secondary",$$badgeTextColor:"$colors$secondarySolidContrast",$$badgeShadowColor:"$colors$secondaryShadow"},success:{$$badgeBackgroundColor:"$colors$success",$$badgeTextColor:"$colors$successSolidContrast",$$badgeShadowColor:"$colors$successShadow"},warning:{$$badgeBackgroundColor:"$colors$warning",$$badgeTextColor:"$colors$warningSolidContrast",$$badgeShadowColor:"$colors$warningShadow"},error:{$$badgeBackgroundColor:"$colors$error",$$badgeTextColor:"$colors$errorSolidContrast",$$badgeShadowColor:"$colors$errorShadow"}},enableShadow:{true:{boxShadow:"0 2px 10px 0 $$badgeShadowColor"}},isSquared:{true:{borderRadius:"calc($$badgeFontSize * 0.45)"},false:{borderRadius:"$pill"}},placement:{"top-right":{animation:`${Mm} 0.25s ease-out`,"&.nextui-badge--is-invisible":{opacity:0,animation:`${zm} 0.2s ease-in`}},"top-left":{animation:`${Lm} 0.25s ease-out`,"&.nextui-badge--is-invisible":{opacity:0,animation:`${Nm} 0.2s ease-in`}},"bottom-right":{animation:`${Bm} 0.25s ease-out`,"&.nextui-badge--is-invisible":{opacity:0,animation:`${Rm} 0.2s ease-in`}},"bottom-left":{animation:`${Hm} 0.25s ease-out`,"&.nextui-badge--is-invisible":{opacity:0,animation:`${Am} 0.2s ease-in`}}},variant:{default:{},flat:{},dot:{p:0,dflex:"center",minSize:"$$badgeFontSize",boxSizing:"border-box"},points:{p:"calc($$badgeFontSize * 0.4)",boxSizing:"border-box",$$badgePlacementHOffset:"calc($$badgeFontSize * 0.8)"},bordered:{$$badgeBackgroundColor:"$colors$background",bg:"$background",bw:"$$badgeBorderWeight",borderStyle:"solid",borderColor:"$$badgeTextColor"}},borderWeight:{light:{$$badgeBorderWeight:"$borderWeights$light"},normal:{$$badgeBorderWeight:"$borderWeights$normal"},bold:{$$badgeBorderWeight:"$borderWeights$bold"},extrabold:{$$badgeBorderWeight:"$borderWeights$extrabold"},black:{$$badgeBorderWeight:"$borderWeights$black"}},disableOutline:{true:{border:"2px solid transparent"},false:{border:"2px solid $colors$background"}},disableAnimation:{true:{animation:"none",transition:"none","&.nextui-badge--is-invisible":{animation:"none",transition:"none"}}}},compoundVariants:[{variant:"flat",color:"default",css:{$$badgeBackgroundColor:"$colors$neutralLight",$$badgeTextColor:"$colors$neutralLightContrast"}},{variant:"flat",color:"primary",css:{$$badgeBackgroundColor:"$colors$primaryLight",$$badgeTextColor:"$colors$primaryLightContrast"}},{variant:"flat",color:"secondary",css:{$$badgeBackgroundColor:"$colors$secondaryLight",$$badgeTextColor:"$colors$secondaryLightContrast"}},{variant:"flat",color:"success",css:{$$badgeBackgroundColor:"$colors$successLight",$$badgeTextColor:"$colors$successLightContrast"}},{variant:"flat",color:"warning",css:{$$badgeBackgroundColor:"$colors$warningLight",$$badgeTextColor:"$colors$warningLightContrast"}},{variant:"flat",color:"error",css:{$$badgeBackgroundColor:"$colors$errorLight",$$badgeTextColor:"$colors$errorLightContrast"}},{variant:"bordered",color:"default",css:{$$badgeTextColor:"$colors$neutral"}},{variant:"bordered",color:"primary",css:{$$badgeTextColor:"$colors$primary"}},{variant:"bordered",color:"secondary",css:{$$badgeTextColor:"$colors$secondary"}},{variant:"bordered",color:"success",css:{$$badgeTextColor:"$colors$success"}},{variant:"bordered",color:"warning",css:{$$badgeTextColor:"$colors$warning"}},{variant:"bordered",color:"error",css:{$$badgeTextColor:"$colors$error"}},{asChild:!0,shape:"rectangle",placement:"top-right",css:{top:"calc(5% + $$badgePlacementVOffset)",right:"calc(5% + $$badgePlacementHOffset)",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"}},{asChild:!0,shape:"rectangle",placement:"top-left",css:{top:"calc(5% + $$badgePlacementVOffset)",left:"calc(5% + $$badgePlacementHOffset)",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"}},{asChild:!0,shape:"rectangle",placement:"bottom-right",css:{bottom:"calc(5% + $$badgePlacementVOffset)",right:"calc(5% + $$badgePlacementHOffset)",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"}},{asChild:!0,shape:"rectangle",placement:"bottom-left",css:{bottom:"calc(5% + $$badgePlacementVOffset)",left:"calc(5% + $$badgePlacementHOffset)",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"}},{asChild:!0,shape:"circle",placement:"top-right",css:{top:"calc(15% + $$badgePlacementVOffset)",right:"calc(15% + $$badgePlacementHOffset)",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"}},{asChild:!0,shape:"circle",placement:"top-left",css:{top:"calc(15% + $$badgePlacementVOffset)",left:"calc(15% + $$badgePlacementHOffset)",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"}},{asChild:!0,shape:"circle",placement:"bottom-right",css:{bottom:"calc(15% + $$badgePlacementVOffset)",right:"calc(15% + $$badgePlacementHOffset)",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"}},{asChild:!0,shape:"circle",placement:"bottom-left",css:{bottom:"calc(15% + $$badgePlacementVOffset)",left:"calc(15% + $$badgePlacementHOffset)",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"}},{variant:"dot",shape:"rectangle",css:{$$badgePlacementHOffset:"calc($$badgeFontSize * 0.2)",$$badgePlacementVOffset:"calc($$badgeFontSize * 0.1)"}},{isOneChar:!0,asChild:!0,css:{p:0,size:"calc($$badgeFontSize + $$badgeHPadding)"}},{isOneChar:!1,asChild:!0,css:{$$badgeVPadding:"0px",$$badgeHPadding:"$space$2"}},{isOneChar:!1,asChild:!0,size:"md",css:{$$badgeHPadding:"$space$3"}},{isOneChar:!1,asChild:!0,size:"lg",css:{$$badgeHPadding:"$space$4"}},{isOneChar:!1,asChild:!0,size:"xl",css:{$$badgeHPadding:"$space$5"}},{disableOutline:!0,variant:"bordered",css:{borderColor:"$$badgeTextColor"}}],defaultVariants:{size:"md",color:"default",variant:"default",borderWeight:"normal",placement:"top-right",shape:"rectangle",enableShadow:!1,disableOutline:!1,isSquared:!1}}),jm=De("div",{position:"relative",dflex:"center","& .nextui-badge-point":{size:"calc($$badgeFontSize * 0.3)",background:"$$badgeTextColor",margin:"0 2px",borderRadius:"$pill","&:nth-child(1)":{animation:`${Im} 1.2s ease infinite`},"&:nth-child(2)":{animation:`${Im} 1.2s ease infinite 0.4s`},"&:nth-child(3)":{animation:`${Im} 1.2s ease infinite 0.8s`}}}),Wm=ia(((e,t)=>{const{css:o,children:r,content:n,isInvisible:i=!1,disableOutline:s,placement:a="top-right",variant:l="default",verticalOffset:c,horizontalOffset:d,disableAnimation:u=!1,className:p,...h}=e,m=Fi(t),$=void 0!==n&&!!r,f=g.useMemo((()=>{var e;return $&&n&&"points"!==l&&"dot"!==l?1===(null==(e=String(n))?void 0:e.length):!(!r||"string"!=typeof r)&&1===r.length}),[$,r,l,n]),b=g.useMemo((()=>"dot"===l?null:"points"===l?(0,zt.jsxs)(jm,{className:"nextui-badge-points",children:[(0,zt.jsx)("span",{className:"nextui-badge-point"}),(0,zt.jsx)("span",{className:"nextui-badge-point"}),(0,zt.jsx)("span",{className:"nextui-badge-point"})]}):$?n:r),[l,f,$,n,r]),y=g.useMemo((()=>{const e="number"==typeof d,t="number"==typeof c;return c&&d?{$$badgePlacementHOffset:e?`${d}px`:d,$$badgePlacementVOffset:t?`${c}px`:c,...o}:c?{$$badgePlacementVOffset:t?`${c}px`:c,...o}:d?{$$badgePlacementHOffset:e?`${d}px`:d,...o}:o}),[c,d,o]);return(0,zt.jsxs)(Km,{ref:m,className:Mt("nextui-badge-root",p),children:[$&&r,(0,zt.jsx)(Fm,{asChild:$,className:Mt("nextui-badge",{"nextui-badge--is-invisible":i}),css:y,disableAnimation:u||!$,disableOutline:"bordered"===l||s,isOneChar:f,placement:a,variant:l,...h,children:b})]})}));Wm.toString=()=>".nextui-badge";const Dm=Wm,Om={default:{$$navbarItemActiveColor:"$colors$link",$$navbarItemHighlightBackgroundColor:"$colors$primaryLight",$$navbarItemHighlightTextColor:"$colors$primaryLightContrast",$$navbarItemHighlightSolidBackgroundColor:"$colors$primary",$$navbarItemHighlightSolidTextColor:"$colors$primarySolidContrast"},neutral:{$$navbarItemActiveColor:"$colors$neutral",$$navbarItemHighlightBackgroundColor:"$colors$neutralLight",$$navbarItemHighlightTextColor:"$colors$text",$$navbarItemHighlightSolidBackgroundColor:"$colors$neutral",$$navbarItemHighlightSolidTextColor:"$colors$neutralSolidContrast"},primary:{$$navbarItemActiveColor:"$colors$primary",$$navbarItemHighlightBackgroundColor:"$colors$primaryLight",$$navbarItemHighlightTextColor:"$colors$primaryLightContrast",$$navbarItemHighlightSolidBackgroundColor:"$colors$primary",$$navbarItemHighlightSolidTextColor:"$colors$primarySolidContrast"},secondary:{$$navbarItemActiveColor:"$colors$secondary",$$navbarItemHighlightBackgroundColor:"$colors$secondaryLight",$$navbarItemHighlightTextColor:"$colors$secondaryLightContrast",$$navbarItemHighlightSolidBackgroundColor:"$colors$secondary",$$navbarItemHighlightSolidTextColor:"$colors$secondarySolidContrast"},success:{$$navbarItemActiveColor:"$colors$success",$$navbarItemHighlightBackgroundColor:"$colors$successLight",$$navbarItemHighlightTextColor:"$colors$successLightContrast",$$navbarItemHighlightSolidBackgroundColor:"$colors$success",$$navbarItemHighlightSolidTextColor:"$colors$successSolidContrast"},warning:{$$navbarItemActiveColor:"$colors$warning",$$navbarItemHighlightBackgroundColor:"$colors$warningLight",$$navbarItemHighlightTextColor:"$colors$warningLightContrast",$$navbarItemHighlightSolidBackgroundColor:"$colors$warning",$$navbarItemHighlightSolidTextColor:"$colors$warningSolidContrast"},error:{$$navbarItemActiveColor:"$colors$error",$$navbarItemHighlightBackgroundColor:"$colors$errorLight",$$navbarItemHighlightTextColor:"$colors$errorLightContrast",$$navbarItemHighlightSolidBackgroundColor:"$colors$error",$$navbarItemHighlightSolidTextColor:"$colors$errorSolidContrast"}},Vm=De("li",{mb:0,display:"flex",alignItems:"center",listStyleType:"none",lineHeight:"inherit"}),Um=De("ul",{m:0,listStyle:"none",lineHeight:"$xs",li:{mb:0}}),Gm=De(Vm,{opacity:0,paddingBottom:"$6",fontSize:"$lg",lineHeight:"$lg",fontWeight:"$normal",transformOrigin:"top",variants:{activeColor:Om,isActive:{true:{color:"$$navbarItemActiveColor",fontWeight:"$semibold"}},disableAnimation:{true:{transition:"none"}}},defaultVariants:{activeColor:"default"}}),_m=De(Um,{py:"$8",px:"$$navbarPadding",overflowY:"scroll",maxHeight:"100%"}),qm=De("div",{$$navbarListColor:"$colors$text",$$navbarListBackgroundColor:"$colors$background",$$navbarListBlurBackgroundColor:"$colors$backgroundAlpha",$$navbarListBlur:"16px",position:"absolute",top:0,left:0,right:0,background:"$$navbarListBackgroundColor",width:"100%",height:"0px",zIndex:"$4",boxSizing:"border-box",overflow:"hidden",variants:{isOpen:{true:{top:"$$navbarHeight",pb:"$$navbarHeight",height:"100vh"}},disableBlur:{false:{"@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none))":{bg:"$$navbarListBlurBackgroundColor",backdropFilter:"saturate(180%) blur($$navbarListBlur)","@media screen and (-webkit-min-device-pixel-ratio:0)":{[`& ${_m}`]:{bg:"$$navbarListBlurBackgroundColor",backdropFilter:"saturate(180%) blur($$navbarListBlur)"}}}}},disableAnimation:{true:{[`& ${Gm}`]:{transition:"none"}}}},defaultVariants:{disableBlur:"false"}},Hn),Ym=De("div",{dflex:"center",flexDirection:"column",pointerEvents:"none",size:"22px","& .line":{height:"1px",width:"100%",backgroundColor:"$$navbarTextColor",transition:"transform 0.3s ease","&.top":{transform:"translateY(-4px) rotate(0deg)"},"&.bottom":{transform:"translateY(4px) rotate(0deg)"}},variants:{isExpanded:{true:{"& .line":{"&.top":{transform:"translateY(1px) rotate(45deg)"},"&.bottom":{transform:"translateY(0px) rotate(-45deg)"}}}}}}),Xm=De("button",{appearance:"none",background:"transparent",border:"none",cursor:"pointer",p:"$2",transition:"box-shadow 0.25s ease 0s, opacity 0.25s ease 0s",variants:{isPressed:{true:{opacity:.7}}}},Hn,zn),Zm=De("span",{display:"flex",flexWrap:"nowrap",flexDirection:"row",justifyContent:"flex-start",bg:"transparent",alignItems:"center",textDecoration:"none",fontSize:"$base",whiteSpace:"nowrap",boxSizing:"border-box"},Hn),Jm=De(Vm,{$$navbarItemFontSize:"inherit",$$navbarItemFontWeight:"$fontWeights$normal",fontSize:"$$navbarItemFontSize",fontWeight:"$$navbarItemFontWeight",position:"relative","> *":{zIndex:"$2",fontSize:"inherit !important",fontWeight:"inherit !important"},":first-child":{boxSizing:"content-box"},"&:before":{opacity:0,zIndex:"$1",content:'""',display:"block",position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"$sm"},"&:after":{opacity:0,zIndex:"$1",content:'""',display:"block",position:"absolute",left:"0",right:"0",bottom:"0",height:"$$navbarItemUnderlineHeight",borderRadius:"0px",background:"$$navbarItemActiveColor"},variants:{activeColor:Om,isActive:{true:{color:"$$navbarItemActiveColor",$$navbarItemFontWeight:"$fontWeights$semibold"}},variant:{default:{},underline:{color:"inherit",height:"100%"},"underline-rounded":{color:"inherit",height:"100%"},highlight:{},"highlight-solid":{},"highlight-rounded":{},"highlight-solid-rounded":{}},underlineHeight:{light:{$$navbarItemUnderlineHeight:"2px"},normal:{$$navbarItemUnderlineHeight:"4px"},bold:{$$navbarItemUnderlineHeight:"6px"},extrabold:{$$navbarItemUnderlineHeight:"8px"},black:{$$navbarItemUnderlineHeight:"10px"}},isDisabled:{true:{opacity:.5,cursor:"not-allowed"}}},compoundVariants:[{isActive:!0,variant:"underline",css:{color:"inherit","&:after":{opacity:1}}},{isActive:!0,variant:"underline-rounded",css:{color:"inherit","&:after":{opacity:1,borderRadius:"calc($$navbarItemUnderlineHeight / 2)"}}},{isActive:!0,variant:"highlight",css:{color:"$$navbarItemHighlightTextColor","*:first-child":{color:"inherit"},"&:before":{opacity:1,background:"$$navbarItemHighlightBackgroundColor"}}},{isActive:!0,variant:"highlight-solid",css:{color:"$$navbarItemHighlightSolidTextColor","*:first-child":{color:"inherit"},"&:before":{opacity:1,background:"$$navbarItemHighlightSolidBackgroundColor"}}},{isActive:!0,variant:"highlight-rounded",css:{color:"$$navbarItemHighlightTextColor","*:first-child":{color:"inherit"},"&:before":{opacity:1,background:"$$navbarItemHighlightBackgroundColor"}}},{isActive:!0,variant:"highlight-solid-rounded",css:{color:"$$navbarItemHighlightSolidTextColor","*:first-child":{color:"inherit"},"&:before":{opacity:1,background:"$$navbarItemHighlightSolidBackgroundColor"}}}],defaultVariants:{variant:"default",activeColor:"default",underlineHeight:"normal"}},Hn),Qm=De(Vm,{position:"absolute",top:"calc(50% - $$navbarItemMaxHeight * 0.5)",height:"$$navbarItemMaxHeight",background:"$neutralLight",borderRadius:"$sm",transition:"width 0.2s ease 0s, transform 0.2s ease 0s, opacity 0.2s ease 0s",variants:{color:Om,isHighlightVariant:{true:{background:"$$navbarItemHighlightBackgroundColor"}},isHighlightSolidVariant:{true:{background:"$$navbarItemHighlightSolidBackgroundColor"}},isRounded:{true:{borderRadius:"$pill"}}}}),e$=De(Um,{$$navbarContentItemGap:"$space$10",$$navbarContentItemHorizontalPadding:"$space$10",d:"flex",height:"100%",flexWrap:"nowrap",alignItems:"center",gap:"$$navbarContentItemGap",color:"inherit",variants:{enableCursorHighlight:{true:{zIndex:"$2",position:"relative"}}}},Hn),t$=De("div",{width:"100%",height:"$$navbarHeight",minHeight:"$$navbarHeight",display:"flex",flexWrap:"nowrap",justifyContent:"space-between",alignItems:"center",position:"relative",boxSizing:"border-box",color:"inherit",px:"$$navbarPadding",bg:"$$navbarBackgroundColor",maxW:"$$navbarContainerMaxWidth",zIndex:"$5","@xsMax":{$$navbarPadding:"$space$6",$$navbarFloatingMargin:"$space$6"}}),o$=De("nav",{width:"100%",dflex:"center",position:"relative",height:"auto",color:"$$navbarTextColor",zIndex:"$2",variants:{variant:{static:{position:"static"},sticky:{top:0,right:0,left:0,position:"sticky"},floating:{top:0,right:0,left:0,position:"sticky","@safari":{top:"-5px"},[`& ${t$}`]:{mt:"calc($$navbarFloatingMargin * 0.5)",mx:"$$navbarFloatingMargin",borderRadius:"$$navbarBorderRadius"},[`& ${_m}`]:{px:"calc($$navbarFloatingMargin + $space$4)"}}},maxWidth:{xs:{$$navbarContainerMaxWidth:"$breakpoints$xs"},sm:{$$navbarContainerMaxWidth:"$breakpoints$sm"},md:{$$navbarContainerMaxWidth:"$breakpoints$md"},lg:{$$navbarContainerMaxWidth:"$breakpoints$lg"},xl:{$$navbarContainerMaxWidth:"$breakpoints$xl"},fluid:{$$navbarContainerMaxWidth:"100%"}},isBordered:{true:{[`& ${t$}`]:{borderBottom:"$$navbarBorderWeight solid $$navbarBorderColor"}}},isCompact:{true:{$$navbarHeight:"$$navbarCompactHeight",$$navbarItemMaxHeight:"$$navbarCompactItemMaxHeight",$$navbarBorderRadius:"$radii$md"}},disableShadow:{false:{boxShadow:"$$navbarShadow"}},disableBlur:{false:{"@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none))":{[`& ${t$}`]:{bg:"$$navbarBlurBackgroundColor",backdropFilter:"saturate(180%) blur($$navbarBlur)"}}}}},compoundVariants:[{isBordered:!0,variant:"floating",css:{[`& ${t$}`]:{border:"$$navbarBorderWeight solid $$navbarBorderColor"}}},{variant:"floating",disableShadow:!1,css:{boxShadow:"none",[`& ${t$}`]:{boxShadow:"$$navbarShadow"}}}],defaultVariants:{variant:"static",maxWidth:"lg",isBordered:!1,disableShadow:!1,disableBlur:!1}}),r$=ia(((e,t)=>{const o=Fi(t),{children:r,className:n,...i}=e;return(0,zt.jsx)(Zm,{ref:o,className:Mt("nextui-navbar-brand",n),...i,children:r})}));r$.toString=()=>".nextui-navbar-brand";const n$=r$,[i$,s$]=Ya({strict:!1,name:"NavbarContentContext"}),a$=ia(((e,t)=>{const{children:o,...r}=e,n=function(e={}){const{gap:t="$10",variant:o="default",activeColor:r="default",underlineHeight:n="normal",enableCursorHighlight:i=!1,isCursorHighlightRounded:s=!1,css:a,style:l,className:c,...d}=e,[u,p]=(0,g.useState)(null),[h,m]=(0,g.useState)(null),[$,f]=(0,g.useState)(null),[b,y]=(0,g.useState)(null),[v,x]=(0,g.useState)(!0),w=(0,g.useRef)(null),S=(0,g.useRef)(null),C=null==o||null==o.toString?void 0:o.toString(),k=null==C.includes?void 0:C.includes("highlight"),P=null==C.includes?void 0:C.includes("highlight-solid"),T=(0,g.useMemo)((()=>s||(null==C.includes?void 0:C.includes("rounded"))),[s,C]),E=(0,g.useMemo)((()=>k&&"$10"===t?"0px":t),[k,t]),I=(0,g.useMemo)((()=>v?"0ms":"200ms"),[v]),M=(0,g.useMemo)((()=>$||b?1:0),[b,$]),z=(0,g.useMemo)((()=>u?k?`${u.width}px`:`calc(${u.width}px + var(--nextui--navbarContentItemHorizontalPadding))`:"0px"),[C,u]),L=(0,g.useMemo)((()=>u&&h&&`translate(${u.left-h.left}px)`),[u,h]),N=(0,g.useMemo)((()=>k?"0px":"calc(var(--nextui--navbarContentItemHorizontalPadding) * 0.5 * -1)"),[k]),B=(0,g.useMemo)((()=>zi({"--nextui--transitionDuration":I,"--nextui--opacity":M,"--nextui--width":z,"--nextui--transform":L,"--nextui--left":N},l||{})),[I,N,M,z,L,l]),R=(0,g.useMemo)((()=>u&&h&&i?{transitionDuration:"var(--nextui--transitionDuration)",opacity:"var(--nextui--opacity)",width:"var(--nextui--width)",transform:"var(--nextui--transform)",left:"var(--nextui--left)"}:{}),[u,h,i]);return{css:a,gap:E,variant:o,activeColor:r,activeItem:b,updateActiveItem:e=>{var t;y(e),f(e),p(null==e||null==e.getBoundingClientRect?void 0:e.getBoundingClientRect()),m(null==(t=S.current)||null==t.getBoundingClientRect?void 0:t.getBoundingClientRect())},highlightedItem:$,underlineHeight:n,cursorHighlightRef:w,isRounded:T,isHighlightVariant:k,isHighlightSolidVariant:P,isCursorHighlightRounded:s,enableCursorHighlight:i,cursorHighlightCss:R,repositionHighlight:(e,t)=>{var o,r;(null==e?void 0:e.target)instanceof Element&&(p(null==(o=e.target)||null==o.getBoundingClientRect?void 0:o.getBoundingClientRect()),m(null==(r=S.current)||null==r.getBoundingClientRect?void 0:r.getBoundingClientRect()),x(!$),f(t))},resetHighlight:()=>{b?(f(b),p(null==b||null==b.getBoundingClientRect?void 0:b.getBoundingClientRect())):f(null)},wrapperRef:S,className:c,style:B,otherProps:d}}(r),i=Fi(t);return(0,zt.jsx)(i$,{value:n,children:(0,zt.jsxs)(e$,{ref:wh(n.wrapperRef,i),className:Mt("nextui-navbar-content",n.className),css:{gap:n.gap,...n.css},enableCursorHighlight:n.enableCursorHighlight,style:n.style,onMouseLeave:n.resetHighlight,...n.otherProps,children:[n.enableCursorHighlight&&(0,zt.jsx)(Qm,{ref:n.cursorHighlightRef,className:"nextui-navbar-cursor-highlight",color:n.activeColor,css:n.cursorHighlightCss,isHighlightSolidVariant:n.isHighlightSolidVariant,isHighlightVariant:n.isHighlightVariant,isRounded:n.isRounded}),o]})})}));a$.toString=()=>".nextui-navbar-content";const l$=a$,c$=ia(((e,t)=>{var o;const{id:r,css:n,children:i,variant:s,activeColor:a,isActive:l,underlineHeight:c,onMouseEnter:d,onMouseLeave:u,isDisabled:p,className:m,...$}=e,f=s$(),b=Fi(t),y=s||(null==f?void 0:f.variant),v=null==y?void 0:y.toString(),x=null==v.includes?void 0:v.includes("highlight"),w=null==v.includes?void 0:v.includes("highlight-solid"),{hoverProps:S,isHovered:C}=na({isDisabled:p}),k=Ei(r);(0,g.useEffect)((()=>{b.current&&f&&null!=f&&f.enableCursorHighlight&&l&&x&&f.updateActiveItem(null==b?void 0:b.current)}),[b,x,l]);const P=(0,g.useMemo)((()=>{var e;return!!f&&(null==(e=f.highlightedItem)?void 0:e.id)===k}),[k,f]),T=(0,g.useMemo)((()=>{var e;return!(P||null==f||!f.enableCursorHighlight||!w||k!==(null==f||null==(e=f.activeItem)?void 0:e.id))}),[f,k,P,w]),E=(0,g.useMemo)((()=>{const e=[],t="string"==typeof i,o=null==v.includes?void 0:v.includes("highlight-solid");return f||e.push({$$navbarContentItemGap:"$space$8"}),x&&(e.push({dflex:"center",height:"$$navbarItemMaxHeight"}),t?e.push({px:"calc($$navbarContentItemHorizontalPadding * 0.5)"}):e.push({"*:first-child":{size:"100%",px:"calc($$navbarContentItemHorizontalPadding * 0.5)"}})),x&&null!=v.includes&&v.includes("rounded")&&!f.enableCursorHighlight&&e.push({"&:before":{borderRadius:"$pill"}}),f.enableCursorHighlight&&e.push({"&:before":{display:"none"}}),l&&!x&&e.push({$$navbarItemFontWeight:"$fontWeights$semibold"}),C&&f.enableCursorHighlight&&(x&&e.push({color:"$$navbarItemHighlightTextColor"}),o&&e.push({color:"$$navbarItemHighlightSolidTextColor"})),T&&e.push({color:"$$navbarItemActiveColor"}),{...$t(e),...n}}),[i,n,f,v,T,l,C,x]),I="string"==typeof i?(0,zt.jsx)(yd,{children:i}):h().Children.only(i),M=h().cloneElement(I,{id:(null==(o=I.props)?void 0:o.id)||k,onMouseEnter:e=>{var t;null!=f&&f.repositionHighlight?((null==(t=e.target)?void 0:t.id)===k&&f.repositionHighlight(e,null==b?void 0:b.current),null==d||d(e)):null==d||d(e)},onMouseLeave:e=>{null!=f&&f.resetHighlight&&f.enableCursorHighlight&&x?(f.resetHighlight(),null==u||u(e)):null==u||u(e)}});return(0,zt.jsx)(Jm,{ref:b,activeColor:a||(null==f?void 0:f.activeColor),className:Mt("nextui-navbar-item",m),css:E,id:k,isActive:l,underlineHeight:c||(null==f?void 0:f.underlineHeight),variant:y,...zi(S,$),children:M})}));c$.toString=()=>".nextui-navbar-item";const d$=c$,u$=ia(((e,t)=>{const o=Fi(t),{css:r,children:n,isActive:i,color:s,activeColor:a,underlineHeight:l,itemCss:c,itemClassName:d,isDisabled:u,hideIn:p,showIn:h,variant:m,className:$,...f}=e,b=(0,g.useMemo)((()=>s||null!=r&&r.$$linkColor?{...r}:{color:"inherit",height:"100%",width:"fit-content",...r}),[s,r]);return(0,zt.jsx)(d$,{activeColor:a,className:d,css:c,hideIn:p,isActive:i,isDisabled:u,showIn:h,underlineHeight:l,variant:m,children:(0,zt.jsx)(zc,{ref:o,className:Mt("nextui-navbar-link",$),color:s,css:b,...f,children:n})})}));u$.toString=()=>".nextui-navbar-link";const p$=u$,[g$,h$]=Ya({strict:!0,name:"NavbarContext",errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap all navbar components within `<Navbar />`"}),m$=e=>{const{isExpanded:t=!1,className:o,...r}=e;return(0,zt.jsxs)(Ym,{"aria-hidden":!0,className:Mt("nextui-navbar-toggle-icon",o),isExpanded:t,tabIndex:-1,...r,children:[(0,zt.jsx)("span",{className:"line top"}),(0,zt.jsx)("span",{className:"line bottom"})]})};m$.toString=()=>".nextui-navbar-toggle-icon";const $$=m$,f$=ia(((e,t)=>{const{children:o,className:r,autoFocus:n,onChange:i,as:s,css:a,...l}=e,{parentRef:c,setIsCollapseOpen:d}=h$(),[,u]=at(c,{scrollLayer:!0}),p=Fi(t),h=Oa({...e,onChange:e=>{d(e),null==i||i(e),u(e)}}),{buttonProps:m,isPressed:$}=function(e,t,o){const{isSelected:r}=t,{isPressed:n,buttonProps:i}=ds({...e,onPress:yo(t.toggle,e.onPress)},o);return{isPressed:n,buttonProps:vo(i,{"aria-pressed":r})}}(e,h,p),{isFocusVisible:f,focusProps:b}=wi({autoFocus:n}),y=(0,g.useMemo)((()=>o||(0,zt.jsx)($$,{isExpanded:h.isSelected})),[o,h.isSelected]);return(0,zt.jsx)(Xm,{ref:p,as:s,className:Mt("nextui-navbar-toggle",r),css:a,isFocusVisible:f,isPressed:$,...zi(m,b,l),children:y})}));f$.toString=()=>".nextui-navbar-toggle";const b$=f$,[y$,v$]=Ya({strict:!1,name:"NavbarCollapseContext"}),x$=ia(((e,t)=>{var o;const{children:r,className:n,transitionDelay:i,transitionTime:s,transitionMatrix:a,disableAnimation:l,style:c,css:d,...u}=e,p=h$(),h=v$(),m=Fi(t),{isVisible:$,setEntry:f}=Pt(m,{root:null==p||null==(o=p.parentRef)?void 0:o.current,freezeOnceVisible:p.isCollapseOpen});(0,g.useEffect)((()=>{!p.isCollapseOpen&&$&&f(null)}),[$,p.isCollapseOpen]);const b=(0,g.useMemo)((()=>{var e;return null!=h&&h.items?null==(e=h.items)?void 0:e.findIndex((e=>{var t;return(null==e||null==(t=e.props)?void 0:t.children)===r})):-1}),[null==h?void 0:h.items]),y=(0,g.useMemo)((()=>{var e,t,o;return{transitionDelay:null!=(e=null!=i?i:null==h?void 0:h.transitionDelay)?e:0,transitionTime:null!=(t=null!=s?s:null==h?void 0:h.transitionTime)?t:0,transitionMatrix:null!=(o=null!=a?a:null==h?void 0:h.transitionMatrix)?o:{in:"matrix(1, 0, 0, 1, 0, 0)",out:"matrix(0.97, 0, 0, 1, 0, 20)"}}}),[i,s,a,h.transitionMatrix,h.transitionDelay,h.transitionTime]),v=(0,g.useMemo)((()=>h.items&&b>-1?b/h.items.length*.5*1e3+y.transitionDelay:.1),[b,y.transitionDelay,null==h?void 0:h.items]),x=(0,g.useMemo)((()=>{const e=$&&!h.hasScrolled?v:0;return{"--nextui--collapseItemOpacity":$?1:0,"--nextui--collapseItemTransform":$?y.transitionMatrix.in:y.transitionMatrix.out,"--netxui--collapseItemTransition":!l&&p.isCollapseOpen?`opacity ${y.transitionTime}ms cubic-bezier(0.5, 0, 0, 1) ${e}ms, transform ${y.transitionTime}ms cubic-bezier(0.5, 0, 0, 1) ${e}ms`:"none"}}),[b,$,l,v,y.transitionMatrix,y.transitionTime,p.isCollapseOpen,h.hasScrolled]);return(0,zt.jsx)(Gm,{ref:m,className:Mt("nextui-navbar-collapse-item",n),css:{opacity:"var(--nextui--collapseItemOpacity)",transition:"var(--netxui--collapseItemTransition)",transform:"var(--nextui--collapseItemTransform)",...d},disableAnimation:l,style:{...c,...x},...u,children:r})}));x$.toString=()=>".nextui-navbar-collapse-item";const w$=x$,S$=ia(((e,t)=>{const o=function(e={}){var t;const{css:o,children:r,ref:n,transitionDelay:i=0,transitionTime:s=350,transitionMatrix:a={in:"matrix(1, 0, 0, 1, 0, 0)",out:"matrix(0.97, 0, 0, 1, 0, 20)"},className:l,...c}=e,[d,u]=(0,g.useState)(!1),p=h$(),h=Fi(n),[,m]=et(r,w$),[,$]=at(null,{scrollLayer:!0});(0,g.useEffect)((()=>{var e,t;p.isCollapseOpen?$(!0):(h.current&&(null==(t=h.current)||null==t.scrollTo||t.scrollTo({top:0})),u(!1),$(!1));const o=()=>{var e;h.current&&(null==(e=h.current)?void 0:e.scrollTop)>0&&!d&&u(!0)};return null==(e=h.current)||e.addEventListener("scroll",o),()=>{var e;null==(e=h.current)||e.removeEventListener("scroll",o)}}),[p.isCollapseOpen]);const f=(0,g.useMemo)((()=>{const e=[];var t;return p.parentRef&&p.parentRef.current&&e.push({maxHeight:null==(t=p.parentRef.current)?void 0:t.clientHeight}),{...$t(e),...o}}),[null==(t=p.parentRef)?void 0:t.current,o]);return{css:o,domRef:h,children:r,items:m,collpaseCss:f,isOpen:p.isCollapseOpen,hasScrolled:d,transitionDelay:i,transitionTime:s,transitionMatrix:a,className:l,otherProps:c}}({ref:t,...e});return(0,zt.jsx)(y$,{value:o,children:(0,zt.jsx)(qm,{className:Mt("nextui-navbar-collapse",o.className),css:o.collpaseCss,isOpen:o.isOpen,...o.otherProps,children:(0,zt.jsx)(_m,{ref:o.domRef,className:"nextui-navbar-collapse-wrapper",children:o.children})})})}));S$.toString=()=>".nextui-navbar-collapse";const C$=S$,k$=ia(((e,t)=>{const{children:o,...r}=e,n=Fi(t),i=function(e={}){const{css:t,containerCss:o,parentRef:r,isBordered:n,variant:i="static",height:s="76px",borderWeight:a="light",shouldHideOnScroll:l=!1,disableScrollHandler:c=!1,onScrollPositionChange:d,disableBlur:u=!1,className:p,...h}=e,[m,$]=(0,g.useState)(!1),[f,b]=(0,g.useState)(!1),{theme:y}=Je(),v=(0,g.useMemo)((()=>n?`$borderWeights$${a}`:"0px"),[n,a]),x=(0,g.useMemo)((()=>u||f),[u,f]),w=(0,g.useMemo)((()=>"number"==typeof s?`${s}px`:s),[s]);Ve({":root":{$$navbarHeight:w,$$navbarCompactHeight:"calc($$navbarHeight * 0.7)",$$navbarTextColor:"$colors$text",$$navbarBackgroundColor:"$colors$background",$$navbarBlurBackgroundColor:"$colors$backgroundAlpha",$$navbarItemMaxHeight:"calc($$navbarHeight * 0.5)",$$navbarCompactItemMaxHeight:"calc($$navbarHeight * 0.5)",$$navbarBorderColor:"$colors$border",$$navbarBorderRadius:"$radii$lg",$$navbarPadding:"$space$10",$$navbarFloatingMargin:"$space$10",$$navbarContainerMaxWidth:"$breakpoints$lg",$$navbarShadow:"$shadows$md",$$navbarBorderWeight:v,$$navbarBlur:"10px"}})(),kt({elementRef:r,enabled:l||!c,callback:({prevPos:e,currPos:t})=>{null==d||d(t.y),l&&$((o=>{const r=t.y>e.y;return r!==o?r:o}))}});const S=(0,g.useMemo)((()=>{const e=[];var o,r,n,s,a,c;return"floating"===i&&e.push({bg:`linear-gradient(180deg, ${xe(null==y||null==(o=y.colors)||null==(r=o.background)?void 0:r.value,.95)} 44%, ${xe(null==y||null==(n=y.colors)||null==(s=n.background)?void 0:s.value,.46)} 73%, ${xe(null==y||null==(a=y.colors)||null==(c=a.background)?void 0:c.value,0)})`}),l&&e.push({position:"sticky",top:0,right:0,left:0,transform:m?"translateY(-100%)":"translateY(0)",transition:"transform 400ms ease"}),{...$t(e),...t}}),[t,null==y?void 0:y.colors,i,l,m]);return{css:t,variant:i,sticky:m,isBordered:n,containerCss:o,navbarCss:S,parentRef:r,borderWeight:a,shouldHideOnScroll:l,disableBlur:x,isCollapseOpen:f,setIsCollapseOpen:b,className:p,otherProps:h}}(r),[s,a]=et(o,C$);return(0,zt.jsx)(g$,{value:i,children:(0,zt.jsxs)(o$,{ref:n,className:Mt("nextui-navbar",i.className),css:i.navbarCss,disableBlur:i.disableBlur,isBordered:i.isBordered,variant:i.variant,...i.otherProps,children:[(0,zt.jsx)(t$,{className:"nextui-navbar-container",css:i.containerCss,children:s}),a]})})}));k$.toString=()=>".nextui-navbar";const P$=k$;P$.Brand=n$,P$.Content=l$,P$.Item=d$,P$.Link=p$,P$.Toggle=b$,P$.Collapse=C$,P$.CollapseItem=w$;const T$=P$})(),i})()));