@geovi/the-datagrid 0.1.1 → 0.1.2

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.
Files changed (66) hide show
  1. package/README.md +47 -1253
  2. package/dist/BoolEditor.cjs +1 -1
  3. package/dist/BoolEditor.js +235 -222
  4. package/dist/DateEditor.cjs +1 -1
  5. package/dist/DateEditor.js +297 -273
  6. package/dist/DateFilter.cjs +1 -1
  7. package/dist/DateFilter.js +65 -63
  8. package/dist/NumberFilter.cjs +1 -1
  9. package/dist/NumberFilter.js +104 -102
  10. package/dist/NumericEditor.cjs +1 -1
  11. package/dist/NumericEditor.js +296 -277
  12. package/dist/SelectEditor.cjs +42 -0
  13. package/dist/SelectEditor.js +6703 -0
  14. package/dist/StringFilter.cjs +1 -1
  15. package/dist/StringFilter.js +121 -119
  16. package/dist/TextEditor.cjs +2 -0
  17. package/dist/TextEditor.js +2972 -0
  18. package/dist/base.css +1 -1
  19. package/dist/community-package-manifest.json +3 -1
  20. package/dist/components/ui/input.d.ts +2 -0
  21. package/dist/components/ui/input.d.ts.map +1 -1
  22. package/dist/editors/BoolEditor.d.ts +1 -1
  23. package/dist/editors/BoolEditor.d.ts.map +1 -1
  24. package/dist/editors/DateEditor.d.ts +1 -1
  25. package/dist/editors/DateEditor.d.ts.map +1 -1
  26. package/dist/editors/NumericEditor.d.ts +1 -1
  27. package/dist/editors/NumericEditor.d.ts.map +1 -1
  28. package/dist/editors/SelectEditor.d.ts +27 -0
  29. package/dist/editors/SelectEditor.d.ts.map +1 -0
  30. package/dist/editors/TextEditor.d.ts +27 -0
  31. package/dist/editors/TextEditor.d.ts.map +1 -0
  32. package/dist/editors/editorTypes.d.ts +24 -0
  33. package/dist/editors/editorTypes.d.ts.map +1 -1
  34. package/dist/editors/index.d.ts +5 -0
  35. package/dist/editors/index.d.ts.map +1 -1
  36. package/dist/grid/ReactDataGrid.d.ts.map +1 -1
  37. package/dist/grid/components/GridBody.d.ts.map +1 -1
  38. package/dist/grid/components/GridContextMenuLayer.d.ts.map +1 -1
  39. package/dist/grid/hooks/useGridEditing.d.ts.map +1 -1
  40. package/dist/grid/menuRuntime.d.ts +27 -0
  41. package/dist/grid/menuRuntime.d.ts.map +1 -0
  42. package/dist/index.cjs +13 -13
  43. package/dist/index.css +1 -1
  44. package/dist/index.js +9435 -9164
  45. package/dist/main.d.ts +2 -2
  46. package/dist/main.d.ts.map +1 -1
  47. package/dist/style/theme/amber-dark/index.css +1 -1
  48. package/dist/style/theme/amber-light/index.css +1 -1
  49. package/dist/style/theme/blue-dark/index.css +1 -1
  50. package/dist/style/theme/blue-light/index.css +1 -1
  51. package/dist/style/theme/default-dark/index.css +1 -1
  52. package/dist/style/theme/default-light/index.css +1 -1
  53. package/dist/style/theme/green-dark/index.css +1 -1
  54. package/dist/style/theme/green-light/index.css +1 -1
  55. package/dist/style/theme/pink-dark/index.css +1 -1
  56. package/dist/style/theme/pink-light/index.css +1 -1
  57. package/dist/toolbar/RDGToolbar.d.ts.map +1 -1
  58. package/dist/toolbar/icons.d.ts +0 -2
  59. package/dist/toolbar/icons.d.ts.map +1 -1
  60. package/dist/toolbar/runtime.d.ts +7 -0
  61. package/dist/toolbar/runtime.d.ts.map +1 -1
  62. package/dist/toolbar.css +1 -1
  63. package/dist/toolbar.js +548 -651
  64. package/dist/types.d.ts +7 -0
  65. package/dist/types.d.ts.map +1 -1
  66. package/package.json +20 -2
