@radui/ui 0.4.0 → 0.6.0
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/README.md +2 -0
- package/dist/components/Accordion.d.ts +19 -33
- package/dist/components/Accordion.js +1 -1
- package/dist/components/AlertDialog.d.ts +7 -3
- package/dist/components/AlertDialog.js +1 -1
- package/dist/components/AspectRatio.d.ts +2 -2
- package/dist/components/AspectRatio.js +1 -1
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarGroup.js +1 -1
- package/dist/components/{AvatarPrimitiveFallback-KiY3slgV.js → AvatarPrimitiveFallback-B1u295x6.js} +1 -1
- package/dist/components/Badge.js +1 -1
- package/dist/components/BlockQuote.js +1 -1
- package/dist/components/Breadcrumb.d.ts +70 -0
- package/dist/components/Breadcrumb.js +1 -0
- package/dist/components/Button.js +1 -1
- package/dist/components/Callout.js +1 -1
- package/dist/components/Card.js +1 -1
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/CheckboxCards.js +1 -1
- package/dist/components/CheckboxGroup.js +1 -1
- package/dist/components/{CheckboxGroupPrimitive-DgfnzMT9.js → CheckboxGroupPrimitive-BWGRST9p.js} +1 -1
- package/dist/components/Code.js +1 -1
- package/dist/components/Collapsible.js +1 -1
- package/dist/components/Combobox.d.ts +3 -1
- package/dist/components/Combobox.js +1 -1
- package/dist/components/ComboboxPrimitive-C2sksm48.js +1 -0
- package/dist/components/Command.d.ts +113 -0
- package/dist/components/Command.js +1 -0
- package/dist/components/ContextMenu.d.ts +14 -10
- package/dist/components/ContextMenu.js +1 -1
- package/dist/components/DataList.d.ts +7 -2
- package/dist/components/DataList.js +1 -1
- package/dist/components/Dialog.d.ts +6 -3
- package/dist/components/Dialog.js +1 -1
- package/dist/components/Disclosure.d.ts +2 -0
- package/dist/components/Disclosure.js +1 -1
- package/dist/components/Drawer.d.ts +231 -0
- package/dist/components/Drawer.js +1 -0
- package/dist/components/DropdownMenu.d.ts +10 -6
- package/dist/components/DropdownMenu.js +1 -1
- package/dist/components/Em.js +1 -1
- package/dist/components/Fieldset.d.ts +43 -0
- package/dist/components/Fieldset.js +1 -0
- package/dist/components/Heading.js +1 -1
- package/dist/components/HoverCard.d.ts +10 -2
- package/dist/components/HoverCard.js +1 -1
- package/dist/components/Kbd.js +1 -1
- package/dist/components/Link.js +1 -1
- package/dist/components/LiveRegion.d.ts +73 -0
- package/dist/components/LiveRegion.js +1 -0
- package/dist/components/MenuPrimitive-COEgTo6S.js +1 -0
- package/dist/components/Menubar.d.ts +10 -6
- package/dist/components/Menubar.js +1 -1
- package/dist/components/Minimap.js +1 -1
- package/dist/components/NavigationMenu.d.ts +3 -0
- package/dist/components/NavigationMenu.js +1 -1
- package/dist/components/NumberField.d.ts +2 -0
- package/dist/components/NumberField.js +1 -1
- package/dist/components/Popover.d.ts +68 -0
- package/dist/components/Popover.js +1 -0
- package/dist/components/Progress.js +1 -1
- package/dist/components/Quote.d.ts +2 -0
- package/dist/components/Quote.js +1 -1
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioCards.js +1 -1
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/{RadioGroupPrimitive-tlWBfWJ8.js → RadioGroupPrimitive-BWUU-0Qh.js} +1 -1
- package/dist/components/ScrollArea.d.ts +15 -3
- package/dist/components/ScrollArea.js +1 -1
- package/dist/components/Select.d.ts +3 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/Separator.js +1 -1
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Slider.js +1 -1
- package/dist/components/Spinner.js +1 -1
- package/dist/components/Splitter.js +1 -1
- package/dist/components/Steps.js +1 -1
- package/dist/components/Strong.js +1 -1
- package/dist/components/Switch.js +1 -1
- package/dist/components/TabNav.js +1 -1
- package/dist/components/Table.d.ts +65 -19
- package/dist/components/Table.js +1 -1
- package/dist/components/Tabs.d.ts +2 -0
- package/dist/components/Tabs.js +1 -1
- package/dist/components/Text.js +1 -1
- package/dist/components/TextArea.js +1 -1
- package/dist/components/TextField.d.ts +41 -0
- package/dist/components/TextField.js +1 -0
- package/dist/components/Theme.d.ts +2 -0
- package/dist/components/Theme.js +1 -1
- package/dist/components/Toast.d.ts +322 -0
- package/dist/components/Toast.js +1 -0
- package/dist/components/Toggle.js +1 -1
- package/dist/components/ToggleGroup.js +1 -1
- package/dist/components/Toolbar.js +1 -1
- package/dist/components/Tooltip.d.ts +3 -0
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Tree.d.ts +1 -0
- package/dist/components/Tree.js +1 -1
- package/dist/components/VisuallyHidden.js +1 -1
- package/dist/components/documentOverlayOpen-coyGmcyL.js +1 -0
- package/dist/components/floating-ui.react-Byzse64h.js +5 -0
- package/dist/components/index-C09ZQH_q.js +1 -0
- package/dist/components/index-CD_nZA9X.js +1 -0
- package/dist/components/{index-BOy86lYu.js → index-CfC8-kd8.js} +1 -1
- package/dist/components/index-Db-tduwt.js +1 -0
- package/dist/components/index-UODM4mVT.js +1 -0
- package/dist/components/index-XF8itt-H.js +1 -0
- package/dist/components/index-YhJvxumL.js +1 -0
- package/dist/components/index-eAZUMNef.js +1 -0
- package/dist/components/index-m8Mhi26u.js +1 -0
- package/dist/components/keyboard-BKF7hXqL.js +1 -0
- package/dist/components/mergeProps-0RucjqeH.js +1 -0
- package/dist/components/useComponentClass-QwNivz0h.js +1 -0
- package/dist/themes/baremetal.css +1 -0
- package/dist/themes/default.css +1 -1
- package/dist/themes/tailwind-presets/default.css +396 -0
- package/package.json +76 -23
- package/dist/components/ComboboxPrimitive-D5wWLl2_.js +0 -1
- package/dist/components/MenuPrimitive-BvxwQFGM.js +0 -1
- package/dist/components/floating-ui.react-gB901AP2.js +0 -5
- package/dist/components/index-3dZuI04X.js +0 -1
- package/dist/components/index-6If6D2Zi.js +0 -1
- package/dist/components/index-98jQ1vTr.js +0 -1
- package/dist/components/index-BQ2Hbb_x.js +0 -1
- package/dist/components/index-BZVbVgqN.js +0 -1
- package/dist/components/index-BoRAvltW.js +0 -1
- package/dist/components/index-DTYJVF-V.js +0 -1
- package/dist/components/index-TYaYKM2M.js +0 -1
- package/dist/themes/tailwind-presets/default.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use client';import{jsx as e,Fragment as t,jsxs as n}from"react/jsx-runtime";import r,{createContext as s,useContext as a,useState as o,useEffect as i,useLayoutEffect as l}from"react";import{F as c}from"./index-BQ2Hbb_x.js";import{P as d}from"./index-98jQ1vTr.js";import{c as u}from"./index-CXzybYmm.js";import{u as f}from"./index-wRElCyvx.js";const m=s({}),b=r.forwardRef((({children:n,className:r,...s},o)=>{const{isOpen:i,elementsRef:l,labelsRef:d,floatingContext:u,refs:f,getFloatingProps:b,floatingStyles:p}=a(m),h=c.useMergeRefs([f.setFloating,o]);return e(t,{children:i&&e(c.FocusManager,{context:u,children:e(c.FloatingList,{elementsRef:l,labelsRef:d,children:e("div",{ref:h,style:p,className:r,"data-state":i?"open":"closed",...b(),...s,children:n})})})})}));b.displayName="ComboboxPrimitiveContent";const p=s(null),h=r.forwardRef((({children:t,value:n,disabled:s,className:o,...i},l)=>{const u=a(m);if(!u)return console.error("ComboboxPrimitiveItem must be used within a ComboboxPrimitive"),null;const{handleSelect:f,isTypingRef:b,getItemProps:h,activeIndex:v,selectedIndex:R,virtualItemRef:g,selectedItemRef:x,hasSearch:I,search:C,hiddenIndices:y,disabledIndices:S,setDisabledIndices:P,valuesRef:N,bumpLabelsVersion:w}=u,M=r.useRef(null),{ref:k,index:D}=c.useListItem({label:n}),E=y.includes(D),F=v===D,L=R===D,O=n||`select-item-${D}`,T=a(p);return r.useEffect((()=>{if(T?.registerItem)return T.registerItem(O,!E)}),[T,O,E]),r.useEffect((()=>(N.current[D]=O,()=>{delete N.current[D]})),[D,O,N]),r.useEffect((()=>(w(),()=>{w()})),[D,n,w]),r.useEffect((()=>{const e=D;return P((t=>{if(s&&t.includes(e))return t;if(!s&&!t.includes(e))return t;const n=new Set(t);return s?n.add(e):n.delete(e),Array.from(n).sort(((e,t)=>e-t))})),()=>{P((t=>{if(!t.includes(e))return t;const n=new Set(t);return n.delete(e),Array.from(n).sort(((e,t)=>e-t))}))}}),[D,s,P]),r.useEffect((()=>{L&&!I&&(x.current=M.current)}),[L,I,x]),e(d.div,{ref:c.useMergeRefs([k,M,l]),id:O,role:"option",className:o,style:{display:E?"none":void 0,...i.style},"data-value":n,"data-label":n,"data-active":I?g.current?.id==O:F,"aria-selected":L,"aria-disabled":!!s||void 0,"data-disabled":s?"":void 0,...h({tabIndex:s?-1:F?0:-1,onClick:()=>!s&&f(D),onKeyDown:e=>{s||("Enter"===e.key&&(e.preventDefault(),f(D))," "!==e.key||b.current||(e.preventDefault(),f(D)))}}),...i,tabIndex:s?-1:F?0:-1,children:t})}));h.displayName="ComboboxPrimitiveItem";const v=r.forwardRef((({children:t,className:n,disabled:r,asChild:s,onClick:o,...i},l)=>{const{isOpen:f,setIsOpen:b,selectedLabel:p,refs:h,getReferenceProps:v}=a(m),{onClick:R,...g}=v(),x=u(o,(()=>{r||b((e=>!e))}));return e(d.button,{type:s?void 0:"button",className:n,"aria-expanded":f,"data-state":f?"open":"closed","aria-disabled":!!r||void 0,disabled:!!r||void 0,ref:c.useMergeRefs([h.setReference,l]),role:"combobox",asChild:s,onClick:x,...g,...i,children:p||t})}));v.displayName="ComboboxPrimitiveTrigger";const R=r.forwardRef((({children:t,className:s,value:a,name:u,defaultValue:b="",onValueChange:p,onClickOutside:h=()=>{},placement:v="bottom-start",offsetValue:R,shift:g=!0,...x},I)=>{const[C,y]=r.useState(!1),[S,P]=r.useState(R),[N,w]=f(a,b,p),M=r.useRef(null),k=r.useRef([]),D=r.useRef([]),E=r.useRef([]),[F,L]=r.useState([]),O=r.useRef(!1),T=r.useRef(null),V=r.useRef(null),[j,A]=r.useState(null),[B,G]=r.useState(null),[H,K]=r.useState(!1),[q,z]=r.useState(""),[$,J]=r.useReducer((e=>e+1),0),Q=r.useMemo((()=>{if(!q)return[];const e=[];for(let t=0;t<D.current.length;t++){const n=D.current[t];n&&!n.toLowerCase().includes(q.toLowerCase())&&e.push(t)}return e}),[q,$]),U=r.useMemo((()=>{const e=new Set([...F,...Q]);return Array.from(e).sort(((e,t)=>e-t))}),[F,Q]),W=function(e){const[t,n]=o(!1);return i((()=>{if(!e)return void n(!1);let t=e;for(;t;){if("FORM"===t.tagName)return void n(!0);t=t.parentElement}n(!1)}),[e]),t}(T.current),{refs:X,floatingStyles:Y,context:Z}=c.useFloating({middleware:[c.offset(S)],open:C,onOpenChange:y,placement:v}),_=c.useClick(Z),ee=c.useDismiss(Z),te=c.useRole(Z,{role:"listbox"});const ne=r.useCallback((e=>{if(null!==e&&!U.includes(e)&&(G(e),y(!1),X.reference.current?.focus(),null!==e)){const t=D.current[e];t&&w(t)}}),[U,D,G,y,w,X]),re=c.useListNavigation(Z,{listRef:k,activeIndex:j,selectedIndex:B,onNavigate:A,virtual:H,virtualItemRef:V,disabledIndices:U}),se=c.useTypeahead(Z,{listRef:D,activeIndex:j,selectedIndex:B,enabled:!H,onMatch:function(e){null===e||U.includes(e)||(C?A(e):ne(e))},onTypingChange(e){O.current=e}}),{getReferenceProps:ae,getFloatingProps:oe,getItemProps:ie}=c.useInteractions([_,ee,te,re,se]);l((()=>{if(g&&M&&X.floating.current&&M.current){const e=X.floating.current.getBoundingClientRect(),t=M.current.getBoundingClientRect(),n=e.top-t.bottom;P(n)}}),[M.current,g]);const le=r.useMemo((()=>({isOpen:C,setIsOpen:y,handleSelect:ne,floatingContext:Z,refs:X,getFloatingProps:oe,getReferenceProps:ae,floatingStyles:Y,getItemProps:ie,activeIndex:j,selectedIndex:B,elementsRef:k,labelsRef:D,valuesRef:E,disabledIndices:F,setDisabledIndices:L,setActiveIndex:A,selectedLabel:N,isTypingRef:O,virtualItemRef:V,hasSearch:H,setHasSearch:K,search:q,setSearch:z,hiddenIndices:Q,selectedItemRef:M,labelsVersion:$,bumpLabelsVersion:J})),[C,ne,Z,X,oe,ae,Y,ie,j,B,F,N,H,q,Q,$]);return e(m.Provider,{value:le,children:n(d.div,{...x,className:s,ref:c.useMergeRefs([T,I]),"data-state":C?"open":"closed",children:[t,W&&e("select",{name:u,value:N,hidden:!0,"aria-hidden":"true",tabIndex:-1,onChange:()=>{},children:e("option",{value:N,children:N})})]})})}));R.displayName="ComboboxPrimitiveRoot";const g=r.forwardRef((({children:t,container:n,...r},s)=>{const{isOpen:l}=a(m),[d,u]=o(!1),f=n||document.querySelector("#rad-ui-theme-container")||document.body;return i((()=>{f&&u(!0)}),[f]),l&&d?e(c.Portal,{root:f,...r,children:t}):null}));g.displayName="ComboboxPrimitivePortal";const x=r.forwardRef((({children:t,className:n,...s},a)=>{const[o,i]=r.useState(new Set),{search:l}=r.useContext(m),c=r.useCallback(((e,t)=>(i((n=>{if(t&&n.has(e))return n;if(!t&&!n.has(e))return n;const r=new Set(n);return t?r.add(e):r.delete(e),r})),()=>{i((t=>{if(!t.has(e))return t;const n=new Set(t);return n.delete(e),n}))})),[]),d=o.size>0,u=""!==l&&!d,f=r.useMemo((()=>({registerItem:c})),[c]);return e(p.Provider,{value:f,children:e("div",{className:n,ref:a,...s,style:{display:u?"none":void 0,...s.style},children:t})})}));x.displayName="ComboboxPrimitiveGroup";const I=r.forwardRef((({className:t,...n},s)=>{const o=a(m),{refs:i,handleSelect:l,labelsRef:u,valuesRef:f,activeIndex:b,elementsRef:p,virtualItemRef:h,getReferenceProps:v,setHasSearch:R,search:g,setSearch:x,setActiveIndex:I}=o,C=r.useRef(null);r.useEffect((()=>(R(!0),I(0),()=>{R(!1),x("")})),[R,I,x]);const y=v();return e(d.input,{type:"search",className:t,placeholder:"Search...",ref:c.useMergeRefs([C,s]),value:g,"aria-activedescendant":h.current?.id||(null!==b&&f.current[b]?f.current[b]:void 0),onChange:e=>x(e.target.value),...y,onKeyDown:e=>{null!==b&&"Enter"===e.key&&(e.preventDefault(),l(b))},...n})}));I.displayName="ComboboxPrimitiveSearch";const C=r.forwardRef(((e,t)=>(console.warn("Direct usage of Combobox is not supported. Please use Combobox.Root, Combobox.Content, etc. instead."),null)));C.displayName="ComboboxPrimitive";const y=C;y.Root=R,y.Content=b,y.Portal=g,y.Item=h,y.Trigger=v,y.Group=x,y.Search=I;export{y as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use client';import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import s,{forwardRef as i,useState as l,useRef as o,useContext as a,useEffect as r}from"react";import{F as c}from"./index-BQ2Hbb_x.js";import{u as d}from"./index-wRElCyvx.js";import{P as u}from"./index-98jQ1vTr.js";import{B as f}from"./index-BOy86lYu.js";const m=s.createContext(null),p=i((({children:t,className:n,open:i,onOpenChange:a,defaultOpen:r=!1,crossAxisOffset:u,mainAxisOffset:f,loop:p=!0,placement:g="bottom-start",avoidCollision:h=!0,rtl:v=!1,...x},N)=>{const[P,y]=d(i,r,a),[I,C]=l(null),[O,b]=l(void 0),R=o([]),F=o([]),M=o([]),A=o(null),k=c.useFloatingNodeId(),S=c.useFloatingParentNodeId(),T=null!=S,j=u??0,w=void 0!==f?f:T?2:4,{refs:H,floatingStyles:L,context:E}=c.useFloating({open:P,nodeId:k,onOpenChange:y,strategy:"fixed",placement:T?"right-start":g,middleware:[c.offset({mainAxis:w,crossAxis:j}),c.flip({mainAxis:h,crossAxis:h}),c.shift({padding:4}),...T?[]:[c.size({padding:4,apply({availableHeight:e,elements:t}){b(e),t.floating.style.maxHeight=`${e}px`}})]],whileElementsMounted:c.autoUpdate}),D=c.useListNavigation(E,{listRef:F,activeIndex:I,nested:T,rtl:v,loop:p,onNavigate:C}),q=c.useClick(E,{}),z=c.useHover(E,{enabled:T,delay:{open:75},handleClose:c.safePolygon({blockPointerEvents:!0})}),B=c.useDismiss(E,{bubbles:!0}),U=c.useTypeahead(E,{listRef:M,onMatch:P?C:void 0,activeIndex:I}),{getReferenceProps:X,getFloatingProps:Y,getItemProps:$}=c.useInteractions([B,q,D,z,U]),G={isOpen:P,setIsOpen:y,refs:H,floatingStyles:L,maxHeight:O,getReferenceProps:X,getFloatingProps:Y,getItemProps:$,activeIndex:I,setActiveIndex:C,listRef:R,elementsRef:F,labelsRef:M,virtualItemRef:A,nodeId:k,isNested:T,floatingContext:E,rtl:v},J=c.useFloatingTree();return s.useEffect((()=>{if(J)return J.events.on("click",e),()=>{J.events.off("click",e)};function e(){y(!1)}}),[J,k,S]),e("div",{ref:N,className:n,"data-tree":"true",...x,children:e(m.Provider,{value:G,children:e(c.FloatingNode,{id:k,children:t})})})}));p.displayName="MenuComponentRoot";const g=i((({children:t,className:n,open:s,onOpenChange:i,defaultOpen:l=!1,crossAxisOffset:o,mainAxisOffset:a,...r},d)=>e(c.FloatingTree,{children:e(p,{ref:d,className:n,open:s,onOpenChange:i,defaultOpen:l,crossAxisOffset:o,mainAxisOffset:a,...r,children:t})})));g.displayName="MenuPrimitiveRoot";const h=i((({children:t,className:n,label:i,disabled:l,asChild:o=!1,onSelect:a,...r},d)=>{const f=s.useContext(m),p=l?null:i,{ref:g,index:h}=c.useListItem({label:p}),v=c.useFloatingTree(),x=s.useCallback((e=>{"function"==typeof g?g(e):g&&(g.current=e),"function"==typeof d?d(e):d&&(d.current=e)}),[g,d]);if(!f)return null;const{activeIndex:N,getItemProps:P}=f,y=N===h;return e(u.button,{ref:x,tabIndex:y?0:-1,className:n,...P({onClick(e){l||(a?a(e):v?.events.emit("click"))}}),disabled:l,asChild:o,...r,children:t})}));h.displayName="MenuPrimitiveItem";const v=i((({children:t,className:n,asChild:s,...i},l)=>{const o=a(m),{ref:r,index:d}=c.useListItem(),u=c.useMergeRefs([o?.refs.setReference,r,l]);if(!o)return null;const{activeIndex:p,getReferenceProps:g,isNested:h}=o;return e(f,{className:n,tabIndex:h?p===d?0:-1:void 0,ref:u,...g(),asChild:s,...i,children:t})}));v.displayName="MenuPrimitiveTrigger";const x=i((({children:s,className:i,...l},o)=>{const r=a(m),d=c.useMergeRefs([r?.refs.setFloating,o]);if(!r||!r.isOpen)return null;const{floatingStyles:u,getFloatingProps:f,elementsRef:p,labelsRef:g,isNested:h,floatingContext:v}=r;return t(n,{children:[e(c.Overlay,{lockScroll:!0}),e(c.FloatingList,{elementsRef:p,labelsRef:g,children:e(c.FocusManager,{context:v,modal:!1,initialFocus:h?-1:0,returnFocus:!h,children:e("div",{ref:d,style:u,...f(),className:i,...l,children:e("div",{style:{overflowY:"auto",overflowX:"hidden"},children:s})})})})]})}));x.displayName="MenuPrimitiveContent";const N=i((({children:t,className:n,open:s,onOpenChange:i,defaultOpen:l=!1,...o},r)=>{const c=a(m);return e(p,{ref:r,className:n,open:s,onOpenChange:i,defaultOpen:l,rtl:c&&c.rtl||!1,...o,children:t})}));N.displayName="MenuPrimitiveSub";const P=i((({children:t,...n},s)=>{const i=a(m),[o,d]=l(!1),u=document.querySelector("#rad-ui-theme-container")||document.body;if(r((()=>{u&&d(!0)}),[u]),!i)return null;const{isOpen:f}=i;return f&&o?e(c.Portal,{root:u,...n,children:e("div",{ref:s,children:t})}):null}));P.displayName="MenuPrimitivePortal";const y=()=>(console.warn("Direct usage of MenuPrimitive is not supported. Please use MenuPrimitive.Root, MenuPrimitive.Item instead."),null);y.Root=g,y.Item=h,y.Trigger=v,y.Content=x,y.Sub=N,y.Portal=P;export{y as M,m as a};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
'use client';import*as e from"react";import{useLayoutEffect as t}from"react";import{jsx as n,jsxs as r,Fragment as o}from"react/jsx-runtime";import*as i from"react-dom";function u(){return"undefined"!=typeof window}function l(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function c(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return!!u()&&(e instanceof Node||e instanceof c(e).Node)}function f(e){return!!u()&&(e instanceof Element||e instanceof c(e).Element)}function d(e){return!!u()&&(e instanceof HTMLElement||e instanceof c(e).HTMLElement)}function m(e){return!(!u()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof c(e).ShadowRoot)}const p=new Set(["inline","contents"]);function v(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=S(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!p.has(o)}const g=new Set(["table","td","th"]);function h(e){return g.has(l(e))}const y=[":popover-open",":modal"];function w(e){return y.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const b=["transform","translate","scale","rotate","perspective"],x=["transform","translate","scale","rotate","perspective","filter"],R=["paint","layout","strict","content"];function E(e){const t=k(),n=f(e)?S(e):e;return b.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||x.some((e=>(n.willChange||"").includes(e)))||R.some((e=>(n.contain||"").includes(e)))}function k(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const I=new Set(["html","body","#document"]);function C(e){return I.has(l(e))}function S(e){return c(e).getComputedStyle(e)}function L(e){return f(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function M(e){if("html"===l(e))return e;const t=e.assignedSlot||e.parentNode||m(e)&&e.host||s(e);return m(t)?t.host:t}function T(e){const t=M(e);return C(t)?e.ownerDocument?e.ownerDocument.body:e.body:d(t)&&v(t)?t:T(t)}function A(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=T(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),u=c(o);if(i){const e=O(u);return t.concat(u,u.visualViewport||[],v(o)?o:[],e&&n?A(e):[])}return t.concat(o,A(o,[],n))}function O(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const D=["top","right","bottom","left"],P=Math.min,N=Math.max,F=Math.round,W=Math.floor,B=e=>({x:e,y:e}),_={left:"right",right:"left",bottom:"top",top:"bottom"},K={start:"end",end:"start"};function H(e,t,n){return N(e,P(t,n))}function V(e,t){return"function"==typeof e?e(t):e}function q(e){return e.split("-")[0]}function z(e){return e.split("-")[1]}function j(e){return"x"===e?"y":"x"}function U(e){return"y"===e?"height":"width"}const X=new Set(["top","bottom"]);function Y(e){return X.has(q(e))?"y":"x"}function $(e){return j(Y(e))}function G(e){return e.replace(/start|end/g,(e=>K[e]))}const Q=["left","right"],Z=["right","left"],J=["top","bottom"],ee=["bottom","top"];function te(e,t,n,r){const o=z(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Z:Q:t?Q:Z;case"left":case"right":return t?J:ee;default:return[]}}(q(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(G)))),i}function ne(e){return e.replace(/left|right|bottom|top/g,(e=>_[e]))}function re(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function oe(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}
|
|
2
|
-
/*!
|
|
3
|
-
* tabbable 6.2.0
|
|
4
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5
|
-
*/var ie=["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(","),ue="undefined"==typeof Element,le=ue?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ce=!ue&&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},se=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},ae=function(e,t,n){if(se(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ie));return t&&le.call(e,ie)&&r.unshift(e),r=r.filter(n)},fe=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var u=i.shift();if(!se(u,!1))if("SLOT"===u.tagName){var l=u.assignedElements(),c=e(l.length?l:u.children,!0,r);r.flatten?o.push.apply(o,c):o.push({scopeParent:u,candidates:c})}else{le.call(u,ie)&&r.filter(u)&&(n||!t.includes(u))&&o.push(u);var s=u.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(u),a=!se(s,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(u));if(s&&a){var f=e(!0===s?u.children:s.children,!0,r);r.flatten?o.push.apply(o,f):o.push({scopeParent:u,candidates:f})}else i.unshift.apply(i,u.children)}}return o},de=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},me=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))&&!de(e)?0:e.tabIndex},pe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ve=function(e){return"INPUT"===e.tagName},ge=function(e){return function(e){return ve(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||ce(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(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 o=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!o||o===e}(e)},he=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},ye=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=le.call(e,"details>summary:first-of-type")?e.parentElement:e;if(le.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return he(e)}else{if("function"==typeof r){for(var i=e;e;){var u=e.parentElement,l=ce(e);if(u&&!u.shadowRoot&&!0===r(u))return he(e);e=e.assignedSlot?e.assignedSlot:u||l===e.ownerDocument?u:l.host}e=i}if(function(e){var t,n,r,o,i=e&&ce(e),u=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=u)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(u)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&u;){var c,s,a;l=!(null===(s=u=null===(c=i=ce(u))||void 0===c?void 0:c.host)||void 0===s||null===(a=s.ownerDocument)||void 0===a||!a.contains(u))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},we=function(e,t){return!(t.disabled||se(t)||function(e){return ve(e)&&"hidden"===e.type}(t)||ye(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 r=t.children.item(n);if("LEGEND"===r.tagName)return!!le.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},be=function(e,t){return!(ge(t)||me(t)<0||!we(e,t))},xe=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Re=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,u=i?t.scopeParent:t,l=function(e,t){var n=me(e);return n<0&&t&&!de(e)?0:n}(u,i),c=i?e(t.candidates):u;0===l?i?n.push.apply(n,c):n.push(u):r.push({documentOrder:o,tabIndex:l,item:t,isScope:i,content:c})})),r.sort(pe).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},Ee=function(e,t){var n;return n=(t=t||{}).getShadowRoot?fe([e],t.includeContainer,{filter:be.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:xe}):ae(e,t.includeContainer,be.bind(null,t)),Re(n)},ke=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==le.call(e,ie)&&be(t,e)};function Ie(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Ce(){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 Se(){return/apple/i.test(navigator.vendor)}function Le(){const e=/android/i;return e.test(Ie())||e.test(Ce())}function Me(){return Ce().includes("jsdom/")}const Te="data-floating-ui-focusable",Ae="ArrowLeft",Oe="ArrowRight";function De(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 Pe(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&m(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ne(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Fe(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 We(e){return(null==e?void 0:e.ownerDocument)||document}function Be(e){return d(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function _e(e){return!!e&&("combobox"===e.getAttribute("role")&&Be(e))}function Ke(e){return e?e.hasAttribute(Te)?e:e.querySelector("["+Te+"]")||e:null}function He(e,t,n){void 0===n&&(n=!0);return e.filter((e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))})).flatMap((t=>[t,...He(e,t.id,n)]))}function Ve(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function qe(e){e.preventDefault(),e.stopPropagation()}function ze(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Le()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function je(e){return!Me()&&(!Le()&&0===e.width&&0===e.height||Le()&&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 Ue(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var Xe="undefined"!=typeof document?t:function(){};function Ye(t){const n=e.useRef(t);return Xe((()=>{n.current=t})),n}const $e={...e}.useInsertionEffect||(e=>e());function Ge(t){const n=e.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return $e((()=>{n.current=t})),e.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}function Qe(e,t,n){return Math.floor(e/t)!==n}function Ze(e,t){return t<0||t>=e.current.length}function Je(e,t){return tt(e,{disabledIndices:t})}function et(e,t){return tt(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function tt(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t,u=n;do{u+=r?-i:i}while(u>=0&&u<=e.current.length-1&&ut(e,u,o));return u}function nt(e,t){let{event:n,orientation:r,loop:o,rtl:i,cols:u,disabledIndices:l,minIndex:c,maxIndex:s,prevIndex:a,stopEvent:f=!1}=t,d=a;if("ArrowUp"===n.key){if(f&&qe(n),-1===a)d=s;else if(d=tt(e,{startingIndex:d,amount:u,decrement:!0,disabledIndices:l}),o&&(a-u<c||d<0)){const e=a%u,t=s%u,n=s-(t-e);d=t===e?s:t>e?n:n-u}Ze(e,d)&&(d=a)}if("ArrowDown"===n.key&&(f&&qe(n),-1===a?d=c:(d=tt(e,{startingIndex:a,amount:u,disabledIndices:l}),o&&a+u>s&&(d=tt(e,{startingIndex:a%u-u,amount:u,disabledIndices:l}))),Ze(e,d)&&(d=a)),"both"===r){const t=W(a/u);n.key===(i?Ae:Oe)&&(f&&qe(n),a%u!=u-1?(d=tt(e,{startingIndex:a,disabledIndices:l}),o&&Qe(d,u,t)&&(d=tt(e,{startingIndex:a-a%u-1,disabledIndices:l}))):o&&(d=tt(e,{startingIndex:a-a%u-1,disabledIndices:l})),Qe(d,u,t)&&(d=a)),n.key===(i?Oe:Ae)&&(f&&qe(n),a%u!=0?(d=tt(e,{startingIndex:a,decrement:!0,disabledIndices:l}),o&&Qe(d,u,t)&&(d=tt(e,{startingIndex:a+(u-a%u),decrement:!0,disabledIndices:l}))):o&&(d=tt(e,{startingIndex:a+(u-a%u),decrement:!0,disabledIndices:l})),Qe(d,u,t)&&(d=a));const r=W(s/u)===t;Ze(e,d)&&(d=o&&r?n.key===(i?Oe:Ae)?s:tt(e,{startingIndex:a-a%u-1,disabledIndices:l}):a)}return d}function rt(e,t,n){const r=[];let o=0;return e.forEach(((e,i)=>{let{width:u,height:l}=e;if(u>t&&"production"!==process.env.NODE_ENV)throw new Error("[Floating UI]: Invalid grid - item width at index "+i+" is greater than grid columns");let c=!1;for(n&&(o=0);!c;){const e=[];for(let n=0;n<u;n++)for(let r=0;r<l;r++)e.push(o+n+r*t);o%t+u<=t&&e.every((e=>null==r[e]))?(e.forEach((e=>{r[e]=i})),c=!0):o++}})),[...r]}function ot(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),u=t[e];switch(o){case"tl":return i;case"tr":return u?i+u.width-1:i;case"bl":return u?i+(u.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function it(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function ut(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);const r=e.current[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}const lt=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ct(e,t){const n=Ee(e,lt()),r=n.length;if(0===r)return;const o=De(We(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function st(e){return ct(We(e).body,1)||e}function at(e){return ct(We(e).body,-1)||e}function ft(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Pe(n,r)}function dt(e){Ee(e,lt()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function mt(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}function pt(e,t,n){let{reference:r,floating:o}=e;const i=Y(t),u=$(t),l=U(u),c=q(t),s="y"===i,a=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let m;switch(c){case"top":m={x:a,y:r.y-o.height};break;case"bottom":m={x:a,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(z(t)){case"start":m[u]-=d*(n&&s?-1:1);break;case"end":m[u]+=d*(n&&s?-1:1)}return m}async function vt(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:u,elements:l,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:a="viewport",elementContext:f="floating",altBoundary:d=!1,padding:m=0}=V(t,e),p=re(m),v=l[d?"floating"===f?"reference":"floating":f],g=oe(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:a,strategy:c})),h="floating"===f?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=oe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:h,offsetParent:y,strategy:c}):h);return{top:(g.top-b.top+p.top)/w.y,bottom:(b.bottom-g.bottom+p.bottom)/w.y,left:(g.left-b.left+p.left)/w.x,right:(b.right-g.right+p.right)/w.x}}function gt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ht(e){return D.some((t=>e[t]>=0))}const yt=new Set(["left","top"]);function wt(e){const t=S(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=d(e),i=o?e.offsetWidth:n,u=o?e.offsetHeight:r,l=F(n)!==i||F(r)!==u;return l&&(n=i,r=u),{width:n,height:r,$:l}}function bt(e){return f(e)?e:e.contextElement}function xt(e){const t=bt(e);if(!d(t))return B(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=wt(t);let u=(i?F(n.width):n.width)/r,l=(i?F(n.height):n.height)/o;return u&&Number.isFinite(u)||(u=1),l&&Number.isFinite(l)||(l=1),{x:u,y:l}}const Rt=B(0);function Et(e){const t=c(e);return k()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Rt}function kt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=bt(e);let u=B(1);t&&(r?f(r)&&(u=xt(r)):u=xt(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==c(e))&&t}(i,n,r)?Et(i):B(0);let s=(o.left+l.x)/u.x,a=(o.top+l.y)/u.y,d=o.width/u.x,m=o.height/u.y;if(i){const e=c(i),t=r&&f(r)?c(r):r;let n=e,o=O(n);for(;o&&r&&t!==n;){const e=xt(o),t=o.getBoundingClientRect(),r=S(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,u=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,a*=e.y,d*=e.x,m*=e.y,s+=i,a+=u,n=c(o),o=O(n)}}return oe({width:d,height:m,x:s,y:a})}function It(e,t){const n=L(e).scrollLeft;return t?t.left+n:kt(s(e)).left+n}function Ct(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-It(e,n),y:n.top+t.scrollTop}}const St=new Set(["absolute","fixed"]);function Lt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=c(e),r=s(e),o=n.visualViewport;let i=r.clientWidth,u=r.clientHeight,l=0,a=0;if(o){i=o.width,u=o.height;const e=k();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,a=o.offsetTop)}const f=It(r);if(f<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,u=Math.abs(r.clientWidth-t.clientWidth-o);u<=25&&(i-=u)}else f<=25&&(i+=f);return{width:i,height:u,x:l,y:a}}(e,n);else if("document"===t)r=function(e){const t=s(e),n=L(e),r=e.ownerDocument.body,o=N(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=N(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-n.scrollLeft+It(e);const l=-n.scrollTop;return"rtl"===S(r).direction&&(u+=N(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:u,y:l}}(s(e));else if(f(t))r=function(e,t){const n=kt(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=d(e)?xt(e):B(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Et(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return oe(r)}function Mt(e,t){const n=M(e);return!(n===t||!f(n)||C(n))&&("fixed"===S(n).position||Mt(n,t))}function Tt(e,t,n){const r=d(t),o=s(t),i="fixed"===n,u=kt(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const a=B(0);function f(){a.x=It(o)}if(r||!r&&!i)if(("body"!==l(t)||v(o))&&(c=L(t)),r){const e=kt(t,!0,i,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&f();i&&!r&&o&&f();const m=!o||r||i?B(0):Ct(o,c);return{x:u.left+c.scrollLeft-a.x-m.x,y:u.top+c.scrollTop-a.y-m.y,width:u.width,height:u.height}}function At(e){return"static"===S(e).position}function Ot(e,t){if(!d(e)||"fixed"===S(e).position)return null;if(t)return t(e);let n=e.offsetParent;return s(e)===n&&(n=n.ownerDocument.body),n}function Dt(e,t){const n=c(e);if(w(e))return n;if(!d(e)){let t=M(e);for(;t&&!C(t);){if(f(t)&&!At(t))return t;t=M(t)}return n}let r=Ot(e,t);for(;r&&h(r)&&At(r);)r=Ot(r,t);return r&&C(r)&&At(r)&&!E(r)?n:r||function(e){let t=M(e);for(;d(t)&&!C(t);){if(E(t))return t;if(w(t))return null;t=M(t)}return null}(e)||n}const Pt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,u=s(r),c=!!t&&w(t.floating);if(r===u||c&&i)return n;let a={scrollLeft:0,scrollTop:0},f=B(1);const m=B(0),p=d(r);if((p||!p&&!i)&&(("body"!==l(r)||v(u))&&(a=L(r)),d(r))){const e=kt(r);f=xt(r),m.x=e.x+r.clientLeft,m.y=e.y+r.clientTop}const g=!u||p||i?B(0):Ct(u,a);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+m.x+g.x,y:n.y*f.y-a.scrollTop*f.y+m.y+g.y}},getDocumentElement:s,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?w(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=A(e,[],!1).filter((e=>f(e)&&"body"!==l(e))),o=null;const i="fixed"===S(e).position;let u=i?M(e):e;for(;f(u)&&!C(u);){const t=S(u),n=E(u);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&St.has(o.position)||v(u)&&!n&&Mt(e,u))?r=r.filter((e=>e!==u)):o=t,u=M(u)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=i[0],c=i.reduce(((e,n)=>{const r=Lt(t,n,o);return e.top=N(r.top,e.top),e.right=P(r.right,e.right),e.bottom=P(r.bottom,e.bottom),e.left=N(r.left,e.left),e}),Lt(t,u,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:Dt,getElementRects:async function(e){const t=this.getOffsetParent||Dt,n=this.getDimensions,r=await n(e.floating);return{reference:Tt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=wt(e);return{width:t,height:n}},getScale:xt,isElement:f,isRTL:function(e){return"rtl"===S(e).direction}};function Nt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ft(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,a=bt(e),f=o||i?[...a?A(a):[],...A(t)]:[];f.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=a&&l?function(e,t){let n,r=null;const o=s(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function u(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),i();const s=e.getBoundingClientRect(),{left:a,top:f,width:d,height:m}=s;if(l||t(),!d||!m)return;const p={rootMargin:-W(f)+"px "+-W(o.clientWidth-(a+d))+"px "+-W(o.clientHeight-(f+m))+"px "+-W(a)+"px",threshold:N(0,P(1,c))||1};let v=!0;function g(t){const r=t[0].intersectionRatio;if(r!==c){if(!v)return u();r?u(!1,r):n=setTimeout((()=>{u(!1,1e-7)}),1e3)}1!==r||Nt(s,e.getBoundingClientRect())||u(),v=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}(a,n):null;let m,p=-1,v=null;u&&(v=new ResizeObserver((e=>{let[r]=e;r&&r.target===a&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),a&&!c&&v.observe(a),v.observe(t));let g=c?kt(e):null;return c&&function t(){const r=kt(e);g&&!Nt(g,r)&&n();g=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=v)||e.disconnect(),v=null,c&&cancelAnimationFrame(m)}}const Wt=vt,Bt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:u,middlewareData:l}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),u=q(n),l=z(n),c="y"===Y(n),s=yt.has(u)?-1:1,a=i&&c?-1:1,f=V(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof p&&(m="end"===l?-1*p:p),c?{x:m*a,y:d*s}:{x:d*s,y:m*a}}(t,e);return u===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:u}}}}},_t=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:u=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=V(e,t),s={x:n,y:r},a=await vt(t,c),f=Y(q(o)),d=j(f);let m=s[d],p=s[f];if(i){const e="y"===d?"bottom":"right";m=H(m+a["y"===d?"top":"left"],m,m-a[e])}if(u){const e="y"===f?"bottom":"right";p=H(p+a["y"===f?"top":"left"],p,p-a[e])}const v=l.fn({...t,[d]:m,[f]:p});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:i,[f]:u}}}}}},Kt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:u,initialPlacement:l,platform:c,elements:s}=t,{mainAxis:a=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...g}=V(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const h=q(o),y=Y(l),w=q(l)===l,b=await(null==c.isRTL?void 0:c.isRTL(s.floating)),x=d||(w||!v?[ne(l)]:function(e){const t=ne(e);return[G(e),t,G(t)]}(l)),R="none"!==p;!d&&R&&x.push(...te(l,v,p,b));const E=[l,...x],k=await vt(t,g),I=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(a&&I.push(k[h]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=z(e),o=$(e),i=U(o);let u="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(u=ne(u)),[u,ne(u)]}(o,u,b);I.push(k[e[0]],k[e[1]])}if(C=[...C,{placement:o,overflows:I}],!I.every((e=>e<=0))){var S,L;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=E[e];if(t){if(!("alignment"===f&&y!==Y(t))||C.every((e=>Y(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:C},reset:{placement:t}}}let n=null==(L=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(m){case"bestFit":{var M;const e=null==(M=C.filter((e=>{if(R){const t=Y(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},Ht=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:u,elements:l}=t,{apply:c=()=>{},...s}=V(e,t),a=await vt(t,s),f=q(o),d=z(o),m="y"===Y(o),{width:p,height:v}=i.floating;let g,h;"top"===f||"bottom"===f?(g=f,h=d===(await(null==u.isRTL?void 0:u.isRTL(l.floating))?"start":"end")?"left":"right"):(h=f,g="end"===d?"top":"bottom");const y=v-a.top-a.bottom,w=p-a.left-a.right,b=P(v-a[g],y),x=P(p-a[h],w),R=!t.middlewareData.shift;let E=b,k=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=y),R&&!d){const e=N(a.left,0),t=N(a.right,0),n=N(a.top,0),r=N(a.bottom,0);m?k=p-2*(0!==e||0!==t?e+t:N(a.left,a.right)):E=v-2*(0!==n||0!==r?n+r:N(a.top,a.bottom))}await c({...t,availableWidth:k,availableHeight:E});const I=await u.getDimensions(l.floating);return p!==I.width||v!==I.height?{reset:{rects:!0}}:{}}}},Vt=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=V(e,t);switch(r){case"referenceHidden":{const e=gt(await vt(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ht(e)}}}case"escaped":{const e=gt(await vt(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ht(e)}}}default:return{}}}}},qt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:u,elements:l,middlewareData:c}=t,{element:s,padding:a=0}=V(e,t)||{};if(null==s)return{};const f=re(a),d={x:n,y:r},m=$(o),p=U(m),v=await u.getDimensions(s),g="y"===m,h=g?"top":"left",y=g?"bottom":"right",w=g?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[m]-d[m]-i.floating[p],x=d[m]-i.reference[m],R=await(null==u.getOffsetParent?void 0:u.getOffsetParent(s));let E=R?R[w]:0;E&&await(null==u.isElement?void 0:u.isElement(R))||(E=l.floating[w]||i.floating[p]);const k=b/2-x/2,I=E/2-v[p]/2-1,C=P(f[h],I),S=P(f[y],I),L=C,M=E-v[p]-S,T=E/2-v[p]/2+k,A=H(L,T,M),O=!c.arrow&&null!=z(o)&&T!==A&&i.reference[p]/2-(T<L?C:S)-v[p]/2<0,D=O?T<L?T-L:T-M:0;return{[m]:d[m]+D,data:{[m]:A,centerOffset:T-A-D,...O&&{alignmentOffset:D}},reset:O}}}),zt=(e,t,n)=>{const r=new Map,o={platform:Pt,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:u}=n,l=i.filter(Boolean),c=await(null==u.isRTL?void 0:u.isRTL(t));let s=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:a,y:f}=pt(s,r,c),d=r,m={},p=0;for(let n=0;n<l.length;n++){const{name:i,fn:v}=l[n],{x:g,y:h,data:y,reset:w}=await v({x:a,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:s,platform:u,elements:{reference:e,floating:t}});a=null!=g?g:a,f=null!=h?h:f,m={...m,[i]:{...m[i],...y}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(s=!0===w.rects?await u.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:a,y:f}=pt(s,d,c))),n=-1)}return{x:a,y:f,placement:d,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var jt="undefined"!=typeof document?t:function(){};function Ut(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,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Ut(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Ut(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Xt(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yt(e,t){const n=Xt(e);return Math.round(t*n)/n}function $t(t){const n=e.useRef(t);return jt((()=>{n.current=t})),n}const Gt=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?qt({element:n.current,padding:r}).fn(t):{}:n?qt({element:n,padding:r}).fn(t):{};var o}}),Qt=(e,t)=>({...Bt(e),options:[e,t]}),Zt=(e,t)=>({..._t(e),options:[e,t]}),Jt=(e,t)=>({...Kt(e),options:[e,t]}),en=(e,t)=>({...Ht(e),options:[e,t]}),tn=(e,t)=>({...Vt(e),options:[e,t]}),nn=(e,t)=>({...Gt(e),options:[e,t]});function rn(t){const n=e.useRef(void 0),r=e.useCallback((e=>{const n=t.map((t=>{if(null!=t){if("function"==typeof t){const n=t,r=n(e);return"function"==typeof r?r:()=>{n(null)}}return t.current=e,()=>{t.current=null}}}));return()=>{n.forEach((e=>null==e?void 0:e()))}}),t);return e.useMemo((()=>t.every((e=>null==e))?null:e=>{n.current&&(n.current(),n.current=void 0),null!=e&&(n.current=r(e))}),t)}function on(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 un=e.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function ln(t){const{children:r,elementsRef:o,labelsRef:i}=t,[u,l]=e.useState((()=>new Set)),c=e.useCallback((e=>{l((t=>new Set(t).add(e)))}),[]),s=e.useCallback((e=>{l((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),a=e.useMemo((()=>{const e=new Map;return Array.from(u.keys()).sort(on).forEach(((t,n)=>{e.set(t,n)})),e}),[u]);return n(un.Provider,{value:e.useMemo((()=>({register:c,unregister:s,map:a,elementsRef:o,labelsRef:i})),[c,s,a,o,i]),children:r})}function cn(t){void 0===t&&(t={});const{label:n}=t,{register:r,unregister:o,map:i,elementsRef:u,labelsRef:l}=e.useContext(un),[c,s]=e.useState(null),a=e.useRef(null),f=e.useCallback((e=>{if(a.current=e,null!==c&&(u.current[c]=e,l)){var t;const r=void 0!==n;l.current[c]=r?n:null!=(t=null==e?void 0:e.textContent)?t:null}}),[c,u,l,n]);return Xe((()=>{const e=a.current;if(e)return r(e),()=>{o(e)}}),[r,o]),Xe((()=>{const e=a.current?i.get(a.current):null;null!=e&&s(e)}),[i]),e.useMemo((()=>({ref:f,index:null==c?-1:c})),[c,f])}const sn="data-floating-ui-focusable",an="active",fn="selected",dn="ArrowLeft",mn="ArrowRight",pn="ArrowUp",vn="ArrowDown";function gn(t,r){return"function"==typeof t?t(r):t?e.cloneElement(t,r):n("div",{...r})}const hn=e.createContext({activeIndex:0,onNavigate:()=>{}}),yn=[dn,mn],wn=[pn,vn],bn=[...yn,...wn],xn=e.forwardRef((function(t,r){const{render:o,orientation:i="both",loop:u=!0,rtl:l=!1,cols:c=1,disabledIndices:s,activeIndex:a,onNavigate:f,itemSizes:d,dense:m=!1,...p}=t,[v,g]=e.useState(0),h=null!=a?a:v,y=Ge(null!=f?f:g),w=e.useRef([]),b=o&&"function"!=typeof o?o.props:{},x=e.useMemo((()=>({activeIndex:h,onNavigate:y})),[h,y]),R=c>1;const E={...p,...b,ref:r,"aria-orientation":"both"===i?void 0:i,onKeyDown(e){null==p.onKeyDown||p.onKeyDown(e),null==b.onKeyDown||b.onKeyDown(e),function(e){if(!bn.includes(e.key))return;let t=h;const n=Je(w,s),r=et(w,s),o=l?dn:mn,a=l?mn:dn;if(R){const a=d||Array.from({length:w.current.length},(()=>({width:1,height:1}))),f=rt(a,c,m),p=f.findIndex((e=>null!=e&&!ut(w,e,s))),v=f.reduce(((e,t,n)=>null==t||ut(w,t,s)?e:n),-1),g=f[nt({current:f.map((e=>e?w.current[e]:null))},{event:e,orientation:i,loop:u,rtl:l,cols:c,disabledIndices:it([...("function"!=typeof s?s:null)||w.current.map(((e,t)=>ut(w,t,s)?t:void 0)),void 0],f),minIndex:p,maxIndex:v,prevIndex:ot(h>r?n:h,a,f,c,e.key===vn?"bl":e.key===o?"tr":"tl")})];null!=g&&(t=g)}const f={horizontal:[o],vertical:[vn],both:[o,vn]}[i],p={horizontal:[a],vertical:[pn],both:[a,pn]}[i],v=R?bn:{horizontal:yn,vertical:wn,both:bn}[i];var g;t===h&&[...f,...p].includes(e.key)&&(t=u&&t===r&&f.includes(e.key)?n:u&&t===n&&p.includes(e.key)?r:tt(w,{startingIndex:t,decrement:p.includes(e.key),disabledIndices:s})),t===h||Ze(w,t)||(e.stopPropagation(),v.includes(e.key)&&e.preventDefault(),y(t),null==(g=w.current[t])||g.focus())}(e)}};return n(hn.Provider,{value:x,children:n(ln,{elementsRef:w,children:gn(o,E)})})})),Rn=e.forwardRef((function(t,n){const{render:r,...o}=t,i=r&&"function"!=typeof r?r.props:{},{activeIndex:u,onNavigate:l}=e.useContext(hn),{ref:c,index:s}=cn(),a=rn([c,n,i.ref]),f=u===s;return gn(r,{...o,...i,ref:a,tabIndex:f?0:-1,"data-active":f?"":void 0,onFocus(e){null==o.onFocus||o.onFocus(e),null==i.onFocus||i.onFocus(e),l(s)}})})),En={...e};let kn=!1,In=0;const Cn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+In++;const Sn=En.useId||function(){const[t,n]=e.useState((()=>kn?Cn():void 0));return Xe((()=>{null==t&&n(Cn())}),[]),e.useEffect((()=>{kn=!0}),[]),t};let Ln;function Mn(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var i;null!=(e=Ln)&&e.has(o)||(null==(i=Ln)||i.add(o),console.warn(o))}"production"!==process.env.NODE_ENV&&(Ln=new Set);const Tn=e.forwardRef((function(t,o){const{context:{placement:i,elements:{floating:u},middlewareData:{arrow:l,shift:c}},width:s=14,height:a=7,tipRadius:f=0,strokeWidth:d=0,staticOffset:m,stroke:p,d:v,style:{transform:g,...h}={},...y}=t;"production"!==process.env.NODE_ENV&&(o||Mn("The `ref` prop is required for `FloatingArrow`."));const w=Sn(),[b,x]=e.useState(!1);if(Xe((()=>{if(!u)return;"rtl"===S(u).direction&&x(!0)}),[u]),!u)return null;const[R,E]=i.split("-"),k="top"===R||"bottom"===R;let I=m;(k&&null!=c&&c.x||!k&&null!=c&&c.y)&&(I=null);const C=2*d,L=C/2,M=s/2*(f/-8+1),T=a/2*f/4,A=!!v,O=I&&"end"===E?"bottom":"top";let D=I&&"end"===E?"right":"left";I&&b&&(D="end"===E?"left":"right");const P=null!=(null==l?void 0:l.x)?I||l.x:"",N=null!=(null==l?void 0:l.y)?I||l.y:"",F=v||"M0,0 H"+s+" L"+(s-M)+","+(a-T)+" Q"+s/2+","+a+" "+M+","+(a-T)+" Z",W={top:A?"rotate(180deg)":"",left:A?"rotate(90deg)":"rotate(-90deg)",bottom:A?"":"rotate(180deg)",right:A?"rotate(-90deg)":"rotate(90deg)"}[R];return r("svg",{...y,"aria-hidden":!0,ref:o,width:A?s:s+C,height:s,viewBox:"0 0 "+s+" "+(a>s?a:s),style:{position:"absolute",pointerEvents:"none",[D]:P,[O]:N,[R]:k||A?"100%":"calc(100% - "+C/2+"px)",transform:[W,g].filter((e=>!!e)).join(" "),...h},children:[C>0&&n("path",{clipPath:"url(#"+w+")",fill:"none",stroke:p,strokeWidth:C+(v?0:1),d:F}),n("path",{stroke:C&&!v?y.fill:"none",d:F}),n("clipPath",{id:w,children:n("rect",{x:-L,y:L*(A?-1:1),width:s+C,height:s})})]})}));function An(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}const On=e.createContext(null),Dn=e.createContext(null),Pn=()=>{var t;return(null==(t=e.useContext(On))?void 0:t.id)||null},Nn=()=>e.useContext(Dn);function Fn(e){const t=Sn(),n=Nn(),r=Pn(),o=e||r;return Xe((()=>{if(!t)return;const e={id:t,parentId:o};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,o]),t}function Wn(t){const{children:r,id:o}=t,i=Pn();return n(On.Provider,{value:e.useMemo((()=>({id:o,parentId:i})),[o,i]),children:r})}function Bn(t){const{children:r}=t,o=e.useRef([]),i=e.useCallback((e=>{o.current=[...o.current,e]}),[]),u=e.useCallback((e=>{o.current=o.current.filter((t=>t!==e))}),[]),[l]=e.useState((()=>An()));return n(Dn.Provider,{value:e.useMemo((()=>({nodesRef:o,addNode:i,removeNode:u,events:l})),[i,u,l]),children:r})}function _n(e){return"data-floating-ui-"+e}function Kn(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const Hn=_n("safe-polygon");function Vn(e,t,n){if(n&&!Ue(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 qn(e){return"function"==typeof e?e():e}function zn(t,n){void 0===n&&(n={});const{open:r,onOpenChange:o,dataRef:i,events:u,elements:l}=t,{enabled:c=!0,delay:s=0,handleClose:a=null,mouseOnly:d=!1,restMs:m=0,move:p=!0}=n,v=Nn(),g=Pn(),h=Ye(a),y=Ye(s),w=Ye(r),b=Ye(m),x=e.useRef(),R=e.useRef(-1),E=e.useRef(),k=e.useRef(-1),I=e.useRef(!0),C=e.useRef(!1),S=e.useRef((()=>{})),L=e.useRef(!1),M=Ge((()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}));e.useEffect((()=>{if(c)return u.on("openchange",e),()=>{u.off("openchange",e)};function e(e){let{open:t}=e;t||(Kn(R),Kn(k),I.current=!0,L.current=!1)}}),[c,u]),e.useEffect((()=>{if(!c)return;if(!h.current)return;if(!r)return;function e(e){M()&&o(!1,e,"hover")}const t=We(l.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[l.floating,r,o,c,h,M]);const T=e.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=Vn(y.current,"close",x.current);r&&!E.current?(Kn(R),R.current=window.setTimeout((()=>o(!1,e,n)),r)):t&&(Kn(R),o(!1,e,n))}),[y,o]),A=Ge((()=>{S.current(),E.current=void 0})),O=Ge((()=>{if(C.current){const e=We(l.floating).body;e.style.pointerEvents="",e.removeAttribute(Hn),C.current=!1}})),D=Ge((()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)));e.useEffect((()=>{if(c&&f(l.domReference)){const o=l.domReference,i=l.floating;return r&&o.addEventListener("mouseleave",n),p&&o.addEventListener("mousemove",e,{once:!0}),o.addEventListener("mouseenter",e),o.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",n),i.addEventListener("mouseenter",u),i.addEventListener("mouseleave",s)),()=>{r&&o.removeEventListener("mouseleave",n),p&&o.removeEventListener("mousemove",e),o.removeEventListener("mouseenter",e),o.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",n),i.removeEventListener("mouseenter",u),i.removeEventListener("mouseleave",s))}}function e(e){if(Kn(R),I.current=!1,d&&!Ue(x.current)||qn(b.current)>0&&!Vn(y.current,"open"))return;const t=Vn(y.current,"open",x.current);t?R.current=window.setTimeout((()=>{w.current||o(!0,e,"hover")}),t):r||o(!0,e,"hover")}function t(e){if(D())return void O();S.current();const t=We(l.floating);if(Kn(k),L.current=!1,h.current&&i.current.floatingContext){r||Kn(R),E.current=h.current({...i.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){O(),A(),D()||T(e,!0,"safe-polygon")}});const n=E.current;return t.addEventListener("mousemove",n),void(S.current=()=>{t.removeEventListener("mousemove",n)})}("touch"!==x.current||!Pe(l.floating,e.relatedTarget))&&T(e)}function n(e){D()||i.current.floatingContext&&(null==h.current||h.current({...i.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){O(),A(),D()||T(e)}})(e))}function u(){Kn(R)}function s(e){D()||T(e,!1)}}),[l,c,t,d,p,T,A,O,o,r,w,v,y,h,i,D,b]),Xe((()=>{var e;if(c&&r&&null!=(e=h.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&M()){C.current=!0;const e=l.floating;if(f(l.domReference)&&e){var t;const n=We(l.floating).body;n.setAttribute(Hn,"");const r=l.domReference,o=null==v||null==(t=v.nodesRef.current.find((e=>e.id===g)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[c,r,g,l,v,h,M]),Xe((()=>{r||(x.current=void 0,L.current=!1,A(),O())}),[r,A,O]),e.useEffect((()=>()=>{A(),Kn(R),Kn(k),O()}),[c,l.domReference,A,O]);const P=e.useMemo((()=>{function e(e){x.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function n(){I.current||w.current||o(!0,t,"hover")}d&&!Ue(x.current)||r||0===qn(b.current)||L.current&&e.movementX**2+e.movementY**2<2||(Kn(k),"touch"===x.current?n():(L.current=!0,k.current=window.setTimeout(n,qn(b.current))))}}}),[d,o,r,w,b]);return e.useMemo((()=>c?{reference:P}:{}),[c,P])}let jn=0;function Un(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(jn);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():jn=requestAnimationFrame(i)}function Xn(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&m(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}const Yn={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function $n(e){return"inert"===e?Yn.inert:"aria-hidden"===e?Yn["aria-hidden"]:Yn.none}let Gn=new WeakSet,Qn={},Zn=0;const Jn=e=>e&&(e.host||Jn(e.parentNode));function er(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,u=(c=t,e.map((e=>{if(c.contains(e))return e;const t=Jn(e);return c.contains(t)?t:null})).filter((e=>null!=e)));var c;const s=new Set,a=new Set(u),f=[];Qn[o]||(Qn[o]=new WeakMap);const d=Qn[o];return u.forEach((function e(t){if(!t||s.has(t))return;s.add(t),t.parentNode&&e(t.parentNode)})),function e(t){if(!t||a.has(t))return;[].forEach.call(t.children,(t=>{if("script"!==l(t))if(s.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=$n(i),u=(r.get(t)||0)+1,l=(d.get(t)||0)+1;r.set(t,u),d.set(t,l),f.push(t),1===u&&n&&Gn.add(t),1===l&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"inert"===i?"":"true")}}))}(t),s.clear(),Zn++,()=>{f.forEach((e=>{const t=$n(i),n=(t.get(e)||0)-1,r=(d.get(e)||0)-1;t.set(e,n),d.set(e,r),n||(!Gn.has(e)&&i&&e.removeAttribute(i),Gn.delete(e)),r||e.removeAttribute(o)})),Zn--,Zn||(Yn.inert=new WeakMap,Yn["aria-hidden"]=new WeakMap,Yn.none=new WeakMap,Gn=new WeakSet,Qn={})}}function tr(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(o=e[0],(null==o?void 0:o.ownerDocument)||document).body;var o;return er(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const nr={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},rr=e.forwardRef((function(t,r){const[o,i]=e.useState();Xe((()=>{Se()&&i("button")}),[]);const u={ref:r,tabIndex:0,role:o,"aria-hidden":!o||void 0,[_n("focus-guard")]:"",style:nr};return n("span",{...t,...u})})),or=e.createContext(null),ir=_n("portal");function ur(t){const{children:o,id:u,root:l,preserveTabOrder:c=!0}=t,s=function(t){void 0===t&&(t={});const{id:n,root:r}=t,o=Sn(),i=lr(),[u,l]=e.useState(null),c=e.useRef(null);return Xe((()=>()=>{null==u||u.remove(),queueMicrotask((()=>{c.current=null}))}),[u]),Xe((()=>{if(!o)return;if(c.current)return;const e=n?document.getElementById(n):null;if(!e)return;const t=document.createElement("div");t.id=o,t.setAttribute(ir,""),e.appendChild(t),c.current=t,l(t)}),[n,o]),Xe((()=>{if(null===r)return;if(!o)return;if(c.current)return;let e=r||(null==i?void 0:i.portalNode);e&&!a(e)&&(e=e.current),e=e||document.body;let t=null;n&&(t=document.createElement("div"),t.id=n,e.appendChild(t));const u=document.createElement("div");u.id=o,u.setAttribute(ir,""),e=t||e,e.appendChild(u),c.current=u,l(u)}),[n,r,o,i]),u}({id:u,root:l}),[f,d]=e.useState(null),m=e.useRef(null),p=e.useRef(null),v=e.useRef(null),g=e.useRef(null),h=null==f?void 0:f.modal,y=null==f?void 0:f.open,w=!!f&&!f.modal&&f.open&&c&&!(!l&&!s);return e.useEffect((()=>{if(s&&c&&!h)return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){if(s&&ft(e)){("focusin"===e.type?mt:dt)(s)}}}),[s,c,h]),e.useEffect((()=>{s&&(y||mt(s))}),[y,s]),r(or.Provider,{value:e.useMemo((()=>({preserveTabOrder:c,beforeOutsideRef:m,afterOutsideRef:p,beforeInsideRef:v,afterInsideRef:g,portalNode:s,setFocusManagerState:d})),[c,s]),children:[w&&s&&n(rr,{"data-type":"outside",ref:m,onFocus:e=>{if(ft(e,s)){var t;null==(t=v.current)||t.focus()}else{const e=at(f?f.domReference:null);null==e||e.focus()}}}),w&&s&&n("span",{"aria-owns":s.id,style:nr}),s&&i.createPortal(o,s),w&&s&&n(rr,{"data-type":"outside",ref:p,onFocus:e=>{if(ft(e,s)){var t;null==(t=g.current)||t.focus()}else{const t=st(f?f.domReference:null);null==t||t.focus(),(null==f?void 0:f.closeOnFocusOut)&&(null==f||f.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const lr=()=>e.useContext(or);function cr(t){return e.useMemo((()=>e=>{t.forEach((t=>{t&&(t.current=e)}))}),t)}let sr=[];function ar(){sr=sr.filter((e=>e.isConnected))}function fr(){return ar(),sr[sr.length-1]}function dr(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=lt(),o=function(e,t){return(t=t||{}).getShadowRoot?fe([e],t.includeContainer,{filter:we.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):ae(e,t.includeContainer,we.bind(null,t))}(e,r),i=o.filter((e=>{const t=e.getAttribute("data-tabindex")||"";return ke(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")})),u=e.getAttribute("tabindex");t.current.includes("floating")||0===i.length?"0"!==u&&e.setAttribute("tabindex","0"):("-1"!==u||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const mr=e.forwardRef((function(e,t){return n("button",{...e,type:"button",ref:t,tabIndex:-1,style:nr})}));function pr(t){const{context:i,children:u,disabled:c=!1,order:s=["content"],guards:a=!0,initialFocus:f=0,returnFocus:m=!0,restoreFocus:p=!1,modal:v=!0,visuallyHiddenDismiss:g=!1,closeOnFocusOut:h=!0,outsideElementsInert:y=!1,getInsideElements:w=()=>[]}=t,{open:b,onOpenChange:x,events:R,dataRef:E,elements:{domReference:k,floating:I}}=i,C=Ge((()=>{var e;return null==(e=E.current.floatingContext)?void 0:e.nodeId})),S=Ge(w),L="number"==typeof f&&f<0,M=_e(k)&&L,T="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,A=!T||a,O=!A||T&&y,D=Ye(s),P=Ye(f),N=Ye(m),F=Nn(),W=lr(),B=e.useRef(null),_=e.useRef(null),K=e.useRef(!1),H=e.useRef(!1),V=e.useRef(-1),q=e.useRef(-1),z=null!=W,j=Ke(I),U=Ge((function(e){return void 0===e&&(e=j),e?Ee(e,lt()):[]})),X=Ge((e=>{const t=U(e);return D.current.map((e=>k&&"reference"===e?k:j&&"floating"===e?j:t)).filter(Boolean).flat()}));e.useEffect((()=>{if(c)return;if(!v)return;function e(e){if("Tab"===e.key){Pe(j,De(We(j)))&&0===U().length&&!M&&qe(e);const t=X(),n=Ne(e);"reference"===D.current[0]&&n===k&&(qe(e),e.shiftKey?Un(t[t.length-1]):Un(t[1])),"floating"===D.current[1]&&n===j&&e.shiftKey&&(qe(e),Un(t[0]))}}const t=We(j);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[c,k,j,v,D,M,U,X]),e.useEffect((()=>{if(!c&&I)return I.addEventListener("focusin",e),()=>{I.removeEventListener("focusin",e)};function e(e){const t=Ne(e),n=U().indexOf(t);-1!==n&&(V.current=n)}}),[c,I,U]),e.useEffect((()=>{if(c)return;if(!h)return;function e(){H.current=!0,setTimeout((()=>{H.current=!1}))}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=Ne(e);queueMicrotask((()=>{const o=C(),i=!(Pe(k,t)||Pe(I,t)||Pe(t,I)||Pe(null==W?void 0:W.portalNode,t)||null!=t&&t.hasAttribute(_n("focus-guard"))||F&&(He(F.nodesRef.current,o).find((e=>{var n,r;return Pe(null==(n=e.context)?void 0:n.elements.floating,t)||Pe(null==(r=e.context)?void 0:r.elements.domReference,t)}))||Ve(F.nodesRef.current,o).find((e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,Ke(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t}))));if(n===k&&j&&dr(j,D),p&&n!==k&&(null==r||!r.isConnected)&&De(We(j))===We(j).body){d(j)&&j.focus();const e=V.current,t=U(),n=t[e]||t[t.length-1]||j;d(n)&&n.focus()}E.current.insideReactTree?E.current.insideReactTree=!1:!M&&v||!t||!i||H.current||t===fr()||(K.current=!0,x(!1,e,"focus-out"))}))}const n=Boolean(!F&&W);function r(){Kn(q),E.current.insideReactTree=!0,q.current=window.setTimeout((()=>{E.current.insideReactTree=!1}))}return I&&d(k)?(k.addEventListener("focusout",t),k.addEventListener("pointerdown",e),I.addEventListener("focusout",t),n&&I.addEventListener("focusout",r,!0),()=>{k.removeEventListener("focusout",t),k.removeEventListener("pointerdown",e),I.removeEventListener("focusout",t),n&&I.removeEventListener("focusout",r,!0)}):void 0}),[c,k,I,j,v,F,W,x,h,p,U,M,C,D,E]);const Y=e.useRef(null),$=e.useRef(null),G=cr([Y,null==W?void 0:W.beforeInsideRef]),Q=cr([$,null==W?void 0:W.afterInsideRef]);function Z(e){return!c&&g&&v?n(mr,{ref:"start"===e?B:_,onClick:e=>x(!1,e.nativeEvent),children:"string"==typeof g?g:"Dismiss"}):null}e.useEffect((()=>{var e,t;if(c)return;if(!I)return;const n=Array.from((null==W||null==(e=W.portalNode)?void 0:e.querySelectorAll("["+_n("portal")+"]"))||[]),r=null==(t=(F?Ve(F.nodesRef.current,C()):[]).find((e=>{var t;return _e((null==(t=e.context)?void 0:t.elements.domReference)||null)})))||null==(t=t.context)?void 0:t.elements.domReference,o=[I,r,...n,...S(),B.current,_.current,Y.current,$.current,null==W?void 0:W.beforeOutsideRef.current,null==W?void 0:W.afterOutsideRef.current,D.current.includes("reference")||M?k:null].filter((e=>null!=e)),i=v||M?tr(o,!O,O):tr(o);return()=>{i()}}),[c,k,I,v,D,W,M,A,O,F,C,S]),Xe((()=>{if(c||!d(j))return;const e=De(We(j));queueMicrotask((()=>{const t=X(j),n=P.current,r=("number"==typeof n?t[n]:n.current)||j,o=Pe(j,e);L||o||!b||Un(r,{preventScroll:r===j})}))}),[c,b,j,L,X,P]),Xe((()=>{if(c||!j)return;const e=We(j),t=De(e);var n;function r(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(K.current=!0),"outside-press"===t)if(r)K.current=!1;else if(ze(n)||je(n))K.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),K.current=!e}}n=t,ar(),n&&"body"!==l(n)&&(sr.push(n),sr.length>20&&(sr=sr.slice(-20))),R.on("openchange",r);const o=e.createElement("span");return o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true"),Object.assign(o.style,nr),z&&k&&k.insertAdjacentElement("afterend",o),()=>{R.off("openchange",r);const t=De(e),n=Pe(I,t)||F&&He(F.nodesRef.current,C(),!1).some((e=>{var n;return Pe(null==(n=e.context)?void 0:n.elements.floating,t)})),i=function(){if("boolean"==typeof N.current){const e=k||fr();return e&&e.isConnected?e:o}return N.current.current||o}();queueMicrotask((()=>{const r=function(e){const t=lt();return ke(e,t)?e:Ee(e,t)[0]||e}(i);N.current&&!K.current&&d(r)&&(r===t||t===e.body||n)&&r.focus({preventScroll:!0}),o.remove()}))}}),[c,I,j,N,E,R,F,z,k,C]),e.useEffect((()=>(queueMicrotask((()=>{K.current=!1})),()=>{queueMicrotask(ar)})),[c]),Xe((()=>{if(!c&&W)return W.setFocusManagerState({modal:v,closeOnFocusOut:h,open:b,onOpenChange:x,domReference:k}),()=>{W.setFocusManagerState(null)}}),[c,W,v,b,x,h,k]),Xe((()=>{c||j&&dr(j,D)}),[c,j,D]);const J=!c&&A&&(!v||!M)&&(z||v);return r(o,{children:[J&&n(rr,{"data-type":"inside",ref:G,onFocus:e=>{if(v){const e=X();Un("reference"===s[0]?e[0]:e[e.length-1])}else if(null!=W&&W.preserveTabOrder&&W.portalNode)if(K.current=!1,ft(e,W.portalNode)){const e=st(k);null==e||e.focus()}else{var t;null==(t=W.beforeOutsideRef.current)||t.focus()}}}),!M&&Z("start"),u,Z("end"),J&&n(rr,{"data-type":"inside",ref:Q,onFocus:e=>{if(v)Un(X()[0]);else if(null!=W&&W.preserveTabOrder&&W.portalNode)if(h&&(K.current=!0),ft(e,W.portalNode)){const e=at(k);null==e||e.focus()}else{var t;null==(t=W.afterOutsideRef.current)||t.focus()}}})]})}let vr=0;const gr="--floating-ui-scrollbar-width";let hr=()=>{};const yr=e.forwardRef((function(e,t){const{lockScroll:r=!1,...o}=e;return Xe((()=>{if(r)return vr++,1===vr&&(hr=function(){const e=Ie(),t=/iP(hone|ad|od)|iOS/.test(e)||"MacIntel"===e&&navigator.maxTouchPoints>1,n=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,i=n.left?parseFloat(n.left):window.scrollX,u=n.top?parseFloat(n.top):window.scrollY;if(n.overflow="hidden",n.setProperty(gr,o+"px"),o&&(n[r]=o+"px"),t){var l,c;const e=(null==(l=window.visualViewport)?void 0:l.offsetLeft)||0,t=(null==(c=window.visualViewport)?void 0:c.offsetTop)||0;Object.assign(n,{position:"fixed",top:-(u-Math.floor(t))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(n,{overflow:"",[r]:""}),n.removeProperty(gr),t&&(Object.assign(n,{position:"",top:"",left:"",right:""}),window.scrollTo(i,u))}}()),()=>{vr--,0===vr&&hr()}}),[r]),n("div",{ref:t,...o,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}})}));function wr(e){return d(e.target)&&"BUTTON"===e.target.tagName}function br(e){return Be(e)}function xr(t,n){void 0===n&&(n={});const{open:r,onOpenChange:o,dataRef:i,elements:{domReference:u}}=t,{enabled:l=!0,event:c="click",toggle:s=!0,ignoreMouse:a=!1,keyboardHandlers:f=!0,stickIfOpen:m=!0}=n,p=e.useRef(),v=e.useRef(!1),g=e.useMemo((()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==c&&(Ue(t,!0)&&a||(!r||!s||i.current.openEvent&&m&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===c&&p.current?p.current=void 0:Ue(t,!0)&&a||(!r||!s||i.current.openEvent&&m&&"click"!==i.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!f||wr(e)||(" "!==e.key||br(u)||(e.preventDefault(),v.current=!0),function(e){return d(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&o(!r||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!f||wr(e)||br(u)||" "===e.key&&v.current&&(v.current=!1,o(!r||!s,e.nativeEvent,"click"))}})),[i,u,c,a,f,o,r,m,s]);return e.useMemo((()=>l?{reference:g}:{}),[l,g])}const Rr={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Er={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},kr=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 Ir(t,n){void 0===n&&(n={});const{open:r,onOpenChange:o,elements:i,dataRef:u}=t,{enabled:l=!0,escapeKey:c=!0,outsidePress:s=!0,outsidePressEvent:a="pointerdown",referencePress:m=!1,referencePressEvent:p="pointerdown",ancestorScroll:v=!1,bubbles:g,capture:h}=n,y=Nn(),w=Ge("function"==typeof s?s:()=>!1),b="function"==typeof s?w:s,x=e.useRef(!1),{escapeKey:R,outsidePress:E}=kr(g),{escapeKey:I,outsidePress:L}=kr(h),T=e.useRef(!1),O=Ge((e=>{var t;if(!r||!l||!c||"Escape"!==e.key)return;if(T.current)return;const n=null==(t=u.current.floatingContext)?void 0:t.nodeId,i=y?He(y.nodesRef.current,n):[];if(!R&&(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}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),D=Ge((e=>{var t;const n=()=>{var t;O(e),null==(t=Ne(e))||t.removeEventListener("keydown",n)};null==(t=Ne(e))||t.addEventListener("keydown",n)})),P=Ge((e=>{var t;const n=u.current.insideReactTree;u.current.insideReactTree=!1;const r=x.current;if(x.current=!1,"click"===a&&r)return;if(n)return;if("function"==typeof b&&!b(e))return;const l=Ne(e),c="["+_n("inert")+"]",s=We(i.floating).querySelectorAll(c);let m=f(l)?l:null;for(;m&&!C(m);){const e=M(m);if(C(e)||!f(e))break;m=e}if(s.length&&f(l)&&!l.matches("html,body")&&!Pe(l,i.floating)&&Array.from(s).every((e=>!Pe(m,e))))return;if(d(l)&&W){const t=C(l),n=S(l),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),u=o&&l.clientWidth>0&&l.scrollWidth>l.clientWidth,c=i&&l.clientHeight>0&&l.scrollHeight>l.clientHeight,s="rtl"===n.direction,a=c&&(s?e.offsetX<=l.offsetWidth-l.clientWidth:e.offsetX>l.clientWidth),f=u&&e.offsetY>l.clientHeight;if(a||f)return}const p=null==(t=u.current.floatingContext)?void 0:t.nodeId,v=y&&He(y.nodesRef.current,p).some((t=>{var n;return Fe(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Fe(e,i.floating)||Fe(e,i.domReference)||v)return;const g=y?He(y.nodesRef.current,p):[];if(g.length>0){let e=!0;if(g.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}o(!1,e,"outside-press")})),N=Ge((e=>{var t;const n=()=>{var t;P(e),null==(t=Ne(e))||t.removeEventListener(a,n)};null==(t=Ne(e))||t.addEventListener(a,n)}));e.useEffect((()=>{if(!r||!l)return;u.current.__escapeKeyBubbles=R,u.current.__outsidePressBubbles=E;let e=-1;function t(e){o(!1,e,"ancestor-scroll")}function n(){window.clearTimeout(e),T.current=!0}function s(){e=window.setTimeout((()=>{T.current=!1}),k()?5:0)}const d=We(i.floating);c&&(d.addEventListener("keydown",I?D:O,I),d.addEventListener("compositionstart",n),d.addEventListener("compositionend",s)),b&&d.addEventListener(a,L?N:P,L);let m=[];return v&&(f(i.domReference)&&(m=A(i.domReference)),f(i.floating)&&(m=m.concat(A(i.floating))),!f(i.reference)&&i.reference&&i.reference.contextElement&&(m=m.concat(A(i.reference.contextElement)))),m=m.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),m.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{c&&(d.removeEventListener("keydown",I?D:O,I),d.removeEventListener("compositionstart",n),d.removeEventListener("compositionend",s)),b&&d.removeEventListener(a,L?N:P,L),m.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[u,i,c,b,a,r,o,v,l,R,E,O,I,D,P,L,N]),e.useEffect((()=>{u.current.insideReactTree=!1}),[u,b,a]);const F=e.useMemo((()=>({onKeyDown:O,...m&&{[Rr[p]]:e=>{o(!1,e.nativeEvent,"reference-press")},..."click"!==p&&{onClick(e){o(!1,e.nativeEvent,"reference-press")}}}})),[O,o,m,p]),W=e.useMemo((()=>({onKeyDown:O,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[Er[a]]:()=>{u.current.insideReactTree=!0}})),[O,a,u]);return e.useMemo((()=>l?{reference:F,floating:W}:{}),[l,F,W])}function Cr(t){const{open:n=!1,onOpenChange:r,elements:o}=t,i=Sn(),u=e.useRef({}),[l]=e.useState((()=>An())),c=null!=Pn();if("production"!==process.env.NODE_ENV){const e=o.reference;e&&!f(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var i;null!=(e=Ln)&&e.has(o)||(null==(i=Ln)||i.add(o),console.error(o))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[s,a]=e.useState(o.reference),d=Ge(((e,t,n)=>{u.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:n,nested:c}),null==r||r(e,t,n)})),m=e.useMemo((()=>({setPositionReference:a})),[]),p=e.useMemo((()=>({reference:s||o.reference||null,floating:o.floating||null,domReference:o.reference})),[s,o.reference,o.floating]);return e.useMemo((()=>({dataRef:u,open:n,onOpenChange:d,elements:p,events:l,floatingId:i,refs:m})),[n,d,p,l,i,m])}function Sr(t){void 0===t&&(t={});const{nodeId:n}=t,r=Cr({...t,elements:{reference:null,floating:null,...t.elements}}),o=t.rootContext||r,u=o.elements,[l,c]=e.useState(null),[s,a]=e.useState(null),d=(null==u?void 0:u.domReference)||l,m=e.useRef(null),p=Nn();Xe((()=>{d&&(m.current=d)}),[d]);const v=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:u,elements:{reference:l,floating:c}={},transform:s=!0,whileElementsMounted:a,open:f}=t,[d,m]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,v]=e.useState(o);Ut(p,o)||v(o);const[g,h]=e.useState(null),[y,w]=e.useState(null),b=e.useCallback((e=>{e!==k.current&&(k.current=e,h(e))}),[]),x=e.useCallback((e=>{e!==I.current&&(I.current=e,w(e))}),[]),R=l||g,E=c||y,k=e.useRef(null),I=e.useRef(null),C=e.useRef(d),S=null!=a,L=$t(a),M=$t(u),T=$t(f),A=e.useCallback((()=>{if(!k.current||!I.current)return;const e={placement:n,strategy:r,middleware:p};M.current&&(e.platform=M.current),zt(k.current,I.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};O.current&&!Ut(C.current,t)&&(C.current=t,i.flushSync((()=>{m(t)})))}))}),[p,n,r,M,T]);jt((()=>{!1===f&&C.current.isPositioned&&(C.current.isPositioned=!1,m((e=>({...e,isPositioned:!1}))))}),[f]);const O=e.useRef(!1);jt((()=>(O.current=!0,()=>{O.current=!1})),[]),jt((()=>{if(R&&(k.current=R),E&&(I.current=E),R&&E){if(L.current)return L.current(R,E,A);A()}}),[R,E,A,L,S]);const D=e.useMemo((()=>({reference:k,floating:I,setReference:b,setFloating:x})),[b,x]),P=e.useMemo((()=>({reference:R,floating:E})),[R,E]),N=e.useMemo((()=>{const e={position:r,left:0,top:0};if(!P.floating)return e;const t=Yt(P.floating,d.x),n=Yt(P.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...Xt(P.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,s,P.floating,d.x,d.y]);return e.useMemo((()=>({...d,update:A,refs:D,elements:P,floatingStyles:N})),[d,A,D,P,N])}({...t,elements:{...u,...s&&{reference:s}}}),g=e.useCallback((e=>{const t=f(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;a(t),v.refs.setReference(t)}),[v.refs]),h=e.useCallback((e=>{(f(e)||null===e)&&(m.current=e,c(e)),(f(v.refs.reference.current)||null===v.refs.reference.current||null!==e&&!f(e))&&v.refs.setReference(e)}),[v.refs]),y=e.useMemo((()=>({...v.refs,setReference:h,setPositionReference:g,domReference:m})),[v.refs,h,g]),w=e.useMemo((()=>({...v.elements,domReference:d})),[v.elements,d]),b=e.useMemo((()=>({...v,...o,refs:y,elements:w,nodeId:n})),[v,y,w,n,o]);return Xe((()=>{o.dataRef.current.floatingContext=b;const e=null==p?void 0:p.nodesRef.current.find((e=>e.id===n));e&&(e.context=b)})),e.useMemo((()=>({...v,context:b,refs:y,elements:w})),[v,y,w,b])}function Lr(){return Ie().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&Se()}function Mr(t,n){void 0===n&&(n={});const{open:r,onOpenChange:o,events:i,dataRef:u,elements:l}=t,{enabled:s=!0,visibleOnly:a=!0}=n,m=e.useRef(!1),p=e.useRef(-1),v=e.useRef(!0);e.useEffect((()=>{if(!s)return;const e=c(l.domReference);function t(){!r&&d(l.domReference)&&l.domReference===De(We(l.domReference))&&(m.current=!0)}function n(){v.current=!0}function o(){v.current=!1}return e.addEventListener("blur",t),Lr()&&(e.addEventListener("keydown",n,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),Lr()&&(e.removeEventListener("keydown",n,!0),e.removeEventListener("pointerdown",o,!0))}}),[l.domReference,r,s]),e.useEffect((()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(m.current=!0)}}),[i,s]),e.useEffect((()=>()=>{Kn(p)}),[]);const g=e.useMemo((()=>({onMouseLeave(){m.current=!1},onFocus(e){if(m.current)return;const t=Ne(e.nativeEvent);if(a&&f(t))if(Lr()&&!e.relatedTarget){if(!v.current&&!Be(t))return}else if(!function(e){if(!e||Me())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;o(!0,e.nativeEvent,"focus")},onBlur(e){m.current=!1;const t=e.relatedTarget,n=e.nativeEvent,r=f(t)&&t.hasAttribute(_n("focus-guard"))&&"outside"===t.getAttribute("data-type");p.current=window.setTimeout((()=>{var e;const i=De(l.domReference?l.domReference.ownerDocument:document);(t||i!==l.domReference)&&(Pe(null==(e=u.current.floatingContext)?void 0:e.refs.floating.current,i)||Pe(l.domReference,i)||r||o(!1,n,"focus"))}))}})),[u,l.domReference,o,a]);return e.useMemo((()=>s?{reference:g}:{}),[s,g])}function Tr(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[an]:t,[fn]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[sn]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var u;o&&[an,fn].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(u=r.get(n))||u.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function Ar(t){void 0===t&&(t=[]);const n=t.map((e=>null==e?void 0:e.reference)),r=t.map((e=>null==e?void 0:e.floating)),o=t.map((e=>null==e?void 0:e.item)),i=e.useCallback((e=>Tr(e,t,"reference")),n),u=e.useCallback((e=>Tr(e,t,"floating")),r),l=e.useCallback((e=>Tr(e,t,"item")),o);return e.useMemo((()=>({getReferenceProps:i,getFloatingProps:u,getItemProps:l})),[i,u,l])}function Or(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Dr(e,t){return Or(t,e===pn||e===vn,e===dn||e===mn)}function Pr(e,t,n){return Or(t,e===vn,n?e===dn:e===mn)||"Enter"===e||" "===e||""===e}function Nr(e,t,n){return Or(t,n?e===dn:e===mn,e===vn)}function Fr(e,t,n,r){return"both"===t||"horizontal"===t&&r&&r>1?"Escape"===e:Or(t,n?e===mn:e===dn,e===pn)}function Wr(t,n){const{open:r,onOpenChange:o,elements:i,floatingId:u}=t,{listRef:l,activeIndex:c,onNavigate:s=()=>{},enabled:a=!0,selectedIndex:f=null,allowEscape:m=!1,loop:p=!1,nested:v=!1,rtl:g=!1,virtual:h=!1,focusItemOnOpen:y="auto",focusItemOnHover:w=!0,openOnArrowKeyDown:b=!0,disabledIndices:x,orientation:R="vertical",parentOrientation:E,cols:k=1,scrollItemIntoView:I=!0,virtualItemRef:C,itemSizes:S,dense:L=!1}=n;"production"!==process.env.NODE_ENV&&(m&&(p||Mn("`useListNavigation` looping must be enabled to allow escaping."),h||Mn("`useListNavigation` must be virtual to allow escaping.")),"vertical"===R&&k>1&&Mn("In grid list navigation mode (`cols` > 1), the `orientation` should",'be either "horizontal" or "both".'));const M=Ye(Ke(i.floating)),T=Pn(),A=Nn();Xe((()=>{t.dataRef.current.orientation=R}),[t,R]);const O=Ge((()=>{s(-1===N.current?null:N.current)})),D=_e(i.domReference),P=e.useRef(y),N=e.useRef(null!=f?f:-1),F=e.useRef(null),W=e.useRef(!0),B=e.useRef(O),_=e.useRef(!!i.floating),K=e.useRef(r),H=e.useRef(!1),V=e.useRef(!1),q=Ye(x),z=Ye(r),j=Ye(I),U=Ye(f),[X,Y]=e.useState(),[$,G]=e.useState(),Q=Ge((()=>{function e(e){var t;h?(null!=(t=e.id)&&t.endsWith("-fui-option")&&(e.id=u+"-"+Math.random().toString(16).slice(2,10)),Y(e.id),null==A||A.events.emit("virtualfocus",e),C&&(C.current=e)):Un(e,{sync:H.current,preventScroll:!0})}const t=l.current[N.current],n=V.current;t&&e(t);(H.current?e=>e():requestAnimationFrame)((()=>{const r=l.current[N.current]||t;if(!r)return;t||e(r);const o=j.current;o&&J&&(n||!W.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof o?{block:"nearest",inline:"nearest"}:o))}))}));Xe((()=>{a&&(r&&i.floating?P.current&&null!=f&&(V.current=!0,N.current=f,O()):_.current&&(N.current=-1,B.current()))}),[a,r,i.floating,f,O]),Xe((()=>{if(a&&r&&i.floating)if(null==c){if(H.current=!1,null!=U.current)return;if(_.current&&(N.current=-1,Q()),(!K.current||!_.current)&&P.current&&(null!=F.current||!0===P.current&&null==F.current)){let e=0;const t=()=>{if(null==l.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else N.current=null==F.current||Pr(F.current,R,g)||v?Je(l,q.current):et(l,q.current),F.current=null,O()};t()}}else Ze(l,c)||(N.current=c,Q(),V.current=!1)}),[a,r,i.floating,c,U,v,l,R,g,O,Q,q]),Xe((()=>{var e;if(!a||i.floating||!A||h||!_.current)return;const t=A.nodesRef.current,n=null==(e=t.find((e=>e.id===T)))||null==(e=e.context)?void 0:e.elements.floating,r=De(We(i.floating)),o=t.some((e=>e.context&&Pe(e.context.elements.floating,r)));n&&!o&&W.current&&n.focus({preventScroll:!0})}),[a,i.floating,A,T,h]),Xe((()=>{if(a&&A&&h&&!T)return A.events.on("virtualfocus",e),()=>{A.events.off("virtualfocus",e)};function e(e){G(e.id),C&&(C.current=e)}}),[a,A,h,T,C]),Xe((()=>{B.current=O,K.current=r,_.current=!!i.floating})),Xe((()=>{r||(F.current=null,P.current=y)}),[r,y]);const Z=null!=c,J=e.useMemo((()=>{function e(e){if(!z.current)return;const t=l.current.indexOf(e);-1!==t&&N.current!==t&&(N.current=t,O())}return{onFocus(t){let{currentTarget:n}=t;H.current=!0,e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},onMouseMove(t){let{currentTarget:n}=t;H.current=!0,V.current=!1,w&&e(n)},onPointerLeave(e){let{pointerType:t}=e;var n;W.current&&"touch"!==t&&(H.current=!0,w&&(N.current=-1,O(),h||null==(n=M.current)||n.focus({preventScroll:!0})))}}}),[z,M,w,l,O,h]),ee=e.useCallback((()=>{var e;return null!=E?E:null==A||null==(e=A.nodesRef.current.find((e=>e.id===T)))||null==(e=e.context)||null==(e=e.dataRef)?void 0:e.current.orientation}),[T,A,E]),te=Ge((e=>{if(W.current=!1,H.current=!0,229===e.which)return;if(!z.current&&e.currentTarget===M.current)return;if(v&&Fr(e.key,R,g,k))return Dr(e.key,ee())||qe(e),o(!1,e.nativeEvent,"list-navigation"),void(d(i.domReference)&&(h?null==A||A.events.emit("virtualfocus",i.domReference):i.domReference.focus()));const t=N.current,n=Je(l,x),u=et(l,x);if(D||("Home"===e.key&&(qe(e),N.current=n,O()),"End"===e.key&&(qe(e),N.current=u,O())),k>1){const t=S||Array.from({length:l.current.length},(()=>({width:1,height:1}))),r=rt(t,k,L),o=r.findIndex((e=>null!=e&&!ut(l,e,x))),i=r.reduce(((e,t,n)=>null==t||ut(l,t,x)?e:n),-1),c=r[nt({current:r.map((e=>null!=e?l.current[e]:null))},{event:e,orientation:R,loop:p,rtl:g,cols:k,disabledIndices:it([...("function"!=typeof x?x:null)||l.current.map(((e,t)=>ut(l,t,x)?t:void 0)),void 0],r),minIndex:o,maxIndex:i,prevIndex:ot(N.current>u?n:N.current,t,r,k,e.key===vn?"bl":e.key===(g?dn:mn)?"tr":"tl"),stopEvent:!0})];if(null!=c&&(N.current=c,O()),"both"===R)return}if(Dr(e.key,R)){if(qe(e),r&&!h&&De(e.currentTarget.ownerDocument)===e.currentTarget)return N.current=Pr(e.key,R,g)?n:u,void O();Pr(e.key,R,g)?N.current=p?t>=u?m&&t!==l.current.length?-1:n:tt(l,{startingIndex:t,disabledIndices:x}):Math.min(u,tt(l,{startingIndex:t,disabledIndices:x})):N.current=p?t<=n?m&&-1!==t?l.current.length:u:tt(l,{startingIndex:t,decrement:!0,disabledIndices:x}):Math.max(n,tt(l,{startingIndex:t,decrement:!0,disabledIndices:x})),Ze(l,N.current)&&(N.current=-1),O()}})),ne=e.useMemo((()=>h&&r&&Z&&{"aria-activedescendant":$||X}),[h,r,Z,$,X]),re=e.useMemo((()=>({"aria-orientation":"both"===R?void 0:R,...D?{}:ne,onKeyDown:te,onPointerMove(){W.current=!0}})),[ne,te,R,D]),oe=e.useMemo((()=>{function e(e){"auto"===y&&ze(e.nativeEvent)&&(P.current=!0)}function t(e){P.current=y,"auto"===y&&je(e.nativeEvent)&&(P.current=!0)}return{...ne,onKeyDown(e){W.current=!1;const t=e.key.startsWith("Arrow"),n=["Home","End"].includes(e.key),i=t||n,u=Nr(e.key,R,g),c=Fr(e.key,R,g,k),s=Nr(e.key,ee(),g),a=Dr(e.key,R),d=(v?s:a)||"Enter"===e.key||""===e.key.trim();if(h&&r){const t=null==A?void 0:A.nodesRef.current.find((e=>null==e.parentId)),r=A&&t?function(e,t){let n,r=-1;return function t(o,i){i>r&&(n=o,r=i),He(e,o).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===n))}(A.nodesRef.current,t.id):null;if(i&&r&&C){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(u||c){var m,p;const n=(null==(m=r.context)?void 0:m.elements.domReference)===e.currentTarget,o=c&&!n?null==(p=r.context)?void 0:p.elements.domReference:u?l.current.find((e=>(null==e?void 0:e.id)===X)):null;o&&(qe(e),o.dispatchEvent(t),G(void 0))}var y;if((a||n)&&r.context)if(r.context.open&&r.parentId&&e.currentTarget!==r.context.elements.domReference)return qe(e),void(null==(y=r.context.elements.domReference)||y.dispatchEvent(t))}return te(e)}if(r||b||!t){if(d){const t=Dr(e.key,ee());F.current=v&&t?null:e.key}v?s&&(qe(e),r?(N.current=Je(l,q.current),O()):o(!0,e.nativeEvent,"list-navigation")):a&&(null!=f&&(N.current=f),qe(e),!r&&b?o(!0,e.nativeEvent,"list-navigation"):te(e),r&&O())}},onFocus(){r&&!h&&(N.current=-1,O())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}}),[X,ne,k,te,q,y,l,v,O,o,r,b,R,ee,g,f,A,h,C]);return e.useMemo((()=>a?{reference:oe,floating:re,item:J}:{}),[a,oe,re,J])}const Br=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function _r(t,n){var r,o;void 0===n&&(n={});const{open:i,elements:u,floatingId:l}=t,{enabled:c=!0,role:s="dialog"}=n,a=Sn(),f=(null==(r=u.domReference)?void 0:r.id)||a,d=e.useMemo((()=>{var e;return(null==(e=Ke(u.floating))?void 0:e.id)||l}),[u.floating,l]),m=null!=(o=Br.get(s))?o:s,p=null!=Pn(),v=e.useMemo((()=>"tooltip"===m||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:i?d:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===m?"dialog":m,"aria-controls":i?d:void 0,..."listbox"===m&&{role:"combobox"},..."menu"===m&&{id:f},..."menu"===m&&p&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}}),[m,d,p,i,f,s]),g=e.useMemo((()=>{const e={id:d,...m&&{role:m}};return"tooltip"===m||"label"===s?e:{...e,..."menu"===m&&{"aria-labelledby":f}}}),[m,d,f,s]),h=e.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:d+"-fui-option"}};switch(s){case"select":case"combobox":return{...r,"aria-selected":n}}return{}}),[d,s]);return e.useMemo((()=>c?{reference:v,floating:g,item:h}:{}),[c,v,g,h])}function Kr(t,n){var r;const{open:o,dataRef:i}=t,{listRef:u,activeIndex:l,onMatch:c,onTypingChange:s,enabled:a=!0,findMatch:f=null,resetMs:d=750,ignoreKeys:m=[],selectedIndex:p=null}=n,v=e.useRef(-1),g=e.useRef(""),h=e.useRef(null!=(r=null!=p?p:l)?r:-1),y=e.useRef(null),w=Ge(c),b=Ge(s),x=Ye(f),R=Ye(m);Xe((()=>{o&&(Kn(v),y.current=null,g.current="")}),[o]),Xe((()=>{var e;o&&""===g.current&&(h.current=null!=(e=null!=p?p:l)?e:-1)}),[o,p,l]);const E=Ge((e=>{e?i.current.typing||(i.current.typing=e,b(e)):i.current.typing&&(i.current.typing=e,b(e))})),k=Ge((e=>{function t(e,t,n){const r=x.current?x.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}const n=u.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===t(n,n,g.current)?E(!1):" "===e.key&&qe(e)),null==n||R.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;o&&" "!==e.key&&(qe(e),E(!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())}))&&g.current===e.key&&(g.current="",h.current=y.current),g.current+=e.key,Kn(v),v.current=window.setTimeout((()=>{g.current="",h.current=y.current,E(!1)}),d);const r=h.current,i=t(n,[...n.slice((r||0)+1),...n.slice(0,(r||0)+1)],g.current);-1!==i?(w(i),y.current=i):" "!==e.key&&(g.current="",E(!1))})),I=e.useMemo((()=>({onKeyDown:k})),[k]),C=e.useMemo((()=>({onKeyDown:k,onKeyUp(e){" "===e.key&&E(!1)}})),[k,E]);return e.useMemo((()=>a?{reference:I,floating:C}:{}),[a,I,C])}function Hr(e,t,n){void 0===n&&(n=!0);return e.filter((e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))})).flatMap((t=>[t,...Hr(e,t.id,n)]))}function Vr(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,u=i-1;e<i;u=e++){const[i,l]=t[e]||[0,0],[c,s]=t[u]||[0,0];l>=r!=s>=r&&n<=(c-i)*(r-l)/(s-l)+i&&(o=!o)}return o}function qr(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o={current:-1};let i=!1,u=null,l=null,c="undefined"!=typeof performance?performance.now():0;const s=e=>{let{x:n,y:s,placement:a,elements:d,onClose:m,nodeId:p,tree:v}=e;return function(e){function g(){Kn(o),m()}if(Kn(o),!d.domReference||!d.floating||null==a||null==n||null==s)return;const{clientX:h,clientY:y}=e,w=[h,y],b=function(e){return"composedPath"in e?e.composedPath()[0]:e.target}(e),x="mouseleave"===e.type,R=Xn(d.floating,b),E=Xn(d.domReference,b),k=d.domReference.getBoundingClientRect(),I=d.floating.getBoundingClientRect(),C=a.split("-")[0],S=n>I.right-I.width/2,L=s>I.bottom-I.height/2,M=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(w,k),T=I.width>k.width,A=I.height>k.height,O=(T?k:I).left,D=(T?k:I).right,P=(A?k:I).top,N=(A?k:I).bottom;if(R&&(i=!0,!x))return;if(E&&(i=!1),E&&!x)return void(i=!0);if(x&&f(e.relatedTarget)&&Xn(d.floating,e.relatedTarget))return;if(v&&Hr(v.nodesRef.current,p).length)return;if("top"===C&&s>=k.bottom-1||"bottom"===C&&s<=k.top+1||"left"===C&&n>=k.right-1||"right"===C&&n<=k.left+1)return g();let F=[];switch(C){case"top":F=[[O,k.top+1],[O,I.bottom-1],[D,I.bottom-1],[D,k.top+1]];break;case"bottom":F=[[O,I.top+1],[O,k.bottom-1],[D,k.bottom-1],[D,I.top+1]];break;case"left":F=[[I.right-1,N],[I.right-1,P],[k.left+1,P],[k.left+1,N]];break;case"right":F=[[k.right-1,N],[k.right-1,P],[I.left+1,P],[I.left+1,N]]}if(!Vr([h,y],F)){if(i&&!M)return g();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-c;if(null===u||null===l||0===r)return u=e,l=t,c=n,null;const o=e-u,i=t-l,s=Math.sqrt(o*o+i*i);return u=e,l=t,c=n,s/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}Vr([h,y],function(e){let[n,r]=e;switch(C){case"top":return[[T?n+t/2:S?n+4*t:n-4*t,r+t+1],[T?n-t/2:S?n+4*t:n-4*t,r+t+1],...[[I.left,S||T?I.bottom-t:I.top],[I.right,S?T?I.bottom-t:I.top:I.bottom-t]]];case"bottom":return[[T?n+t/2:S?n+4*t:n-4*t,r-t],[T?n-t/2:S?n+4*t:n-4*t,r-t],...[[I.left,S||T?I.top+t:I.bottom],[I.right,S?T?I.top+t:I.bottom:I.top+t]]];case"left":{const e=[n+t+1,A?r+t/2:L?r+4*t:r-4*t],o=[n+t+1,A?r-t/2:L?r+4*t:r-4*t];return[...[[L||A?I.right-t:I.left,I.top],[L?A?I.right-t:I.left:I.right-t,I.bottom]],e,o]}case"right":return[[n-t,A?r+t/2:L?r+4*t:r-4*t],[n-t,A?r-t/2:L?r+4*t:r-4*t],...[[L||A?I.left+t:I.right,I.top],[L?A?I.left+t:I.right:I.left+t,I.bottom]]]}}([n,s]))?!i&&r&&(o.current=window.setTimeout(g,40)):g()}}};return s.__options={blockPointerEvents:n},s}export{Wr as A,Ft as B,Rn as C,pr as D,yr as E,Bn as F,ur as G,Sr as a,Sn as b,xn as c,Wt as d,Zt as e,Jt as f,zn as g,tn as h,Ir as i,Ar as j,Mr as k,_r as l,nn as m,Wn as n,Qt as o,Nn as p,Pn as q,qr as r,en as s,Fn as t,rn as u,Tn as v,cn as w,Kr as x,xr as y,ln as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use client';const a=(a,t)=>t?Object.fromEntries(Object.entries(t).filter((([a,t])=>void 0!==t&&""!==t&&!1!==t)).map((([t,e])=>[`data-${a}-${t}`,!0===e?"":e]))):{},t=(...a)=>Object.assign({},...a.filter(Boolean)),e=a=>a?{"data-rad-ui-accent-color":a}:{};export{t as a,e as b,a as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use client';const r=(r="",e="")=>{if(!e)return"";const t=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return r?`${r}-${t}`:`rad-ui-${t}`};export{r as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use client';import e from"react";const t=/^on[A-Z]/,r=(...e)=>{if(!e.every((e=>null==e)))return t=>{for(const r of e)r&&("function"==typeof r?r(t):r.current=t)}},n=(e,r)=>{const n={...e,...r};for(const o of Object.keys(r)){const i=e[o],s=r[o];t.test(o)&&"function"==typeof i&&"function"==typeof s?n[o]=(...e)=>{s(...e);const t=e[0];t&&!0===t.defaultPrevented||i(...e)}:"className"===o&&i&&s?n[o]=`${i} ${s}`:"style"===o&&i&&s&&(n[o]={...i,...s})}return n},o=["div","span","button","input","a","img","p","h2","label"].reduce(((t,o)=>(t[o]=(t=>{const o=e.forwardRef(((o,i)=>{const{asChild:s=!1,children:l,...a}=o;if(s){if(e.isValidElement(l)&&l.type===e.Fragment)return console.warn(`Primitive.${t}: asChild prop does not support React.Fragment. Please provide a single element.`),e.createElement(t,{...a,ref:i},l);const o=e.Children.toArray(l);if(1!==o.length||!e.isValidElement(o[0]))return console.warn(`Primitive.${t}: asChild prop requires exactly one valid child element.`),e.createElement(t,{...a,ref:i},l);const s=o[0],c=s.ref,f=r(i,c),m=n(a,s.props);return e.cloneElement(s,{...m,...f?{ref:f}:{}})}return e.createElement(t,{...a,ref:i},l)}));return o.displayName=`Primitive.${t}`,o})(o),t)),{});export{o as P,r as c,n as m};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use client';import{a as s,b as a,C as e,c as o,u as t,d as i,s as u,o as r,h as l,e as n,f as g,g as d,i as F,j as f,k as c,l as m,m as p,F as I,n as v,p as h,q as w,r as y,t as C,v as N,w as L,x as P,y as T,z as j,A as k,B as x,D as z,E as A,G as D}from"./floating-ui.react-gB901AP2.js";const M={Portal:D,Overlay:A,FocusManager:z,useFloating:s,autoUpdate:x,useListNavigation:k,FloatingList:j,useClick:T,useTypeahead:P,useListItem:L,Arrow:N,useFloatingNodeId:C,safePolygon:y,useFloatingParentNodeId:w,useFloatingTree:h,FloatingNode:v,FloatingTree:I,arrow:p,useRole:m,useFocus:c,useInteractions:f,useDismiss:F,useHover:d,flip:g,shift:n,hide:l,offset:r,size:u,detectOverflow:i,useMergeRefs:t,Composite:o,CompositeItem:e,useId:a};export{M as F};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use client';import{jsx as e}from"react/jsx-runtime";import{forwardRef as a,useState as r}from"react";import{B as i}from"./index-BOy86lYu.js";import{c as s}from"./index-CXzybYmm.js";const d=a((({children:a,label:d="",defaultPressed:o=!1,pressed:t,onPressedChange:n=()=>{},disabled:l,asChild:f=!1,...m},c)=>{const[p,u]=r(o),b=void 0!==t,h=b?t:p,y=()=>{if(l)return;const e=!h;b||u(e),n(e)},C=d?{"aria-label":d}:{};return C["aria-pressed"]=h?"true":"false",C["aria-disabled"]=l?"true":"false",e(i,{ref:c,onClick:s(m.onClick,y),onKeyDown:s(m.onKeyDown,(e=>{" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),y())})),"data-state":h?"on":"off","data-disabled":l?"":void 0,disabled:l,asChild:f,...C,...m,children:a})}));d.displayName="TogglePrimitive";export{d as T};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use client';import{jsx as e,Fragment as n}from"react/jsx-runtime";import*as t from"react";import{createContext as r,forwardRef as o,useState as a,useEffect as i,useContext as c,useRef as l}from"react";import{F as u}from"./index-BQ2Hbb_x.js";import{B as s}from"./index-BOy86lYu.js";import{P as d}from"./index-98jQ1vTr.js";import{T as f}from"./ThemeContext-Sm-iNANd.js";const h=r({isOpen:!1,handleOpenChange:()=>{},handleOverlayClick:()=>{},getItemProps:()=>{},getReferenceProps:()=>{},getFloatingProps:()=>{},refs:{setReference:()=>{},setFloating:()=>{}},floatingStyles:{position:"absolute"}}),p=o((({children:n,open:t=!1,onOpenChange:r=()=>{},onClickOutside:o=()=>{},className:c,...l},s)=>{const[d,f]=a(t);i((()=>{f(t)}),[t]);const p=e=>{f(e),r(e)},{context:v,refs:m,floatingStyles:g}=u.useFloating({open:d,onOpenChange:p}),y=u.useDismiss(v),b=u.useRole(v,{role:"dialog"}),{getReferenceProps:w,getFloatingProps:C,getItemProps:E}=u.useInteractions([y,b]),P={isOpen:d,handleOpenChange:p,floaterContext:v,handleOverlayClick:()=>{o()},getReferenceProps:w,getFloatingProps:C,getItemProps:E,refs:m,floatingStyles:g};return e(h.Provider,{value:P,children:e("div",{ref:s,"data-state":d?"open":"closed",...l,className:c,children:n})})}));p.displayName="DialogPrimitive";const v=o((({children:n,asChild:t,...r},o)=>{const{handleOpenChange:a,getItemProps:i}=c(h);return e(s,{ref:o,asChild:t,onClick:()=>a(!1),...i(),...r,children:n})}));v.displayName="DialogPrimitiveAction";const m=o((({children:n,asChild:t,...r},o)=>{const{handleOpenChange:a,getItemProps:i}=c(h);return e(s,{ref:o,asChild:t,onClick:()=>a(!1),...i(),...r,children:n})}));m.displayName="DialogPrimitiveCancel";const g=o((({children:t,asChild:r=!1,forceMount:o=!1,role:a="dialog","aria-modal":i=!0,"aria-labelledby":l,"aria-describedby":s,style:f,...p},v)=>{const{isOpen:m,getFloatingProps:g,refs:y,handleOpenChange:b,floaterContext:w}=c(h),C=u.useMergeRefs([y.setFloating,v]),E=m?"open":"closed";return e(n,{children:(m||o)&&e(u.FocusManager,{context:w,modal:Boolean(i),initialFocus:0,returnFocus:!0,children:e(d.div,{ref:C,asChild:r,...g(),style:{outline:"none",...f},role:a,"aria-hidden":m?void 0:"true","aria-labelledby":m?l:void 0,"aria-describedby":m?s:void 0,"data-state":E,"aria-modal":i,...p,children:t})})})}));g.displayName="DialogPrimitiveContent";const y=o((({children:n,asChild:t,className:r="",disabled:o=!1,...a},i)=>{const{handleOpenChange:l,getReferenceProps:d,refs:f}=c(h),p=u.useMergeRefs([f.setReference,i]);return e(s,{ref:p,asChild:t,className:r,disabled:o,onClick:o?void 0:()=>l(!0),...d(),...a,children:n})}));y.displayName="DialogPrimitiveTrigger";var b=function(){return b=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},b.apply(this,arguments)};function w(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}"function"==typeof SuppressedError&&SuppressedError;var C="right-scroll-bar-position",E="width-before-scroll-bar";function P(e,n){return"function"==typeof e?e(n):e&&(e.current=n),e}var R="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,S=new WeakMap;function O(e,n){var t,r,o,i=(t=null,r=function(n){return e.forEach((function(e){return P(e,n)}))},(o=a((function(){return{value:t,callback:r,facade:{get current(){return o.value},set current(e){var n=o.value;n!==e&&(o.value=e,o.callback(e,n))}}}}))[0]).callback=r,o.facade);return R((function(){var n=S.get(i);if(n){var t=new Set(n),r=new Set(e),o=i.current;t.forEach((function(e){r.has(e)||P(e,null)})),r.forEach((function(e){t.has(e)||P(e,o)}))}S.set(i,e)}),[e]),i}function k(e){return e}var N=function(e){var n=e.sideCar,r=w(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return t.createElement(o,b({},r))};N.isSideCarExport=!0;var M=function(e){void 0===e&&(e={});var n=function(e,n){void 0===n&&(n=k);var t=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(e){var o=n(e,r);return t.push(o),function(){t=t.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;t.length;){var n=t;t=[],n.forEach(e)}t={push:function(n){return e(n)},filter:function(){return t}}},assignMedium:function(e){r=!0;var n=[];if(t.length){var o=t;t=[],o.forEach(e),n=t}var a=function(){var t=n;n=[],t.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),t={push:function(e){n.push(e),i()},filter:function(e){return n=n.filter(e),t}}}}}(null);return n.options=b({async:!0,ssr:!1},e),n}(),x=function(){},T=t.forwardRef((function(e,n){var r=t.useRef(null),o=t.useState({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:x}),a=o[0],i=o[1],c=e.forwardProps,l=e.children,u=e.className,s=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noRelative,v=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,C=void 0===y?"div":y,E=e.gapMode,P=w(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=h,S=O([r,n]),k=b(b({},P),a);return t.createElement(t.Fragment,null,d&&t.createElement(R,{sideCar:M,removeScrollBar:s,shards:f,noRelative:p,noIsolation:v,inert:m,setCallbacks:i,allowPinchZoom:!!g,lockRef:r,gapMode:E}),c?t.cloneElement(t.Children.only(l),b(b({},k),{ref:S})):t.createElement(C,b({},k,{className:u,ref:S}),l))}));T.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},T.classNames={fullWidth:E,zeroRight:C};function F(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return n&&e.setAttribute("nonce",n),e}var L=function(){var e=0,n=null;return{add:function(t){var r,o;0==e&&(n=F())&&(o=t,(r=n).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(n)),e++},remove:function(){! --e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},D=function(){var e,n=(e=L(),function(n,r){t.useEffect((function(){return e.add(n),function(){e.remove()}}),[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},I={left:0,top:0,right:0,gap:0},j=function(e){return parseInt(e||"",10)||0},A=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return I;var n=function(e){var n=window.getComputedStyle(document.body),t=n["padding"===e?"paddingLeft":"marginLeft"],r=n["padding"===e?"paddingTop":"marginTop"],o=n["padding"===e?"paddingRight":"marginRight"];return[j(t),j(r),j(o)]}(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}},_=D(),B="data-scroll-locked",W=function(e,n,t,r){var o=e.left,a=e.top,i=e.right,c=e.gap;return void 0===t&&(t="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body[").concat(B,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([n&&"position: relative ".concat(r,";"),"margin"===t&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),"padding"===t&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(C," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(E," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(C," .").concat(C," {\n right: 0 ").concat(r,";\n }\n \n .").concat(E," .").concat(E," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(B,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},X=function(){var e=parseInt(document.body.getAttribute(B)||"0",10);return isFinite(e)?e:0},Y=function(e){var n=e.noRelative,r=e.noImportant,o=e.gapMode,a=void 0===o?"margin":o;t.useEffect((function(){return document.body.setAttribute(B,(X()+1).toString()),function(){var e=X()-1;e<=0?document.body.removeAttribute(B):document.body.setAttribute(B,e.toString())}}),[]);var i=t.useMemo((function(){return A(a)}),[a]);return t.createElement(_,{styles:W(i,!n,a,r?"":"!important")})},Z=!1;if("undefined"!=typeof window)try{var q=Object.defineProperty({},"passive",{get:function(){return Z=!0,!0}});window.addEventListener("test",q,q),window.removeEventListener("test",q,q)}catch(e){Z=!1}var z=!!Z&&{passive:!1},H=function(e,n){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return"hidden"!==t[n]&&!(t.overflowY===t.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===t[n])},G=function(e,n){var t=n.ownerDocument,r=n;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),K(e,r)){var o=U(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==t.body);return!1},K=function(e,n){return"v"===e?function(e){return H(e,"overflowY")}(n):function(e){return H(e,"overflowX")}(n)},U=function(e,n){return"v"===e?[(t=n).scrollTop,t.scrollHeight,t.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(n);var t},J=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Q=function(e){return[e.deltaX,e.deltaY]},V=function(e){return e&&"current"in e?e.current:e},$=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},ee=0,ne=[];function te(e){for(var n=null;null!==e;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}var re,oe=(re=function(e){var n=t.useRef([]),r=t.useRef([0,0]),o=t.useRef(),a=t.useState(ee++)[0],i=t.useState(D)[0],c=t.useRef(e);t.useEffect((function(){c.current=e}),[e]),t.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var n=function(e,n,t){if(t||2===arguments.length)for(var r,o=0,a=n.length;o<a;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}([e.lockRef.current],(e.shards||[]).map(V),!0).filter(Boolean);return n.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),n.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=t.useCallback((function(e,n){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var t,a=J(e),i=r.current,l="deltaX"in e?e.deltaX:i[0]-a[0],u="deltaY"in e?e.deltaY:i[1]-a[1],s=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=window.getSelection(),h=f&&f.anchorNode;if(h&&(h===s||h.contains(s)))return!1;var p=G(d,s);if(!p)return!0;if(p?t=d:(t="v"===d?"h":"v",p=G(d,s)),!p)return!1;if(!o.current&&"changedTouches"in e&&(l||u)&&(o.current=t),!t)return!0;var v=o.current||t;return function(e,n,t,r){var o=function(e,n){return"h"===e&&"rtl"===n?-1:1}(e,window.getComputedStyle(n).direction),a=o*r,i=t.target,c=n.contains(i),l=!1,u=a>0,s=0,d=0;do{if(!i)break;var f=U(e,i),h=f[0],p=f[1]-f[2]-o*h;(h||p)&&K(e,i)&&(s+=p,d+=h);var v=i.parentNode;i=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&i!==document.body||c&&(n.contains(i)||n===i));return(u&&Math.abs(s)<1||!u&&Math.abs(d)<1)&&(l=!0),l}(v,n,e,"h"===v?l:u)}),[]),u=t.useCallback((function(e){var t=e;if(ne.length&&ne[ne.length-1]===i){var r="deltaY"in t?Q(t):J(t),o=n.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var a=(c.current.shards||[]).map(V).filter(Boolean).filter((function(e){return e.contains(t.target)}));(a.length>0?l(t,a[0]):!c.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),s=t.useCallback((function(e,t,r,o){var a={name:e,delta:t,target:r,should:o,shadowParent:te(r)};n.current.push(a),setTimeout((function(){n.current=n.current.filter((function(e){return e!==a}))}),1)}),[]),d=t.useCallback((function(e){r.current=J(e),o.current=void 0}),[]),f=t.useCallback((function(n){s(n.type,Q(n),n.target,l(n,e.lockRef.current))}),[]),h=t.useCallback((function(n){s(n.type,J(n),n.target,l(n,e.lockRef.current))}),[]);t.useEffect((function(){return ne.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,z),document.addEventListener("touchmove",u,z),document.addEventListener("touchstart",d,z),function(){ne=ne.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,z),document.removeEventListener("touchmove",u,z),document.removeEventListener("touchstart",d,z)}}),[]);var p=e.removeScrollBar,v=e.inert;return t.createElement(t.Fragment,null,v?t.createElement(i,{styles:$(a)}):null,p?t.createElement(Y,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},M.useMedium(re),N),ae=t.forwardRef((function(e,n){return t.createElement(T,b({},e,{ref:n,sideCar:oe}))}));ae.classNames=T.classNames;const ie=o((({asChild:t=!1,forceMount:r=!1,children:o,...a},i)=>{const{isOpen:l,handleOverlayClick:s}=c(h),d=l?"open":"closed";return e(n,{children:(l||r)&&e(ae,{enabled:l,children:e(u.Overlay,{ref:i,onClick:s,"data-state":d,...a,children:o})})})}));ie.displayName="DialogPrimitiveOverlay";const ce=o((({children:n,asChild:t=!1,...r},o)=>e(d.div,{ref:o,asChild:t,...r,children:n})));ce.displayName="DialogPrimitiveFooter";const le={Root:p,Action:v,Cancel:m,Footer:ce,Content:g,Trigger:y,Overlay:ie,Portal:({children:n,container:t,forceMount:r=!1,keepMounted:o=!1,...s})=>{const d=c(f),h=l(null),[p,v]=a(!1);return i((()=>{if(t)h.current=t;else{const e=d?.portalRootRef.current||document.querySelector("[data-rad-ui-portal-root]")||d?.containerRef.current||document.querySelector("#rad-ui-theme-container"),n=document.body,t=e||n;h.current=t}v(!0)}),[t,d]),p?e(u.Portal,{root:h.current,...s,children:n}):null}};export{le as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use client';import{jsx as e}from"react/jsx-runtime";import n,{createContext as t,useContext as i,useId as r,useState as o,useRef as a,useEffect as s,useLayoutEffect as l}from"react";import{P as c,c as d}from"./index-98jQ1vTr.js";import{u}from"./index-wRElCyvx.js";import{B as m}from"./index-BOy86lYu.js";const p=t(void 0),f=()=>{const e=i(p);if(!e)throw new Error("Collapsible compound components must be used within a CollapsiblePrimitive.Root component");return e},h=n.forwardRef((({children:n,defaultOpen:t=!1,open:i,onOpenChange:o,disabled:a=!1,transitionDuration:s=300,transitionTimingFunction:l="linear",...d},m)=>{const f=r(),[h,v]=u(i,t,o);return e(p.Provider,{value:{open:h,onOpenChange:e=>{a||v(e)},disabled:a,contentId:f,transitionDuration:s,transitionTimingFunction:l},children:e(c.div,{...d,ref:m,"data-state":h?"open":"closed","data-disabled":a?"":void 0,children:n})})}));h.displayName="CollapsiblePrimitiveRoot";const v=n.forwardRef((({children:t,className:i,asChild:r=!1,forceMount:u=!1,style:m,...p},h)=>{const{open:v,contentId:C,transitionDuration:g,transitionTimingFunction:b}=f(),[P,w]=o(v?void 0:0),F=a(P),[T,y]=o(v||u),x=a(),R=a(),A=a(null);s((()=>{(v||u)&&y(!0)}),[v,u]),s((()=>{F.current=P}),[P]),l((()=>{if(x.current&&clearTimeout(x.current),R.current&&cancelAnimationFrame(R.current),A.current){if(0===g)return w(v?void 0:0),void(v||u||y(!1));if(v)w(0),R.current=requestAnimationFrame((()=>{A.current,R.current=requestAnimationFrame((()=>{if(A.current){const e=A.current.scrollHeight;w(e)}}))})),x.current=setTimeout((()=>{w(void 0)}),g);else{const e=A.current.scrollHeight;w(e),R.current=requestAnimationFrame((()=>{A.current,R.current=requestAnimationFrame((()=>{w(0)}))})),x.current=setTimeout((()=>{u||y(!1)}),g)}return()=>{x.current&&clearTimeout(x.current),R.current&&cancelAnimationFrame(R.current)}}}),[v,g,u]);if(!v&&!u&&!T)return null;const D={...m,overflow:"hidden",height:void 0!==P?`${P}px`:void 0,...g>0?{transition:`height ${g}ms ${b}`}:{}},N=r&&n.isValidElement(t);return e(c.div,{id:C,ref:d(h,A),"aria-hidden":!v,"data-state":v?"open":"closed",className:i,style:D,asChild:N,...p,children:t})}));v.displayName="CollapsiblePrimitiveContent";const C=n.forwardRef((({children:n,asChild:t=!1,...i},r)=>{const{open:o,onOpenChange:a,disabled:s,contentId:l}=f();return e(m,{...i,"aria-controls":l,"aria-expanded":o,"data-state":o?"open":"closed","data-disabled":s?"true":void 0,ref:r,onClick:e=>{i.onClick?.(e),s||a(!o)},onKeyDown:e=>{i.onKeyDown?.(e),e.defaultPrevented||"Escape"===e.key&&o&&!s&&a(!1)},asChild:t,children:n})}));C.displayName="CollapsiblePrimitiveTrigger";const g=()=>(console.warn("Direct usage of CollapsiblePrimitive is not supported. Please use CollapsiblePrimitive.Root, CollapsiblePrimitive.Content, etc. instead."),null);g.Root=h,g.Content=v,g.Trigger=C;export{g as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use client';import{jsx as e}from"react/jsx-runtime";import t,{createContext as r,useContext as o,useRef as n,useState as a,useId as l,useEffect as i,forwardRef as s}from"react";import{P as d}from"./index-98jQ1vTr.js";import{B as c}from"./index-BOy86lYu.js";import{m as u}from"./mergeRefs-B8eZ_q-T.js";const f=r({orientation:"horizontal",loop:!0,dir:"ltr",disableTabIndexing:!1,mode:"default"}),m=t.forwardRef((({children:t,orientation:r="horizontal",loop:o=!0,"aria-label":n,"aria-labelledby":a,disableTabIndexing:l=!1,mode:i="default",dir:s="ltr",asChild:c=!1,...u},m)=>{const b={orientation:r,loop:o,disableTabIndexing:l,dir:s,mode:i};return e(f.Provider,{value:b,children:e(d.div,{"aria-orientation":"both"===r?void 0:r,"aria-label":n,"aria-labelledby":a,ref:m,asChild:c,...u,children:t})})}));m.displayName="RovingFocusRoot";const b=r({focusedItemId:null,setFocusedItemId:()=>{},focusItems:[],setFocusItems:()=>{},addFocusItem:()=>{},groupRef:null,itemRefs:new Map,registerItemRef:()=>{},unregisterItemRef:()=>{}}),h=s((({children:r,"aria-label":a,"aria-labelledby":s,role:d,type:m,handleRightKeyDown:h,handleLeftKeyDown:I,domId:p,...g},y)=>{const R=l(),v=p??R,w=n(null),{focusedItemId:D,setFocusedItemId:C,addFocusItem:F,focusItems:x,itemRefs:N,registerItemRef:O,unregisterItemRef:k}=o(b),{orientation:T,loop:A,disableTabIndexing:P,dir:E}=o(f),L=t.Children.toArray(r)[0],j=!0===L?.props?.disabled,z="a"===("string"==typeof L?.type?L.type.toLowerCase():"")||null!=L?.props?.href,M=d??(z?void 0:"button"),_=m??(z?void 0:"button"),G=D===v,K=P||!j&&G?0:-1;i((()=>(O(v,w),F(v),()=>{k(v)})),[v]);const U=e=>{C(e);const t=N.get(e);t?.current&&t.current.focus()},S=(e,t)=>{let r=e;for(let e=0;e<x.length;e++){if(r+=t,A)r<0&&(r=x.length-1),r>=x.length&&(r=0);else if(r<0||r>=x.length)return-1;const e=x[r],o=N.get(e);if(!o?.current)continue;if(!("true"===o.current.getAttribute("data-child-disabled")))return r}return-1},B=()=>{const e=x.indexOf(v),t=S(e,-1);-1!==t&&U(x[t])},H=()=>{const e=x.indexOf(v),t=S(e,1);-1!==t&&U(x[t])};return e(c,{asChild:!0,onFocus:e=>{j&&e.target.blur(),j||C(v)},tabIndex:K,ref:u(w,y),id:v,onKeyDown:e=>{if(!j)switch(e.key){case"ArrowUp":e.preventDefault(),"vertical"!==T&&"both"!==T||B();break;case"ArrowLeft":e.preventDefault(),I&&I(),"horizontal"!==T&&"both"!==T||("rtl"===E?H():B());break;case"ArrowDown":e.preventDefault(),"vertical"!==T&&"both"!==T||H();break;case"ArrowRight":e.preventDefault(),h&&h(),"horizontal"!==T&&"both"!==T||("rtl"===E?B():H());break;case"Home":e.preventDefault(),(()=>{if(x.length>0){const e=S(-1,1);-1!==e&&U(x[e])}})();break;case"End":e.preventDefault(),(()=>{if(x.length>0){const e=S(x.length,-1);-1!==e&&U(x[e])}})()}},"data-child-disabled":j,role:M,type:_,"aria-selected":G,"aria-disabled":j,"aria-label":a,"aria-labelledby":s,...g,children:r})}));h.displayName="RovingFocusItem";const I={Root:m,Group:({children:r,"aria-label":s,"aria-labelledby":c,...u})=>{const{mode:m}=o(f),h=n(null),[I,p]=a([]),[g,y]=a(null),R=l(),v=n(new Map),w="tree"===m,D=t.useCallback(((e,t)=>{v.current.set(e,t)}),[]),C=t.useCallback((e=>{v.current.delete(e),w&&p((t=>t.filter((t=>t!==e))))}),[w]),F=t.useCallback((e=>{w&&"undefined"!=typeof window?p((t=>{if(t.includes(e))return t;const r=Array.from(v.current.entries()).filter((([,e])=>e.current));r.sort((([,e],[,t])=>{const r=e.current,o=t.current;if(!r||!o)return 0;const n=r.compareDocumentPosition(o);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0}));const o=r.map((([e])=>e));return o.length===t.length&&o.every(((e,r)=>e===t[r]))?t:o})):p((t=>t.includes(e)?t:[...t,e]))}),[w]);i((()=>{!g&&I.length>0&&y(I[0])}),[I,g]);const x={focusedItemId:g,setFocusedItemId:y,focusItems:I,setFocusItems:p,addFocusItem:F,groupRef:h,itemRefs:v.current,registerItemRef:D,unregisterItemRef:C};return e(b.Provider,{value:x,children:e(d.div,{id:R,ref:h,role:"group","aria-label":s,"aria-labelledby":c,asChild:!0,...u,children:r})})},Item:h};export{I as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={gray:{50:"var(--rad-ui-color-gray-50)",100:"var(--rad-ui-color-gray-100)",200:"var(--rad-ui-color-gray-200)",300:"var(--rad-ui-color-gray-300)",400:"var(--rad-ui-color-gray-400)",500:"var(--rad-ui-color-gray-500)",600:"var(--rad-ui-color-gray-600)",700:"var(--rad-ui-color-gray-700)",800:"var(--rad-ui-color-gray-800)",900:"var(--rad-ui-color-gray-900)",950:"var(--rad-ui-color-gray-950)",1e3:"var(--rad-ui-color-gray-1000)"},mauve:{50:"var(--rad-ui-color-mauve-50)",100:"var(--rad-ui-color-mauve-100)",200:"var(--rad-ui-color-mauve-200)",300:"var(--rad-ui-color-mauve-300)",400:"var(--rad-ui-color-mauve-400)",500:"var(--rad-ui-color-mauve-500)",600:"var(--rad-ui-color-mauve-600)",700:"var(--rad-ui-color-mauve-700)",800:"var(--rad-ui-color-mauve-800)",900:"var(--rad-ui-color-mauve-900)",950:"var(--rad-ui-color-mauve-950)",1e3:"var(--rad-ui-color-mauve-1000)"},slate:{50:"var(--rad-ui-color-slate-50)",100:"var(--rad-ui-color-slate-100)",200:"var(--rad-ui-color-slate-200)",300:"var(--rad-ui-color-slate-300)",400:"var(--rad-ui-color-slate-400)",500:"var(--rad-ui-color-slate-500)",600:"var(--rad-ui-color-slate-600)",700:"var(--rad-ui-color-slate-700)",800:"var(--rad-ui-color-slate-800)",900:"var(--rad-ui-color-slate-900)",950:"var(--rad-ui-color-slate-950)",1e3:"var(--rad-ui-color-slate-1000)"},sage:{50:"var(--rad-ui-color-sage-50)",100:"var(--rad-ui-color-sage-100)",200:"var(--rad-ui-color-sage-200)",300:"var(--rad-ui-color-sage-300)",400:"var(--rad-ui-color-sage-400)",500:"var(--rad-ui-color-sage-500)",600:"var(--rad-ui-color-sage-600)",700:"var(--rad-ui-color-sage-700)",800:"var(--rad-ui-color-sage-800)",900:"var(--rad-ui-color-sage-900)",950:"var(--rad-ui-color-sage-950)",1e3:"var(--rad-ui-color-sage-1000)"},olive:{50:"var(--rad-ui-color-olive-50)",100:"var(--rad-ui-color-olive-100)",200:"var(--rad-ui-color-olive-200)",300:"var(--rad-ui-color-olive-300)",400:"var(--rad-ui-color-olive-400)",500:"var(--rad-ui-color-olive-500)",600:"var(--rad-ui-color-olive-600)",700:"var(--rad-ui-color-olive-700)",800:"var(--rad-ui-color-olive-800)",900:"var(--rad-ui-color-olive-900)",950:"var(--rad-ui-color-olive-950)",1e3:"var(--rad-ui-color-olive-1000)"},sand:{50:"var(--rad-ui-color-sand-50)",100:"var(--rad-ui-color-sand-100)",200:"var(--rad-ui-color-sand-200)",300:"var(--rad-ui-color-sand-300)",400:"var(--rad-ui-color-sand-400)",500:"var(--rad-ui-color-sand-500)",600:"var(--rad-ui-color-sand-600)",700:"var(--rad-ui-color-sand-700)",800:"var(--rad-ui-color-sand-800)",900:"var(--rad-ui-color-sand-900)",950:"var(--rad-ui-color-sand-950)",1e3:"var(--rad-ui-color-sand-1000)"},tomato:{50:"var(--rad-ui-color-tomato-50)",100:"var(--rad-ui-color-tomato-100)",200:"var(--rad-ui-color-tomato-200)",300:"var(--rad-ui-color-tomato-300)",400:"var(--rad-ui-color-tomato-400)",500:"var(--rad-ui-color-tomato-500)",600:"var(--rad-ui-color-tomato-600)",700:"var(--rad-ui-color-tomato-700)",800:"var(--rad-ui-color-tomato-800)",900:"var(--rad-ui-color-tomato-900)",950:"var(--rad-ui-color-tomato-950)",1e3:"var(--rad-ui-color-tomato-1000)"},red:{50:"var(--rad-ui-color-red-50)",100:"var(--rad-ui-color-red-100)",200:"var(--rad-ui-color-red-200)",300:"var(--rad-ui-color-red-300)",400:"var(--rad-ui-color-red-400)",500:"var(--rad-ui-color-red-500)",600:"var(--rad-ui-color-red-600)",700:"var(--rad-ui-color-red-700)",800:"var(--rad-ui-color-red-800)",900:"var(--rad-ui-color-red-900)",950:"var(--rad-ui-color-red-950)",1e3:"var(--rad-ui-color-red-1000)"},ruby:{50:"var(--rad-ui-color-ruby-50)",100:"var(--rad-ui-color-ruby-100)",200:"var(--rad-ui-color-ruby-200)",300:"var(--rad-ui-color-ruby-300)",400:"var(--rad-ui-color-ruby-400)",500:"var(--rad-ui-color-ruby-500)",600:"var(--rad-ui-color-ruby-600)",700:"var(--rad-ui-color-ruby-700)",800:"var(--rad-ui-color-ruby-800)",900:"var(--rad-ui-color-ruby-900)",950:"var(--rad-ui-color-ruby-950)",1e3:"var(--rad-ui-color-ruby-1000)"},crimson:{50:"var(--rad-ui-color-crimson-50)",100:"var(--rad-ui-color-crimson-100)",200:"var(--rad-ui-color-crimson-200)",300:"var(--rad-ui-color-crimson-300)",400:"var(--rad-ui-color-crimson-400)",500:"var(--rad-ui-color-crimson-500)",600:"var(--rad-ui-color-crimson-600)",700:"var(--rad-ui-color-crimson-700)",800:"var(--rad-ui-color-crimson-800)",900:"var(--rad-ui-color-crimson-900)",950:"var(--rad-ui-color-crimson-950)",1e3:"var(--rad-ui-color-crimson-1000)"},pink:{50:"var(--rad-ui-color-pink-50)",100:"var(--rad-ui-color-pink-100)",200:"var(--rad-ui-color-pink-200)",300:"var(--rad-ui-color-pink-300)",400:"var(--rad-ui-color-pink-400)",500:"var(--rad-ui-color-pink-500)",600:"var(--rad-ui-color-pink-600)",700:"var(--rad-ui-color-pink-700)",800:"var(--rad-ui-color-pink-800)",900:"var(--rad-ui-color-pink-900)",950:"var(--rad-ui-color-pink-950)",1e3:"var(--rad-ui-color-pink-1000)"},plum:{50:"var(--rad-ui-color-plum-50)",100:"var(--rad-ui-color-plum-100)",200:"var(--rad-ui-color-plum-200)",300:"var(--rad-ui-color-plum-300)",400:"var(--rad-ui-color-plum-400)",500:"var(--rad-ui-color-plum-500)",600:"var(--rad-ui-color-plum-600)",700:"var(--rad-ui-color-plum-700)",800:"var(--rad-ui-color-plum-800)",900:"var(--rad-ui-color-plum-900)",950:"var(--rad-ui-color-plum-950)",1e3:"var(--rad-ui-color-plum-1000)"},purple:{50:"var(--rad-ui-color-purple-50)",100:"var(--rad-ui-color-purple-100)",200:"var(--rad-ui-color-purple-200)",300:"var(--rad-ui-color-purple-300)",400:"var(--rad-ui-color-purple-400)",500:"var(--rad-ui-color-purple-500)",600:"var(--rad-ui-color-purple-600)",700:"var(--rad-ui-color-purple-700)",800:"var(--rad-ui-color-purple-800)",900:"var(--rad-ui-color-purple-900)",950:"var(--rad-ui-color-purple-950)",1e3:"var(--rad-ui-color-purple-1000)"},violet:{50:"var(--rad-ui-color-violet-50)",100:"var(--rad-ui-color-violet-100)",200:"var(--rad-ui-color-violet-200)",300:"var(--rad-ui-color-violet-300)",400:"var(--rad-ui-color-violet-400)",500:"var(--rad-ui-color-violet-500)",600:"var(--rad-ui-color-violet-600)",700:"var(--rad-ui-color-violet-700)",800:"var(--rad-ui-color-violet-800)",900:"var(--rad-ui-color-violet-900)",950:"var(--rad-ui-color-violet-950)",1e3:"var(--rad-ui-color-violet-1000)"},iris:{50:"var(--rad-ui-color-iris-50)",100:"var(--rad-ui-color-iris-100)",200:"var(--rad-ui-color-iris-200)",300:"var(--rad-ui-color-iris-300)",400:"var(--rad-ui-color-iris-400)",500:"var(--rad-ui-color-iris-500)",600:"var(--rad-ui-color-iris-600)",700:"var(--rad-ui-color-iris-700)",800:"var(--rad-ui-color-iris-800)",900:"var(--rad-ui-color-iris-900)",950:"var(--rad-ui-color-iris-950)",1e3:"var(--rad-ui-color-iris-1000)"},indigo:{50:"var(--rad-ui-color-indigo-50)",100:"var(--rad-ui-color-indigo-100)",200:"var(--rad-ui-color-indigo-200)",300:"var(--rad-ui-color-indigo-300)",400:"var(--rad-ui-color-indigo-400)",500:"var(--rad-ui-color-indigo-500)",600:"var(--rad-ui-color-indigo-600)",700:"var(--rad-ui-color-indigo-700)",800:"var(--rad-ui-color-indigo-800)",900:"var(--rad-ui-color-indigo-900)",950:"var(--rad-ui-color-indigo-950)",1e3:"var(--rad-ui-color-indigo-1000)"},blue:{50:"var(--rad-ui-color-blue-50)",100:"var(--rad-ui-color-blue-100)",200:"var(--rad-ui-color-blue-200)",300:"var(--rad-ui-color-blue-300)",400:"var(--rad-ui-color-blue-400)",500:"var(--rad-ui-color-blue-500)",600:"var(--rad-ui-color-blue-600)",700:"var(--rad-ui-color-blue-700)",800:"var(--rad-ui-color-blue-800)",900:"var(--rad-ui-color-blue-900)",950:"var(--rad-ui-color-blue-950)",1e3:"var(--rad-ui-color-blue-1000)"},cyan:{50:"var(--rad-ui-color-cyan-50)",100:"var(--rad-ui-color-cyan-100)",200:"var(--rad-ui-color-cyan-200)",300:"var(--rad-ui-color-cyan-300)",400:"var(--rad-ui-color-cyan-400)",500:"var(--rad-ui-color-cyan-500)",600:"var(--rad-ui-color-cyan-600)",700:"var(--rad-ui-color-cyan-700)",800:"var(--rad-ui-color-cyan-800)",900:"var(--rad-ui-color-cyan-900)",950:"var(--rad-ui-color-cyan-950)",1e3:"var(--rad-ui-color-cyan-1000)"},teal:{50:"var(--rad-ui-color-teal-50)",100:"var(--rad-ui-color-teal-100)",200:"var(--rad-ui-color-teal-200)",300:"var(--rad-ui-color-teal-300)",400:"var(--rad-ui-color-teal-400)",500:"var(--rad-ui-color-teal-500)",600:"var(--rad-ui-color-teal-600)",700:"var(--rad-ui-color-teal-700)",800:"var(--rad-ui-color-teal-800)",900:"var(--rad-ui-color-teal-900)",950:"var(--rad-ui-color-teal-950)",1e3:"var(--rad-ui-color-teal-1000)"},jade:{50:"var(--rad-ui-color-jade-50)",100:"var(--rad-ui-color-jade-100)",200:"var(--rad-ui-color-jade-200)",300:"var(--rad-ui-color-jade-300)",400:"var(--rad-ui-color-jade-400)",500:"var(--rad-ui-color-jade-500)",600:"var(--rad-ui-color-jade-600)",700:"var(--rad-ui-color-jade-700)",800:"var(--rad-ui-color-jade-800)",900:"var(--rad-ui-color-jade-900)",950:"var(--rad-ui-color-jade-950)",1e3:"var(--rad-ui-color-jade-1000)"},green:{50:"var(--rad-ui-color-green-50)",100:"var(--rad-ui-color-green-100)",200:"var(--rad-ui-color-green-200)",300:"var(--rad-ui-color-green-300)",400:"var(--rad-ui-color-green-400)",500:"var(--rad-ui-color-green-500)",600:"var(--rad-ui-color-green-600)",700:"var(--rad-ui-color-green-700)",800:"var(--rad-ui-color-green-800)",900:"var(--rad-ui-color-green-900)",950:"var(--rad-ui-color-green-950)",1e3:"var(--rad-ui-color-green-1000)"},grass:{50:"var(--rad-ui-color-grass-50)",100:"var(--rad-ui-color-grass-100)",200:"var(--rad-ui-color-grass-200)",300:"var(--rad-ui-color-grass-300)",400:"var(--rad-ui-color-grass-400)",500:"var(--rad-ui-color-grass-500)",600:"var(--rad-ui-color-grass-600)",700:"var(--rad-ui-color-grass-700)",800:"var(--rad-ui-color-grass-800)",900:"var(--rad-ui-color-grass-900)",950:"var(--rad-ui-color-grass-950)",1e3:"var(--rad-ui-color-grass-1000)"},brown:{50:"var(--rad-ui-color-brown-50)",100:"var(--rad-ui-color-brown-100)",200:"var(--rad-ui-color-brown-200)",300:"var(--rad-ui-color-brown-300)",400:"var(--rad-ui-color-brown-400)",500:"var(--rad-ui-color-brown-500)",600:"var(--rad-ui-color-brown-600)",700:"var(--rad-ui-color-brown-700)",800:"var(--rad-ui-color-brown-800)",900:"var(--rad-ui-color-brown-900)",950:"var(--rad-ui-color-brown-950)",1e3:"var(--rad-ui-color-brown-1000)"},bronze:{50:"var(--rad-ui-color-bronze-50)",100:"var(--rad-ui-color-bronze-100)",200:"var(--rad-ui-color-bronze-200)",300:"var(--rad-ui-color-bronze-300)",400:"var(--rad-ui-color-bronze-400)",500:"var(--rad-ui-color-bronze-500)",600:"var(--rad-ui-color-bronze-600)",700:"var(--rad-ui-color-bronze-700)",800:"var(--rad-ui-color-bronze-800)",900:"var(--rad-ui-color-bronze-900)",950:"var(--rad-ui-color-bronze-950)",1e3:"var(--rad-ui-color-bronze-1000)"},gold:{50:"var(--rad-ui-color-gold-50)",100:"var(--rad-ui-color-gold-100)",200:"var(--rad-ui-color-gold-200)",300:"var(--rad-ui-color-gold-300)",400:"var(--rad-ui-color-gold-400)",500:"var(--rad-ui-color-gold-500)",600:"var(--rad-ui-color-gold-600)",700:"var(--rad-ui-color-gold-700)",800:"var(--rad-ui-color-gold-800)",900:"var(--rad-ui-color-gold-900)",950:"var(--rad-ui-color-gold-950)",1e3:"var(--rad-ui-color-gold-1000)"},sky:{50:"var(--rad-ui-color-sky-50)",100:"var(--rad-ui-color-sky-100)",200:"var(--rad-ui-color-sky-200)",300:"var(--rad-ui-color-sky-300)",400:"var(--rad-ui-color-sky-400)",500:"var(--rad-ui-color-sky-500)",600:"var(--rad-ui-color-sky-600)",700:"var(--rad-ui-color-sky-700)",800:"var(--rad-ui-color-sky-800)",900:"var(--rad-ui-color-sky-900)",950:"var(--rad-ui-color-sky-950)",1e3:"var(--rad-ui-color-sky-1000)"},mint:{50:"var(--rad-ui-color-mint-50)",100:"var(--rad-ui-color-mint-100)",200:"var(--rad-ui-color-mint-200)",300:"var(--rad-ui-color-mint-300)",400:"var(--rad-ui-color-mint-400)",500:"var(--rad-ui-color-mint-500)",600:"var(--rad-ui-color-mint-600)",700:"var(--rad-ui-color-mint-700)",800:"var(--rad-ui-color-mint-800)",900:"var(--rad-ui-color-mint-900)",950:"var(--rad-ui-color-mint-950)",1e3:"var(--rad-ui-color-mint-1000)"},lime:{50:"var(--rad-ui-color-lime-50)",100:"var(--rad-ui-color-lime-100)",200:"var(--rad-ui-color-lime-200)",300:"var(--rad-ui-color-lime-300)",400:"var(--rad-ui-color-lime-400)",500:"var(--rad-ui-color-lime-500)",600:"var(--rad-ui-color-lime-600)",700:"var(--rad-ui-color-lime-700)",800:"var(--rad-ui-color-lime-800)",900:"var(--rad-ui-color-lime-900)",950:"var(--rad-ui-color-lime-950)",1e3:"var(--rad-ui-color-lime-1000)"},yellow:{50:"var(--rad-ui-color-yellow-50)",100:"var(--rad-ui-color-yellow-100)",200:"var(--rad-ui-color-yellow-200)",300:"var(--rad-ui-color-yellow-300)",400:"var(--rad-ui-color-yellow-400)",500:"var(--rad-ui-color-yellow-500)",600:"var(--rad-ui-color-yellow-600)",700:"var(--rad-ui-color-yellow-700)",800:"var(--rad-ui-color-yellow-800)",900:"var(--rad-ui-color-yellow-900)",950:"var(--rad-ui-color-yellow-950)",1e3:"var(--rad-ui-color-yellow-1000)"},amber:{50:"var(--rad-ui-color-amber-50)",100:"var(--rad-ui-color-amber-100)",200:"var(--rad-ui-color-amber-200)",300:"var(--rad-ui-color-amber-300)",400:"var(--rad-ui-color-amber-400)",500:"var(--rad-ui-color-amber-500)",600:"var(--rad-ui-color-amber-600)",700:"var(--rad-ui-color-amber-700)",800:"var(--rad-ui-color-amber-800)",900:"var(--rad-ui-color-amber-900)",950:"var(--rad-ui-color-amber-950)",1e3:"var(--rad-ui-color-amber-1000)"},orange:{50:"var(--rad-ui-color-orange-50)",100:"var(--rad-ui-color-orange-100)",200:"var(--rad-ui-color-orange-200)",300:"var(--rad-ui-color-orange-300)",400:"var(--rad-ui-color-orange-400)",500:"var(--rad-ui-color-orange-500)",600:"var(--rad-ui-color-orange-600)",700:"var(--rad-ui-color-orange-700)",800:"var(--rad-ui-color-orange-800)",900:"var(--rad-ui-color-orange-900)",950:"var(--rad-ui-color-orange-950)",1e3:"var(--rad-ui-color-orange-1000)"}};module.exports={content:[],theme:{extend:{colors:{...r}}}};
|