@equisoft/design-elements-react 9.9.7-snapshot.20260113134626 → 9.9.7-snapshot.20260114195701
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +3 -3
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
}
|
|
815
815
|
`,v=(0,d.default)(c.Avatar)`
|
|
816
816
|
margin-right: ${({avatarOnly:e})=>e?0:"var(--spacing-1x)"};
|
|
817
|
-
`;function g(e){return e.find(e=>!e.disabled)}t.UserProfile=({ariaLabel:e,buttonAriaLabel:t,className:n,defaultOpen:a=!1,id:r,inverted:i=!0,tag:o,onMenuVisibilityChanged:d,options:c,userEmail:p,username:b,variant:y="avatar-only"})=>{const{t:w}=(0,s.useTranslation)("user-profile"),{isMobile:M}=(0,m.useDeviceContext)(),E=g(c),C=(0,u.useRef)(null),k=M||"avatar-only"===y;return(0,l.jsx)(h,Object.assign({ariaLabel:e||w("ariaLabel"),buttonAriaLabel:t,className:n,"data-testid":"user-profile",defaultOpen:a,dropdownMenuWidth:"auto",hasCaret:!k,id:r,icon:(0,l.jsx)(v,{avatarOnly:k,username:b}),inverted:i,tag:o,isMobile:M},k?{}:{label:b},{onMenuVisibilityChanged:d,firstItemRef:C,render:e=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.GroupItem,{id:"user-label",children:(0,l.jsx)(f.LabelItem,{label:b,description:p})}),(0,l.jsx)(f.GroupItem,{id:"user-actions",children:c.map(t=>(0,l.jsx)(f.NavItem,{"data-testid":`action-${t.value}`,ref:E===t?C:void 0,value:t.value,href:t.href,label:t.label,isHtmlLink:t.isHtmlLink,isExternalLink:t.isExternalLink,lozenge:t.lozenge,disabled:t.disabled,target:t.target,onClick:t.disabled?void 0:n=>{var a;null===(a=t.onClick)||void 0===a||a.call(t,n),e()}},t.value))})]})}))};try{t.getFirstFocusableItem.displayName="getFirstFocusableItem",t.getFirstFocusableItem.__docgenInfo={description:"",displayName:"getFirstFocusableItem",props:{length:{defaultValue:null,description:"Gets or sets the length of the array. This is a number one higher than the highest index in the array.",name:"length",required:!0,type:{name:"number"}},toString:{defaultValue:null,description:"Returns a string representation of an array.",name:"toString",required:!1,type:{name:"() => string"}},toLocaleString:{defaultValue:null,description:"Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.",name:"toLocaleString",required:!1,type:{name:"{ (): string; (locales: string | string[], options?: (NumberFormatOptions & DateTimeFormatOptions)): string; }"}},pop:{defaultValue:null,description:"Removes the last element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"pop",required:!0,type:{name:"() => NavItemProps | undefined"}},push:{defaultValue:null,description:"Appends new elements to the end of an array, and returns the new length of the array.\n@param items New elements to add to the array.",name:"push",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},concat:{defaultValue:null,description:"Combines two or more arrays.\nThis method returns a new array without modifying any existing arrays.\n@param items Additional arrays and/or items to add to the end of the array.\n@param items Additional arrays and/or items to add to the end of the array.",name:"concat",required:!0,type:{name:"{ (...items: ConcatArray<NavItemProps>[]): NavItemProps[]; (...items: (NavItemProps | ConcatArray<NavItemProps>)[]): NavItemProps[]; }"}},join:{defaultValue:null,description:"Adds all the elements of an array into a string, separated by the specified separator string.\n@param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.",name:"join",required:!0,type:{name:"(separator?: string | undefined) => string"}},reverse:{defaultValue:null,description:"Reverses the elements in an array in place.\nThis method mutates the array and returns a reference to the same array.",name:"reverse",required:!0,type:{name:"() => NavItemProps[]"}},shift:{defaultValue:null,description:"Removes the first element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"shift",required:!0,type:{name:"() => NavItemProps | undefined"}},slice:{defaultValue:null,description:"Returns a copy of a section of an array.\nFor both start and end, a negative index can be used to indicate an offset from the end of the array.\nFor example, -2 refers to the second to last element of the array.\n@param start The beginning index of the specified portion of the array.\nIf start is undefined, then the slice begins at index 0.\n@param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\nIf end is undefined, then the slice extends to the end of the array.",name:"slice",required:!0,type:{name:"(start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},sort:{defaultValue:null,description:"Sorts an array in place.\nThis method mutates the array and returns a reference to the same array.\n@param compareFn Function used to determine the order of the elements. It is expected to return\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\nvalue otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.\n```ts\n[11,2,22,1].sort((a, b) => a - b)\n```",name:"sort",required:!0,type:{name:"(compareFn?: ((a: NavItemProps, b: NavItemProps) => number) | undefined) => NavItemProps[]"}},splice:{defaultValue:null,description:"Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove. Omitting this argument will remove all elements from the start\nparamater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type\nthat cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.\n@returns An array containing the elements that were deleted.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove. If value of this argument is either a negative number, zero,\nundefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and\nnot remove any elements.\n@param items Elements to insert into the array in place of the deleted elements.\n@returns An array containing the elements that were deleted.",name:"splice",required:!0,type:{name:"{ (start: number, deleteCount?: number | undefined): NavItemProps[]; (start: number, deleteCount: number, ...items: NavItemProps[]): NavItemProps[]; }"}},unshift:{defaultValue:null,description:"Inserts new elements at the start of an array, and returns the new length of the array.\n@param items Elements to insert at the start of the array.",name:"unshift",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},indexOf:{defaultValue:null,description:"Returns the index of the first occurrence of a value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",name:"indexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},lastIndexOf:{defaultValue:null,description:"Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.",name:"lastIndexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},every:{defaultValue:null,description:"Determines whether all the members of an array satisfy the specified test.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"every",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): boolean; }"}},some:{defaultValue:null,description:"Determines whether the specified callback function returns true for any element of an array.\n@param predicate A function that accepts up to three arguments. The some method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value true, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"some",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any) => boolean"}},forEach:{defaultValue:null,description:"Performs the specified action for each element in an array.\n@param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"forEach",required:!0,type:{name:"(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => void, thisArg?: any) => void"}},map:{defaultValue:null,description:"Calls a defined callback function on each element of an array, and returns an array that contains the results.\n@param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"map",required:!0,type:{name:"<U>(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => U, thisArg?: any) => U[]"}},filter:{defaultValue:null,description:"Returns the elements of an array that meet the condition specified in a callback function.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.",name:"filter",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): NavItemProps[]; }"}},reduce:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduce",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},reduceRight:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduceRight",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},find:{defaultValue:null,description:"Returns the value of the first element in the array where predicate is true, and undefined\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found, find\nimmediately returns that element value. Otherwise, find returns undefined.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"find",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => value is S, thisArg?: any): S | undefined; (predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any): NavItemProps | undefined; }"}},findIndex:{defaultValue:null,description:"Returns the index of the first element in the array where predicate is true, and -1\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found,\nfindIndex immediately returns that element index. Otherwise, findIndex returns -1.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"findIndex",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any) => number"}},fill:{defaultValue:null,description:"Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n@param value value to fill array section with\n@param start index to start filling the array at. If start is negative, it is treated as\nlength+start where length is the length of the array.\n@param end index to stop filling the array at. If end is negative, it is treated as\nlength+end.",name:"fill",required:!0,type:{name:"(value: NavItemProps, start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},copyWithin:{defaultValue:null,description:"Returns the this object after copying a section of the array identified by start and end\nto the same array starting at position target\n@param target If target is negative, it is treated as length+target where length is the\nlength of the array.\n@param start If start is negative, it is treated as length+start. If end is negative, it\nis treated as length+end.\n@param end If not specified, length of the this object is used as its default value.",name:"copyWithin",required:!0,type:{name:"(target: number, start: number, end?: number | undefined) => NavItemProps[]"}},entries:{defaultValue:null,description:"Returns an iterable of key, value pairs for every entry in the array",name:"entries",required:!0,type:{name:"() => ArrayIterator<[number, NavItemProps]>"}},keys:{defaultValue:null,description:"Returns an iterable of keys in the array",name:"keys",required:!0,type:{name:"() => ArrayIterator<number>"}},values:{defaultValue:null,description:"Returns an iterable of values in the array",name:"values",required:!0,type:{name:"() => ArrayIterator<NavItemProps>"}},includes:{defaultValue:null,description:"Determines whether an array includes a certain element, returning true or false as appropriate.\n@param searchElement The element to search for.\n@param fromIndex The position in this array at which to begin searching for searchElement.",name:"includes",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => boolean"}},flatMap:{defaultValue:null,description:"Calls a defined callback function on each element of an array. Then, flattens the result into\na new array.\nThis is identical to a map followed by flat with depth 1.\n@param callback A function that accepts up to three arguments. The flatMap method calls the\ncallback function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callback function. If\nthisArg is omitted, undefined is used as the this value.",name:"flatMap",required:!0,type:{name:"<U, This = undefined>(callback: (this: This, value: NavItemProps, index: number, array: NavItemProps[]) => U | readonly U[], thisArg?: This | undefined) => U[]"}},flat:{defaultValue:null,description:"Returns a new array with all sub-array elements concatenated into it recursively up to the\nspecified depth.\n@param depth The maximum recursion depth",name:"flat",required:!0,type:{name:"<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]"}},"__@iterator@64528":{defaultValue:null,description:"Iterator",name:"__@iterator@64528",required:!0,type:{name:"() => ArrayIterator<NavItemProps>"}},"__@unscopables@66102":{defaultValue:null,description:"Is an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement.",name:"__@unscopables@66102",required:!0,type:{name:"{ [x: number]: boolean | undefined; length?: boolean | undefined; toString?: boolean | undefined; toLocaleString?: boolean | undefined; pop?: boolean | undefined; push?: boolean | undefined; ... 28 more ...; readonly [Symbol.unscopables]?: boolean | undefined; }"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#getFirstFocusableItem"]={docgenInfo:t.getFirstFocusableItem.__docgenInfo,name:"getFirstFocusableItem",path:"src/components/user-profile/user-profile.tsx#getFirstFocusableItem"})}catch(e){}try{t.UserProfile.displayName="UserProfile",t.UserProfile.__docgenInfo={description:"",displayName:"UserProfile",props:{ariaLabel:{defaultValue:{value:"'User menu'"},description:"Sets nav's description",name:"ariaLabel",required:!1,type:{name:"string"}},buttonAriaLabel:{defaultValue:null,description:"",name:"buttonAriaLabel",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultOpen:{defaultValue:{value:!1},description:"Sets menu open by default",name:"defaultOpen",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},inverted:{defaultValue:{value:!0},description:"",name:"inverted",required:!1,type:{name:"boolean"}},tag:{defaultValue:null,description:"Set wrapper element tag",name:"tag",required:!1,type:{name:"enum",value:[{value:'"div"'},{value:'"nav"'}]}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"NavItemProps[]"}},username:{defaultValue:null,description:"",name:"username",required:!0,type:{name:"string"}},userEmail:{defaultValue:null,description:"",name:"userEmail",required:!1,type:{name:"string"}},onMenuVisibilityChanged:{defaultValue:null,description:"",name:"onMenuVisibilityChanged",required:!1,type:{name:"((isOpen: boolean) => void)"}},variant:{defaultValue:{value:"avatar-only"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"avatar-only"'},{value:'"full-name"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#UserProfile"]={docgenInfo:t.UserProfile.__docgenInfo,name:"UserProfile",path:"src/components/user-profile/user-profile.tsx#UserProfile"})}catch(e){}},17412(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavItem=t.LabelItem=t.ItemContent=t.GroupItem=t.ExternalItem=void 0;var a=n(41895);Object.defineProperty(t,"ExternalItem",{enumerable:!0,get:function(){return a.ExternalItem}});var r=n(29817);Object.defineProperty(t,"GroupItem",{enumerable:!0,get:function(){return r.GroupItem}});var i=n(55179);Object.defineProperty(t,"ItemContent",{enumerable:!0,get:function(){return i.ItemContent}});var o=n(38060);Object.defineProperty(t,"LabelItem",{enumerable:!0,get:function(){return o.LabelItem}});var l=n(5859);Object.defineProperty(t,"NavItem",{enumerable:!0,get:function(){return l.NavItem}})},17419(e,t,n){"use strict";t.isSameISOWeek=function(e,t,n){return(0,a.isSameWeek)(e,t,{...n,weekStartsOn:1})};var a=n(624)},17448(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>l});var a,r,i=n(39155);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o.apply(null,arguments)}const l=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,className:"copy_svg__feather copy_svg__feather-copy",viewBox:"0 0 24 24"},e),a||(a=i.createElement("rect",{width:13,height:13,x:9,y:9,rx:2,ry:2})),r||(r=i.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})))}},17461(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Accordion=t.StyledAccordionGroup=void 0;const r=n(31085),i=n(39155),o=a(n(88694)),l=n(66642),u=n(28353);t.StyledAccordionGroup=o.default.div`
|
|
817
|
+
`;function g(e){return e.find(e=>!e.disabled)}t.UserProfile=({ariaLabel:e,buttonAriaLabel:t,className:n,defaultOpen:a=!1,id:r,inverted:i=!0,tag:o,onMenuVisibilityChanged:d,options:c,userEmail:p,username:b,variant:y="avatar-only"})=>{const{t:w}=(0,s.useTranslation)("user-profile"),{isMobile:M}=(0,m.useDeviceContext)(),E=g(c),C=(0,u.useRef)(null),k=M||"avatar-only"===y;return(0,l.jsx)(h,Object.assign({ariaLabel:e||w("ariaLabel"),buttonAriaLabel:t,className:n,"data-testid":"user-profile",defaultOpen:a,dropdownMenuWidth:"auto",hasCaret:!k,id:r,icon:(0,l.jsx)(v,{avatarOnly:k,username:b}),inverted:i,tag:o,isMobile:M},k?{}:{label:b},{onMenuVisibilityChanged:d,firstItemRef:C,render:e=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.GroupItem,{id:"user-label",children:(0,l.jsx)(f.LabelItem,{label:b,description:p})}),(0,l.jsx)(f.GroupItem,{id:"user-actions",children:c.map(t=>(0,l.jsx)(f.NavItem,{"data-testid":`action-${t.value}`,ref:E===t?C:void 0,value:t.value,href:t.href,label:t.label,isHtmlLink:t.isHtmlLink,isExternalLink:t.isExternalLink,lozenge:t.lozenge,disabled:t.disabled,target:t.target,onClick:t.disabled?void 0:n=>{var a;null===(a=t.onClick)||void 0===a||a.call(t,n),e()}},t.value))})]})}))};try{t.getFirstFocusableItem.displayName="getFirstFocusableItem",t.getFirstFocusableItem.__docgenInfo={description:"",displayName:"getFirstFocusableItem",props:{length:{defaultValue:null,description:"Gets or sets the length of the array. This is a number one higher than the highest index in the array.",name:"length",required:!0,type:{name:"number"}},toString:{defaultValue:null,description:"Returns a string representation of an array.",name:"toString",required:!1,type:{name:"() => string"}},toLocaleString:{defaultValue:null,description:"Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.",name:"toLocaleString",required:!1,type:{name:"{ (): string; (locales: string | string[], options?: (NumberFormatOptions & DateTimeFormatOptions)): string; }"}},pop:{defaultValue:null,description:"Removes the last element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"pop",required:!0,type:{name:"() => NavItemProps | undefined"}},push:{defaultValue:null,description:"Appends new elements to the end of an array, and returns the new length of the array.\n@param items New elements to add to the array.",name:"push",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},concat:{defaultValue:null,description:"Combines two or more arrays.\nThis method returns a new array without modifying any existing arrays.\n@param items Additional arrays and/or items to add to the end of the array.\n@param items Additional arrays and/or items to add to the end of the array.",name:"concat",required:!0,type:{name:"{ (...items: ConcatArray<NavItemProps>[]): NavItemProps[]; (...items: (NavItemProps | ConcatArray<NavItemProps>)[]): NavItemProps[]; }"}},join:{defaultValue:null,description:"Adds all the elements of an array into a string, separated by the specified separator string.\n@param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.",name:"join",required:!0,type:{name:"(separator?: string | undefined) => string"}},reverse:{defaultValue:null,description:"Reverses the elements in an array in place.\nThis method mutates the array and returns a reference to the same array.",name:"reverse",required:!0,type:{name:"() => NavItemProps[]"}},shift:{defaultValue:null,description:"Removes the first element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"shift",required:!0,type:{name:"() => NavItemProps | undefined"}},slice:{defaultValue:null,description:"Returns a copy of a section of an array.\nFor both start and end, a negative index can be used to indicate an offset from the end of the array.\nFor example, -2 refers to the second to last element of the array.\n@param start The beginning index of the specified portion of the array.\nIf start is undefined, then the slice begins at index 0.\n@param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\nIf end is undefined, then the slice extends to the end of the array.",name:"slice",required:!0,type:{name:"(start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},sort:{defaultValue:null,description:"Sorts an array in place.\nThis method mutates the array and returns a reference to the same array.\n@param compareFn Function used to determine the order of the elements. It is expected to return\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\nvalue otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.\n```ts\n[11,2,22,1].sort((a, b) => a - b)\n```",name:"sort",required:!0,type:{name:"(compareFn?: ((a: NavItemProps, b: NavItemProps) => number) | undefined) => NavItemProps[]"}},splice:{defaultValue:null,description:"Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove. Omitting this argument will remove all elements from the start\nparamater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type\nthat cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.\n@returns An array containing the elements that were deleted.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove. If value of this argument is either a negative number, zero,\nundefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and\nnot remove any elements.\n@param items Elements to insert into the array in place of the deleted elements.\n@returns An array containing the elements that were deleted.",name:"splice",required:!0,type:{name:"{ (start: number, deleteCount?: number | undefined): NavItemProps[]; (start: number, deleteCount: number, ...items: NavItemProps[]): NavItemProps[]; }"}},unshift:{defaultValue:null,description:"Inserts new elements at the start of an array, and returns the new length of the array.\n@param items Elements to insert at the start of the array.",name:"unshift",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},indexOf:{defaultValue:null,description:"Returns the index of the first occurrence of a value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",name:"indexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},lastIndexOf:{defaultValue:null,description:"Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.",name:"lastIndexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},every:{defaultValue:null,description:"Determines whether all the members of an array satisfy the specified test.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"every",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): boolean; }"}},some:{defaultValue:null,description:"Determines whether the specified callback function returns true for any element of an array.\n@param predicate A function that accepts up to three arguments. The some method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value true, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"some",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any) => boolean"}},forEach:{defaultValue:null,description:"Performs the specified action for each element in an array.\n@param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"forEach",required:!0,type:{name:"(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => void, thisArg?: any) => void"}},map:{defaultValue:null,description:"Calls a defined callback function on each element of an array, and returns an array that contains the results.\n@param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"map",required:!0,type:{name:"<U>(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => U, thisArg?: any) => U[]"}},filter:{defaultValue:null,description:"Returns the elements of an array that meet the condition specified in a callback function.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.",name:"filter",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): NavItemProps[]; }"}},reduce:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduce",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},reduceRight:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduceRight",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},find:{defaultValue:null,description:"Returns the value of the first element in the array where predicate is true, and undefined\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found, find\nimmediately returns that element value. Otherwise, find returns undefined.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"find",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => value is S, thisArg?: any): S | undefined; (predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any): NavItemProps | undefined; }"}},findIndex:{defaultValue:null,description:"Returns the index of the first element in the array where predicate is true, and -1\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found,\nfindIndex immediately returns that element index. Otherwise, findIndex returns -1.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"findIndex",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any) => number"}},fill:{defaultValue:null,description:"Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n@param value value to fill array section with\n@param start index to start filling the array at. If start is negative, it is treated as\nlength+start where length is the length of the array.\n@param end index to stop filling the array at. If end is negative, it is treated as\nlength+end.",name:"fill",required:!0,type:{name:"(value: NavItemProps, start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},copyWithin:{defaultValue:null,description:"Returns the this object after copying a section of the array identified by start and end\nto the same array starting at position target\n@param target If target is negative, it is treated as length+target where length is the\nlength of the array.\n@param start If start is negative, it is treated as length+start. If end is negative, it\nis treated as length+end.\n@param end If not specified, length of the this object is used as its default value.",name:"copyWithin",required:!0,type:{name:"(target: number, start: number, end?: number | undefined) => NavItemProps[]"}},entries:{defaultValue:null,description:"Returns an iterable of key, value pairs for every entry in the array",name:"entries",required:!0,type:{name:"() => ArrayIterator<[number, NavItemProps]>"}},keys:{defaultValue:null,description:"Returns an iterable of keys in the array",name:"keys",required:!0,type:{name:"() => ArrayIterator<number>"}},values:{defaultValue:null,description:"Returns an iterable of values in the array",name:"values",required:!0,type:{name:"() => ArrayIterator<NavItemProps>"}},includes:{defaultValue:null,description:"Determines whether an array includes a certain element, returning true or false as appropriate.\n@param searchElement The element to search for.\n@param fromIndex The position in this array at which to begin searching for searchElement.",name:"includes",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => boolean"}},flatMap:{defaultValue:null,description:"Calls a defined callback function on each element of an array. Then, flattens the result into\na new array.\nThis is identical to a map followed by flat with depth 1.\n@param callback A function that accepts up to three arguments. The flatMap method calls the\ncallback function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callback function. If\nthisArg is omitted, undefined is used as the this value.",name:"flatMap",required:!0,type:{name:"<U, This = undefined>(callback: (this: This, value: NavItemProps, index: number, array: NavItemProps[]) => U | readonly U[], thisArg?: This | undefined) => U[]"}},flat:{defaultValue:null,description:"Returns a new array with all sub-array elements concatenated into it recursively up to the\nspecified depth.\n@param depth The maximum recursion depth",name:"flat",required:!0,type:{name:"<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]"}},"__@iterator@64528":{defaultValue:null,description:"Iterator",name:"__@iterator@64528",required:!0,type:{name:"() => ArrayIterator<NavItemProps>"}},"__@unscopables@66144":{defaultValue:null,description:"Is an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement.",name:"__@unscopables@66144",required:!0,type:{name:"{ [x: number]: boolean | undefined; length?: boolean | undefined; toString?: boolean | undefined; toLocaleString?: boolean | undefined; pop?: boolean | undefined; push?: boolean | undefined; ... 28 more ...; readonly [Symbol.unscopables]?: boolean | undefined; }"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#getFirstFocusableItem"]={docgenInfo:t.getFirstFocusableItem.__docgenInfo,name:"getFirstFocusableItem",path:"src/components/user-profile/user-profile.tsx#getFirstFocusableItem"})}catch(e){}try{t.UserProfile.displayName="UserProfile",t.UserProfile.__docgenInfo={description:"",displayName:"UserProfile",props:{ariaLabel:{defaultValue:{value:"'User menu'"},description:"Sets nav's description",name:"ariaLabel",required:!1,type:{name:"string"}},buttonAriaLabel:{defaultValue:null,description:"",name:"buttonAriaLabel",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultOpen:{defaultValue:{value:!1},description:"Sets menu open by default",name:"defaultOpen",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},inverted:{defaultValue:{value:!0},description:"",name:"inverted",required:!1,type:{name:"boolean"}},tag:{defaultValue:null,description:"Set wrapper element tag",name:"tag",required:!1,type:{name:"enum",value:[{value:'"div"'},{value:'"nav"'}]}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"NavItemProps[]"}},username:{defaultValue:null,description:"",name:"username",required:!0,type:{name:"string"}},userEmail:{defaultValue:null,description:"",name:"userEmail",required:!1,type:{name:"string"}},onMenuVisibilityChanged:{defaultValue:null,description:"",name:"onMenuVisibilityChanged",required:!1,type:{name:"((isOpen: boolean) => void)"}},variant:{defaultValue:{value:"avatar-only"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"avatar-only"'},{value:'"full-name"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#UserProfile"]={docgenInfo:t.UserProfile.__docgenInfo,name:"UserProfile",path:"src/components/user-profile/user-profile.tsx#UserProfile"})}catch(e){}},17412(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavItem=t.LabelItem=t.ItemContent=t.GroupItem=t.ExternalItem=void 0;var a=n(41895);Object.defineProperty(t,"ExternalItem",{enumerable:!0,get:function(){return a.ExternalItem}});var r=n(29817);Object.defineProperty(t,"GroupItem",{enumerable:!0,get:function(){return r.GroupItem}});var i=n(55179);Object.defineProperty(t,"ItemContent",{enumerable:!0,get:function(){return i.ItemContent}});var o=n(38060);Object.defineProperty(t,"LabelItem",{enumerable:!0,get:function(){return o.LabelItem}});var l=n(5859);Object.defineProperty(t,"NavItem",{enumerable:!0,get:function(){return l.NavItem}})},17419(e,t,n){"use strict";t.isSameISOWeek=function(e,t,n){return(0,a.isSameWeek)(e,t,{...n,weekStartsOn:1})};var a=n(624)},17448(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>l});var a,r,i=n(39155);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o.apply(null,arguments)}const l=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,className:"copy_svg__feather copy_svg__feather-copy",viewBox:"0 0 24 24"},e),a||(a=i.createElement("rect",{width:13,height:13,x:9,y:9,rx:2,ry:2})),r||(r=i.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})))}},17461(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Accordion=t.StyledAccordionGroup=void 0;const r=n(31085),i=n(39155),o=a(n(88694)),l=n(66642),u=n(28353);t.StyledAccordionGroup=o.default.div`
|
|
818
818
|
display: flex;
|
|
819
819
|
flex-direction: column;
|
|
820
820
|
justify-content: flex-start;
|
|
@@ -1257,7 +1257,7 @@
|
|
|
1257
1257
|
`,s=i.default.span`
|
|
1258
1258
|
line-height: 1.25rem;
|
|
1259
1259
|
position: relative;
|
|
1260
|
-
`;t.PasswordRule=({label:e,isValid:t,isEmpty:n})=>{const{t:a}=(0,o.useTranslation)("common");let i=null;return n||(i=t?(0,r.jsx)(d,{"aria-hidden":"true",focusable:!1,name:"check",size:"16"}):(0,r.jsx)(d,{"aria-label":`${a("error")},`,focusable:!0,name:"alertOctagon",role:"img",size:"16"})),(0,r.jsxs)(u,{isEmpty:n,isSuccess:t,children:[i,(0,r.jsx)(s,{children:e})]})};try{t.PasswordRule.displayName="PasswordRule",t.PasswordRule.__docgenInfo={description:"",displayName:"PasswordRule",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},isEmpty:{defaultValue:null,description:"",name:"isEmpty",required:!0,type:{name:"boolean"}},isValid:{defaultValue:null,description:"",name:"isValid",required:!0,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/password-creation-input/password-rule.tsx#PasswordRule"]={docgenInfo:t.PasswordRule.__docgenInfo,name:"PasswordRule",path:"src/components/password-creation-input/password-rule.tsx#PasswordRule"})}catch(e){}},27265(e,t){"use strict";t.formatRelative=void 0;const n={lastWeek:"'గత' eeee p",yesterday:"'నిన్న' p",today:"'ఈ రోజు' p",tomorrow:"'రేపు' p",nextWeek:"'తదుపరి' eeee p",other:"P"};t.formatRelative=(e,t,a,r)=>n[e]},27400(e,t,n){"use strict";t.yearsToQuarters=function(e){return Math.trunc(e*a.quartersInYear)};var a=n(98613)},27574(e,t,n){"use strict";t.getQuarter=function(e,t){const n=(0,a.toDate)(e,t?.in);return Math.trunc(n.getMonth()/3)+1};var a=n(24429)},27625(e,t,n){"use strict";n.r(t),n.d(t,{Composite:()=>Ge,CompositeItem:()=>Xe,FloatingArrow:()=>nt,FloatingDelayGroup:()=>wt,FloatingFocusManager:()=>Yt,FloatingList:()=>Oe,FloatingNode:()=>dt,FloatingOverlay:()=>Qt,FloatingPortal:()=>Ft,FloatingTree:()=>st,NextFloatingDelayGroup:()=>Ct,arrow:()=>qe,autoPlacement:()=>Te,autoUpdate:()=>ve.ll,computePosition:()=>ve.rD,detectOverflow:()=>ve.__,flip:()=>xe,getOverflowAncestors:()=>i.v9,hide:()=>Ve,inline:()=>Le,inner:()=>Vn,limitShift:()=>_e,offset:()=>Ce,platform:()=>ve.iD,safePolygon:()=>Pn,shift:()=>ke,size:()=>He,useClick:()=>tn,useClientPoint:()=>an,useDelayGroup:()=>Mt,useDelayGroupContext:()=>yt,useDismiss:()=>un,useFloating:()=>sn,useFloatingNodeId:()=>ut,useFloatingParentNodeId:()=>ot,useFloatingPortalNode:()=>At,useFloatingRootContext:()=>dn,useFloatingTree:()=>lt,useFocus:()=>mn,useHover:()=>vt,useId:()=>tt,useInnerOffset:()=>Ln,useInteractions:()=>fn,useListItem:()=>Re,useListNavigation:()=>wn,useMergeRefs:()=>Se,useNextDelayGroup:()=>kt,useRole:()=>En,useTransitionStatus:()=>_n,useTransitionStyles:()=>xn,useTypeahead:()=>Hn});var a=n(39155),r=n.t(a,2),i=n(1860),o=n(22166),l=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),u="undefined"==typeof Element,d=u?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!u&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},c=function(e,t){var n;void 0===t&&(t=!0);var a=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===a||"true"===a||t&&e&&c(e.parentNode)},m=function(e,t,n){if(c(e))return[];var a=Array.prototype.slice.apply(e.querySelectorAll(l));return t&&d.call(e,l)&&a.unshift(e),a.filter(n)},p=function(e,t,n){for(var a=[],r=Array.from(e);r.length;){var i=r.shift();if(!c(i,!1))if("SLOT"===i.tagName){var o=i.assignedElements(),u=o.length?o:i.children,s=p(u,!0,n);n.flatten?a.push.apply(a,s):a.push({scopeParent:i,candidates:s})}else{d.call(i,l)&&n.filter(i)&&(t||!e.includes(i))&&a.push(i);var m=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),f=!c(m,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(m&&f){var h=p(!0===m?i.children:m.children,!0,n);n.flatten?a.push.apply(a,h):a.push({scopeParent:i,candidates:h})}else r.unshift.apply(r,i.children)}}return a},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},h=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!f(e)?0:e.tabIndex},v=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},g=function(e){return"INPUT"===e.tagName},b=function(e){var t=e.getBoundingClientRect(),n=t.width,a=t.height;return 0===n&&0===a},y=function(e,t){return!(t.disabled||c(t)||function(e){return g(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,a=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var r=d.call(e,"details>summary:first-of-type")?e.parentElement:e;if(d.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return b(e)}else{if("function"==typeof a){for(var i=e;e;){var o=e.parentElement,l=s(e);if(o&&!o.shadowRoot&&!0===a(o))return b(e);e=e.assignedSlot?e.assignedSlot:o||l===e.ownerDocument?o:l.host}e=i}if(function(e){var t,n,a,r,i=e&&s(e),o=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=o)&&void 0!==n&&null!==(a=n.ownerDocument)&&void 0!==a&&a.contains(o)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!l&&o;){var u,d,c;l=!(null===(d=o=null===(u=i=s(o))||void 0===u?void 0:u.host)||void 0===d||null===(c=d.ownerDocument)||void 0===c||!c.contains(o))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var a=t.children.item(n);if("LEGEND"===a.tagName)return!!d.call(t,"fieldset[disabled] *")||!a.contains(e)}return!0}t=t.parentElement}return!1}(t))},w=function(e,t){return!(function(e){return function(e){return g(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),a=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=a(window.CSS.escape(e.name));else try{t=a(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)}(t)||h(t)<0||!y(e,t))},M=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},E=function(e){var t=[],n=[];return e.forEach(function(e,a){var r=!!e.scopeParent,i=r?e.scopeParent:e,o=function(e,t){var n=h(e);return n<0&&t&&!f(e)?0:n}(i,r),l=r?E(e.candidates):i;0===o?r?t.push.apply(t,l):t.push(i):n.push({documentOrder:a,tabIndex:o,item:e,isScope:r,content:l})}),n.sort(v).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},C=function(e,t){var n;return n=(t=t||{}).getShadowRoot?p([e],t.includeContainer,{filter:w.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:M}):m(e,t.includeContainer,w.bind(null,t)),E(n)},k=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==d.call(e,l)&&w(t,e)};function _(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function x(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function H(){return/apple/i.test(navigator.vendor)}function T(){const e=/android/i;return e.test(_())||e.test(x())}function V(){return x().includes("jsdom/")}const L="data-floating-ui-focusable",q="ArrowLeft",S="ArrowRight";function P(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function D(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function O(e){return"composedPath"in e?e.composedPath()[0]:e.target}function R(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function I(e){return(null==e?void 0:e.ownerDocument)||document}function j(e){return(0,i.sb)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function A(e){return!!e&&"combobox"===e.getAttribute("role")&&j(e)}function F(e){return e?e.hasAttribute(L)?e:e.querySelector("["+L+"]")||e:null}function z(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var a;return e.parentId===t&&(!n||(null==(a=e.context)?void 0:a.open))}).flatMap(t=>[t,...z(e,t.id,n)])}function W(e,t){var n;let a=[],r=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;r;){const t=e.find(e=>e.id===r);r=null==t?void 0:t.parentId,t&&(a=a.concat(t))}return a}function N(e){e.preventDefault(),e.stopPropagation()}function B(e){return!(0!==e.mozInputSource||!e.isTrusted)||(T()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function $(e){return!V()&&(!T()&&0===e.width&&0===e.height||T()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function U(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var K="undefined"!=typeof document?a.useLayoutEffect:function(){};function Y(e){const t=a.useRef(e);return K(()=>{t.current=e}),t}const G={...r}.useInsertionEffect||(e=>e());function X(e){const t=a.useRef(()=>{});return G(()=>{t.current=e}),a.useCallback(function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return null==t.current?void 0:t.current(...n)},[])}function J(e,t,n){return Math.floor(e/t)!==n}function Q(e,t){return t<0||t>=e.current.length}function Z(e,t){return te(e,{disabledIndices:t})}function ee(e,t){return te(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function te(e,t){let{startingIndex:n=-1,decrement:a=!1,disabledIndices:r,amount:i=1}=void 0===t?{}:t,o=n;do{o+=a?-i:i}while(o>=0&&o<=e.current.length-1&&oe(e,o,r));return o}function ne(e,t){let{event:n,orientation:a,loop:r,rtl:i,cols:l,disabledIndices:u,minIndex:d,maxIndex:s,prevIndex:c,stopEvent:m=!1}=t,p=c;if("ArrowUp"===n.key){if(m&&N(n),-1===c)p=s;else if(p=te(e,{startingIndex:p,amount:l,decrement:!0,disabledIndices:u}),r&&(c-l<d||p<0)){const e=c%l,t=s%l,n=s-(t-e);p=t===e?s:t>e?n:n-l}Q(e,p)&&(p=c)}if("ArrowDown"===n.key&&(m&&N(n),-1===c?p=d:(p=te(e,{startingIndex:c,amount:l,disabledIndices:u}),r&&c+l>s&&(p=te(e,{startingIndex:c%l-l,amount:l,disabledIndices:u}))),Q(e,p)&&(p=c)),"both"===a){const t=(0,o.RI)(c/l);n.key===(i?q:S)&&(m&&N(n),c%l!==l-1?(p=te(e,{startingIndex:c,disabledIndices:u}),r&&J(p,l,t)&&(p=te(e,{startingIndex:c-c%l-1,disabledIndices:u}))):r&&(p=te(e,{startingIndex:c-c%l-1,disabledIndices:u})),J(p,l,t)&&(p=c)),n.key===(i?S:q)&&(m&&N(n),c%l!==0?(p=te(e,{startingIndex:c,decrement:!0,disabledIndices:u}),r&&J(p,l,t)&&(p=te(e,{startingIndex:c+(l-c%l),decrement:!0,disabledIndices:u}))):r&&(p=te(e,{startingIndex:c+(l-c%l),decrement:!0,disabledIndices:u})),J(p,l,t)&&(p=c));const a=(0,o.RI)(s/l)===t;Q(e,p)&&(p=r&&a?n.key===(i?S:q)?s:te(e,{startingIndex:c-c%l-1,disabledIndices:u}):c)}return p}function ae(e,t,n){const a=[];let r=0;return e.forEach((e,i)=>{let{width:o,height:l}=e,u=!1;for(n&&(r=0);!u;){const e=[];for(let n=0;n<o;n++)for(let a=0;a<l;a++)e.push(r+n+a*t);r%t+o<=t&&e.every(e=>null==a[e])?(e.forEach(e=>{a[e]=i}),u=!0):r++}}),[...a]}function re(e,t,n,a,r){if(-1===e)return-1;const i=n.indexOf(e),o=t[e];switch(r){case"tl":return i;case"tr":return o?i+o.width-1:i;case"bl":return o?i+(o.height-1)*a:i;case"br":return n.lastIndexOf(e)}}function ie(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function oe(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);const a=e.current[t];return null==a||a.hasAttribute("disabled")||"true"===a.getAttribute("aria-disabled")}const le=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ue(e,t){const n=C(e,le()),a=n.length;if(0===a)return;const r=P(I(e)),i=n.indexOf(r);return n[-1===i?1===t?0:a-1:i+t]}function de(e){return ue(I(e).body,1)||e}function se(e){return ue(I(e).body,-1)||e}function ce(e,t){const n=t||e.currentTarget,a=e.relatedTarget;return!a||!D(n,a)}function me(e){C(e,le()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function pe(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}var fe=n(31085),he=n(69514),ve=n(18684),ge="undefined"!=typeof document?a.useLayoutEffect:function(){};function be(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,a,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;0!==a--;)if(!be(e[a],t[a]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;0!==a--;)if(!{}.hasOwnProperty.call(t,r[a]))return!1;for(a=n;0!==a--;){const n=r[a];if(!("_owner"===n&&e.$$typeof||be(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function ye(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function we(e,t){const n=ye(e);return Math.round(t*n)/n}function Me(e){const t=a.useRef(e);return ge(()=>{t.current=e}),t}const Ee=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:a}="function"==typeof e?e(t):e;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?(0,ve.UE)({element:n.current,padding:a}).fn(t):{}:n?(0,ve.UE)({element:n,padding:a}).fn(t):{};var r}}),Ce=(e,t)=>({...(0,ve.cY)(e),options:[e,t]}),ke=(e,t)=>({...(0,ve.BN)(e),options:[e,t]}),_e=(e,t)=>({...(0,ve.ER)(e),options:[e,t]}),xe=(e,t)=>({...(0,ve.UU)(e),options:[e,t]}),He=(e,t)=>({...(0,ve.Ej)(e),options:[e,t]}),Te=(e,t)=>({...(0,ve.RK)(e),options:[e,t]}),Ve=(e,t)=>({...(0,ve.jD)(e),options:[e,t]}),Le=(e,t)=>({...(0,ve.mG)(e),options:[e,t]}),qe=(e,t)=>({...Ee(e),options:[e,t]});function Se(e){const t=a.useRef(void 0),n=a.useCallback(t=>{const n=e.map(e=>{if(null!=e){if("function"==typeof e){const n=e,a=n(t);return"function"==typeof a?a:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return a.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function Pe(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const De=a.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Oe(e){const{children:t,elementsRef:n,labelsRef:r}=e,[i,o]=a.useState(()=>new Set),l=a.useCallback(e=>{o(t=>new Set(t).add(e))},[]),u=a.useCallback(e=>{o(t=>{const n=new Set(t);return n.delete(e),n})},[]),d=a.useMemo(()=>{const e=new Map;return Array.from(i.keys()).sort(Pe).forEach((t,n)=>{e.set(t,n)}),e},[i]);return(0,fe.jsx)(De.Provider,{value:a.useMemo(()=>({register:l,unregister:u,map:d,elementsRef:n,labelsRef:r}),[l,u,d,n,r]),children:t})}function Re(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:r,map:i,elementsRef:o,labelsRef:l}=a.useContext(De),[u,d]=a.useState(null),s=a.useRef(null),c=a.useCallback(e=>{if(s.current=e,null!==u&&(o.current[u]=e,l)){var n;const a=void 0!==t;l.current[u]=a?t:null!=(n=null==e?void 0:e.textContent)?n:null}},[u,o,l,t]);return K(()=>{const e=s.current;if(e)return n(e),()=>{r(e)}},[n,r]),K(()=>{const e=s.current?i.get(s.current):null;null!=e&&d(e)},[i]),a.useMemo(()=>({ref:c,index:null==u?-1:u}),[u,c])}const Ie="data-floating-ui-focusable",je="active",Ae="selected",Fe="ArrowLeft",ze="ArrowRight",We="ArrowUp",Ne="ArrowDown";function Be(e,t){return"function"==typeof e?e(t):e?a.cloneElement(e,t):(0,fe.jsx)("div",{...t})}const $e=a.createContext({activeIndex:0,onNavigate:()=>{}}),Ue=[Fe,ze],Ke=[We,Ne],Ye=[...Ue,...Ke],Ge=a.forwardRef(function(e,t){const{render:n,orientation:r="both",loop:i=!0,rtl:o=!1,cols:l=1,disabledIndices:u,activeIndex:d,onNavigate:s,itemSizes:c,dense:m=!1,...p}=e,[f,h]=a.useState(0),v=null!=d?d:f,g=X(null!=s?s:h),b=a.useRef([]),y=n&&"function"!=typeof n?n.props:{},w=a.useMemo(()=>({activeIndex:v,onNavigate:g}),[v,g]),M=l>1,E={...p,...y,ref:t,"aria-orientation":"both"===r?void 0:r,onKeyDown(e){null==p.onKeyDown||p.onKeyDown(e),null==y.onKeyDown||y.onKeyDown(e),function(e){if(!Ye.includes(e.key))return;let t=v;const n=Z(b,u),a=ee(b,u),d=o?Fe:ze,s=o?ze:Fe;if(M){const s=c||Array.from({length:b.current.length},()=>({width:1,height:1})),p=ae(s,l,m),f=p.findIndex(e=>null!=e&&!oe(b,e,u)),h=p.reduce((e,t,n)=>null==t||oe(b,t,u)?e:n,-1),g=p[ne({current:p.map(e=>e?b.current[e]:null)},{event:e,orientation:r,loop:i,rtl:o,cols:l,disabledIndices:ie([...("function"!=typeof u?u:null)||b.current.map((e,t)=>oe(b,t,u)?t:void 0),void 0],p),minIndex:f,maxIndex:h,prevIndex:re(v>a?n:v,s,p,l,e.key===Ne?"bl":e.key===d?"tr":"tl")})];null!=g&&(t=g)}const p={horizontal:[d],vertical:[Ne],both:[d,Ne]}[r],f={horizontal:[s],vertical:[We],both:[s,We]}[r],h=M?Ye:{horizontal:Ue,vertical:Ke,both:Ye}[r];var y;t===v&&[...p,...f].includes(e.key)&&(t=i&&t===a&&p.includes(e.key)?n:i&&t===n&&f.includes(e.key)?a:te(b,{startingIndex:t,decrement:f.includes(e.key),disabledIndices:u})),t===v||Q(b,t)||(e.stopPropagation(),h.includes(e.key)&&e.preventDefault(),g(t),null==(y=b.current[t])||y.focus())}(e)}};return(0,fe.jsx)($e.Provider,{value:w,children:(0,fe.jsx)(Oe,{elementsRef:b,children:Be(n,E)})})}),Xe=a.forwardRef(function(e,t){const{render:n,...r}=e,i=n&&"function"!=typeof n?n.props:{},{activeIndex:o,onNavigate:l}=a.useContext($e),{ref:u,index:d}=Re(),s=Se([u,t,i.ref]),c=o===d;return Be(n,{...r,...i,ref:s,tabIndex:c?0:-1,"data-active":c?"":void 0,onFocus(e){null==r.onFocus||r.onFocus(e),null==i.onFocus||i.onFocus(e),l(d)}})}),Je={...a};let Qe=!1,Ze=0;const et=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ze++,tt=Je.useId||function(){const[e,t]=a.useState(()=>Qe?et():void 0);return K(()=>{null==e&&t(et())},[]),a.useEffect(()=>{Qe=!0},[]),e},nt=a.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:l}},width:u=14,height:d=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:m,stroke:p,d:f,style:{transform:h,...v}={},...g}=e,b=tt(),[y,w]=a.useState(!1);if(K(()=>{r&&"rtl"===(0,i.L9)(r).direction&&w(!0)},[r]),!r)return null;const[M,E]=n.split("-"),C="top"===M||"bottom"===M;let k=m;(C&&null!=l&&l.x||!C&&null!=l&&l.y)&&(k=null);const _=2*c,x=_/2,H=u/2*(s/-8+1),T=d/2*s/4,V=!!f,L=k&&"end"===E?"bottom":"top";let q=k&&"end"===E?"right":"left";k&&y&&(q="end"===E?"left":"right");const S=null!=(null==o?void 0:o.x)?k||o.x:"",P=null!=(null==o?void 0:o.y)?k||o.y:"",D=f||"M0,0 H"+u+" L"+(u-H)+","+(d-T)+" Q"+u/2+","+d+" "+H+","+(d-T)+" Z",O={top:V?"rotate(180deg)":"",left:V?"rotate(90deg)":"rotate(-90deg)",bottom:V?"":"rotate(180deg)",right:V?"rotate(-90deg)":"rotate(90deg)"}[M];return(0,fe.jsxs)("svg",{...g,"aria-hidden":!0,ref:t,width:V?u:u+_,height:u,viewBox:"0 0 "+u+" "+(d>u?d:u),style:{position:"absolute",pointerEvents:"none",[q]:S,[L]:P,[M]:C||V?"100%":"calc(100% - "+_/2+"px)",transform:[O,h].filter(e=>!!e).join(" "),...v},children:[_>0&&(0,fe.jsx)("path",{clipPath:"url(#"+b+")",fill:"none",stroke:p,strokeWidth:_+(f?0:1),d:D}),(0,fe.jsx)("path",{stroke:_&&!f?g.fill:"none",d:D}),(0,fe.jsx)("clipPath",{id:b,children:(0,fe.jsx)("rect",{x:-x,y:x*(V?-1:1),width:u+_,height:u})})]})});function at(){const e=new Map;return{emit(t,n){var a;null==(a=e.get(t))||a.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var a;null==(a=e.get(t))||a.delete(n)}}}const rt=a.createContext(null),it=a.createContext(null),ot=()=>{var e;return(null==(e=a.useContext(rt))?void 0:e.id)||null},lt=()=>a.useContext(it);function ut(e){const t=tt(),n=lt(),a=ot(),r=e||a;return K(()=>{if(!t)return;const e={id:t,parentId:r};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}},[n,t,r]),t}function dt(e){const{children:t,id:n}=e,r=ot();return(0,fe.jsx)(rt.Provider,{value:a.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function st(e){const{children:t}=e,n=a.useRef([]),r=a.useCallback(e=>{n.current=[...n.current,e]},[]),i=a.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),[o]=a.useState(()=>at());return(0,fe.jsx)(it.Provider,{value:a.useMemo(()=>({nodesRef:n,addNode:r,removeNode:i,events:o}),[r,i,o]),children:t})}function ct(e){return"data-floating-ui-"+e}function mt(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const pt=ct("safe-polygon");function ft(e,t,n){if(n&&!U(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function ht(e){return"function"==typeof e?e():e}function vt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:l,elements:u}=e,{enabled:d=!0,delay:s=0,handleClose:c=null,mouseOnly:m=!1,restMs:p=0,move:f=!0}=t,h=lt(),v=ot(),g=Y(c),b=Y(s),y=Y(n),w=Y(p),M=a.useRef(),E=a.useRef(-1),C=a.useRef(),k=a.useRef(-1),_=a.useRef(!0),x=a.useRef(!1),H=a.useRef(()=>{}),T=a.useRef(!1),V=X(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});a.useEffect(()=>{if(d)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(mt(E),mt(k),_.current=!0,T.current=!1)}},[d,l]),a.useEffect(()=>{if(!d)return;if(!g.current)return;if(!n)return;function e(e){V()&&r(!1,e,"hover")}const t=I(u.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[u.floating,n,r,d,g,V]);const L=a.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const a=ft(b.current,"close",M.current);a&&!C.current?(mt(E),E.current=window.setTimeout(()=>r(!1,e,n),a)):t&&(mt(E),r(!1,e,n))},[b,r]),q=X(()=>{H.current(),C.current=void 0}),S=X(()=>{if(x.current){const e=I(u.floating).body;e.style.pointerEvents="",e.removeAttribute(pt),x.current=!1}}),P=X(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));a.useEffect(()=>{if(d&&(0,i.vq)(u.domReference)){const r=u.domReference,i=u.floating;return n&&r.addEventListener("mouseleave",a),f&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",a),i.addEventListener("mouseenter",l),i.addEventListener("mouseleave",s)),()=>{n&&r.removeEventListener("mouseleave",a),f&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",a),i.removeEventListener("mouseenter",l),i.removeEventListener("mouseleave",s))}}function e(e){if(mt(E),_.current=!1,m&&!U(M.current)||ht(w.current)>0&&!ft(b.current,"open"))return;const t=ft(b.current,"open",M.current);t?E.current=window.setTimeout(()=>{y.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(P())return void S();H.current();const t=I(u.floating);if(mt(k),T.current=!1,g.current&&o.current.floatingContext){n||mt(E),C.current=g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){S(),q(),P()||L(e,!0,"safe-polygon")}});const a=C.current;return t.addEventListener("mousemove",a),void(H.current=()=>{t.removeEventListener("mousemove",a)})}("touch"!==M.current||!D(u.floating,e.relatedTarget))&&L(e)}function a(e){P()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){S(),q(),P()||L(e)}})(e))}function l(){mt(E)}function s(e){P()||L(e,!1)}},[u,d,e,m,f,L,q,S,r,n,y,h,b,g,o,P,w]),K(()=>{var e;if(d&&n&&null!=(e=g.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&V()){x.current=!0;const e=u.floating;if((0,i.vq)(u.domReference)&&e){var t;const n=I(u.floating).body;n.setAttribute(pt,"");const a=u.domReference,r=null==h||null==(t=h.nodesRef.current.find(e=>e.id===v))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),n.style.pointerEvents="none",a.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",a.style.pointerEvents="",e.style.pointerEvents=""}}}},[d,n,v,u,h,g,V]),K(()=>{n||(M.current=void 0,T.current=!1,q(),S())},[n,q,S]),a.useEffect(()=>()=>{q(),mt(E),mt(k),S()},[d,u.domReference,q,S]);const O=a.useMemo(()=>{function e(e){M.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function a(){_.current||y.current||r(!0,t,"hover")}m&&!U(M.current)||n||0===ht(w.current)||T.current&&e.movementX**2+e.movementY**2<2||(mt(k),"touch"===M.current?a():(T.current=!0,k.current=window.setTimeout(a,ht(w.current))))}}},[m,r,n,y,w]);return a.useMemo(()=>d?{reference:O}:{},[d,O])}const gt=()=>{},bt=a.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:gt,setState:gt,isInstantPhase:!1}),yt=()=>a.useContext(bt);function wt(e){const{children:t,delay:n,timeoutMs:r=0}=e,[i,o]=a.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),l=a.useRef(null),u=a.useCallback(e=>{o({currentId:e})},[]);return K(()=>{i.currentId?null===l.current?l.current=i.currentId:i.isInstantPhase||o({isInstantPhase:!0}):(i.isInstantPhase&&o({isInstantPhase:!1}),l.current=null)},[i.currentId,i.isInstantPhase]),(0,fe.jsx)(bt.Provider,{value:a.useMemo(()=>({...i,setState:o,setCurrentId:u}),[i,u]),children:t})}function Mt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,floatingId:r}=e,{id:i,enabled:o=!0}=t,l=null!=i?i:r,u=yt(),{currentId:d,setCurrentId:s,initialDelay:c,setState:m,timeoutMs:p}=u;return K(()=>{o&&d&&(m({delay:{open:1,close:ft(c,"close")}}),d!==l&&a(!1))},[o,l,a,m,d,c]),K(()=>{function e(){a(!1),m({delay:c,currentId:null})}if(o&&d&&!n&&d===l){if(p){const t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,m,d,l,a,c,p]),K(()=>{o&&s!==gt&&n&&s(l)},[o,n,s,l]),u}const Et=a.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeoutIdRef:{current:-1},currentIdRef:{current:null},currentContextRef:{current:null}});function Ct(e){const{children:t,delay:n,timeoutMs:r=0}=e,i=a.useRef(n),o=a.useRef(n),l=a.useRef(null),u=a.useRef(null),d=a.useRef(-1);return(0,fe.jsx)(Et.Provider,{value:a.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:o,currentIdRef:l,timeoutMs:r,currentContextRef:u,timeoutIdRef:d}),[r]),children:t})}function kt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:i}=e,{enabled:o=!0}=t,l=a.useContext(Et),{currentIdRef:u,delayRef:d,timeoutMs:s,initialDelayRef:c,currentContextRef:m,hasProvider:p,timeoutIdRef:f}=l,[h,v]=a.useState(!1);return K(()=>{function e(){var e;v(!1),null==(e=m.current)||e.setIsInstantPhase(!1),u.current=null,m.current=null,d.current=c.current}if(o&&u.current&&!n&&u.current===i){if(v(!1),s)return f.current=window.setTimeout(e,s),()=>{clearTimeout(f.current)};e()}},[o,n,i,u,d,s,c,m,f]),K(()=>{if(!o)return;if(!n)return;const e=m.current,t=u.current;m.current={onOpenChange:r,setIsInstantPhase:v},u.current=i,d.current={open:0,close:ft(c.current,"close")},null!==t&&t!==i?(mt(f),v(!0),null==e||e.setIsInstantPhase(!0),null==e||e.onOpenChange(!1)):(v(!1),null==e||e.setIsInstantPhase(!1))},[o,n,i,r,u,d,s,c,m,f]),K(()=>()=>{m.current=null},[m]),a.useMemo(()=>({hasProvider:p,delayRef:d,isInstantPhase:h}),[p,d,h])}let _t=0;function xt(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:a=!0,sync:r=!1}=t;a&&cancelAnimationFrame(_t);const i=()=>null==e?void 0:e.focus({preventScroll:n});r?i():_t=requestAnimationFrame(i)}function Ht(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}const Tt={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Vt(e){return"inert"===e?Tt.inert:"aria-hidden"===e?Tt["aria-hidden"]:Tt.none}let Lt=new WeakSet,qt={},St=0;const Pt=e=>e&&(e.host||Pt(e.parentNode));function Dt(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=(r=e[0],(null==r?void 0:r.ownerDocument)||document).body;var r;return function(e,t,n,a){const r="data-floating-ui-inert",o=a?"inert":n?"aria-hidden":null,l=(u=t,e.map(e=>{if(u.contains(e))return e;const t=Pt(e);return u.contains(t)?t:null}).filter(e=>null!=e));var u;const d=new Set,s=new Set(l),c=[];qt[r]||(qt[r]=new WeakMap);const m=qt[r];return l.forEach(function e(t){t&&!d.has(t)&&(d.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!s.has(t)&&[].forEach.call(t.children,t=>{if("script"!==(0,i.mq)(t))if(d.has(t))e(t);else{const e=o?t.getAttribute(o):null,n=null!==e&&"false"!==e,a=Vt(o),i=(a.get(t)||0)+1,l=(m.get(t)||0)+1;a.set(t,i),m.set(t,l),c.push(t),1===i&&n&&Lt.add(t),1===l&&t.setAttribute(r,""),!n&&o&&t.setAttribute(o,"inert"===o?"":"true")}})}(t),d.clear(),St++,()=>{c.forEach(e=>{const t=Vt(o),n=(t.get(e)||0)-1,a=(m.get(e)||0)-1;t.set(e,n),m.set(e,a),n||(!Lt.has(e)&&o&&e.removeAttribute(o),Lt.delete(e)),a||e.removeAttribute(r)}),St--,St||(Tt.inert=new WeakMap,Tt["aria-hidden"]=new WeakMap,Tt.none=new WeakMap,Lt=new WeakSet,qt={})}}(e.concat(Array.from(a.querySelectorAll('[aria-live],[role="status"],output'))),a,t,n)}const Ot={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Rt=a.forwardRef(function(e,t){const[n,r]=a.useState();K(()=>{H()&&r("button")},[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[ct("focus-guard")]:"",style:Ot};return(0,fe.jsx)("span",{...e,...i})}),It=a.createContext(null),jt=ct("portal");function At(e){void 0===e&&(e={});const{id:t,root:n}=e,r=tt(),o=zt(),[l,u]=a.useState(null),d=a.useRef(null);return K(()=>()=>{null==l||l.remove(),queueMicrotask(()=>{d.current=null})},[l]),K(()=>{if(!r)return;if(d.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(jt,""),e.appendChild(n),d.current=n,u(n)},[t,r]),K(()=>{if(null===n)return;if(!r)return;if(d.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!(0,i.Ll)(e)&&(e=e.current),e=e||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,e.appendChild(a));const l=document.createElement("div");l.id=r,l.setAttribute(jt,""),e=a||e,e.appendChild(l),d.current=l,u(l)},[t,n,r,o]),l}function Ft(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,o=At({id:n,root:r}),[l,u]=a.useState(null),d=a.useRef(null),s=a.useRef(null),c=a.useRef(null),m=a.useRef(null),p=null==l?void 0:l.modal,f=null==l?void 0:l.open,h=!!l&&!l.modal&&l.open&&i&&!(!r&&!o);return a.useEffect(()=>{if(o&&i&&!p)return o.addEventListener("focusin",e,!0),o.addEventListener("focusout",e,!0),()=>{o.removeEventListener("focusin",e,!0),o.removeEventListener("focusout",e,!0)};function e(e){o&&ce(e)&&("focusin"===e.type?pe:me)(o)}},[o,i,p]),a.useEffect(()=>{o&&(f||pe(o))},[f,o]),(0,fe.jsxs)(It.Provider,{value:a.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:d,afterOutsideRef:s,beforeInsideRef:c,afterInsideRef:m,portalNode:o,setFocusManagerState:u}),[i,o]),children:[h&&o&&(0,fe.jsx)(Rt,{"data-type":"outside",ref:d,onFocus:e=>{if(ce(e,o)){var t;null==(t=c.current)||t.focus()}else{const e=se(l?l.domReference:null);null==e||e.focus()}}}),h&&o&&(0,fe.jsx)("span",{"aria-owns":o.id,style:Ot}),o&&he.createPortal(t,o),h&&o&&(0,fe.jsx)(Rt,{"data-type":"outside",ref:s,onFocus:e=>{if(ce(e,o)){var t;null==(t=m.current)||t.focus()}else{const t=de(l?l.domReference:null);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const zt=()=>a.useContext(It);function Wt(e){return a.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let Nt=[];function Bt(){Nt=Nt.filter(e=>e.isConnected)}function $t(){return Bt(),Nt[Nt.length-1]}function Ut(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const a=le(),r=function(e,t){return(t=t||{}).getShadowRoot?p([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):m(e,t.includeContainer,y.bind(null,t))}(e,a),i=r.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return k(e,a)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),o=e.getAttribute("tabindex");t.current.includes("floating")||0===i.length?"0"!==o&&e.setAttribute("tabindex","0"):("-1"!==o||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const Kt=a.forwardRef(function(e,t){return(0,fe.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:Ot})});function Yt(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:l=!0,initialFocus:u=0,returnFocus:d=!0,restoreFocus:s=!1,modal:c=!0,visuallyHiddenDismiss:m=!1,closeOnFocusOut:p=!0,outsideElementsInert:f=!1,getInsideElements:h=()=>[]}=e,{open:v,onOpenChange:g,events:b,dataRef:y,elements:{domReference:w,floating:M}}=t,E=X(()=>{var e;return null==(e=y.current.floatingContext)?void 0:e.nodeId}),_=X(h),x="number"==typeof u&&u<0,H=A(w)&&x,T="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,V=!T||l,L=!V||T&&f,q=Y(o),S=Y(u),R=Y(d),j=lt(),U=zt(),G=a.useRef(null),J=a.useRef(null),Q=a.useRef(!1),Z=a.useRef(!1),ee=a.useRef(-1),te=a.useRef(-1),ne=null!=U,ae=F(M),re=X(function(e){return void 0===e&&(e=ae),e?C(e,le()):[]}),ie=X(e=>{const t=re(e);return q.current.map(e=>w&&"reference"===e?w:ae&&"floating"===e?ae:t).filter(Boolean).flat()});a.useEffect(()=>{if(r)return;if(!c)return;function e(e){if("Tab"===e.key){D(ae,P(I(ae)))&&0===re().length&&!H&&N(e);const t=ie(),n=O(e);"reference"===q.current[0]&&n===w&&(N(e),e.shiftKey?xt(t[t.length-1]):xt(t[1])),"floating"===q.current[1]&&n===ae&&e.shiftKey&&(N(e),xt(t[0]))}}const t=I(ae);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,w,ae,c,q,H,re,ie]),a.useEffect(()=>{if(!r&&M)return M.addEventListener("focusin",e),()=>{M.removeEventListener("focusin",e)};function e(e){const t=O(e),n=re().indexOf(t);-1!==n&&(ee.current=n)}},[r,M,re]),a.useEffect(()=>{if(r)return;if(!p)return;function e(){Z.current=!0,setTimeout(()=>{Z.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,a=O(e);queueMicrotask(()=>{const r=E(),o=!(D(w,t)||D(M,t)||D(t,M)||D(null==U?void 0:U.portalNode,t)||null!=t&&t.hasAttribute(ct("focus-guard"))||j&&(z(j.nodesRef.current,r).find(e=>{var n,a;return D(null==(n=e.context)?void 0:n.elements.floating,t)||D(null==(a=e.context)?void 0:a.elements.domReference,t)})||W(j.nodesRef.current,r).find(e=>{var n,a,r;return[null==(n=e.context)?void 0:n.elements.floating,F(null==(a=e.context)?void 0:a.elements.floating)].includes(t)||(null==(r=e.context)?void 0:r.elements.domReference)===t})));if(n===w&&ae&&Ut(ae,q),s&&n!==w&&(null==a||!a.isConnected)&&P(I(ae))===I(ae).body){(0,i.sb)(ae)&&ae.focus();const e=ee.current,t=re(),n=t[e]||t[t.length-1]||ae;(0,i.sb)(n)&&n.focus()}y.current.insideReactTree?y.current.insideReactTree=!1:!H&&c||!t||!o||Z.current||t===$t()||(Q.current=!0,g(!1,e,"focus-out"))})}const n=Boolean(!j&&U);function a(){mt(te),y.current.insideReactTree=!0,te.current=window.setTimeout(()=>{y.current.insideReactTree=!1})}return M&&(0,i.sb)(w)?(w.addEventListener("focusout",t),w.addEventListener("pointerdown",e),M.addEventListener("focusout",t),n&&M.addEventListener("focusout",a,!0),()=>{w.removeEventListener("focusout",t),w.removeEventListener("pointerdown",e),M.removeEventListener("focusout",t),n&&M.removeEventListener("focusout",a,!0)}):void 0},[r,w,M,ae,c,j,U,g,p,s,re,H,E,q,y]);const oe=a.useRef(null),ue=a.useRef(null),me=Wt([oe,null==U?void 0:U.beforeInsideRef]),pe=Wt([ue,null==U?void 0:U.afterInsideRef]);function he(e){return!r&&m&&c?(0,fe.jsx)(Kt,{ref:"start"===e?G:J,onClick:e=>g(!1,e.nativeEvent),children:"string"==typeof m?m:"Dismiss"}):null}a.useEffect(()=>{var e,t;if(r)return;if(!M)return;const n=Array.from((null==U||null==(e=U.portalNode)?void 0:e.querySelectorAll("["+ct("portal")+"]"))||[]),a=null==(t=(j?W(j.nodesRef.current,E()):[]).find(e=>{var t;return A((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,i=[M,a,...n,..._(),G.current,J.current,oe.current,ue.current,null==U?void 0:U.beforeOutsideRef.current,null==U?void 0:U.afterOutsideRef.current,q.current.includes("reference")||H?w:null].filter(e=>null!=e),o=c||H?Dt(i,!L,L):Dt(i);return()=>{o()}},[r,w,M,c,q,U,H,V,L,j,E,_]),K(()=>{if(r||!(0,i.sb)(ae))return;const e=P(I(ae));queueMicrotask(()=>{const t=ie(ae),n=S.current,a=("number"==typeof n?t[n]:n.current)||ae,r=D(ae,e);x||r||!v||xt(a,{preventScroll:a===ae})})},[r,v,ae,x,ie,S]),K(()=>{if(r||!ae)return;const e=I(ae);var t;function n(e){let{reason:t,event:n,nested:a}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(Q.current=!0),"outside-press"===t)if(a)Q.current=!1;else if(B(n)||$(n))Q.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),Q.current=!e}}t=P(e),Bt(),t&&"body"!==(0,i.mq)(t)&&(Nt.push(t),Nt.length>20&&(Nt=Nt.slice(-20))),b.on("openchange",n);const a=e.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,Ot),ne&&w&&w.insertAdjacentElement("afterend",a),()=>{b.off("openchange",n);const t=P(e),r=D(M,t)||j&&z(j.nodesRef.current,E(),!1).some(e=>{var n;return D(null==(n=e.context)?void 0:n.elements.floating,t)}),o=function(){if("boolean"==typeof R.current){const e=w||$t();return e&&e.isConnected?e:a}return R.current.current||a}();queueMicrotask(()=>{const n=function(e){const t=le();return k(e,t)?e:C(e,t)[0]||e}(o);R.current&&!Q.current&&(0,i.sb)(n)&&(n===t||t===e.body||r)&&n.focus({preventScroll:!0}),a.remove()})}},[r,M,ae,R,y,b,j,ne,w,E]),a.useEffect(()=>(queueMicrotask(()=>{Q.current=!1}),()=>{queueMicrotask(Bt)}),[r]),K(()=>{if(!r&&U)return U.setFocusManagerState({modal:c,closeOnFocusOut:p,open:v,onOpenChange:g,domReference:w}),()=>{U.setFocusManagerState(null)}},[r,U,c,v,g,p,w]),K(()=>{r||ae&&Ut(ae,q)},[r,ae,q]);const ve=!r&&V&&(!c||!H)&&(ne||c);return(0,fe.jsxs)(fe.Fragment,{children:[ve&&(0,fe.jsx)(Rt,{"data-type":"inside",ref:me,onFocus:e=>{if(c){const e=ie();xt("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=U&&U.preserveTabOrder&&U.portalNode)if(Q.current=!1,ce(e,U.portalNode)){const e=de(w);null==e||e.focus()}else{var t;null==(t=U.beforeOutsideRef.current)||t.focus()}}}),!H&&he("start"),n,he("end"),ve&&(0,fe.jsx)(Rt,{"data-type":"inside",ref:pe,onFocus:e=>{if(c)xt(ie()[0]);else if(null!=U&&U.preserveTabOrder&&U.portalNode)if(p&&(Q.current=!0),ce(e,U.portalNode)){const e=se(w);null==e||e.focus()}else{var t;null==(t=U.afterOutsideRef.current)||t.focus()}}})]})}let Gt=0;const Xt="--floating-ui-scrollbar-width";let Jt=()=>{};const Qt=a.forwardRef(function(e,t){const{lockScroll:n=!1,...a}=e;return K(()=>{if(n)return Gt++,1===Gt&&(Jt=function(){const e=_(),t=/iP(hone|ad|od)|iOS/.test(e)||"MacIntel"===e&&navigator.maxTouchPoints>1,n=document.body.style,a=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,i=n.left?parseFloat(n.left):window.scrollX,o=n.top?parseFloat(n.top):window.scrollY;if(n.overflow="hidden",n.setProperty(Xt,r+"px"),r&&(n[a]=r+"px"),t){var l,u;const e=(null==(l=window.visualViewport)?void 0:l.offsetLeft)||0,t=(null==(u=window.visualViewport)?void 0:u.offsetTop)||0;Object.assign(n,{position:"fixed",top:-(o-Math.floor(t))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(n,{overflow:"",[a]:""}),n.removeProperty(Xt),t&&(Object.assign(n,{position:"",top:"",left:"",right:""}),window.scrollTo(i,o))}}()),()=>{Gt--,0===Gt&&Jt()}},[n]),(0,fe.jsx)("div",{ref:t,...a,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...a.style}})});function Zt(e){return(0,i.sb)(e.target)&&"BUTTON"===e.target.tagName}function en(e){return j(e)}function tn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:l}}=e,{enabled:u=!0,event:d="click",toggle:s=!0,ignoreMouse:c=!1,keyboardHandlers:m=!0,stickIfOpen:p=!0}=t,f=a.useRef(),h=a.useRef(!1),v=a.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==d&&(U(t,!0)&&c||(!n||!s||o.current.openEvent&&p&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===d&&f.current?f.current=void 0:U(t,!0)&&c||(!n||!s||o.current.openEvent&&p&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!m||Zt(e)||(" "!==e.key||en(l)||(e.preventDefault(),h.current=!0),function(e){return(0,i.sb)(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!m||Zt(e)||en(l)||" "===e.key&&h.current&&(h.current=!1,r(!n||!s,e.nativeEvent,"click"))}}),[o,l,d,c,m,r,n,p,s]);return a.useMemo(()=>u?{reference:v}:{},[u,v])}function nn(e){return null!=e&&null!=e.clientX}function an(e,t){void 0===t&&(t={});const{open:n,dataRef:r,elements:{floating:o,domReference:l},refs:u}=e,{enabled:d=!0,axis:s="both",x:c=null,y:m=null}=t,p=a.useRef(!1),f=a.useRef(null),[h,v]=a.useState(),[g,b]=a.useState([]),y=X((e,t)=>{p.current||r.current.openEvent&&!nn(r.current.openEvent)||u.setPositionReference(function(e,t){let n=null,a=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){var i;const o=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},l="x"===t.axis||"both"===t.axis,u="y"===t.axis||"both"===t.axis,d=["mouseenter","mousemove"].includes((null==(i=t.dataRef.current.openEvent)?void 0:i.type)||"")&&"touch"!==t.pointerType;let s=o.width,c=o.height,m=o.x,p=o.y;return null==n&&t.x&&l&&(n=o.x-t.x),null==a&&t.y&&u&&(a=o.y-t.y),m-=n||0,p-=a||0,s=0,c=0,!r||d?(s="y"===t.axis?o.width:0,c="x"===t.axis?o.height:0,m=l&&null!=t.x?t.x:m,p=u&&null!=t.y?t.y:p):r&&!d&&(c="x"===t.axis?o.height:c,s="y"===t.axis?o.width:s),r=!0,{width:s,height:c,x:m,y:p,top:p,right:m+s,bottom:p+c,left:m}}}}(l,{x:e,y:t,axis:s,dataRef:r,pointerType:h}))}),w=X(e=>{null==c&&null==m&&(n?f.current||b([]):y(e.clientX,e.clientY))}),M=U(h)?o:n,E=a.useCallback(()=>{if(!M||!d||null!=c||null!=m)return;const e=(0,i.zk)(o);function t(n){const a=O(n);D(o,a)?(e.removeEventListener("mousemove",t),f.current=null):y(n.clientX,n.clientY)}if(!r.current.openEvent||nn(r.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),f.current=null};return f.current=n,n}u.setPositionReference(l)},[M,d,c,m,o,r,u,l,y]);a.useEffect(()=>E(),[E,g]),a.useEffect(()=>{d&&!o&&(p.current=!1)},[d,o]),a.useEffect(()=>{!d&&n&&(p.current=!0)},[d,n]),K(()=>{!d||null==c&&null==m||(p.current=!1,y(c,m))},[d,c,m,y]);const C=a.useMemo(()=>{function e(e){let{pointerType:t}=e;v(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:w,onMouseEnter:w}},[w]);return a.useMemo(()=>d?{reference:C}:{},[d,C])}const rn={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},on={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ln=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function un(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:l}=e,{enabled:u=!0,escapeKey:d=!0,outsidePress:s=!0,outsidePressEvent:c="pointerdown",referencePress:m=!1,referencePressEvent:p="pointerdown",ancestorScroll:f=!1,bubbles:h,capture:v}=t,g=lt(),b=X("function"==typeof s?s:()=>!1),y="function"==typeof s?b:s,w=a.useRef(!1),{escapeKey:M,outsidePress:E}=ln(h),{escapeKey:C,outsidePress:k}=ln(v),_=a.useRef(!1),x=X(e=>{var t;if(!n||!u||!d||"Escape"!==e.key)return;if(_.current)return;const a=null==(t=l.current.floatingContext)?void 0:t.nodeId,i=g?z(g.nodesRef.current,a):[];if(!M&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),H=X(e=>{var t;const n=()=>{var t;x(e),null==(t=O(e))||t.removeEventListener("keydown",n)};null==(t=O(e))||t.addEventListener("keydown",n)}),T=X(e=>{var t;const n=l.current.insideReactTree;l.current.insideReactTree=!1;const a=w.current;if(w.current=!1,"click"===c&&a)return;if(n)return;if("function"==typeof y&&!y(e))return;const u=O(e),d="["+ct("inert")+"]",s=I(o.floating).querySelectorAll(d);let m=(0,i.vq)(u)?u:null;for(;m&&!(0,i.eu)(m);){const e=(0,i.$4)(m);if((0,i.eu)(e)||!(0,i.vq)(e))break;m=e}if(s.length&&(0,i.vq)(u)&&!u.matches("html,body")&&!D(u,o.floating)&&Array.from(s).every(e=>!D(m,e)))return;if((0,i.sb)(u)&&q){const t=(0,i.eu)(u),n=(0,i.L9)(u),a=/auto|scroll/,r=t||a.test(n.overflowX),o=t||a.test(n.overflowY),l=r&&u.clientWidth>0&&u.scrollWidth>u.clientWidth,d=o&&u.clientHeight>0&&u.scrollHeight>u.clientHeight,s="rtl"===n.direction,c=d&&(s?e.offsetX<=u.offsetWidth-u.clientWidth:e.offsetX>u.clientWidth),m=l&&e.offsetY>u.clientHeight;if(c||m)return}const p=null==(t=l.current.floatingContext)?void 0:t.nodeId,f=g&&z(g.nodesRef.current,p).some(t=>{var n;return R(e,null==(n=t.context)?void 0:n.elements.floating)});if(R(e,o.floating)||R(e,o.domReference)||f)return;const h=g?z(g.nodesRef.current,p):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),V=X(e=>{var t;const n=()=>{var t;T(e),null==(t=O(e))||t.removeEventListener(c,n)};null==(t=O(e))||t.addEventListener(c,n)});a.useEffect(()=>{if(!n||!u)return;l.current.__escapeKeyBubbles=M,l.current.__outsidePressBubbles=E;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function a(){window.clearTimeout(e),_.current=!0}function s(){e=window.setTimeout(()=>{_.current=!1},(0,i.Tc)()?5:0)}const m=I(o.floating);d&&(m.addEventListener("keydown",C?H:x,C),m.addEventListener("compositionstart",a),m.addEventListener("compositionend",s)),y&&m.addEventListener(c,k?V:T,k);let p=[];return f&&((0,i.vq)(o.domReference)&&(p=(0,i.v9)(o.domReference)),(0,i.vq)(o.floating)&&(p=p.concat((0,i.v9)(o.floating))),!(0,i.vq)(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat((0,i.v9)(o.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=m.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{d&&(m.removeEventListener("keydown",C?H:x,C),m.removeEventListener("compositionstart",a),m.removeEventListener("compositionend",s)),y&&m.removeEventListener(c,k?V:T,k),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[l,o,d,y,c,n,r,f,u,M,E,x,C,H,T,k,V]),a.useEffect(()=>{l.current.insideReactTree=!1},[l,y,c]);const L=a.useMemo(()=>({onKeyDown:x,...m&&{[rn[p]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==p&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[x,r,m,p]),q=a.useMemo(()=>({onKeyDown:x,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[on[c]]:()=>{l.current.insideReactTree=!0}}),[x,c,l]);return a.useMemo(()=>u?{reference:L,floating:q}:{},[u,L,q])}function dn(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=tt(),o=a.useRef({}),[l]=a.useState(()=>at()),u=null!=ot(),[d,s]=a.useState(r.reference),c=X((e,t,a)=>{o.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:a,nested:u}),null==n||n(e,t,a)}),m=a.useMemo(()=>({setPositionReference:s}),[]),p=a.useMemo(()=>({reference:d||r.reference||null,floating:r.floating||null,domReference:r.reference}),[d,r.reference,r.floating]);return a.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:p,events:l,floatingId:i,refs:m}),[t,c,p,l,i,m])}function sn(e){void 0===e&&(e={});const{nodeId:t}=e,n=dn({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[l,u]=a.useState(null),[d,s]=a.useState(null),c=(null==o?void 0:o.domReference)||l,m=a.useRef(null),p=lt();K(()=>{c&&(m.current=c)},[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:u=!0,whileElementsMounted:d,open:s}=e,[c,m]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=a.useState(r);be(p,r)||f(r);const[h,v]=a.useState(null),[g,b]=a.useState(null),y=a.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),w=a.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),M=o||h,E=l||g,C=a.useRef(null),k=a.useRef(null),_=a.useRef(c),x=null!=d,H=Me(d),T=Me(i),V=Me(s),L=a.useCallback(()=>{if(!C.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),(0,ve.rD)(C.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==V.current};q.current&&!be(_.current,t)&&(_.current=t,he.flushSync(()=>{m(t)}))})},[p,t,n,T,V]);ge(()=>{!1===s&&_.current.isPositioned&&(_.current.isPositioned=!1,m(e=>({...e,isPositioned:!1})))},[s]);const q=a.useRef(!1);ge(()=>(q.current=!0,()=>{q.current=!1}),[]),ge(()=>{if(M&&(C.current=M),E&&(k.current=E),M&&E){if(H.current)return H.current(M,E,L);L()}},[M,E,L,H,x]);const S=a.useMemo(()=>({reference:C,floating:k,setReference:y,setFloating:w}),[y,w]),P=a.useMemo(()=>({reference:M,floating:E}),[M,E]),D=a.useMemo(()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=we(P.floating,c.x),a=we(P.floating,c.y);return u?{...e,transform:"translate("+t+"px, "+a+"px)",...ye(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:a}},[n,u,P.floating,c.x,c.y]);return a.useMemo(()=>({...c,update:L,refs:S,elements:P,floatingStyles:D}),[c,L,S,P,D])}({...e,elements:{...o,...d&&{reference:d}}}),h=a.useCallback(e=>{const t=(0,i.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),v=a.useCallback(e=>{((0,i.vq)(e)||null===e)&&(m.current=e,u(e)),((0,i.vq)(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!(0,i.vq)(e))&&f.refs.setReference(e)},[f.refs]),g=a.useMemo(()=>({...f.refs,setReference:v,setPositionReference:h,domReference:m}),[f.refs,v,h]),b=a.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),y=a.useMemo(()=>({...f,...r,refs:g,elements:b,nodeId:t}),[f,g,b,t,r]);return K(()=>{r.dataRef.current.floatingContext=y;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),a.useMemo(()=>({...f,context:y,refs:g,elements:b}),[f,g,b,y])}function cn(){return _().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&H()}function mn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:l,elements:u}=e,{enabled:d=!0,visibleOnly:s=!0}=t,c=a.useRef(!1),m=a.useRef(-1),p=a.useRef(!0);a.useEffect(()=>{if(!d)return;const e=(0,i.zk)(u.domReference);function t(){!n&&(0,i.sb)(u.domReference)&&u.domReference===P(I(u.domReference))&&(c.current=!0)}function a(){p.current=!0}function r(){p.current=!1}return e.addEventListener("blur",t),cn()&&(e.addEventListener("keydown",a,!0),e.addEventListener("pointerdown",r,!0)),()=>{e.removeEventListener("blur",t),cn()&&(e.removeEventListener("keydown",a,!0),e.removeEventListener("pointerdown",r,!0))}},[u.domReference,n,d]),a.useEffect(()=>{if(d)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(c.current=!0)}},[o,d]),a.useEffect(()=>()=>{mt(m)},[]);const f=a.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=O(e.nativeEvent);if(s&&(0,i.vq)(t))if(cn()&&!e.relatedTarget){if(!p.current&&!j(t))return}else if(!function(e){if(!e||V())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,a=(0,i.vq)(t)&&t.hasAttribute(ct("focus-guard"))&&"outside"===t.getAttribute("data-type");m.current=window.setTimeout(()=>{var e;const i=P(u.domReference?u.domReference.ownerDocument:document);(t||i!==u.domReference)&&(D(null==(e=l.current.floatingContext)?void 0:e.refs.floating.current,i)||D(u.domReference,i)||a||r(!1,n,"focus"))})}}),[l,u.domReference,r,s]);return a.useMemo(()=>d?{reference:f}:{},[d,f])}function pn(e,t,n){const a=new Map,r="item"===n;let i=e;if(r&&e){const{[je]:t,[Ae]:n,...a}=e;i=a}return{..."floating"===n&&{tabIndex:-1,[Ie]:""},...i,...t.map(t=>{const a=t?t[n]:null;return"function"==typeof a?e?a(e):null:a}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var o;r&&[je,Ae].includes(n)||(0===n.indexOf("on")?(a.has(n)||a.set(n,[]),"function"==typeof i&&(null==(o=a.get(n))||o.push(i),e[n]=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return null==(e=a.get(n))?void 0:e.map(e=>e(...r)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function fn(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),i=a.useCallback(t=>pn(t,e,"reference"),t),o=a.useCallback(t=>pn(t,e,"floating"),n),l=a.useCallback(t=>pn(t,e,"item"),r);return a.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:l}),[i,o,l])}function hn(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function vn(e,t){return hn(t,e===We||e===Ne,e===Fe||e===ze)}function gn(e,t,n){return hn(t,e===Ne,n?e===Fe:e===ze)||"Enter"===e||" "===e||""===e}function bn(e,t,n){return hn(t,n?e===Fe:e===ze,e===Ne)}function yn(e,t,n,a){return"both"===t||"horizontal"===t&&a&&a>1?"Escape"===e:hn(t,n?e===ze:e===Fe,e===We)}function wn(e,t){const{open:n,onOpenChange:r,elements:o,floatingId:l}=e,{listRef:u,activeIndex:d,onNavigate:s=()=>{},enabled:c=!0,selectedIndex:m=null,allowEscape:p=!1,loop:f=!1,nested:h=!1,rtl:v=!1,virtual:g=!1,focusItemOnOpen:b="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:w=!0,disabledIndices:M,orientation:E="vertical",parentOrientation:C,cols:k=1,scrollItemIntoView:_=!0,virtualItemRef:x,itemSizes:H,dense:T=!1}=t,V=Y(F(o.floating)),L=ot(),q=lt();K(()=>{e.dataRef.current.orientation=E},[e,E]);const S=X(()=>{s(-1===j.current?null:j.current)}),O=A(o.domReference),R=a.useRef(b),j=a.useRef(null!=m?m:-1),W=a.useRef(null),U=a.useRef(!0),G=a.useRef(S),J=a.useRef(!!o.floating),le=a.useRef(n),ue=a.useRef(!1),de=a.useRef(!1),se=Y(M),ce=Y(n),me=Y(_),pe=Y(m),[fe,he]=a.useState(),[ve,ge]=a.useState(),be=X(()=>{function e(e){var t;g?(null!=(t=e.id)&&t.endsWith("-fui-option")&&(e.id=l+"-"+Math.random().toString(16).slice(2,10)),he(e.id),null==q||q.events.emit("virtualfocus",e),x&&(x.current=e)):xt(e,{sync:ue.current,preventScroll:!0})}const t=u.current[j.current],n=de.current;t&&e(t),(ue.current?e=>e():requestAnimationFrame)(()=>{const a=u.current[j.current]||t;if(!a)return;t||e(a);const r=me.current;r&&we&&(n||!U.current)&&(null==a.scrollIntoView||a.scrollIntoView("boolean"==typeof r?{block:"nearest",inline:"nearest"}:r))})});K(()=>{c&&(n&&o.floating?R.current&&null!=m&&(de.current=!0,j.current=m,S()):J.current&&(j.current=-1,G.current()))},[c,n,o.floating,m,S]),K(()=>{if(c&&n&&o.floating)if(null==d){if(ue.current=!1,null!=pe.current)return;if(J.current&&(j.current=-1,be()),(!le.current||!J.current)&&R.current&&(null!=W.current||!0===R.current&&null==W.current)){let e=0;const t=()=>{null==u.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(j.current=null==W.current||gn(W.current,E,v)||h?Z(u,se.current):ee(u,se.current),W.current=null,S())};t()}}else Q(u,d)||(j.current=d,be(),de.current=!1)},[c,n,o.floating,d,pe,h,u,E,v,S,be,se]),K(()=>{var e;if(!c||o.floating||!q||g||!J.current)return;const t=q.nodesRef.current,n=null==(e=t.find(e=>e.id===L))||null==(e=e.context)?void 0:e.elements.floating,a=P(I(o.floating)),r=t.some(e=>e.context&&D(e.context.elements.floating,a));n&&!r&&U.current&&n.focus({preventScroll:!0})},[c,o.floating,q,L,g]),K(()=>{if(c&&q&&g&&!L)return q.events.on("virtualfocus",e),()=>{q.events.off("virtualfocus",e)};function e(e){ge(e.id),x&&(x.current=e)}},[c,q,g,L,x]),K(()=>{G.current=S,le.current=n,J.current=!!o.floating}),K(()=>{n||(W.current=null,R.current=b)},[n,b]);const ye=null!=d,we=a.useMemo(()=>{function e(e){if(!ce.current)return;const t=u.current.indexOf(e);-1!==t&&j.current!==t&&(j.current=t,S())}return{onFocus(t){let{currentTarget:n}=t;ue.current=!0,e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},onMouseMove(t){let{currentTarget:n}=t;ue.current=!0,de.current=!1,y&&e(n)},onPointerLeave(e){let{pointerType:t}=e;var n;U.current&&"touch"!==t&&(ue.current=!0,y&&(j.current=-1,S(),g||null==(n=V.current)||n.focus({preventScroll:!0})))}}},[ce,V,y,u,S,g]),Me=a.useCallback(()=>{var e;return null!=C?C:null==q||null==(e=q.nodesRef.current.find(e=>e.id===L))||null==(e=e.context)||null==(e=e.dataRef)?void 0:e.current.orientation},[L,q,C]),Ee=X(e=>{if(U.current=!1,ue.current=!0,229===e.which)return;if(!ce.current&&e.currentTarget===V.current)return;if(h&&yn(e.key,E,v,k))return vn(e.key,Me())||N(e),r(!1,e.nativeEvent,"list-navigation"),void((0,i.sb)(o.domReference)&&(g?null==q||q.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=j.current,a=Z(u,M),l=ee(u,M);if(O||("Home"===e.key&&(N(e),j.current=a,S()),"End"===e.key&&(N(e),j.current=l,S())),k>1){const t=H||Array.from({length:u.current.length},()=>({width:1,height:1})),n=ae(t,k,T),r=n.findIndex(e=>null!=e&&!oe(u,e,M)),i=n.reduce((e,t,n)=>null==t||oe(u,t,M)?e:n,-1),o=n[ne({current:n.map(e=>null!=e?u.current[e]:null)},{event:e,orientation:E,loop:f,rtl:v,cols:k,disabledIndices:ie([...("function"!=typeof M?M:null)||u.current.map((e,t)=>oe(u,t,M)?t:void 0),void 0],n),minIndex:r,maxIndex:i,prevIndex:re(j.current>l?a:j.current,t,n,k,e.key===Ne?"bl":e.key===(v?Fe:ze)?"tr":"tl"),stopEvent:!0})];if(null!=o&&(j.current=o,S()),"both"===E)return}if(vn(e.key,E)){if(N(e),n&&!g&&P(e.currentTarget.ownerDocument)===e.currentTarget)return j.current=gn(e.key,E,v)?a:l,void S();gn(e.key,E,v)?j.current=f?t>=l?p&&t!==u.current.length?-1:a:te(u,{startingIndex:t,disabledIndices:M}):Math.min(l,te(u,{startingIndex:t,disabledIndices:M})):j.current=f?t<=a?p&&-1!==t?u.current.length:l:te(u,{startingIndex:t,decrement:!0,disabledIndices:M}):Math.max(a,te(u,{startingIndex:t,decrement:!0,disabledIndices:M})),Q(u,j.current)&&(j.current=-1),S()}}),Ce=a.useMemo(()=>g&&n&&ye&&{"aria-activedescendant":ve||fe},[g,n,ye,ve,fe]),ke=a.useMemo(()=>({"aria-orientation":"both"===E?void 0:E,...O?{}:Ce,onKeyDown:Ee,onPointerMove(){U.current=!0}}),[Ce,Ee,E,O]),_e=a.useMemo(()=>{function e(e){"auto"===b&&B(e.nativeEvent)&&(R.current=!0)}function t(e){R.current=b,"auto"===b&&$(e.nativeEvent)&&(R.current=!0)}return{...Ce,onKeyDown(e){U.current=!1;const t=e.key.startsWith("Arrow"),a=["Home","End"].includes(e.key),i=t||a,o=bn(e.key,E,v),l=yn(e.key,E,v,k),d=bn(e.key,Me(),v),s=vn(e.key,E),c=(h?d:s)||"Enter"===e.key||""===e.key.trim();if(g&&n){const t=null==q?void 0:q.nodesRef.current.find(e=>null==e.parentId),n=q&&t?function(e,t){let n,a=-1;return function t(r,i){i>a&&(n=r,a=i),z(e,r).forEach(e=>{t(e.id,i+1)})}(t,0),e.find(e=>e.id===n)}(q.nodesRef.current,t.id):null;if(i&&n&&x){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(o||l){var p,f;const a=(null==(p=n.context)?void 0:p.elements.domReference)===e.currentTarget,r=l&&!a?null==(f=n.context)?void 0:f.elements.domReference:o?u.current.find(e=>(null==e?void 0:e.id)===fe):null;r&&(N(e),r.dispatchEvent(t),ge(void 0))}var b;if((s||a)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return N(e),void(null==(b=n.context.elements.domReference)||b.dispatchEvent(t))}return Ee(e)}if(n||w||!t){if(c){const t=vn(e.key,Me());W.current=h&&t?null:e.key}h?d&&(N(e),n?(j.current=Z(u,se.current),S()):r(!0,e.nativeEvent,"list-navigation")):s&&(null!=m&&(j.current=m),N(e),!n&&w?r(!0,e.nativeEvent,"list-navigation"):Ee(e),n&&S())}},onFocus(){n&&!g&&(j.current=-1,S())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[fe,Ce,k,Ee,se,b,u,h,S,r,n,w,E,Me,v,m,q,g,x]);return a.useMemo(()=>c?{reference:_e,floating:ke,item:we}:{},[c,_e,ke,we])}const Mn=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function En(e,t){var n,r;void 0===t&&(t={});const{open:i,elements:o,floatingId:l}=e,{enabled:u=!0,role:d="dialog"}=t,s=tt(),c=(null==(n=o.domReference)?void 0:n.id)||s,m=a.useMemo(()=>{var e;return(null==(e=F(o.floating))?void 0:e.id)||l},[o.floating,l]),p=null!=(r=Mn.get(d))?r:d,f=null!=ot(),h=a.useMemo(()=>"tooltip"===p||"label"===d?{["aria-"+("label"===d?"labelledby":"describedby")]:i?m:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===p?"dialog":p,"aria-controls":i?m:void 0,..."listbox"===p&&{role:"combobox"},..."menu"===p&&{id:c},..."menu"===p&&f&&{role:"menuitem"},..."select"===d&&{"aria-autocomplete":"none"},..."combobox"===d&&{"aria-autocomplete":"list"}},[p,m,f,i,c,d]),v=a.useMemo(()=>{const e={id:m,...p&&{role:p}};return"tooltip"===p||"label"===d?e:{...e,..."menu"===p&&{"aria-labelledby":c}}},[p,m,c,d]),g=a.useCallback(e=>{let{active:t,selected:n}=e;const a={role:"option",...t&&{id:m+"-fui-option"}};switch(d){case"select":case"combobox":return{...a,"aria-selected":n}}return{}},[m,d]);return a.useMemo(()=>u?{reference:h,floating:v,item:g}:{},[u,h,v,g])}const Cn=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function kn(e,t){return"function"==typeof e?e(t):e}function _n(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=("number"==typeof i?i:i.close)||0,[l,u]=a.useState("unmounted"),d=function(e,t){const[n,r]=a.useState(e);return e&&!n&&r(!0),a.useEffect(()=>{if(!e&&n){const e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,o);return d||"close"!==l||u("unmounted"),K(()=>{if(r){if(n){u("initial");const e=requestAnimationFrame(()=>{he.flushSync(()=>{u("open")})});return()=>{cancelAnimationFrame(e)}}u("close")}},[n,r]),{isMounted:d,status:l}}function xn(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:l=250}=t,u=e.placement,d=u.split("-")[0],s=a.useMemo(()=>({side:d,placement:u}),[d,u]),c="number"==typeof l,m=(c?l:l.open)||0,p=(c?l:l.close)||0,[f,h]=a.useState(()=>({...kn(o,s),...kn(n,s)})),{isMounted:v,status:g}=_n(e,{duration:l}),b=Y(n),y=Y(r),w=Y(i),M=Y(o);return K(()=>{const e=kn(b.current,s),t=kn(w.current,s),n=kn(M.current,s),a=kn(y.current,s)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===g&&h(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===g&&h({transitionProperty:Object.keys(a).map(Cn).join(","),transitionDuration:m+"ms",...n,...a}),"close"===g){const a=t||e;h({transitionProperty:Object.keys(a).map(Cn).join(","),transitionDuration:p+"ms",...n,...a})}},[p,w,b,y,M,m,g,s]),{isMounted:v,styles:f}}function Hn(e,t){var n;const{open:r,dataRef:i}=e,{listRef:o,activeIndex:l,onMatch:u,onTypingChange:d,enabled:s=!0,findMatch:c=null,resetMs:m=750,ignoreKeys:p=[],selectedIndex:f=null}=t,h=a.useRef(-1),v=a.useRef(""),g=a.useRef(null!=(n=null!=f?f:l)?n:-1),b=a.useRef(null),y=X(u),w=X(d),M=Y(c),E=Y(p);K(()=>{r&&(mt(h),b.current=null,v.current="")},[r]),K(()=>{var e;r&&""===v.current&&(g.current=null!=(e=null!=f?f:l)?e:-1)},[r,f,l]);const C=X(e=>{e?i.current.typing||(i.current.typing=e,w(e)):i.current.typing&&(i.current.typing=e,w(e))}),k=X(e=>{function t(e,t,n){const a=M.current?M.current(t,n):t.find(e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())));return a?e.indexOf(a):-1}const n=o.current;if(v.current.length>0&&" "!==v.current[0]&&(-1===t(n,n,v.current)?C(!1):" "===e.key&&N(e)),null==n||E.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(N(e),C(!0)),n.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&v.current===e.key&&(v.current="",g.current=b.current),v.current+=e.key,mt(h),h.current=window.setTimeout(()=>{v.current="",g.current=b.current,C(!1)},m);const a=g.current,i=t(n,[...n.slice((a||0)+1),...n.slice(0,(a||0)+1)],v.current);-1!==i?(y(i),b.current=i):" "!==e.key&&(v.current="",C(!1))}),_=a.useMemo(()=>({onKeyDown:k}),[k]),x=a.useMemo(()=>({onKeyDown:k,onKeyUp(e){" "===e.key&&C(!1)}}),[k,C]);return a.useMemo(()=>s?{reference:_,floating:x}:{},[s,_,x])}function Tn(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Vn=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:a,onFallbackChange:r,offset:i=0,index:l=0,minItemsVisible:u=4,referenceOverflowThreshold:d=0,scrollRef:s,...c}=(0,o._3)(e,t),{rects:m,elements:{floating:p}}=t,f=n.current[l],h=(null==s?void 0:s.current)||p,v=p.clientTop||h.clientTop,g=0!==p.clientTop,b=0!==h.clientTop,y=p===h;if(!f)return{};const w={...t,...await Ce(-f.offsetTop-p.clientTop-m.reference.height/2-f.offsetHeight/2-i).fn(t)},M=await(0,ve.__)(Tn(w,h.scrollHeight+v+p.clientTop),c),E=await(0,ve.__)(w,{...c,elementContext:"reference"}),C=(0,o.T9)(0,M.top),k=w.y+C,_=(h.scrollHeight>h.clientHeight?e=>e:o.LI)((0,o.T9)(0,h.scrollHeight+(g&&y||b?2*v:0)-C-(0,o.T9)(0,M.bottom)));if(h.style.maxHeight=_+"px",h.scrollTop=C,r){const e=h.offsetHeight<f.offsetHeight*(0,o.jk)(u,n.current.length)-1||E.top>=-d||E.bottom>=-d;he.flushSync(()=>r(e))}return a&&(a.current=await(0,ve.__)(Tn({...w,y:k},h.offsetHeight+v+p.clientTop),c)),{y:k}}});function Ln(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:l,onChange:u}=t,d=X(u),s=a.useRef(!1),c=a.useRef(null),m=a.useRef(null);a.useEffect(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,a=o.current.top>=-.5,r=o.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,l=n<0?-1:1,u=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!a&&n>0||!r&&n<0?(e.preventDefault(),he.flushSync(()=>{d(e=>e+Math[u](n,i*l))})):/firefox/i.test(x())&&(t.scrollTop+=n))}const t=(null==l?void 0:l.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame(()=>{c.current=t.scrollTop,null!=o.current&&(m.current={...o.current})}),()=>{c.current=null,m.current=null,t.removeEventListener("wheel",e)}):void 0},[i,n,r.floating,o,l,d]);const p=a.useMemo(()=>({onKeyDown(){s.current=!0},onWheel(){s.current=!1},onPointerMove(){s.current=!1},onScroll(){const e=(null==l?void 0:l.current)||r.floating;if(o.current&&e&&s.current){if(null!==c.current){const t=e.scrollTop-c.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&he.flushSync(()=>d(e=>e+t))}requestAnimationFrame(()=>{c.current=e.scrollTop})}}}),[r.floating,d,o,l]);return a.useMemo(()=>i?{floating:p}:{},[i,p])}function qn(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var a;return e.parentId===t&&(!n||(null==(a=e.context)?void 0:a.open))}).flatMap(t=>[t,...qn(e,t.id,n)])}function Sn(e,t){const[n,a]=e;let r=!1;const i=t.length;for(let e=0,o=i-1;e<i;o=e++){const[i,l]=t[e]||[0,0],[u,d]=t[o]||[0,0];l>=a!=d>=a&&n<=(u-i)*(a-l)/(d-l)+i&&(r=!r)}return r}function Pn(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:a=!0}=e,r={current:-1};let o=!1,l=null,u=null,d="undefined"!=typeof performance?performance.now():0;const s=e=>{let{x:n,y:s,placement:c,elements:m,onClose:p,nodeId:f,tree:h}=e;return function(e){function v(){mt(r),p()}if(mt(r),!m.domReference||!m.floating||null==c||null==n||null==s)return;const{clientX:g,clientY:b}=e,y=[g,b],w=function(e){return"composedPath"in e?e.composedPath()[0]:e.target}(e),M="mouseleave"===e.type,E=Ht(m.floating,w),C=Ht(m.domReference,w),k=m.domReference.getBoundingClientRect(),_=m.floating.getBoundingClientRect(),x=c.split("-")[0],H=n>_.right-_.width/2,T=s>_.bottom-_.height/2,V=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,k),L=_.width>k.width,q=_.height>k.height,S=(L?k:_).left,P=(L?k:_).right,D=(q?k:_).top,O=(q?k:_).bottom;if(E&&(o=!0,!M))return;if(C&&(o=!1),C&&!M)return void(o=!0);if(M&&(0,i.vq)(e.relatedTarget)&&Ht(m.floating,e.relatedTarget))return;if(h&&qn(h.nodesRef.current,f).length)return;if("top"===x&&s>=k.bottom-1||"bottom"===x&&s<=k.top+1||"left"===x&&n>=k.right-1||"right"===x&&n<=k.left+1)return v();let R=[];switch(x){case"top":R=[[S,k.top+1],[S,_.bottom-1],[P,_.bottom-1],[P,k.top+1]];break;case"bottom":R=[[S,_.top+1],[S,k.bottom-1],[P,k.bottom-1],[P,_.top+1]];break;case"left":R=[[_.right-1,O],[_.right-1,D],[k.left+1,D],[k.left+1,O]];break;case"right":R=[[k.right-1,O],[k.right-1,D],[_.left+1,D],[_.left+1,O]]}if(!Sn([g,b],R)){if(o&&!V)return v();if(!M&&a){const t=function(e,t){const n=performance.now(),a=n-d;if(null===l||null===u||0===a)return l=e,u=t,d=n,null;const r=e-l,i=t-u,o=Math.sqrt(r*r+i*i);return l=e,u=t,d=n,o/a}(e.clientX,e.clientY);if(null!==t&&t<.1)return v()}Sn([g,b],function(e){let[n,a]=e;switch(x){case"top":return[[L?n+t/2:H?n+4*t:n-4*t,a+t+1],[L?n-t/2:H?n+4*t:n-4*t,a+t+1],[_.left,H||L?_.bottom-t:_.top],[_.right,H?L?_.bottom-t:_.top:_.bottom-t]];case"bottom":return[[L?n+t/2:H?n+4*t:n-4*t,a-t],[L?n-t/2:H?n+4*t:n-4*t,a-t],[_.left,H||L?_.top+t:_.bottom],[_.right,H?L?_.top+t:_.bottom:_.top+t]];case"left":{const e=[n+t+1,q?a+t/2:T?a+4*t:a-4*t],r=[n+t+1,q?a-t/2:T?a+4*t:a-4*t];return[[T||q?_.right-t:_.left,_.top],[T?q?_.right-t:_.left:_.right-t,_.bottom],e,r]}case"right":return[[n-t,q?a+t/2:T?a+4*t:a-4*t],[n-t,q?a-t/2:T?a+4*t:a-4*t],[T||q?_.left+t:_.right,_.top],[T?q?_.left+t:_.right:_.left+t,_.bottom]]}}([n,s]))?!o&&a&&(r.current=window.setTimeout(v,40)):v()}}};return s.__options={blockPointerEvents:n},s}},27746(e,t,n){"use strict";t.set=function(e,t,n){let o=(0,i.toDate)(e,n?.in);return isNaN(+o)?(0,a.constructFrom)(n?.in||e,NaN):(null!=t.year&&o.setFullYear(t.year),null!=t.month&&(o=(0,r.setMonth)(o,t.month)),null!=t.date&&o.setDate(t.date),null!=t.hours&&o.setHours(t.hours),null!=t.minutes&&o.setMinutes(t.minutes),null!=t.seconds&&o.setSeconds(t.seconds),null!=t.milliseconds&&o.setMilliseconds(t.milliseconds),o)};var a=n(4497),r=n(57984),i=n(24429)},27749(e,t,n){"use strict";t.match=void 0;var a=n(78741),r=n(58869);t.match={ordinalNumber:(0,r.buildMatchPatternFn)({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},defaultParseWidth:"any"})}},27857(e,t,n){"use strict";t.beTarask=void 0;var a=n(51243),r=n(23076),i=n(93830),o=n(94094),l=n(95898);t.beTarask={code:"be-tarask",formatDistance:a.formatDistance,formatLong:r.formatLong,formatRelative:i.formatRelative,localize:o.localize,match:l.match,options:{weekStartsOn:1,firstWeekContainsDate:1}}},27874(e,t,n){"use strict";t.match=void 0;var a=n(78741),r=n(58869);t.match={ordinalNumber:(0,r.buildMatchPatternFn)({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:"any"})}},27883(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentedControl=void 0;var a=n(80385);Object.defineProperty(t,"SegmentedControl",{enumerable:!0,get:function(){return a.SegmentedControl}})},27887(e,t,n){"use strict";t.formatLong=void 0;var a=n(52121);t.formatLong={date:(0,a.buildFormatLongFn)({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.buildFormatLongFn)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.buildFormatLongFn)({formats:{full:"{{date}} 'को' {{time}}",long:"{{date}} 'को' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})}},27938(e,t){"use strict";t.formatRelative=void 0;const n={lastWeek:"eeee 'la semaine dernière à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'la semaine prochaine à' p",other:"P"};t.formatRelative=(e,t,a,r)=>n[e]},28019(e,t,n){"use strict";t.startOfHour=function(e,t){const n=(0,a.toDate)(e,t?.in);return n.setMinutes(0,0,0),n};var a=n(24429)},28061(e,t){"use strict";t.formatRelative=void 0;const n={lastWeek:"eeee 'שעבר בשעה' p",yesterday:"'אתמול בשעה' p",today:"'היום בשעה' p",tomorrow:"'מחר בשעה' p",nextWeek:"eeee 'בשעה' p",other:"P"};t.formatRelative=(e,t,a,r)=>n[e]},28135(e,t,n){"use strict";t.formatLong=void 0;var a=n(52121);t.formatLong={date:(0,a.buildFormatLongFn)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.buildFormatLongFn)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.buildFormatLongFn)({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})}},28141(e,t,n){"use strict";t.localize=void 0;var a=n(91151);t.localize={ordinalNumber:(e,t)=>Number(e)+".",era:(0,a.buildLocalizeFn)({values:{narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus előtt","időszámításunk szerint"]},defaultWidth:"wide"}),quarter:(0,a.buildLocalizeFn)({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. n.év","2. n.év","3. n.év","4. n.év"],wide:["1. negyedév","2. negyedév","3. negyedév","4. negyedév"]},defaultWidth:"wide",argumentCallback:e=>e-1,formattingValues:{narrow:["I.","II.","III.","IV."],abbreviated:["I. n.év","II. n.év","III. n.év","IV. n.év"],wide:["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"]},defaultFormattingWidth:"wide"}),month:(0,a.buildLocalizeFn)({values:{narrow:["J","F","M","Á","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],wide:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},defaultWidth:"wide"}),day:(0,a.buildLocalizeFn)({values:{narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},defaultWidth:"wide"}),dayPeriod:(0,a.buildLocalizeFn)({values:{narrow:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},abbreviated:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},wide:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"délután",evening:"este",night:"éjjel"}},defaultWidth:"wide"})}},28200(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var a,r=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i.apply(null,arguments)}const o=function(e){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,className:"maximize-2_svg__feather maximize-2_svg__feather-maximize-2",viewBox:"0 0 24 24"},e),a||(a=r.createElement("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})))}},28353(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionItem=void 0;const r=n(31085),i=a(n(88694)),o=n(77506),l=n(56818),u=n(42885),d=n(21652),s=n(35346),c=i.default.div`
|
|
1260
|
+
`;t.PasswordRule=({label:e,isValid:t,isEmpty:n})=>{const{t:a}=(0,o.useTranslation)("common");let i=null;return n||(i=t?(0,r.jsx)(d,{"aria-hidden":"true",focusable:!1,name:"check",size:"16"}):(0,r.jsx)(d,{"aria-label":`${a("error")},`,focusable:!0,name:"alertOctagon",role:"img",size:"16"})),(0,r.jsxs)(u,{isEmpty:n,isSuccess:t,children:[i,(0,r.jsx)(s,{children:e})]})};try{t.PasswordRule.displayName="PasswordRule",t.PasswordRule.__docgenInfo={description:"",displayName:"PasswordRule",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},isEmpty:{defaultValue:null,description:"",name:"isEmpty",required:!0,type:{name:"boolean"}},isValid:{defaultValue:null,description:"",name:"isValid",required:!0,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/password-creation-input/password-rule.tsx#PasswordRule"]={docgenInfo:t.PasswordRule.__docgenInfo,name:"PasswordRule",path:"src/components/password-creation-input/password-rule.tsx#PasswordRule"})}catch(e){}},27265(e,t){"use strict";t.formatRelative=void 0;const n={lastWeek:"'గత' eeee p",yesterday:"'నిన్న' p",today:"'ఈ రోజు' p",tomorrow:"'రేపు' p",nextWeek:"'తదుపరి' eeee p",other:"P"};t.formatRelative=(e,t,a,r)=>n[e]},27400(e,t,n){"use strict";t.yearsToQuarters=function(e){return Math.trunc(e*a.quartersInYear)};var a=n(98613)},27574(e,t,n){"use strict";t.getQuarter=function(e,t){const n=(0,a.toDate)(e,t?.in);return Math.trunc(n.getMonth()/3)+1};var a=n(24429)},27625(e,t,n){"use strict";n.r(t),n.d(t,{Composite:()=>Ge,CompositeItem:()=>Xe,FloatingArrow:()=>nt,FloatingDelayGroup:()=>wt,FloatingFocusManager:()=>Yt,FloatingList:()=>Oe,FloatingNode:()=>dt,FloatingOverlay:()=>Qt,FloatingPortal:()=>Ft,FloatingTree:()=>st,NextFloatingDelayGroup:()=>Ct,arrow:()=>qe,autoPlacement:()=>Te,autoUpdate:()=>ve.ll,computePosition:()=>ve.rD,detectOverflow:()=>ve.__,flip:()=>xe,getOverflowAncestors:()=>i.v9,hide:()=>Ve,inline:()=>Le,inner:()=>Vn,limitShift:()=>_e,offset:()=>Ce,platform:()=>ve.iD,safePolygon:()=>Pn,shift:()=>ke,size:()=>He,useClick:()=>tn,useClientPoint:()=>an,useDelayGroup:()=>Mt,useDelayGroupContext:()=>yt,useDismiss:()=>un,useFloating:()=>sn,useFloatingNodeId:()=>ut,useFloatingParentNodeId:()=>ot,useFloatingPortalNode:()=>At,useFloatingRootContext:()=>dn,useFloatingTree:()=>lt,useFocus:()=>mn,useHover:()=>vt,useId:()=>tt,useInnerOffset:()=>Ln,useInteractions:()=>fn,useListItem:()=>Re,useListNavigation:()=>wn,useMergeRefs:()=>Se,useNextDelayGroup:()=>kt,useRole:()=>En,useTransitionStatus:()=>_n,useTransitionStyles:()=>xn,useTypeahead:()=>Hn});var a=n(39155),r=n.t(a,2),i=n(1860),o=n(22166),l=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),u="undefined"==typeof Element,d=u?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!u&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},c=function(e,t){var n;void 0===t&&(t=!0);var a=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===a||"true"===a||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):c(e.parentNode))},m=function(e,t,n){if(c(e))return[];var a=Array.prototype.slice.apply(e.querySelectorAll(l));return t&&d.call(e,l)&&a.unshift(e),a.filter(n)},p=function(e,t,n){for(var a=[],r=Array.from(e);r.length;){var i=r.shift();if(!c(i,!1))if("SLOT"===i.tagName){var o=i.assignedElements(),u=o.length?o:i.children,s=p(u,!0,n);n.flatten?a.push.apply(a,s):a.push({scopeParent:i,candidates:s})}else{d.call(i,l)&&n.filter(i)&&(t||!e.includes(i))&&a.push(i);var m=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),f=!c(m,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(m&&f){var h=p(!0===m?i.children:m.children,!0,n);n.flatten?a.push.apply(a,h):a.push({scopeParent:i,candidates:h})}else r.unshift.apply(r,i.children)}}return a},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},h=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!f(e)?0:e.tabIndex},v=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},g=function(e){return"INPUT"===e.tagName},b=function(e){var t=e.getBoundingClientRect(),n=t.width,a=t.height;return 0===n&&0===a},y=function(e,t){return!(t.disabled||function(e){return g(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,a=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var r=d.call(e,"details>summary:first-of-type")?e.parentElement:e;if(d.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return b(e)}else{if("function"==typeof a){for(var i=e;e;){var o=e.parentElement,l=s(e);if(o&&!o.shadowRoot&&!0===a(o))return b(e);e=e.assignedSlot?e.assignedSlot:o||l===e.ownerDocument?o:l.host}e=i}if(function(e){var t,n,a,r,i=e&&s(e),o=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=o)&&void 0!==n&&null!==(a=n.ownerDocument)&&void 0!==a&&a.contains(o)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!l&&o;){var u,d,c;l=!(null===(d=o=null===(u=i=s(o))||void 0===u?void 0:u.host)||void 0===d||null===(c=d.ownerDocument)||void 0===c||!c.contains(o))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var a=t.children.item(n);if("LEGEND"===a.tagName)return!!d.call(t,"fieldset[disabled] *")||!a.contains(e)}return!0}t=t.parentElement}return!1}(t))},w=function(e,t){return!(function(e){return function(e){return g(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),a=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=a(window.CSS.escape(e.name));else try{t=a(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)}(t)||h(t)<0||!y(e,t))},M=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},E=function(e){var t=[],n=[];return e.forEach(function(e,a){var r=!!e.scopeParent,i=r?e.scopeParent:e,o=function(e,t){var n=h(e);return n<0&&t&&!f(e)?0:n}(i,r),l=r?E(e.candidates):i;0===o?r?t.push.apply(t,l):t.push(i):n.push({documentOrder:a,tabIndex:o,item:e,isScope:r,content:l})}),n.sort(v).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},C=function(e,t){var n;return n=(t=t||{}).getShadowRoot?p([e],t.includeContainer,{filter:w.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:M}):m(e,t.includeContainer,w.bind(null,t)),E(n)},k=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==d.call(e,l)&&w(t,e)};function _(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function x(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function H(){return/apple/i.test(navigator.vendor)}function T(){const e=/android/i;return e.test(_())||e.test(x())}function V(){return x().includes("jsdom/")}const L="data-floating-ui-focusable",q="ArrowLeft",S="ArrowRight";function P(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function D(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function O(e){return"composedPath"in e?e.composedPath()[0]:e.target}function R(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function I(e){return(null==e?void 0:e.ownerDocument)||document}function j(e){return(0,i.sb)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function A(e){return!!e&&"combobox"===e.getAttribute("role")&&j(e)}function F(e){return e?e.hasAttribute(L)?e:e.querySelector("["+L+"]")||e:null}function z(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var a;return e.parentId===t&&(!n||(null==(a=e.context)?void 0:a.open))}).flatMap(t=>[t,...z(e,t.id,n)])}function W(e,t){var n;let a=[],r=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;r;){const t=e.find(e=>e.id===r);r=null==t?void 0:t.parentId,t&&(a=a.concat(t))}return a}function N(e){e.preventDefault(),e.stopPropagation()}function B(e){return!(0!==e.mozInputSource||!e.isTrusted)||(T()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function $(e){return!V()&&(!T()&&0===e.width&&0===e.height||T()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function U(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var K="undefined"!=typeof document?a.useLayoutEffect:function(){};function Y(e){const t=a.useRef(e);return K(()=>{t.current=e}),t}const G={...r}.useInsertionEffect||(e=>e());function X(e){const t=a.useRef(()=>{});return G(()=>{t.current=e}),a.useCallback(function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return null==t.current?void 0:t.current(...n)},[])}function J(e,t,n){return Math.floor(e/t)!==n}function Q(e,t){return t<0||t>=e.current.length}function Z(e,t){return te(e,{disabledIndices:t})}function ee(e,t){return te(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function te(e,t){let{startingIndex:n=-1,decrement:a=!1,disabledIndices:r,amount:i=1}=void 0===t?{}:t,o=n;do{o+=a?-i:i}while(o>=0&&o<=e.current.length-1&&oe(e,o,r));return o}function ne(e,t){let{event:n,orientation:a,loop:r,rtl:i,cols:l,disabledIndices:u,minIndex:d,maxIndex:s,prevIndex:c,stopEvent:m=!1}=t,p=c;if("ArrowUp"===n.key){if(m&&N(n),-1===c)p=s;else if(p=te(e,{startingIndex:p,amount:l,decrement:!0,disabledIndices:u}),r&&(c-l<d||p<0)){const e=c%l,t=s%l,n=s-(t-e);p=t===e?s:t>e?n:n-l}Q(e,p)&&(p=c)}if("ArrowDown"===n.key&&(m&&N(n),-1===c?p=d:(p=te(e,{startingIndex:c,amount:l,disabledIndices:u}),r&&c+l>s&&(p=te(e,{startingIndex:c%l-l,amount:l,disabledIndices:u}))),Q(e,p)&&(p=c)),"both"===a){const t=(0,o.RI)(c/l);n.key===(i?q:S)&&(m&&N(n),c%l!==l-1?(p=te(e,{startingIndex:c,disabledIndices:u}),r&&J(p,l,t)&&(p=te(e,{startingIndex:c-c%l-1,disabledIndices:u}))):r&&(p=te(e,{startingIndex:c-c%l-1,disabledIndices:u})),J(p,l,t)&&(p=c)),n.key===(i?S:q)&&(m&&N(n),c%l!==0?(p=te(e,{startingIndex:c,decrement:!0,disabledIndices:u}),r&&J(p,l,t)&&(p=te(e,{startingIndex:c+(l-c%l),decrement:!0,disabledIndices:u}))):r&&(p=te(e,{startingIndex:c+(l-c%l),decrement:!0,disabledIndices:u})),J(p,l,t)&&(p=c));const a=(0,o.RI)(s/l)===t;Q(e,p)&&(p=r&&a?n.key===(i?S:q)?s:te(e,{startingIndex:c-c%l-1,disabledIndices:u}):c)}return p}function ae(e,t,n){const a=[];let r=0;return e.forEach((e,i)=>{let{width:o,height:l}=e,u=!1;for(n&&(r=0);!u;){const e=[];for(let n=0;n<o;n++)for(let a=0;a<l;a++)e.push(r+n+a*t);r%t+o<=t&&e.every(e=>null==a[e])?(e.forEach(e=>{a[e]=i}),u=!0):r++}}),[...a]}function re(e,t,n,a,r){if(-1===e)return-1;const i=n.indexOf(e),o=t[e];switch(r){case"tl":return i;case"tr":return o?i+o.width-1:i;case"bl":return o?i+(o.height-1)*a:i;case"br":return n.lastIndexOf(e)}}function ie(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function oe(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);const a=e.current[t];return null==a||a.hasAttribute("disabled")||"true"===a.getAttribute("aria-disabled")}const le=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ue(e,t){const n=C(e,le()),a=n.length;if(0===a)return;const r=P(I(e)),i=n.indexOf(r);return n[-1===i?1===t?0:a-1:i+t]}function de(e){return ue(I(e).body,1)||e}function se(e){return ue(I(e).body,-1)||e}function ce(e,t){const n=t||e.currentTarget,a=e.relatedTarget;return!a||!D(n,a)}function me(e){C(e,le()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function pe(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}var fe=n(31085),he=n(69514),ve=n(18684),ge="undefined"!=typeof document?a.useLayoutEffect:function(){};function be(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,a,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;0!==a--;)if(!be(e[a],t[a]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;0!==a--;)if(!{}.hasOwnProperty.call(t,r[a]))return!1;for(a=n;0!==a--;){const n=r[a];if(!("_owner"===n&&e.$$typeof||be(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function ye(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function we(e,t){const n=ye(e);return Math.round(t*n)/n}function Me(e){const t=a.useRef(e);return ge(()=>{t.current=e}),t}const Ee=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:a}="function"==typeof e?e(t):e;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?(0,ve.UE)({element:n.current,padding:a}).fn(t):{}:n?(0,ve.UE)({element:n,padding:a}).fn(t):{};var r}}),Ce=(e,t)=>({...(0,ve.cY)(e),options:[e,t]}),ke=(e,t)=>({...(0,ve.BN)(e),options:[e,t]}),_e=(e,t)=>({...(0,ve.ER)(e),options:[e,t]}),xe=(e,t)=>({...(0,ve.UU)(e),options:[e,t]}),He=(e,t)=>({...(0,ve.Ej)(e),options:[e,t]}),Te=(e,t)=>({...(0,ve.RK)(e),options:[e,t]}),Ve=(e,t)=>({...(0,ve.jD)(e),options:[e,t]}),Le=(e,t)=>({...(0,ve.mG)(e),options:[e,t]}),qe=(e,t)=>({...Ee(e),options:[e,t]});function Se(e){const t=a.useRef(void 0),n=a.useCallback(t=>{const n=e.map(e=>{if(null!=e){if("function"==typeof e){const n=e,a=n(t);return"function"==typeof a?a:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return a.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function Pe(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const De=a.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Oe(e){const{children:t,elementsRef:n,labelsRef:r}=e,[i,o]=a.useState(()=>new Set),l=a.useCallback(e=>{o(t=>new Set(t).add(e))},[]),u=a.useCallback(e=>{o(t=>{const n=new Set(t);return n.delete(e),n})},[]),d=a.useMemo(()=>{const e=new Map;return Array.from(i.keys()).sort(Pe).forEach((t,n)=>{e.set(t,n)}),e},[i]);return(0,fe.jsx)(De.Provider,{value:a.useMemo(()=>({register:l,unregister:u,map:d,elementsRef:n,labelsRef:r}),[l,u,d,n,r]),children:t})}function Re(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:r,map:i,elementsRef:o,labelsRef:l}=a.useContext(De),[u,d]=a.useState(null),s=a.useRef(null),c=a.useCallback(e=>{if(s.current=e,null!==u&&(o.current[u]=e,l)){var n;const a=void 0!==t;l.current[u]=a?t:null!=(n=null==e?void 0:e.textContent)?n:null}},[u,o,l,t]);return K(()=>{const e=s.current;if(e)return n(e),()=>{r(e)}},[n,r]),K(()=>{const e=s.current?i.get(s.current):null;null!=e&&d(e)},[i]),a.useMemo(()=>({ref:c,index:null==u?-1:u}),[u,c])}const Ie="data-floating-ui-focusable",je="active",Ae="selected",Fe="ArrowLeft",ze="ArrowRight",We="ArrowUp",Ne="ArrowDown";function Be(e,t){return"function"==typeof e?e(t):e?a.cloneElement(e,t):(0,fe.jsx)("div",{...t})}const $e=a.createContext({activeIndex:0,onNavigate:()=>{}}),Ue=[Fe,ze],Ke=[We,Ne],Ye=[...Ue,...Ke],Ge=a.forwardRef(function(e,t){const{render:n,orientation:r="both",loop:i=!0,rtl:o=!1,cols:l=1,disabledIndices:u,activeIndex:d,onNavigate:s,itemSizes:c,dense:m=!1,...p}=e,[f,h]=a.useState(0),v=null!=d?d:f,g=X(null!=s?s:h),b=a.useRef([]),y=n&&"function"!=typeof n?n.props:{},w=a.useMemo(()=>({activeIndex:v,onNavigate:g}),[v,g]),M=l>1,E={...p,...y,ref:t,"aria-orientation":"both"===r?void 0:r,onKeyDown(e){null==p.onKeyDown||p.onKeyDown(e),null==y.onKeyDown||y.onKeyDown(e),function(e){if(!Ye.includes(e.key))return;let t=v;const n=Z(b,u),a=ee(b,u),d=o?Fe:ze,s=o?ze:Fe;if(M){const s=c||Array.from({length:b.current.length},()=>({width:1,height:1})),p=ae(s,l,m),f=p.findIndex(e=>null!=e&&!oe(b,e,u)),h=p.reduce((e,t,n)=>null==t||oe(b,t,u)?e:n,-1),g=p[ne({current:p.map(e=>e?b.current[e]:null)},{event:e,orientation:r,loop:i,rtl:o,cols:l,disabledIndices:ie([...("function"!=typeof u?u:null)||b.current.map((e,t)=>oe(b,t,u)?t:void 0),void 0],p),minIndex:f,maxIndex:h,prevIndex:re(v>a?n:v,s,p,l,e.key===Ne?"bl":e.key===d?"tr":"tl")})];null!=g&&(t=g)}const p={horizontal:[d],vertical:[Ne],both:[d,Ne]}[r],f={horizontal:[s],vertical:[We],both:[s,We]}[r],h=M?Ye:{horizontal:Ue,vertical:Ke,both:Ye}[r];var y;t===v&&[...p,...f].includes(e.key)&&(t=i&&t===a&&p.includes(e.key)?n:i&&t===n&&f.includes(e.key)?a:te(b,{startingIndex:t,decrement:f.includes(e.key),disabledIndices:u})),t===v||Q(b,t)||(e.stopPropagation(),h.includes(e.key)&&e.preventDefault(),g(t),null==(y=b.current[t])||y.focus())}(e)}};return(0,fe.jsx)($e.Provider,{value:w,children:(0,fe.jsx)(Oe,{elementsRef:b,children:Be(n,E)})})}),Xe=a.forwardRef(function(e,t){const{render:n,...r}=e,i=n&&"function"!=typeof n?n.props:{},{activeIndex:o,onNavigate:l}=a.useContext($e),{ref:u,index:d}=Re(),s=Se([u,t,i.ref]),c=o===d;return Be(n,{...r,...i,ref:s,tabIndex:c?0:-1,"data-active":c?"":void 0,onFocus(e){null==r.onFocus||r.onFocus(e),null==i.onFocus||i.onFocus(e),l(d)}})}),Je={...a};let Qe=!1,Ze=0;const et=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ze++,tt=Je.useId||function(){const[e,t]=a.useState(()=>Qe?et():void 0);return K(()=>{null==e&&t(et())},[]),a.useEffect(()=>{Qe=!0},[]),e},nt=a.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:l}},width:u=14,height:d=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:m,stroke:p,d:f,style:{transform:h,...v}={},...g}=e,b=tt(),[y,w]=a.useState(!1);if(K(()=>{r&&"rtl"===(0,i.L9)(r).direction&&w(!0)},[r]),!r)return null;const[M,E]=n.split("-"),C="top"===M||"bottom"===M;let k=m;(C&&null!=l&&l.x||!C&&null!=l&&l.y)&&(k=null);const _=2*c,x=_/2,H=u/2*(s/-8+1),T=d/2*s/4,V=!!f,L=k&&"end"===E?"bottom":"top";let q=k&&"end"===E?"right":"left";k&&y&&(q="end"===E?"left":"right");const S=null!=(null==o?void 0:o.x)?k||o.x:"",P=null!=(null==o?void 0:o.y)?k||o.y:"",D=f||"M0,0 H"+u+" L"+(u-H)+","+(d-T)+" Q"+u/2+","+d+" "+H+","+(d-T)+" Z",O={top:V?"rotate(180deg)":"",left:V?"rotate(90deg)":"rotate(-90deg)",bottom:V?"":"rotate(180deg)",right:V?"rotate(-90deg)":"rotate(90deg)"}[M];return(0,fe.jsxs)("svg",{...g,"aria-hidden":!0,ref:t,width:V?u:u+_,height:u,viewBox:"0 0 "+u+" "+(d>u?d:u),style:{position:"absolute",pointerEvents:"none",[q]:S,[L]:P,[M]:C||V?"100%":"calc(100% - "+_/2+"px)",transform:[O,h].filter(e=>!!e).join(" "),...v},children:[_>0&&(0,fe.jsx)("path",{clipPath:"url(#"+b+")",fill:"none",stroke:p,strokeWidth:_+(f?0:1),d:D}),(0,fe.jsx)("path",{stroke:_&&!f?g.fill:"none",d:D}),(0,fe.jsx)("clipPath",{id:b,children:(0,fe.jsx)("rect",{x:-x,y:x*(V?-1:1),width:u+_,height:u})})]})});function at(){const e=new Map;return{emit(t,n){var a;null==(a=e.get(t))||a.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var a;null==(a=e.get(t))||a.delete(n)}}}const rt=a.createContext(null),it=a.createContext(null),ot=()=>{var e;return(null==(e=a.useContext(rt))?void 0:e.id)||null},lt=()=>a.useContext(it);function ut(e){const t=tt(),n=lt(),a=ot(),r=e||a;return K(()=>{if(!t)return;const e={id:t,parentId:r};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}},[n,t,r]),t}function dt(e){const{children:t,id:n}=e,r=ot();return(0,fe.jsx)(rt.Provider,{value:a.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function st(e){const{children:t}=e,n=a.useRef([]),r=a.useCallback(e=>{n.current=[...n.current,e]},[]),i=a.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),[o]=a.useState(()=>at());return(0,fe.jsx)(it.Provider,{value:a.useMemo(()=>({nodesRef:n,addNode:r,removeNode:i,events:o}),[r,i,o]),children:t})}function ct(e){return"data-floating-ui-"+e}function mt(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const pt=ct("safe-polygon");function ft(e,t,n){if(n&&!U(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function ht(e){return"function"==typeof e?e():e}function vt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:l,elements:u}=e,{enabled:d=!0,delay:s=0,handleClose:c=null,mouseOnly:m=!1,restMs:p=0,move:f=!0}=t,h=lt(),v=ot(),g=Y(c),b=Y(s),y=Y(n),w=Y(p),M=a.useRef(),E=a.useRef(-1),C=a.useRef(),k=a.useRef(-1),_=a.useRef(!0),x=a.useRef(!1),H=a.useRef(()=>{}),T=a.useRef(!1),V=X(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});a.useEffect(()=>{if(d)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(mt(E),mt(k),_.current=!0,T.current=!1)}},[d,l]),a.useEffect(()=>{if(!d)return;if(!g.current)return;if(!n)return;function e(e){V()&&r(!1,e,"hover")}const t=I(u.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[u.floating,n,r,d,g,V]);const L=a.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const a=ft(b.current,"close",M.current);a&&!C.current?(mt(E),E.current=window.setTimeout(()=>r(!1,e,n),a)):t&&(mt(E),r(!1,e,n))},[b,r]),q=X(()=>{H.current(),C.current=void 0}),S=X(()=>{if(x.current){const e=I(u.floating).body;e.style.pointerEvents="",e.removeAttribute(pt),x.current=!1}}),P=X(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));a.useEffect(()=>{if(d&&(0,i.vq)(u.domReference)){const r=u.domReference,i=u.floating;return n&&r.addEventListener("mouseleave",a),f&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",a),i.addEventListener("mouseenter",l),i.addEventListener("mouseleave",s)),()=>{n&&r.removeEventListener("mouseleave",a),f&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",a),i.removeEventListener("mouseenter",l),i.removeEventListener("mouseleave",s))}}function e(e){if(mt(E),_.current=!1,m&&!U(M.current)||ht(w.current)>0&&!ft(b.current,"open"))return;const t=ft(b.current,"open",M.current);t?E.current=window.setTimeout(()=>{y.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(P())return void S();H.current();const t=I(u.floating);if(mt(k),T.current=!1,g.current&&o.current.floatingContext){n||mt(E),C.current=g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){S(),q(),P()||L(e,!0,"safe-polygon")}});const a=C.current;return t.addEventListener("mousemove",a),void(H.current=()=>{t.removeEventListener("mousemove",a)})}("touch"!==M.current||!D(u.floating,e.relatedTarget))&&L(e)}function a(e){P()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){S(),q(),P()||L(e)}})(e))}function l(){mt(E)}function s(e){P()||L(e,!1)}},[u,d,e,m,f,L,q,S,r,n,y,h,b,g,o,P,w]),K(()=>{var e;if(d&&n&&null!=(e=g.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&V()){x.current=!0;const e=u.floating;if((0,i.vq)(u.domReference)&&e){var t;const n=I(u.floating).body;n.setAttribute(pt,"");const a=u.domReference,r=null==h||null==(t=h.nodesRef.current.find(e=>e.id===v))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),n.style.pointerEvents="none",a.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",a.style.pointerEvents="",e.style.pointerEvents=""}}}},[d,n,v,u,h,g,V]),K(()=>{n||(M.current=void 0,T.current=!1,q(),S())},[n,q,S]),a.useEffect(()=>()=>{q(),mt(E),mt(k),S()},[d,u.domReference,q,S]);const O=a.useMemo(()=>{function e(e){M.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function a(){_.current||y.current||r(!0,t,"hover")}m&&!U(M.current)||n||0===ht(w.current)||T.current&&e.movementX**2+e.movementY**2<2||(mt(k),"touch"===M.current?a():(T.current=!0,k.current=window.setTimeout(a,ht(w.current))))}}},[m,r,n,y,w]);return a.useMemo(()=>d?{reference:O}:{},[d,O])}const gt=()=>{},bt=a.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:gt,setState:gt,isInstantPhase:!1}),yt=()=>a.useContext(bt);function wt(e){const{children:t,delay:n,timeoutMs:r=0}=e,[i,o]=a.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),l=a.useRef(null),u=a.useCallback(e=>{o({currentId:e})},[]);return K(()=>{i.currentId?null===l.current?l.current=i.currentId:i.isInstantPhase||o({isInstantPhase:!0}):(i.isInstantPhase&&o({isInstantPhase:!1}),l.current=null)},[i.currentId,i.isInstantPhase]),(0,fe.jsx)(bt.Provider,{value:a.useMemo(()=>({...i,setState:o,setCurrentId:u}),[i,u]),children:t})}function Mt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,floatingId:r}=e,{id:i,enabled:o=!0}=t,l=null!=i?i:r,u=yt(),{currentId:d,setCurrentId:s,initialDelay:c,setState:m,timeoutMs:p}=u;return K(()=>{o&&d&&(m({delay:{open:1,close:ft(c,"close")}}),d!==l&&a(!1))},[o,l,a,m,d,c]),K(()=>{function e(){a(!1),m({delay:c,currentId:null})}if(o&&d&&!n&&d===l){if(p){const t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,m,d,l,a,c,p]),K(()=>{o&&s!==gt&&n&&s(l)},[o,n,s,l]),u}const Et=a.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeoutIdRef:{current:-1},currentIdRef:{current:null},currentContextRef:{current:null}});function Ct(e){const{children:t,delay:n,timeoutMs:r=0}=e,i=a.useRef(n),o=a.useRef(n),l=a.useRef(null),u=a.useRef(null),d=a.useRef(-1);return(0,fe.jsx)(Et.Provider,{value:a.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:o,currentIdRef:l,timeoutMs:r,currentContextRef:u,timeoutIdRef:d}),[r]),children:t})}function kt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:i}=e,{enabled:o=!0}=t,l=a.useContext(Et),{currentIdRef:u,delayRef:d,timeoutMs:s,initialDelayRef:c,currentContextRef:m,hasProvider:p,timeoutIdRef:f}=l,[h,v]=a.useState(!1);return K(()=>{function e(){var e;v(!1),null==(e=m.current)||e.setIsInstantPhase(!1),u.current=null,m.current=null,d.current=c.current}if(o&&u.current&&!n&&u.current===i){if(v(!1),s)return f.current=window.setTimeout(e,s),()=>{clearTimeout(f.current)};e()}},[o,n,i,u,d,s,c,m,f]),K(()=>{if(!o)return;if(!n)return;const e=m.current,t=u.current;m.current={onOpenChange:r,setIsInstantPhase:v},u.current=i,d.current={open:0,close:ft(c.current,"close")},null!==t&&t!==i?(mt(f),v(!0),null==e||e.setIsInstantPhase(!0),null==e||e.onOpenChange(!1)):(v(!1),null==e||e.setIsInstantPhase(!1))},[o,n,i,r,u,d,s,c,m,f]),K(()=>()=>{m.current=null},[m]),a.useMemo(()=>({hasProvider:p,delayRef:d,isInstantPhase:h}),[p,d,h])}let _t=0;function xt(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:a=!0,sync:r=!1}=t;a&&cancelAnimationFrame(_t);const i=()=>null==e?void 0:e.focus({preventScroll:n});r?i():_t=requestAnimationFrame(i)}function Ht(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}const Tt={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Vt(e){return"inert"===e?Tt.inert:"aria-hidden"===e?Tt["aria-hidden"]:Tt.none}let Lt=new WeakSet,qt={},St=0;const Pt=e=>e&&(e.host||Pt(e.parentNode));function Dt(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=(r=e[0],(null==r?void 0:r.ownerDocument)||document).body;var r;return function(e,t,n,a){const r="data-floating-ui-inert",o=a?"inert":n?"aria-hidden":null,l=(u=t,e.map(e=>{if(u.contains(e))return e;const t=Pt(e);return u.contains(t)?t:null}).filter(e=>null!=e));var u;const d=new Set,s=new Set(l),c=[];qt[r]||(qt[r]=new WeakMap);const m=qt[r];return l.forEach(function e(t){t&&!d.has(t)&&(d.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!s.has(t)&&[].forEach.call(t.children,t=>{if("script"!==(0,i.mq)(t))if(d.has(t))e(t);else{const e=o?t.getAttribute(o):null,n=null!==e&&"false"!==e,a=Vt(o),i=(a.get(t)||0)+1,l=(m.get(t)||0)+1;a.set(t,i),m.set(t,l),c.push(t),1===i&&n&&Lt.add(t),1===l&&t.setAttribute(r,""),!n&&o&&t.setAttribute(o,"inert"===o?"":"true")}})}(t),d.clear(),St++,()=>{c.forEach(e=>{const t=Vt(o),n=(t.get(e)||0)-1,a=(m.get(e)||0)-1;t.set(e,n),m.set(e,a),n||(!Lt.has(e)&&o&&e.removeAttribute(o),Lt.delete(e)),a||e.removeAttribute(r)}),St--,St||(Tt.inert=new WeakMap,Tt["aria-hidden"]=new WeakMap,Tt.none=new WeakMap,Lt=new WeakSet,qt={})}}(e.concat(Array.from(a.querySelectorAll('[aria-live],[role="status"],output'))),a,t,n)}const Ot={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Rt=a.forwardRef(function(e,t){const[n,r]=a.useState();K(()=>{H()&&r("button")},[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[ct("focus-guard")]:"",style:Ot};return(0,fe.jsx)("span",{...e,...i})}),It=a.createContext(null),jt=ct("portal");function At(e){void 0===e&&(e={});const{id:t,root:n}=e,r=tt(),o=zt(),[l,u]=a.useState(null),d=a.useRef(null);return K(()=>()=>{null==l||l.remove(),queueMicrotask(()=>{d.current=null})},[l]),K(()=>{if(!r)return;if(d.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(jt,""),e.appendChild(n),d.current=n,u(n)},[t,r]),K(()=>{if(null===n)return;if(!r)return;if(d.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!(0,i.Ll)(e)&&(e=e.current),e=e||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,e.appendChild(a));const l=document.createElement("div");l.id=r,l.setAttribute(jt,""),e=a||e,e.appendChild(l),d.current=l,u(l)},[t,n,r,o]),l}function Ft(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,o=At({id:n,root:r}),[l,u]=a.useState(null),d=a.useRef(null),s=a.useRef(null),c=a.useRef(null),m=a.useRef(null),p=null==l?void 0:l.modal,f=null==l?void 0:l.open,h=!!l&&!l.modal&&l.open&&i&&!(!r&&!o);return a.useEffect(()=>{if(o&&i&&!p)return o.addEventListener("focusin",e,!0),o.addEventListener("focusout",e,!0),()=>{o.removeEventListener("focusin",e,!0),o.removeEventListener("focusout",e,!0)};function e(e){o&&ce(e)&&("focusin"===e.type?pe:me)(o)}},[o,i,p]),a.useEffect(()=>{o&&(f||pe(o))},[f,o]),(0,fe.jsxs)(It.Provider,{value:a.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:d,afterOutsideRef:s,beforeInsideRef:c,afterInsideRef:m,portalNode:o,setFocusManagerState:u}),[i,o]),children:[h&&o&&(0,fe.jsx)(Rt,{"data-type":"outside",ref:d,onFocus:e=>{if(ce(e,o)){var t;null==(t=c.current)||t.focus()}else{const e=se(l?l.domReference:null);null==e||e.focus()}}}),h&&o&&(0,fe.jsx)("span",{"aria-owns":o.id,style:Ot}),o&&he.createPortal(t,o),h&&o&&(0,fe.jsx)(Rt,{"data-type":"outside",ref:s,onFocus:e=>{if(ce(e,o)){var t;null==(t=m.current)||t.focus()}else{const t=de(l?l.domReference:null);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const zt=()=>a.useContext(It);function Wt(e){return a.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let Nt=[];function Bt(){Nt=Nt.filter(e=>e.isConnected)}function $t(){return Bt(),Nt[Nt.length-1]}function Ut(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const a=le(),r=function(e,t){return(t=t||{}).getShadowRoot?p([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):m(e,t.includeContainer,y.bind(null,t))}(e,a),i=r.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return k(e,a)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),o=e.getAttribute("tabindex");t.current.includes("floating")||0===i.length?"0"!==o&&e.setAttribute("tabindex","0"):("-1"!==o||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const Kt=a.forwardRef(function(e,t){return(0,fe.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:Ot})});function Yt(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:l=!0,initialFocus:u=0,returnFocus:d=!0,restoreFocus:s=!1,modal:c=!0,visuallyHiddenDismiss:m=!1,closeOnFocusOut:p=!0,outsideElementsInert:f=!1,getInsideElements:h=()=>[]}=e,{open:v,onOpenChange:g,events:b,dataRef:y,elements:{domReference:w,floating:M}}=t,E=X(()=>{var e;return null==(e=y.current.floatingContext)?void 0:e.nodeId}),_=X(h),x="number"==typeof u&&u<0,H=A(w)&&x,T="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,V=!T||l,L=!V||T&&f,q=Y(o),S=Y(u),R=Y(d),j=lt(),U=zt(),G=a.useRef(null),J=a.useRef(null),Q=a.useRef(!1),Z=a.useRef(!1),ee=a.useRef(-1),te=a.useRef(-1),ne=null!=U,ae=F(M),re=X(function(e){return void 0===e&&(e=ae),e?C(e,le()):[]}),ie=X(e=>{const t=re(e);return q.current.map(e=>w&&"reference"===e?w:ae&&"floating"===e?ae:t).filter(Boolean).flat()});a.useEffect(()=>{if(r)return;if(!c)return;function e(e){if("Tab"===e.key){D(ae,P(I(ae)))&&0===re().length&&!H&&N(e);const t=ie(),n=O(e);"reference"===q.current[0]&&n===w&&(N(e),e.shiftKey?xt(t[t.length-1]):xt(t[1])),"floating"===q.current[1]&&n===ae&&e.shiftKey&&(N(e),xt(t[0]))}}const t=I(ae);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,w,ae,c,q,H,re,ie]),a.useEffect(()=>{if(!r&&M)return M.addEventListener("focusin",e),()=>{M.removeEventListener("focusin",e)};function e(e){const t=O(e),n=re().indexOf(t);-1!==n&&(ee.current=n)}},[r,M,re]),a.useEffect(()=>{if(r)return;if(!p)return;function e(){Z.current=!0,setTimeout(()=>{Z.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,a=O(e);queueMicrotask(()=>{const r=E(),o=!(D(w,t)||D(M,t)||D(t,M)||D(null==U?void 0:U.portalNode,t)||null!=t&&t.hasAttribute(ct("focus-guard"))||j&&(z(j.nodesRef.current,r).find(e=>{var n,a;return D(null==(n=e.context)?void 0:n.elements.floating,t)||D(null==(a=e.context)?void 0:a.elements.domReference,t)})||W(j.nodesRef.current,r).find(e=>{var n,a,r;return[null==(n=e.context)?void 0:n.elements.floating,F(null==(a=e.context)?void 0:a.elements.floating)].includes(t)||(null==(r=e.context)?void 0:r.elements.domReference)===t})));if(n===w&&ae&&Ut(ae,q),s&&n!==w&&(null==a||!a.isConnected)&&P(I(ae))===I(ae).body){(0,i.sb)(ae)&&ae.focus();const e=ee.current,t=re(),n=t[e]||t[t.length-1]||ae;(0,i.sb)(n)&&n.focus()}y.current.insideReactTree?y.current.insideReactTree=!1:!H&&c||!t||!o||Z.current||t===$t()||(Q.current=!0,g(!1,e,"focus-out"))})}const n=Boolean(!j&&U);function a(){mt(te),y.current.insideReactTree=!0,te.current=window.setTimeout(()=>{y.current.insideReactTree=!1})}return M&&(0,i.sb)(w)?(w.addEventListener("focusout",t),w.addEventListener("pointerdown",e),M.addEventListener("focusout",t),n&&M.addEventListener("focusout",a,!0),()=>{w.removeEventListener("focusout",t),w.removeEventListener("pointerdown",e),M.removeEventListener("focusout",t),n&&M.removeEventListener("focusout",a,!0)}):void 0},[r,w,M,ae,c,j,U,g,p,s,re,H,E,q,y]);const oe=a.useRef(null),ue=a.useRef(null),me=Wt([oe,null==U?void 0:U.beforeInsideRef]),pe=Wt([ue,null==U?void 0:U.afterInsideRef]);function he(e){return!r&&m&&c?(0,fe.jsx)(Kt,{ref:"start"===e?G:J,onClick:e=>g(!1,e.nativeEvent),children:"string"==typeof m?m:"Dismiss"}):null}a.useEffect(()=>{var e,t;if(r)return;if(!M)return;const n=Array.from((null==U||null==(e=U.portalNode)?void 0:e.querySelectorAll("["+ct("portal")+"]"))||[]),a=null==(t=(j?W(j.nodesRef.current,E()):[]).find(e=>{var t;return A((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,i=[M,a,...n,..._(),G.current,J.current,oe.current,ue.current,null==U?void 0:U.beforeOutsideRef.current,null==U?void 0:U.afterOutsideRef.current,q.current.includes("reference")||H?w:null].filter(e=>null!=e),o=c||H?Dt(i,!L,L):Dt(i);return()=>{o()}},[r,w,M,c,q,U,H,V,L,j,E,_]),K(()=>{if(r||!(0,i.sb)(ae))return;const e=P(I(ae));queueMicrotask(()=>{const t=ie(ae),n=S.current,a=("number"==typeof n?t[n]:n.current)||ae,r=D(ae,e);x||r||!v||xt(a,{preventScroll:a===ae})})},[r,v,ae,x,ie,S]),K(()=>{if(r||!ae)return;const e=I(ae);var t;function n(e){let{reason:t,event:n,nested:a}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(Q.current=!0),"outside-press"===t)if(a)Q.current=!1;else if(B(n)||$(n))Q.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),Q.current=!e}}t=P(e),Bt(),t&&"body"!==(0,i.mq)(t)&&(Nt.push(t),Nt.length>20&&(Nt=Nt.slice(-20))),b.on("openchange",n);const a=e.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,Ot),ne&&w&&w.insertAdjacentElement("afterend",a),()=>{b.off("openchange",n);const t=P(e),r=D(M,t)||j&&z(j.nodesRef.current,E(),!1).some(e=>{var n;return D(null==(n=e.context)?void 0:n.elements.floating,t)}),o=function(){if("boolean"==typeof R.current){const e=w||$t();return e&&e.isConnected?e:a}return R.current.current||a}();queueMicrotask(()=>{const n=function(e){const t=le();return k(e,t)?e:C(e,t)[0]||e}(o);R.current&&!Q.current&&(0,i.sb)(n)&&(n===t||t===e.body||r)&&n.focus({preventScroll:!0}),a.remove()})}},[r,M,ae,R,y,b,j,ne,w,E]),a.useEffect(()=>(queueMicrotask(()=>{Q.current=!1}),()=>{queueMicrotask(Bt)}),[r]),K(()=>{if(!r&&U)return U.setFocusManagerState({modal:c,closeOnFocusOut:p,open:v,onOpenChange:g,domReference:w}),()=>{U.setFocusManagerState(null)}},[r,U,c,v,g,p,w]),K(()=>{r||ae&&Ut(ae,q)},[r,ae,q]);const ve=!r&&V&&(!c||!H)&&(ne||c);return(0,fe.jsxs)(fe.Fragment,{children:[ve&&(0,fe.jsx)(Rt,{"data-type":"inside",ref:me,onFocus:e=>{if(c){const e=ie();xt("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=U&&U.preserveTabOrder&&U.portalNode)if(Q.current=!1,ce(e,U.portalNode)){const e=de(w);null==e||e.focus()}else{var t;null==(t=U.beforeOutsideRef.current)||t.focus()}}}),!H&&he("start"),n,he("end"),ve&&(0,fe.jsx)(Rt,{"data-type":"inside",ref:pe,onFocus:e=>{if(c)xt(ie()[0]);else if(null!=U&&U.preserveTabOrder&&U.portalNode)if(p&&(Q.current=!0),ce(e,U.portalNode)){const e=se(w);null==e||e.focus()}else{var t;null==(t=U.afterOutsideRef.current)||t.focus()}}})]})}let Gt=0;const Xt="--floating-ui-scrollbar-width";let Jt=()=>{};const Qt=a.forwardRef(function(e,t){const{lockScroll:n=!1,...a}=e;return K(()=>{if(n)return Gt++,1===Gt&&(Jt=function(){const e=_(),t=/iP(hone|ad|od)|iOS/.test(e)||"MacIntel"===e&&navigator.maxTouchPoints>1,n=document.body.style,a=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,i=n.left?parseFloat(n.left):window.scrollX,o=n.top?parseFloat(n.top):window.scrollY;if(n.overflow="hidden",n.setProperty(Xt,r+"px"),r&&(n[a]=r+"px"),t){var l,u;const e=(null==(l=window.visualViewport)?void 0:l.offsetLeft)||0,t=(null==(u=window.visualViewport)?void 0:u.offsetTop)||0;Object.assign(n,{position:"fixed",top:-(o-Math.floor(t))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(n,{overflow:"",[a]:""}),n.removeProperty(Xt),t&&(Object.assign(n,{position:"",top:"",left:"",right:""}),window.scrollTo(i,o))}}()),()=>{Gt--,0===Gt&&Jt()}},[n]),(0,fe.jsx)("div",{ref:t,...a,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...a.style}})});function Zt(e){return(0,i.sb)(e.target)&&"BUTTON"===e.target.tagName}function en(e){return j(e)}function tn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:l}}=e,{enabled:u=!0,event:d="click",toggle:s=!0,ignoreMouse:c=!1,keyboardHandlers:m=!0,stickIfOpen:p=!0}=t,f=a.useRef(),h=a.useRef(!1),v=a.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==d&&(U(t,!0)&&c||(!n||!s||o.current.openEvent&&p&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===d&&f.current?f.current=void 0:U(t,!0)&&c||(!n||!s||o.current.openEvent&&p&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!m||Zt(e)||(" "!==e.key||en(l)||(e.preventDefault(),h.current=!0),function(e){return(0,i.sb)(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!m||Zt(e)||en(l)||" "===e.key&&h.current&&(h.current=!1,r(!n||!s,e.nativeEvent,"click"))}}),[o,l,d,c,m,r,n,p,s]);return a.useMemo(()=>u?{reference:v}:{},[u,v])}function nn(e){return null!=e&&null!=e.clientX}function an(e,t){void 0===t&&(t={});const{open:n,dataRef:r,elements:{floating:o,domReference:l},refs:u}=e,{enabled:d=!0,axis:s="both",x:c=null,y:m=null}=t,p=a.useRef(!1),f=a.useRef(null),[h,v]=a.useState(),[g,b]=a.useState([]),y=X((e,t)=>{p.current||r.current.openEvent&&!nn(r.current.openEvent)||u.setPositionReference(function(e,t){let n=null,a=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){var i;const o=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},l="x"===t.axis||"both"===t.axis,u="y"===t.axis||"both"===t.axis,d=["mouseenter","mousemove"].includes((null==(i=t.dataRef.current.openEvent)?void 0:i.type)||"")&&"touch"!==t.pointerType;let s=o.width,c=o.height,m=o.x,p=o.y;return null==n&&t.x&&l&&(n=o.x-t.x),null==a&&t.y&&u&&(a=o.y-t.y),m-=n||0,p-=a||0,s=0,c=0,!r||d?(s="y"===t.axis?o.width:0,c="x"===t.axis?o.height:0,m=l&&null!=t.x?t.x:m,p=u&&null!=t.y?t.y:p):r&&!d&&(c="x"===t.axis?o.height:c,s="y"===t.axis?o.width:s),r=!0,{width:s,height:c,x:m,y:p,top:p,right:m+s,bottom:p+c,left:m}}}}(l,{x:e,y:t,axis:s,dataRef:r,pointerType:h}))}),w=X(e=>{null==c&&null==m&&(n?f.current||b([]):y(e.clientX,e.clientY))}),M=U(h)?o:n,E=a.useCallback(()=>{if(!M||!d||null!=c||null!=m)return;const e=(0,i.zk)(o);function t(n){const a=O(n);D(o,a)?(e.removeEventListener("mousemove",t),f.current=null):y(n.clientX,n.clientY)}if(!r.current.openEvent||nn(r.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),f.current=null};return f.current=n,n}u.setPositionReference(l)},[M,d,c,m,o,r,u,l,y]);a.useEffect(()=>E(),[E,g]),a.useEffect(()=>{d&&!o&&(p.current=!1)},[d,o]),a.useEffect(()=>{!d&&n&&(p.current=!0)},[d,n]),K(()=>{!d||null==c&&null==m||(p.current=!1,y(c,m))},[d,c,m,y]);const C=a.useMemo(()=>{function e(e){let{pointerType:t}=e;v(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:w,onMouseEnter:w}},[w]);return a.useMemo(()=>d?{reference:C}:{},[d,C])}const rn={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},on={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ln=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function un(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:l}=e,{enabled:u=!0,escapeKey:d=!0,outsidePress:s=!0,outsidePressEvent:c="pointerdown",referencePress:m=!1,referencePressEvent:p="pointerdown",ancestorScroll:f=!1,bubbles:h,capture:v}=t,g=lt(),b=X("function"==typeof s?s:()=>!1),y="function"==typeof s?b:s,w=a.useRef(!1),{escapeKey:M,outsidePress:E}=ln(h),{escapeKey:C,outsidePress:k}=ln(v),_=a.useRef(!1),x=X(e=>{var t;if(!n||!u||!d||"Escape"!==e.key)return;if(_.current)return;const a=null==(t=l.current.floatingContext)?void 0:t.nodeId,i=g?z(g.nodesRef.current,a):[];if(!M&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),H=X(e=>{var t;const n=()=>{var t;x(e),null==(t=O(e))||t.removeEventListener("keydown",n)};null==(t=O(e))||t.addEventListener("keydown",n)}),T=X(e=>{var t;const n=l.current.insideReactTree;l.current.insideReactTree=!1;const a=w.current;if(w.current=!1,"click"===c&&a)return;if(n)return;if("function"==typeof y&&!y(e))return;const u=O(e),d="["+ct("inert")+"]",s=I(o.floating).querySelectorAll(d);let m=(0,i.vq)(u)?u:null;for(;m&&!(0,i.eu)(m);){const e=(0,i.$4)(m);if((0,i.eu)(e)||!(0,i.vq)(e))break;m=e}if(s.length&&(0,i.vq)(u)&&!u.matches("html,body")&&!D(u,o.floating)&&Array.from(s).every(e=>!D(m,e)))return;if((0,i.sb)(u)&&q){const t=(0,i.eu)(u),n=(0,i.L9)(u),a=/auto|scroll/,r=t||a.test(n.overflowX),o=t||a.test(n.overflowY),l=r&&u.clientWidth>0&&u.scrollWidth>u.clientWidth,d=o&&u.clientHeight>0&&u.scrollHeight>u.clientHeight,s="rtl"===n.direction,c=d&&(s?e.offsetX<=u.offsetWidth-u.clientWidth:e.offsetX>u.clientWidth),m=l&&e.offsetY>u.clientHeight;if(c||m)return}const p=null==(t=l.current.floatingContext)?void 0:t.nodeId,f=g&&z(g.nodesRef.current,p).some(t=>{var n;return R(e,null==(n=t.context)?void 0:n.elements.floating)});if(R(e,o.floating)||R(e,o.domReference)||f)return;const h=g?z(g.nodesRef.current,p):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),V=X(e=>{var t;const n=()=>{var t;T(e),null==(t=O(e))||t.removeEventListener(c,n)};null==(t=O(e))||t.addEventListener(c,n)});a.useEffect(()=>{if(!n||!u)return;l.current.__escapeKeyBubbles=M,l.current.__outsidePressBubbles=E;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function a(){window.clearTimeout(e),_.current=!0}function s(){e=window.setTimeout(()=>{_.current=!1},(0,i.Tc)()?5:0)}const m=I(o.floating);d&&(m.addEventListener("keydown",C?H:x,C),m.addEventListener("compositionstart",a),m.addEventListener("compositionend",s)),y&&m.addEventListener(c,k?V:T,k);let p=[];return f&&((0,i.vq)(o.domReference)&&(p=(0,i.v9)(o.domReference)),(0,i.vq)(o.floating)&&(p=p.concat((0,i.v9)(o.floating))),!(0,i.vq)(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat((0,i.v9)(o.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=m.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{d&&(m.removeEventListener("keydown",C?H:x,C),m.removeEventListener("compositionstart",a),m.removeEventListener("compositionend",s)),y&&m.removeEventListener(c,k?V:T,k),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[l,o,d,y,c,n,r,f,u,M,E,x,C,H,T,k,V]),a.useEffect(()=>{l.current.insideReactTree=!1},[l,y,c]);const L=a.useMemo(()=>({onKeyDown:x,...m&&{[rn[p]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==p&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[x,r,m,p]),q=a.useMemo(()=>({onKeyDown:x,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[on[c]]:()=>{l.current.insideReactTree=!0}}),[x,c,l]);return a.useMemo(()=>u?{reference:L,floating:q}:{},[u,L,q])}function dn(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=tt(),o=a.useRef({}),[l]=a.useState(()=>at()),u=null!=ot(),[d,s]=a.useState(r.reference),c=X((e,t,a)=>{o.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:a,nested:u}),null==n||n(e,t,a)}),m=a.useMemo(()=>({setPositionReference:s}),[]),p=a.useMemo(()=>({reference:d||r.reference||null,floating:r.floating||null,domReference:r.reference}),[d,r.reference,r.floating]);return a.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:p,events:l,floatingId:i,refs:m}),[t,c,p,l,i,m])}function sn(e){void 0===e&&(e={});const{nodeId:t}=e,n=dn({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[l,u]=a.useState(null),[d,s]=a.useState(null),c=(null==o?void 0:o.domReference)||l,m=a.useRef(null),p=lt();K(()=>{c&&(m.current=c)},[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:u=!0,whileElementsMounted:d,open:s}=e,[c,m]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=a.useState(r);be(p,r)||f(r);const[h,v]=a.useState(null),[g,b]=a.useState(null),y=a.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),w=a.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),M=o||h,E=l||g,C=a.useRef(null),k=a.useRef(null),_=a.useRef(c),x=null!=d,H=Me(d),T=Me(i),V=Me(s),L=a.useCallback(()=>{if(!C.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),(0,ve.rD)(C.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==V.current};q.current&&!be(_.current,t)&&(_.current=t,he.flushSync(()=>{m(t)}))})},[p,t,n,T,V]);ge(()=>{!1===s&&_.current.isPositioned&&(_.current.isPositioned=!1,m(e=>({...e,isPositioned:!1})))},[s]);const q=a.useRef(!1);ge(()=>(q.current=!0,()=>{q.current=!1}),[]),ge(()=>{if(M&&(C.current=M),E&&(k.current=E),M&&E){if(H.current)return H.current(M,E,L);L()}},[M,E,L,H,x]);const S=a.useMemo(()=>({reference:C,floating:k,setReference:y,setFloating:w}),[y,w]),P=a.useMemo(()=>({reference:M,floating:E}),[M,E]),D=a.useMemo(()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=we(P.floating,c.x),a=we(P.floating,c.y);return u?{...e,transform:"translate("+t+"px, "+a+"px)",...ye(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:a}},[n,u,P.floating,c.x,c.y]);return a.useMemo(()=>({...c,update:L,refs:S,elements:P,floatingStyles:D}),[c,L,S,P,D])}({...e,elements:{...o,...d&&{reference:d}}}),h=a.useCallback(e=>{const t=(0,i.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),v=a.useCallback(e=>{((0,i.vq)(e)||null===e)&&(m.current=e,u(e)),((0,i.vq)(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!(0,i.vq)(e))&&f.refs.setReference(e)},[f.refs]),g=a.useMemo(()=>({...f.refs,setReference:v,setPositionReference:h,domReference:m}),[f.refs,v,h]),b=a.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),y=a.useMemo(()=>({...f,...r,refs:g,elements:b,nodeId:t}),[f,g,b,t,r]);return K(()=>{r.dataRef.current.floatingContext=y;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),a.useMemo(()=>({...f,context:y,refs:g,elements:b}),[f,g,b,y])}function cn(){return _().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&H()}function mn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:l,elements:u}=e,{enabled:d=!0,visibleOnly:s=!0}=t,c=a.useRef(!1),m=a.useRef(-1),p=a.useRef(!0);a.useEffect(()=>{if(!d)return;const e=(0,i.zk)(u.domReference);function t(){!n&&(0,i.sb)(u.domReference)&&u.domReference===P(I(u.domReference))&&(c.current=!0)}function a(){p.current=!0}function r(){p.current=!1}return e.addEventListener("blur",t),cn()&&(e.addEventListener("keydown",a,!0),e.addEventListener("pointerdown",r,!0)),()=>{e.removeEventListener("blur",t),cn()&&(e.removeEventListener("keydown",a,!0),e.removeEventListener("pointerdown",r,!0))}},[u.domReference,n,d]),a.useEffect(()=>{if(d)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(c.current=!0)}},[o,d]),a.useEffect(()=>()=>{mt(m)},[]);const f=a.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=O(e.nativeEvent);if(s&&(0,i.vq)(t))if(cn()&&!e.relatedTarget){if(!p.current&&!j(t))return}else if(!function(e){if(!e||V())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,a=(0,i.vq)(t)&&t.hasAttribute(ct("focus-guard"))&&"outside"===t.getAttribute("data-type");m.current=window.setTimeout(()=>{var e;const i=P(u.domReference?u.domReference.ownerDocument:document);(t||i!==u.domReference)&&(D(null==(e=l.current.floatingContext)?void 0:e.refs.floating.current,i)||D(u.domReference,i)||a||r(!1,n,"focus"))})}}),[l,u.domReference,r,s]);return a.useMemo(()=>d?{reference:f}:{},[d,f])}function pn(e,t,n){const a=new Map,r="item"===n;let i=e;if(r&&e){const{[je]:t,[Ae]:n,...a}=e;i=a}return{..."floating"===n&&{tabIndex:-1,[Ie]:""},...i,...t.map(t=>{const a=t?t[n]:null;return"function"==typeof a?e?a(e):null:a}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var o;r&&[je,Ae].includes(n)||(0===n.indexOf("on")?(a.has(n)||a.set(n,[]),"function"==typeof i&&(null==(o=a.get(n))||o.push(i),e[n]=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return null==(e=a.get(n))?void 0:e.map(e=>e(...r)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function fn(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),i=a.useCallback(t=>pn(t,e,"reference"),t),o=a.useCallback(t=>pn(t,e,"floating"),n),l=a.useCallback(t=>pn(t,e,"item"),r);return a.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:l}),[i,o,l])}function hn(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function vn(e,t){return hn(t,e===We||e===Ne,e===Fe||e===ze)}function gn(e,t,n){return hn(t,e===Ne,n?e===Fe:e===ze)||"Enter"===e||" "===e||""===e}function bn(e,t,n){return hn(t,n?e===Fe:e===ze,e===Ne)}function yn(e,t,n,a){return"both"===t||"horizontal"===t&&a&&a>1?"Escape"===e:hn(t,n?e===ze:e===Fe,e===We)}function wn(e,t){const{open:n,onOpenChange:r,elements:o,floatingId:l}=e,{listRef:u,activeIndex:d,onNavigate:s=()=>{},enabled:c=!0,selectedIndex:m=null,allowEscape:p=!1,loop:f=!1,nested:h=!1,rtl:v=!1,virtual:g=!1,focusItemOnOpen:b="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:w=!0,disabledIndices:M,orientation:E="vertical",parentOrientation:C,cols:k=1,scrollItemIntoView:_=!0,virtualItemRef:x,itemSizes:H,dense:T=!1}=t,V=Y(F(o.floating)),L=ot(),q=lt();K(()=>{e.dataRef.current.orientation=E},[e,E]);const S=X(()=>{s(-1===j.current?null:j.current)}),O=A(o.domReference),R=a.useRef(b),j=a.useRef(null!=m?m:-1),W=a.useRef(null),U=a.useRef(!0),G=a.useRef(S),J=a.useRef(!!o.floating),le=a.useRef(n),ue=a.useRef(!1),de=a.useRef(!1),se=Y(M),ce=Y(n),me=Y(_),pe=Y(m),[fe,he]=a.useState(),[ve,ge]=a.useState(),be=X(()=>{function e(e){var t;g?(null!=(t=e.id)&&t.endsWith("-fui-option")&&(e.id=l+"-"+Math.random().toString(16).slice(2,10)),he(e.id),null==q||q.events.emit("virtualfocus",e),x&&(x.current=e)):xt(e,{sync:ue.current,preventScroll:!0})}const t=u.current[j.current],n=de.current;t&&e(t),(ue.current?e=>e():requestAnimationFrame)(()=>{const a=u.current[j.current]||t;if(!a)return;t||e(a);const r=me.current;r&&we&&(n||!U.current)&&(null==a.scrollIntoView||a.scrollIntoView("boolean"==typeof r?{block:"nearest",inline:"nearest"}:r))})});K(()=>{c&&(n&&o.floating?R.current&&null!=m&&(de.current=!0,j.current=m,S()):J.current&&(j.current=-1,G.current()))},[c,n,o.floating,m,S]),K(()=>{if(c&&n&&o.floating)if(null==d){if(ue.current=!1,null!=pe.current)return;if(J.current&&(j.current=-1,be()),(!le.current||!J.current)&&R.current&&(null!=W.current||!0===R.current&&null==W.current)){let e=0;const t=()=>{null==u.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(j.current=null==W.current||gn(W.current,E,v)||h?Z(u,se.current):ee(u,se.current),W.current=null,S())};t()}}else Q(u,d)||(j.current=d,be(),de.current=!1)},[c,n,o.floating,d,pe,h,u,E,v,S,be,se]),K(()=>{var e;if(!c||o.floating||!q||g||!J.current)return;const t=q.nodesRef.current,n=null==(e=t.find(e=>e.id===L))||null==(e=e.context)?void 0:e.elements.floating,a=P(I(o.floating)),r=t.some(e=>e.context&&D(e.context.elements.floating,a));n&&!r&&U.current&&n.focus({preventScroll:!0})},[c,o.floating,q,L,g]),K(()=>{if(c&&q&&g&&!L)return q.events.on("virtualfocus",e),()=>{q.events.off("virtualfocus",e)};function e(e){ge(e.id),x&&(x.current=e)}},[c,q,g,L,x]),K(()=>{G.current=S,le.current=n,J.current=!!o.floating}),K(()=>{n||(W.current=null,R.current=b)},[n,b]);const ye=null!=d,we=a.useMemo(()=>{function e(e){if(!ce.current)return;const t=u.current.indexOf(e);-1!==t&&j.current!==t&&(j.current=t,S())}return{onFocus(t){let{currentTarget:n}=t;ue.current=!0,e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},onMouseMove(t){let{currentTarget:n}=t;ue.current=!0,de.current=!1,y&&e(n)},onPointerLeave(e){let{pointerType:t}=e;var n;U.current&&"touch"!==t&&(ue.current=!0,y&&(j.current=-1,S(),g||null==(n=V.current)||n.focus({preventScroll:!0})))}}},[ce,V,y,u,S,g]),Me=a.useCallback(()=>{var e;return null!=C?C:null==q||null==(e=q.nodesRef.current.find(e=>e.id===L))||null==(e=e.context)||null==(e=e.dataRef)?void 0:e.current.orientation},[L,q,C]),Ee=X(e=>{if(U.current=!1,ue.current=!0,229===e.which)return;if(!ce.current&&e.currentTarget===V.current)return;if(h&&yn(e.key,E,v,k))return vn(e.key,Me())||N(e),r(!1,e.nativeEvent,"list-navigation"),void((0,i.sb)(o.domReference)&&(g?null==q||q.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=j.current,a=Z(u,M),l=ee(u,M);if(O||("Home"===e.key&&(N(e),j.current=a,S()),"End"===e.key&&(N(e),j.current=l,S())),k>1){const t=H||Array.from({length:u.current.length},()=>({width:1,height:1})),n=ae(t,k,T),r=n.findIndex(e=>null!=e&&!oe(u,e,M)),i=n.reduce((e,t,n)=>null==t||oe(u,t,M)?e:n,-1),o=n[ne({current:n.map(e=>null!=e?u.current[e]:null)},{event:e,orientation:E,loop:f,rtl:v,cols:k,disabledIndices:ie([...("function"!=typeof M?M:null)||u.current.map((e,t)=>oe(u,t,M)?t:void 0),void 0],n),minIndex:r,maxIndex:i,prevIndex:re(j.current>l?a:j.current,t,n,k,e.key===Ne?"bl":e.key===(v?Fe:ze)?"tr":"tl"),stopEvent:!0})];if(null!=o&&(j.current=o,S()),"both"===E)return}if(vn(e.key,E)){if(N(e),n&&!g&&P(e.currentTarget.ownerDocument)===e.currentTarget)return j.current=gn(e.key,E,v)?a:l,void S();gn(e.key,E,v)?j.current=f?t>=l?p&&t!==u.current.length?-1:a:te(u,{startingIndex:t,disabledIndices:M}):Math.min(l,te(u,{startingIndex:t,disabledIndices:M})):j.current=f?t<=a?p&&-1!==t?u.current.length:l:te(u,{startingIndex:t,decrement:!0,disabledIndices:M}):Math.max(a,te(u,{startingIndex:t,decrement:!0,disabledIndices:M})),Q(u,j.current)&&(j.current=-1),S()}}),Ce=a.useMemo(()=>g&&n&&ye&&{"aria-activedescendant":ve||fe},[g,n,ye,ve,fe]),ke=a.useMemo(()=>({"aria-orientation":"both"===E?void 0:E,...O?{}:Ce,onKeyDown:Ee,onPointerMove(){U.current=!0}}),[Ce,Ee,E,O]),_e=a.useMemo(()=>{function e(e){"auto"===b&&B(e.nativeEvent)&&(R.current=!0)}function t(e){R.current=b,"auto"===b&&$(e.nativeEvent)&&(R.current=!0)}return{...Ce,onKeyDown(e){U.current=!1;const t=e.key.startsWith("Arrow"),a=["Home","End"].includes(e.key),i=t||a,o=bn(e.key,E,v),l=yn(e.key,E,v,k),d=bn(e.key,Me(),v),s=vn(e.key,E),c=(h?d:s)||"Enter"===e.key||""===e.key.trim();if(g&&n){const t=null==q?void 0:q.nodesRef.current.find(e=>null==e.parentId),n=q&&t?function(e,t){let n,a=-1;return function t(r,i){i>a&&(n=r,a=i),z(e,r).forEach(e=>{t(e.id,i+1)})}(t,0),e.find(e=>e.id===n)}(q.nodesRef.current,t.id):null;if(i&&n&&x){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(o||l){var p,f;const a=(null==(p=n.context)?void 0:p.elements.domReference)===e.currentTarget,r=l&&!a?null==(f=n.context)?void 0:f.elements.domReference:o?u.current.find(e=>(null==e?void 0:e.id)===fe):null;r&&(N(e),r.dispatchEvent(t),ge(void 0))}var b;if((s||a)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return N(e),void(null==(b=n.context.elements.domReference)||b.dispatchEvent(t))}return Ee(e)}if(n||w||!t){if(c){const t=vn(e.key,Me());W.current=h&&t?null:e.key}h?d&&(N(e),n?(j.current=Z(u,se.current),S()):r(!0,e.nativeEvent,"list-navigation")):s&&(null!=m&&(j.current=m),N(e),!n&&w?r(!0,e.nativeEvent,"list-navigation"):Ee(e),n&&S())}},onFocus(){n&&!g&&(j.current=-1,S())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[fe,Ce,k,Ee,se,b,u,h,S,r,n,w,E,Me,v,m,q,g,x]);return a.useMemo(()=>c?{reference:_e,floating:ke,item:we}:{},[c,_e,ke,we])}const Mn=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function En(e,t){var n,r;void 0===t&&(t={});const{open:i,elements:o,floatingId:l}=e,{enabled:u=!0,role:d="dialog"}=t,s=tt(),c=(null==(n=o.domReference)?void 0:n.id)||s,m=a.useMemo(()=>{var e;return(null==(e=F(o.floating))?void 0:e.id)||l},[o.floating,l]),p=null!=(r=Mn.get(d))?r:d,f=null!=ot(),h=a.useMemo(()=>"tooltip"===p||"label"===d?{["aria-"+("label"===d?"labelledby":"describedby")]:i?m:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===p?"dialog":p,"aria-controls":i?m:void 0,..."listbox"===p&&{role:"combobox"},..."menu"===p&&{id:c},..."menu"===p&&f&&{role:"menuitem"},..."select"===d&&{"aria-autocomplete":"none"},..."combobox"===d&&{"aria-autocomplete":"list"}},[p,m,f,i,c,d]),v=a.useMemo(()=>{const e={id:m,...p&&{role:p}};return"tooltip"===p||"label"===d?e:{...e,..."menu"===p&&{"aria-labelledby":c}}},[p,m,c,d]),g=a.useCallback(e=>{let{active:t,selected:n}=e;const a={role:"option",...t&&{id:m+"-fui-option"}};switch(d){case"select":case"combobox":return{...a,"aria-selected":n}}return{}},[m,d]);return a.useMemo(()=>u?{reference:h,floating:v,item:g}:{},[u,h,v,g])}const Cn=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function kn(e,t){return"function"==typeof e?e(t):e}function _n(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=("number"==typeof i?i:i.close)||0,[l,u]=a.useState("unmounted"),d=function(e,t){const[n,r]=a.useState(e);return e&&!n&&r(!0),a.useEffect(()=>{if(!e&&n){const e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,o);return d||"close"!==l||u("unmounted"),K(()=>{if(r){if(n){u("initial");const e=requestAnimationFrame(()=>{he.flushSync(()=>{u("open")})});return()=>{cancelAnimationFrame(e)}}u("close")}},[n,r]),{isMounted:d,status:l}}function xn(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:l=250}=t,u=e.placement,d=u.split("-")[0],s=a.useMemo(()=>({side:d,placement:u}),[d,u]),c="number"==typeof l,m=(c?l:l.open)||0,p=(c?l:l.close)||0,[f,h]=a.useState(()=>({...kn(o,s),...kn(n,s)})),{isMounted:v,status:g}=_n(e,{duration:l}),b=Y(n),y=Y(r),w=Y(i),M=Y(o);return K(()=>{const e=kn(b.current,s),t=kn(w.current,s),n=kn(M.current,s),a=kn(y.current,s)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===g&&h(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===g&&h({transitionProperty:Object.keys(a).map(Cn).join(","),transitionDuration:m+"ms",...n,...a}),"close"===g){const a=t||e;h({transitionProperty:Object.keys(a).map(Cn).join(","),transitionDuration:p+"ms",...n,...a})}},[p,w,b,y,M,m,g,s]),{isMounted:v,styles:f}}function Hn(e,t){var n;const{open:r,dataRef:i}=e,{listRef:o,activeIndex:l,onMatch:u,onTypingChange:d,enabled:s=!0,findMatch:c=null,resetMs:m=750,ignoreKeys:p=[],selectedIndex:f=null}=t,h=a.useRef(-1),v=a.useRef(""),g=a.useRef(null!=(n=null!=f?f:l)?n:-1),b=a.useRef(null),y=X(u),w=X(d),M=Y(c),E=Y(p);K(()=>{r&&(mt(h),b.current=null,v.current="")},[r]),K(()=>{var e;r&&""===v.current&&(g.current=null!=(e=null!=f?f:l)?e:-1)},[r,f,l]);const C=X(e=>{e?i.current.typing||(i.current.typing=e,w(e)):i.current.typing&&(i.current.typing=e,w(e))}),k=X(e=>{function t(e,t,n){const a=M.current?M.current(t,n):t.find(e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())));return a?e.indexOf(a):-1}const n=o.current;if(v.current.length>0&&" "!==v.current[0]&&(-1===t(n,n,v.current)?C(!1):" "===e.key&&N(e)),null==n||E.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(N(e),C(!0)),n.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&v.current===e.key&&(v.current="",g.current=b.current),v.current+=e.key,mt(h),h.current=window.setTimeout(()=>{v.current="",g.current=b.current,C(!1)},m);const a=g.current,i=t(n,[...n.slice((a||0)+1),...n.slice(0,(a||0)+1)],v.current);-1!==i?(y(i),b.current=i):" "!==e.key&&(v.current="",C(!1))}),_=a.useMemo(()=>({onKeyDown:k}),[k]),x=a.useMemo(()=>({onKeyDown:k,onKeyUp(e){" "===e.key&&C(!1)}}),[k,C]);return a.useMemo(()=>s?{reference:_,floating:x}:{},[s,_,x])}function Tn(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Vn=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:a,onFallbackChange:r,offset:i=0,index:l=0,minItemsVisible:u=4,referenceOverflowThreshold:d=0,scrollRef:s,...c}=(0,o._3)(e,t),{rects:m,elements:{floating:p}}=t,f=n.current[l],h=(null==s?void 0:s.current)||p,v=p.clientTop||h.clientTop,g=0!==p.clientTop,b=0!==h.clientTop,y=p===h;if(!f)return{};const w={...t,...await Ce(-f.offsetTop-p.clientTop-m.reference.height/2-f.offsetHeight/2-i).fn(t)},M=await(0,ve.__)(Tn(w,h.scrollHeight+v+p.clientTop),c),E=await(0,ve.__)(w,{...c,elementContext:"reference"}),C=(0,o.T9)(0,M.top),k=w.y+C,_=(h.scrollHeight>h.clientHeight?e=>e:o.LI)((0,o.T9)(0,h.scrollHeight+(g&&y||b?2*v:0)-C-(0,o.T9)(0,M.bottom)));if(h.style.maxHeight=_+"px",h.scrollTop=C,r){const e=h.offsetHeight<f.offsetHeight*(0,o.jk)(u,n.current.length)-1||E.top>=-d||E.bottom>=-d;he.flushSync(()=>r(e))}return a&&(a.current=await(0,ve.__)(Tn({...w,y:k},h.offsetHeight+v+p.clientTop),c)),{y:k}}});function Ln(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:l,onChange:u}=t,d=X(u),s=a.useRef(!1),c=a.useRef(null),m=a.useRef(null);a.useEffect(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,a=o.current.top>=-.5,r=o.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,l=n<0?-1:1,u=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!a&&n>0||!r&&n<0?(e.preventDefault(),he.flushSync(()=>{d(e=>e+Math[u](n,i*l))})):/firefox/i.test(x())&&(t.scrollTop+=n))}const t=(null==l?void 0:l.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame(()=>{c.current=t.scrollTop,null!=o.current&&(m.current={...o.current})}),()=>{c.current=null,m.current=null,t.removeEventListener("wheel",e)}):void 0},[i,n,r.floating,o,l,d]);const p=a.useMemo(()=>({onKeyDown(){s.current=!0},onWheel(){s.current=!1},onPointerMove(){s.current=!1},onScroll(){const e=(null==l?void 0:l.current)||r.floating;if(o.current&&e&&s.current){if(null!==c.current){const t=e.scrollTop-c.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&he.flushSync(()=>d(e=>e+t))}requestAnimationFrame(()=>{c.current=e.scrollTop})}}}),[r.floating,d,o,l]);return a.useMemo(()=>i?{floating:p}:{},[i,p])}function qn(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var a;return e.parentId===t&&(!n||(null==(a=e.context)?void 0:a.open))}).flatMap(t=>[t,...qn(e,t.id,n)])}function Sn(e,t){const[n,a]=e;let r=!1;const i=t.length;for(let e=0,o=i-1;e<i;o=e++){const[i,l]=t[e]||[0,0],[u,d]=t[o]||[0,0];l>=a!=d>=a&&n<=(u-i)*(a-l)/(d-l)+i&&(r=!r)}return r}function Pn(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:a=!0}=e,r={current:-1};let o=!1,l=null,u=null,d="undefined"!=typeof performance?performance.now():0;const s=e=>{let{x:n,y:s,placement:c,elements:m,onClose:p,nodeId:f,tree:h}=e;return function(e){function v(){mt(r),p()}if(mt(r),!m.domReference||!m.floating||null==c||null==n||null==s)return;const{clientX:g,clientY:b}=e,y=[g,b],w=function(e){return"composedPath"in e?e.composedPath()[0]:e.target}(e),M="mouseleave"===e.type,E=Ht(m.floating,w),C=Ht(m.domReference,w),k=m.domReference.getBoundingClientRect(),_=m.floating.getBoundingClientRect(),x=c.split("-")[0],H=n>_.right-_.width/2,T=s>_.bottom-_.height/2,V=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,k),L=_.width>k.width,q=_.height>k.height,S=(L?k:_).left,P=(L?k:_).right,D=(q?k:_).top,O=(q?k:_).bottom;if(E&&(o=!0,!M))return;if(C&&(o=!1),C&&!M)return void(o=!0);if(M&&(0,i.vq)(e.relatedTarget)&&Ht(m.floating,e.relatedTarget))return;if(h&&qn(h.nodesRef.current,f).length)return;if("top"===x&&s>=k.bottom-1||"bottom"===x&&s<=k.top+1||"left"===x&&n>=k.right-1||"right"===x&&n<=k.left+1)return v();let R=[];switch(x){case"top":R=[[S,k.top+1],[S,_.bottom-1],[P,_.bottom-1],[P,k.top+1]];break;case"bottom":R=[[S,_.top+1],[S,k.bottom-1],[P,k.bottom-1],[P,_.top+1]];break;case"left":R=[[_.right-1,O],[_.right-1,D],[k.left+1,D],[k.left+1,O]];break;case"right":R=[[k.right-1,O],[k.right-1,D],[_.left+1,D],[_.left+1,O]]}if(!Sn([g,b],R)){if(o&&!V)return v();if(!M&&a){const t=function(e,t){const n=performance.now(),a=n-d;if(null===l||null===u||0===a)return l=e,u=t,d=n,null;const r=e-l,i=t-u,o=Math.sqrt(r*r+i*i);return l=e,u=t,d=n,o/a}(e.clientX,e.clientY);if(null!==t&&t<.1)return v()}Sn([g,b],function(e){let[n,a]=e;switch(x){case"top":return[[L?n+t/2:H?n+4*t:n-4*t,a+t+1],[L?n-t/2:H?n+4*t:n-4*t,a+t+1],[_.left,H||L?_.bottom-t:_.top],[_.right,H?L?_.bottom-t:_.top:_.bottom-t]];case"bottom":return[[L?n+t/2:H?n+4*t:n-4*t,a-t],[L?n-t/2:H?n+4*t:n-4*t,a-t],[_.left,H||L?_.top+t:_.bottom],[_.right,H?L?_.top+t:_.bottom:_.top+t]];case"left":{const e=[n+t+1,q?a+t/2:T?a+4*t:a-4*t],r=[n+t+1,q?a-t/2:T?a+4*t:a-4*t];return[[T||q?_.right-t:_.left,_.top],[T?q?_.right-t:_.left:_.right-t,_.bottom],e,r]}case"right":return[[n-t,q?a+t/2:T?a+4*t:a-4*t],[n-t,q?a-t/2:T?a+4*t:a-4*t],[T||q?_.left+t:_.right,_.top],[T?q?_.left+t:_.right:_.left+t,_.bottom]]}}([n,s]))?!o&&a&&(r.current=window.setTimeout(v,40)):v()}}};return s.__options={blockPointerEvents:n},s}},27746(e,t,n){"use strict";t.set=function(e,t,n){let o=(0,i.toDate)(e,n?.in);return isNaN(+o)?(0,a.constructFrom)(n?.in||e,NaN):(null!=t.year&&o.setFullYear(t.year),null!=t.month&&(o=(0,r.setMonth)(o,t.month)),null!=t.date&&o.setDate(t.date),null!=t.hours&&o.setHours(t.hours),null!=t.minutes&&o.setMinutes(t.minutes),null!=t.seconds&&o.setSeconds(t.seconds),null!=t.milliseconds&&o.setMilliseconds(t.milliseconds),o)};var a=n(4497),r=n(57984),i=n(24429)},27749(e,t,n){"use strict";t.match=void 0;var a=n(78741),r=n(58869);t.match={ordinalNumber:(0,r.buildMatchPatternFn)({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},defaultParseWidth:"any"})}},27857(e,t,n){"use strict";t.beTarask=void 0;var a=n(51243),r=n(23076),i=n(93830),o=n(94094),l=n(95898);t.beTarask={code:"be-tarask",formatDistance:a.formatDistance,formatLong:r.formatLong,formatRelative:i.formatRelative,localize:o.localize,match:l.match,options:{weekStartsOn:1,firstWeekContainsDate:1}}},27874(e,t,n){"use strict";t.match=void 0;var a=n(78741),r=n(58869);t.match={ordinalNumber:(0,r.buildMatchPatternFn)({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,a.buildMatchFn)({matchPatterns:{narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:(0,a.buildMatchFn)({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:"any"})}},27883(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentedControl=void 0;var a=n(80385);Object.defineProperty(t,"SegmentedControl",{enumerable:!0,get:function(){return a.SegmentedControl}})},27887(e,t,n){"use strict";t.formatLong=void 0;var a=n(52121);t.formatLong={date:(0,a.buildFormatLongFn)({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.buildFormatLongFn)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.buildFormatLongFn)({formats:{full:"{{date}} 'को' {{time}}",long:"{{date}} 'को' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})}},27938(e,t){"use strict";t.formatRelative=void 0;const n={lastWeek:"eeee 'la semaine dernière à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'la semaine prochaine à' p",other:"P"};t.formatRelative=(e,t,a,r)=>n[e]},28019(e,t,n){"use strict";t.startOfHour=function(e,t){const n=(0,a.toDate)(e,t?.in);return n.setMinutes(0,0,0),n};var a=n(24429)},28061(e,t){"use strict";t.formatRelative=void 0;const n={lastWeek:"eeee 'שעבר בשעה' p",yesterday:"'אתמול בשעה' p",today:"'היום בשעה' p",tomorrow:"'מחר בשעה' p",nextWeek:"eeee 'בשעה' p",other:"P"};t.formatRelative=(e,t,a,r)=>n[e]},28135(e,t,n){"use strict";t.formatLong=void 0;var a=n(52121);t.formatLong={date:(0,a.buildFormatLongFn)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.buildFormatLongFn)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.buildFormatLongFn)({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})}},28141(e,t,n){"use strict";t.localize=void 0;var a=n(91151);t.localize={ordinalNumber:(e,t)=>Number(e)+".",era:(0,a.buildLocalizeFn)({values:{narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus előtt","időszámításunk szerint"]},defaultWidth:"wide"}),quarter:(0,a.buildLocalizeFn)({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. n.év","2. n.év","3. n.év","4. n.év"],wide:["1. negyedév","2. negyedév","3. negyedév","4. negyedév"]},defaultWidth:"wide",argumentCallback:e=>e-1,formattingValues:{narrow:["I.","II.","III.","IV."],abbreviated:["I. n.év","II. n.év","III. n.év","IV. n.év"],wide:["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"]},defaultFormattingWidth:"wide"}),month:(0,a.buildLocalizeFn)({values:{narrow:["J","F","M","Á","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],wide:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},defaultWidth:"wide"}),day:(0,a.buildLocalizeFn)({values:{narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},defaultWidth:"wide"}),dayPeriod:(0,a.buildLocalizeFn)({values:{narrow:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},abbreviated:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},wide:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"délután",evening:"este",night:"éjjel"}},defaultWidth:"wide"})}},28200(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var a,r=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i.apply(null,arguments)}const o=function(e){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,className:"maximize-2_svg__feather maximize-2_svg__feather-maximize-2",viewBox:"0 0 24 24"},e),a||(a=r.createElement("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})))}},28353(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionItem=void 0;const r=n(31085),i=a(n(88694)),o=n(77506),l=n(56818),u=n(42885),d=n(21652),s=n(35346),c=i.default.div`
|
|
1261
1261
|
&:not(:first-child) {
|
|
1262
1262
|
margin-top: var(--spacing-1x);
|
|
1263
1263
|
}
|
|
@@ -1505,7 +1505,7 @@
|
|
|
1505
1505
|
display: block;
|
|
1506
1506
|
margin: 0 var(--spacing-2x);
|
|
1507
1507
|
}
|
|
1508
|
-
`;t.GroupItem=e=>{var{id:n,children:r,ordered:o,label:u}=e,s=a(e,["id","children","ordered","label"]);const c=(0,l.useDataAttributes)(s);return(0,i.jsxs)(i.Fragment,{children:[u&&(0,i.jsx)(t.StyledHeading,{id:n,type:"small",tag:"h3",bold:!0,children:u}),(0,i.jsx)(d,Object.assign({"aria-labelledby":n,as:o?"ol":"ul"},c,{children:r}))]})};try{t.StyledHeading.displayName="StyledHeading",t.StyledHeading.__docgenInfo={description:"",displayName:"StyledHeading",props:{type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"small"'},{value:'"xsmall"'},{value:'"medium"'},{value:'"large"'},{value:'"xlarge"'},{value:'"subtitle"'}]}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLHeadingElement | null) => void) | RefObject<HTMLHeadingElement> | null"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"Key | null"}},
|
|
1508
|
+
`;t.GroupItem=e=>{var{id:n,children:r,ordered:o,label:u}=e,s=a(e,["id","children","ordered","label"]);const c=(0,l.useDataAttributes)(s);return(0,i.jsxs)(i.Fragment,{children:[u&&(0,i.jsx)(t.StyledHeading,{id:n,type:"small",tag:"h3",bold:!0,children:u}),(0,i.jsx)(d,Object.assign({"aria-labelledby":n,as:o?"ol":"ul"},c,{children:r}))]})};try{t.StyledHeading.displayName="StyledHeading",t.StyledHeading.__docgenInfo={description:"",displayName:"StyledHeading",props:{type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"small"'},{value:'"xsmall"'},{value:'"medium"'},{value:'"large"'},{value:'"xlarge"'},{value:'"subtitle"'}]}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLHeadingElement | null) => void) | RefObject<HTMLHeadingElement> | null"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"Key | null"}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'}]}},bold:{defaultValue:null,description:"",name:"bold",required:!1,type:{name:"boolean"}},noMargin:{defaultValue:null,description:"",name:"noMargin",required:!1,type:{name:"boolean"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/dropdown-menu/list-items/group-item.tsx#StyledHeading"]={docgenInfo:t.StyledHeading.__docgenInfo,name:"StyledHeading",path:"src/components/dropdown-menu/list-items/group-item.tsx#StyledHeading"})}catch(e){}try{t.GroupItem.displayName="GroupItem",t.GroupItem.__docgenInfo={description:"",displayName:"GroupItem",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},ordered:{defaultValue:null,description:"",name:"ordered",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/dropdown-menu/list-items/group-item.tsx#GroupItem"]={docgenInfo:t.GroupItem.__docgenInfo,name:"GroupItem",path:"src/components/dropdown-menu/list-items/group-item.tsx#GroupItem"})}catch(e){}},30033(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var a,r=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i.apply(null,arguments)}const o=function(e){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,className:"alert-octagon_svg__feather alert-octagon_svg__feather-alert-octagon",viewBox:"0 0 24 24"},e),a||(a=r.createElement("path",{d:"M7.86 2h8.28L22 7.86v8.28L16.14 22H7.86L2 16.14V7.86zM12 8v4M12 16h.01"})))}},30073(e,t){"use strict";t.safelyAccessDocument=function(e){return e||("undefined"!=typeof document?document:null)}},30152(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultLinkTokens=void 0,t.defaultLinkTokens={"external-link-visited-text-color":"color-link-content-visited","route-link-visited-text-color":"color-link-content-visited","route-link-text-color":"color-link-content","route-link-disabled-text-color":"color-link-content-disabled","route-link-hover-text-color":"color-link-content-hover","skip-link-text-color":"color-link-content","skip-link-background-color":"color-background","link-text-color":"color-link-content","link-disabled-text-color":"color-link-content-disabled","link-hover-text-color":"color-link-content-hover","link-visited-text-color":"color-link-content-visited","link-icon-color":"color-link-content","link-disabled-icon-color":"color-link-content-disabled","link-hover-icon-color":"color-link-content-hover","link-visited-icon-color":"color-link-content-visited"}},30194(e,t){"use strict";t.formatRelative=void 0;const n={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"};t.formatRelative=(e,t,a,r)=>n[e]},30215(e,t,n){"use strict";t.previousWednesday=function(e,t){return(0,a.previousDay)(e,3,t)};var a=n(77989)},30398(e,t,n){"use strict";t.hi=void 0;var a=n(11364),r=n(27887),i=n(58505),o=n(74801),l=n(63011);t.hi={code:"hi",formatDistance:a.formatDistance,formatLong:r.formatLong,formatRelative:i.formatRelative,localize:o.localize,match:l.match,options:{weekStartsOn:0,firstWeekContainsDate:4}}},30439(e,t,n){"use strict";t.ug=void 0;var a=n(99729),r=n(9738),i=n(87400),o=n(58912),l=n(36448);t.ug={code:"ug",formatDistance:a.formatDistance,formatLong:r.formatLong,formatRelative:i.formatRelative,localize:o.localize,match:l.match,options:{weekStartsOn:0,firstWeekContainsDate:1}}},30668(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useBreadcrumbLayoutEffect=function({overflow:e,shownRoutes:t,history:n,setHiddenRoutes:r,setShownRoutes:i}){(0,a.useLayoutEffect)(()=>{if(e.horizontal&&t.length>0){const e=n[n.length-1],a=Math.max(0,t.length-2),o=n.slice(a,n.length-1),l=Math.max(t.length-2,0),u=n.slice(0,l);u.length>0?u.push(e):o.push(e),r(o),i(u)}},[i,e.horizontal,n,t.length,r,t])};const a=n(39155);try{t.useBreadcrumbLayoutEffect.displayName="useBreadcrumbLayoutEffect",t.useBreadcrumbLayoutEffect.__docgenInfo={description:"",displayName:"useBreadcrumbLayoutEffect",props:{overflow:{defaultValue:null,description:"",name:"overflow",required:!0,type:{name:"Overflow"}},shownRoutes:{defaultValue:null,description:"",name:"shownRoutes",required:!0,type:{name:"NavListOption[]"}},history:{defaultValue:null,description:"",name:"history",required:!0,type:{name:"NavListOption[]"}},setHiddenRoutes:{defaultValue:null,description:"",name:"setHiddenRoutes",required:!0,type:{name:"(value: NavListOption[] | ((prevState: NavListOption[]) => NavListOption[])) => void"}},setShownRoutes:{defaultValue:null,description:"",name:"setShownRoutes",required:!0,type:{name:"(value: NavListOption[] | ((prevState: NavListOption[]) => NavListOption[])) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/breadcrumb/use-breadcrumb-layout-effect.tsx#useBreadcrumbLayoutEffect"]={docgenInfo:t.useBreadcrumbLayoutEffect.__docgenInfo,name:"useBreadcrumbLayoutEffect",path:"src/components/breadcrumb/use-breadcrumb-layout-effect.tsx#useBreadcrumbLayoutEffect"})}catch(e){}},30811(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFont=function(e){(0,r.useEffect)(()=>e?(i.default.use(),()=>i.default.unuse()):()=>{},[e])};const r=n(39155),i=a(n(13124));try{t.useFont.displayName="useFont",t.useFont.__docgenInfo={description:"",displayName:"useFont",props:{valueOf:{defaultValue:null,description:"Returns the primitive value of the specified object.",name:"valueOf",required:!1,type:{name:"() => boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/styles/font-loader.tsx#useFont"]={docgenInfo:t.useFont.__docgenInfo,name:"useFont",path:"src/styles/font-loader.tsx#useFont"})}catch(e){}},30855(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},30878(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>l});var a,r,i=n(39155);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o.apply(null,arguments)}const l=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,className:"check-circle_svg__feather check-circle_svg__feather-check-circle",viewBox:"0 0 24 24"},e),a||(a=i.createElement("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"})),r||(r=i.createElement("path",{d:"M22 4 12 14.01l-3-3"})))}},30897(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SkipLink=void 0;const r=n(31085),i=a(n(88694)),o=n(78785),l=n(56818),u=n(44529),d=i.default.a`
|
|
1509
1509
|
${({$isMobile:e})=>(0,l.getBaseButtonStyles)({$isMobile:e})};
|
|
1510
1510
|
|
|
1511
1511
|
background: ${({theme:e})=>e.component["skip-link-background-color"]};
|
package/package.json
CHANGED