@@ -0,0 +1,42 @@
1
+ "use client";
2
+ "use strict";const ti=require("react"),ni=require("react-dom");function oo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ro=oo(ti),io=oo(ni),oi=ro,z=oi.default??ro,ie=z.Children,ri=z.Component,_e=z.Fragment,ii=z.PureComponent,Me=z.cloneElement,qe=z.createContext,N=z.createElement,si=z.createRef,O=z.forwardRef,de=z.isValidElement,ai=z.lazy,ci=z.memo,X=z.useCallback,He=z.useContext,li=z.useDebugValue,ui=z.useDeferredValue,G=z.useEffect,di=z.useId,so=z.useImperativeHandle,fi=z.useInsertionEffect,At=z.useLayoutEffect,ae=z.useMemo,pi=z.useReducer,F=z.useRef,M=z.useState,mi=z.use,hi=z.version,ao=Object.freeze(Object.defineProperty({__proto__:null,Children:ie,Component:ri,Fragment:_e,PureComponent:ii,cloneElement:Me,createContext:qe,createElement:N,createRef:si,default:z,forwardRef:O,isValidElement:de,lazy:ai,memo:ci,use:mi,useCallback:X,useContext:He,useDebugValue:li,useDeferredValue:ui,useEffect:G,useId:di,useImperativeHandle:so,useInsertionEffect:fi,useLayoutEffect:At,useMemo:ae,useReducer:pi,useRef:F,useState:M,version:hi},Symbol.toStringTag,{value:"Module"})),gi=io,cn=gi.default??io,co=cn.createPortal,lo=cn.flushSync??(e=>e());function En(e,[t,n]){return Math.min(n,Math.max(t,e))}function ne(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function uo(e,t){return t===void 0?e:{...e,key:t}}const ln=_e;function k(e,t,n){return N(e,uo(t,n))}function yt(e,t,n){const o=uo(t,n);if(!o||!Array.isArray(o.children))return N(e,o);const{children:r,...i}=o;return N(e,i,...r)}function un(e,t=[]){let n=[];function o(i,s){const a=qe(s),c=n.length;n=[...n,s];const l=f=>{const{scope:h,children:m,...v}=f,u=h?.[e]?.[c]||a,p=ae(()=>v,Object.values(v));return k(u.Provider,{value:p,children:m})};l.displayName=i+"Provider";function d(f,h){const m=h?.[e]?.[c]||a,v=He(m);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[l,d]}const r=()=>{const i=n.map(s=>qe(s));return function(a){const c=a?.[e]||i;return ae(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[o,vi(r,...t)]}function vi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return ae(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Pn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function kt(...e){return t=>{let n=!1;const o=e.map(r=>{const i=Pn(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():Pn(e[r],null)}}}}function se(...e){return X(kt(...e),e)}function An(e){const t=bi(e),n=O((o,r)=>{const{children:i,...s}=o,a=ie.toArray(i),c=a.find(wi);if(c){const l=c.props.children,d=a.map(f=>f===c?ie.count(l)>1?ie.only(null):de(l)?l.props.children:null:f);return k(t,{...s,ref:r,children:de(l)?Me(l,void 0,d):null})}return k(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function bi(e){const t=O((n,o)=>{const{children:r,...i}=n;if(de(r)){const s=Si(r),a=xi(i,r.props);return r.type!==_e&&(a.ref=o?kt(o,s):s),Me(r,a)}return ie.count(r)>1?ie.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yi=Symbol("radix.slottable");function wi(e){return de(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yi}function xi(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Si(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ci(e){const t=e+"CollectionProvider",[n,o]=un(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=u=>{const{scope:p,children:b}=u,g=z.useRef(null),y=z.useRef(new Map).current;return k(r,{scope:p,itemMap:y,collectionRef:g,children:b})};s.displayName=t;const a=e+"CollectionSlot",c=An(a),l=z.forwardRef((u,p)=>{const{scope:b,children:g}=u,y=i(a,b),x=se(p,y.collectionRef);return k(c,{ref:x,children:g})});l.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=An(d),m=z.forwardRef((u,p)=>{const{scope:b,children:g,...y}=u,x=z.useRef(null),S=se(p,x),P=i(d,b);return z.useEffect(()=>(P.itemMap.set(x,{ref:x,...y}),()=>{P.itemMap.delete(x)})),k(h,{[f]:"",ref:S,children:g})});m.displayName=d;function v(u){const p=i(e+"CollectionConsumer",u);return z.useCallback(()=>{const g=p.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((P,C)=>y.indexOf(P.ref.current)-y.indexOf(C.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:s,Slot:l,ItemSlot:m},v,o]}var Ei=qe(void 0);function Pi(e){const t=He(Ei);return e||t||"ltr"}function Ai(e){const t=ki(e),n=O((o,r)=>{const{children:i,...s}=o,a=ie.toArray(i),c=a.find(Ti);if(c){const l=c.props.children,d=a.map(f=>f===c?ie.count(l)>1?ie.only(null):de(l)?l.props.children:null:f);return k(t,{...s,ref:r,children:de(l)?Me(l,void 0,d):null})}return k(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function ki(e){const t=O((n,o)=>{const{children:r,...i}=n;if(de(r)){const s=Ni(r),a=Oi(i,r.props);return r.type!==_e&&(a.ref=o?kt(o,s):s),Me(r,a)}return ie.count(r)>1?ie.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ri=Symbol("radix.slottable");function Ti(e){return de(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ri}function Oi(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Ni(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ii=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ee=Ii.reduce((e,t)=>{const n=Ai(`Primitive.${t}`),o=O((r,i)=>{const{asChild:s,...a}=r,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k(c,{...a,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function _i(e,t){e&&lo(()=>e.dispatchEvent(t))}function We(e){const t=F(e);return G(()=>{t.current=e}),ae(()=>(...n)=>t.current?.(...n),[])}function Mi(e,t=globalThis?.document){const n=We(e);G(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Li="DismissableLayer",qt="dismissableLayer.update",Di="dismissableLayer.pointerDownOutside",Fi="dismissableLayer.focusOutside",kn,fo=qe({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),po=O((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=He(fo),[d,f]=M(null),h=d?.ownerDocument??globalThis?.document,[,m]=M({}),v=se(t,C=>f(C)),u=Array.from(l.layers),[p]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=u.indexOf(p),g=d?u.indexOf(d):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,x=g>=b,S=zi(C=>{const E=C.target,_=[...l.branches].some(B=>B.contains(E));!x||_||(r?.(C),s?.(C),C.defaultPrevented||a?.())},h),P=$i(C=>{const E=C.target;[...l.branches].some(B=>B.contains(E))||(i?.(C),s?.(C),C.defaultPrevented||a?.())},h);return Mi(C=>{g===l.layers.size-1&&(o?.(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},h),G(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(kn=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),Rn(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=kn)}},[d,h,n,l]),G(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),Rn())},[d,l]),G(()=>{const C=()=>m({});return document.addEventListener(qt,C),()=>document.removeEventListener(qt,C)},[]),k(ee.div,{...c,ref:v,style:{pointerEvents:y?x?"auto":"none":void 0,...e.style},onFocusCapture:ne(e.onFocusCapture,P.onFocusCapture),onBlurCapture:ne(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:ne(e.onPointerDownCapture,S.onPointerDownCapture)})});po.displayName=Li;var Bi="DismissableLayerBranch",Wi=O((e,t)=>{const n=He(fo),o=F(null),r=se(t,o);return G(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),k(ee.div,{...e,ref:r})});Wi.displayName=Bi;function zi(e,t=globalThis?.document){const n=We(e),o=F(!1),r=F(()=>{});return G(()=>{const i=a=>{if(a.target&&!o.current){let c=function(){mo(Di,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function $i(e,t=globalThis?.document){const n=We(e),o=F(!1);return G(()=>{const r=i=>{i.target&&!o.current&&mo(Fi,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Rn(){const e=new CustomEvent(qt);document.dispatchEvent(e)}function mo(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?_i(r,i):r.dispatchEvent(i)}var Wt=0;function Vi(){G(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Tn()),document.body.insertAdjacentElement("beforeend",e[1]??Tn()),Wt++,()=>{Wt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Wt--}},[])}function Tn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var zt="focusScope.autoFocusOnMount",$t="focusScope.autoFocusOnUnmount",On={bubbles:!1,cancelable:!0},Hi="FocusScope",ho=O((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...s}=e,[a,c]=M(null),l=We(r),d=We(i),f=F(null),h=se(t,u=>c(u)),m=F({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;G(()=>{if(o){let u=function(y){if(m.paused||!a)return;const x=y.target;a.contains(x)?f.current=x:Oe(f.current,{select:!0})},p=function(y){if(m.paused||!a)return;const x=y.relatedTarget;x!==null&&(a.contains(x)||Oe(f.current,{select:!0}))},b=function(y){if(document.activeElement===document.body)for(const S of y)S.removedNodes.length>0&&Oe(a)};document.addEventListener("focusin",u),document.addEventListener("focusout",p);const g=new MutationObserver(b);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",p),g.disconnect()}}},[o,a,m.paused]),G(()=>{if(a){In.add(m);const u=document.activeElement;if(!a.contains(u)){const b=new CustomEvent(zt,On);a.addEventListener(zt,l),a.dispatchEvent(b),b.defaultPrevented||(ji(Xi(go(a)),{select:!0}),document.activeElement===u&&Oe(a))}return()=>{a.removeEventListener(zt,l),setTimeout(()=>{const b=new CustomEvent($t,On);a.addEventListener($t,d),a.dispatchEvent(b),b.defaultPrevented||Oe(u??document.body,{select:!0}),a.removeEventListener($t,d),In.remove(m)},0)}}},[a,l,d,m]);const v=X(u=>{if(!n&&!o||m.paused)return;const p=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,b=document.activeElement;if(p&&b){const g=u.currentTarget,[y,x]=Ui(g);y&&x?!u.shiftKey&&b===x?(u.preventDefault(),n&&Oe(y,{select:!0})):u.shiftKey&&b===y&&(u.preventDefault(),n&&Oe(x,{select:!0})):b===g&&u.preventDefault()}},[n,o,m.paused]);return k(ee.div,{tabIndex:-1,...s,ref:h,onKeyDown:v})});ho.displayName=Hi;function ji(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Oe(o,{select:t}),document.activeElement!==n)return}function Ui(e){const t=go(e),n=Nn(t,e),o=Nn(t.reverse(),e);return[n,o]}function go(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Nn(e,t){for(const n of e)if(!Gi(n,{upTo:t}))return n}function Gi(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ki(e){return e instanceof HTMLInputElement&&"select"in e}function Oe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ki(e)&&t&&e.select()}}var In=Yi();function Yi(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=_n(e,t),e.unshift(t)},remove(t){e=_n(e,t),e[0]?.resume()}}}function _n(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Xi(e){return e.filter(t=>t.tagName!=="A")}var ce=globalThis?.document?At:()=>{},qi=ao[" useId ".trim().toString()]||(()=>{}),Zi=0;function dn(e){const[t,n]=M(qi());return ce(()=>{n(o=>o??String(Zi++))},[e]),t?`radix-${t}`:""}const Qi=["top","right","bottom","left"],Ne=Math.min,le=Math.max,wt=Math.round,lt=Math.floor,Se=e=>({x:e,y:e}),Ji={left:"right",right:"left",bottom:"top",top:"bottom"},es={start:"end",end:"start"};function Zt(e,t,n){return le(e,Ne(t,n))}function ke(e,t){return typeof e=="function"?e(t):e}function Re(e){return e.split("-")[0]}function Qe(e){return e.split("-")[1]}function fn(e){return e==="x"?"y":"x"}function pn(e){return e==="y"?"height":"width"}const ts=new Set(["top","bottom"]);function xe(e){return ts.has(Re(e))?"y":"x"}function mn(e){return fn(xe(e))}function ns(e,t,n){n===void 0&&(n=!1);const o=Qe(e),r=mn(e),i=pn(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=xt(s)),[s,xt(s)]}function os(e){const t=xt(e);return[Qt(e),t,Qt(t)]}function Qt(e){return e.replace(/start|end/g,t=>es[t])}const Mn=["left","right"],Ln=["right","left"],rs=["top","bottom"],is=["bottom","top"];function ss(e,t,n){switch(e){case"top":case"bottom":return n?t?Ln:Mn:t?Mn:Ln;case"left":case"right":return t?rs:is;default:return[]}}function as(e,t,n,o){const r=Qe(e);let i=ss(Re(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Qt)))),i}function xt(e){return e.replace(/left|right|bottom|top/g,t=>Ji[t])}function cs(e){return{top:0,right:0,bottom:0,left:0,...e}}function vo(e){return typeof e!="number"?cs(e):{top:e,right:e,bottom:e,left:e}}function St(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Dn(e,t,n){let{reference:o,floating:r}=e;const i=xe(t),s=mn(t),a=pn(s),c=Re(t),l=i==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,h=o[a]/2-r[a]/2;let m;switch(c){case"top":m={x:d,y:o.y-r.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-r.width,y:f};break;default:m={x:o.x,y:o.y}}switch(Qe(t)){case"start":m[s]-=h*(n&&l?-1:1);break;case"end":m[s]+=h*(n&&l?-1:1);break}return m}const ls=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=Dn(l,o,c),h=o,m={},v=0;for(let u=0;u<a.length;u++){const{name:p,fn:b}=a[u],{x:g,y,data:x,reset:S}=await b({x:d,y:f,initialPlacement:o,placement:h,strategy:r,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});d=g??d,f=y??f,m={...m,[p]:{...m[p],...x}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(l=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:d,y:f}=Dn(l,h,c)),u=-1)}return{x:d,y:f,placement:h,strategy:r,middlewareData:m}};async function it(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=ke(t,e),v=vo(m),p=a[h?f==="floating"?"reference":"floating":f],b=St(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(p)))==null||n?p:p.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),g=f==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},S=St(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:c}):g);return{top:(b.top-S.top+v.top)/x.y,bottom:(S.bottom-b.bottom+v.bottom)/x.y,left:(b.left-S.left+v.left)/x.x,right:(S.right-b.right+v.right)/x.x}}const us=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:d=0}=ke(e,t)||{};if(l==null)return{};const f=vo(d),h={x:n,y:o},m=mn(r),v=pn(m),u=await s.getDimensions(l),p=m==="y",b=p?"top":"left",g=p?"bottom":"right",y=p?"clientHeight":"clientWidth",x=i.reference[v]+i.reference[m]-h[m]-i.floating[v],S=h[m]-i.reference[m],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let C=P?P[y]:0;(!C||!await(s.isElement==null?void 0:s.isElement(P)))&&(C=a.floating[y]||i.floating[v]);const E=x/2-S/2,_=C/2-u[v]/2-1,B=Ne(f[b],_),$=Ne(f[g],_),V=B,H=C-u[v]-$,W=C/2-u[v]/2+E,j=Zt(V,W,H),I=!c.arrow&&Qe(r)!=null&&W!==j&&i.reference[v]/2-(W<V?B:$)-u[v]/2<0,D=I?W<V?W-V:W-H:0;return{[m]:h[m]+D,data:{[m]:j,centerOffset:W-j-D,...I&&{alignmentOffset:D}},reset:I}}}),ds=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:u=!0,...p}=ke(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Re(r),g=xe(a),y=Re(a)===a,x=await(c.isRTL==null?void 0:c.isRTL(l.floating)),S=h||(y||!u?[xt(a)]:os(a)),P=v!=="none";!h&&P&&S.push(...as(a,u,v,x));const C=[a,...S],E=await it(t,p),_=[];let B=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&_.push(E[b]),f){const W=ns(r,s,x);_.push(E[W[0]],E[W[1]])}if(B=[...B,{placement:r,overflows:_}],!_.every(W=>W<=0)){var $,V;const W=((($=i.flip)==null?void 0:$.index)||0)+1,j=C[W];if(j&&(!(f==="alignment"?g!==xe(j):!1)||B.every(w=>xe(w.placement)===g?w.overflows[0]>0:!0)))return{data:{index:W,overflows:B},reset:{placement:j}};let I=(V=B.filter(D=>D.overflows[0]<=0).sort((D,w)=>D.overflows[1]-w.overflows[1])[0])==null?void 0:V.placement;if(!I)switch(m){case"bestFit":{var H;const D=(H=B.filter(w=>{if(P){const K=xe(w.placement);return K===g||K==="y"}return!0}).map(w=>[w.placement,w.overflows.filter(K=>K>0).reduce((K,re)=>K+re,0)]).sort((w,K)=>w[1]-K[1])[0])==null?void 0:H[0];D&&(I=D);break}case"initialPlacement":I=a;break}if(r!==I)return{reset:{placement:I}}}return{}}}};function Fn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bn(e){return Qi.some(t=>e[t]>=0)}const fs=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=ke(e,t);switch(o){case"referenceHidden":{const i=await it(t,{...r,elementContext:"reference"}),s=Fn(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Bn(s)}}}case"escaped":{const i=await it(t,{...r,altBoundary:!0}),s=Fn(i,n.floating);return{data:{escapedOffsets:s,escaped:Bn(s)}}}default:return{}}}}},bo=new Set(["left","top"]);async function ps(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Re(n),a=Qe(n),c=xe(n)==="y",l=bo.has(s)?-1:1,d=i&&c?-1:1,f=ke(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),c?{x:m*d,y:h*l}:{x:h*l,y:m*d}}const ms=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,c=await ps(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},hs=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:p=>{let{x:b,y:g}=p;return{x:b,y:g}}},...c}=ke(e,t),l={x:n,y:o},d=await it(t,c),f=xe(Re(r)),h=fn(f);let m=l[h],v=l[f];if(i){const p=h==="y"?"top":"left",b=h==="y"?"bottom":"right",g=m+d[p],y=m-d[b];m=Zt(g,m,y)}if(s){const p=f==="y"?"top":"left",b=f==="y"?"bottom":"right",g=v+d[p],y=v-d[b];v=Zt(g,v,y)}const u=a.fn({...t,[h]:m,[f]:v});return{...u,data:{x:u.x-n,y:u.y-o,enabled:{[h]:i,[f]:s}}}}}},gs=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=ke(e,t),d={x:n,y:o},f=xe(r),h=fn(f);let m=d[h],v=d[f];const u=ke(a,t),p=typeof u=="number"?{mainAxis:u,crossAxis:0}:{mainAxis:0,crossAxis:0,...u};if(c){const y=h==="y"?"height":"width",x=i.reference[h]-i.floating[y]+p.mainAxis,S=i.reference[h]+i.reference[y]-p.mainAxis;m<x?m=x:m>S&&(m=S)}if(l){var b,g;const y=h==="y"?"width":"height",x=bo.has(Re(r)),S=i.reference[f]-i.floating[y]+(x&&((b=s.offset)==null?void 0:b[f])||0)+(x?0:p.crossAxis),P=i.reference[f]+i.reference[y]+(x?0:((g=s.offset)==null?void 0:g[f])||0)-(x?p.crossAxis:0);v<S?v=S:v>P&&(v=P)}return{[h]:m,[f]:v}}}},vs=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=ke(e,t),d=await it(t,l),f=Re(r),h=Qe(r),m=xe(r)==="y",{width:v,height:u}=i.floating;let p,b;f==="top"||f==="bottom"?(p=f,b=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,p=h==="end"?"top":"bottom");const g=u-d.top-d.bottom,y=v-d.left-d.right,x=Ne(u-d[p],g),S=Ne(v-d[b],y),P=!t.middlewareData.shift;let C=x,E=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=y),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(C=g),P&&!h){const B=le(d.left,0),$=le(d.right,0),V=le(d.top,0),H=le(d.bottom,0);m?E=v-2*(B!==0||$!==0?B+$:le(d.left,d.right)):C=u-2*(V!==0||H!==0?V+H:le(d.top,d.bottom))}await c({...t,availableWidth:E,availableHeight:C});const _=await s.getDimensions(a.floating);return v!==_.width||u!==_.height?{reset:{rects:!0}}:{}}}};function Rt(){return typeof window<"u"}function Je(e){return yo(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ee(e){var t;return(t=(yo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yo(e){return Rt()?e instanceof Node||e instanceof ue(e).Node:!1}function he(e){return Rt()?e instanceof Element||e instanceof ue(e).Element:!1}function Ce(e){return Rt()?e instanceof HTMLElement||e instanceof ue(e).HTMLElement:!1}function Wn(e){return!Rt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}const bs=new Set(["inline","contents"]);function ct(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!bs.has(r)}const ys=new Set(["table","td","th"]);function ws(e){return ys.has(Je(e))}const xs=[":popover-open",":modal"];function Tt(e){return xs.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ss=["transform","translate","scale","rotate","perspective"],Cs=["transform","translate","scale","rotate","perspective","filter"],Es=["paint","layout","strict","content"];function hn(e){const t=gn(),n=he(e)?ge(e):e;return Ss.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Cs.some(o=>(n.willChange||"").includes(o))||Es.some(o=>(n.contain||"").includes(o))}function Ps(e){let t=Ie(e);for(;Ce(t)&&!Ze(t);){if(hn(t))return t;if(Tt(t))return null;t=Ie(t)}return null}function gn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const As=new Set(["html","body","#document"]);function Ze(e){return As.has(Je(e))}function ge(e){return ue(e).getComputedStyle(e)}function Ot(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ie(e){if(Je(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wn(e)&&e.host||Ee(e);return Wn(t)?t.host:t}function wo(e){const t=Ie(e);return Ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ce(t)&&ct(t)?t:wo(t)}function st(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=wo(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=ue(r);if(i){const a=Jt(s);return t.concat(s,s.visualViewport||[],ct(r)?r:[],a&&n?st(a):[])}return t.concat(r,st(r,[],n))}function Jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xo(e){const t=ge(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ce(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=wt(n)!==i||wt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function vn(e){return he(e)?e:e.contextElement}function Ye(e){const t=vn(e);if(!Ce(t))return Se(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=xo(t);let s=(i?wt(n.width):n.width)/o,a=(i?wt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const ks=Se(0);function So(e){const t=ue(e);return!gn()||!t.visualViewport?ks:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Rs(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function ze(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=vn(e);let s=Se(1);t&&(o?he(o)&&(s=Ye(o)):s=Ye(e));const a=Rs(i,n,o)?So(i):Se(0);let c=(r.left+a.x)/s.x,l=(r.top+a.y)/s.y,d=r.width/s.x,f=r.height/s.y;if(i){const h=ue(i),m=o&&he(o)?ue(o):o;let v=h,u=Jt(v);for(;u&&o&&m!==v;){const p=Ye(u),b=u.getBoundingClientRect(),g=ge(u),y=b.left+(u.clientLeft+parseFloat(g.paddingLeft))*p.x,x=b.top+(u.clientTop+parseFloat(g.paddingTop))*p.y;c*=p.x,l*=p.y,d*=p.x,f*=p.y,c+=y,l+=x,v=ue(u),u=Jt(v)}}return St({width:d,height:f,x:c,y:l})}function Nt(e,t){const n=Ot(e).scrollLeft;return t?t.left+n:ze(Ee(e)).left+n}function Co(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Nt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Ts(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=Ee(o),a=t?Tt(t.floating):!1;if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Se(1);const d=Se(0),f=Ce(o);if((f||!f&&!i)&&((Je(o)!=="body"||ct(s))&&(c=Ot(o)),Ce(o))){const m=ze(o);l=Ye(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}const h=s&&!f&&!i?Co(s,c):Se(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+h.x,y:n.y*l.y-c.scrollTop*l.y+d.y+h.y}}function Os(e){return Array.from(e.getClientRects())}function Ns(e){const t=Ee(e),n=Ot(e),o=e.ownerDocument.body,r=le(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=le(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Nt(e);const a=-n.scrollTop;return ge(o).direction==="rtl"&&(s+=le(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}const zn=25;function Is(e,t){const n=ue(e),o=Ee(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const d=gn();(!d||d&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}const l=Nt(o);if(l<=0){const d=o.ownerDocument,f=d.body,h=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(o.clientWidth-f.clientWidth-m);v<=zn&&(i-=v)}else l<=zn&&(i+=l);return{width:i,height:s,x:a,y:c}}const _s=new Set(["absolute","fixed"]);function Ms(e,t){const n=ze(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Ce(e)?Ye(e):Se(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,l=o*i.y;return{width:s,height:a,x:c,y:l}}function $n(e,t,n){let o;if(t==="viewport")o=Is(e,n);else if(t==="document")o=Ns(Ee(e));else if(he(t))o=Ms(t,n);else{const r=So(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return St(o)}function Eo(e,t){const n=Ie(e);return n===t||!he(n)||Ze(n)?!1:ge(n).position==="fixed"||Eo(n,t)}function Ls(e,t){const n=t.get(e);if(n)return n;let o=st(e,[],!1).filter(a=>he(a)&&Je(a)!=="body"),r=null;const i=ge(e).position==="fixed";let s=i?Ie(e):e;for(;he(s)&&!Ze(s);){const a=ge(s),c=hn(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&_s.has(r.position)||ct(s)&&!c&&Eo(e,s))?o=o.filter(d=>d!==s):r=a,s=Ie(s)}return t.set(e,o),o}function Ds(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Tt(t)?[]:Ls(t,this._c):[].concat(n),o],a=s[0],c=s.reduce((l,d)=>{const f=$n(t,d,r);return l.top=le(f.top,l.top),l.right=Ne(f.right,l.right),l.bottom=Ne(f.bottom,l.bottom),l.left=le(f.left,l.left),l},$n(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Fs(e){const{width:t,height:n}=xo(e);return{width:t,height:n}}function Bs(e,t,n){const o=Ce(t),r=Ee(t),i=n==="fixed",s=ze(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Se(0);function l(){c.x=Nt(r)}if(o||!o&&!i)if((Je(t)!=="body"||ct(r))&&(a=Ot(t)),o){const m=ze(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else r&&l();i&&!o&&r&&l();const d=r&&!o&&!i?Co(r,a):Se(0),f=s.left+a.scrollLeft-c.x-d.x,h=s.top+a.scrollTop-c.y-d.y;return{x:f,y:h,width:s.width,height:s.height}}function Vt(e){return ge(e).position==="static"}function Vn(e,t){if(!Ce(e)||ge(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ee(e)===n&&(n=n.ownerDocument.body),n}function Po(e,t){const n=ue(e);if(Tt(e))return n;if(!Ce(e)){let r=Ie(e);for(;r&&!Ze(r);){if(he(r)&&!Vt(r))return r;r=Ie(r)}return n}let o=Vn(e,t);for(;o&&ws(o)&&Vt(o);)o=Vn(o,t);return o&&Ze(o)&&Vt(o)&&!hn(o)?n:o||Ps(e)||n}const Ws=async function(e){const t=this.getOffsetParent||Po,n=this.getDimensions,o=await n(e.floating);return{reference:Bs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function zs(e){return ge(e).direction==="rtl"}const $s={convertOffsetParentRelativeRectToViewportRelativeRect:Ts,getDocumentElement:Ee,getClippingRect:Ds,getOffsetParent:Po,getElementRects:Ws,getClientRects:Os,getDimensions:Fs,getScale:Ye,isElement:he,isRTL:zs};function Ao(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vs(e,t){let n=null,o;const r=Ee(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=l;if(a||t(),!h||!m)return;const v=lt(f),u=lt(r.clientWidth-(d+h)),p=lt(r.clientHeight-(f+m)),b=lt(d),y={rootMargin:-v+"px "+-u+"px "+-p+"px "+-b+"px",threshold:le(0,Ne(1,c))||1};let x=!0;function S(P){const C=P[0].intersectionRatio;if(C!==c){if(!x)return s();C?s(!1,C):o=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!Ao(l,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(S,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return s(!0),i}function Hs(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=vn(e),d=r||i?[...l?st(l):[],...st(t)]:[];d.forEach(b=>{r&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const f=l&&a?Vs(l,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(b=>{let[g]=b;g&&g.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),n()}),l&&!c&&m.observe(l),m.observe(t));let v,u=c?ze(e):null;c&&p();function p(){const b=ze(e);u&&!Ao(u,b)&&n(),u=b,v=requestAnimationFrame(p)}return n(),()=>{var b;d.forEach(g=>{r&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),f?.(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(v)}}const js=ms,Us=hs,Gs=ds,Ks=vs,Ys=fs,Hn=us,Xs=gs,qs=(e,t,n)=>{const o=new Map,r={platform:$s,...n},i={...r.platform,_c:o};return ls(e,t,{...r,platform:i})};var Zs=typeof document<"u",Qs=function(){},gt=Zs?At:Qs;function Ct(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Ct(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!Ct(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ko(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jn(e,t){const n=ko(e);return Math.round(t*n)/n}function Ht(e){const t=F(e);return gt(()=>{t.current=e}),t}function Js(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[d,f]=M({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=M(o);Ct(h,o)||m(o);const[v,u]=M(null),[p,b]=M(null),g=X(w=>{w!==P.current&&(P.current=w,u(w))},[]),y=X(w=>{w!==C.current&&(C.current=w,b(w))},[]),x=i||v,S=s||p,P=F(null),C=F(null),E=F(d),_=c!=null,B=Ht(c),$=Ht(r),V=Ht(l),H=X(()=>{if(!P.current||!C.current)return;const w={placement:t,strategy:n,middleware:h};$.current&&(w.platform=$.current),qs(P.current,C.current,w).then(K=>{const re={...K,isPositioned:V.current!==!1};W.current&&!Ct(E.current,re)&&(E.current=re,lo(()=>{f(re)}))})},[h,t,n,$,V]);gt(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(w=>({...w,isPositioned:!1})))},[l]);const W=F(!1);gt(()=>(W.current=!0,()=>{W.current=!1}),[]),gt(()=>{if(x&&(P.current=x),S&&(C.current=S),x&&S){if(B.current)return B.current(x,S,H);H()}},[x,S,H,B,_]);const j=ae(()=>({reference:P,floating:C,setReference:g,setFloating:y}),[g,y]),I=ae(()=>({reference:x,floating:S}),[x,S]),D=ae(()=>{const w={position:n,left:0,top:0};if(!I.floating)return w;const K=jn(I.floating,d.x),re=jn(I.floating,d.y);return a?{...w,transform:"translate("+K+"px, "+re+"px)",...ko(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:re}},[n,a,I.floating,d.x,d.y]);return ae(()=>({...d,update:H,refs:j,elements:I,floatingStyles:D}),[d,H,j,I,D])}const ea=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Hn({element:o.current,padding:r}).fn(n):{}:o?Hn({element:o,padding:r}).fn(n):{}}}},ta=(e,t)=>({...js(e),options:[e,t]}),na=(e,t)=>({...Us(e),options:[e,t]}),oa=(e,t)=>({...Xs(e),options:[e,t]}),ra=(e,t)=>({...Gs(e),options:[e,t]}),ia=(e,t)=>({...Ks(e),options:[e,t]}),sa=(e,t)=>({...Ys(e),options:[e,t]}),aa=(e,t)=>({...ea(e),options:[e,t]});var ca="Arrow",Ro=O((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return k(ee.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:k("polygon",{points:"0,0 30,0 15,10"})})});Ro.displayName=ca;var la=Ro;function ua(e){const[t,n]=M(void 0);return ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var bn="Popper",[To,Oo]=un(bn),[da,No]=To(bn),Io=e=>{const{__scopePopper:t,children:n}=e,[o,r]=M(null);return k(da,{scope:t,anchor:o,onAnchorChange:r,children:n})};Io.displayName=bn;var _o="PopperAnchor",Mo=O((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=No(_o,n),s=F(null),a=se(t,s),c=F(null);return G(()=>{const l=c.current;c.current=o?.current||s.current,l!==c.current&&i.onAnchorChange(c.current)}),o?null:k(ee.div,{...r,ref:a})});Mo.displayName=_o;var yn="PopperContent",[fa,pa]=To(yn),Lo=O((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:v,...u}=e,p=No(yn,n),[b,g]=M(null),y=se(t,A=>g(A)),[x,S]=M(null),P=ua(x),C=P?.width??0,E=P?.height??0,_=o+(i!=="center"?"-"+i:""),B=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(l)?l:[l],V=$.length>0,H={padding:B,boundary:$.filter(ha),altBoundary:V},{refs:W,floatingStyles:j,placement:I,isPositioned:D,middlewareData:w}=Js({strategy:"fixed",placement:_,whileElementsMounted:(...A)=>Hs(...A,{animationFrame:m==="always"}),elements:{reference:p.anchor},middleware:[ta({mainAxis:r+E,alignmentAxis:s}),c&&na({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?oa():void 0,...H}),c&&ra({...H}),ia({...H,apply:({elements:A,rects:q,availableWidth:te,availableHeight:U})=>{const{width:Y,height:Z}=q.reference,fe=A.floating.style;fe.setProperty("--radix-popper-available-width",`${te}px`),fe.setProperty("--radix-popper-available-height",`${U}px`),fe.setProperty("--radix-popper-anchor-width",`${Y}px`),fe.setProperty("--radix-popper-anchor-height",`${Z}px`)}}),x&&aa({element:x,padding:a}),ga({arrowWidth:C,arrowHeight:E}),h&&sa({strategy:"referenceHidden",...H})]}),[K,re]=Bo(I),be=We(v);ce(()=>{D&&be?.()},[D,be]);const Pe=w.arrow?.x,J=w.arrow?.y,Q=w.arrow?.centerOffset!==0,[pe,ye]=M();return ce(()=>{b&&ye(window.getComputedStyle(b).zIndex)},[b]),k("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:D?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[w.transformOrigin?.x,w.transformOrigin?.y].join(" "),...w.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:k(fa,{scope:n,placedSide:K,onArrowChange:S,arrowX:Pe,arrowY:J,shouldHideArrow:Q,children:k(ee.div,{"data-side":K,"data-align":re,...u,ref:y,style:{...u.style,animation:D?void 0:"none"}})})})});Lo.displayName=yn;var Do="PopperArrow",ma={top:"bottom",right:"left",bottom:"top",left:"right"},Fo=O(function(t,n){const{__scopePopper:o,...r}=t,i=pa(Do,o),s=ma[i.placedSide];return k("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:k(la,{...r,ref:n,style:{...r.style,display:"block"}})})});Fo.displayName=Do;function ha(e){return e!==null}var ga=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,d]=Bo(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(r.arrow?.x??0)+a/2,m=(r.arrow?.y??0)+c/2;let v="",u="";return l==="bottom"?(v=s?f:`${h}px`,u=`${-c}px`):l==="top"?(v=s?f:`${h}px`,u=`${o.floating.height+c}px`):l==="right"?(v=`${-c}px`,u=s?f:`${m}px`):l==="left"&&(v=`${o.floating.width+c}px`,u=s?f:`${m}px`),{data:{x:v,y:u}}}});function Bo(e){const[t,n="center"]=e.split("-");return[t,n]}var va=Io,ba=Mo,ya=Lo,wa=Fo,xa="Portal",Wo=O((e,t)=>{const{container:n,...o}=e,[r,i]=M(!1);ce(()=>i(!0),[]);const s=n||r&&globalThis?.document?.body;return s?cn.createPortal(k(ee.div,{...o,ref:t}),s):null});Wo.displayName=xa;function Sa(e){const t=Ca(e),n=O((o,r)=>{const{children:i,...s}=o,a=ie.toArray(i),c=a.find(Pa);if(c){const l=c.props.children,d=a.map(f=>f===c?ie.count(l)>1?ie.only(null):de(l)?l.props.children:null:f);return k(t,{...s,ref:r,children:de(l)?Me(l,void 0,d):null})}return k(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function Ca(e){const t=O((n,o)=>{const{children:r,...i}=n;if(de(r)){const s=ka(r),a=Aa(i,r.props);return r.type!==_e&&(a.ref=o?kt(o,s):s),Me(r,a)}return ie.count(r)>1?ie.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ea=Symbol("radix.slottable");function Pa(e){return de(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ea}function Aa(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function ka(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ra=ao[" useInsertionEffect ".trim().toString()]||ce;function Un({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,s]=Ta({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r;{const d=F(e!==void 0);G(()=>{const f=d.current;f!==a&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,o])}const l=X(d=>{if(a){const f=Oa(d)?d(e):d;f!==e&&s.current?.(f)}else i(d)},[a,e,i,s]);return[c,l]}function Ta({defaultProp:e,onChange:t}){const[n,o]=M(e),r=F(n),i=F(t);return Ra(()=>{i.current=t},[t]),G(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,o,i]}function Oa(e){return typeof e=="function"}function Na(e){const t=F({value:e,previous:e});return ae(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var zo=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ia="VisuallyHidden",_a=O((e,t)=>k(ee.span,{...e,ref:t,style:{...zo,...e.style}}));_a.displayName=Ia;var Ma=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},je=new WeakMap,ut=new WeakMap,dt={},jt=0,$o=function(e){return e&&(e.host||$o(e.parentNode))},La=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=$o(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Da=function(e,t,n,o){var r=La(t,Array.isArray(e)?e:[e]);dt[n]||(dt[n]=new WeakMap);var i=dt[n],s=[],a=new Set,c=new Set(r),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};r.forEach(l);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))d(h);else try{var m=h.getAttribute(o),v=m!==null&&m!=="false",u=(je.get(h)||0)+1,p=(i.get(h)||0)+1;je.set(h,u),i.set(h,p),s.push(h),u===1&&v&&ut.set(h,!0),p===1&&h.setAttribute(n,"true"),v||h.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return d(t),a.clear(),jt++,function(){s.forEach(function(f){var h=je.get(f)-1,m=i.get(f)-1;je.set(f,h),i.set(f,m),h||(ut.has(f)||f.removeAttribute(o),ut.delete(f)),m||f.removeAttribute(n)}),jt--,jt||(je=new WeakMap,je=new WeakMap,ut=new WeakMap,dt={})}},Fa=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Ma(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),Da(o,r,n,"aria-hidden")):function(){return null}},we=function(){return we=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},we.apply(this,arguments)};function Vo(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Ba(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var vt="right-scroll-bar-position",bt="width-before-scroll-bar",Wa="with-scroll-bars-hidden",za="--removed-body-scroll-bar-size";function Ut(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $a(e,t){var n=M(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Va=typeof window<"u"?At:G,Gn=new WeakMap;function Ha(e,t){var n=$a(null,function(o){return e.forEach(function(r){return Ut(r,o)})});return Va(function(){var o=Gn.get(n);if(o){var r=new Set(o),i=new Set(e),s=n.current;r.forEach(function(a){i.has(a)||Ut(a,null)}),i.forEach(function(a){r.has(a)||Ut(a,s)})}Gn.set(n,e)},[e]),n}function ja(e){return e}function Ua(e,t){t===void 0&&(t=ja);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,o);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(o=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){o=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var d=s;s=[],d.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(d){s.push(d),l()},filter:function(d){return s=s.filter(d),n}}}};return r}function Ga(e){e===void 0&&(e={});var t=Ua(null);return t.options=we({async:!0,ssr:!1},e),t}var Ho=function(e){var t=e.sideCar,n=Vo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return N(o,we({},n))};Ho.isSideCarExport=!0;function Ka(e,t){return e.useMedium(t),Ho}var jo=Ga(),Gt=function(){},It=O(function(e,t){var n=F(null),o=M({onScrollCapture:Gt,onWheelCapture:Gt,onTouchMoveCapture:Gt}),r=o[0],i=o[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,m=e.noRelative,v=e.noIsolation,u=e.inert,p=e.allowPinchZoom,b=e.as,g=b===void 0?"div":b,y=e.gapMode,x=Vo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,P=Ha([n,t]),C=we(we({},x),r);return N(_e,null,d&&N(S,{sideCar:jo,removeScrollBar:l,shards:f,noRelative:m,noIsolation:v,inert:u,setCallbacks:i,allowPinchZoom:!!p,lockRef:n,gapMode:y}),s?Me(ie.only(a),we(we({},C),{ref:P})):N(g,we({},C,{className:c,ref:P}),a))});It.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};It.classNames={fullWidth:bt,zeroRight:vt};var Ya=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Xa(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ya();return t&&e.setAttribute("nonce",t),e}function qa(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Za(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Qa=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Xa())&&(qa(t,n),Za(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ja=function(){var e=Qa();return function(t,n){G(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Uo=function(){var e=Ja(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},ec={left:0,top:0,right:0,gap:0},Kt=function(e){return parseInt(e||"",10)||0},tc=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Kt(n),Kt(o),Kt(r)]},nc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ec;var t=tc(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},oc=Uo(),Xe="data-scroll-locked",rc=function(e,t,n,o){var r=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
3
+ .`.concat(Wa,` {
4
+ overflow: hidden `).concat(o,`;
5
+ padding-right: `).concat(a,"px ").concat(o,`;
6
+ }
7
+ body[`).concat(Xe,`] {
8
+ overflow: hidden `).concat(o,`;
9
+ overscroll-behavior: contain;
10
+ `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
11
+ padding-left: `.concat(r,`px;
12
+ padding-top: `).concat(i,`px;
13
+ padding-right: `).concat(s,`px;
14
+ margin-left:0;
15
+ margin-top:0;
16
+ margin-right: `).concat(a,"px ").concat(o,`;
17
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";")].filter(Boolean).join(""),`
18
+ }
19
+
20
+ .`).concat(vt,` {
21
+ right: `).concat(a,"px ").concat(o,`;
22
+ }
23
+
24
+ .`).concat(bt,` {
25
+ margin-right: `).concat(a,"px ").concat(o,`;
26
+ }
27
+
28
+ .`).concat(vt," .").concat(vt,` {
29
+ right: 0 `).concat(o,`;
30
+ }
31
+
32
+ .`).concat(bt," .").concat(bt,` {
33
+ margin-right: 0 `).concat(o,`;
34
+ }
35
+
36
+ body[`).concat(Xe,`] {
37
+ `).concat(za,": ").concat(a,`px;
38
+ }
39
+ `)},Kn=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},ic=function(){G(function(){return document.body.setAttribute(Xe,(Kn()+1).toString()),function(){var e=Kn()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])},sc=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;ic();var i=ae(function(){return nc(r)},[r]);return N(oc,{styles:rc(i,!t,r,n?"":"!important")})},en=!1;if(typeof window<"u")try{var ft=Object.defineProperty({},"passive",{get:function(){return en=!0,!0}});window.addEventListener("test",ft,ft),window.removeEventListener("test",ft,ft)}catch{en=!1}var Ue=en?{passive:!1}:!1,ac=function(e){return e.tagName==="TEXTAREA"},Go=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ac(e)&&n[t]==="visible")},cc=function(e){return Go(e,"overflowY")},lc=function(e){return Go(e,"overflowX")},Yn=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Ko(e,o);if(r){var i=Yo(e,o),s=i[1],a=i[2];if(s>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},uc=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},dc=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Ko=function(e,t){return e==="v"?cc(t):lc(t)},Yo=function(e,t){return e==="v"?uc(t):dc(t)},fc=function(e,t){return e==="h"&&t==="rtl"?-1:1},pc=function(e,t,n,o,r){var i=fc(e,window.getComputedStyle(t).direction),s=i*o,a=n.target,c=t.contains(a),l=!1,d=s>0,f=0,h=0;do{if(!a)break;var m=Yo(e,a),v=m[0],u=m[1],p=m[2],b=u-p-i*v;(v||b)&&Ko(e,a)&&(f+=b,h+=v);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(f)<1||!d&&Math.abs(h)<1)&&(l=!0),l},pt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xn=function(e){return[e.deltaX,e.deltaY]},qn=function(e){return e&&"current"in e?e.current:e},mc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hc=function(e){return`
40
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
41
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
42
+ `)},gc=0,Ge=[];function vc(e){var t=F([]),n=F([0,0]),o=F(),r=M(gc++)[0],i=M(Uo)[0],s=F(e);G(function(){s.current=e},[e]),G(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var u=Ba([e.lockRef.current],(e.shards||[]).map(qn),!0).filter(Boolean);return u.forEach(function(p){return p.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),u.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=X(function(u,p){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!s.current.allowPinchZoom;var b=pt(u),g=n.current,y="deltaX"in u?u.deltaX:g[0]-b[0],x="deltaY"in u?u.deltaY:g[1]-b[1],S,P=u.target,C=Math.abs(y)>Math.abs(x)?"h":"v";if("touches"in u&&C==="h"&&P.type==="range")return!1;var E=window.getSelection(),_=E&&E.anchorNode,B=_?_===P||_.contains(P):!1;if(B)return!1;var $=Yn(C,P);if(!$)return!0;if($?S=C:(S=C==="v"?"h":"v",$=Yn(C,P)),!$)return!1;if(!o.current&&"changedTouches"in u&&(y||x)&&(o.current=S),!S)return!0;var V=o.current||S;return pc(V,p,u,V==="h"?y:x)},[]),c=X(function(u){var p=u;if(!(!Ge.length||Ge[Ge.length-1]!==i)){var b="deltaY"in p?Xn(p):pt(p),g=t.current.filter(function(S){return S.name===p.type&&(S.target===p.target||p.target===S.shadowParent)&&mc(S.delta,b)})[0];if(g&&g.should){p.cancelable&&p.preventDefault();return}if(!g){var y=(s.current.shards||[]).map(qn).filter(Boolean).filter(function(S){return S.contains(p.target)}),x=y.length>0?a(p,y[0]):!s.current.noIsolation;x&&p.cancelable&&p.preventDefault()}}},[]),l=X(function(u,p,b,g){var y={name:u,delta:p,target:b,should:g,shadowParent:bc(b)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(x){return x!==y})},1)},[]),d=X(function(u){n.current=pt(u),o.current=void 0},[]),f=X(function(u){l(u.type,Xn(u),u.target,a(u,e.lockRef.current))},[]),h=X(function(u){l(u.type,pt(u),u.target,a(u,e.lockRef.current))},[]);G(function(){return Ge.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Ue),document.addEventListener("touchmove",c,Ue),document.addEventListener("touchstart",d,Ue),function(){Ge=Ge.filter(function(u){return u!==i}),document.removeEventListener("wheel",c,Ue),document.removeEventListener("touchmove",c,Ue),document.removeEventListener("touchstart",d,Ue)}},[]);var m=e.removeScrollBar,v=e.inert;return N(_e,null,v?N(i,{styles:hc(r)}):null,m?N(sc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const yc=Ka(jo,vc);var Xo=O(function(e,t){return N(It,we({},e,{ref:t,sideCar:yc}))});Xo.classNames=It.classNames;var wc=[" ","Enter","ArrowUp","ArrowDown"],xc=[" ","Enter"],$e="Select",[_t,Mt,Sc]=Ci($e),[et]=un($e,[Sc,Oo]),Lt=Oo(),[Cc,Le]=et($e),[Ec,Pc]=et($e),qo=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:i,value:s,defaultValue:a,onValueChange:c,dir:l,name:d,autoComplete:f,disabled:h,required:m,form:v}=e,u=Lt(t),[p,b]=M(null),[g,y]=M(null),[x,S]=M(!1),P=Pi(l),[C,E]=Un({prop:o,defaultProp:r??!1,onChange:i,caller:$e}),[_,B]=Un({prop:s,defaultProp:a,onChange:c,caller:$e}),$=F(null),V=p?v||!!p.closest("form"):!0,[H,W]=M(new Set),j=Array.from(H).map(I=>I.props.value).join(";");return k(va,{...u,children:yt(Cc,{required:m,scope:t,trigger:p,onTriggerChange:b,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:x,onValueNodeHasChildrenChange:S,contentId:dn(),value:_,onValueChange:B,open:C,onOpenChange:E,dir:P,triggerPointerDownPosRef:$,disabled:h,children:[k(_t.Provider,{scope:t,children:k(Ec,{scope:e.__scopeSelect,onNativeOptionAdd:X(I=>{W(D=>new Set(D).add(I))},[]),onNativeOptionRemove:X(I=>{W(D=>{const w=new Set(D);return w.delete(I),w})},[]),children:n})}),V?yt(wr,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:_,onChange:I=>B(I.target.value),disabled:h,form:v,children:[_===void 0?k("option",{value:""}):null,Array.from(H)]},j):null]})})};qo.displayName=$e;var Zo="SelectTrigger",Qo=O((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,i=Lt(n),s=Le(Zo,n),a=s.disabled||o,c=se(t,s.onTriggerChange),l=Mt(n),d=F("touch"),[f,h,m]=Sr(u=>{const p=l().filter(y=>!y.disabled),b=p.find(y=>y.value===s.value),g=Cr(p,u,b);g!==void 0&&s.onValueChange(g.value)}),v=u=>{a||(s.onOpenChange(!0),m()),u&&(s.triggerPointerDownPosRef.current={x:Math.round(u.pageX),y:Math.round(u.pageY)})};return k(ba,{asChild:!0,...i,children:k(ee.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":xr(s.value)?"":void 0,...r,ref:c,onClick:ne(r.onClick,u=>{u.currentTarget.focus(),d.current!=="mouse"&&v(u)}),onPointerDown:ne(r.onPointerDown,u=>{d.current=u.pointerType;const p=u.target;p.hasPointerCapture(u.pointerId)&&p.releasePointerCapture(u.pointerId),u.button===0&&u.ctrlKey===!1&&u.pointerType==="mouse"&&(v(u),u.preventDefault())}),onKeyDown:ne(r.onKeyDown,u=>{const p=f.current!=="";!(u.ctrlKey||u.altKey||u.metaKey)&&u.key.length===1&&h(u.key),!(p&&u.key===" ")&&wc.includes(u.key)&&(v(),u.preventDefault())})})})});Qo.displayName=Zo;var Jo="SelectValue",er=O((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:i,placeholder:s="",...a}=e,c=Le(Jo,n),{onValueNodeHasChildrenChange:l}=c,d=i!==void 0,f=se(t,c.onValueNodeChange);return ce(()=>{l(d)},[l,d]),k(ee.span,{...a,ref:f,style:{pointerEvents:"none"},children:xr(c.value)?k(ln,{children:s}):i})});er.displayName=Jo;var Ac="SelectIcon",tr=O((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return k(ee.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});tr.displayName=Ac;var kc="SelectPortal",nr=e=>k(Wo,{asChild:!0,...e});nr.displayName=kc;var Ve="SelectContent",or=O((e,t)=>{const n=Le(Ve,e.__scopeSelect),[o,r]=M();if(ce(()=>{r(new DocumentFragment)},[]),!n.open){const i=o;return i?co(k(rr,{scope:e.__scopeSelect,children:k(_t.Slot,{scope:e.__scopeSelect,children:k("div",{children:e.children})})}),i):null}return k(ir,{...e,ref:t})});or.displayName=Ve;var me=10,[rr,De]=et(Ve),Rc="SelectContentImpl",Tc=Sa("SelectContent.RemoveScroll"),ir=O((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:c,align:l,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:v,hideWhenDetached:u,avoidCollisions:p,...b}=e,g=Le(Ve,n),[y,x]=M(null),[S,P]=M(null),C=se(t,A=>x(A)),[E,_]=M(null),[B,$]=M(null),V=Mt(n),[H,W]=M(!1),j=F(!1);G(()=>{if(y)return Fa(y)},[y]),Vi();const I=X(A=>{const[q,...te]=V().map(Z=>Z.ref.current),[U]=te.slice(-1),Y=document.activeElement;for(const Z of A)if(Z===Y||(Z?.scrollIntoView({block:"nearest"}),Z===q&&S&&(S.scrollTop=0),Z===U&&S&&(S.scrollTop=S.scrollHeight),Z?.focus(),document.activeElement!==Y))return},[V,S]),D=X(()=>I([E,y]),[I,E,y]);G(()=>{H&&D()},[H,D]);const{onOpenChange:w,triggerPointerDownPosRef:K}=g;G(()=>{if(y){let A={x:0,y:0};const q=U=>{A={x:Math.abs(Math.round(U.pageX)-(K.current?.x??0)),y:Math.abs(Math.round(U.pageY)-(K.current?.y??0))}},te=U=>{A.x<=10&&A.y<=10?U.preventDefault():y.contains(U.target)||w(!1),document.removeEventListener("pointermove",q),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",te,{capture:!0})}}},[y,w,K]),G(()=>{const A=()=>w(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[w]);const[re,be]=Sr(A=>{const q=V().filter(Y=>!Y.disabled),te=q.find(Y=>Y.ref.current===document.activeElement),U=Cr(q,A,te);U&&setTimeout(()=>U.ref.current.focus())}),Pe=X((A,q,te)=>{const U=!j.current&&!te;(g.value!==void 0&&g.value===q||U)&&(_(A),U&&(j.current=!0))},[g.value]),J=X(()=>y?.focus(),[y]),Q=X((A,q,te)=>{const U=!j.current&&!te;(g.value!==void 0&&g.value===q||U)&&$(A)},[g.value]),pe=o==="popper"?tn:sr,ye=pe===tn?{side:a,sideOffset:c,align:l,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:v,hideWhenDetached:u,avoidCollisions:p}:{};return k(rr,{scope:n,content:y,viewport:S,onViewportChange:P,itemRefCallback:Pe,selectedItem:E,onItemLeave:J,itemTextRefCallback:Q,focusSelectedItem:D,selectedItemText:B,position:o,isPositioned:H,searchRef:re,children:k(Xo,{as:Tc,allowPinchZoom:!0,children:k(ho,{asChild:!0,trapped:g.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:ne(r,A=>{g.trigger?.focus({preventScroll:!0}),A.preventDefault()}),children:k(po,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:k(pe,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:A=>A.preventDefault(),...b,...ye,onPlaced:()=>W(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:ne(b.onKeyDown,A=>{const q=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!q&&A.key.length===1&&be(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let U=V().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(A.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const Y=A.target,Z=U.indexOf(Y);U=U.slice(Z+1)}setTimeout(()=>I(U)),A.preventDefault()}})})})})})})});ir.displayName=Rc;var Oc="SelectItemAlignedPosition",sr=O((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,i=Le(Ve,n),s=De(Ve,n),[a,c]=M(null),[l,d]=M(null),f=se(t,C=>d(C)),h=Mt(n),m=F(!1),v=F(!0),{viewport:u,selectedItem:p,selectedItemText:b,focusSelectedItem:g}=s,y=X(()=>{if(i.trigger&&i.valueNode&&a&&l&&u&&p&&b){const C=i.trigger.getBoundingClientRect(),E=l.getBoundingClientRect(),_=i.valueNode.getBoundingClientRect(),B=b.getBoundingClientRect();if(i.dir!=="rtl"){const Y=B.left-E.left,Z=_.left-Y,fe=C.left-Z,Fe=C.width+fe,Dt=Math.max(Fe,E.width),Ft=window.innerWidth-me,Bt=En(Z,[me,Math.max(me,Ft-Dt)]);a.style.minWidth=Fe+"px",a.style.left=Bt+"px"}else{const Y=E.right-B.right,Z=window.innerWidth-_.right-Y,fe=window.innerWidth-C.right-Z,Fe=C.width+fe,Dt=Math.max(Fe,E.width),Ft=window.innerWidth-me,Bt=En(Z,[me,Math.max(me,Ft-Dt)]);a.style.minWidth=Fe+"px",a.style.right=Bt+"px"}const $=h(),V=window.innerHeight-me*2,H=u.scrollHeight,W=window.getComputedStyle(l),j=parseInt(W.borderTopWidth,10),I=parseInt(W.paddingTop,10),D=parseInt(W.borderBottomWidth,10),w=parseInt(W.paddingBottom,10),K=j+I+H+w+D,re=Math.min(p.offsetHeight*5,K),be=window.getComputedStyle(u),Pe=parseInt(be.paddingTop,10),J=parseInt(be.paddingBottom,10),Q=C.top+C.height/2-me,pe=V-Q,ye=p.offsetHeight/2,A=p.offsetTop+ye,q=j+I+A,te=K-q;if(q<=Q){const Y=$.length>0&&p===$[$.length-1].ref.current;a.style.bottom="0px";const Z=l.clientHeight-u.offsetTop-u.offsetHeight,fe=Math.max(pe,ye+(Y?J:0)+Z+D),Fe=q+fe;a.style.height=Fe+"px"}else{const Y=$.length>0&&p===$[0].ref.current;a.style.top="0px";const fe=Math.max(Q,j+u.offsetTop+(Y?Pe:0)+ye)+te;a.style.height=fe+"px",u.scrollTop=q-Q+u.offsetTop}a.style.margin=`${me}px 0`,a.style.minHeight=re+"px",a.style.maxHeight=V+"px",o?.(),requestAnimationFrame(()=>m.current=!0)}},[h,i.trigger,i.valueNode,a,l,u,p,b,i.dir,o]);ce(()=>y(),[y]);const[x,S]=M();ce(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);const P=X(C=>{C&&v.current===!0&&(y(),g?.(),v.current=!1)},[y,g]);return k(Ic,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:P,children:k("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x},children:k(ee.div,{...r,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});sr.displayName=Oc;var Nc="SelectPopperPosition",tn=O((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=me,...i}=e,s=Lt(n);return k(ya,{...s,...i,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});tn.displayName=Nc;var[Ic,wn]=et(Ve,{}),nn="SelectViewport",ar=O((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,i=De(nn,n),s=wn(nn,n),a=se(t,i.onViewportChange),c=F(0);return yt(ln,{children:[k("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),k(_t.Slot,{scope:n,children:k(ee.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:ne(r.onScroll,l=>{const d=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=s;if(h?.current&&f){const m=Math.abs(c.current-d.scrollTop);if(m>0){const v=window.innerHeight-me*2,u=parseFloat(f.style.minHeight),p=parseFloat(f.style.height),b=Math.max(u,p);if(b<v){const g=b+m,y=Math.min(v,g),x=g-y;f.style.height=y+"px",f.style.bottom==="0px"&&(d.scrollTop=x>0?x:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});ar.displayName=nn;var cr="SelectGroup",[_c,Mc]=et(cr),Lc=O((e,t)=>{const{__scopeSelect:n,...o}=e,r=dn();return k(_c,{scope:n,id:r,children:k(ee.div,{role:"group","aria-labelledby":r,...o,ref:t})})});Lc.displayName=cr;var lr="SelectLabel",ur=O((e,t)=>{const{__scopeSelect:n,...o}=e,r=Mc(lr,n);return k(ee.div,{id:r.id,...o,ref:t})});ur.displayName=lr;var Et="SelectItem",[Dc,dr]=et(Et),fr=O((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:i,...s}=e,a=Le(Et,n),c=De(Et,n),l=a.value===o,[d,f]=M(i??""),[h,m]=M(!1),v=se(t,g=>c.itemRefCallback?.(g,o,r)),u=dn(),p=F("touch"),b=()=>{r||(a.onValueChange(o),a.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return k(Dc,{scope:n,value:o,disabled:r,textId:u,isSelected:l,onItemTextChange:X(g=>{f(y=>y||(g?.textContent??"").trim())},[]),children:k(_t.ItemSlot,{scope:n,value:o,disabled:r,textValue:d,children:k(ee.div,{role:"option","aria-labelledby":u,"data-highlighted":h?"":void 0,"aria-selected":l&&h,"data-state":l?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...s,ref:v,onFocus:ne(s.onFocus,()=>m(!0)),onBlur:ne(s.onBlur,()=>m(!1)),onClick:ne(s.onClick,()=>{p.current!=="mouse"&&b()}),onPointerUp:ne(s.onPointerUp,()=>{p.current==="mouse"&&b()}),onPointerDown:ne(s.onPointerDown,g=>{p.current=g.pointerType}),onPointerMove:ne(s.onPointerMove,g=>{p.current=g.pointerType,r?c.onItemLeave?.():p.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ne(s.onPointerLeave,g=>{g.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:ne(s.onKeyDown,g=>{c.searchRef?.current!==""&&g.key===" "||(xc.includes(g.key)&&b(),g.key===" "&&g.preventDefault())})})})})});fr.displayName=Et;var rt="SelectItemText",pr=O((e,t)=>{const{__scopeSelect:n,className:o,style:r,...i}=e,s=Le(rt,n),a=De(rt,n),c=dr(rt,n),l=Pc(rt,n),[d,f]=M(null),h=se(t,b=>f(b),c.onItemTextChange,b=>a.itemTextRefCallback?.(b,c.value,c.disabled)),m=d?.textContent,v=ae(()=>k("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:u,onNativeOptionRemove:p}=l;return ce(()=>(u(v),()=>p(v)),[u,p,v]),yt(ln,{children:[k(ee.span,{id:c.textId,...i,ref:h}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?co(i.children,s.valueNode):null]})});pr.displayName=rt;var mr="SelectItemIndicator",hr=O((e,t)=>{const{__scopeSelect:n,...o}=e;return dr(mr,n).isSelected?k(ee.span,{"aria-hidden":!0,...o,ref:t}):null});hr.displayName=mr;var on="SelectScrollUpButton",gr=O((e,t)=>{const n=De(on,e.__scopeSelect),o=wn(on,e.__scopeSelect),[r,i]=M(!1),s=se(t,o.onScrollButtonChange);return ce(()=>{if(n.viewport&&n.isPositioned){let a=function(){const l=c.scrollTop>0;i(l)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?k(br,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});gr.displayName=on;var rn="SelectScrollDownButton",vr=O((e,t)=>{const n=De(rn,e.__scopeSelect),o=wn(rn,e.__scopeSelect),[r,i]=M(!1),s=se(t,o.onScrollButtonChange);return ce(()=>{if(n.viewport&&n.isPositioned){let a=function(){const l=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<l;i(d)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?k(br,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});vr.displayName=rn;var br=O((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,i=De("SelectScrollButton",n),s=F(null),a=Mt(n),c=X(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return G(()=>()=>c(),[c]),ce(()=>{a().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),k(ee.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:ne(r.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(o,50))}),onPointerMove:ne(r.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:ne(r.onPointerLeave,()=>{c()})})}),Fc="SelectSeparator",yr=O((e,t)=>{const{__scopeSelect:n,...o}=e;return k(ee.div,{"aria-hidden":!0,...o,ref:t})});yr.displayName=Fc;var sn="SelectArrow",Bc=O((e,t)=>{const{__scopeSelect:n,...o}=e,r=Lt(n),i=Le(sn,n),s=De(sn,n);return i.open&&s.position==="popper"?k(wa,{...r,...o,ref:t}):null});Bc.displayName=sn;var Wc="SelectBubbleInput",wr=O(({__scopeSelect:e,value:t,...n},o)=>{const r=F(null),i=se(o,r),s=Na(t);return G(()=>{const a=r.current;if(!a)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&d){const f=new Event("change",{bubbles:!0});d.call(a,t),a.dispatchEvent(f)}},[s,t]),k(ee.select,{...n,style:{...zo,...n.style},ref:i,defaultValue:t})});wr.displayName=Wc;function xr(e){return e===""||e===void 0}function Sr(e){const t=We(e),n=F(""),o=F(0),r=X(s=>{const a=n.current+s;t(a),(function c(l){n.current=l,window.clearTimeout(o.current),l!==""&&(o.current=window.setTimeout(()=>c(""),1e3))})(a)},[t]),i=X(()=>{n.current="",window.clearTimeout(o.current)},[]);return G(()=>()=>window.clearTimeout(o.current),[]),[n,r,i]}function Cr(e,t,n){const r=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=zc(e,Math.max(i,0));r.length===1&&(s=s.filter(l=>l!==n));const c=s.find(l=>l.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==n?c:void 0}function zc(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var $c=qo,Er=Qo,Pr=er,Vc=tr,Hc=nr,Ar=or,jc=ar,kr=ur,Rr=fr,Uc=pr,Gc=hr,Tr=gr,Or=vr,Nr=yr;const Kc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Yc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase()),Zn=e=>{const t=Yc(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ir=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim(),Xc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var qc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Zc=O(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:i,iconNode:s,...a},c)=>N("svg",{ref:c,...qc,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:Ir("lucide",r),...!i&&!Xc(a)&&{"aria-hidden":"true"},...a},[...s.map(([l,d])=>N(l,d)),...Array.isArray(i)?i:[i]]));const xn=(e,t)=>{const n=O(({className:o,...r},i)=>N(Zc,{ref:i,iconNode:t,className:Ir(`lucide-${Kc(Zn(e))}`,`lucide-${e}`,o),...r}));return n.displayName=Zn(e),n};const Qc=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Jc=xn("check",Qc);const el=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Sn=xn("chevron-down",el);const tl=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],nl=xn("chevron-up",tl);function _r(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=_r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ol(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=_r(e))&&(o&&(o+=" "),o+=t);return o}const rl=(e,t)=>{const n=new Array(e.length+t.length);for(let o=0;o<e.length;o++)n[o]=e[o];for(let o=0;o<t.length;o++)n[e.length+o]=t[o];return n},il=(e,t)=>({classGroupId:e,validator:t}),Mr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Pt="-",Qn=[],sl="arbitrary..",al=e=>{const t=ll(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return cl(s);const a=s.split(Pt),c=a[0]===""&&a.length>1?1:0;return Lr(a,c,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const c=o[s],l=n[s];return c?l?rl(l,c):c:l||Qn}return n[s]||Qn}}},Lr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],i=n.nextPart.get(r);if(i){const l=Lr(e,t+1,i);if(l)return l}const s=n.validators;if(s===null)return;const a=t===0?e.join(Pt):e.slice(t).join(Pt),c=s.length;for(let l=0;l<c;l++){const d=s[l];if(d.validator(a))return d.classGroupId}},cl=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?sl+o:void 0})(),ll=e=>{const{theme:t,classGroups:n}=e;return ul(n,t)},ul=(e,t)=>{const n=Mr();for(const o in e){const r=e[o];Cn(r,n,o,t)}return n},Cn=(e,t,n,o)=>{const r=e.length;for(let i=0;i<r;i++){const s=e[i];dl(s,t,n,o)}},dl=(e,t,n,o)=>{if(typeof e=="string"){fl(e,t,n);return}if(typeof e=="function"){pl(e,t,n,o);return}ml(e,t,n,o)},fl=(e,t,n)=>{const o=e===""?t:Dr(t,e);o.classGroupId=n},pl=(e,t,n,o)=>{if(hl(e)){Cn(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(il(n,e))},ml=(e,t,n,o)=>{const r=Object.entries(e),i=r.length;for(let s=0;s<i;s++){const[a,c]=r[s];Cn(c,Dr(t,a),n,o)}},Dr=(e,t)=>{let n=e;const o=t.split(Pt),r=o.length;for(let i=0;i<r;i++){const s=o[i];let a=n.nextPart.get(s);a||(a=Mr(),n.nextPart.set(s,a)),n=a}return n},hl=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,gl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const r=(i,s)=>{n[i]=s,t++,t>e&&(t=0,o=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=o[i])!==void 0)return r(i,s),s},set(i,s){i in n?n[i]=s:r(i,s)}}},an="!",Jn=":",vl=[],eo=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),bl=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const i=[];let s=0,a=0,c=0,l;const d=r.length;for(let u=0;u<d;u++){const p=r[u];if(s===0&&a===0){if(p===Jn){i.push(r.slice(c,u)),c=u+1;continue}if(p==="/"){l=u;continue}}p==="["?s++:p==="]"?s--:p==="("?a++:p===")"&&a--}const f=i.length===0?r:r.slice(c);let h=f,m=!1;f.endsWith(an)?(h=f.slice(0,-1),m=!0):f.startsWith(an)&&(h=f.slice(1),m=!0);const v=l&&l>c?l-c:void 0;return eo(i,m,h,v)};if(t){const r=t+Jn,i=o;o=s=>s.startsWith(r)?i(s.slice(r.length)):eo(vl,!1,s,void 0,!0)}if(n){const r=o;o=i=>n({className:i,parseClassName:r})}return o},yl=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let i=0;i<n.length;i++){const s=n[i],a=s[0]==="[",c=t.has(s);a||c?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},wl=e=>({cache:gl(e.cacheSize),parseClassName:bl(e),sortModifiers:yl(e),...al(e)}),xl=/\s+/,Sl=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:i}=t,s=[],a=e.trim().split(xl);let c="";for(let l=a.length-1;l>=0;l-=1){const d=a[l],{isExternal:f,modifiers:h,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:u}=n(d);if(f){c=d+(c.length>0?" "+c:c);continue}let p=!!u,b=o(p?v.substring(0,u):v);if(!b){if(!p){c=d+(c.length>0?" "+c:c);continue}if(b=o(v),!b){c=d+(c.length>0?" "+c:c);continue}p=!1}const g=h.length===0?"":h.length===1?h[0]:i(h).join(":"),y=m?g+an:g,x=y+b;if(s.indexOf(x)>-1)continue;s.push(x);const S=r(b,p);for(let P=0;P<S.length;++P){const C=S[P];s.push(y+C)}c=d+(c.length>0?" "+c:c)}return c},Cl=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=Fr(n))&&(r&&(r+=" "),r+=o);return r},Fr=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=Fr(e[o]))&&(n&&(n+=" "),n+=t);return n},El=(e,...t)=>{let n,o,r,i;const s=c=>{const l=t.reduce((d,f)=>f(d),e());return n=wl(l),o=n.cache.get,r=n.cache.set,i=a,a(c)},a=c=>{const l=o(c);if(l)return l;const d=Sl(c,n);return r(c,d),d};return i=s,(...c)=>i(Cl(...c))},Pl=[],oe=e=>{const t=n=>n[e]||Pl;return t.isThemeGetter=!0,t},Br=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Wr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Al=/^\d+\/\d+$/,kl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rl=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Tl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ol=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ke=e=>Al.test(e),L=e=>!!e&&!Number.isNaN(Number(e)),Te=e=>!!e&&Number.isInteger(Number(e)),Yt=e=>e.endsWith("%")&&L(e.slice(0,-1)),Ae=e=>kl.test(e),Il=()=>!0,_l=e=>Rl.test(e)&&!Tl.test(e),zr=()=>!1,Ml=e=>Ol.test(e),Ll=e=>Nl.test(e),Dl=e=>!R(e)&&!T(e),Fl=e=>tt(e,Hr,zr),R=e=>Br.test(e),Be=e=>tt(e,jr,_l),Xt=e=>tt(e,Vl,L),to=e=>tt(e,$r,zr),Bl=e=>tt(e,Vr,Ll),mt=e=>tt(e,Ur,Ml),T=e=>Wr.test(e),ot=e=>nt(e,jr),Wl=e=>nt(e,Hl),no=e=>nt(e,$r),zl=e=>nt(e,Hr),$l=e=>nt(e,Vr),ht=e=>nt(e,Ur,!0),tt=(e,t,n)=>{const o=Br.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},nt=(e,t,n=!1)=>{const o=Wr.exec(e);return o?o[1]?t(o[1]):n:!1},$r=e=>e==="position"||e==="percentage",Vr=e=>e==="image"||e==="url",Hr=e=>e==="length"||e==="size"||e==="bg-size",jr=e=>e==="length",Vl=e=>e==="number",Hl=e=>e==="family-name",Ur=e=>e==="shadow",jl=()=>{const e=oe("color"),t=oe("font"),n=oe("text"),o=oe("font-weight"),r=oe("tracking"),i=oe("leading"),s=oe("breakpoint"),a=oe("container"),c=oe("spacing"),l=oe("radius"),d=oe("shadow"),f=oe("inset-shadow"),h=oe("text-shadow"),m=oe("drop-shadow"),v=oe("blur"),u=oe("perspective"),p=oe("aspect"),b=oe("ease"),g=oe("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...x(),T,R],P=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],E=()=>[T,R,c],_=()=>[Ke,"full","auto",...E()],B=()=>[Te,"none","subgrid",T,R],$=()=>["auto",{span:["full",Te,T,R]},Te,T,R],V=()=>[Te,"auto",T,R],H=()=>["auto","min","max","fr",T,R],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...E()],D=()=>[Ke,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],w=()=>[e,T,R],K=()=>[...x(),no,to,{position:[T,R]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],be=()=>["auto","cover","contain",zl,Fl,{size:[T,R]}],Pe=()=>[Yt,ot,Be],J=()=>["","none","full",l,T,R],Q=()=>["",L,ot,Be],pe=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[L,Yt,no,to],q=()=>["","none",v,T,R],te=()=>["none",L,T,R],U=()=>["none",L,T,R],Y=()=>[L,T,R],Z=()=>[Ke,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ae],breakpoint:[Ae],color:[Il],container:[Ae],"drop-shadow":[Ae],ease:["in","out","in-out"],font:[Dl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ae],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ae],shadow:[Ae],spacing:["px",L],text:[Ae],"text-shadow":[Ae],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ke,R,T,p]}],container:["container"],columns:[{columns:[L,R,T,a]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[Te,"auto",T,R]}],basis:[{basis:[Ke,"full","auto",a,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[L,Ke,"auto","initial","none",R]}],grow:[{grow:["",L,T,R]}],shrink:[{shrink:["",L,T,R]}],order:[{order:[Te,"first","last","none",T,R]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],w:[{w:[a,"screen",...D()]}],"min-w":[{"min-w":[a,"screen","none",...D()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",n,ot,Be]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,T,Xt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yt,R]}],"font-family":[{font:[Wl,R,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,T,R]}],"line-clamp":[{"line-clamp":[L,"none",T,Xt]}],leading:[{leading:[i,...E()]}],"list-image":[{"list-image":["none",T,R]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",T,R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[L,"from-font","auto",T,Be]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[L,"auto",T,R]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",T,R]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",T,R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:be()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Te,T,R],radial:["",T,R],conic:[Te,T,R]},$l,Bl]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:Pe()}],"gradient-via-pos":[{via:Pe()}],"gradient-to-pos":[{to:Pe()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[L,T,R]}],"outline-w":[{outline:["",L,ot,Be]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",d,ht,mt]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",f,ht,mt]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[L,Be]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",h,ht,mt]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[L,T,R]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[L]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[T,R]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[L]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:be()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",T,R]}],filter:[{filter:["","none",T,R]}],blur:[{blur:q()}],brightness:[{brightness:[L,T,R]}],contrast:[{contrast:[L,T,R]}],"drop-shadow":[{"drop-shadow":["","none",m,ht,mt]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",L,T,R]}],"hue-rotate":[{"hue-rotate":[L,T,R]}],invert:[{invert:["",L,T,R]}],saturate:[{saturate:[L,T,R]}],sepia:[{sepia:["",L,T,R]}],"backdrop-filter":[{"backdrop-filter":["","none",T,R]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[L,T,R]}],"backdrop-contrast":[{"backdrop-contrast":[L,T,R]}],"backdrop-grayscale":[{"backdrop-grayscale":["",L,T,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L,T,R]}],"backdrop-invert":[{"backdrop-invert":["",L,T,R]}],"backdrop-opacity":[{"backdrop-opacity":[L,T,R]}],"backdrop-saturate":[{"backdrop-saturate":[L,T,R]}],"backdrop-sepia":[{"backdrop-sepia":["",L,T,R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",T,R]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[L,"initial",T,R]}],ease:[{ease:["linear","initial",b,T,R]}],delay:[{delay:[L,T,R]}],animate:[{animate:["none",g,T,R]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[u,T,R]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:Y()}],"skew-x":[{"skew-x":Y()}],"skew-y":[{"skew-y":Y()}],transform:[{transform:[T,R,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",T,R]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",T,R]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[L,ot,Be,Xt]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ul=El(jl);function ve(...e){return Ul(ol(e))}function Gl(e,t){const n=t.map(({attribute:o,className:r,value:i})=>`${o}:${i??"__present__"}:${r}`).join("|");G(()=>{const o=e.current;if(!o)return;const r=()=>{for(const s of t){const a=o.getAttribute(s.attribute),c=s.value===void 0?a!==null:a===s.value;o.classList.toggle(s.className,c)}};r();const i=new MutationObserver(r);return i.observe(o,{attributes:!0,attributeFilter:[...new Set(t.map(s=>s.attribute))]}),()=>i.disconnect()},[e,t,n])}const at="default",Gr=qe({themeName:at,themeBase:at,portalContainer:null});function Kl(e){const t=String(e??at).trim();return t.length>0?t:at}function Yl(e){return Kl(e).toLowerCase().replace(/[^a-z0-9_-]+/g,"-").replace(/^-+|-+$/g,"")||at}function Xl(){return He(Gr).themeName}function Kr(){return Yl(Xl())}function ql(){return He(Gr).portalContainer}function Zl(e){const t=Kr();return ve("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border bg-[var(--tdg-select-bg)] px-3 py-2 text-sm text-[var(--tdg-select-color)] shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground [border-color:var(--tdg-select-border-color)] hover:[border-color:var(--tdg-select-border-color-hover)] focus:outline-none focus:ring-1 focus:ring-ring focus:[border-color:var(--tdg-select-border-color-focus)] disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","tdg-select-trigger","inovua-react-toolkit-combo-box inovua-react-toolkit-combo-box--ltr",`inovua-react-toolkit-combo-box--theme-${t}`,e?.disabled?"inovua-react-toolkit-combo-box--disabled":"",e?.focused?"inovua-react-toolkit-combo-box--focus":"")}const Ql=$c,Yr=O(({className:e,...t},n)=>N(Pr,{ref:n,className:ve("inovua-react-toolkit-combo-box__value__display-value",e),...t}));Yr.displayName=Pr.displayName;const Xr="tdg-select-toggle-icon inovua-react-toolkit-combo-box__toggle-icon h-4 w-4 opacity-50";function Jl({children:e,icon:t}){return N(_e,null,N("span",{className:"tdg-select-value inovua-react-toolkit-combo-box__value inovua-react-toolkit-combo-box__value--no-wrap flex min-w-0 flex-1 items-center"},e),N("span",{className:"tdg-select-tools inovua-react-toolkit-combo-box__tools"},t??N(Sn,{className:Xr})))}const qr=O(({className:e,children:t,onFocus:n,onBlur:o,disabled:r,...i},s)=>{const[a,c]=M(!1),l=Zl({disabled:r,focused:a});return N(Er,{ref:s,className:ve(l,e),disabled:r,onFocus:d=>{c(!0),n?.(d)},onBlur:d=>{c(!1),o?.(d)},...i},N(Jl,{icon:N(Vc,{asChild:!0},N(Sn,{className:Xr}))},t))});qr.displayName=Er.displayName;const Zr=O(({className:e,...t},n)=>N(Tr,{ref:n,className:ve("flex cursor-default items-center justify-center py-1",e),...t},N(nl,{className:"h-4 w-4"})));Zr.displayName=Tr.displayName;const Qr=O(({className:e,...t},n)=>N(Or,{ref:n,className:ve("flex cursor-default items-center justify-center py-1",e),...t},N(Sn,{className:"h-4 w-4"})));Qr.displayName=Or.displayName;const Jr=O(({className:e,children:t,position:n="popper",...o},r)=>{const i=ql(),s=Kr();return N(Hc,{container:i??void 0},N(Ar,{ref:r,className:ve("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]","tdg-select-content","inovua-react-toolkit-combo-box__list",`inovua-react-toolkit-combo-box__list--theme-${s}`,n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...o},N(Zr,null),N(jc,{className:ve("p-1","tdg-select-viewport","inovua-react-toolkit-combo-box__list__virtual-list",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")},t),N(Qr,null)))});Jr.displayName=Ar.displayName;const eu=O(({className:e,...t},n)=>N(kr,{ref:n,className:ve("px-2 py-1.5 text-sm font-semibold",e),...t}));eu.displayName=kr.displayName;const ei=O(({className:e,children:t,...n},o)=>{const r=F(null);return so(o,()=>r.current),Gl(r,[{attribute:"data-state",value:"checked",className:"inovua-react-toolkit-combo-box__list__item--selected"},{attribute:"data-highlighted",className:"inovua-react-toolkit-combo-box__list__item--active"},{attribute:"data-disabled",className:"inovua-react-toolkit-combo-box__list__item--disabled"}]),N(Rr,{ref:r,className:ve("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50","tdg-select-item","inovua-react-toolkit-combo-box__list__item",e),...n},N("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},N(Gc,null,N(Jc,{className:"h-4 w-4"}))),N(Uc,null,t))});ei.displayName=Rr.displayName;const tu=O(({className:e,...t},n)=>N(Nr,{ref:n,className:ve("-mx-1 my-1 h-px bg-muted [background:var(--tdg-color-muted)]",e),...t}));tu.displayName=Nr.displayName;const nu="InovuaReactDataGrid__cell__editor",ou="tdg-cell-editor-shell";function ru(e){return e?nu:ou}function iu(e,t=[]){if(!e)return{};const n={};for(const[o,r]of Object.entries(e))o==="seamless"||t.includes(o)||(n[o]=r);return n}function su(e){return Array.isArray(e)?e.map(t=>{if(t!=null&&typeof t=="object"){const n=t.id??t.value??null;return{key:String(n??""),raw:n,label:t.label??String(n??"")}}return{key:String(t??""),raw:t,label:String(t??"")}}):[]}function au({value:e=null,onChange:t,onComplete:n,onCancel:o,onTabNavigation:r,onKeyDown:i,autoFocus:s,disabled:a,readOnly:c,rtl:l,seamless:d,className:f,style:h,editorProps:m,dataSource:v,options:u,placeholder:p="Select…"}){const b=F(null),[g,y]=M(!!s),x=ae(()=>su(v??u),[v,u]),S=ae(()=>new Map(x.map(P=>[P.key,P])),[x]);return G(()=>{s&&b.current?.focus()},[s]),N(Ql,{open:g,onOpenChange:y,value:e==null?void 0:String(e),disabled:a||c,onValueChange:P=>{const C=S.get(P)?.raw??P;t?.(C),window.setTimeout(()=>n?.(C),0)}},N(qr,{...iu(m,["dataSource","options","placeholder"]),ref:b,dir:l?"rtl":"ltr",className:ve("h-full w-full",ru(d),f),style:h,"data-slot":"select-editor",onBlur:P=>{g||n?.(e,P)},onKeyDown:P=>{i?.(P),!P.defaultPrevented&&(P.key==="Escape"&&!g?(P.preventDefault(),o?.(P)):P.key==="Tab"&&(P.preventDefault(),r?.(!0,P.shiftKey?-1:1,P)))}},N(Yr,{placeholder:p})),N(Jr,null,x.map(P=>N(ei,{key:P.key,value:P.key},P.label))))}module.exports=au;