munza-x-data-grid 3.1.4 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +11 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
`},Wr=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Gr=function(){c.useEffect(function(){return document.body.setAttribute(Hr,(Wr()+1).toString()),function(){var e=Wr()-1;e<=0?document.body.removeAttribute(Hr):document.body.setAttribute(Hr,e.toString())}},[])},Kr=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Gr();var a=c.useMemo(function(){return Br(i)},[i]);return c.createElement(Vr,{styles:Ur(a,!t,i,n?``:`!important`)})},qr=!1;if(typeof window<`u`)try{var Jr=Object.defineProperty({},"passive",{get:function(){return qr=!0,!0}});window.addEventListener(`test`,Jr,Jr),window.removeEventListener(`test`,Jr,Jr)}catch{qr=!1}var Yr=qr?{passive:!1}:!1,Xr=function(e){return e.tagName===`TEXTAREA`},Zr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Xr(e)&&n[t]===`visible`)},Qr=function(e){return Zr(e,`overflowY`)},$r=function(e){return Zr(e,`overflowX`)},ei=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),ri(e,r)){var i=ii(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ti=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},ni=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},ri=function(e,t){return e===`v`?Qr(t):$r(t)},ii=function(e,t){return e===`v`?ti(t):ni(t)},ai=function(e,t){return e===`h`&&t===`rtl`?-1:1},oi=function(e,t,n,r,i){var a=ai(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=ii(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&ri(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},si=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ci=function(e){return[e.deltaX,e.deltaY]},li=function(e){return e&&`current`in e?e.current:e},ui=function(e,t){return e[0]===t[0]&&e[1]===t[1]},di=function(e){return`
|
|
42
42
|
.block-interactivity-${e} {pointer-events: none;}
|
|
43
43
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
44
|
-
`},fi=0,pi=[];function mi(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(fi++)[0],a=c.useState(Ir)[0],o=c.useRef(e);c.useEffect(function(){o.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=dr([e.lockRef.current],(e.shards||[]).map(li),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=si(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=ei(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=ei(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return oi(h,t,e,h===`h`?s:c,!0)},[]),l=c.useCallback(function(e){var n=e;if(!(!pi.length||pi[pi.length-1]!==a)){var r=`deltaY`in n?ci(n):si(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&ui(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(li).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=c.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:hi(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=c.useCallback(function(e){n.current=si(e),r.current=void 0},[]),f=c.useCallback(function(t){u(t.type,ci(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){u(t.type,si(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return pi.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,Yr),document.addEventListener(`touchmove`,l,Yr),document.addEventListener(`touchstart`,d,Yr),function(){pi=pi.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,l,Yr),document.removeEventListener(`touchmove`,l,Yr),document.removeEventListener(`touchstart`,d,Yr)}},[]);var m=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:di(i)}):null,m?c.createElement(Kr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function hi(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var gi=Tr(Er,mi),_i=c.forwardRef(function(e,t){return c.createElement(Or,lr({},e,{ref:t,sideCar:gi}))});_i.classNames=Or.classNames;var vi=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},yi=new WeakMap,bi=new WeakMap,xi={},Si=0,Ci=function(e){return e&&(e.host||Ci(e.parentNode))},wi=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ci(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Ti=function(e,t,n,r){var i=wi(t,Array.isArray(e)?e:[e]);xi[n]||(xi[n]=new WeakMap);var a=xi[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(yi.get(e)||0)+1,l=(a.get(e)||0)+1;yi.set(e,c),a.set(e,l),o.push(e),c===1&&i&&bi.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Si++,function(){o.forEach(function(e){var t=yi.get(e)-1,i=a.get(e)-1;yi.set(e,t),a.set(e,i),t||(bi.has(e)||e.removeAttribute(r),bi.delete(e)),i||e.removeAttribute(n)}),Si--,Si||(yi=new WeakMap,yi=new WeakMap,bi=new WeakMap,xi={})}},Ei=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||vi(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Ti(r,i,n,`aria-hidden`)):function(){return null}};function Di(e){let t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Oi(e){let[t,n]=l.useState(void 0);return Yt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var ki=`Checkbox`,[Ai,ji]=Kt(ki),[Mi,Ni]=Ai(ki);function Pi(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:d,value:f=`on`,internal_do_not_use_render:p}=e,[m,h]=Zt({prop:n,defaultProp:i??!1,onChange:c,caller:ki}),[g,_]=l.useState(null),[v,y]=l.useState(null),b=l.useRef(!1),x=!g||!!o||!!g.closest(`form`),S={checked:m,disabled:a,setChecked:h,control:g,setControl:_,name:s,form:o,value:f,hasConsumerStoppedPropagationRef:b,required:d,defaultChecked:!Ui(i)&&i,isFormControl:x,bubbleInput:v,setBubbleInput:y};return(0,u.jsx)(Mi,{scope:t,...S,children:Hi(p)?p(S):r})}var Fi=`CheckboxTrigger`,Ii=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{let{control:a,value:o,disabled:s,checked:c,required:d,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:g}=Ni(Fi,e),_=U(i,f),v=l.useRef(c);return l.useEffect(()=>{let e=a?.form;if(e){let t=()=>p(v.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,p]),(0,u.jsx)(W.button,{type:`button`,role:`checkbox`,"aria-checked":Ui(c)?`mixed`:c,"aria-required":d,"data-state":Wi(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:_,onKeyDown:G(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:G(n,e=>{p(e=>Ui(e)?!0:!e),g&&h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});Ii.displayName=Fi;var Li=l.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:d,...f}=e;return(0,u.jsx)(Pi,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:d,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Ii,{...f,ref:t,__scopeCheckbox:n}),e&&(0,u.jsx)(Vi,{__scopeCheckbox:n})]})})});Li.displayName=ki;var Ri=`CheckboxIndicator`,zi=l.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=Ni(Ri,n);return(0,u.jsx)(tn,{present:r||Ui(a.checked)||a.checked===!0,children:(0,u.jsx)(W.span,{"data-state":Wi(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});zi.displayName=Ri;var Bi=`CheckboxBubbleInput`,Vi=l.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:d,value:f,form:p,bubbleInput:m,setBubbleInput:h}=Ni(Bi,e),g=U(n,h),_=Di(a),v=Oi(r);l.useEffect(()=>{let e=m;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(_!==a&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=Ui(a),n.call(e,!Ui(a)&&a),e.dispatchEvent(t)}},[m,_,a,i]);let y=l.useRef(!Ui(a)&&a);return(0,u.jsx)(W.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:o??y.current,required:s,disabled:c,name:d,value:f,form:p,...t,tabIndex:-1,ref:g,style:{...t.style,...v,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});Vi.displayName=Bi;function Hi(e){return typeof e==`function`}function Ui(e){return e===`indeterminate`}function Wi(e){return Ui(e)?`indeterminate`:e?`checked`:`unchecked`}var Gi=[`top`,`right`,`bottom`,`left`],Ki=Math.min,qi=Math.max,Ji=Math.round,Yi=Math.floor,Xi=e=>({x:e,y:e}),Zi={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Qi(e,t,n){return qi(e,Ki(t,n))}function $i(e,t){return typeof e==`function`?e(t):e}function ea(e){return e.split(`-`)[0]}function ta(e){return e.split(`-`)[1]}function na(e){return e===`x`?`y`:`x`}function ra(e){return e===`y`?`height`:`width`}function ia(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function aa(e){return na(ia(e))}function oa(e,t,n){n===void 0&&(n=!1);let r=ta(e),i=aa(e),a=ra(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ha(o)),[o,ha(o)]}function sa(e){let t=ha(e);return[ca(e),t,ca(t)]}function ca(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var la=[`left`,`right`],ua=[`right`,`left`],da=[`top`,`bottom`],fa=[`bottom`,`top`];function pa(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ua:la:t?la:ua;case`left`:case`right`:return t?da:fa;default:return[]}}function ma(e,t,n,r){let i=ta(e),a=pa(ea(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ca)))),a}function ha(e){let t=ea(e);return Zi[t]+e.slice(t.length)}function ga(e){return{top:0,right:0,bottom:0,left:0,...e}}function _a(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ga(e)}function va(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ya(e,t,n){let{reference:r,floating:i}=e,a=ia(t),o=aa(t),s=ra(o),c=ea(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ta(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function ba(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=$i(t,e),p=_a(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=va(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=va(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var xa=50,Sa=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ba},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ya(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<xa&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ya(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Ca=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=$i(e,t)||{};if(l==null)return{};let d=_a(u),f={x:n,y:r},p=aa(i),m=ra(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Ki(d[_],T),ee=Ki(d[v],T),D=E,O=C-h[m]-ee,k=C/2-h[m]/2+w,A=Qi(D,k,O),j=!c.arrow&&ta(i)!=null&&k!==A&&a.reference[m]/2-(k<D?E:ee)-h[m]/2<0,M=j?k<D?k-D:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),wa=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=$i(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=ea(r),_=ia(o),v=ea(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ha(o)]:sa(o)),x=p!==`none`;!d&&x&&b.push(...ma(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=oa(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==ia(t))||T.every(e=>ia(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=ia(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Ta(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ea(e){return Gi.some(t=>e[t]>=0)}var Da=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=$i(e,t);switch(i){case`referenceHidden`:{let e=Ta(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ea(e)}}}case`escaped`:{let e=Ta(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ea(e)}}}default:return{}}}}},Oa=new Set([`left`,`top`]);async function ka(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ea(n),s=ta(n),c=ia(n)===`y`,l=Oa.has(o)?-1:1,u=a&&c?-1:1,d=$i(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Aa=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ka(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ja=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=$i(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ia(ea(i)),p=na(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Qi(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Qi(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Ma=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=$i(e,t),u={x:n,y:r},d=ia(i),f=na(d),p=u[f],m=u[d],h=$i(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Oa.has(ea(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Na=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=$i(e,t),u=await o.detectOverflow(t,l),d=ea(i),f=ta(i),p=ia(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Ki(h-u[g],v),x=Ki(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=qi(u.left,0),t=qi(u.right,0),n=qi(u.top,0),r=qi(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:qi(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:qi(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Pa(){return typeof window<`u`}function Fa(e){return Ra(e)?(e.nodeName||``).toLowerCase():`#document`}function Ia(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function La(e){return((Ra(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ra(e){return Pa()?e instanceof Node||e instanceof Ia(e).Node:!1}function za(e){return Pa()?e instanceof Element||e instanceof Ia(e).Element:!1}function Ba(e){return Pa()?e instanceof HTMLElement||e instanceof Ia(e).HTMLElement:!1}function Va(e){return!Pa()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ia(e).ShadowRoot}function Ha(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ua(e){return/^(table|td|th)$/.test(Fa(e))}function Wa(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ga=/transform|translate|scale|rotate|perspective|filter/,Ka=/paint|layout|strict|content/,qa=e=>!!e&&e!==`none`,Ja;function Ya(e){let t=za(e)?$a(e):e;return qa(t.transform)||qa(t.translate)||qa(t.scale)||qa(t.rotate)||qa(t.perspective)||!Za()&&(qa(t.backdropFilter)||qa(t.filter))||Ga.test(t.willChange||``)||Ka.test(t.contain||``)}function Xa(e){let t=to(e);for(;Ba(t)&&!Qa(t);){if(Ya(t))return t;if(Wa(t))return null;t=to(t)}return null}function Za(){return Ja??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ja}function Qa(e){return/^(html|body|#document)$/.test(Fa(e))}function $a(e){return Ia(e).getComputedStyle(e)}function eo(e){return za(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function to(e){if(Fa(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Va(e)&&e.host||La(e);return Va(t)?t.host:t}function no(e){let t=to(e);return Qa(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ba(t)&&Ha(t)?t:no(t)}function ro(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=no(e),i=r===e.ownerDocument?.body,a=Ia(r);if(i){let e=io(a);return t.concat(a,a.visualViewport||[],Ha(r)?r:[],e&&n?ro(e):[])}else return t.concat(r,ro(r,[],n))}function io(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ao(e){let t=$a(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Ba(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ji(n)!==a||Ji(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function oo(e){return za(e)?e:e.contextElement}function so(e){let t=oo(e);if(!Ba(t))return Xi(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ao(t),o=(a?Ji(n.width):n.width)/r,s=(a?Ji(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var co=Xi(0);function lo(e){let t=Ia(e);return!Za()||!t.visualViewport?co:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ia(e)?!1:t}function fo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=oo(e),o=Xi(1);t&&(r?za(r)&&(o=so(r)):o=so(e));let s=uo(a,n,r)?lo(a):Xi(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Ia(a),t=r&&za(r)?Ia(r):r,n=e,i=io(n);for(;i&&r&&t!==n;){let e=so(i),t=i.getBoundingClientRect(),r=$a(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ia(i),i=io(n)}}return va({width:u,height:d,x:c,y:l})}function po(e,t){let n=eo(e).scrollLeft;return t?t.left+n:fo(La(e)).left+n}function mo(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-po(e,n),y:n.top+t.scrollTop}}function ho(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=La(r),s=t?Wa(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Xi(1),u=Xi(0),d=Ba(r);if((d||!d&&!a)&&((Fa(r)!==`body`||Ha(o))&&(c=eo(r)),d)){let e=fo(r);l=so(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?mo(o,c):Xi(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function go(e){return Array.from(e.getClientRects())}function _o(e){let t=La(e),n=eo(e),r=e.ownerDocument.body,i=qi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=qi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+po(e),s=-n.scrollTop;return $a(r).direction===`rtl`&&(o+=qi(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var vo=25;function yo(e,t){let n=Ia(e),r=La(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Za();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=po(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=vo&&(a-=o)}else l<=vo&&(a+=l);return{width:a,height:o,x:s,y:c}}function bo(e,t){let n=fo(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ba(e)?so(e):Xi(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function xo(e,t,n){let r;if(t===`viewport`)r=yo(e,n);else if(t===`document`)r=_o(La(e));else if(za(t))r=bo(t,n);else{let n=lo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return va(r)}function So(e,t){let n=to(e);return n===t||!za(n)||Qa(n)?!1:$a(n).position===`fixed`||So(n,t)}function Co(e,t){let n=t.get(e);if(n)return n;let r=ro(e,[],!1).filter(e=>za(e)&&Fa(e)!==`body`),i=null,a=$a(e).position===`fixed`,o=a?to(e):e;for(;za(o)&&!Qa(o);){let t=$a(o),n=Ya(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Ha(o)&&!n&&So(e,o))?r=r.filter(e=>e!==o):i=t,o=to(o)}return t.set(e,r),r}function wo(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Wa(t)?[]:Co(t,this._c):[].concat(n),r],o=xo(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=xo(t,a[e],i);s=qi(n.top,s),c=Ki(n.right,c),l=Ki(n.bottom,l),u=qi(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function To(e){let{width:t,height:n}=ao(e);return{width:t,height:n}}function Eo(e,t,n){let r=Ba(t),i=La(t),a=n===`fixed`,o=fo(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Xi(0);function l(){c.x=po(i)}if(r||!r&&!a)if((Fa(t)!==`body`||Ha(i))&&(s=eo(t)),r){let e=fo(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?mo(i,s):Xi(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Do(e){return $a(e).position===`static`}function Oo(e,t){if(!Ba(e)||$a(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return La(e)===n&&(n=n.ownerDocument.body),n}function ko(e,t){let n=Ia(e);if(Wa(e))return n;if(!Ba(e)){let t=to(e);for(;t&&!Qa(t);){if(za(t)&&!Do(t))return t;t=to(t)}return n}let r=Oo(e,t);for(;r&&Ua(r)&&Do(r);)r=Oo(r,t);return r&&Qa(r)&&Do(r)&&!Ya(r)?n:r||Xa(e)||n}var Ao=async function(e){let t=this.getOffsetParent||ko,n=this.getDimensions,r=await n(e.floating);return{reference:Eo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function jo(e){return $a(e).direction===`rtl`}var Mo={convertOffsetParentRelativeRectToViewportRelativeRect:ho,getDocumentElement:La,getClippingRect:wo,getOffsetParent:ko,getElementRects:Ao,getClientRects:go,getDimensions:To,getScale:so,isElement:za,isRTL:jo};function No(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Po(e,t){let n=null,r,i=La(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Yi(d),h=Yi(i.clientWidth-(u+f)),g=Yi(i.clientHeight-(d+p)),_=Yi(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:qi(0,Ki(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!No(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Fo(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=oo(e),u=i||a?[...l?ro(l):[],...t?ro(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Po(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?fo(e):null;c&&g();function g(){let t=fo(e);h&&!No(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Io=Aa,Lo=ja,Ro=wa,zo=Na,Bo=Da,Vo=Ca,Ho=Ma,Uo=(e,t,n)=>{let r=new Map,i={platform:Mo,...n},a={...i.platform,_c:r};return Sa(e,t,{...i,platform:a})},Wo=typeof document<`u`?l.useLayoutEffect:function(){};function Go(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,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Go(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Go(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Ko(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qo(e,t){let n=Ko(e);return Math.round(t*n)/n}function Jo(e){let t=l.useRef(e);return Wo(()=>{t.current=e}),t}function Yo(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=l.useState(r);Go(m,r)||h(r);let[g,_]=l.useState(null),[v,y]=l.useState(null),b=l.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=l.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=l.useRef(null),T=l.useRef(null),E=l.useRef(f),ee=c!=null,D=Jo(c),O=Jo(i),k=Jo(u),A=l.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};O.current&&(e.platform=O.current),Uo(w.current,T.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Go(E.current,t)&&(E.current=t,d.flushSync(()=>{p(t)}))})},[m,t,n,O,k]);Wo(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);let j=l.useRef(!1);Wo(()=>(j.current=!0,()=>{j.current=!1}),[]),Wo(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(D.current)return D.current(S,C,A);A()}},[S,C,A,D,ee]);let M=l.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),N=l.useMemo(()=>({reference:S,floating:C}),[S,C]),P=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=qo(N.floating,f.x),r=qo(N.floating,f.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Ko(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:A,refs:M,elements:N,floatingStyles:P}),[f,A,M,N,P])}var Xo=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Vo({element:r.current,padding:i}).fn(n):r?Vo({element:r,padding:i}).fn(n):{}}}},Zo=(e,t)=>{let n=Io(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qo=(e,t)=>{let n=Lo(e);return{name:n.name,fn:n.fn,options:[e,t]}},$o=(e,t)=>({fn:Ho(e).fn,options:[e,t]}),es=(e,t)=>{let n=Ro(e);return{name:n.name,fn:n.fn,options:[e,t]}},ts=(e,t)=>{let n=zo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ns=(e,t)=>{let n=Bo(e);return{name:n.name,fn:n.fn,options:[e,t]}},rs=(e,t)=>{let n=Xo(e);return{name:n.name,fn:n.fn,options:[e,t]}},is=`Arrow`,as=l.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,u.jsx)(W.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,u.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});as.displayName=is;var os=as,ss=`Popper`,[cs,ls]=Kt(ss),[us,ds]=cs(ss),fs=e=>{let{__scopePopper:t,children:n}=e,[r,i]=l.useState(null),[a,o]=l.useState(void 0);return(0,u.jsx)(us,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};fs.displayName=ss;var ps=`PopperAnchor`,ms=l.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=ds(ps,n),o=l.useRef(null),s=a.onAnchorChange,c=U(t,l.useCallback(e=>{o.current=e,e&&s(e)},[s])),d=l.useRef(null);l.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&s(d.current)});let f=a.placementState&&ws(a.placementState),p=f?.[0],m=f?.[1];return r?null:(0,u.jsx)(W.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...i,ref:c})});ms.displayName=ps;var hs=`PopperContent`,[gs,_s]=cs(hs),vs=l.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p=`partial`,hideWhenDetached:m=!1,updatePositionStrategy:h=`optimized`,onPlaced:g,..._}=e,v=ds(hs,n),[y,b]=l.useState(null),x=U(t,b),[S,C]=l.useState(null),w=Oi(S),T=w?.width??0,E=w?.height??0,ee=r+(a===`center`?``:`-`+a),D=typeof f==`number`?f:{top:0,right:0,bottom:0,left:0,...f},O=Array.isArray(d)?d:[d],k=O.length>0,A={padding:D,boundary:O.filter(Ss),altBoundary:k},{refs:j,floatingStyles:M,placement:N,isPositioned:P,middlewareData:F}=Yo({strategy:`fixed`,placement:ee,whileElementsMounted:(...e)=>Fo(...e,{animationFrame:h===`always`}),elements:{reference:v.anchor},middleware:[Zo({mainAxis:i+E,alignmentAxis:o}),c&&Qo({mainAxis:!0,crossAxis:!1,limiter:p===`partial`?$o():void 0,...A}),c&&es({...A}),ts({...A,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),S&&rs({element:S,padding:s}),Cs({arrowWidth:T,arrowHeight:E}),m&&ns({strategy:`referenceHidden`,...A,boundary:k?A.boundary:void 0})]}),I=v.setPlacementState;Yt(()=>(I(N),()=>{I(void 0)}),[N,I]);let[L,te]=ws(N),ne=En(g);Yt(()=>{P&&ne?.()},[P,ne]);let R=F.arrow?.x,z=F.arrow?.y,re=F.arrow?.centerOffset!==0,[B,V]=l.useState();return Yt(()=>{y&&V(window.getComputedStyle(y).zIndex)},[y]),(0,u.jsx)(`div`,{ref:j.setFloating,"data-radix-popper-content-wrapper":``,style:{...M,transform:P?M.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:B,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(` `),...F.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,u.jsx)(gs,{scope:n,placedSide:L,placedAlign:te,onArrowChange:C,arrowX:R,arrowY:z,shouldHideArrow:re,children:(0,u.jsx)(W.div,{"data-side":L,"data-align":te,..._,ref:x,style:{..._.style,animation:P?void 0:`none`}})})})});vs.displayName=hs;var ys=`PopperArrow`,bs={top:`bottom`,right:`left`,bottom:`top`,left:`right`},xs=l.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=_s(ys,n),a=bs[i.placedSide];return(0,u.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]: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:(0,u.jsx)(os,{...r,ref:t,style:{...r.style,display:`block`}})})});xs.displayName=ys;function Ss(e){return e!==null}var Cs=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=ws(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function ws(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Ts=fs,Es=ms,Ds=vs,Os=xs,ks=!1;function As(){let[e,t]=l.useState(ks);return l.useEffect(()=>{ks||(ks=!0,t(!0))},[]),e}var js=l.useSyncExternalStore;function Ms(){return()=>{}}function Ns(){return js(Ms,()=>!0,()=>!1)}var Ps=typeof js==`function`?Ns:As,Fs=`rovingFocusGroup.onEntryFocus`,Is={bubbles:!1,cancelable:!0},Ls=`RovingFocusGroup`,[Rs,zs,Bs]=Jt(Ls),[Vs,Hs]=Kt(Ls,[Bs]),[Us,Ws]=Vs(Ls),Gs=l.forwardRef((e,t)=>(0,u.jsx)(Rs.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(Rs.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(Ks,{...e,ref:t})})}));Gs.displayName=Ls;var Ks=l.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,m=l.useRef(null),h=U(t,m),g=Tn(a),[_,v]=Zt({prop:o,defaultProp:s??null,onChange:c,caller:Ls}),[y,b]=l.useState(!1),x=En(d),S=zs(n),C=l.useRef(!1),[w,T]=l.useState(0);return l.useEffect(()=>{let e=m.current;if(e)return e.addEventListener(Fs,x),()=>e.removeEventListener(Fs,x)},[x]),(0,u.jsx)(Us,{scope:n,orientation:r,dir:g,loop:i,currentTabStopId:_,onItemFocus:l.useCallback(e=>v(e),[v]),onItemShiftTab:l.useCallback(()=>b(!0),[]),onFocusableItemAdd:l.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:l.useCallback(()=>T(e=>e-1),[]),children:(0,u.jsx)(W.div,{tabIndex:y||w===0?-1:0,"data-orientation":r,...p,ref:h,style:{outline:`none`,...e.style},onMouseDown:G(e.onMouseDown,()=>{C.current=!0}),onFocus:G(e.onFocus,e=>{let t=!C.current;if(e.target===e.currentTarget&&t&&!y){let t=new CustomEvent(Fs,Is);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=S().filter(e=>e.focusable);Qs([e.find(e=>e.active),e.find(e=>e.id===_),...e].filter(Boolean).map(e=>e.ref.current),f)}}C.current=!1}),onBlur:G(e.onBlur,()=>b(!1))})})}),qs=`RovingFocusGroupItem`,Js=l.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=un(),d=a||c,f=Ws(qs,n),p=f.currentTabStopId===d,m=zs(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:_}=f,v=Ps();return Yt(()=>{if(!(!v||!r))return h(),()=>g()},[v,r,h,g]),l.useEffect(()=>{if(!(v||!r))return h(),()=>g()},[v,r,h,g]),(0,u.jsx)(Rs.ItemSlot,{scope:n,id:d,focusable:r,active:i,children:(0,u.jsx)(W.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:G(e.onMouseDown,e=>{r?f.onItemFocus(d):e.preventDefault()}),onFocus:G(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:G(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Zs(e,f.orientation,f.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=m().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=f.loop?$s(n,r+1):n.slice(r+1)}setTimeout(()=>Qs(n))}}),children:typeof o==`function`?o({isCurrentTabStop:p,hasTabStop:_!=null}):o})})});Js.displayName=qs;var Ys={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Xs(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Zs(e,t,n){let r=Xs(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Ys[r]}function Qs(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function $s(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ec=Gs,tc=Js,nc=[`Enter`,` `],rc=[`ArrowDown`,`PageUp`,`Home`],ic=[`ArrowUp`,`PageDown`,`End`],ac=[...rc,...ic],oc={ltr:[...nc,`ArrowRight`],rtl:[...nc,`ArrowLeft`]},sc={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},cc=`Menu`,[lc,uc,dc]=Jt(cc),[fc,pc]=Kt(cc,[dc,ls,Hs]),mc=ls(),hc=Hs(),[gc,_c]=fc(cc),[vc,yc]=fc(cc),bc=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=mc(t),[c,d]=l.useState(null),f=l.useRef(!1),p=En(a),m=Tn(i);return l.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),l.useEffect(()=>{if(!n)return;let e=()=>p(!1);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,p]),(0,u.jsx)(Ts,{...s,children:(0,u.jsx)(gc,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:d,children:(0,u.jsx)(vc,{scope:t,onClose:l.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:o,children:r})})})};bc.displayName=cc;var xc=`MenuAnchor`,Sc=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=mc(n);return(0,u.jsx)(Es,{...i,...r,ref:t})});Sc.displayName=xc;var Cc=`MenuPortal`,[wc,Tc]=fc(Cc,{forceMount:void 0}),Ec=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=_c(Cc,t);return(0,u.jsx)(wc,{scope:t,forceMount:n,children:(0,u.jsx)(tn,{present:n||a.open,children:(0,u.jsx)(ir,{asChild:!0,container:i,children:r})})})};Ec.displayName=Cc;var Dc=`MenuContent`,[Oc,kc]=fc(Dc),Ac=l.forwardRef((e,t)=>{let n=Tc(Dc,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=_c(Dc,e.__scopeMenu),o=yc(Dc,e.__scopeMenu);return(0,u.jsx)(lc.Provider,{scope:e.__scopeMenu,children:(0,u.jsx)(tn,{present:r||a.open,children:(0,u.jsx)(lc.Slot,{scope:e.__scopeMenu,children:o.modal?(0,u.jsx)(jc,{...i,ref:t}):(0,u.jsx)(Mc,{...i,ref:t})})})})}),jc=l.forwardRef((e,t)=>{let n=_c(Dc,e.__scopeMenu),r=l.useRef(null),i=U(t,r);return l.useEffect(()=>{let e=r.current;if(e)return Ei(e)},[]),(0,u.jsx)(Pc,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:G(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Mc=l.forwardRef((e,t)=>{let n=_c(Dc,e.__scopeMenu);return(0,u.jsx)(Pc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Nc=Mt(`MenuContent.ScrollLock`),Pc=l.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,disableOutsideScroll:g,..._}=e,v=_c(Dc,n),y=yc(Dc,n),b=mc(n),x=hc(n),S=uc(n),[C,w]=l.useState(null),T=l.useRef(null),E=U(t,T,v.onContentChange),ee=l.useRef(0),D=l.useRef(``),O=l.useRef(0),k=l.useRef(null),A=l.useRef(`right`),j=l.useRef(0),M=g?_i:l.Fragment,N=g?{as:Nc,allowPinchZoom:!0}:void 0,P=e=>{let t=D.current+e,n=S().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=vl(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){D.current=t,window.clearTimeout(ee.current),t!==``&&(ee.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};l.useEffect(()=>()=>window.clearTimeout(ee.current),[]),sr();let F=l.useCallback(e=>A.current===k.current?.side&&bl(e,k.current?.area),[]);return(0,u.jsx)(Oc,{scope:n,searchRef:D,onItemEnter:l.useCallback(e=>{F(e)&&e.preventDefault()},[F]),onItemLeave:l.useCallback(e=>{F(e)||(T.current?.focus(),w(null))},[F]),onTriggerLeave:l.useCallback(e=>{F(e)&&e.preventDefault()},[F]),pointerGraceTimerRef:O,onPointerGraceIntentChange:l.useCallback(e=>{k.current=e},[]),children:(0,u.jsx)(M,{...N,children:(0,u.jsx)(Gn,{asChild:!0,trapped:i,onMountAutoFocus:G(a,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,u.jsx)(Nn,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,children:(0,u.jsx)(ec,{asChild:!0,...x,dir:y.dir,orientation:`vertical`,loop:r,currentTabStopId:C,onCurrentTabStopIdChange:w,onEntryFocus:G(c,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,u.jsx)(Ds,{role:`menu`,"aria-orientation":`vertical`,"data-state":pl(v.open),"data-radix-menu-content":``,dir:y.dir,...b,..._,ref:E,style:{outline:`none`,..._.style},onKeyDown:G(_.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&P(e.key));let i=T.current;if(e.target!==i||!ac.includes(e.key))return;e.preventDefault();let a=S().filter(e=>!e.disabled).map(e=>e.ref.current);ic.includes(e.key)&&a.reverse(),gl(a)}),onBlur:G(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(ee.current),D.current=``)}),onPointerMove:G(e.onPointerMove,xl(e=>{let t=e.target,n=j.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>j.current?`right`:`left`;A.current=t,j.current=e.clientX}}))})})})})})})});Ac.displayName=Dc;var Fc=`MenuGroup`,Ic=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(W.div,{role:`group`,...r,ref:t})});Ic.displayName=Fc;var Lc=`MenuLabel`,Rc=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(W.div,{...r,ref:t})});Rc.displayName=Lc;var zc=`MenuItem`,Bc=`menu.itemSelect`,Vc=l.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=l.useRef(null),o=yc(zc,e.__scopeMenu),s=kc(zc,e.__scopeMenu),c=U(t,a),d=l.useRef(!1),f=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(Bc,{bubbles:!0,cancelable:!0});e.addEventListener(Bc,e=>r?.(e),{once:!0}),Gt(e,t),t.defaultPrevented?d.current=!1:o.onClose()}};return(0,u.jsx)(Hc,{...i,ref:c,disabled:n,onClick:G(e.onClick,f),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:G(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:G(e.onKeyDown,e=>{n||e.target!==e.currentTarget||s.searchRef.current!==``&&e.key===` `||nc.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});Vc.displayName=zc;var Hc=l.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=kc(zc,n),s=hc(n),c=l.useRef(null),d=U(t,c),[f,p]=l.useState(!1),[m,h]=l.useState(``);return l.useEffect(()=>{let e=c.current;e&&h((e.textContent??``).trim())},[a.children]),(0,u.jsx)(lc.ItemSlot,{scope:n,disabled:r,textValue:i??m,children:(0,u.jsx)(tc,{asChild:!0,...s,focusable:!r,children:(0,u.jsx)(W.div,{role:`menuitem`,"data-highlighted":f?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:d,onPointerMove:G(e.onPointerMove,xl(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:G(e.onPointerLeave,xl(e=>o.onItemLeave(e))),onFocus:G(e.onFocus,()=>p(!0)),onBlur:G(e.onBlur,()=>p(!1))})})})}),Uc=`MenuCheckboxItem`,Wc=l.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,u.jsx)(Qc,{scope:e.__scopeMenu,checked:n,children:(0,u.jsx)(Vc,{role:`menuitemcheckbox`,"aria-checked":ml(n)?`mixed`:n,...i,ref:t,"data-state":hl(n),onSelect:G(i.onSelect,()=>r?.(ml(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Wc.displayName=Uc;var Gc=`MenuRadioGroup`,[Kc,qc]=fc(Gc,{value:void 0,onValueChange:()=>{}}),Jc=l.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=En(r);return(0,u.jsx)(Kc,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,u.jsx)(Ic,{...i,ref:t})})});Jc.displayName=Gc;var Yc=`MenuRadioItem`,Xc=l.forwardRef((e,t)=>{let{value:n,...r}=e,i=qc(Yc,e.__scopeMenu),a=n===i.value;return(0,u.jsx)(Qc,{scope:e.__scopeMenu,checked:a,children:(0,u.jsx)(Vc,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":hl(a),onSelect:G(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Xc.displayName=Yc;var Zc=`MenuItemIndicator`,[Qc,$c]=fc(Zc,{checked:!1}),el=l.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=$c(Zc,n);return(0,u.jsx)(tn,{present:r||ml(a.checked)||a.checked===!0,children:(0,u.jsx)(W.span,{...i,ref:t,"data-state":hl(a.checked)})})});el.displayName=Zc;var tl=`MenuSeparator`,nl=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(W.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});nl.displayName=tl;var rl=`MenuArrow`,il=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=mc(n);return(0,u.jsx)(Os,{...i,...r,ref:t})});il.displayName=rl;var al=`MenuSub`,[ol,sl]=fc(al),cl=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=_c(al,t),o=mc(t),[s,c]=l.useState(null),[d,f]=l.useState(null),p=En(i);return l.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),(0,u.jsx)(Ts,{...o,children:(0,u.jsx)(gc,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:f,children:(0,u.jsx)(ol,{scope:t,contentId:un(),triggerId:un(),trigger:s,onTriggerChange:c,children:n})})})};cl.displayName=al;var ll=`MenuSubTrigger`,ul=l.forwardRef((e,t)=>{let n=_c(ll,e.__scopeMenu),r=yc(ll,e.__scopeMenu),i=sl(ll,e.__scopeMenu),a=kc(ll,e.__scopeMenu),o=l.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,d={__scopeMenu:e.__scopeMenu},f=l.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);l.useEffect(()=>f,[f]),l.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]);let p=U(t,i.onTriggerChange);return(0,u.jsx)(Sc,{asChild:!0,...d,children:(0,u.jsx)(Hc,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":pl(n.open),...e,ref:p,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:G(e.onPointerMove,xl(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:G(e.onPointerLeave,xl(e=>{f();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:G(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||a.searchRef.current!==``&&t.key===` `||oc[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});ul.displayName=ll;var dl=`MenuSubContent`,fl=l.forwardRef((e,t)=>{let n=Tc(Dc,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=_c(Dc,e.__scopeMenu),s=yc(Dc,e.__scopeMenu),c=sl(dl,e.__scopeMenu),d=l.useRef(null),f=U(t,d);return(0,u.jsx)(lc.Provider,{scope:e.__scopeMenu,children:(0,u.jsx)(tn,{present:r||o.open,children:(0,u.jsx)(lc.Slot,{scope:e.__scopeMenu,children:(0,u.jsx)(Pc,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:f,align:i,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:G(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:G(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:G(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=sc[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});fl.displayName=dl;function pl(e){return e?`open`:`closed`}function ml(e){return e===`indeterminate`}function hl(e){return ml(e)?`indeterminate`:e?`checked`:`unchecked`}function gl(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function _l(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function vl(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=_l(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function yl(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function bl(e,t){return t?yl({x:e.clientX,y:e.clientY},t):!1}function xl(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Sl=bc,Cl=Sc,wl=Ec,Tl=Ac,El=Ic,Dl=Rc,Ol=Vc,kl=Wc,Al=Jc,jl=Xc,Ml=el,Nl=nl,Pl=il,Fl=ul,Il=fl,Ll=`DropdownMenu`,[Rl,zl]=Kt(Ll,[pc]),Bl=pc(),[Vl,Hl]=Rl(Ll),Ul=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=Bl(t),d=l.useRef(null),[f,p]=Zt({prop:i,defaultProp:a??!1,onChange:o,caller:Ll});return(0,u.jsx)(Vl,{scope:t,triggerId:un(),triggerRef:d,contentId:un(),open:f,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,u.jsx)(Sl,{...c,open:f,onOpenChange:p,dir:r,modal:s,children:n})})};Ul.displayName=Ll;var Wl=`DropdownMenuTrigger`,Gl=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Hl(Wl,n),o=Bl(n),s=U(t,a.triggerRef);return(0,u.jsx)(Cl,{asChild:!0,...o,children:(0,u.jsx)(W.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:G(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:G(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Gl.displayName=Wl;var Kl=`DropdownMenuPortal`,ql=e=>{let{__scopeDropdownMenu:t,...n}=e,r=Bl(t);return(0,u.jsx)(wl,{...r,...n})};ql.displayName=Kl;var Jl=`DropdownMenuContent`,Yl=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Hl(Jl,n),a=Bl(n),o=l.useRef(!1);return(0,u.jsx)(Tl,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:G(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:G(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Yl.displayName=Jl;var Xl=`DropdownMenuGroup`,Zl=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(El,{...i,...r,ref:t})});Zl.displayName=Xl;var Ql=`DropdownMenuLabel`,$l=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Dl,{...i,...r,ref:t})});$l.displayName=Ql;var eu=`DropdownMenuItem`,tu=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Ol,{...i,...r,ref:t})});tu.displayName=eu;var nu=`DropdownMenuCheckboxItem`,ru=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(kl,{...i,...r,ref:t})});ru.displayName=nu;var iu=`DropdownMenuRadioGroup`,au=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Al,{...i,...r,ref:t})});au.displayName=iu;var ou=`DropdownMenuRadioItem`,su=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(jl,{...i,...r,ref:t})});su.displayName=ou;var cu=`DropdownMenuItemIndicator`,lu=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Ml,{...i,...r,ref:t})});lu.displayName=cu;var uu=`DropdownMenuSeparator`,du=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Nl,{...i,...r,ref:t})});du.displayName=uu;var fu=`DropdownMenuArrow`,pu=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Pl,{...i,...r,ref:t})});pu.displayName=fu;var mu=`DropdownMenuSubTrigger`,hu=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Fl,{...i,...r,ref:t})});hu.displayName=mu;var gu=`DropdownMenuSubContent`,_u=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Il,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});_u.displayName=gu;var vu=Ul,yu=Gl,bu=ql,xu=Yl,Su=Zl,Cu=tu,wu=du,Tu=`Label`,Eu=l.forwardRef((e,t)=>(0,u.jsx)(W.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Eu.displayName=Tu;var Du=Eu,Ou=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},ku=(e,t)=>({classGroupId:e,validator:t}),Au=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ju=`-`,Mu=[],Nu=`arbitrary..`,Pu=e=>{let t=Lu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Iu(e);let n=e.split(ju);return Fu(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ou(i,t):t:i||Mu}return n[e]||Mu}}},Fu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Fu(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ju):e.slice(t).join(ju),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Iu=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Nu+r:void 0})(),Lu=e=>{let{theme:t,classGroups:n}=e;return Ru(n,t)},Ru=(e,t)=>{let n=Au();for(let r in e){let i=e[r];zu(i,n,r,t)}return n},zu=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Bu(i,t,n,r)}},Bu=(e,t,n,r)=>{if(typeof e==`string`){Vu(e,t,n);return}if(typeof e==`function`){Hu(e,t,n,r);return}Uu(e,t,n,r)},Vu=(e,t,n)=>{let r=e===``?t:Wu(t,e);r.classGroupId=n},Hu=(e,t,n,r)=>{if(Gu(e)){zu(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ku(n,e))},Uu=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];zu(o,Wu(t,a),n,r)}},Wu=(e,t)=>{let n=e,r=t.split(ju),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Au(),n.nextPart.set(t,i)),n=i}return n},Gu=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ku=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},qu=`!`,Ju=`:`,Yu=[],Xu=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Zu=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Ju){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(qu)?(c=s.slice(0,-1),l=!0):s.startsWith(qu)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Xu(t,l,c,u)};if(t){let e=t+Ju,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Xu(Yu,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Qu=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},$u=e=>({cache:Ku(e.cacheSize),parseClassName:Zu(e),sortModifiers:Qu(e),postfixLookupClassGroupIds:ed(e),...Pu(e)}),ed=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},td=/\s+/,nd=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(td),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+qu:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},rd=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=id(n))&&(i&&(i+=` `),i+=r);return i},id=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=id(e[r]))&&(n&&(n+=` `),n+=t);return n},ad=(e,...t)=>{let n,r,i,a,o=o=>(n=$u(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=nd(e,n);return i(e,a),a};return a=o,(...e)=>a(rd(...e))},od=[],K=e=>{let t=t=>t[e]||od;return t.isThemeGetter=!0,t},sd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ld=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ud=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dd=/\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$/,fd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,md=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hd=e=>ld.test(e),q=e=>!!e&&!Number.isNaN(Number(e)),gd=e=>!!e&&Number.isInteger(Number(e)),_d=e=>e.endsWith(`%`)&&q(e.slice(0,-1)),vd=e=>ud.test(e),yd=()=>!0,bd=e=>dd.test(e)&&!fd.test(e),xd=()=>!1,Sd=e=>pd.test(e),Cd=e=>md.test(e),wd=e=>!J(e)&&!Y(e),Td=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ed=e=>Vd(e,Gd,xd),J=e=>sd.test(e),Dd=e=>Vd(e,Kd,bd),Od=e=>Vd(e,qd,q),kd=e=>Vd(e,Yd,yd),Ad=e=>Vd(e,Jd,xd),jd=e=>Vd(e,Ud,xd),Md=e=>Vd(e,Wd,Cd),Nd=e=>Vd(e,Xd,Sd),Y=e=>cd.test(e),Pd=e=>Hd(e,Kd),Fd=e=>Hd(e,Jd),Id=e=>Hd(e,Ud),Ld=e=>Hd(e,Gd),Rd=e=>Hd(e,Wd),zd=e=>Hd(e,Xd,!0),Bd=e=>Hd(e,Yd,!0),Vd=(e,t,n)=>{let r=sd.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Hd=(e,t,n=!1)=>{let r=cd.exec(e);return r?r[1]?t(r[1]):n:!1},Ud=e=>e===`position`||e===`percentage`,Wd=e=>e===`image`||e===`url`,Gd=e=>e===`length`||e===`size`||e===`bg-size`,Kd=e=>e===`length`,qd=e=>e===`number`,Jd=e=>e===`family-name`,Yd=e=>e===`number`||e===`weight`,Xd=e=>e===`shadow`,Zd=ad(()=>{let e=K(`color`),t=K(`font`),n=K(`text`),r=K(`font-weight`),i=K(`tracking`),a=K(`leading`),o=K(`breakpoint`),s=K(`container`),c=K(`spacing`),l=K(`radius`),u=K(`shadow`),d=K(`inset-shadow`),f=K(`text-shadow`),p=K(`drop-shadow`),m=K(`blur`),h=K(`perspective`),g=K(`aspect`),_=K(`ease`),v=K(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Y,J],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Y,J,c],T=()=>[hd,`full`,`auto`,...w()],E=()=>[gd,`none`,`subgrid`,Y,J],ee=()=>[`auto`,{span:[`full`,gd,Y,J]},gd,Y,J],D=()=>[gd,`auto`,Y,J],O=()=>[`auto`,`min`,`max`,`fr`,Y,J],k=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],A=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],j=()=>[`auto`,...w()],M=()=>[hd,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],N=()=>[hd,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],P=()=>[hd,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,Y,J],I=()=>[...b(),Id,jd,{position:[Y,J]}],L=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],te=()=>[`auto`,`cover`,`contain`,Ld,Ed,{size:[Y,J]}],ne=()=>[_d,Pd,Dd],R=()=>[``,`none`,`full`,l,Y,J],z=()=>[``,q,Pd,Dd],re=()=>[`solid`,`dashed`,`dotted`,`double`],B=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],V=()=>[q,_d,Id,jd],ie=()=>[``,`none`,m,Y,J],ae=()=>[`none`,q,Y,J],oe=()=>[`none`,q,Y,J],se=()=>[q,Y,J],ce=()=>[hd,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[vd],breakpoint:[vd],color:[yd],container:[vd],"drop-shadow":[vd],ease:[`in`,`out`,`in-out`],font:[wd],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[vd],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[vd],shadow:[vd],spacing:[`px`,q],text:[vd],"text-shadow":[vd],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,hd,J,Y,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Y,J]}],"container-named":[Td],columns:[{columns:[q,J,Y,s]}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[gd,`auto`,Y,J]}],basis:[{basis:[hd,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[q,hd,`auto`,`initial`,`none`,J]}],grow:[{grow:[``,q,Y,J]}],shrink:[{shrink:[``,q,Y,J]}],order:[{order:[gd,`first`,`last`,`none`,Y,J]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...k(),`normal`]}],"justify-items":[{"justify-items":[...A(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...A()]}],"align-content":[{content:[`normal`,...k()]}],"align-items":[{items:[...A(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...A(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...A(),`baseline`]}],"place-self":[{"place-self":[`auto`,...A()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:M()}],"inline-size":[{inline:[`auto`,...N()]}],"min-inline-size":[{"min-inline":[`auto`,...N()]}],"max-inline-size":[{"max-inline":[`none`,...N()]}],"block-size":[{block:[`auto`,...P()]}],"min-block-size":[{"min-block":[`auto`,...P()]}],"max-block-size":[{"max-block":[`none`,...P()]}],w:[{w:[s,`screen`,...M()]}],"min-w":[{"min-w":[s,`screen`,`none`,...M()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...M()]}],h:[{h:[`screen`,`lh`,...M()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...M()]}],"max-h":[{"max-h":[`screen`,`lh`,...M()]}],"font-size":[{text:[`base`,n,Pd,Dd]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Bd,kd]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,_d,J]}],"font-family":[{font:[Fd,Ad,t]}],"font-features":[{"font-features":[J]}],"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:[i,Y,J]}],"line-clamp":[{"line-clamp":[q,`none`,Y,Od]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Y,J]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Y,J]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...re(),`wavy`]}],"text-decoration-thickness":[{decoration:[q,`from-font`,`auto`,Y,Dd]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[q,`auto`,Y,J]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[gd,Y,J]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Y,J]}],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`,Y,J]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:te()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},gd,Y,J],radial:[``,Y,J],conic:[gd,Y,J]},Rd,Md]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":z()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...re(),`hidden`,`none`]}],"divide-style":[{divide:[...re(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...re(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[q,Y,J]}],"outline-w":[{outline:[``,q,Pd,Dd]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`none`,u,zd,Nd]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,zd,Nd]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:z()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[q,Dd]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,zd,Nd]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[q,Y,J]}],"mix-blend":[{"mix-blend":[...B(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":B()}],"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":[q]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[Y,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[q]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Y,J]}],filter:[{filter:[``,`none`,Y,J]}],blur:[{blur:ie()}],brightness:[{brightness:[q,Y,J]}],contrast:[{contrast:[q,Y,J]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,zd,Nd]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,q,Y,J]}],"hue-rotate":[{"hue-rotate":[q,Y,J]}],invert:[{invert:[``,q,Y,J]}],saturate:[{saturate:[q,Y,J]}],sepia:[{sepia:[``,q,Y,J]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Y,J]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[q,Y,J]}],"backdrop-contrast":[{"backdrop-contrast":[q,Y,J]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,q,Y,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[q,Y,J]}],"backdrop-invert":[{"backdrop-invert":[``,q,Y,J]}],"backdrop-opacity":[{"backdrop-opacity":[q,Y,J]}],"backdrop-saturate":[{"backdrop-saturate":[q,Y,J]}],"backdrop-sepia":[{"backdrop-sepia":[``,q,Y,J]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Y,J]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[q,`initial`,Y,J]}],ease:[{ease:[`linear`,`initial`,_,Y,J]}],delay:[{delay:[q,Y,J]}],animate:[{animate:[`none`,v,Y,J]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Y,J]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":[`scale-3d`],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[Y,J,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":[`translate-none`],zoom:[{zoom:[gd,Y,J]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"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`,Y,J]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,Y,J]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[q,Pd,Dd,Od]}],stroke:[{stroke:[`none`,...F()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-bs`,`border-w-be`,`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-bs`,`border-color-be`,`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-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function X(...e){return Zd(Et(e))}var Qd=kt(`mun:group/button mun:inline-flex mun:shrink-0 mun:items-center mun:justify-center mun:rounded-lg mun:border mun:border-transparent mun:bg-clip-padding mun:text-sm mun:font-medium mun:whitespace-nowrap mun:transition-all mun:outline-none mun:select-none mun:focus-visible:border-ring mun:focus-visible:ring-3 mun:focus-visible:ring-ring/50 mun:active:not-aria-[haspopup]:translate-y-px mun:disabled:pointer-events-none mun:disabled:opacity-50 mun:aria-invalid:border-destructive mun:aria-invalid:ring-3 mun:aria-invalid:ring-destructive/20 mun:dark:aria-invalid:border-destructive/50 mun:dark:aria-invalid:ring-destructive/40 mun:[&_svg]:pointer-events-none mun:[&_svg]:shrink-0 mun:[&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`mun:bg-primary mun:text-primary-foreground mun:hover:bg-primary/80`,outline:`mun:border-border mun:bg-background mun:hover:bg-muted mun:hover:text-foreground mun:aria-expanded:bg-muted mun:aria-expanded:text-foreground mun:dark:border-input mun:dark:bg-input/30 mun:dark:hover:bg-input/50`,secondary:`mun:bg-secondary mun:text-secondary-foreground mun:hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] mun:aria-expanded:bg-secondary mun:aria-expanded:text-secondary-foreground`,ghost:`mun:hover:bg-muted mun:hover:text-foreground mun:aria-expanded:bg-muted mun:aria-expanded:text-foreground mun:dark:hover:bg-muted/50`,destructive:`mun:bg-destructive/10 mun:text-destructive mun:hover:bg-destructive/20 mun:focus-visible:border-destructive/40 mun:focus-visible:ring-destructive/20 mun:dark:bg-destructive/20 mun:dark:hover:bg-destructive/30 mun:dark:focus-visible:ring-destructive/40`,link:`mun:text-primary mun:underline-offset-4 mun:hover:underline`},size:{default:`mun:h-8 mun:gap-1.5 mun:px-2.5 mun:has-data-[icon=inline-end]:pr-2 mun:has-data-[icon=inline-start]:pl-2`,xs:`mun:h-6 mun:gap-1 mun:rounded-[min(var(--radius-md),10px)] mun:px-2 mun:text-xs mun:in-data-[slot=button-group]:rounded-lg mun:has-data-[icon=inline-end]:pr-1.5 mun:has-data-[icon=inline-start]:pl-1.5 mun:[&_svg:not([class*='size-'])]:size-3`,sm:`mun:h-7 mun:gap-1 mun:rounded-[min(var(--radius-md),12px)] mun:px-2.5 mun:text-[0.8rem] mun:in-data-[slot=button-group]:rounded-lg mun:has-data-[icon=inline-end]:pr-1.5 mun:has-data-[icon=inline-start]:pl-1.5 mun:[&_svg:not([class*='size-'])]:size-3.5`,lg:`mun:h-9 mun:gap-1.5 mun:px-2.5 mun:has-data-[icon=inline-end]:pr-2 mun:has-data-[icon=inline-start]:pl-2`,icon:`mun:size-8`,"icon-xs":`mun:size-6 mun:rounded-[min(var(--radius-md),10px)] mun:in-data-[slot=button-group]:rounded-lg mun:[&_svg:not([class*='size-'])]:size-3`,"icon-sm":`mun:size-7 mun:rounded-[min(var(--radius-md),12px)] mun:in-data-[slot=button-group]:rounded-lg`,"icon-lg":`mun:size-9`}},defaultVariants:{variant:`default`,size:`default`}});function Z({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){return(0,u.jsx)(r?Nt:`button`,{"data-slot":`button`,"data-variant":t,"data-size":n,className:X(Qd({variant:t,size:n,className:e})),...i})}function $d({className:e,type:t,...n}){return(0,u.jsx)(`input`,{type:t,"data-slot":`input`,className:X(`mun:h-8 mun:w-full mun:min-w-0 mun:rounded-lg mun:border mun:border-input mun:bg-transparent mun:px-2.5 mun:py-1 mun:text-base mun:transition-colors mun:outline-none mun:file:inline-flex mun:file:h-6 mun:file:border-0 mun:file:bg-transparent mun:file:text-sm mun:file:font-medium mun:file:text-foreground mun:placeholder:text-muted-foreground mun:focus-visible:border-ring mun:focus-visible:ring-3 mun:focus-visible:ring-ring/50 mun:disabled:pointer-events-none mun:disabled:cursor-not-allowed mun:disabled:bg-input/50 mun:disabled:opacity-50 mun:aria-invalid:border-destructive mun:aria-invalid:ring-3 mun:aria-invalid:ring-destructive/20 mun:md:text-sm mun:dark:bg-input/30 mun:dark:disabled:bg-input/80 mun:dark:aria-invalid:border-destructive/50 mun:dark:aria-invalid:ring-destructive/40`,e),...n})}var ef=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),tf=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),nf=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),rf=e=>{let t=nf(e);return t.charAt(0).toUpperCase()+t.slice(1)},af={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`},of=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},sf=(0,l.createContext)({}),cf=()=>(0,l.useContext)(sf),lf=(0,l.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:p=`currentColor`,className:m=``}=cf()??{},h=r??f?Number(n??d)*24/Number(t??u):n??d;return(0,l.createElement)(`svg`,{ref:c,...af,width:t??u??af.width,height:t??u??af.height,stroke:e??p,strokeWidth:h,className:ef(`lucide`,m,i),...!a&&!of(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,l.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Q=(e,t)=>{let n=(0,l.forwardRef)(({className:n,...r},i)=>(0,l.createElement)(lf,{ref:i,iconNode:t,className:ef(`lucide-${tf(rf(e))}`,`lucide-${e}`,n),...r}));return n.displayName=rf(e),n},uf=Q(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),df=Q(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),ff=Q(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),pf=Q(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),mf=Q(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),hf=Q(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),gf=Q(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),_f=Q(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),vf=Q(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),yf=Q(`columns-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]]),bf=Q(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),xf=Q(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),Sf=Q(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Cf=Q(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),wf=Q(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),Tf=Q(`list-restart`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M7 12H3`,key:`13ou7f`}],[`path`,{d:`M7 19H3`,key:`wbqt3n`}],[`path`,{d:`M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14`,key:`qth677`}],[`path`,{d:`M11 10v4h4`,key:`172dkj`}]]),Ef=Q(`loader`,[[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m16.2 7.8 2.9-2.9`,key:`r700ao`}],[`path`,{d:`M18 12h4`,key:`wj9ykh`}],[`path`,{d:`m16.2 16.2 2.9 2.9`,key:`1bxg5t`}],[`path`,{d:`M12 18v4`,key:`jadmvz`}],[`path`,{d:`m4.9 19.1 2.9-2.9`,key:`bwix9q`}],[`path`,{d:`M2 12h4`,key:`j09sii`}],[`path`,{d:`m4.9 4.9 2.9 2.9`,key:`giyufr`}]]),Df=Q(`maximize`,[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]),Of=Q(`minimize`,[[`path`,{d:`M8 3v3a2 2 0 0 1-2 2H3`,key:`hohbtr`}],[`path`,{d:`M21 8h-3a2 2 0 0 1-2-2V3`,key:`5jw1f3`}],[`path`,{d:`M3 16h3a2 2 0 0 1 2 2v3`,key:`198tvr`}],[`path`,{d:`M16 21v-3a2 2 0 0 1 2-2h3`,key:`ph8mxp`}]]),kf=Q(`pin-off`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]),Af=Q(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),jf=Q(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Mf=Q(`rows-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}]]),Nf=Q(`server-off`,[[`path`,{d:`M7 2h13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-5`,key:`bt2siv`}],[`path`,{d:`M10 10 2.5 2.5C2 2 2 2.5 2 5v3a2 2 0 0 0 2 2h6z`,key:`1hjrv1`}],[`path`,{d:`M22 17v-1a2 2 0 0 0-2-2h-1`,key:`1iynyr`}],[`path`,{d:`M4 14a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16.5l1-.5.5.5-8-8H4z`,key:`161ggg`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Pf=Q(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]);function Ff({className:e,size:t=`default`,...n}){return(0,u.jsxs)(`div`,{className:X(`mun:group/native-select mun:relative mun:w-fit mun:has-[select:disabled]:opacity-50`,e),"data-slot":`native-select-wrapper`,"data-size":t,children:[(0,u.jsx)(`select`,{"data-slot":`native-select`,"data-size":t,className:`mun:h-8 mun:w-full mun:min-w-0 mun:appearance-none mun:rounded-lg mun:border mun:border-input mun:bg-transparent mun:py-1 mun:pr-8 mun:pl-2.5 mun:text-sm mun:transition-colors mun:outline-none mun:select-none mun:selection:bg-primary mun:selection:text-primary-foreground mun:placeholder:text-muted-foreground mun:focus-visible:border-ring mun:focus-visible:ring-3 mun:focus-visible:ring-ring/50 mun:disabled:pointer-events-none mun:disabled:cursor-not-allowed mun:aria-invalid:border-destructive mun:aria-invalid:ring-3 mun:aria-invalid:ring-destructive/20 mun:data-[size=sm]:h-7 mun:data-[size=sm]:rounded-[min(var(--radius-md),10px)] mun:data-[size=sm]:py-0.5 mun:dark:bg-input/30 mun:dark:hover:bg-input/50 mun:dark:aria-invalid:border-destructive/50 mun:dark:aria-invalid:ring-destructive/40`,...n}),(0,u.jsx)(mf,{className:`mun:pointer-events-none mun:absolute mun:top-1/2 mun:right-2.5 mun:size-4 mun:-translate-y-1/2 mun:text-muted-foreground mun:select-none`,"aria-hidden":`true`,"data-slot":`native-select-icon`})]})}function If({className:e,...t}){return(0,u.jsx)(`option`,{"data-slot":`native-select-option`,className:X(`mun:bg-[Canvas] mun:text-[CanvasText]`,e),...t})}var Lf=({pagination:e=[]})=>{let{table:t,isError:n,isLoading:r,isFetching:i}=H();return(0,u.jsxs)(`div`,{className:`mun:flex mun:justify-between mun:flex-wrap`,children:[(0,u.jsxs)(`div`,{className:`mun:flex mun:items-center mun:gap-1`,children:[(0,u.jsxs)(`span`,{className:`mun:text-sm`,children:[`Page`,` `,(0,u.jsxs)(`span`,{className:`mun:font-bold`,children:[t.getState().pagination.pageIndex+1,` of`,` `,t.getPageCount().toLocaleString()]})]}),(0,u.jsxs)(`span`,{className:`mun:text-sm`,children:[`(Showing `,t.getRowModel().rows.length.toLocaleString(),` of`,` `,t.getRowCount().toLocaleString(),` Rows)`]})]}),(0,u.jsxs)(`div`,{className:`mun:flex mun:items-center mun:gap-4 mun:flex-wrap`,children:[(0,u.jsx)($d,{type:`number`,className:`mun:w-16`,min:`1`,max:t.getPageCount(),defaultValue:t.getState().pagination.pageIndex+1,onChange:e=>{let n=e.target.value?Number(e.target.value)-1:0;t.setPageIndex(n)},disabled:n||i||r}),(0,u.jsx)(Ff,{value:t.getState().pagination.pageSize,onChange:e=>{t.setPageSize(Number(e.target.value))},disabled:n||i||r,children:e.map(e=>(0,u.jsxs)(If,{value:e,children:[`Show `,e]},e))}),(0,u.jsxs)(`div`,{className:`mun:flex mun:items-center mun:gap-2`,children:[(0,u.jsx)(Z,{variant:`outline`,onClick:()=>t.firstPage(),disabled:!t.getCanPreviousPage()||n||i||r,children:(0,u.jsx)(_f,{})}),(0,u.jsx)(Z,{size:`icon`,variant:`outline`,onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage()||n||i||r,children:(0,u.jsx)(pf,{})}),(0,u.jsx)(Z,{size:`icon`,variant:`outline`,onClick:()=>t.nextPage(),disabled:!t.getCanNextPage()||n||i||r,children:(0,u.jsx)(hf,{})}),(0,u.jsx)(Z,{size:`icon`,variant:`outline`,onClick:()=>t.lastPage(),disabled:!t.getCanNextPage()||n||i||r,children:(0,u.jsx)(vf,{})})]})]})]})};function Rf({className:e,...t}){return(0,u.jsx)(`table`,{"data-slot":`table`,className:X(`mun:w-full mun:caption-bottom mun:text-sm`,e),...t})}function zf({className:e,...t}){return(0,u.jsx)(`thead`,{"data-slot":`table-header`,className:X(`mun:[&_tr]:border-b`,e),...t})}function Bf({className:e,...t}){return(0,u.jsx)(`tbody`,{"data-slot":`table-body`,className:X(`mun:[&_tr:last-child]:border-0`,e),...t})}function Vf({className:e,...t}){return(0,u.jsx)(`tr`,{"data-slot":`table-row`,className:X(`mun:border-b mun:transition-colors mun:hover:bg-muted/50 mun:has-aria-expanded:bg-muted/50 mun:data-[state=selected]:bg-muted`,e),...t})}function Hf({className:e,...t}){return(0,u.jsx)(`th`,{"data-slot":`table-head`,className:X(`mun:h-10 mun:px-2 mun:text-left mun:align-middle mun:font-medium mun:whitespace-nowrap mun:text-foreground mun:has-[[role=checkbox]]:pr-0`,e),...t})}function Uf({className:e,...t}){return(0,u.jsx)(`td`,{"data-slot":`table-cell`,className:X(`mun:p-2 mun:align-middle mun:whitespace-nowrap mun:has-[[role=checkbox]]:pr-0`,e),...t})}function Wf({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`empty`,className:X(`mun:flex mun:w-full mun:min-w-0 mun:flex-1 mun:flex-col mun:items-center mun:justify-center mun:gap-4 mun:rounded-xl mun:border-dashed mun:p-6 mun:text-center mun:text-balance`,e),...t})}function Gf({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`empty-header`,className:X(`mun:flex mun:max-w-sm mun:flex-col mun:items-center mun:gap-2`,e),...t})}var Kf=kt(`mun:mb-2 mun:flex mun:shrink-0 mun:items-center mun:justify-center mun:[&_svg]:pointer-events-none mun:[&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`mun:flex mun:size-8 mun:shrink-0 mun:items-center mun:justify-center mun:rounded-lg mun:bg-muted mun:text-foreground mun:[&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`}});function qf({className:e,variant:t=`default`,...n}){return(0,u.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":t,className:X(Kf({variant:t,className:e})),...n})}function Jf({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`empty-title`,className:X(`mun:font-heading mun:text-sm mun:font-medium mun:tracking-tight`,e),...t})}function Yf({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`empty-description`,className:X(`mun:text-sm/relaxed mun:text-muted-foreground mun:[&>a]:underline mun:[&>a]:underline-offset-4 mun:[&>a:hover]:text-primary`,e),...t})}var Xf=()=>(0,u.jsx)(`div`,{className:`mun:absolute mun:left-1/2 mun:top-1/2 mun:-translate-x-1/2 mun:-translate-y-1/2 mun:hover:bg-transparent`,children:(0,u.jsx)(Wf,{children:(0,u.jsxs)(Gf,{children:[(0,u.jsx)(qf,{variant:`icon`,children:(0,u.jsx)(bf,{})}),(0,u.jsx)(Jf,{children:`No data`}),(0,u.jsx)(Yf,{children:`No data found`})]})})}),Zf=()=>{let{table:e}=H();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Rf,{children:(0,u.jsx)(Bf,{children:(0,u.jsx)(Vf,{children:e.getLeftVisibleLeafColumns().map((e,t)=>(0,u.jsx)(Uf,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize()}},t))})})}),(0,u.jsx)(Xf,{})]})},Qf=(e,t)=>{let n=e.getIsPinned(),r=n===`left`&&e.getIsLastColumn(`left`),i=n===`right`&&e.getIsFirstColumn(`right`);return{borderRight:r?`1px solid var(--border)`:void 0,borderLeft:i?`1px solid var(--border)`:void 0,left:n===`left`&&!t?`${e.getStart(`left`)}px`:void 0,right:n===`right`&&!t?`${e.getAfter(`right`)}px`:void 0,position:n?t?`relative`:`sticky`:`relative`,width:e.getSize(),zIndex:+!!n,background:n&&!t?`var(--muted)`:void 0}};function $f({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`skeleton`,className:X(`mun:animate-pulse mun:rounded-md mun:bg-muted`,e),...t})}var ep=[60,100,80,50,70,40,90],tp=({column:e,i:t,j:n})=>(0,u.jsx)(u.Fragment,{children:[`select`].includes(e.id)?(0,u.jsx)(Ef,{size:16,className:`animate-spin`}):[`actions`,`pin`,`drag-handle`,`rowNumber`].includes(e.id)?(0,u.jsx)($f,{className:`mun:w-full mun:h-4`}):(0,u.jsx)($f,{className:`mun:h-4`,style:{width:`${ep[(t+n)%ep.length]}px`}})}),np=()=>{let{table:e,isSplit:t,density:n}=H(),r=e.getLeftHeaderGroups().map(e=>e.headers.filter(e=>!e.isPlaceholder&&!e.subHeaders?.length).map(e=>e.column)).flat();return(0,u.jsx)(Rf,{children:(0,u.jsx)(Bf,{children:[...Array(20)].map((e,i)=>(0,u.jsx)(Vf,{className:`mun:*:border-r mun:*:border-border`,children:r.map((e,r)=>(0,u.jsx)(Uf,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize(),padding:n===`sm`?`4px`:n===`md`?`8px`:`16px`,transition:`padding 0.2s`,...Qf(e,t)},children:(0,u.jsx)(tp,{column:e,i,j:r})},r))},i))})})},rp=({cell:e})=>{let{density:t,isSplit:n}=H(),r=(0,l.useRef)(null),i={width:e.column.getSize(),minWidth:e.column.getSize(),maxWidth:e.column.getSize(),padding:t===`sm`?`4px`:t===`md`?`8px`:`16px`,transition:`padding 0.2s`,...Qf(e.column,n)};return(0,l.useLayoutEffect)(()=>{let e=r.current;if(!e)return;let t=()=>{let{height:t}=e.getBoundingClientRect();document.documentElement.style.setProperty(`--cell-h`,`${t}px`)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[t]),(0,u.jsx)(Uf,{ref:r,style:i,className:`mun:truncate`,title:e.getValue()==null?void 0:String(e.getValue()),children:Ue(e.column.columnDef.cell,e.getContext())},e.id)};function ip({row:e,table:t}){return(0,u.jsx)(Vf,{style:{backgroundColor:`blue`,position:`sticky`,zIndex:10,top:e.getIsPinned()===`top`?`calc(${e.getPinnedIndex()} * var(--cell-h))`:void 0,bottom:e.getIsPinned()===`bottom`?`calc(${t.getBottomRows().length-1-e.getPinnedIndex()} * var(--cell-h))`:void 0},children:e.getLeftVisibleCells().map(e=>(0,u.jsx)(rp,{cell:e},e.id))})}var ap=()=>{let{table:e,isLoading:t,isError:n,renderSubComponent:r}=H();return t?(0,u.jsx)(np,{}):n?(0,u.jsx)(`div`,{children:`Error`}):e.getRowModel().rows.length===0?(0,u.jsx)(Zf,{}):(0,u.jsx)(Rf,{children:(0,u.jsxs)(Bf,{children:[e.getTopRows().map(t=>(0,u.jsx)(ip,{row:t,table:e},t.id)),e.getRowModel().rows.map(e=>(0,u.jsxs)(l.default.Fragment,{children:[(0,u.jsx)(Vf,{"data-state":e.getIsSelected()&&`selected`,className:`mun:*:border-r mun:*:border-border`,children:e.getLeftVisibleCells().map(e=>(0,u.jsx)(rp,{cell:e},e.id))}),r&&e.getIsExpanded()&&(0,u.jsx)(Vf,{children:(0,u.jsx)(Uf,{colSpan:e.getVisibleCells().length,children:r({row:e})})})]},e.id)),e.getBottomRows().map(t=>(0,u.jsx)(ip,{row:t,table:e},t.id))]})})},op=({value:e,onChange:t,debounce:n=500,...r})=>{let[i,a]=l.default.useState(e);return l.default.useEffect(()=>{a(e)},[e]),l.default.useEffect(()=>{let e=setTimeout(()=>{t(i)},n);return()=>clearTimeout(e)},[i]),(0,u.jsx)($d,{...r,value:i,onChange:e=>a(e.target.value)})},sp=({column:e})=>{let t=e.getFilterValue(),{filterVariant:n}=e.columnDef.meta??{},{isFetching:r}=H(),i=!r&&n===`select`?Array.from(e.getFacetedUniqueValues().keys()).sort().slice(0,5e3):[];return e.getCanFilter()?(0,u.jsx)(`div`,{className:`mun:p-1.5 mun:border-t mun:border-border mun:w-full`,children:n===`range`?(0,u.jsxs)(`div`,{className:`mun:flex mun:gap-1.5`,children:[(0,u.jsx)(op,{type:`number`,value:t?.[0]??``,onChange:t=>e.setFilterValue(e=>[t,e?.[1]]),placeholder:`Min`}),(0,u.jsx)(op,{type:`number`,value:t?.[1]??``,onChange:t=>e.setFilterValue(e=>[e?.[0],t]),placeholder:`Max`})]}):n===`select`?(0,u.jsxs)(Ff,{value:t?.toString()??``,onChange:t=>e.setFilterValue(t.target.value===`all`?void 0:t.target.value),className:`mun:w-full`,children:[(0,u.jsx)(If,{value:``,children:`All`}),i.map(e=>{let t=typeof e==`boolean`?String(e):e;return(0,u.jsx)(If,{value:t,className:`capitalize`,children:t},t)})]}):n&&[`text`,`time`,`date`,`datetime-local`,`month`,`week`,`number`,`tel`,`url`,`color`].includes(n)?(0,u.jsx)(op,{onChange:t=>e.setFilterValue(t),placeholder:`Search...`,type:n,value:t??``}):(0,u.jsx)(`div`,{className:`mun:h-8 mun:opacity-0 mun:invisible `})}):null};function cp({...e}){return(0,u.jsx)(vu,{"data-slot":`dropdown-menu`,...e})}function lp({...e}){return(0,u.jsx)(yu,{"data-slot":`dropdown-menu-trigger`,...e})}function up({className:e,align:t=`start`,sideOffset:n=4,...r}){return(0,u.jsx)(bu,{children:(0,u.jsx)(xu,{"data-slot":`dropdown-menu-content`,sideOffset:n,align:t,className:X(`mun:z-50 mun:max-h-(--radix-dropdown-menu-content-available-height) mun:w-(--radix-dropdown-menu-trigger-width) mun:min-w-32 mun:origin-(--radix-dropdown-menu-content-transform-origin) mun:overflow-x-hidden mun:overflow-y-auto mun:rounded-lg mun:bg-popover mun:p-1 mun:text-popover-foreground mun:shadow-md mun:ring-1 mun:ring-foreground/10 mun:duration-100 mun:data-[side=bottom]:slide-in-from-top-2 mun:data-[side=left]:slide-in-from-right-2 mun:data-[side=right]:slide-in-from-left-2 mun:data-[side=top]:slide-in-from-bottom-2 mun:data-[state=closed]:overflow-hidden mun:data-open:animate-in mun:data-open:fade-in-0 mun:data-open:zoom-in-95 mun:data-closed:animate-out mun:data-closed:fade-out-0 mun:data-closed:zoom-out-95`,e),...r})})}function dp({...e}){return(0,u.jsx)(Su,{"data-slot":`dropdown-menu-group`,...e})}function fp({className:e,inset:t,variant:n=`default`,...r}){return(0,u.jsx)(Cu,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:X(`mun:group/dropdown-menu-item mun:relative mun:flex mun:cursor-default mun:items-center mun:gap-1.5 mun:rounded-md mun:px-1.5 mun:py-1 mun:text-sm mun:outline-hidden mun:select-none mun:focus:bg-accent mun:focus:text-accent-foreground mun:not-data-[variant=destructive]:focus:**:text-accent-foreground mun:data-inset:pl-7 mun:data-[variant=destructive]:text-destructive mun:data-[variant=destructive]:focus:bg-destructive/10 mun:data-[variant=destructive]:focus:text-destructive mun:dark:data-[variant=destructive]:focus:bg-destructive/20 mun:data-disabled:pointer-events-none mun:data-disabled:opacity-50 mun:[&_svg]:pointer-events-none mun:[&_svg]:shrink-0 mun:[&_svg:not([class*='size-'])]:size-4 mun:data-[variant=destructive]:*:[svg]:text-destructive`,e),...r})}function pp({className:e,...t}){return(0,u.jsx)(wu,{"data-slot":`dropdown-menu-separator`,className:X(`mun:-mx-1 mun:my-1 mun:h-px mun:bg-border`,e),...t})}function mp({className:e,...t}){return(0,u.jsx)(`span`,{"data-slot":`dropdown-menu-shortcut`,className:X(`mun:ml-auto mun:text-xs mun:tracking-widest mun:text-muted-foreground mun:group-focus/dropdown-menu-item:text-accent-foreground`,e),...t})}var hp=({header:e})=>{let[t,n]=(0,l.useState)(!1),{isLoading:r,isError:i}=H();return e.column.getCanFilter()?(0,u.jsxs)(cp,{open:t,onOpenChange:n,children:[(0,u.jsx)(lp,{asChild:!0,children:(0,u.jsx)(Z,{size:`icon-xs`,variant:t?`outline`:`ghost`,disabled:r||i,children:(0,u.jsx)(xf,{})})}),(0,u.jsxs)(up,{align:`end`,children:[(0,u.jsxs)(dp,{children:[(0,u.jsxs)(fp,{onClick:()=>{e.column.toggleSorting(!1),n(!1)},disabled:!e.column.getCanSort(),children:[`Sort ASC`,(0,u.jsx)(mp,{children:(0,u.jsx)(df,{})})]}),(0,u.jsxs)(fp,{onClick:()=>{e.column.toggleSorting(!1),n(!1)},disabled:!e.column.getCanSort(),children:[`Sort DESC`,(0,u.jsx)(mp,{children:(0,u.jsx)(uf,{})})]})]}),(0,u.jsx)(pp,{}),!e.isPlaceholder&&e.column.getCanPin()&&(0,u.jsxs)(dp,{children:[e.column.getIsPinned()!==`left`&&(0,u.jsxs)(fp,{onClick:()=>{e.column.pin(`left`)},children:[`Pin to left`,(0,u.jsx)(mp,{children:(0,u.jsx)(Af,{className:`mun:rotate-45`})})]}),e.column.getIsPinned()&&(0,u.jsxs)(fp,{onClick:()=>{e.column.pin(!1)},children:[`Unpin`,(0,u.jsx)(mp,{children:(0,u.jsx)(kf,{})})]}),e.column.getIsPinned()!==`right`&&(0,u.jsxs)(fp,{onClick:()=>{e.column.pin(`right`)},children:[`Pin to right`,(0,u.jsx)(mp,{children:(0,u.jsx)(Af,{className:`mun:-rotate-45`})})]})]}),(0,u.jsx)(pp,{}),(0,u.jsx)(dp,{children:(0,u.jsxs)(fp,{onClick:()=>{e.column.toggleVisibility(!1),n(!1)},disabled:!e.column.getCanHide(),children:[`Hide column`,(0,u.jsx)(mp,{children:(0,u.jsx)(Sf,{})})]})})]})]}):null},gp=({header:e})=>(0,u.jsx)(`div`,{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:X(`mun:absolute mun:top-0 mun:right-0 mun:h-full mun:w-1.25 mun:bg-black/50 mun:cursor-col-resize mun:select-none mun:touch-none mun:opacity-0 mun:group-hover:opacity-100`,e.column.getIsResizing()?`mun:bg-blue-500 mun:opacity-100`:``)}),_p=({header:e})=>(0,u.jsxs)(`div`,{className:e.column.getCanSort()?`mun:cursor-pointer mun:select-none mun:flex mun:items-center mun:gap-2`:``,onClick:e.column.getToggleSortingHandler(),children:[Ue(e.column.columnDef.header,e.getContext()),{asc:(0,u.jsx)(gf,{className:`mun:size-4`}),desc:(0,u.jsx)(mf,{className:`mun:size-4`})}[e.column.getIsSorted()]??null]}),vp=({header:e})=>{let{isSplit:t}=H(),n={position:`relative`,whiteSpace:`nowrap`,width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize(),...Qf(e.column,t)};return(0,u.jsxs)(Hf,{colSpan:e.colSpan,style:n,className:`mun:p-0 mun:truncate mun:relative mun:group`,children:[e.isPlaceholder?null:(0,u.jsxs)(`div`,{className:`mun:flex mun:flex-col`,children:[(0,u.jsxs)(`div`,{className:`mun:p-1.5 mun:flex mun:items-center mun:justify-between mun:gap-3`,children:[(0,u.jsx)(_p,{header:e}),(0,u.jsx)(hp,{header:e})]}),(0,u.jsx)(sp,{column:e.column})]}),(0,u.jsx)(gp,{header:e})]},e.id)},yp=()=>{let{table:e}=H();return(0,u.jsx)(Rf,{children:(0,u.jsx)(zf,{className:`sticky top-0 z-10 bg-muted`,children:e.getLeftHeaderGroups().map(e=>(0,u.jsx)(Vf,{className:`mun:*:border-r mun:*:border-border`,children:e.headers.map(e=>(0,u.jsx)(vp,{header:e},e.id))},e.id))})})},bp=()=>{let{isSplit:e,columnPinning:t,paneRef3:n,paneRef4:r,height:i,isError:a}=H();return(0,u.jsx)(u.Fragment,{children:!a&&e&&(t?.left?.length??0)>0?(0,u.jsxs)(`div`,{className:`mun:max-w-80 mun:overflow-hidden`,children:[(0,u.jsx)(`div`,{className:`mun:w-full mun:bg-muted mun:border-b mun:border-border mun:overflow-y-scroll mun:[scrollbar-color:transparent_transparent] mun:overflow-x-hidden`,ref:n,children:(0,u.jsx)(yp,{})}),(0,u.jsx)(`div`,{className:`mun:w-full mun:overflow-scroll mun:bg-background`,ref:r,style:{height:i},children:(0,u.jsx)(ap,{})})]}):null})},xp=()=>{let{table:e}=H();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Rf,{children:(0,u.jsx)(Bf,{children:(0,u.jsx)(Vf,{children:e.getLeftVisibleLeafColumns().map((e,t)=>(0,u.jsx)(Uf,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize()}},t))})})}),(0,u.jsx)(Xf,{})]})},Sp=()=>{let{table:e,isSplit:t,density:n}=H(),r=e.getRightHeaderGroups().map(e=>e.headers.filter(e=>!e.isPlaceholder&&!e.subHeaders?.length).map(e=>e.column)).flat();return(0,u.jsx)(Rf,{children:(0,u.jsx)(Bf,{children:[...Array(20)].map((e,i)=>(0,u.jsx)(Vf,{className:`mun:*:border-r mun:*:border-border`,children:r.map((e,r)=>(0,u.jsx)(Uf,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize(),padding:n===`sm`?`4px`:n===`md`?`8px`:`16px`,transition:`padding 0.2s`,...Qf(e,t)},children:(0,u.jsx)(tp,{column:e,i,j:r})},r))},i))})})};function Cp({row:e,table:t}){return(0,u.jsx)(Vf,{style:{backgroundColor:`blue`,position:`sticky`,zIndex:10,top:e.getIsPinned()===`top`?`calc(${e.getPinnedIndex()} * var(--cell-h))`:void 0,bottom:e.getIsPinned()===`bottom`?`calc(${t.getBottomRows().length-1-e.getPinnedIndex()} * var(--cell-h))`:void 0},children:e.getRightVisibleCells().map(e=>(0,u.jsx)(rp,{cell:e},e.id))})}var wp=()=>{let{table:e,isLoading:t,isError:n,renderSubComponent:r}=H();return t?(0,u.jsx)(Sp,{}):n?(0,u.jsx)(`div`,{children:`Error`}):e.getRowModel().rows.length===0?(0,u.jsx)(xp,{}):(0,u.jsx)(Rf,{children:(0,u.jsxs)(Bf,{children:[e.getTopRows().map(t=>(0,u.jsx)(Cp,{row:t,table:e},t.id)),e.getRowModel().rows.map(e=>(0,u.jsxs)(l.default.Fragment,{children:[(0,u.jsx)(Vf,{"data-state":e.getIsSelected()&&`selected`,className:`mun:*:border-r mun:*:border-border`,children:e.getRightVisibleCells().map(e=>(0,u.jsx)(rp,{cell:e},e.id))}),r&&e.getIsExpanded()&&(0,u.jsx)(Vf,{children:(0,u.jsx)(Uf,{colSpan:e.getVisibleCells().length,children:r({row:e})})})]},e.id)),e.getBottomRows().map(t=>(0,u.jsx)(Cp,{row:t,table:e},t.id))]})})},Tp=()=>{let{table:e}=H();return(0,u.jsx)(Rf,{children:(0,u.jsx)(zf,{className:`sticky top-0 z-10 bg-muted`,children:e.getRightHeaderGroups().map(e=>(0,u.jsx)(Vf,{className:`mun:*:border-r mun:*:border-border`,children:e.headers.map(e=>(0,u.jsx)(vp,{header:e},e.id))},e.id))})})},Ep=()=>{let{isSplit:e,columnPinning:t,paneRef5:n,paneRef6:r,height:i,isError:a}=H();return(0,u.jsx)(u.Fragment,{children:!a&&e&&(t?.right?.length??0)>0?(0,u.jsxs)(`div`,{className:`mun:max-w-80 mun:overflow-hidden`,children:[(0,u.jsx)(`div`,{className:`mun:w-full mun:bg-muted mun:border-b mun:border-border mun:overflow-y-scroll mun:[scrollbar-color:transparent_transparent] mun:overflow-x-hidden`,ref:n,children:(0,u.jsx)(Tp,{})}),(0,u.jsx)(`div`,{className:`mun:w-full mun:overflow-scroll mun:bg-background`,ref:r,style:{height:i},children:(0,u.jsx)(wp,{})})]}):null})},Dp=()=>{let[e,t]=(0,l.useState)(()=>typeof navigator<`u`?navigator.onLine:!0);return(0,l.useEffect)(()=>{let e=()=>t(!0),n=()=>t(!1);return window.addEventListener(`online`,e),window.addEventListener(`offline`,n),()=>{window.removeEventListener(`online`,e),window.removeEventListener(`offline`,n)}},[]),(0,u.jsxs)(`div`,{className:`mun:flex mun:flex-col mun:items-center`,children:[(0,u.jsx)(Nf,{size:52,className:`mun:text-red-500 mun:mb-6`}),(0,u.jsx)(`h2`,{className:`mun:text-2xl mun:font-semibold mun:text-red-600 mun:mb-3`,children:`Failed to Load Data`}),(0,u.jsx)(`p`,{className:`mun:text-sm mun:text-muted-foreground mun:mb-6 mun:text-center mun:max-w-md`,children:e?`Something went wrong. Please try refreshing the page.`:`You're currently offline. Please check your internet connection.`}),(0,u.jsx)(Z,{onClick:()=>{e&&window.location.reload()},variant:`outline`,disabled:!e,children:e?`Refresh Page`:`No Connection`})]})},Op=()=>(0,u.jsx)(`div`,{className:`mun:absolute mun:top-1/2 mun:left-1/2 mun:-translate-x-1/2 mun:-translate-y-1/2`,children:(0,u.jsx)(Dp,{})}),kp=()=>{let{table:e,isSplit:t}=H();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Rf,{children:(0,u.jsx)(Bf,{children:(0,u.jsx)(Vf,{children:(0,l.useMemo)(()=>t?e.getCenterVisibleLeafColumns():e.getVisibleLeafColumns(),[e,t]).map((e,t)=>(0,u.jsx)(Uf,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize()}},t))})})}),(0,u.jsx)(Xf,{})]})},Ap=()=>{let{table:e,isSplit:t,density:n}=H(),r=(t?e.getCenterHeaderGroups():e.getHeaderGroups()).map(e=>e.headers.filter(e=>!e.isPlaceholder&&!e.subHeaders?.length).map(e=>e.column)).flat();return(0,u.jsx)(Rf,{children:(0,u.jsx)(Bf,{children:[...Array(20)].map((e,i)=>(0,u.jsx)(Vf,{className:`mun:*:border-r mun:*:border-border`,children:r.map((e,r)=>(0,u.jsx)(Uf,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize(),padding:n===`sm`?`4px`:n===`md`?`8px`:`16px`,transition:`padding 0.2s`,...Qf(e,t)},children:(0,u.jsx)(tp,{column:e,i,j:r})},r))},i))})})};function jp({row:e,table:t,isSplit:n}){return(0,u.jsx)(Vf,{style:{backgroundColor:`blue`,position:`sticky`,zIndex:10,top:e.getIsPinned()===`top`?`calc(${e.getPinnedIndex()} * var(--cell-h))`:void 0,bottom:e.getIsPinned()===`bottom`?`calc(${t.getBottomRows().length-1-e.getPinnedIndex()} * var(--cell-h))`:void 0},children:(n?e.getCenterVisibleCells():e.getVisibleCells()).map(e=>(0,u.jsx)(rp,{cell:e},e.id))})}var Mp=()=>{let{table:e,isLoading:t,isError:n,renderSubComponent:r,isSplit:i}=H();return t?(0,u.jsx)(Ap,{}):n?(0,u.jsx)(Op,{}):e.getRowModel().rows.length===0?(0,u.jsx)(kp,{}):(0,u.jsx)(Rf,{style:{width:e.getCenterTotalSize()},children:(0,u.jsxs)(Bf,{children:[e.getTopRows().map(t=>(0,u.jsx)(jp,{row:t,table:e,isSplit:i},t.id)),e.getRowModel().rows.map(e=>(0,u.jsxs)(l.default.Fragment,{children:[(0,u.jsx)(Vf,{"data-state":e.getIsSelected()&&`selected`,className:`mun:*:border-r mun:*:border-border`,children:(i?e.getCenterVisibleCells():e.getVisibleCells()).map(e=>(0,u.jsx)(rp,{cell:e},e.id))}),r&&e.getIsExpanded()&&(0,u.jsx)(Vf,{children:(0,u.jsx)(Uf,{colSpan:e.getVisibleCells().length,children:r({row:e})})})]},e.id)),e.getBottomRows().map(t=>(0,u.jsx)(jp,{row:t,table:e,isSplit:i},t.id))]})})},Np=()=>{let{table:e,isSplit:t}=H();return(0,u.jsx)(Rf,{style:{width:e.getCenterTotalSize()},children:(0,u.jsx)(zf,{className:`sticky top-0 z-10 bg-muted`,children:(t?e.getCenterHeaderGroups():e.getHeaderGroups()).map(e=>(0,u.jsx)(Vf,{className:`mun:*:border-r mun:*:border-border`,children:e.headers.map(e=>(0,u.jsx)(vp,{header:e},e.id))},e.id))})})},Pp=()=>{let{paneRef1:e,paneRef2:t,height:n}=H();return(0,u.jsxs)(l.default.Fragment,{children:[(0,u.jsx)(`div`,{className:`mun:w-full mun:bg-muted mun:border-b mun:border-border mun:overflow-y-scroll mun:[scrollbar-color:transparent_transparent] mun:overflow-x-hidden`,ref:e,children:(0,u.jsx)(Np,{})}),(0,u.jsx)(`div`,{className:`mun:w-full mun:overflow-scroll mun:bg-background`,ref:t,style:{height:n},children:(0,u.jsx)(Mp,{})})]})};function Fp({className:e,...t}){return(0,u.jsx)(Li,{"data-slot":`checkbox`,className:X(`mun:peer mun:relative mun:flex mun:size-4 mun:shrink-0 mun:items-center mun:justify-center mun:rounded-[4px] mun:border mun:border-input mun:transition-colors mun:outline-none mun:group-has-disabled/field:opacity-50 mun:after:absolute mun:after:-inset-x-3 mun:after:-inset-y-2 mun:focus-visible:border-ring mun:focus-visible:ring-3 mun:focus-visible:ring-ring/50 mun:disabled:cursor-not-allowed mun:disabled:opacity-50 mun:aria-invalid:border-destructive mun:aria-invalid:ring-3 mun:aria-invalid:ring-destructive/20 mun:aria-invalid:aria-checked:border-primary mun:dark:bg-input/30 mun:dark:aria-invalid:border-destructive/50 mun:dark:aria-invalid:ring-destructive/40 mun:data-checked:border-primary mun:data-checked:bg-primary mun:data-checked:text-primary-foreground mun:dark:data-checked:bg-primary`,e),...t,children:(0,u.jsx)(zi,{"data-slot":`checkbox-indicator`,className:`mun:grid mun:place-content-center mun:text-current mun:transition-none mun:[&>svg]:size-3.5`,children:(0,u.jsx)(ff,{})})})}function Ip({className:e,...t}){return(0,u.jsx)(Du,{"data-slot":`label`,className:X(`mun:flex mun:items-center mun:gap-2 mun:text-sm mun:leading-none mun:font-medium mun:select-none mun:group-data-[disabled=true]:pointer-events-none mun:group-data-[disabled=true]:opacity-50 mun:peer-disabled:cursor-not-allowed mun:peer-disabled:opacity-50`,e),...t})}var Lp=()=>{let{table:e,setIsSplit:t,isSplit:n}=H(),[r,i]=(0,l.useState)(``),a=(0,l.useMemo)(()=>e.getAllLeafColumns().filter(e=>![`rowNumber`].includes(e.id)).filter(e=>e.id.toLowerCase().includes(r.toLowerCase())),[r,e]);return(0,u.jsxs)(`div`,{className:`mun:flex mun:flex-col mun:gap-1.5 mun:h-full mun:py-1.5`,children:[(0,u.jsxs)(`div`,{className:`mun:flex mun:items-center mun:justify-between mun:px-1.5 mun:pb-1.5 mun:border-b mun:border-border`,children:[(0,u.jsxs)(`h1`,{className:`mun:text-sm mun:font-bold`,children:[`Columns(`,e.getAllLeafColumns().length,`)`]}),(0,u.jsx)(Z,{size:`xs`,variant:`ghost`,onClick:()=>{e.resetColumnVisibility(),i(``)},children:`Restore`})]}),(0,u.jsx)(`div`,{className:`mun:px-1.5`,children:(0,u.jsx)($d,{placeholder:`Search columns...`,value:r,onChange:e=>i(e.target.value)})}),(0,u.jsx)(`div`,{className:`mun:space-y-2 mun:px-1.5 mun:flex-1 mun:overflow-y-auto mun:[&::-webkit-scrollbar]:w-2\r
|
|
44
|
+
`},fi=0,pi=[];function mi(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(fi++)[0],a=c.useState(Ir)[0],o=c.useRef(e);c.useEffect(function(){o.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=dr([e.lockRef.current],(e.shards||[]).map(li),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=si(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=ei(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=ei(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return oi(h,t,e,h===`h`?s:c,!0)},[]),l=c.useCallback(function(e){var n=e;if(!(!pi.length||pi[pi.length-1]!==a)){var r=`deltaY`in n?ci(n):si(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&ui(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(li).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=c.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:hi(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=c.useCallback(function(e){n.current=si(e),r.current=void 0},[]),f=c.useCallback(function(t){u(t.type,ci(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){u(t.type,si(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return pi.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,Yr),document.addEventListener(`touchmove`,l,Yr),document.addEventListener(`touchstart`,d,Yr),function(){pi=pi.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,l,Yr),document.removeEventListener(`touchmove`,l,Yr),document.removeEventListener(`touchstart`,d,Yr)}},[]);var m=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:di(i)}):null,m?c.createElement(Kr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function hi(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var gi=Tr(Er,mi),_i=c.forwardRef(function(e,t){return c.createElement(Or,lr({},e,{ref:t,sideCar:gi}))});_i.classNames=Or.classNames;var vi=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},yi=new WeakMap,bi=new WeakMap,xi={},Si=0,Ci=function(e){return e&&(e.host||Ci(e.parentNode))},wi=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ci(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Ti=function(e,t,n,r){var i=wi(t,Array.isArray(e)?e:[e]);xi[n]||(xi[n]=new WeakMap);var a=xi[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(yi.get(e)||0)+1,l=(a.get(e)||0)+1;yi.set(e,c),a.set(e,l),o.push(e),c===1&&i&&bi.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Si++,function(){o.forEach(function(e){var t=yi.get(e)-1,i=a.get(e)-1;yi.set(e,t),a.set(e,i),t||(bi.has(e)||e.removeAttribute(r),bi.delete(e)),i||e.removeAttribute(n)}),Si--,Si||(yi=new WeakMap,yi=new WeakMap,bi=new WeakMap,xi={})}},Ei=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||vi(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Ti(r,i,n,`aria-hidden`)):function(){return null}};function Di(e){let t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Oi(e){let[t,n]=l.useState(void 0);return Yt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var ki=`Checkbox`,[Ai,ji]=Kt(ki),[Mi,Ni]=Ai(ki);function Pi(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:d,value:f=`on`,internal_do_not_use_render:p}=e,[m,h]=Zt({prop:n,defaultProp:i??!1,onChange:c,caller:ki}),[g,_]=l.useState(null),[v,y]=l.useState(null),b=l.useRef(!1),x=!g||!!o||!!g.closest(`form`),S={checked:m,disabled:a,setChecked:h,control:g,setControl:_,name:s,form:o,value:f,hasConsumerStoppedPropagationRef:b,required:d,defaultChecked:!Ui(i)&&i,isFormControl:x,bubbleInput:v,setBubbleInput:y};return(0,u.jsx)(Mi,{scope:t,...S,children:Hi(p)?p(S):r})}var Fi=`CheckboxTrigger`,Ii=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{let{control:a,value:o,disabled:s,checked:c,required:d,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:g}=Ni(Fi,e),_=U(i,f),v=l.useRef(c);return l.useEffect(()=>{let e=a?.form;if(e){let t=()=>p(v.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,p]),(0,u.jsx)(W.button,{type:`button`,role:`checkbox`,"aria-checked":Ui(c)?`mixed`:c,"aria-required":d,"data-state":Wi(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:_,onKeyDown:G(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:G(n,e=>{p(e=>Ui(e)?!0:!e),g&&h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});Ii.displayName=Fi;var Li=l.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:d,...f}=e;return(0,u.jsx)(Pi,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:d,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Ii,{...f,ref:t,__scopeCheckbox:n}),e&&(0,u.jsx)(Vi,{__scopeCheckbox:n})]})})});Li.displayName=ki;var Ri=`CheckboxIndicator`,zi=l.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=Ni(Ri,n);return(0,u.jsx)(tn,{present:r||Ui(a.checked)||a.checked===!0,children:(0,u.jsx)(W.span,{"data-state":Wi(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});zi.displayName=Ri;var Bi=`CheckboxBubbleInput`,Vi=l.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:d,value:f,form:p,bubbleInput:m,setBubbleInput:h}=Ni(Bi,e),g=U(n,h),_=Di(a),v=Oi(r);l.useEffect(()=>{let e=m;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(_!==a&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=Ui(a),n.call(e,!Ui(a)&&a),e.dispatchEvent(t)}},[m,_,a,i]);let y=l.useRef(!Ui(a)&&a);return(0,u.jsx)(W.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:o??y.current,required:s,disabled:c,name:d,value:f,form:p,...t,tabIndex:-1,ref:g,style:{...t.style,...v,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});Vi.displayName=Bi;function Hi(e){return typeof e==`function`}function Ui(e){return e===`indeterminate`}function Wi(e){return Ui(e)?`indeterminate`:e?`checked`:`unchecked`}var Gi=[`top`,`right`,`bottom`,`left`],Ki=Math.min,qi=Math.max,Ji=Math.round,Yi=Math.floor,Xi=e=>({x:e,y:e}),Zi={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Qi(e,t,n){return qi(e,Ki(t,n))}function $i(e,t){return typeof e==`function`?e(t):e}function ea(e){return e.split(`-`)[0]}function ta(e){return e.split(`-`)[1]}function na(e){return e===`x`?`y`:`x`}function ra(e){return e===`y`?`height`:`width`}function ia(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function aa(e){return na(ia(e))}function oa(e,t,n){n===void 0&&(n=!1);let r=ta(e),i=aa(e),a=ra(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ha(o)),[o,ha(o)]}function sa(e){let t=ha(e);return[ca(e),t,ca(t)]}function ca(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var la=[`left`,`right`],ua=[`right`,`left`],da=[`top`,`bottom`],fa=[`bottom`,`top`];function pa(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ua:la:t?la:ua;case`left`:case`right`:return t?da:fa;default:return[]}}function ma(e,t,n,r){let i=ta(e),a=pa(ea(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ca)))),a}function ha(e){let t=ea(e);return Zi[t]+e.slice(t.length)}function ga(e){return{top:0,right:0,bottom:0,left:0,...e}}function _a(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ga(e)}function va(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ya(e,t,n){let{reference:r,floating:i}=e,a=ia(t),o=aa(t),s=ra(o),c=ea(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ta(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function ba(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=$i(t,e),p=_a(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=va(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=va(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var xa=50,Sa=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ba},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ya(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<xa&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ya(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Ca=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=$i(e,t)||{};if(l==null)return{};let d=_a(u),f={x:n,y:r},p=aa(i),m=ra(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Ki(d[_],T),ee=Ki(d[v],T),D=E,O=C-h[m]-ee,k=C/2-h[m]/2+w,A=Qi(D,k,O),j=!c.arrow&&ta(i)!=null&&k!==A&&a.reference[m]/2-(k<D?E:ee)-h[m]/2<0,M=j?k<D?k-D:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),wa=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=$i(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=ea(r),_=ia(o),v=ea(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ha(o)]:sa(o)),x=p!==`none`;!d&&x&&b.push(...ma(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=oa(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==ia(t))||T.every(e=>ia(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=ia(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Ta(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ea(e){return Gi.some(t=>e[t]>=0)}var Da=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=$i(e,t);switch(i){case`referenceHidden`:{let e=Ta(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ea(e)}}}case`escaped`:{let e=Ta(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ea(e)}}}default:return{}}}}},Oa=new Set([`left`,`top`]);async function ka(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ea(n),s=ta(n),c=ia(n)===`y`,l=Oa.has(o)?-1:1,u=a&&c?-1:1,d=$i(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Aa=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ka(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ja=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=$i(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ia(ea(i)),p=na(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Qi(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Qi(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Ma=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=$i(e,t),u={x:n,y:r},d=ia(i),f=na(d),p=u[f],m=u[d],h=$i(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Oa.has(ea(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Na=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=$i(e,t),u=await o.detectOverflow(t,l),d=ea(i),f=ta(i),p=ia(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Ki(h-u[g],v),x=Ki(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=qi(u.left,0),t=qi(u.right,0),n=qi(u.top,0),r=qi(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:qi(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:qi(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Pa(){return typeof window<`u`}function Fa(e){return Ra(e)?(e.nodeName||``).toLowerCase():`#document`}function Ia(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function La(e){return((Ra(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ra(e){return Pa()?e instanceof Node||e instanceof Ia(e).Node:!1}function za(e){return Pa()?e instanceof Element||e instanceof Ia(e).Element:!1}function Ba(e){return Pa()?e instanceof HTMLElement||e instanceof Ia(e).HTMLElement:!1}function Va(e){return!Pa()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ia(e).ShadowRoot}function Ha(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ua(e){return/^(table|td|th)$/.test(Fa(e))}function Wa(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ga=/transform|translate|scale|rotate|perspective|filter/,Ka=/paint|layout|strict|content/,qa=e=>!!e&&e!==`none`,Ja;function Ya(e){let t=za(e)?$a(e):e;return qa(t.transform)||qa(t.translate)||qa(t.scale)||qa(t.rotate)||qa(t.perspective)||!Za()&&(qa(t.backdropFilter)||qa(t.filter))||Ga.test(t.willChange||``)||Ka.test(t.contain||``)}function Xa(e){let t=to(e);for(;Ba(t)&&!Qa(t);){if(Ya(t))return t;if(Wa(t))return null;t=to(t)}return null}function Za(){return Ja??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ja}function Qa(e){return/^(html|body|#document)$/.test(Fa(e))}function $a(e){return Ia(e).getComputedStyle(e)}function eo(e){return za(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function to(e){if(Fa(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Va(e)&&e.host||La(e);return Va(t)?t.host:t}function no(e){let t=to(e);return Qa(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ba(t)&&Ha(t)?t:no(t)}function ro(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=no(e),i=r===e.ownerDocument?.body,a=Ia(r);if(i){let e=io(a);return t.concat(a,a.visualViewport||[],Ha(r)?r:[],e&&n?ro(e):[])}else return t.concat(r,ro(r,[],n))}function io(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ao(e){let t=$a(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Ba(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ji(n)!==a||Ji(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function oo(e){return za(e)?e:e.contextElement}function so(e){let t=oo(e);if(!Ba(t))return Xi(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ao(t),o=(a?Ji(n.width):n.width)/r,s=(a?Ji(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var co=Xi(0);function lo(e){let t=Ia(e);return!Za()||!t.visualViewport?co:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ia(e)?!1:t}function fo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=oo(e),o=Xi(1);t&&(r?za(r)&&(o=so(r)):o=so(e));let s=uo(a,n,r)?lo(a):Xi(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Ia(a),t=r&&za(r)?Ia(r):r,n=e,i=io(n);for(;i&&r&&t!==n;){let e=so(i),t=i.getBoundingClientRect(),r=$a(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ia(i),i=io(n)}}return va({width:u,height:d,x:c,y:l})}function po(e,t){let n=eo(e).scrollLeft;return t?t.left+n:fo(La(e)).left+n}function mo(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-po(e,n),y:n.top+t.scrollTop}}function ho(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=La(r),s=t?Wa(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Xi(1),u=Xi(0),d=Ba(r);if((d||!d&&!a)&&((Fa(r)!==`body`||Ha(o))&&(c=eo(r)),d)){let e=fo(r);l=so(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?mo(o,c):Xi(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function go(e){return Array.from(e.getClientRects())}function _o(e){let t=La(e),n=eo(e),r=e.ownerDocument.body,i=qi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=qi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+po(e),s=-n.scrollTop;return $a(r).direction===`rtl`&&(o+=qi(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var vo=25;function yo(e,t){let n=Ia(e),r=La(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Za();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=po(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=vo&&(a-=o)}else l<=vo&&(a+=l);return{width:a,height:o,x:s,y:c}}function bo(e,t){let n=fo(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ba(e)?so(e):Xi(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function xo(e,t,n){let r;if(t===`viewport`)r=yo(e,n);else if(t===`document`)r=_o(La(e));else if(za(t))r=bo(t,n);else{let n=lo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return va(r)}function So(e,t){let n=to(e);return n===t||!za(n)||Qa(n)?!1:$a(n).position===`fixed`||So(n,t)}function Co(e,t){let n=t.get(e);if(n)return n;let r=ro(e,[],!1).filter(e=>za(e)&&Fa(e)!==`body`),i=null,a=$a(e).position===`fixed`,o=a?to(e):e;for(;za(o)&&!Qa(o);){let t=$a(o),n=Ya(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Ha(o)&&!n&&So(e,o))?r=r.filter(e=>e!==o):i=t,o=to(o)}return t.set(e,r),r}function wo(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Wa(t)?[]:Co(t,this._c):[].concat(n),r],o=xo(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=xo(t,a[e],i);s=qi(n.top,s),c=Ki(n.right,c),l=Ki(n.bottom,l),u=qi(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function To(e){let{width:t,height:n}=ao(e);return{width:t,height:n}}function Eo(e,t,n){let r=Ba(t),i=La(t),a=n===`fixed`,o=fo(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Xi(0);function l(){c.x=po(i)}if(r||!r&&!a)if((Fa(t)!==`body`||Ha(i))&&(s=eo(t)),r){let e=fo(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?mo(i,s):Xi(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Do(e){return $a(e).position===`static`}function Oo(e,t){if(!Ba(e)||$a(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return La(e)===n&&(n=n.ownerDocument.body),n}function ko(e,t){let n=Ia(e);if(Wa(e))return n;if(!Ba(e)){let t=to(e);for(;t&&!Qa(t);){if(za(t)&&!Do(t))return t;t=to(t)}return n}let r=Oo(e,t);for(;r&&Ua(r)&&Do(r);)r=Oo(r,t);return r&&Qa(r)&&Do(r)&&!Ya(r)?n:r||Xa(e)||n}var Ao=async function(e){let t=this.getOffsetParent||ko,n=this.getDimensions,r=await n(e.floating);return{reference:Eo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function jo(e){return $a(e).direction===`rtl`}var Mo={convertOffsetParentRelativeRectToViewportRelativeRect:ho,getDocumentElement:La,getClippingRect:wo,getOffsetParent:ko,getElementRects:Ao,getClientRects:go,getDimensions:To,getScale:so,isElement:za,isRTL:jo};function No(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Po(e,t){let n=null,r,i=La(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Yi(d),h=Yi(i.clientWidth-(u+f)),g=Yi(i.clientHeight-(d+p)),_=Yi(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:qi(0,Ki(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!No(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Fo(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=oo(e),u=i||a?[...l?ro(l):[],...t?ro(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Po(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?fo(e):null;c&&g();function g(){let t=fo(e);h&&!No(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Io=Aa,Lo=ja,Ro=wa,zo=Na,Bo=Da,Vo=Ca,Ho=Ma,Uo=(e,t,n)=>{let r=new Map,i={platform:Mo,...n},a={...i.platform,_c:r};return Sa(e,t,{...i,platform:a})},Wo=typeof document<`u`?l.useLayoutEffect:function(){};function Go(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,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Go(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Go(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Ko(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qo(e,t){let n=Ko(e);return Math.round(t*n)/n}function Jo(e){let t=l.useRef(e);return Wo(()=>{t.current=e}),t}function Yo(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=l.useState(r);Go(m,r)||h(r);let[g,_]=l.useState(null),[v,y]=l.useState(null),b=l.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=l.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=l.useRef(null),T=l.useRef(null),E=l.useRef(f),ee=c!=null,D=Jo(c),O=Jo(i),k=Jo(u),A=l.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};O.current&&(e.platform=O.current),Uo(w.current,T.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Go(E.current,t)&&(E.current=t,d.flushSync(()=>{p(t)}))})},[m,t,n,O,k]);Wo(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);let j=l.useRef(!1);Wo(()=>(j.current=!0,()=>{j.current=!1}),[]),Wo(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(D.current)return D.current(S,C,A);A()}},[S,C,A,D,ee]);let M=l.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),N=l.useMemo(()=>({reference:S,floating:C}),[S,C]),P=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=qo(N.floating,f.x),r=qo(N.floating,f.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Ko(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:A,refs:M,elements:N,floatingStyles:P}),[f,A,M,N,P])}var Xo=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Vo({element:r.current,padding:i}).fn(n):r?Vo({element:r,padding:i}).fn(n):{}}}},Zo=(e,t)=>{let n=Io(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qo=(e,t)=>{let n=Lo(e);return{name:n.name,fn:n.fn,options:[e,t]}},$o=(e,t)=>({fn:Ho(e).fn,options:[e,t]}),es=(e,t)=>{let n=Ro(e);return{name:n.name,fn:n.fn,options:[e,t]}},ts=(e,t)=>{let n=zo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ns=(e,t)=>{let n=Bo(e);return{name:n.name,fn:n.fn,options:[e,t]}},rs=(e,t)=>{let n=Xo(e);return{name:n.name,fn:n.fn,options:[e,t]}},is=`Arrow`,as=l.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,u.jsx)(W.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,u.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});as.displayName=is;var os=as,ss=`Popper`,[cs,ls]=Kt(ss),[us,ds]=cs(ss),fs=e=>{let{__scopePopper:t,children:n}=e,[r,i]=l.useState(null),[a,o]=l.useState(void 0);return(0,u.jsx)(us,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};fs.displayName=ss;var ps=`PopperAnchor`,ms=l.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=ds(ps,n),o=l.useRef(null),s=a.onAnchorChange,c=U(t,l.useCallback(e=>{o.current=e,e&&s(e)},[s])),d=l.useRef(null);l.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&s(d.current)});let f=a.placementState&&ws(a.placementState),p=f?.[0],m=f?.[1];return r?null:(0,u.jsx)(W.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...i,ref:c})});ms.displayName=ps;var hs=`PopperContent`,[gs,_s]=cs(hs),vs=l.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p=`partial`,hideWhenDetached:m=!1,updatePositionStrategy:h=`optimized`,onPlaced:g,..._}=e,v=ds(hs,n),[y,b]=l.useState(null),x=U(t,b),[S,C]=l.useState(null),w=Oi(S),T=w?.width??0,E=w?.height??0,ee=r+(a===`center`?``:`-`+a),D=typeof f==`number`?f:{top:0,right:0,bottom:0,left:0,...f},O=Array.isArray(d)?d:[d],k=O.length>0,A={padding:D,boundary:O.filter(Ss),altBoundary:k},{refs:j,floatingStyles:M,placement:N,isPositioned:P,middlewareData:F}=Yo({strategy:`fixed`,placement:ee,whileElementsMounted:(...e)=>Fo(...e,{animationFrame:h===`always`}),elements:{reference:v.anchor},middleware:[Zo({mainAxis:i+E,alignmentAxis:o}),c&&Qo({mainAxis:!0,crossAxis:!1,limiter:p===`partial`?$o():void 0,...A}),c&&es({...A}),ts({...A,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),S&&rs({element:S,padding:s}),Cs({arrowWidth:T,arrowHeight:E}),m&&ns({strategy:`referenceHidden`,...A,boundary:k?A.boundary:void 0})]}),I=v.setPlacementState;Yt(()=>(I(N),()=>{I(void 0)}),[N,I]);let[L,te]=ws(N),ne=En(g);Yt(()=>{P&&ne?.()},[P,ne]);let R=F.arrow?.x,z=F.arrow?.y,re=F.arrow?.centerOffset!==0,[B,V]=l.useState();return Yt(()=>{y&&V(window.getComputedStyle(y).zIndex)},[y]),(0,u.jsx)(`div`,{ref:j.setFloating,"data-radix-popper-content-wrapper":``,style:{...M,transform:P?M.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:B,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(` `),...F.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,u.jsx)(gs,{scope:n,placedSide:L,placedAlign:te,onArrowChange:C,arrowX:R,arrowY:z,shouldHideArrow:re,children:(0,u.jsx)(W.div,{"data-side":L,"data-align":te,..._,ref:x,style:{..._.style,animation:P?void 0:`none`}})})})});vs.displayName=hs;var ys=`PopperArrow`,bs={top:`bottom`,right:`left`,bottom:`top`,left:`right`},xs=l.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=_s(ys,n),a=bs[i.placedSide];return(0,u.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]: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:(0,u.jsx)(os,{...r,ref:t,style:{...r.style,display:`block`}})})});xs.displayName=ys;function Ss(e){return e!==null}var Cs=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=ws(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function ws(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Ts=fs,Es=ms,Ds=vs,Os=xs,ks=!1;function As(){let[e,t]=l.useState(ks);return l.useEffect(()=>{ks||(ks=!0,t(!0))},[]),e}var js=l.useSyncExternalStore;function Ms(){return()=>{}}function Ns(){return js(Ms,()=>!0,()=>!1)}var Ps=typeof js==`function`?Ns:As,Fs=`rovingFocusGroup.onEntryFocus`,Is={bubbles:!1,cancelable:!0},Ls=`RovingFocusGroup`,[Rs,zs,Bs]=Jt(Ls),[Vs,Hs]=Kt(Ls,[Bs]),[Us,Ws]=Vs(Ls),Gs=l.forwardRef((e,t)=>(0,u.jsx)(Rs.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(Rs.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(Ks,{...e,ref:t})})}));Gs.displayName=Ls;var Ks=l.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,m=l.useRef(null),h=U(t,m),g=Tn(a),[_,v]=Zt({prop:o,defaultProp:s??null,onChange:c,caller:Ls}),[y,b]=l.useState(!1),x=En(d),S=zs(n),C=l.useRef(!1),[w,T]=l.useState(0);return l.useEffect(()=>{let e=m.current;if(e)return e.addEventListener(Fs,x),()=>e.removeEventListener(Fs,x)},[x]),(0,u.jsx)(Us,{scope:n,orientation:r,dir:g,loop:i,currentTabStopId:_,onItemFocus:l.useCallback(e=>v(e),[v]),onItemShiftTab:l.useCallback(()=>b(!0),[]),onFocusableItemAdd:l.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:l.useCallback(()=>T(e=>e-1),[]),children:(0,u.jsx)(W.div,{tabIndex:y||w===0?-1:0,"data-orientation":r,...p,ref:h,style:{outline:`none`,...e.style},onMouseDown:G(e.onMouseDown,()=>{C.current=!0}),onFocus:G(e.onFocus,e=>{let t=!C.current;if(e.target===e.currentTarget&&t&&!y){let t=new CustomEvent(Fs,Is);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=S().filter(e=>e.focusable);Qs([e.find(e=>e.active),e.find(e=>e.id===_),...e].filter(Boolean).map(e=>e.ref.current),f)}}C.current=!1}),onBlur:G(e.onBlur,()=>b(!1))})})}),qs=`RovingFocusGroupItem`,Js=l.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=un(),d=a||c,f=Ws(qs,n),p=f.currentTabStopId===d,m=zs(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:_}=f,v=Ps();return Yt(()=>{if(!(!v||!r))return h(),()=>g()},[v,r,h,g]),l.useEffect(()=>{if(!(v||!r))return h(),()=>g()},[v,r,h,g]),(0,u.jsx)(Rs.ItemSlot,{scope:n,id:d,focusable:r,active:i,children:(0,u.jsx)(W.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:G(e.onMouseDown,e=>{r?f.onItemFocus(d):e.preventDefault()}),onFocus:G(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:G(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Zs(e,f.orientation,f.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=m().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=f.loop?$s(n,r+1):n.slice(r+1)}setTimeout(()=>Qs(n))}}),children:typeof o==`function`?o({isCurrentTabStop:p,hasTabStop:_!=null}):o})})});Js.displayName=qs;var Ys={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Xs(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Zs(e,t,n){let r=Xs(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Ys[r]}function Qs(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function $s(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ec=Gs,tc=Js,nc=[`Enter`,` `],rc=[`ArrowDown`,`PageUp`,`Home`],ic=[`ArrowUp`,`PageDown`,`End`],ac=[...rc,...ic],oc={ltr:[...nc,`ArrowRight`],rtl:[...nc,`ArrowLeft`]},sc={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},cc=`Menu`,[lc,uc,dc]=Jt(cc),[fc,pc]=Kt(cc,[dc,ls,Hs]),mc=ls(),hc=Hs(),[gc,_c]=fc(cc),[vc,yc]=fc(cc),bc=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=mc(t),[c,d]=l.useState(null),f=l.useRef(!1),p=En(a),m=Tn(i);return l.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),l.useEffect(()=>{if(!n)return;let e=()=>p(!1);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,p]),(0,u.jsx)(Ts,{...s,children:(0,u.jsx)(gc,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:d,children:(0,u.jsx)(vc,{scope:t,onClose:l.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:o,children:r})})})};bc.displayName=cc;var xc=`MenuAnchor`,Sc=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=mc(n);return(0,u.jsx)(Es,{...i,...r,ref:t})});Sc.displayName=xc;var Cc=`MenuPortal`,[wc,Tc]=fc(Cc,{forceMount:void 0}),Ec=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=_c(Cc,t);return(0,u.jsx)(wc,{scope:t,forceMount:n,children:(0,u.jsx)(tn,{present:n||a.open,children:(0,u.jsx)(ir,{asChild:!0,container:i,children:r})})})};Ec.displayName=Cc;var Dc=`MenuContent`,[Oc,kc]=fc(Dc),Ac=l.forwardRef((e,t)=>{let n=Tc(Dc,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=_c(Dc,e.__scopeMenu),o=yc(Dc,e.__scopeMenu);return(0,u.jsx)(lc.Provider,{scope:e.__scopeMenu,children:(0,u.jsx)(tn,{present:r||a.open,children:(0,u.jsx)(lc.Slot,{scope:e.__scopeMenu,children:o.modal?(0,u.jsx)(jc,{...i,ref:t}):(0,u.jsx)(Mc,{...i,ref:t})})})})}),jc=l.forwardRef((e,t)=>{let n=_c(Dc,e.__scopeMenu),r=l.useRef(null),i=U(t,r);return l.useEffect(()=>{let e=r.current;if(e)return Ei(e)},[]),(0,u.jsx)(Pc,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:G(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Mc=l.forwardRef((e,t)=>{let n=_c(Dc,e.__scopeMenu);return(0,u.jsx)(Pc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Nc=Mt(`MenuContent.ScrollLock`),Pc=l.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,disableOutsideScroll:g,..._}=e,v=_c(Dc,n),y=yc(Dc,n),b=mc(n),x=hc(n),S=uc(n),[C,w]=l.useState(null),T=l.useRef(null),E=U(t,T,v.onContentChange),ee=l.useRef(0),D=l.useRef(``),O=l.useRef(0),k=l.useRef(null),A=l.useRef(`right`),j=l.useRef(0),M=g?_i:l.Fragment,N=g?{as:Nc,allowPinchZoom:!0}:void 0,P=e=>{let t=D.current+e,n=S().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=vl(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){D.current=t,window.clearTimeout(ee.current),t!==``&&(ee.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};l.useEffect(()=>()=>window.clearTimeout(ee.current),[]),sr();let F=l.useCallback(e=>A.current===k.current?.side&&bl(e,k.current?.area),[]);return(0,u.jsx)(Oc,{scope:n,searchRef:D,onItemEnter:l.useCallback(e=>{F(e)&&e.preventDefault()},[F]),onItemLeave:l.useCallback(e=>{F(e)||(T.current?.focus(),w(null))},[F]),onTriggerLeave:l.useCallback(e=>{F(e)&&e.preventDefault()},[F]),pointerGraceTimerRef:O,onPointerGraceIntentChange:l.useCallback(e=>{k.current=e},[]),children:(0,u.jsx)(M,{...N,children:(0,u.jsx)(Gn,{asChild:!0,trapped:i,onMountAutoFocus:G(a,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,u.jsx)(Nn,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,children:(0,u.jsx)(ec,{asChild:!0,...x,dir:y.dir,orientation:`vertical`,loop:r,currentTabStopId:C,onCurrentTabStopIdChange:w,onEntryFocus:G(c,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,u.jsx)(Ds,{role:`menu`,"aria-orientation":`vertical`,"data-state":pl(v.open),"data-radix-menu-content":``,dir:y.dir,...b,..._,ref:E,style:{outline:`none`,..._.style},onKeyDown:G(_.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&P(e.key));let i=T.current;if(e.target!==i||!ac.includes(e.key))return;e.preventDefault();let a=S().filter(e=>!e.disabled).map(e=>e.ref.current);ic.includes(e.key)&&a.reverse(),gl(a)}),onBlur:G(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(ee.current),D.current=``)}),onPointerMove:G(e.onPointerMove,xl(e=>{let t=e.target,n=j.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>j.current?`right`:`left`;A.current=t,j.current=e.clientX}}))})})})})})})});Ac.displayName=Dc;var Fc=`MenuGroup`,Ic=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(W.div,{role:`group`,...r,ref:t})});Ic.displayName=Fc;var Lc=`MenuLabel`,Rc=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(W.div,{...r,ref:t})});Rc.displayName=Lc;var zc=`MenuItem`,Bc=`menu.itemSelect`,Vc=l.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=l.useRef(null),o=yc(zc,e.__scopeMenu),s=kc(zc,e.__scopeMenu),c=U(t,a),d=l.useRef(!1),f=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(Bc,{bubbles:!0,cancelable:!0});e.addEventListener(Bc,e=>r?.(e),{once:!0}),Gt(e,t),t.defaultPrevented?d.current=!1:o.onClose()}};return(0,u.jsx)(Hc,{...i,ref:c,disabled:n,onClick:G(e.onClick,f),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:G(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:G(e.onKeyDown,e=>{n||e.target!==e.currentTarget||s.searchRef.current!==``&&e.key===` `||nc.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});Vc.displayName=zc;var Hc=l.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=kc(zc,n),s=hc(n),c=l.useRef(null),d=U(t,c),[f,p]=l.useState(!1),[m,h]=l.useState(``);return l.useEffect(()=>{let e=c.current;e&&h((e.textContent??``).trim())},[a.children]),(0,u.jsx)(lc.ItemSlot,{scope:n,disabled:r,textValue:i??m,children:(0,u.jsx)(tc,{asChild:!0,...s,focusable:!r,children:(0,u.jsx)(W.div,{role:`menuitem`,"data-highlighted":f?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:d,onPointerMove:G(e.onPointerMove,xl(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:G(e.onPointerLeave,xl(e=>o.onItemLeave(e))),onFocus:G(e.onFocus,()=>p(!0)),onBlur:G(e.onBlur,()=>p(!1))})})})}),Uc=`MenuCheckboxItem`,Wc=l.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,u.jsx)(Qc,{scope:e.__scopeMenu,checked:n,children:(0,u.jsx)(Vc,{role:`menuitemcheckbox`,"aria-checked":ml(n)?`mixed`:n,...i,ref:t,"data-state":hl(n),onSelect:G(i.onSelect,()=>r?.(ml(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Wc.displayName=Uc;var Gc=`MenuRadioGroup`,[Kc,qc]=fc(Gc,{value:void 0,onValueChange:()=>{}}),Jc=l.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=En(r);return(0,u.jsx)(Kc,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,u.jsx)(Ic,{...i,ref:t})})});Jc.displayName=Gc;var Yc=`MenuRadioItem`,Xc=l.forwardRef((e,t)=>{let{value:n,...r}=e,i=qc(Yc,e.__scopeMenu),a=n===i.value;return(0,u.jsx)(Qc,{scope:e.__scopeMenu,checked:a,children:(0,u.jsx)(Vc,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":hl(a),onSelect:G(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Xc.displayName=Yc;var Zc=`MenuItemIndicator`,[Qc,$c]=fc(Zc,{checked:!1}),el=l.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=$c(Zc,n);return(0,u.jsx)(tn,{present:r||ml(a.checked)||a.checked===!0,children:(0,u.jsx)(W.span,{...i,ref:t,"data-state":hl(a.checked)})})});el.displayName=Zc;var tl=`MenuSeparator`,nl=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(W.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});nl.displayName=tl;var rl=`MenuArrow`,il=l.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=mc(n);return(0,u.jsx)(Os,{...i,...r,ref:t})});il.displayName=rl;var al=`MenuSub`,[ol,sl]=fc(al),cl=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=_c(al,t),o=mc(t),[s,c]=l.useState(null),[d,f]=l.useState(null),p=En(i);return l.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),(0,u.jsx)(Ts,{...o,children:(0,u.jsx)(gc,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:f,children:(0,u.jsx)(ol,{scope:t,contentId:un(),triggerId:un(),trigger:s,onTriggerChange:c,children:n})})})};cl.displayName=al;var ll=`MenuSubTrigger`,ul=l.forwardRef((e,t)=>{let n=_c(ll,e.__scopeMenu),r=yc(ll,e.__scopeMenu),i=sl(ll,e.__scopeMenu),a=kc(ll,e.__scopeMenu),o=l.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,d={__scopeMenu:e.__scopeMenu},f=l.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);l.useEffect(()=>f,[f]),l.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]);let p=U(t,i.onTriggerChange);return(0,u.jsx)(Sc,{asChild:!0,...d,children:(0,u.jsx)(Hc,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":pl(n.open),...e,ref:p,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:G(e.onPointerMove,xl(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:G(e.onPointerLeave,xl(e=>{f();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:G(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||a.searchRef.current!==``&&t.key===` `||oc[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});ul.displayName=ll;var dl=`MenuSubContent`,fl=l.forwardRef((e,t)=>{let n=Tc(Dc,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=_c(Dc,e.__scopeMenu),s=yc(Dc,e.__scopeMenu),c=sl(dl,e.__scopeMenu),d=l.useRef(null),f=U(t,d);return(0,u.jsx)(lc.Provider,{scope:e.__scopeMenu,children:(0,u.jsx)(tn,{present:r||o.open,children:(0,u.jsx)(lc.Slot,{scope:e.__scopeMenu,children:(0,u.jsx)(Pc,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:f,align:i,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:G(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:G(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:G(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=sc[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});fl.displayName=dl;function pl(e){return e?`open`:`closed`}function ml(e){return e===`indeterminate`}function hl(e){return ml(e)?`indeterminate`:e?`checked`:`unchecked`}function gl(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function _l(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function vl(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=_l(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function yl(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function bl(e,t){return t?yl({x:e.clientX,y:e.clientY},t):!1}function xl(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Sl=bc,Cl=Sc,wl=Ec,Tl=Ac,El=Ic,Dl=Rc,Ol=Vc,kl=Wc,Al=Jc,jl=Xc,Ml=el,Nl=nl,Pl=il,Fl=ul,Il=fl,Ll=`DropdownMenu`,[Rl,zl]=Kt(Ll,[pc]),Bl=pc(),[Vl,Hl]=Rl(Ll),Ul=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=Bl(t),d=l.useRef(null),[f,p]=Zt({prop:i,defaultProp:a??!1,onChange:o,caller:Ll});return(0,u.jsx)(Vl,{scope:t,triggerId:un(),triggerRef:d,contentId:un(),open:f,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,u.jsx)(Sl,{...c,open:f,onOpenChange:p,dir:r,modal:s,children:n})})};Ul.displayName=Ll;var Wl=`DropdownMenuTrigger`,Gl=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Hl(Wl,n),o=Bl(n),s=U(t,a.triggerRef);return(0,u.jsx)(Cl,{asChild:!0,...o,children:(0,u.jsx)(W.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:G(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:G(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Gl.displayName=Wl;var Kl=`DropdownMenuPortal`,ql=e=>{let{__scopeDropdownMenu:t,...n}=e,r=Bl(t);return(0,u.jsx)(wl,{...r,...n})};ql.displayName=Kl;var Jl=`DropdownMenuContent`,Yl=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Hl(Jl,n),a=Bl(n),o=l.useRef(!1);return(0,u.jsx)(Tl,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:G(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:G(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Yl.displayName=Jl;var Xl=`DropdownMenuGroup`,Zl=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(El,{...i,...r,ref:t})});Zl.displayName=Xl;var Ql=`DropdownMenuLabel`,$l=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Dl,{...i,...r,ref:t})});$l.displayName=Ql;var eu=`DropdownMenuItem`,tu=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Ol,{...i,...r,ref:t})});tu.displayName=eu;var nu=`DropdownMenuCheckboxItem`,ru=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(kl,{...i,...r,ref:t})});ru.displayName=nu;var iu=`DropdownMenuRadioGroup`,au=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Al,{...i,...r,ref:t})});au.displayName=iu;var ou=`DropdownMenuRadioItem`,su=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(jl,{...i,...r,ref:t})});su.displayName=ou;var cu=`DropdownMenuItemIndicator`,lu=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Ml,{...i,...r,ref:t})});lu.displayName=cu;var uu=`DropdownMenuSeparator`,du=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Nl,{...i,...r,ref:t})});du.displayName=uu;var fu=`DropdownMenuArrow`,pu=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Pl,{...i,...r,ref:t})});pu.displayName=fu;var mu=`DropdownMenuSubTrigger`,hu=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Fl,{...i,...r,ref:t})});hu.displayName=mu;var gu=`DropdownMenuSubContent`,_u=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Bl(n);return(0,u.jsx)(Il,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});_u.displayName=gu;var vu=Ul,yu=Gl,bu=ql,xu=Yl,Su=Zl,Cu=tu,wu=du,Tu=`Label`,Eu=l.forwardRef((e,t)=>(0,u.jsx)(W.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Eu.displayName=Tu;var Du=Eu,Ou=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},ku=(e,t)=>({classGroupId:e,validator:t}),Au=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ju=`-`,Mu=[],Nu=`arbitrary..`,Pu=e=>{let t=Lu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Iu(e);let n=e.split(ju);return Fu(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ou(i,t):t:i||Mu}return n[e]||Mu}}},Fu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Fu(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ju):e.slice(t).join(ju),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Iu=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Nu+r:void 0})(),Lu=e=>{let{theme:t,classGroups:n}=e;return Ru(n,t)},Ru=(e,t)=>{let n=Au();for(let r in e){let i=e[r];zu(i,n,r,t)}return n},zu=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Bu(i,t,n,r)}},Bu=(e,t,n,r)=>{if(typeof e==`string`){Vu(e,t,n);return}if(typeof e==`function`){Hu(e,t,n,r);return}Uu(e,t,n,r)},Vu=(e,t,n)=>{let r=e===``?t:Wu(t,e);r.classGroupId=n},Hu=(e,t,n,r)=>{if(Gu(e)){zu(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ku(n,e))},Uu=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];zu(o,Wu(t,a),n,r)}},Wu=(e,t)=>{let n=e,r=t.split(ju),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Au(),n.nextPart.set(t,i)),n=i}return n},Gu=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ku=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},qu=`!`,Ju=`:`,Yu=[],Xu=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Zu=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Ju){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(qu)?(c=s.slice(0,-1),l=!0):s.startsWith(qu)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Xu(t,l,c,u)};if(t){let e=t+Ju,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Xu(Yu,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Qu=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},$u=e=>({cache:Ku(e.cacheSize),parseClassName:Zu(e),sortModifiers:Qu(e),postfixLookupClassGroupIds:ed(e),...Pu(e)}),ed=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},td=/\s+/,nd=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(td),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+qu:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},rd=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=id(n))&&(i&&(i+=` `),i+=r);return i},id=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=id(e[r]))&&(n&&(n+=` `),n+=t);return n},ad=(e,...t)=>{let n,r,i,a,o=o=>(n=$u(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=nd(e,n);return i(e,a),a};return a=o,(...e)=>a(rd(...e))},od=[],K=e=>{let t=t=>t[e]||od;return t.isThemeGetter=!0,t},sd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ld=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ud=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dd=/\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$/,fd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,md=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hd=e=>ld.test(e),q=e=>!!e&&!Number.isNaN(Number(e)),gd=e=>!!e&&Number.isInteger(Number(e)),_d=e=>e.endsWith(`%`)&&q(e.slice(0,-1)),vd=e=>ud.test(e),yd=()=>!0,bd=e=>dd.test(e)&&!fd.test(e),xd=()=>!1,Sd=e=>pd.test(e),Cd=e=>md.test(e),wd=e=>!J(e)&&!Y(e),Td=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ed=e=>Vd(e,Gd,xd),J=e=>sd.test(e),Dd=e=>Vd(e,Kd,bd),Od=e=>Vd(e,qd,q),kd=e=>Vd(e,Yd,yd),Ad=e=>Vd(e,Jd,xd),jd=e=>Vd(e,Ud,xd),Md=e=>Vd(e,Wd,Cd),Nd=e=>Vd(e,Xd,Sd),Y=e=>cd.test(e),Pd=e=>Hd(e,Kd),Fd=e=>Hd(e,Jd),Id=e=>Hd(e,Ud),Ld=e=>Hd(e,Gd),Rd=e=>Hd(e,Wd),zd=e=>Hd(e,Xd,!0),Bd=e=>Hd(e,Yd,!0),Vd=(e,t,n)=>{let r=sd.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Hd=(e,t,n=!1)=>{let r=cd.exec(e);return r?r[1]?t(r[1]):n:!1},Ud=e=>e===`position`||e===`percentage`,Wd=e=>e===`image`||e===`url`,Gd=e=>e===`length`||e===`size`||e===`bg-size`,Kd=e=>e===`length`,qd=e=>e===`number`,Jd=e=>e===`family-name`,Yd=e=>e===`number`||e===`weight`,Xd=e=>e===`shadow`,Zd=ad(()=>{let e=K(`color`),t=K(`font`),n=K(`text`),r=K(`font-weight`),i=K(`tracking`),a=K(`leading`),o=K(`breakpoint`),s=K(`container`),c=K(`spacing`),l=K(`radius`),u=K(`shadow`),d=K(`inset-shadow`),f=K(`text-shadow`),p=K(`drop-shadow`),m=K(`blur`),h=K(`perspective`),g=K(`aspect`),_=K(`ease`),v=K(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Y,J],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Y,J,c],T=()=>[hd,`full`,`auto`,...w()],E=()=>[gd,`none`,`subgrid`,Y,J],ee=()=>[`auto`,{span:[`full`,gd,Y,J]},gd,Y,J],D=()=>[gd,`auto`,Y,J],O=()=>[`auto`,`min`,`max`,`fr`,Y,J],k=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],A=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],j=()=>[`auto`,...w()],M=()=>[hd,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],N=()=>[hd,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],P=()=>[hd,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,Y,J],I=()=>[...b(),Id,jd,{position:[Y,J]}],L=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],te=()=>[`auto`,`cover`,`contain`,Ld,Ed,{size:[Y,J]}],ne=()=>[_d,Pd,Dd],R=()=>[``,`none`,`full`,l,Y,J],z=()=>[``,q,Pd,Dd],re=()=>[`solid`,`dashed`,`dotted`,`double`],B=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],V=()=>[q,_d,Id,jd],ie=()=>[``,`none`,m,Y,J],ae=()=>[`none`,q,Y,J],oe=()=>[`none`,q,Y,J],se=()=>[q,Y,J],ce=()=>[hd,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[vd],breakpoint:[vd],color:[yd],container:[vd],"drop-shadow":[vd],ease:[`in`,`out`,`in-out`],font:[wd],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[vd],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[vd],shadow:[vd],spacing:[`px`,q],text:[vd],"text-shadow":[vd],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,hd,J,Y,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Y,J]}],"container-named":[Td],columns:[{columns:[q,J,Y,s]}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[gd,`auto`,Y,J]}],basis:[{basis:[hd,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[q,hd,`auto`,`initial`,`none`,J]}],grow:[{grow:[``,q,Y,J]}],shrink:[{shrink:[``,q,Y,J]}],order:[{order:[gd,`first`,`last`,`none`,Y,J]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...k(),`normal`]}],"justify-items":[{"justify-items":[...A(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...A()]}],"align-content":[{content:[`normal`,...k()]}],"align-items":[{items:[...A(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...A(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...A(),`baseline`]}],"place-self":[{"place-self":[`auto`,...A()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:M()}],"inline-size":[{inline:[`auto`,...N()]}],"min-inline-size":[{"min-inline":[`auto`,...N()]}],"max-inline-size":[{"max-inline":[`none`,...N()]}],"block-size":[{block:[`auto`,...P()]}],"min-block-size":[{"min-block":[`auto`,...P()]}],"max-block-size":[{"max-block":[`none`,...P()]}],w:[{w:[s,`screen`,...M()]}],"min-w":[{"min-w":[s,`screen`,`none`,...M()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...M()]}],h:[{h:[`screen`,`lh`,...M()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...M()]}],"max-h":[{"max-h":[`screen`,`lh`,...M()]}],"font-size":[{text:[`base`,n,Pd,Dd]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Bd,kd]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,_d,J]}],"font-family":[{font:[Fd,Ad,t]}],"font-features":[{"font-features":[J]}],"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:[i,Y,J]}],"line-clamp":[{"line-clamp":[q,`none`,Y,Od]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Y,J]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Y,J]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...re(),`wavy`]}],"text-decoration-thickness":[{decoration:[q,`from-font`,`auto`,Y,Dd]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[q,`auto`,Y,J]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[gd,Y,J]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Y,J]}],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`,Y,J]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:te()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},gd,Y,J],radial:[``,Y,J],conic:[gd,Y,J]},Rd,Md]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":z()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...re(),`hidden`,`none`]}],"divide-style":[{divide:[...re(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...re(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[q,Y,J]}],"outline-w":[{outline:[``,q,Pd,Dd]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`none`,u,zd,Nd]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,zd,Nd]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:z()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[q,Dd]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,zd,Nd]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[q,Y,J]}],"mix-blend":[{"mix-blend":[...B(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":B()}],"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":[q]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[Y,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[q]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Y,J]}],filter:[{filter:[``,`none`,Y,J]}],blur:[{blur:ie()}],brightness:[{brightness:[q,Y,J]}],contrast:[{contrast:[q,Y,J]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,zd,Nd]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,q,Y,J]}],"hue-rotate":[{"hue-rotate":[q,Y,J]}],invert:[{invert:[``,q,Y,J]}],saturate:[{saturate:[q,Y,J]}],sepia:[{sepia:[``,q,Y,J]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Y,J]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[q,Y,J]}],"backdrop-contrast":[{"backdrop-contrast":[q,Y,J]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,q,Y,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[q,Y,J]}],"backdrop-invert":[{"backdrop-invert":[``,q,Y,J]}],"backdrop-opacity":[{"backdrop-opacity":[q,Y,J]}],"backdrop-saturate":[{"backdrop-saturate":[q,Y,J]}],"backdrop-sepia":[{"backdrop-sepia":[``,q,Y,J]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Y,J]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[q,`initial`,Y,J]}],ease:[{ease:[`linear`,`initial`,_,Y,J]}],delay:[{delay:[q,Y,J]}],animate:[{animate:[`none`,v,Y,J]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Y,J]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":[`scale-3d`],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[Y,J,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":[`translate-none`],zoom:[{zoom:[gd,Y,J]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"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`,Y,J]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,Y,J]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[q,Pd,Dd,Od]}],stroke:[{stroke:[`none`,...F()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-bs`,`border-w-be`,`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-bs`,`border-color-be`,`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-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function X(...e){return Zd(Et(e))}var Qd=kt(`mun:group/button mun:inline-flex mun:shrink-0 mun:items-center mun:justify-center mun:rounded-lg mun:border mun:border-transparent mun:bg-clip-padding mun:text-sm mun:font-medium mun:whitespace-nowrap mun:transition-all mun:outline-none mun:select-none mun:focus-visible:border-ring mun:focus-visible:ring-3 mun:focus-visible:ring-ring/50 mun:active:not-aria-[haspopup]:translate-y-px mun:disabled:pointer-events-none mun:disabled:opacity-50 mun:aria-invalid:border-destructive mun:aria-invalid:ring-3 mun:aria-invalid:ring-destructive/20 mun:dark:aria-invalid:border-destructive/50 mun:dark:aria-invalid:ring-destructive/40 mun:[&_svg]:pointer-events-none mun:[&_svg]:shrink-0 mun:[&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`mun:bg-primary mun:text-primary-foreground mun:hover:bg-primary/80`,outline:`mun:border-border mun:bg-background mun:hover:bg-muted mun:hover:text-foreground mun:aria-expanded:bg-muted mun:aria-expanded:text-foreground mun:dark:border-input mun:dark:bg-input/30 mun:dark:hover:bg-input/50`,secondary:`mun:bg-secondary mun:text-secondary-foreground mun:hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] mun:aria-expanded:bg-secondary mun:aria-expanded:text-secondary-foreground`,ghost:`mun:hover:bg-muted mun:hover:text-foreground mun:aria-expanded:bg-muted mun:aria-expanded:text-foreground mun:dark:hover:bg-muted/50`,destructive:`mun:bg-destructive/10 mun:text-destructive mun:hover:bg-destructive/20 mun:focus-visible:border-destructive/40 mun:focus-visible:ring-destructive/20 mun:dark:bg-destructive/20 mun:dark:hover:bg-destructive/30 mun:dark:focus-visible:ring-destructive/40`,link:`mun:text-primary mun:underline-offset-4 mun:hover:underline`},size:{default:`mun:h-8 mun:gap-1.5 mun:px-2.5 mun:has-data-[icon=inline-end]:pr-2 mun:has-data-[icon=inline-start]:pl-2`,xs:`mun:h-6 mun:gap-1 mun:rounded-[min(var(--radius-md),10px)] mun:px-2 mun:text-xs mun:in-data-[slot=button-group]:rounded-lg mun:has-data-[icon=inline-end]:pr-1.5 mun:has-data-[icon=inline-start]:pl-1.5 mun:[&_svg:not([class*='size-'])]:size-3`,sm:`mun:h-7 mun:gap-1 mun:rounded-[min(var(--radius-md),12px)] mun:px-2.5 mun:text-[0.8rem] mun:in-data-[slot=button-group]:rounded-lg mun:has-data-[icon=inline-end]:pr-1.5 mun:has-data-[icon=inline-start]:pl-1.5 mun:[&_svg:not([class*='size-'])]:size-3.5`,lg:`mun:h-9 mun:gap-1.5 mun:px-2.5 mun:has-data-[icon=inline-end]:pr-2 mun:has-data-[icon=inline-start]:pl-2`,icon:`mun:size-8`,"icon-xs":`mun:size-6 mun:rounded-[min(var(--radius-md),10px)] mun:in-data-[slot=button-group]:rounded-lg mun:[&_svg:not([class*='size-'])]:size-3`,"icon-sm":`mun:size-7 mun:rounded-[min(var(--radius-md),12px)] mun:in-data-[slot=button-group]:rounded-lg`,"icon-lg":`mun:size-9`}},defaultVariants:{variant:`default`,size:`default`}});function Z({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){return(0,u.jsx)(r?Nt:`button`,{"data-slot":`button`,"data-variant":t,"data-size":n,className:X(Qd({variant:t,size:n,className:e})),...i})}function $d({className:e,type:t,...n}){return(0,u.jsx)(`input`,{type:t,"data-slot":`input`,className:X(`mun:h-8 mun:w-full mun:min-w-0 mun:rounded-lg mun:border mun:border-input mun:bg-transparent mun:px-2.5 mun:py-1 mun:text-base mun:transition-colors mun:outline-none mun:file:inline-flex mun:file:h-6 mun:file:border-0 mun:file:bg-transparent mun:file:text-sm mun:file:font-medium mun:file:text-foreground mun:placeholder:text-muted-foreground mun:focus-visible:border-ring mun:focus-visible:ring-3 mun:focus-visible:ring-ring/50 mun:disabled:pointer-events-none mun:disabled:cursor-not-allowed mun:disabled:bg-input/50 mun:disabled:opacity-50 mun:aria-invalid:border-destructive mun:aria-invalid:ring-3 mun:aria-invalid:ring-destructive/20 mun:md:text-sm mun:dark:bg-input/30 mun:dark:disabled:bg-input/80 mun:dark:aria-invalid:border-destructive/50 mun:dark:aria-invalid:ring-destructive/40`,e),...n})}var ef=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),tf=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),nf=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),rf=e=>{let t=nf(e);return t.charAt(0).toUpperCase()+t.slice(1)},af={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`},of=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},sf=(0,l.createContext)({}),cf=()=>(0,l.useContext)(sf),lf=(0,l.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:p=`currentColor`,className:m=``}=cf()??{},h=r??f?Number(n??d)*24/Number(t??u):n??d;return(0,l.createElement)(`svg`,{ref:c,...af,width:t??u??af.width,height:t??u??af.height,stroke:e??p,strokeWidth:h,className:ef(`lucide`,m,i),...!a&&!of(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,l.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Q=(e,t)=>{let n=(0,l.forwardRef)(({className:n,...r},i)=>(0,l.createElement)(lf,{ref:i,iconNode:t,className:ef(`lucide-${tf(rf(e))}`,`lucide-${e}`,n),...r}));return n.displayName=rf(e),n},uf=Q(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),df=Q(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),ff=Q(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),pf=Q(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),mf=Q(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),hf=Q(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),gf=Q(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),_f=Q(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),vf=Q(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),yf=Q(`columns-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]]),bf=Q(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),xf=Q(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),Sf=Q(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Cf=Q(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),wf=Q(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),Tf=Q(`list-restart`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M7 12H3`,key:`13ou7f`}],[`path`,{d:`M7 19H3`,key:`wbqt3n`}],[`path`,{d:`M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14`,key:`qth677`}],[`path`,{d:`M11 10v4h4`,key:`172dkj`}]]),Ef=Q(`loader`,[[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m16.2 7.8 2.9-2.9`,key:`r700ao`}],[`path`,{d:`M18 12h4`,key:`wj9ykh`}],[`path`,{d:`m16.2 16.2 2.9 2.9`,key:`1bxg5t`}],[`path`,{d:`M12 18v4`,key:`jadmvz`}],[`path`,{d:`m4.9 19.1 2.9-2.9`,key:`bwix9q`}],[`path`,{d:`M2 12h4`,key:`j09sii`}],[`path`,{d:`m4.9 4.9 2.9 2.9`,key:`giyufr`}]]),Df=Q(`maximize`,[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]),Of=Q(`minimize`,[[`path`,{d:`M8 3v3a2 2 0 0 1-2 2H3`,key:`hohbtr`}],[`path`,{d:`M21 8h-3a2 2 0 0 1-2-2V3`,key:`5jw1f3`}],[`path`,{d:`M3 16h3a2 2 0 0 1 2 2v3`,key:`198tvr`}],[`path`,{d:`M16 21v-3a2 2 0 0 1 2-2h3`,key:`ph8mxp`}]]),kf=Q(`pin-off`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]),Af=Q(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),jf=Q(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Mf=Q(`rows-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}]]),Nf=Q(`server-off`,[[`path`,{d:`M7 2h13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-5`,key:`bt2siv`}],[`path`,{d:`M10 10 2.5 2.5C2 2 2 2.5 2 5v3a2 2 0 0 0 2 2h6z`,key:`1hjrv1`}],[`path`,{d:`M22 17v-1a2 2 0 0 0-2-2h-1`,key:`1iynyr`}],[`path`,{d:`M4 14a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16.5l1-.5.5.5-8-8H4z`,key:`161ggg`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Pf=Q(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]);function Ff({className:e,size:t=`default`,...n}){return(0,u.jsxs)(`div`,{className:X(`mun:group/native-select mun:relative mun:w-fit mun:has-[select:disabled]:opacity-50`,e),"data-slot":`native-select-wrapper`,"data-size":t,children:[(0,u.jsx)(`select`,{"data-slot":`native-select`,"data-size":t,className:`mun:h-8 mun:w-full mun:min-w-0 mun:appearance-none mun:rounded-lg mun:border mun:border-input mun:bg-transparent mun:py-1 mun:pr-8 mun:pl-2.5 mun:text-sm mun:transition-colors mun:outline-none mun:select-none mun:selection:bg-primary mun:selection:text-primary-foreground mun:placeholder:text-muted-foreground mun:focus-visible:border-ring mun:focus-visible:ring-3 mun:focus-visible:ring-ring/50 mun:disabled:pointer-events-none mun:disabled:cursor-not-allowed mun:aria-invalid:border-destructive mun:aria-invalid:ring-3 mun:aria-invalid:ring-destructive/20 mun:data-[size=sm]:h-7 mun:data-[size=sm]:rounded-[min(var(--radius-md),10px)] mun:data-[size=sm]:py-0.5 mun:dark:bg-input/30 mun:dark:hover:bg-input/50 mun:dark:aria-invalid:border-destructive/50 mun:dark:aria-invalid:ring-destructive/40`,...n}),(0,u.jsx)(mf,{className:`mun:pointer-events-none mun:absolute mun:top-1/2 mun:right-2.5 mun:size-4 mun:-translate-y-1/2 mun:text-muted-foreground mun:select-none`,"aria-hidden":`true`,"data-slot":`native-select-icon`})]})}function If({className:e,...t}){return(0,u.jsx)(`option`,{"data-slot":`native-select-option`,className:X(`mun:bg-[Canvas] mun:text-[CanvasText]`,e),...t})}var Lf=({pagination:e=[]})=>{let{table:t,isError:n,isLoading:r,isFetching:i}=H();return(0,u.jsxs)(`div`,{className:`mun:flex mun:justify-between mun:flex-wrap`,children:[(0,u.jsxs)(`div`,{className:`mun:flex mun:items-center mun:gap-1`,children:[(0,u.jsxs)(`span`,{className:`mun:text-sm`,children:[`Page`,` `,(0,u.jsxs)(`span`,{className:`mun:font-bold`,children:[t.getState().pagination.pageIndex+1,` of`,` `,t.getPageCount().toLocaleString()]})]}),(0,u.jsxs)(`span`,{className:`mun:text-sm`,children:[`(Showing `,t.getRowModel().rows.length.toLocaleString(),` of`,` `,t.getRowCount().toLocaleString(),` Rows)`]})]}),(0,u.jsxs)(`div`,{className:`mun:flex mun:items-center mun:gap-4 mun:flex-wrap`,children:[(0,u.jsx)($d,{type:`number`,className:`mun:w-16`,min:`1`,max:t.getPageCount(),defaultValue:t.getState().pagination.pageIndex+1,onChange:e=>{let n=e.target.value?Number(e.target.value)-1:0;t.setPageIndex(n)},disabled:n||i||r}),(0,u.jsx)(Ff,{value:t.getState().pagination.pageSize,onChange:e=>{t.setPageSize(Number(e.target.value))},disabled:n||i||r,children:e.map(e=>(0,u.jsxs)(If,{value:e,children:[`Show `,e]},e))}),(0,u.jsxs)(`div`,{className:`mun:flex mun:items-center mun:gap-2`,children:[(0,u.jsx)(Z,{variant:`outline`,onClick:()=>t.firstPage(),disabled:!t.getCanPreviousPage()||n||i||r,children:(0,u.jsx)(_f,{})}),(0,u.jsx)(Z,{size:`icon`,variant:`outline`,onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage()||n||i||r,children:(0,u.jsx)(pf,{})}),(0,u.jsx)(Z,{size:`icon`,variant:`outline`,onClick:()=>t.nextPage(),disabled:!t.getCanNextPage()||n||i||r,children:(0,u.jsx)(hf,{})}),(0,u.jsx)(Z,{size:`icon`,variant:`outline`,onClick:()=>t.lastPage(),disabled:!t.getCanNextPage()||n||i||r,children:(0,u.jsx)(vf,{})})]})]})]})};function Rf({className:e,...t}){return(0,u.jsx)(`table`,{"data-slot":`table`,className:X(`mun:w-full mun:caption-bottom mun:text-sm`,e),...t})}function zf({className:e,...t}){return(0,u.jsx)(`thead`,{"data-slot":`table-header`,className:X(`mun:[&_tr]:border-b`,e),...t})}function Bf({className:e,...t}){return(0,u.jsx)(`tbody`,{"data-slot":`table-body`,className:X(`mun:[&_tr:last-child]:border-0`,e),...t})}function Vf({className:e,...t}){return(0,u.jsx)(`tr`,{"data-slot":`table-row`,className:X(`mun:border-b mun:transition-colors mun:hover:bg-muted/50 mun:has-aria-expanded:bg-muted/50 mun:data-[state=selected]:bg-muted`,e),...t})}function Hf({className:e,...t}){return(0,u.jsx)(`th`,{"data-slot":`table-head`,className:X(`mun:h-10 mun:px-2 mun:text-left mun:align-middle mun:font-medium mun:whitespace-nowrap mun:text-foreground mun:has-[[role=checkbox]]:pr-0`,e),...t})}function Uf({className:e,...t}){return(0,u.jsx)(`td`,{"data-slot":`table-cell`,className:X(`mun:p-2 mun:align-middle mun:whitespace-nowrap mun:has-[[role=checkbox]]:pr-0`,e),...t})}function Wf({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`empty`,className:X(`mun:flex mun:w-full mun:min-w-0 mun:flex-1 mun:flex-col mun:items-center mun:justify-center mun:gap-4 mun:rounded-xl mun:border-dashed mun:p-6 mun:text-center mun:text-balance`,e),...t})}function Gf({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`empty-header`,className:X(`mun:flex mun:max-w-sm mun:flex-col mun:items-center mun:gap-2`,e),...t})}var Kf=kt(`mun:mb-2 mun:flex mun:shrink-0 mun:items-center mun:justify-center mun:[&_svg]:pointer-events-none mun:[&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`mun:flex mun:size-8 mun:shrink-0 mun:items-center mun:justify-center mun:rounded-lg mun:bg-muted mun:text-foreground mun:[&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`}});function qf({className:e,variant:t=`default`,...n}){return(0,u.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":t,className:X(Kf({variant:t,className:e})),...n})}function Jf({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`empty-title`,className:X(`mun:font-heading mun:text-sm mun:font-medium mun:tracking-tight`,e),...t})}function Yf({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`empty-description`,className:X(`mun:text-sm/relaxed mun:text-muted-foreground mun:[&>a]:underline mun:[&>a]:underline-offset-4 mun:[&>a:hover]:text-primary`,e),...t})}var Xf=()=>(0,u.jsx)(`div`,{className:`mun:absolute mun:left-1/2 mun:top-1/2 mun:-translate-x-1/2 mun:-translate-y-1/2 mun:hover:bg-transparent`,children:(0,u.jsx)(Wf,{children:(0,u.jsxs)(Gf,{children:[(0,u.jsx)(qf,{variant:`icon`,children:(0,u.jsx)(bf,{})}),(0,u.jsx)(Jf,{children:`No data`}),(0,u.jsx)(Yf,{children:`No data found`})]})})}),Zf=()=>{let{table:e}=H();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Rf,{children:(0,u.jsx)(Bf,{children:(0,u.jsx)(Vf,{children:e.getLeftVisibleLeafColumns().map((e,t)=>(0,u.jsx)(Uf,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize()}},t))})})}),(0,u.jsx)(Xf,{})]})},Qf=(e,t)=>{let n=e.getIsPinned(),r=n===`left`&&e.getIsLastColumn(`left`),i=n===`right`&&e.getIsFirstColumn(`right`);return{borderRight:r?`1px solid var(--border)`:void 0,borderLeft:i?`1px solid var(--border)`:void 0,left:n===`left`&&!t?`${e.getStart(`left`)}px`:void 0,right:n===`right`&&!t?`${e.getAfter(`right`)}px`:void 0,position:n?t?`relative`:`sticky`:`relative`,width:e.getSize(),zIndex:+!!n,background:n&&!t?`var(--muted)`:void 0}};function $f({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`skeleton`,className:X(`mun:animate-pulse mun:rounded-md mun:bg-muted`,e),...t})}var ep=[60,100,80,50,70,40,90],tp=({column:e,i:t,j:n})=>(0,u.jsx)(u.Fragment,{children:[`select`].includes(e.id)?(0,u.jsx)(Ef,{size:16,className:`animate-spin`}):[`actions`,`pin`,`drag-handle`,`rowNumber`].includes(e.id)?(0,u.jsx)($f,{className:`mun:w-full mun:h-4`}):(0,u.jsx)($f,{className:`mun:h-4`,style:{width:`${ep[(t+n)%ep.length]}px`}})}),np=()=>{let{table:e,isSplit:t,density:n}=H(),r=e.getLeftHeaderGroups().map(e=>e.headers.filter(e=>!e.isPlaceholder&&!e.subHeaders?.length).map(e=>e.column)).flat();return(0,u.jsx)(Rf,{children:(0,u.jsx)(Bf,{children:[...Array(20)].map((e,i)=>(0,u.jsx)(Vf,{className:`mun:*:border-r mun:*:border-border`,children:r.map((e,r)=>(0,u.jsx)(Uf,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize(),padding:n===`sm`?`4px`:n===`md`?`8px`:`16px`,transition:`padding 0.2s`,...Qf(e,t)},children:(0,u.jsx)(tp,{column:e,i,j:r})},r))},i))})})},rp=({cell:e})=>{let{density:t,isSplit:n}=H(),r=(0,l.useRef)(null);return(0,l.useLayoutEffect)(()=>{let e=r.current;if(!e)return;let t=()=>{let{height:t}=e.getBoundingClientRect();document.documentElement.style.setProperty(`--cell-h`,`${t}px`)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[t,n]),(0,u.jsx)(Uf,{ref:r,style:{width:e.column.getSize(),minWidth:e.column.getSize(),maxWidth:e.column.getSize(),padding:t===`sm`?`4px`:t===`md`?`8px`:`16px`,height:n?`calc(var(--cell-h))`:void 0,transition:`padding 0.2s`,...Qf(e.column,n)},className:`mun:truncate`,title:e.getValue()==null?void 0:String(e.getValue()),children:Ue(e.column.columnDef.cell,e.getContext())},e.id)};function ip({row:e,table:t}){return(0,u.jsx)(Vf,{style:{backgroundColor:`blue`,position:`sticky`,zIndex:10,top:e.getIsPinned()===`top`?`calc(${e.getPinnedIndex()} * var(--cell-h))`:void 0,bottom:e.getIsPinned()===`bottom`?`calc(${t.getBottomRows().length-1-e.getPinnedIndex()} * var(--cell-h))`:void 0},children:e.getLeftVisibleCells().map(e=>(0,u.jsx)(rp,{cell:e},e.id))})}var ap=()=>{let{table:e,isLoading:t,isError:n,renderSubComponent:r}=H();return t?(0,u.jsx)(np,{}):n?(0,u.jsx)(`div`,{children:`Error`}):e.getRowModel().rows.length===0?(0,u.jsx)(Zf,{}):(0,u.jsx)(Rf,{children:(0,u.jsxs)(Bf,{children:[e.getTopRows().map(t=>(0,u.jsx)(ip,{row:t,table:e},t.id)),e.getRowModel().rows.map(e=>(0,u.jsxs)(l.default.Fragment,{children:[(0,u.jsx)(Vf,{"data-state":e.getIsSelected()&&`selected`,className:`mun:*:border-r mun:*:border-border`,children:e.getLeftVisibleCells().map(e=>(0,u.jsx)(rp,{cell:e},e.id))}),r&&e.getIsExpanded()&&(0,u.jsx)(Vf,{children:(0,u.jsx)(Uf,{colSpan:e.getVisibleCells().length,children:r({row:e})})})]},e.id)),e.getBottomRows().map(t=>(0,u.jsx)(ip,{row:t,table:e},t.id))]})})},op=({value:e,onChange:t,debounce:n=500,...r})=>{let[i,a]=l.default.useState(e);return l.default.useEffect(()=>{a(e)},[e]),l.default.useEffect(()=>{let e=setTimeout(()=>{t(i)},n);return()=>clearTimeout(e)},[i]),(0,u.jsx)($d,{...r,value:i,onChange:e=>a(e.target.value)})},sp=({column:e})=>{let t=e.getFilterValue(),{filterVariant:n}=e.columnDef.meta??{},{isFetching:r}=H(),i=!r&&n===`select`?Array.from(e.getFacetedUniqueValues().keys()).sort().slice(0,5e3):[];return e.getCanFilter()?(0,u.jsx)(`div`,{className:`mun:p-1.5 mun:border-t mun:border-border mun:w-full`,children:n===`range`?(0,u.jsxs)(`div`,{className:`mun:flex mun:gap-1.5`,children:[(0,u.jsx)(op,{type:`number`,value:t?.[0]??``,onChange:t=>e.setFilterValue(e=>[t,e?.[1]]),placeholder:`Min`}),(0,u.jsx)(op,{type:`number`,value:t?.[1]??``,onChange:t=>e.setFilterValue(e=>[e?.[0],t]),placeholder:`Max`})]}):n===`select`?(0,u.jsxs)(Ff,{value:t?.toString()??``,onChange:t=>e.setFilterValue(t.target.value===`all`?void 0:t.target.value),className:`mun:w-full`,children:[(0,u.jsx)(If,{value:``,children:`All`}),i.map(e=>{let t=typeof e==`boolean`?String(e):e;return(0,u.jsx)(If,{value:t,className:`capitalize`,children:t},t)})]}):n&&[`text`,`time`,`date`,`datetime-local`,`month`,`week`,`number`,`tel`,`url`,`color`].includes(n)?(0,u.jsx)(op,{onChange:t=>e.setFilterValue(t),placeholder:`Search...`,type:n,value:t??``}):(0,u.jsx)(`div`,{className:`mun:h-8 mun:opacity-0 mun:invisible `})}):null};function cp({...e}){return(0,u.jsx)(vu,{"data-slot":`dropdown-menu`,...e})}function lp({...e}){return(0,u.jsx)(yu,{"data-slot":`dropdown-menu-trigger`,...e})}function up({className:e,align:t=`start`,sideOffset:n=4,...r}){return(0,u.jsx)(bu,{children:(0,u.jsx)(xu,{"data-slot":`dropdown-menu-content`,sideOffset:n,align:t,className:X(`mun:z-50 mun:max-h-(--radix-dropdown-menu-content-available-height) mun:w-(--radix-dropdown-menu-trigger-width) mun:min-w-32 mun:origin-(--radix-dropdown-menu-content-transform-origin) mun:overflow-x-hidden mun:overflow-y-auto mun:rounded-lg mun:bg-popover mun:p-1 mun:text-popover-foreground mun:shadow-md mun:ring-1 mun:ring-foreground/10 mun:duration-100 mun:data-[side=bottom]:slide-in-from-top-2 mun:data-[side=left]:slide-in-from-right-2 mun:data-[side=right]:slide-in-from-left-2 mun:data-[side=top]:slide-in-from-bottom-2 mun:data-[state=closed]:overflow-hidden mun:data-open:animate-in mun:data-open:fade-in-0 mun:data-open:zoom-in-95 mun:data-closed:animate-out mun:data-closed:fade-out-0 mun:data-closed:zoom-out-95`,e),...r})})}function dp({...e}){return(0,u.jsx)(Su,{"data-slot":`dropdown-menu-group`,...e})}function fp({className:e,inset:t,variant:n=`default`,...r}){return(0,u.jsx)(Cu,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:X(`mun:group/dropdown-menu-item mun:relative mun:flex mun:cursor-default mun:items-center mun:gap-1.5 mun:rounded-md mun:px-1.5 mun:py-1 mun:text-sm mun:outline-hidden mun:select-none mun:focus:bg-accent mun:focus:text-accent-foreground mun:not-data-[variant=destructive]:focus:**:text-accent-foreground mun:data-inset:pl-7 mun:data-[variant=destructive]:text-destructive mun:data-[variant=destructive]:focus:bg-destructive/10 mun:data-[variant=destructive]:focus:text-destructive mun:dark:data-[variant=destructive]:focus:bg-destructive/20 mun:data-disabled:pointer-events-none mun:data-disabled:opacity-50 mun:[&_svg]:pointer-events-none mun:[&_svg]:shrink-0 mun:[&_svg:not([class*='size-'])]:size-4 mun:data-[variant=destructive]:*:[svg]:text-destructive`,e),...r})}function pp({className:e,...t}){return(0,u.jsx)(wu,{"data-slot":`dropdown-menu-separator`,className:X(`mun:-mx-1 mun:my-1 mun:h-px mun:bg-border`,e),...t})}function mp({className:e,...t}){return(0,u.jsx)(`span`,{"data-slot":`dropdown-menu-shortcut`,className:X(`mun:ml-auto mun:text-xs mun:tracking-widest mun:text-muted-foreground mun:group-focus/dropdown-menu-item:text-accent-foreground`,e),...t})}var hp=({header:e})=>{let[t,n]=(0,l.useState)(!1),{isLoading:r,isError:i}=H();return e.column.getCanFilter()?(0,u.jsxs)(cp,{open:t,onOpenChange:n,children:[(0,u.jsx)(lp,{asChild:!0,children:(0,u.jsx)(Z,{size:`icon-xs`,variant:t?`outline`:`ghost`,disabled:r||i,children:(0,u.jsx)(xf,{})})}),(0,u.jsxs)(up,{align:`end`,children:[(0,u.jsxs)(dp,{children:[(0,u.jsxs)(fp,{onClick:()=>{e.column.toggleSorting(!1),n(!1)},disabled:!e.column.getCanSort(),children:[`Sort ASC`,(0,u.jsx)(mp,{children:(0,u.jsx)(df,{})})]}),(0,u.jsxs)(fp,{onClick:()=>{e.column.toggleSorting(!1),n(!1)},disabled:!e.column.getCanSort(),children:[`Sort DESC`,(0,u.jsx)(mp,{children:(0,u.jsx)(uf,{})})]})]}),(0,u.jsx)(pp,{}),!e.isPlaceholder&&e.column.getCanPin()&&(0,u.jsxs)(dp,{children:[e.column.getIsPinned()!==`left`&&(0,u.jsxs)(fp,{onClick:()=>{e.column.pin(`left`)},children:[`Pin to left`,(0,u.jsx)(mp,{children:(0,u.jsx)(Af,{className:`mun:rotate-45`})})]}),e.column.getIsPinned()&&(0,u.jsxs)(fp,{onClick:()=>{e.column.pin(!1)},children:[`Unpin`,(0,u.jsx)(mp,{children:(0,u.jsx)(kf,{})})]}),e.column.getIsPinned()!==`right`&&(0,u.jsxs)(fp,{onClick:()=>{e.column.pin(`right`)},children:[`Pin to right`,(0,u.jsx)(mp,{children:(0,u.jsx)(Af,{className:`mun:-rotate-45`})})]})]}),(0,u.jsx)(pp,{}),(0,u.jsx)(dp,{children:(0,u.jsxs)(fp,{onClick:()=>{e.column.toggleVisibility(!1),n(!1)},disabled:!e.column.getCanHide(),children:[`Hide column`,(0,u.jsx)(mp,{children:(0,u.jsx)(Sf,{})})]})})]})]}):null},gp=({header:e})=>(0,u.jsx)(`div`,{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:X(`mun:absolute mun:top-0 mun:right-0 mun:h-full mun:w-1.25 mun:bg-black/50 mun:cursor-col-resize mun:select-none mun:touch-none mun:opacity-0 mun:group-hover:opacity-100`,e.column.getIsResizing()?`mun:bg-blue-500 mun:opacity-100`:``)}),_p=({header:e})=>(0,u.jsxs)(`div`,{className:e.column.getCanSort()?`mun:cursor-pointer mun:select-none mun:flex mun:items-center mun:gap-2`:``,onClick:e.column.getToggleSortingHandler(),children:[Ue(e.column.columnDef.header,e.getContext()),{asc:(0,u.jsx)(gf,{className:`mun:size-4`}),desc:(0,u.jsx)(mf,{className:`mun:size-4`})}[e.column.getIsSorted()]??null]}),vp=({header:e})=>{let{isSplit:t}=H(),n={position:`relative`,whiteSpace:`nowrap`,width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize(),...Qf(e.column,t)};return(0,u.jsxs)(Hf,{colSpan:e.colSpan,style:n,className:`mun:p-0 mun:truncate mun:relative mun:group`,children:[e.isPlaceholder?null:(0,u.jsxs)(`div`,{className:`mun:flex mun:flex-col`,children:[(0,u.jsxs)(`div`,{className:`mun:p-1.5 mun:flex mun:items-center mun:justify-between mun:gap-3`,children:[(0,u.jsx)(_p,{header:e}),(0,u.jsx)(hp,{header:e})]}),(0,u.jsx)(sp,{column:e.column})]}),(0,u.jsx)(gp,{header:e})]},e.id)},yp=()=>{let{table:e}=H();return(0,u.jsx)(Rf,{children:(0,u.jsx)(zf,{className:`sticky top-0 z-10 bg-muted`,children:e.getLeftHeaderGroups().map(e=>(0,u.jsx)(Vf,{className:`mun:*:border-r mun:*:border-border`,children:e.headers.map(e=>(0,u.jsx)(vp,{header:e},e.id))},e.id))})})},bp=()=>{let{isSplit:e,columnPinning:t,paneRef3:n,paneRef4:r,height:i,isError:a}=H();return(0,u.jsx)(u.Fragment,{children:!a&&e&&(t?.left?.length??0)>0?(0,u.jsxs)(`div`,{className:`mun:max-w-80 mun:overflow-hidden`,children:[(0,u.jsx)(`div`,{className:`mun:w-full mun:bg-muted mun:border-b mun:border-border mun:overflow-y-scroll mun:[scrollbar-color:transparent_transparent] mun:overflow-x-hidden`,ref:n,children:(0,u.jsx)(yp,{})}),(0,u.jsx)(`div`,{className:`mun:w-full mun:overflow-scroll mun:bg-background`,ref:r,style:{height:i},children:(0,u.jsx)(ap,{})})]}):null})},xp=()=>{let{table:e}=H();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Rf,{children:(0,u.jsx)(Bf,{children:(0,u.jsx)(Vf,{children:e.getLeftVisibleLeafColumns().map((e,t)=>(0,u.jsx)(Uf,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize()}},t))})})}),(0,u.jsx)(Xf,{})]})},Sp=()=>{let{table:e,isSplit:t,density:n}=H(),r=e.getRightHeaderGroups().map(e=>e.headers.filter(e=>!e.isPlaceholder&&!e.subHeaders?.length).map(e=>e.column)).flat();return(0,u.jsx)(Rf,{children:(0,u.jsx)(Bf,{children:[...Array(20)].map((e,i)=>(0,u.jsx)(Vf,{className:`mun:*:border-r mun:*:border-border`,children:r.map((e,r)=>(0,u.jsx)(Uf,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize(),padding:n===`sm`?`4px`:n===`md`?`8px`:`16px`,transition:`padding 0.2s`,...Qf(e,t)},children:(0,u.jsx)(tp,{column:e,i,j:r})},r))},i))})})};function Cp({row:e,table:t}){return(0,u.jsx)(Vf,{style:{backgroundColor:`blue`,position:`sticky`,zIndex:10,top:e.getIsPinned()===`top`?`calc(${e.getPinnedIndex()} * var(--cell-h))`:void 0,bottom:e.getIsPinned()===`bottom`?`calc(${t.getBottomRows().length-1-e.getPinnedIndex()} * var(--cell-h))`:void 0},children:e.getRightVisibleCells().map(e=>(0,u.jsx)(rp,{cell:e},e.id))})}var wp=()=>{let{table:e,isLoading:t,isError:n,renderSubComponent:r}=H();return t?(0,u.jsx)(Sp,{}):n?(0,u.jsx)(`div`,{children:`Error`}):e.getRowModel().rows.length===0?(0,u.jsx)(xp,{}):(0,u.jsx)(Rf,{children:(0,u.jsxs)(Bf,{children:[e.getTopRows().map(t=>(0,u.jsx)(Cp,{row:t,table:e},t.id)),e.getRowModel().rows.map(e=>(0,u.jsxs)(l.default.Fragment,{children:[(0,u.jsx)(Vf,{"data-state":e.getIsSelected()&&`selected`,className:`mun:*:border-r mun:*:border-border`,children:e.getRightVisibleCells().map(e=>(0,u.jsx)(rp,{cell:e},e.id))}),r&&e.getIsExpanded()&&(0,u.jsx)(Vf,{children:(0,u.jsx)(Uf,{colSpan:e.getVisibleCells().length,children:r({row:e})})})]},e.id)),e.getBottomRows().map(t=>(0,u.jsx)(Cp,{row:t,table:e},t.id))]})})},Tp=()=>{let{table:e}=H();return(0,u.jsx)(Rf,{children:(0,u.jsx)(zf,{className:`sticky top-0 z-10 bg-muted`,children:e.getRightHeaderGroups().map(e=>(0,u.jsx)(Vf,{className:`mun:*:border-r mun:*:border-border`,children:e.headers.map(e=>(0,u.jsx)(vp,{header:e},e.id))},e.id))})})},Ep=()=>{let{isSplit:e,columnPinning:t,paneRef5:n,paneRef6:r,height:i,isError:a}=H();return(0,u.jsx)(u.Fragment,{children:!a&&e&&(t?.right?.length??0)>0?(0,u.jsxs)(`div`,{className:`mun:max-w-80 mun:overflow-hidden`,children:[(0,u.jsx)(`div`,{className:`mun:w-full mun:bg-muted mun:border-b mun:border-border mun:overflow-y-scroll mun:[scrollbar-color:transparent_transparent] mun:overflow-x-hidden`,ref:n,children:(0,u.jsx)(Tp,{})}),(0,u.jsx)(`div`,{className:`mun:w-full mun:overflow-scroll mun:bg-background`,ref:r,style:{height:i},children:(0,u.jsx)(wp,{})})]}):null})},Dp=()=>{let[e,t]=(0,l.useState)(()=>typeof navigator<`u`?navigator.onLine:!0);return(0,l.useEffect)(()=>{let e=()=>t(!0),n=()=>t(!1);return window.addEventListener(`online`,e),window.addEventListener(`offline`,n),()=>{window.removeEventListener(`online`,e),window.removeEventListener(`offline`,n)}},[]),(0,u.jsxs)(`div`,{className:`mun:flex mun:flex-col mun:items-center`,children:[(0,u.jsx)(Nf,{size:52,className:`mun:text-red-500 mun:mb-6`}),(0,u.jsx)(`h2`,{className:`mun:text-2xl mun:font-semibold mun:text-red-600 mun:mb-3`,children:`Failed to Load Data`}),(0,u.jsx)(`p`,{className:`mun:text-sm mun:text-muted-foreground mun:mb-6 mun:text-center mun:max-w-md`,children:e?`Something went wrong. Please try refreshing the page.`:`You're currently offline. Please check your internet connection.`}),(0,u.jsx)(Z,{onClick:()=>{e&&window.location.reload()},variant:`outline`,disabled:!e,children:e?`Refresh Page`:`No Connection`})]})},Op=()=>(0,u.jsx)(`div`,{className:`mun:absolute mun:top-1/2 mun:left-1/2 mun:-translate-x-1/2 mun:-translate-y-1/2`,children:(0,u.jsx)(Dp,{})}),kp=()=>{let{table:e,isSplit:t}=H();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Rf,{children:(0,u.jsx)(Bf,{children:(0,u.jsx)(Vf,{children:(0,l.useMemo)(()=>t?e.getCenterVisibleLeafColumns():e.getVisibleLeafColumns(),[e,t]).map((e,t)=>(0,u.jsx)(Uf,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize()}},t))})})}),(0,u.jsx)(Xf,{})]})},Ap=()=>{let{table:e,isSplit:t,density:n}=H(),r=(t?e.getCenterHeaderGroups():e.getHeaderGroups()).map(e=>e.headers.filter(e=>!e.isPlaceholder&&!e.subHeaders?.length).map(e=>e.column)).flat();return(0,u.jsx)(Rf,{children:(0,u.jsx)(Bf,{children:[...Array(20)].map((e,i)=>(0,u.jsx)(Vf,{className:`mun:*:border-r mun:*:border-border`,children:r.map((e,r)=>(0,u.jsx)(Uf,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize(),padding:n===`sm`?`4px`:n===`md`?`8px`:`16px`,transition:`padding 0.2s`,...Qf(e,t)},children:(0,u.jsx)(tp,{column:e,i,j:r})},r))},i))})})};function jp({row:e,table:t,isSplit:n}){return(0,u.jsx)(Vf,{style:{backgroundColor:`blue`,position:`sticky`,zIndex:10,top:e.getIsPinned()===`top`?`calc(${e.getPinnedIndex()} * var(--cell-h))`:void 0,bottom:e.getIsPinned()===`bottom`?`calc(${t.getBottomRows().length-1-e.getPinnedIndex()} * var(--cell-h))`:void 0},children:(n?e.getCenterVisibleCells():e.getVisibleCells()).map(e=>(0,u.jsx)(rp,{cell:e},e.id))})}var Mp=()=>{let{table:e,isLoading:t,isError:n,renderSubComponent:r,isSplit:i}=H();return t?(0,u.jsx)(Ap,{}):n?(0,u.jsx)(Op,{}):e.getRowModel().rows.length===0?(0,u.jsx)(kp,{}):(0,u.jsx)(Rf,{style:{width:e.getCenterTotalSize()},children:(0,u.jsxs)(Bf,{children:[e.getTopRows().map(t=>(0,u.jsx)(jp,{row:t,table:e,isSplit:i},t.id)),e.getRowModel().rows.map(e=>(0,u.jsxs)(l.default.Fragment,{children:[(0,u.jsx)(Vf,{"data-state":e.getIsSelected()&&`selected`,className:`mun:*:border-r mun:*:border-border`,children:(i?e.getCenterVisibleCells():e.getVisibleCells()).map(e=>(0,u.jsx)(rp,{cell:e},e.id))}),r&&e.getIsExpanded()&&(0,u.jsx)(Vf,{children:(0,u.jsx)(Uf,{colSpan:e.getVisibleCells().length,children:r({row:e})})})]},e.id)),e.getBottomRows().map(t=>(0,u.jsx)(jp,{row:t,table:e,isSplit:i},t.id))]})})},Np=()=>{let{table:e,isSplit:t}=H();return(0,u.jsx)(Rf,{style:{width:e.getCenterTotalSize()},children:(0,u.jsx)(zf,{className:`sticky top-0 z-10 bg-muted`,children:(t?e.getCenterHeaderGroups():e.getHeaderGroups()).map(e=>(0,u.jsx)(Vf,{className:`mun:*:border-r mun:*:border-border`,children:e.headers.map(e=>(0,u.jsx)(vp,{header:e},e.id))},e.id))})})},Pp=()=>{let{paneRef1:e,paneRef2:t,height:n}=H();return(0,u.jsxs)(l.default.Fragment,{children:[(0,u.jsx)(`div`,{className:`mun:w-full mun:bg-muted mun:border-b mun:border-border mun:overflow-y-scroll mun:[scrollbar-color:transparent_transparent] mun:overflow-x-hidden`,ref:e,children:(0,u.jsx)(Np,{})}),(0,u.jsx)(`div`,{className:`mun:w-full mun:overflow-scroll mun:bg-background`,ref:t,style:{height:n},children:(0,u.jsx)(Mp,{})})]})};function Fp({className:e,...t}){return(0,u.jsx)(Li,{"data-slot":`checkbox`,className:X(`mun:peer mun:relative mun:flex mun:size-4 mun:shrink-0 mun:items-center mun:justify-center mun:rounded-[4px] mun:border mun:border-input mun:transition-colors mun:outline-none mun:group-has-disabled/field:opacity-50 mun:after:absolute mun:after:-inset-x-3 mun:after:-inset-y-2 mun:focus-visible:border-ring mun:focus-visible:ring-3 mun:focus-visible:ring-ring/50 mun:disabled:cursor-not-allowed mun:disabled:opacity-50 mun:aria-invalid:border-destructive mun:aria-invalid:ring-3 mun:aria-invalid:ring-destructive/20 mun:aria-invalid:aria-checked:border-primary mun:dark:bg-input/30 mun:dark:aria-invalid:border-destructive/50 mun:dark:aria-invalid:ring-destructive/40 mun:data-checked:border-primary mun:data-checked:bg-primary mun:data-checked:text-primary-foreground mun:dark:data-checked:bg-primary`,e),...t,children:(0,u.jsx)(zi,{"data-slot":`checkbox-indicator`,className:`mun:grid mun:place-content-center mun:text-current mun:transition-none mun:[&>svg]:size-3.5`,children:(0,u.jsx)(ff,{})})})}function Ip({className:e,...t}){return(0,u.jsx)(Du,{"data-slot":`label`,className:X(`mun:flex mun:items-center mun:gap-2 mun:text-sm mun:leading-none mun:font-medium mun:select-none mun:group-data-[disabled=true]:pointer-events-none mun:group-data-[disabled=true]:opacity-50 mun:peer-disabled:cursor-not-allowed mun:peer-disabled:opacity-50`,e),...t})}var Lp=()=>{let{table:e,setIsSplit:t,isSplit:n}=H(),[r,i]=(0,l.useState)(``),a=(0,l.useMemo)(()=>e.getAllLeafColumns().filter(e=>![`rowNumber`].includes(e.id)).filter(e=>e.id.toLowerCase().includes(r.toLowerCase())),[r,e]);return(0,u.jsxs)(`div`,{className:`mun:flex mun:flex-col mun:gap-1.5 mun:h-full mun:py-1.5`,children:[(0,u.jsxs)(`div`,{className:`mun:flex mun:items-center mun:justify-between mun:px-1.5 mun:pb-1.5 mun:border-b mun:border-border`,children:[(0,u.jsxs)(`h1`,{className:`mun:text-sm mun:font-bold`,children:[`Columns(`,e.getAllLeafColumns().length,`)`]}),(0,u.jsx)(Z,{size:`xs`,variant:`ghost`,onClick:()=>{e.resetColumnVisibility(),i(``)},children:`Restore`})]}),(0,u.jsx)(`div`,{className:`mun:px-1.5`,children:(0,u.jsx)($d,{placeholder:`Search columns...`,value:r,onChange:e=>i(e.target.value)})}),(0,u.jsx)(`div`,{className:`mun:space-y-2 mun:px-1.5 mun:flex-1 mun:overflow-y-auto mun:[&::-webkit-scrollbar]:w-2\r
|
|
45
45
|
mun:[&::-webkit-scrollbar-track]:bg-stone-100\r
|
|
46
46
|
mun:[&::-webkit-scrollbar-thumb]:bg-stone-300\r
|
|
47
47
|
mun:dark:[&::-webkit-scrollbar-track]:bg-neutral-700\r
|
package/dist/index.js
CHANGED
|
@@ -7911,14 +7911,7 @@ var cp = [
|
|
|
7911
7911
|
}, r))
|
|
7912
7912
|
}, i)) }) });
|
|
7913
7913
|
}, dp = ({ cell: e }) => {
|
|
7914
|
-
let { density: t, isSplit: n } = H(), r = f(null)
|
|
7915
|
-
width: e.column.getSize(),
|
|
7916
|
-
minWidth: e.column.getSize(),
|
|
7917
|
-
maxWidth: e.column.getSize(),
|
|
7918
|
-
padding: t === "sm" ? "4px" : t === "md" ? "8px" : "16px",
|
|
7919
|
-
transition: "padding 0.2s",
|
|
7920
|
-
...op(e.column, n)
|
|
7921
|
-
};
|
|
7914
|
+
let { density: t, isSplit: n } = H(), r = f(null);
|
|
7922
7915
|
return l(() => {
|
|
7923
7916
|
let e = r.current;
|
|
7924
7917
|
if (!e) return;
|
|
@@ -7929,9 +7922,17 @@ var cp = [
|
|
|
7929
7922
|
t();
|
|
7930
7923
|
let n = new ResizeObserver(t);
|
|
7931
7924
|
return n.observe(e), () => n.disconnect();
|
|
7932
|
-
}, [t]), /* @__PURE__ */ h(Zf, {
|
|
7925
|
+
}, [t, n]), /* @__PURE__ */ h(Zf, {
|
|
7933
7926
|
ref: r,
|
|
7934
|
-
style:
|
|
7927
|
+
style: {
|
|
7928
|
+
width: e.column.getSize(),
|
|
7929
|
+
minWidth: e.column.getSize(),
|
|
7930
|
+
maxWidth: e.column.getSize(),
|
|
7931
|
+
padding: t === "sm" ? "4px" : t === "md" ? "8px" : "16px",
|
|
7932
|
+
height: n ? "calc(var(--cell-h))" : void 0,
|
|
7933
|
+
transition: "padding 0.2s",
|
|
7934
|
+
...op(e.column, n)
|
|
7935
|
+
},
|
|
7935
7936
|
className: "mun:truncate",
|
|
7936
7937
|
title: e.getValue() == null ? void 0 : String(e.getValue()),
|
|
7937
7938
|
children: Ze(e.column.columnDef.cell, e.getContext())
|