(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,621082,e=>{"use strict";e.i(247167);var t=e.i(229315);function r(e,{startingIndex:t=-1,decrement:i=!1,disabledIndices:a,amount:l=1}={}){let o=t;do o+=i?-l:l;while(o>=0&&o<=e.length-1&&n(e,o,a))return o}function n(e,t,r){if("function"==typeof r?r(t):r?.includes(t)??!1)return!0;let n=e[t];return!!n&&(!!(!i(n)||n.matches(":disabled"))||!r&&(n.hasAttribute("disabled")||"true"===n.getAttribute("aria-disabled")))}function i(e,r=e?(0,t.X)(e):null){var n;return!!e&&!!e.isConnected&&!!r&&"hidden"!==(n=r).visibility&&"collapse"!==n.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==r.display&&"contents"!==r.display)}e.s(["e",0,r,"_",0,function(e,t){return r(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})},"J",0,function(e,t){return r(e.current,{disabledIndices:t})},"v",0,i,"c",0,function(e,t){return t<0||t>=e.length},"K",0,n])},673327,e=>{"use strict";var t=e.i(229315);let r="ArrowUp",n="ArrowDown",i="ArrowLeft",a="ArrowRight",l="Home",o=new Set([r,n,i,a,l,"End"]);function s(e,t,r){let n="left"===r?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[n],t.offsetParent!==e);)t=t.offsetParent;return i}function u(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}e.s(["e",0,n,"b",0,i,"q",0,a,"V",0,r,"J",0,o,"C",0,"End","Z",0,l,"a",0,["Shift","Control","Alt","Meta"],"I",0,"PageDown","v",0,"PageUp","X",0,function(e){return!!((0,t.E)(e)&&"INPUT"===e.tagName&&null!=e.selectionStart||(0,t.E)(e)&&"TEXTAREA"===e.tagName)},"l",0,function(e,t,r,n){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,l=e.clientWidthe.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=n+t.offsetWidth+l.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:n-l.scrollMarginLefte.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=n+t.offsetWidth+l.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(o&&"horizontal"!==n){let r=s(e,t,"top"),n=u(e),i=u(t);r-i.scrollMarginTope.scrollTop+e.clientHeight-n.scrollPaddingBottom&&(a=r+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+n.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:"auto"})}])},395530,e=>{"use strict";var t=e.i(271645),r=e.i(828918),n=e.i(838452),i=e.i(673553);e.s(["f",0,function(e={}){let{highlightItemOnHover:a,highlightedIndex:l,onHighlightedIndexChange:o}=(0,n.o)(),{ref:s,index:u}=(0,i.f)(e),c=l===u,f=t.useRef(null),d=(0,r.A)(s,f);return{compositeProps:{tabIndex:c?0:-1,onFocus(){o(u)},onMouseMove(){let e=f.current;if(!a||!e)return;let t=e.hasAttribute("disabled")||"true"===e.ariaDisabled;c||t||e.focus()}},compositeRef:d,index:u}}])},53687,e=>{"use strict";var t=e.i(271645),r=e.i(388940),n=e.i(667865),i=e.i(146376),a=e.i(545356),l=e.i(843476);function o(){return new Map}function s(){return new Set}function u(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}e.s(["f",0,function(e){let{children:c,elementsRef:f,labelsRef:d,onMapChange:g}=e,v=(0,n.f)(g),[,h]=t.useState(!1),p=(0,r.useRefWithInit)(s).current,b=(0,r.useRefWithInit)(o).current,m=t.useRef(0),x=t.useRef(!0),R=t.useRef([]),y=t.useRef(null),w=(0,n.f)(()=>{x.current||(x.current=!0,h(e=>!e))}),C=(0,n.f)((e,t)=>{b.set(e,t),w()}),M=(0,n.f)(e=>{b.delete(e),w()}),k=(0,n.f)(e=>{let t=new Map;return f.current.length=0,d&&(d.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),f.current[e.index]=e.element,d&&(d.current[e.index]=void 0!==e.registration.label?e.registration.label:e.registration.textRef?.current?.textContent??e.element.textContent)}),m.current=f.current.length,t}),P=(0,n.f)(()=>{var e;let t,r,n,i,[a,l]=(e=b,t=new Set,r=[],n=[],e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,l={index:a??-1,element:i,registration:e};null===a?n.push(l):a>=0&&(t.add(a),r.push(l))}),i=0,n.sort((e,t)=>u(e.element,t.element)),n.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,r.push(e),i+=1}),t.size>0&&r.sort((e,t)=>e.index-t.index),[r,n.map(e=>e.element)]),o=k(a);!function(e){if(y.current?.disconnect(),y.current=null,"function"!=typeof MutationObserver||e.length<2)return;let t=new MutationObserver(r=>{if(!function(e){for(let t of e)for(let e=0;e0){t.disconnect(),w();return}n=r}});y.current=t;let r=new Set;for(let t=1;tt.observe(e,{childList:!0}))}(l),R.current=a,x.current=!1,p.forEach(e=>e(o)),v(o)});(0,i.f)(()=>(x.current||k(R.current),()=>{f.current=[],d&&(d.current=[])}),[f,d,k]),(0,i.f)(()=>{x.current&&P()}),(0,i.f)(()=>()=>{y.current?.disconnect(),x.current=!0},[]);let I=(0,n.f)(e=>(p.add(e),()=>{p.delete(e)})),E=t.useMemo(()=>({register:C,unregister:M,subscribeMapChange:I,nextIndexRef:m}),[C,M,I,m]);return(0,l.jsx)(a.i.Provider,{value:E,children:c})}])},545356,e=>{"use strict";e.i(247167);var t=e.i(271645);let r=t.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});e.s(["i",0,r,"Q",0,function(){return t.useContext(r)}])},673553,e=>{"use strict";var t=e.i(271645),r=e.i(146376),n=e.i(545356);e.s(["f",0,function(e={}){let{guess:i,label:a,metadata:l,textRef:o,index:s}=e,{register:u,unregister:c,subscribeMapChange:f,nextIndexRef:d}=(0,n.Q)(),g=t.useRef(-1),[v,h]=t.useState(null==s&&i?()=>{if(-1===g.current){let e=d.current;d.current+=1,g.current=e}return g.current}:-1),p=s??v,b=t.useRef(null),m=t.useCallback(e=>{let t=b.current;t&&c(t),b.current=e,e&&u(e,{metadata:l??null,index:s??null,label:a,textRef:o})},[s,u,c,l,a,o]);return(0,r.f)(()=>{if(null==s)return f(e=>{let t=b.current?e.get(b.current)?.index:null;null!=t&&h(t)})},[s,f]),{ref:m,index:p}}])},675606,e=>{"use strict";var t=e.i(956789);e.s(["j",0,function(e,r,n,i){let a=!1,l=!1,o=i??t.w;return{reason:e,event:r??new Event("base-ui"),cancel(){a=!0},allowPropagation(){l=!0},get isCanceled(){return a},get isPropagationAllowed(){return l},trigger:n,...o}},"U",0,function(e,r,n){let i=n??t.w;return{reason:e,event:r??new Event("base-ui"),...i}}])},872855,e=>{"use strict";e.i(247167);var t=e.i(271645);let r=t.createContext(void 0);e.s(["f",0,function(){let e=t.useContext(r);return e?.direction??"ltr"}])},216856,e=>{"use strict";e.s(["cancelOpen",0,"cancel-open","closePress",0,"close-press","disabled",0,"disabled","drag",0,"drag","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","initial",0,"initial","inputChange",0,"input-change","itemPress",0,"item-press","keyboard",0,"keyboard","listNavigation",0,"list-navigation","missing",0,"missing","none",0,"none","outsidePress",0,"outside-press","siblingOpen",0,"sibling-open","trackPress",0,"track-press","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press","windowResize",0,"window-resize"])},552348,e=>{"use strict";var t=e.i(216856);e.s(["f",0,t])},380025,e=>{"use strict";var t=e.i(216856);e.s(["f",0,t])},647554,e=>{"use strict";var t=e.i(229315);e.s(["T",0,function(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t},"I",0,function(e,r){if(!e||!r)return!1;let n=r.getRootNode?.();if(e.contains(r))return!0;if(n&&(0,t.R)(n)){let t=r;for(;t;){if(e===t)return!0;t=t.parentNode||t.host}}return!1},"Z",0,function(e){return"composedPath"in e?e.composedPath()[0]:e.target}])},209407,e=>{"use strict";var t;let r=((t={}).startingStyle="data-starting-style",t.endingStyle="data-ending-style",t),n={"data-starting-style":""},i={"data-ending-style":""};e.s(["S",0,r,"T",0,{transitionStatus:e=>"starting"===e?n:"ending"===e?i:null}])},788015,883977,e=>{"use strict";var t=e.i(271645),r=e.i(214553);let n=0,i=r.f.useId;function a(e,r){if(void 0!==i){let t=i();return e??(r?`${r}-${t}`:t)}return function(e,r="mui"){let[i,a]=t.useState(e),l=e||i;return t.useEffect(()=>{null==i&&(n+=1,a(`${r}-${n}`))},[i,r]),l}(e,r)}e.s(["f",0,a],883977),e.s(["f",0,function(e){return a(e,"base-ui")}],788015)},137584,594603,222640,e=>{"use strict";var t=e.i(271645),r=e.i(667865),n=e.i(174080),i=e.i(708445);function a(e){return null==e?e:"current"in e?e.current:e}function l(e,t=!1){let o=(0,i.z)();return(0,r.f)((r,i=null)=>{o.cancel();let l=a(e);if(null==l)return;let s=()=>{n.flushSync(r)};if("function"!=typeof l.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void r();function u(){Promise.all(l.getAnimations().map(e=>e.finished)).then(()=>{i?.aborted||s()},()=>{i?.aborted||(l.getAnimations().some(e=>e.pending||"finished"!==e.playState)?u():s())})}if(t){let e="data-starting-style";if(!l.hasAttribute(e))return void o.request(u);let t=new MutationObserver(()=>{l.hasAttribute(e)||(t.disconnect(),u())});return t.observe(l,{attributes:!0,attributeFilter:[e]}),void i?.addEventListener("abort",()=>t.disconnect(),{once:!0})}o.request(u)})}e.s(["f",0,a],594603),e.s(["f",0,l],222640),e.s(["f",0,function(e){let{enabled:n=!0,open:i,ref:a,onComplete:o}=e,s=(0,r.f)(o),u=l(a,i);t.useEffect(()=>{if(!n)return;let e=new AbortController;return u(s,e.signal),()=>{e.abort()}},[n,i,s,u])}],137584)},223910,e=>{"use strict";var t=e.i(271645),r=e.i(146376),n=e.i(708445);e.s(["f",0,function(e,i=!1,a=!1){let[l,o]=t.useState(e&&i?"idle":void 0),[s,u]=t.useState(e);return e&&!s&&(u(!0),o("starting")),e||!s||"ending"===l||a||o("ending"),e||s||"ending"!==l||o(void 0),(0,r.f)(()=>{if(!e&&s&&"ending"!==l&&a){let e=n.$.request(()=>{o("ending")});return()=>{n.$.cancel(e)}}},[e,s,l,a]),(0,r.f)(()=>{if(!e||i)return;let t=n.$.request(()=>{o(void 0)});return()=>{n.$.cancel(t)}},[i,e]),(0,r.f)(()=>{if(!e||!i)return;e&&s&&"idle"!==l&&o("starting");let t=n.$.request(()=>{o("idle")});return()=>{n.$.cancel(t)}},[i,e,s,l]),{mounted:s,setMounted:u,transitionStatus:l}}])},144394,e=>{"use strict";var t=e.i(958321);e.s(["f",0,function(e){return(0,t.f)(19)?e:e?"true":void 0}])},590803,e=>{"use strict";e.s(["f",0,function(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}])},108868,e=>{"use strict";e.s(["f",0,function(e){return e?.ownerDocument||document}])},708445,626300,e=>{"use strict";var t=e.i(388940),r=e.i(271645),n=e.i(956789);function i(e){r.useEffect(e,n.v)}e.s(["f",0,i],626300);let a=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class l{static create(){return new l}static request(e){return a.request(e)}static cancel(e){return a.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=a.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(a.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["$",0,l,"z",0,function(){let e=(0,t.useRefWithInit)(l.create).current;return i(e.disposeEffect),e}],708445)},677572,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(951437),i=e.i(146376),a=e.i(667865),l=e.i(552245),o=e.i(53687),s=e.i(733332);let u=r.createContext(void 0);function c(){let e=r.useContext(u);if(void 0===e)throw Error((0,s.f)(64));return e}let f={tabActivationDirection:e=>({"data-activation-direction":e})};var d=e.i(675606),g=e.i(216856),g=g,v=g,h=e.i(552348);let p=r.forwardRef(function(e,s){let{className:c,defaultValue:p=0,onValueChange:x,orientation:R="horizontal",render:y,value:w,style:C,...M}=e,k=void 0!==e.defaultValue,P=r.useRef([]),[I,E]=r.useState(()=>new Map),[A,S]=(0,n.f)({controlled:w,default:p,name:"Tabs",state:"value"}),T=void 0!==w,[L,z]=r.useState(()=>new Map),D=r.useRef(void 0),N=r.useCallback(e=>b(L,e),[L]),[j,F]=r.useState(()=>({previousValue:A,tabActivationDirection:"none"})),{previousValue:O,tabActivationDirection:q}=j,W=q,B=!1;O!==A&&(W=m(O,A,R,L),B=null!=O&&null!=A&&null==N(A));let H=B?O:A,V=O!==H||q!==W;(0,i.f)(()=>{V&&F({previousValue:H,tabActivationDirection:W})},[H,V,W]);let $=(0,a.f)((e,t)=>{t.activationDirection=m(A,e,R,L),x?.(e,t),t.isCanceled||S(e)}),K=(0,a.f)((e,t)=>{x?.(e,(0,d.j)(t,void 0,void 0,{activationDirection:"none"}))}),_=(0,a.f)((e,t)=>(E(r=>{let n=new Map(r);return n.set(e,t),n}),()=>{E(r=>{if(r.get(e)!==t)return r;let n=new Map(r);return n.delete(e),n})})),U=r.useCallback(e=>I.get(e),[I]),Z=r.useCallback(e=>{for(let t of L.values())if(e===t.value)return t.id},[L]),X=r.useMemo(()=>({getTabElementBySelectedValue:N,getTabIdByPanelValue:Z,getTabPanelIdByValue:U,onValueChange:$,orientation:R,registerMountedTabPanel:_,setTabMap:z,tabActivationDirection:W,value:A}),[N,Z,U,$,R,_,z,W,A]),J=r.useMemo(()=>{for(let e of L.values())if(e.value===A)return e},[L,A]),Q=r.useMemo(()=>{for(let e of L.values())if(!e.disabled)return e.value},[L]),G=r.useRef(!k),Y=r.useRef(p),ee=r.useRef(k),et=r.useRef(!1);(0,i.f)(()=>{if(T)return;function e(e,t){S(e),F({previousValue:e,tabActivationDirection:"none"}),K(e,t),G.current=!1}if(0===L.size){et.current&&null!==A&&!D.current?.isConnected&&e(null,v.missing);return}et.current=!0,D.current=L.keys().next().value;let t=J?.disabled,r=null==J&&null!==A;if(t||A!==Y.current||(ee.current=!1),ee.current&&t&&A===Y.current)return;let n=G.current;if(t||r){let r=Q??null;if(A===r){G.current=!1;return}let i=v.missing;n?i=g.initial:t&&(i=h.f.disabled),e(r,i);return}n&&null!=J&&(K(A,g.initial),G.current=!1)},[Q,T,K,J,S,L,A]);let er={orientation:R,tabActivationDirection:W},en=(0,l.f)("div",e,{state:er,ref:s,props:M,stateAttributesMapping:f});return(0,t.jsx)(u.Provider,{value:X,children:(0,t.jsx)(o.f,{elementsRef:P,children:en})})});function b(e,t){for(let[r,n]of e.entries())if(t===n.value)return r;return null}function m(e,t,r,n){if(null==e||null==t)return"none";let[i,a,l]="horizontal"===r?["left","left","right"]:["top","up","down"],o=b(n,e),s=b(n,t);if(null==o||null==s)return o!==s&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?t>e?l:a:"none";let u=o.getBoundingClientRect()[i],c=s.getBoundingClientRect()[i];return cu?l:"none"}var x=e.i(108868),R=e.i(788015),y=e.i(540886);let w="data-composite-item-active";var C=e.i(395530),M=e.i(838452);let k=r.createContext(void 0);var P=e.i(380025),I=e.i(647554);let E=r.forwardRef(function(e,t){let{className:n,disabled:o=!1,render:u,value:g,id:v,nativeButton:h=!0,style:p,...b}=e,{value:m,getTabPanelIdByValue:E,onValueChange:A,orientation:S,tabActivationDirection:T}=c(),{activateOnFocus:L,registerTabResizeObserverElement:z,tabsListElement:D}=function(){let e=r.useContext(k);if(void 0===e)throw Error((0,s.f)(65));return e}(),{highlightedIndex:N,onHighlightedIndexChange:j}=(0,M.o)(),F=(0,R.f)(v),O=r.useMemo(()=>({disabled:o,id:F,value:g}),[o,F,g]),{compositeProps:q,compositeRef:W,index:B}=(0,C.f)({metadata:O}),H=g===m,V=r.useRef(!1),$=r.useRef(null),K=(0,a.f)(e=>{$.current?.(),$.current=e?z(e):null});(0,i.f)(()=>{if(V.current){V.current=!1;return}if(H&&B>-1&&N!==B){if(null!=D){let e=(0,I.T)((0,x.f)(D));if(e&&(0,I.I)(D,e))return}o||j(B)}},[H,B,N,j,o,D]);let{getButtonProps:_,buttonRef:U}=(0,y.f)({disabled:o,native:h,focusableWhenDisabled:!0}),Z=E(g),X=r.useRef(!1),J=r.useRef(!1);function Q(e){A(g,(0,d.j)(P.f.none,e.nativeEvent,void 0,{activationDirection:"none"}))}return(0,l.f)("button",e,{state:{disabled:o,active:H,orientation:S,tabActivationDirection:T},ref:[t,U,W,K],props:[q,{role:"tab","aria-controls":Z,"aria-selected":H,id:F,onClick:function(e){H||o||Q(e)},onFocus:function(e){H||o||L&&(!X.current||J.current)&&Q(e)},onPointerDown:function(e){if(H||o)return;X.current=!0,J.current=0===e.button;let t=(0,x.f)(e.currentTarget);function r(){X.current=!1,J.current=!1,t.removeEventListener("pointerup",r),t.removeEventListener("pointercancel",r)}t.addEventListener("pointerup",r),t.addEventListener("pointercancel",r)},[w]:H?"":void 0,onKeyDownCapture(){V.current=!0}},b,_],stateAttributesMapping:f})});var A=e.i(144394),S=e.i(209407),T=e.i(137584),L=e.i(223910),z=e.i(673553);let D={...f,...S.T},N=r.forwardRef(function(e,t){let{className:n,value:a,render:o,keepMounted:s=!1,style:u,...f}=e,{value:d,getTabIdByPanelValue:g,orientation:v,tabActivationDirection:h,registerMountedTabPanel:p}=c(),b=(0,R.f)(),{ref:m,index:x}=(0,z.f)(),y=a===d,{mounted:w,transitionStatus:C,setMounted:M}=(0,L.f)(y),k=!w,P=g(a),I=r.useRef(null),E=(0,l.f)("div",e,{state:{hidden:k,orientation:v,tabActivationDirection:h,transitionStatus:C},ref:[t,m,I],props:[{"aria-labelledby":P,hidden:k,id:b,role:"tabpanel",tabIndex:y?0:-1,inert:(0,A.f)(!y),"data-index":x},f],stateAttributesMapping:D});return((0,T.f)({open:y,ref:I,onComplete(){y||M(!1)}}),(0,i.f)(()=>{if(null!=b&&(!k||s))return p(a,b)},[k,s,a,b,p]),s||w)?E:null});var j=e.i(956789),F=e.i(590803),O=e.i(828918),q=e.i(673327),W=e.i(621082);let B=[];var H=e.i(872855);function V(e){let{render:n,className:s,style:u,refs:c=j.v,props:f=j.v,state:d=j.w,stateAttributesMapping:g,highlightedIndex:v,onHighlightedIndexChange:h,orientation:p,grid:b,loopFocus:m,onLoop:x,enableHomeAndEndKeys:R,onMapChange:y,stopEventPropagation:C=!0,rootRef:k,disabledIndices:P,modifierKeys:E,highlightItemOnHover:A=!1,tag:S="div",...T}=e,{props:L,highlightedIndex:z,onHighlightedIndexChange:D,elementsRef:N,onMapChange:V,relayKeyboardEvent:$}=function(e){let{loopFocus:t=!0,orientation:n="both",grid:l,onLoop:o,direction:s,highlightedIndex:u,onHighlightedIndexChange:c,rootRef:f,enableHomeAndEndKeys:d=!1,stopEventPropagation:g,disabledIndices:v,modifierKeys:h=B}=e,[p,b]=r.useState(0),m=null!=l,x=r.useRef(null),R=(0,O.A)(x,f),y=r.useRef([]),C=r.useRef(!1),M=u??p,k=(0,a.f)((e,t=!1)=>{if((c??b)(e),t){let t=y.current[e];(0,q.l)(x.current,t,s,n)}}),P=(0,a.f)(e=>{if(0===e.size||C.current)return;C.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(w))??null,i=r?e.get(r)?.index??-1:-1;if(-1!==i)k(i);else if((0,W.K)(t,M,v)){let e=(0,W.e)(t,{disabledIndices:v});(0,W.c)(t,e)||k(e)}(0,q.l)(x.current,r,s,n)});(0,i.f)(()=>{if(null==v||null!=u||!C.current)return;let e=y.current;if((0,W.K)(e,M,v)){let t=(0,W.e)(e,{disabledIndices:v});(0,W.c)(e,t)||k(t)}},[v,u,M,y,k]);let E=(0,a.f)((e,t,r)=>o?o(e,t,r,y):r),A=(0,a.f)(e=>{let r=e.key===q.Z||e.key===q.C;if(!q.J.has(e.key)||!d&&r||function(e,t){for(let r of q.a)if(!t.includes(r)&&e.getModifierState(r))return!0;return!1}(e,h)||!x.current)return;let i="rtl"===s,a=i?q.b:q.q,u=i?q.q:q.b,c="vertical"===n?q.e:a,f="vertical"===n?q.V:u,p=(0,I.Z)(e.nativeEvent);if(null!=p&&(0,q.X)(p)&&!(0,F.f)(p)){let t=p.selectionStart,r=p.selectionEnd,n=p.value;if(null==t||e.shiftKey||t!==r||e.key!==f&&t0)return}let b=M,R=(0,W.J)(y,v),w=(0,W._)(y,v);null!=l&&(b=l({disabledIndices:v,elementsRef:y,event:e,highlightedIndex:M,loopFocus:t,maxIndex:w,minIndex:R,onLoop:E,orientation:n,rtl:i}));let C="vertical"!==n&&e.key===a||"horizontal"!==n&&e.key===q.e,P="vertical"!==n&&e.key===u||"horizontal"!==n&&e.key===q.V;d&&(e.key===q.Z?b=R:e.key===q.C&&(b=w)),b===M&&(C||P)&&(t&&b===w&&C?(b=R,o&&(b=o(e,M,b,y))):t&&b===R&&P?(b=w,o&&(b=o(e,M,b,y))):b=(0,W.e)(y.current,{startingIndex:b,decrement:P,disabledIndices:v})),b===M||(0,W.c)(y.current,b)||(g&&e.stopPropagation(),(m||r||C||P)&&e.preventDefault(),k(b,!0),queueMicrotask(()=>{y.current[b]?.focus()}))});return{props:{ref:R,onFocus(e){let t=x.current,r=(0,I.Z)(e.nativeEvent);t&&null!=r&&(0,q.X)(r)&&r.setSelectionRange(0,r.value.length)},onKeyDown:A},highlightedIndex:M,onHighlightedIndexChange:k,elementsRef:y,onMapChange:P,relayKeyboardEvent:A}}({grid:b,loopFocus:m,onLoop:x,orientation:p,highlightedIndex:v,onHighlightedIndexChange:h,rootRef:k,stopEventPropagation:C,enableHomeAndEndKeys:R,direction:(0,H.f)(),disabledIndices:P,modifierKeys:E}),K=(0,l.f)(S,e,{state:d,ref:c,props:[L,...f,T],stateAttributesMapping:g}),_=r.useMemo(()=>({highlightedIndex:z,onHighlightedIndexChange:D,highlightItemOnHover:A,relayKeyboardEvent:$}),[z,D,A,$]);return(0,t.jsx)(M.e.Provider,{value:_,children:(0,t.jsx)(o.f,{elementsRef:N,onMapChange:e=>{y?.(e),V(e)},children:K})})}let $=r.forwardRef(function(e,n){let{activateOnFocus:l=!1,className:o,loopFocus:s=!0,render:u,style:d,...g}=e,{orientation:v,setTabMap:h,tabActivationDirection:p}=c(),[b,m]=r.useState(0),[x,R]=r.useState(null),y=r.useRef(new Set),w=r.useRef(new Set),C=r.useRef(null);(0,i.f)(()=>{if("u"{y.current.forEach(e=>{e()})});return C.current=e,x&&e.observe(x),w.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),C.current=null}},[x]);let M=(0,a.f)(e=>(y.current.add(e),()=>{y.current.delete(e)})),P=(0,a.f)(e=>(w.current.add(e),C.current?.observe(e),()=>{w.current.delete(e),C.current?.unobserve(e)})),I=r.useMemo(()=>({activateOnFocus:l,registerIndicatorUpdateListener:M,registerTabResizeObserverElement:P,tabsListElement:x}),[l,M,P,x]);return(0,t.jsx)(k.Provider,{value:I,children:(0,t.jsx)(V,{render:u,className:o,style:d,state:{orientation:v,tabActivationDirection:p},refs:[n,R],props:[{"aria-orientation":"vertical"===v?"vertical":void 0,role:"tablist"},g],stateAttributesMapping:f,highlightedIndex:b,enableHomeAndEndKeys:!0,loopFocus:s,orientation:v,onHighlightedIndexChange:m,onMapChange:h,disabledIndices:j.v})})});e.s(["List",0,$,"Panel",0,N,"Root",0,p,"Tab",0,E],69281);var K=e.i(69281),K=K,_=K,U=K,Z=K,X=e.i(225913),J=e.i(975157);let Q=(0,X.f)("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});e.s(["i",0,function({className:e,orientation:r="horizontal",...n}){return(0,t.jsx)(K.Root,{"data-slot":"tabs","data-orientation":r,className:(0,J.f)("group/tabs flex gap-2 data-horizontal:flex-col",e),...n})},"S",0,function({className:e,...r}){return(0,t.jsx)(Z.Panel,{"data-slot":"tabs-content",className:(0,J.f)("flex-1 text-sm outline-none",e),...r})},"U",0,function({className:e,variant:r="default",...n}){return(0,t.jsx)(_.List,{"data-slot":"tabs-list","data-variant":r,className:(0,J.f)(Q({variant:r}),e),...n})},"k",0,function({className:e,...r}){return(0,t.jsx)(U.Tab,{"data-slot":"tabs-trigger",className:(0,J.f)("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...r})}],677572)}]);