1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,253335,e=>{"use strict";var t=e.i(180862);e.s(["TransitionStatusDataAttributes",0,t])},172410,e=>{"use strict";e.i(247167);var t=e.i(271645);let n=t.createContext(void 0),r={disableStyleElements:!1};e.s(["useCSPContext",0,function(){return t.useContext(n)??r}])},872855,e=>{"use strict";e.i(247167);var t=e.i(271645);let n=t.createContext(void 0);e.s(["DirectionContext",0,n,"useDirection",0,function(){let e=t.useContext(n);return e?.direction??"ltr"}])},73364,e=>{"use strict";var t=e.i(343084),n=e.i(229315);e.s(["getCssDimensions",0,function(e){let r=(0,n.getComputedStyle)(e),i=parseFloat(r.width)||0,l=parseFloat(r.height)||0,u=(0,n.isHTMLElement)(e),o=u?e.offsetWidth:i,a=u?e.offsetHeight:l;return((0,t.round)(i)!==o||(0,t.round)(l)!==a)&&(i=o,l=a),{width:i,height:l}}])},951437,e=>{"use strict";e.i(247167);var t=e.i(271645);e.s(["useControlled",0,function({controlled:e,default:n,name:r,state:i="value"}){let{current:l}=t.useRef(void 0!==e),[u,o]=t.useState(n),a=t.useCallback(e=>{l||o(e)},[]);return[l&&void 0!==e?e:u,a]}])},343084,e=>{"use strict";let t=["top","right","bottom","left"],n=t.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),r=Math.min,i=Math.max,l=Math.round,u=Math.floor,o={left:"right",right:"left",bottom:"top",top:"bottom"};function a(e){return e.split("-")[0]}function s(e){return e.split("-")[1]}function c(e){return"x"===e?"y":"x"}function f(e){return"y"===e?"height":"width"}function d(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e){return c(d(e))}function p(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let h=["left","right"],b=["right","left"],v=["top","bottom"],m=["bottom","top"];function x(e){let t=a(e);return o[t]+e.slice(t.length)}e.s(["clamp",0,function(e,t,n){return i(e,r(t,n))},"createCoords",0,e=>({x:e,y:e}),"evaluate",0,function(e,t){return"function"==typeof e?e(t):e},"floor",0,u,"getAlignment",0,s,"getAlignmentAxis",0,g,"getAlignmentSides",0,function(e,t,n){void 0===n&&(n=!1);let r=s(e),i=g(e),l=f(i),u="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=x(u)),[u,x(u)]},"getAxisLength",0,f,"getExpandedPlacements",0,function(e){let t=x(e);return[p(e),t,p(t)]},"getOppositeAlignmentPlacement",0,p,"getOppositeAxis",0,c,"getOppositeAxisPlacements",0,function(e,t,n,r){let i=s(e),l=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?b:h;return t?h:b;case"left":case"right":return t?v:m;default:return[]}}(a(e),"start"===n,r);return i&&(l=l.map(e=>e+"-"+i),t&&(l=l.concat(l.map(p)))),l},"getOppositePlacement",0,x,"getPaddingObject",0,function(e){var t,n,r,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}},"getSide",0,a,"getSideAxis",0,d,"max",0,i,"min",0,r,"placements",0,n,"rectToClientRect",0,function(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}},"round",0,l,"sides",0,t])},825153,53687,673553,590803,e=>{"use strict";var t,n=e.i(14804),r=e.i(843476),i=e.i(271645);e.s([],559657),e.i(559657);var l=e.i(951437),u=e.i(146376),o=e.i(667865),a=e.i(552245),s=e.i(388940);let c=i.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function f(e){let{children:t,elementsRef:n,labelsRef:l,onMapChange:a}=e,f=(0,o.useStableCallback)(a),[,h]=i.useState(!1),b=(0,s.useRefWithInit)(g).current,v=(0,s.useRefWithInit)(d).current,m=i.useRef(0),x=i.useRef(!0),R=i.useRef(null),C=i.useRef(null),S=(0,o.useStableCallback)(()=>{x.current||(x.current=!0,h(e=>!e))}),E=(0,o.useStableCallback)((e,t)=>{v.set(e,t),S()}),y=(0,o.useStableCallback)(e=>{v.delete(e),S()}),I=(0,o.useStableCallback)(e=>{let t=new Map;return n.current.length=0,l&&(l.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,l&&(l.current[e.index]=void 0!==e.registration.label?e.registration.label:e.registration.textRef?.current?.textContent??e.element.textContent)}),m.current=n.current.length,t}),M=(0,o.useStableCallback)(()=>{var e;
1let t,n,r,i,[l,u]=(e=v,t=new Set,n=[],r=[],e.forEach((e,i)=>{if(!i.isConnected)return;let l=e.index,u={index:l??-1,element:i,registration:e};null===l?r.push(u):l>=0&&(t.add(l),n.push(u))}),i=0,r.sort((e,t)=>p(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]),o=I(l),a=R.current,s=!a||a.length!==l.length||l.some((e,t)=>{let n=a[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});!function(e){if(C.current?.disconnect(),C.current=null,"function"!=typeof MutationObserver||e.length<2)return;let t=new MutationObserver(n=>{if(!function(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&p(r,n)>0){t.disconnect(),S();return}r=n}});C.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=function(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}(u),R.current=l,x.current=!1,s&&(b.forEach(e=>e(o)),f(o))});(0,u.useIsoLayoutEffect)(()=>(!x.current&&R.current&&I(R.current),()=>{n.current=[],l&&(l.current=[])}),[n,l,I]),(0,u.useIsoLayoutEffect)(()=>{x.current&&M()}),(0,u.useIsoLayoutEffect)(()=>()=>{C.current?.disconnect(),x.current=!0},[]);let w=(0,o.useStableCallback)(e=>(b.add(e),()=>{b.delete(e)})),A=i.useMemo(()=>({register:E,unregister:y,subscribeMapChange:w,nextIndexRef:m}),[E,y,w,m]);return(0,r.jsx)(c.Provider,{value:A,children:t})}function d(){return new Map}function g(){return new Set}function p(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}e.s(["CompositeList",0,f],53687);var h=e.i(733332);let b=i.createContext(void 0);function v(){let e=i.useContext(b);if(void 0===e)throw Error((0,h.default)(64));return e}let m={tabActivationDirection:e=>({"data-activation-direction":e})};var x=e.i(675606),R=e.i(56434);let C=i.forwardRef(function(e,t){let{className:n,defaultValue:s=0,onValueChange:c,orientation:d="horizontal",render:g,value:p,style:h,...v}=e,C=void 0!==e.defaultValue,y=i.useRef([]),[I,M]=i.useState(()=>new Map),[w,A]=(0,l.useControlled)({controlled:p,default:s,name:"Tabs",state:"value"}),L=void 0!==p,[O,T]=i.useState(()=>new Map),D=i.useRef(void 0),k=i.useCallback(e=>S(O,e),[O]),[P,N]=i.useState(()=>({previousValue:w,tabActivationDirection:"none"})),{previousValue:W,tabActivationDirection:_}=P,H=_,j=!1;W!==w&&(H=E(W,w,d,O),j=null!=W&&null!=w&&null==k(w));let F=j?W:w,B=W!==F||_!==H;(0,u.useIsoLayoutEffect)(()=>{B&&N({previousValue:F,tabActivationDirection:H})},[F,B,H]);let V=(0,o.useStableCallback)((e,t)=>{t.activationDirection=E(w,e,d,O),c?.(e,t),t.isCanceled||A(e)}),Y=(0,o.useStableCallback)((e,t)=>{c?.(e,(0,x.createChangeEventDetails)(t,void 0,void 0,{activationDirection:"none"}))}),z=(0,o.useStableCallback)((e,t)=>(M(n=>{let r=new Map(n);return r.set(e,t),r}),()=>{M(n=>{if(n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})})),K=i.useCallback(e=>I.get(e),[I]),U=i.useCallback(e=>{for(let t of O.values())if(e===t.value)return t.id},[O]),$=i.useMemo(()=>({getTabElementBySelectedValue:k,getTabIdByPanelValue:U,getTabPanelIdByValue:K,onValueChange:V,orientation:d,registerMountedTabPanel:z,setTabMap:T,tabActivationDirection:H,value:w}),[k,U,K,V,d,z,T,H,w]),q=i.useMemo(()=>{for(let e of O.values())if(e.value===w)return e},[O,w]),G=i.useMemo(()=>{for(let e of O.values())if(!e.disabled)return e.value},[O]),J=i.useRef(!C),Q=i.useRef(s),X=i.useRef(C),Z=i.useRef(!1);(0,u.useIsoLayoutEffect)(()=>{if(L)return;function e(e,t){A(e),N({previousValue:e,tabActivationDirection:"none"}),Y(e,t),J.current=!1}if(0===O.size){Z.current&&null!==w&&!D.current?.isConnected&&e(null,R.REASONS.missing);return}Z.current=!0,D.current=O.keys().next().value;let t=q?.disabled,n=null==q&&null!==w;if(t||w!==Q.current||(X.current=!1),X.current&&t&&w===Q.current)return;let r=J.current;if(t||n){let n=G??null;if(w===n){J.current=!1;return}let i=R.REASONS.missing;r?i=R.REASONS.initial:t&&(i=R.REASONS.disabled),e(n,i);return}r&&null!=q&&(Y(w,R.REASONS.initial),J.current=!1)},[G,L,Y,q,A,O,w]);let ee={orientation:d,tabActivationDirection:H},et=(0,a.useRenderElement)("div",e,{state:ee,ref:t,props:v,stateAttributesMapping:m});return(0,r.jsx)(b.Provider,{value:$,children:(0,r.jsx)(f,{elementsRef:y,children:et})})});function S(e,t){for(let[n,r]of e.entries())if(t===r.value)return n;return null}function E(e,t,n,r){if(null==e||null==t)return"none";let[i,l,u]="horizontal"===n?["left","left","right"]:["top","up","down"],o=S(r,e),a=S(r,t);if(null==o||null==a)return o!==a&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?t>e?u:l:"none";let s=o.getBoundingClientRect()[i],c=a.getBoundingClientRect()[i];return c<s?l:c>s?u:"none"}var y=e.i(108868),I=e.i(788015),M=e.i(540886);let w="data-composite-item-active";var A=e.i(828918),L=e.i(838452);function O(e={}){let{guess:t,label:n,metadata:r,textRef:l,index:o}=e,{register:a,unregister:s,subscribeMapChange:f,nextIndexRef:d}=i.useContext(c),g=i.useRef(-1),[p,h]=i.useState(null==o&&t?()=>{if(-1===g.current){let e=d.current;d.current+=1,g.current=e}return g.current}
1:-1),b=o??p,v=i.useRef(null),m=i.useCallback(e=>{let t=v.current;t&&s(t),v.current=e,e&&a(e,{metadata:r??null,index:o??null,label:n,textRef:l})},[o,a,s,r,n,l]);return(0,u.useIsoLayoutEffect)(()=>{if(null==o)return f(e=>{let t=v.current?e.get(v.current)?.index:null;null!=t&&h(t)})},[o,f]),{ref:m,index:b}}e.s(["useCompositeListItem",0,O],673553);let T=i.createContext(void 0);function D(){let e=i.useContext(T);if(void 0===e)throw Error((0,h.default)(65));return e}var k=e.i(584446);let P=i.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:l,value:s,id:c,nativeButton:f=!0,style:d,...g}=e,{value:p,getTabPanelIdByValue:h,onValueChange:b,orientation:C,tabActivationDirection:S}=v(),{activateOnFocus:E,registerTabResizeObserverElement:T,tabsListElement:P}=D(),{highlightedIndex:N,onHighlightedIndexChange:W}=(0,L.useCompositeRootContext)(),_=(0,I.useBaseUiId)(c),{compositeProps:H,compositeRef:j,index:F}=function(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=(0,L.useCompositeRootContext)(),{ref:l,index:u}=O(e),o=n===u,a=i.useRef(null),s=(0,A.useMergedRefs)(l,a);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(u)},onMouseMove(){let e=a.current;if(!t||!e)return;let n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;o||n||e.focus()}},compositeRef:s,index:u}}({metadata:i.useMemo(()=>({disabled:r,id:_,value:s}),[r,_,s])}),B=s===p,V=i.useRef(!1),Y=i.useRef(null),z=(0,o.useStableCallback)(e=>{Y.current?.(),Y.current=e?T(e):null});(0,u.useIsoLayoutEffect)(()=>{if(V.current){V.current=!1;return}if(B&&F>-1&&N!==F){if(null!=P){let e=(0,k.activeElement)((0,y.ownerDocument)(P));if(e&&(0,k.contains)(P,e))return}r||W(F)}},[B,F,N,W,r,P]);let{getButtonProps:K,buttonRef:U}=(0,M.useButton)({disabled:r,native:f,focusableWhenDisabled:!0}),$=h(s),q=i.useRef(!1),G=i.useRef(!1);function J(e){b(s,(0,x.createChangeEventDetails)(R.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"}))}return(0,a.useRenderElement)("button",e,{state:{disabled:r,active:B,orientation:C,tabActivationDirection:S},ref:[t,U,j,z],props:[H,{role:"tab","aria-controls":$,"aria-selected":B,id:_,onClick:function(e){B||r||J(e)},onFocus:function(e){B||r||E&&(!q.current||G.current)&&J(e)},onPointerDown:function(e){if(B||r)return;q.current=!0,G.current=0===e.button;let t=(0,y.ownerDocument)(e.currentTarget);function n(){q.current=!1,G.current=!1,t.removeEventListener("pointerup",n),t.removeEventListener("pointercancel",n)}t.addEventListener("pointerup",n),t.addEventListener("pointercancel",n)},[w]:B?"":void 0,onKeyDownCapture(){V.current=!0}},g,K],stateAttributesMapping:m})});var N=e.i(229315),W=e.i(333848),_=e.i(802239),H=e.i(956789);function j(){return H.NOOP}function F(){return!1}function B(){return!0}var V=e.i(172410);function Y(e){let{script:t}=e,{nonce:n}=(0,V.useCSPContext)();return(0,_.useSyncExternalStore)(j,F,B)?(0,r.jsx)("script",{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var z=e.i(73364);let K={...m,activeTabPosition:()=>null,activeTabSize:()=>null},U=i.forwardRef(function(e,n){let{className:l,render:u,renderBeforeHydration:o=!1,style:s,...c}=e,{getTabElementBySelectedValue:f,orientation:d,tabActivationDirection:g,value:p}=v(),{tabsListElement:h,registerIndicatorUpdateListener:b}=D(),m=function(){let[,e]=i.useState({});return i.useCallback(()=>{e({})},[])}();i.useEffect(()=>b(m),[b,m]);let x=0,R=0,C=0,S=0,E=0,y=0,I=!1;if(null!=p&&null!=h){let e=f(p);if(null!=e){I=!0;let{width:t,height:n}=(0,z.getCssDimensions)(e),{width:r,height:i}=(0,z.getCssDimensions)(h),l=e.getBoundingClientRect(),u=h.getBoundingClientRect(),o=r>0?u.width/r:1,a=i>0?u.height/i:1,s=function(e,t){let n=$(e),r=$(t),i=n.left-r.left-t.clientLeft,l=n.top-r.top-t.clientTop,u=(0,N.getParentNode)(e);for(;(0,N.isHTMLElement)(u)&&u!==t&&!(0,N.isLastTraversableNode)(u);)i-=u.scrollLeft,l-=u.scrollTop,u=(0,N.getParentNode)(u);return{left:i,top:l}}(e,h);x=s.left,C=s.top;let c=(l.left-u.left)/o+h.scrollLeft-h.clientLeft,f=(l.top-u.top)/a+h.scrollTop-h.clientTop,d=function(e){let t=(0,W.ownerWindow)(e).getComputedStyle(e),{x:n,y:r}=function(e,t){let n=(t??(0,W.ownerWindow)(e).getComputedStyle(e)).transform,r=0,i=0,l=1;if(n&&"none"!==n){let e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(", ").map(parseFloat);6===t.length?(r=t[4],i=t[5],l=Math.sqrt(t[0]*t[0]+t[1]*t[1])):16===t.length&&(r=t[12],i=t[13],l=t[0])}}return{x:r,y:i,scale:l}}(e,t),i=n,l=r,{translate:u}=t;if(u&&"none"!==u){let t=u.split(" ");i+=q(t[0],e.offsetWidth),l+=q(t[1],e.offsetHeight)}return{x:i,y:l}}(e);2>=Math.abs(c-d.x-x)&&2>=Math.abs(f-d.y-C)&&(x=c,C=f),E=t,y=n,R=h.scrollWidth-x-E,S=h.scrollHeight-C-y}}
1let M=I?{left:x,right:R,top:C,bottom:S}:null,w=I?{width:E,height:y}:null,A=I?{"--active-tab-left":`${x}px`,"--active-tab-right":`${R}px`,"--active-tab-top":`${C}px`,"--active-tab-bottom":`${S}px`,"--active-tab-width":`${E}px`,"--active-tab-height":`${y}px`}:void 0,L=I&&E>0&&y>0,O=(0,a.useRenderElement)("span",e,{state:{orientation:d,activeTabPosition:M,activeTabSize:w,tabActivationDirection:g},ref:n,props:[{role:"presentation",style:A,hidden:!L},c,{suppressHydrationWarning:!0}],stateAttributesMapping:K});return null==p?null:(0,r.jsxs)(i.Fragment,{children:[O,o&&(t||(t=(0,r.jsx)(Y,{script:""})))]})});function $(e){let t=0,n=0,r=e;for(;null!=r;){t+=r.offsetLeft,n+=r.offsetTop;let e=r.offsetParent;null!=e&&(t+=e.clientLeft,n+=e.clientTop),r=e}return{left:t,top:n}}function q(e,t){if(!e)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith("%")?n/100*t:n:0}var G=e.i(144394),J=e.i(474354),Q=e.i(137584),X=e.i(223910),Z=e.i(253335);Z.TransitionStatusDataAttributes.startingStyle,Z.TransitionStatusDataAttributes.endingStyle;let ee={...m,...J.transitionStatusMapping},et=i.forwardRef(function(e,t){let{className:n,value:r,render:l,keepMounted:o=!1,style:s,...c}=e,{value:f,getTabIdByPanelValue:d,orientation:g,tabActivationDirection:p,registerMountedTabPanel:h}=v(),b=(0,I.useBaseUiId)(),{ref:m,index:x}=O(),R=r===f,{mounted:C,transitionStatus:S,setMounted:E}=(0,X.useTransitionStatus)(R),y=!C,M=d(r),w=i.useRef(null),A=(0,a.useRenderElement)("div",e,{state:{hidden:y,orientation:g,tabActivationDirection:p,transitionStatus:S},ref:[t,m,w],props:[{"aria-labelledby":M,hidden:y,id:b,role:"tabpanel",tabIndex:R?0:-1,inert:(0,G.inertValue)(!R),"data-index":x},c],stateAttributesMapping:ee});return((0,Q.useOpenChangeComplete)({open:R,ref:w,onComplete(){R||E(!1)}}),(0,u.useIsoLayoutEffect)(()=>{if(null!=b&&(!y||o))return h(r,b)},[y,o,r,b,h]),o||C)?A:null});function en(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}e.s(["isElementDisabled",0,en],590803);var er=e.i(673327),ei=e.i(621082),el=e.i(872855);function eu(e){let{render:t,className:n,style:l,refs:s=H.EMPTY_ARRAY,props:c=H.EMPTY_ARRAY,state:d=H.EMPTY_OBJECT,stateAttributesMapping:g,highlightedIndex:p,onHighlightedIndexChange:h,orientation:b,grid:v,loopFocus:m,onLoop:x,enableHomeAndEndKeys:R,onMapChange:C,stopEventPropagation:S=!0,rootRef:E,disabledIndices:y,modifierKeys:I,highlightItemOnHover:M=!1,tag:O="div",...T}=e,{props:D,highlightedIndex:P,onHighlightedIndexChange:N,elementsRef:W,onMapChange:_,relayKeyboardEvent:j}=function(e){let{loopFocus:t=!0,orientation:n="both",grid:r,onLoop:l,direction:a,highlightedIndex:s,onHighlightedIndexChange:c,rootRef:f,enableHomeAndEndKeys:d=!1,stopEventPropagation:g,disabledIndices:p,modifierKeys:h=H.EMPTY_ARRAY}=e,[b,v]=i.useState(0),m=null!=r,x=i.useRef(null),R=(0,A.useMergedRefs)(x,f),C=i.useRef([]),S=i.useRef(!1),E=i.useRef(null),y=s??b,I=(0,o.useStableCallback)((e,t=!1)=>{if(E.current=C.current[e]??null,(c??v)(e),t){let t=C.current[e];(0,er.scrollIntoViewIfNeeded)(x.current,t,a,n)}}),M=(0,o.useStableCallback)(e=>{if(0===e.size)return;if(S.current){let e=C.current,t=e.indexOf(E.current);if(-1===t){let t=e[y];!t||(0,ei.isListIndexDisabled)(e,y,p)?I(function(e,t){let n=-1;for(let r=0;r<e.length;r+=1){let i=e[r];if(!(!i||(0,ei.isListIndexDisabled)(e,r,t))){if(i.hasAttribute(w))return r;-1===n&&(n=r)}}return Math.max(n,0)}(e,p)):E.current=t}else t!==y&&I(t);return}S.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)I(i);else if((0,ei.isListIndexDisabled)(t,y,p)){let e=(0,ei.findNonDisabledListIndex)(t,{disabledIndices:p});(0,ei.isIndexOutOfListBounds)(t,e)||I(e)}(0,er.scrollIntoViewIfNeeded)(x.current,r,a,n)});(0,u.useIsoLayoutEffect)(()=>{if(null==p||null!=s||!S.current)return;let e=C.current;if((0,ei.isListIndexDisabled)(e,y,p)){let t=(0,ei.findNonDisabledListIndex)(e,{disabledIndices:p});(0,ei.isIndexOutOfListBounds)(e,t)||I(t)}},[p,s,y,C,I]);let L=(0,o.useStableCallback)((e,t,n)=>l?l(e,t,n,C):n),O=(0,o.useStableCallback)(e=>{let i=e.key===er.HOME||e.key===er.END;if(!er.COMPOSITE_KEYS.has(e.key)||!d&&i||function(e,t){for(let n of er.MODIFIER_KEYS)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,h)||!x.current)return;let u="rtl"===a,o=u?er.ARROW_LEFT:er.ARROW_RIGHT,s=u?er.ARROW_RIGHT:er.ARROW_LEFT,c="vertical"===n?er.ARROW_DOWN:o,f="vertical"===n?er.ARROW_UP:s,b=(0,k.getTarget)(e.nativeEvent);if(null!=b&&(0,er.isNativeInput)(b)&&!en(b)){let t=b.selectionStart,n=b.selectionEnd,r=b.value;if(null==t||e.shiftKey||t!==n||e.key!==f&&t<r.length||e.key!==c&&t>0)return}let v=y,R=(0,ei.getMinListIndex)(C,p),S=(0,ei.getMaxListIndex)(C,p);null!=r&&(v=r({disabledIndices:p,elementsRef:C,event:e,highlightedIndex:y,loopFocus:t,maxIndex:S,minIndex:R,onLoop:L,orientation:n,rtl:u}));let E="vertical"!==n&&e.key===o||"horizontal"!==n&&e.key===er.ARROW_DOWN,M="vertical"!==n&&e.key===s||"horizontal"!==n&&e.key===er.ARROW_UP;d&&(e.key===er.HOME?v=R:e.key===er.END&&(v=S)),v===y&&(E||M)&&(t&&v===S&&E?(v=R,l&&(v=l(e,y,v,C))):t&&v===R&&M?(v=S,l&&(v=l(e,y,v,C))):v=(0,ei.findNonDisabledListIndex)(C.current,{startingIndex:v,decrement:M,disabledIndices:p})),v===y||(0,ei.isIndexOutOfListBounds)(C.current,v)||(g&&e.stopPropagation(),(m||i||E||M)&&e.preventDefault(),I(v,!0),queueMicrotask(()=>{C.current[v]?.focus()}))});return{props:{ref:R,onFocus(e){let t=x.current,n=(0,k.getTarget)(e.nativeEvent);t&&null!=n&&(0,er.isNativeInput)(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:O}
1,highlightedIndex:y,onHighlightedIndexChange:I,elementsRef:C,onMapChange:M,relayKeyboardEvent:O}}({grid:v,loopFocus:m,onLoop:x,orientation:b,highlightedIndex:p,onHighlightedIndexChange:h,rootRef:E,stopEventPropagation:S,enableHomeAndEndKeys:R,direction:(0,el.useDirection)(),disabledIndices:y,modifierKeys:I}),F=(0,a.useRenderElement)(O,e,{state:d,ref:s,props:[D,...c,T],stateAttributesMapping:g}),B=i.useMemo(()=>({highlightedIndex:P,onHighlightedIndexChange:N,highlightItemOnHover:M,relayKeyboardEvent:j}),[P,N,M,j]);return(0,r.jsx)(L.CompositeRootContext.Provider,{value:B,children:(0,r.jsx)(f,{elementsRef:W,onMapChange:e=>{C?.(e),_(e)},children:F})})}let eo=i.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:l,loopFocus:a=!0,render:s,style:c,...f}=e,{orientation:d,setTabMap:g,tabActivationDirection:p}=v(),[h,b]=i.useState(0),[x,R]=i.useState(null),C=i.useRef(new Set),S=i.useRef(new Set),E=i.useRef(null);(0,u.useIsoLayoutEffect)(()=>{if("u"<typeof ResizeObserver)return;let e=new ResizeObserver(()=>{C.current.forEach(e=>{e()})});return E.current=e,x&&e.observe(x),S.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),E.current=null}},[x]);let y=(0,o.useStableCallback)(e=>(C.current.add(e),()=>{C.current.delete(e)})),I=(0,o.useStableCallback)(e=>(S.current.add(e),E.current?.observe(e),()=>{S.current.delete(e),E.current?.unobserve(e)})),M=i.useMemo(()=>({activateOnFocus:n,registerIndicatorUpdateListener:y,registerTabResizeObserverElement:I,tabsListElement:x}),[n,y,I,x]);return(0,r.jsx)(T.Provider,{value:M,children:(0,r.jsx)(eu,{render:s,className:l,style:c,state:{orientation:d,tabActivationDirection:p},refs:[t,R],props:[{"aria-orientation":"vertical"===d?"vertical":void 0,role:"tablist"},f],stateAttributesMapping:m,highlightedIndex:h,enableHomeAndEndKeys:!0,loopFocus:a,orientation:d,onHighlightedIndexChange:b,onMapChange:g,disabledIndices:H.EMPTY_ARRAY})})});e.s(["Indicator",0,U,"List",0,eo,"Panel",0,et,"Root",0,C,"Tab",0,P],69281);var ea=e.i(69281),ea=ea;let es=new Map,ec=(0,i.createContext)(null),ef=ea.List,ed=ea.Tab;e.s(["Tabs",0,function({ref:e,groupId:t,persist:l=!1,updateAnchor:u=!1,defaultValue:o,value:a,onValueChange:s,...c}){let f=(0,i.useRef)(null),d=(0,i.useMemo)(()=>new Map,[]),g=(0,i.useMemo)(()=>new Map,[]),[p,h]=void 0===a?(0,i.useState)(o):[a,(0,i.useEffectEvent)(e=>s?.(e))];return(0,i.useLayoutEffect)(()=>{if(!t)return;let e=sessionStorage.getItem(t);l&&(e??=localStorage.getItem(t)),e&&h(e);let n=es.get(t)??new Set;return n.add(h),es.set(t,n),()=>{n.delete(h)}},[t,l]),(0,i.useLayoutEffect)(()=>{let e=()=>{let e=window.location.hash.slice(1);if(!e)return;for(let[t,n]of d.entries())if(n===e){h(t),f.current?.scrollIntoView();return}let t=document.getElementById(e);if(t){for(let[e,n]of g.entries())if(n.contains(t)){h(e),requestAnimationFrame(()=>t.scrollIntoView());return}}};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[d,g]),(0,r.jsx)(ea.Root,{ref:(0,n.mergeRefs)(e,f),value:p,onValueChange:e=>{if(u){let t=d.get(e);t&&window.history.replaceState(null,"",`#${t}`)}if(t){let n=es.get(t);if(n)for(let t of n)t(e);sessionStorage.setItem(t,e),l&&localStorage.setItem(t,e)}else h(e)},...c,children:(0,r.jsx)(ec,{value:(0,i.useMemo)(()=>({valueToIdMap:d,panels:g}),[d,g]),children:c.children})})},"TabsContent",0,function({value:e,ref:t,...l}){let{valueToIdMap:u,panels:o}=function(){let e=(0,i.use)(ec);if(!e)throw Error("You must wrap your component in <Tabs>");return e}();return l.id&&u.set(e,l.id),(0,r.jsx)(ea.Panel,{ref:(0,n.mergeRefs)(t,t=>{t?o.set(e,t):o.delete(e)}),value:e,...l,children:l.children})},"TabsList",0,ef,"TabsTrigger",0,ed],825153)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.