PageSourceSearch

https://www.mednotes.ai/_next/static/chunks/854-d0796178812665bc.js

js mednotes.ai collected 2026-10-05 12:15:24 UTC 37,107 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[854],{10407:function(e,n,r){r.d(n,{Z:function(){return t}});let t=(0,r(79205).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},22135:function(e,n,r){r.d(n,{Z:function(){return t}});let t=(0,r(79205).Z)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},40519:function(e,n,r){r.d(n,{Z:function(){return t}});let t=(0,r(79205).Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},44893:function(e,n,r){r.d(n,{S1:function(){return a},ZT:function(){return t},jU:function(){return u},on:function(){return o}});var t=function(){};function o(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,n)}function a(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,n)}var u="undefined"!=typeof window},44899:function(e,n,r){var t=r(2265),o=r(44893);n.Z=function(e,n){void 0===e&&(e=!0);var r=(0,t.useCallback)(function(r){if("function"!=typeof e||e())return r.preventDefault(),n&&(r.returnValue=n),n},[e,n]);(0,t.useEffect)(function(){if(e)return(0,o.on)(window,"beforeunload",r),function(){return(0,o.S1)(window,"beforeunload",r)}},[e,r])}},52918:function(e,n,r){r.d(n,{oC:function(){return nN},VY:function(){return nj},ZA:function(){return n_},ck:function(){return nD},wU:function(){return nT},__:function(){return nk},Uv:function(){return nE},Ee:function(){return nP},Rk:function(){return nS},fC:function(){return nM},Z0:function(){return nI},Tr:function(){return nO},tu:function(){return nA},fF:function(){return nL},xz:function(){return nR}});var t=r(2265),o=r(6741);function a(...e){return n=>e.forEach(e=>{"function"==typeof e?e(n):null!=e&&(e.current=n)})}var u=r(57437),l=r(46484),i=r(54887),c=t.forwardRef((e,n)=>{let{children:r,...o}=e,a=t.Children.toArray(r),l=a.find(f);if(l){let e=l.props.children,r=a.map(n=>n!==l?n:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,u.jsx)(s,{...o,ref:n,children:t.isValidElement(e)?t.cloneElement(e,void 0,r):null})}return(0,u.jsx)(s,{...o,ref:n,children:r})});c.displayName="Slot";var s=t.forwardRef((e,n)=>{let{children:r,...o}=e;if(t.isValidElement(r)){let e,u;let l=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return t.cloneElement(r,{...function(e,n){let r={...n};for(let t in n){let o=e[t],a=n[t];/^on[A-Z]/.test(t)?o&&a?r[t]=(...e)=>{a(...e),o(...e)}:o&&(r[t]=o):"style"===t?r[t]={...o,...a}:"className"===t&&(r[t]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props),ref:n?a(n,l):l})}return t.Children.count(r)>1?t.Children.only(null):null});s.displayName="SlotClone";var d=({children:e})=>(0,u.jsx)(u.Fragment,{children:e});function f(e){return t.isValidElement(e)&&e.type===d}var p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{let r=t.forwardRef((e,r)=>{let{asChild:t,...o}=e,a=t?c:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(a,{...o,ref:r})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),v=r(21097);function m(...e){return n=>e.forEach(e=>{"function"==typeof e?e(n):null!=e&&(e.current=n)})}function h(...e){return t.useCallback(m(...e),e)}var g=r(29114),w=r(87476),y=0;function x(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var b=r(76310),C=r(82425),M=r(55679),R=r(25655),E=r(54076),j=t.forwardRef((e,n)=>{let{children:r,...o}=e,a=t.Children.toArray(r),l=a.find(D);if(l){let e=l.props.children,r=a.map(n=>n!==l?n:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,u.jsx)(_,{...o,ref:n,children:t.isValidElement(e)?t.cloneElement(e,void 0,r):null})}return(0,u.jsx)(_,{...o,ref:n,children:r})});j.displayName="Slot";
1var _=t.forwardRef((e,n)=>{let{children:r,...o}=e;if(t.isValidElement(r)){let e,a;let u=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return t.cloneElement(r,{...function(e,n){let r={...n};for(let t in n){let o=e[t],a=n[t];/^on[A-Z]/.test(t)?o&&a?r[t]=(...e)=>{a(...e),o(...e)}:o&&(r[t]=o):"style"===t?r[t]={...o,...a}:"className"===t&&(r[t]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props),ref:n?m(n,u):u})}return t.Children.count(r)>1?t.Children.only(null):null});_.displayName="SlotClone";var k=({children:e})=>(0,u.jsx)(u.Fragment,{children:e});function D(e){return t.isValidElement(e)&&e.type===k}var N=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{let r=t.forwardRef((e,r)=>{let{asChild:t,...o}=e,a=t?j:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(a,{...o,ref:r})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),P=r(97476);function S(e){let n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}var T=r(5478),I=r(5853),O=r(85770),L=r(17325),A=(0,r(31412)._)(),F=function(){},K=t.forwardRef(function(e,n){var r=t.useRef(null),o=t.useState({onScrollCapture:F,onWheelCapture:F,onTouchMoveCapture:F}),a=o[0],u=o[1],l=e.forwardProps,i=e.children,c=e.className,s=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,w=e.gapMode,y=(0,I._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(0,L.q)([r,n]),b=(0,I.pi)((0,I.pi)({},y),a);return t.createElement(t.Fragment,null,d&&t.createElement(p,{sideCar:A,removeScrollBar:s,shards:f,noIsolation:v,inert:m,setCallbacks:u,allowPinchZoom:!!h,lockRef:r,gapMode:w}),l?t.cloneElement(t.Children.only(i),(0,I.pi)((0,I.pi)({},b),{ref:x})):t.createElement(void 0===g?"div":g,(0,I.pi)({},b,{className:c,ref:x}),i))});K.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},K.classNames={fullWidth:O.zi,zeroRight:O.pF};var V=r(49085),B=r(5517),W=r(18704),Z=!1;if("undefined"!=typeof window)try{var $=Object.defineProperty({},"passive",{get:function(){return Z=!0,!0}});window.addEventListener("test",$,$),window.removeEventListener("test",$,$)}catch(e){Z=!1}var G=!!Z&&{passive:!1},U=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[n]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[n])},X=function(e,n){var r=n.ownerDocument,t=n;do{if("undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot&&(t=t.host),Y(e,t)){var o=z(e,t);if(o[1]>o[2])return!0}t=t.parentNode}while(t&&t!==r.body);return!1},Y=function(e,n){return"v"===e?U(n,"overflowY"):U(n,"overflowX")},z=function(e,n){return"v"===e?[n.scrollTop,n.scrollHeight,n.clientHeight]:[n.scrollLeft,n.scrollWidth,n.clientWidth]},q=function(e,n,r,t,o){var a,u=(a=window.getComputedStyle(n).direction,"h"===e&&"rtl"===a?-1:1),l=u*t,i=r.target,c=n.contains(i),s=!1,d=l>0,f=0,p=0;do{var v=z(e,i),m=v[0],h=v[1]-v[2]-u*m;(m||h)&&Y(e,i)&&(f+=h,p+=m),i instanceof ShadowRoot?i=i.host:i=i.parentNode}while(!c&&i!==document.body||c&&(n.contains(i)||n===i));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},H=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},J=function(e){return[e.deltaX,e.deltaY]},Q=function(e){return e&&"current"in e?e.current:e},ee=0,en=[],er=(0,V.L)(A,function(e){var n=t.useRef([]),r=t.useRef([0,0]),o=t.useRef(),a=t.useState(ee++)[0],u=t.useState(W.Ws)[0],l=t.useRef(e);t.useEffect(function(){l.current=e},[e]),t.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var n=(0,I.ev)([e.lockRef.current],(e.shards||[]).map(Q),!0).filter(Boolean);return n.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),n.forEac
1h(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var i=t.useCallback(function(e,n){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var t,a=H(e),u=r.current,i="deltaX"in e?e.deltaX:u[0]-a[0],c="deltaY"in e?e.deltaY:u[1]-a[1],s=e.target,d=Math.abs(i)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=X(d,s);if(!f)return!0;if(f?t=d:(t="v"===d?"h":"v",f=X(d,s)),!f)return!1;if(!o.current&&"changedTouches"in e&&(i||c)&&(o.current=t),!t)return!0;var p=o.current||t;return q(p,n,e,"h"===p?i:c,!0)},[]),c=t.useCallback(function(e){if(en.length&&en[en.length-1]===u){var r="deltaY"in e?J(e):H(e),t=n.current.filter(function(n){var t;return n.name===e.type&&(n.target===e.target||e.target===n.shadowParent)&&(t=n.delta)[0]===r[0]&&t[1]===r[1]})[0];if(t&&t.should){e.cancelable&&e.preventDefault();return}if(!t){var o=(l.current.shards||[]).map(Q).filter(Boolean).filter(function(n){return n.contains(e.target)});(o.length>0?i(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=t.useCallback(function(e,r,t,o){var a={name:e,delta:r,target:t,should:o,shadowParent:function(e){for(var n=null;null!==e;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}(t)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),d=t.useCallback(function(e){r.current=H(e),o.current=void 0},[]),f=t.useCallback(function(n){s(n.type,J(n),n.target,i(n,e.lockRef.current))},[]),p=t.useCallback(function(n){s(n.type,H(n),n.target,i(n,e.lockRef.current))},[]);t.useEffect(function(){return en.push(u),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,G),document.addEventListener("touchmove",c,G),document.addEventListener("touchstart",d,G),function(){en=en.filter(function(e){return e!==u}),document.removeEventListener("wheel",c,G),document.removeEventListener("touchmove",c,G),document.removeEventListener("touchstart",d,G)}},[]);var v=e.removeScrollBar,m=e.inert;return t.createElement(t.Fragment,null,m?t.createElement(u,{styles:"\n  .block-interactivity-".concat(a," {pointer-events: none;}\n  .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,v?t.createElement(B.jp,{gapMode:e.gapMode}):null)}),et=t.forwardRef(function(e,n){return t.createElement(K,(0,I.pi)({},e,{ref:n,sideCar:er}))});et.classNames=K.classNames;var eo=["Enter"," "],ea=["ArrowUp","PageDown","End"],eu=["ArrowDown","PageUp","Home",...ea],el={ltr:[...eo,"ArrowRight"],rtl:[...eo,"ArrowLeft"]},ei={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ec="Menu",[es,ed,ef]=(0,v.B)(ec),[ep,ev]=function(e,n=[]){let r=[],o=()=>{let n=r.map(e=>t.createContext(e));return function(r){let o=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(n,o){let a=t.createContext(o),l=r.length;r=[...r,o];let i=n=>{let{scope:r,children:o,...i}=n,c=r?.[e]?.[l]||a,s=t.useMemo(()=>i,Object.values(i));return(0,u.jsx)(c.Provider,{value:s,children:o})};return i.displayName=n+"Provider",[i,function(r,u){let i=u?.[e]?.[l]||a,c=t.useContext(i);if(c)return c;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((n,{useScope:r,scopeName:t})=>{let o=r(e)[`__scope${t}`];return{...n,...o}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}(o,...n)]}(ec,[ef,M.D7,P.Pc]),em=(0,M.D7)(),eh=(0,P.Pc)(),[eg,ew]=ep(ec),[ey,ex]=ep(ec),eb=e=>{let{__scopeMenu:n,open:r=!1,children:o,dir:a,onOpenChange:l,modal:i=!0}=e,c=em(n),[s,d]=t.useState(null),f=t.useRef(!1),p=S(l),v=(0,g.gm)(a);return t.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},n=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}},[]),(0,u.jsx)(M.fC,{...c,children:(0,u.jsx)(eg,{scope:n,open:r,onOpenChange:p,content:s,onContentChange:d,children:(0,u.jsx)(ey,{scope:n,onClose:t.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:v,modal:i,children:o})})})};
1eb.displayName=ec;var eC=t.forwardRef((e,n)=>{let{__scopeMenu:r,...t}=e,o=em(r);return(0,u.jsx)(M.ee,{...o,...t,ref:n})});eC.displayName="MenuAnchor";var eM="MenuPortal",[eR,eE]=ep(eM,{forceMount:void 0}),ej=e=>{let{__scopeMenu:n,forceMount:r,children:t,container:o}=e,a=ew(eM,n);return(0,u.jsx)(eR,{scope:n,forceMount:r,children:(0,u.jsx)(E.z,{present:r||a.open,children:(0,u.jsx)(R.h,{asChild:!0,container:o,children:t})})})};ej.displayName=eM;var e_="MenuContent",[ek,eD]=ep(e_),eN=t.forwardRef((e,n)=>{let r=eE(e_,e.__scopeMenu),{forceMount:t=r.forceMount,...o}=e,a=ew(e_,e.__scopeMenu),l=ex(e_,e.__scopeMenu);return(0,u.jsx)(es.Provider,{scope:e.__scopeMenu,children:(0,u.jsx)(E.z,{present:t||a.open,children:(0,u.jsx)(es.Slot,{scope:e.__scopeMenu,children:l.modal?(0,u.jsx)(eP,{...o,ref:n}):(0,u.jsx)(eS,{...o,ref:n})})})})}),eP=t.forwardRef((e,n)=>{let r=ew(e_,e.__scopeMenu),a=t.useRef(null),l=h(n,a);return t.useEffect(()=>{let e=a.current;if(e)return(0,T.Ry)(e)},[]),(0,u.jsx)(eT,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),eS=t.forwardRef((e,n)=>{let r=ew(e_,e.__scopeMenu);return(0,u.jsx)(eT,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),eT=t.forwardRef((e,n)=>{let{__scopeMenu:r,loop:a=!1,trapFocus:l,onOpenAutoFocus:i,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:v,onInteractOutside:m,onDismiss:g,disableOutsideScroll:C,...R}=e,E=ew(e_,r),_=ex(e_,r),k=em(r),D=eh(r),N=ed(r),[S,T]=t.useState(null),I=t.useRef(null),O=h(n,I,E.onContentChange),L=t.useRef(0),A=t.useRef(""),F=t.useRef(0),K=t.useRef(null),V=t.useRef("right"),B=t.useRef(0),W=C?et:t.Fragment,Z=C?{as:j,allowPinchZoom:!0}:void 0,$=e=>{var n,r;let t=A.current+e,o=N().filter(e=>!e.disabled),a=document.activeElement,u=null===(n=o.find(e=>
1e.ref.current===a))||void 0===n?void 0:n.textValue,l=function(e,n,r){var t;let o=n.length>1&&Array.from(n).every(e=>e===n[0])?n[0]:n,a=(t=Math.max(r?e.indexOf(r):-1,0),e.map((n,r)=>e[(t+r)%e.length]));1===o.length&&(a=a.filter(e=>e!==r));let u=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==r?u:void 0}(o.map(e=>e.textValue),t,u),i=null===(r=o.find(e=>e.textValue===l))||void 0===r?void 0:r.ref.current;!function e(n){A.current=n,window.clearTimeout(L.current),""!==n&&(L.current=window.setTimeout(()=>e(""),1e3))}(t),i&&setTimeout(()=>i.focus())};t.useEffect(()=>()=>window.clearTimeout(L.current),[]),t.useEffect(()=>{var e,n;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:x()),document.body.insertAdjacentElement("beforeend",null!==(n=r[1])&&void 0!==n?n:x()),y++,()=>{1===y&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),y--}},[]);let G=t.useCallback(e=>{var n,r,t;return V.current===(null===(n=K.current)||void 0===n?void 0:n.side)&&!!(t=null===(r=K.current)||void 0===r?void 0:r.area)&&function(e,n){let{x:r,y:t}=e,o=!1;for(let e=0,a=n.length-1;e<n.length;a=e++){let u=n[e].x,l=n[e].y,i=n[a].x,c=n[a].y;l>t!=c>t&&r<(i-u)*(t-l)/(c-l)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)},[]);return(0,u.jsx)(ek,{scope:r,searchRef:A,onItemEnter:t.useCallback(e=>{G(e)&&e.preventDefault()},[G]),onItemLeave:t.useCallback(e=>{var n;G(e)||(null===(n=I.current)||void 0===n||n.focus(),T(null))},[G]),onTriggerLeave:t.useCallback(e=>{G(e)&&e.preventDefault()},[G]),pointerGraceTimerRef:F,onPointerGraceIntentChange:t.useCallback(e=>{K.current=e},[]),children:(0,u.jsx)(W,{...Z,children:(0,u.jsx)(b.M,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.M)(i,e=>{var n;e.preventDefault(),null===(n=I.current)||void 0===n||n.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,u.jsx)(w.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:v,onInteractOutside:m,onDismiss:g,children:(0,u.jsx)(P.fC,{asChild:!0,...D,dir:_.dir,orientation:"vertical",loop:a,currentTabStopId:S,onCurrentTabStopIdChange:T,onEntryFocus:(0,o.M)(d,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,u.jsx)(M.VY,{role:"menu","aria-orientation":"vertical","data-state":e8(E.open),"data-radix-menu-content":"",dir:_.dir,...k,...R,ref:O,style:{outline:"none",...R.style},onKeyDown:(0,o.M)(R.onKeyDown,e=>{let n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,t=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&t&&$(e.key));let o=I.current;if(e.target!==o||!eu.includes(e.key))return;e.preventDefault();let a=N().filter(e=>!e.disabled).map(e=>e.ref.current);ea.includes(e.key)&&a.reverse(),function(e){let n=document.activeElement;for(let r of e)if(r===n||(r.focus(),document.activeElement!==n))return}(a)}),onBlur:(0,o.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(L.current),A.current="")}),onPointerMove:(0,o.M)(e.onPointerMove,ne(e=>{let n=e.target,r=B.current!==e.clientX;if(e.currentTarget.contains(n)&&r){let n=e.clientX>B.current?"right":"left";V.current=n,B.current=e.clientX}}))})})})})})})});eN.displayName=e_;var eI=t.forwardRef((e,n)=>{let{__scopeMenu:r,...t}=e;return(0,u.jsx)(N.div,{role:"group",...t,ref:n})});eI.displayName="MenuGroup";var eO=t.forwardRef((e,n)=>{let{__scopeMenu:r,...t}=e;return(0,u.jsx)(N.div,{...t,ref:n})});eO.displayName="MenuLabel";var eL="MenuItem",eA="menu.itemSelect",eF=t.forwardRef((e,n)=>{let{disabled:r=!1,onSelect:a,...l}=e,c=t.useRef(null),s=ex(eL,e.__scopeMenu),d=eD(eL,e.__scopeMenu),f=h(n,c),p=t.useRef(!1);return(0,u.jsx)(eK,{...l,ref:f,disabled:r,onClick:(0,o.M)(e.onClick,()=>{let e=c.current;if(!r&&e){let n=new CustomEvent(eA,{bubbles:!0,cancelable:!0});e.addEventListener(eA,e=>null==a?void 0:a(e),{once:!0}),e&&i.flushSync(()=>e.dispatchEvent(n)),n.defaultPrevented?p.current=!1:s.onClose()}}),onPointerDown:n=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,n),p.current=!0},onPointerUp:(0,o.M)(e.onPointerUp,e=>{var n;p.current||null===(n=e.currentTarget)||void 0===n||n.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let n=""!==d.searchRef.current;
1!r&&(!n||" "!==e.key)&&eo.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eF.displayName=eL;var eK=t.forwardRef((e,n)=>{let{__scopeMenu:r,disabled:a=!1,textValue:l,...i}=e,c=eD(eL,r),s=eh(r),d=t.useRef(null),f=h(n,d),[p,v]=t.useState(!1),[m,g]=t.useState("");return t.useEffect(()=>{let e=d.current;if(e){var n;g((null!==(n=e.textContent)&&void 0!==n?n:"").trim())}},[i.children]),(0,u.jsx)(es.ItemSlot,{scope:r,disabled:a,textValue:null!=l?l:m,children:(0,u.jsx)(P.ck,{asChild:!0,...s,focusable:!a,children:(0,u.jsx)(N.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...i,ref:f,onPointerMove:(0,o.M)(e.onPointerMove,ne(e=>{a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.M)(e.onPointerLeave,ne(e=>c.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>v(!0)),onBlur:(0,o.M)(e.onBlur,()=>v(!1))})})})}),eV=t.forwardRef((e,n)=>{let{checked:r=!1,onCheckedChange:t,...a}=e;return(0,u.jsx)(eY,{scope:e.__scopeMenu,checked:r,children:(0,u.jsx)(eF,{role:"menuitemcheckbox","aria-checked":e9(r)?"mixed":r,...a,ref:n,"data-state":e3(r),onSelect:(0,o.M)(a.onSelect,()=>null==t?void 0:t(!!e9(r)||!r),{checkForDefaultPrevented:!1})})})});eV.displayName="MenuCheckboxItem";var eB="MenuRadioGroup",[eW,eZ]=ep(eB,{value:void 0,onValueChange:()=>{}}),e$=t.forwardRef((e,n)=>{let{value:r,onValueChange:t,...o}=e,a=S(t);return(0,u.jsx)(eW,{scope:e.__scopeMenu,value:r,onValueChange:a,children:(0,u.jsx)(eI,{...o,ref:n})})});e$.displayName=eB;var eG="MenuRadioItem",eU=t.forwardRef((e,n)=>{let{value:r,...t}=e,a=eZ(eG,e.__scopeMenu),l=r===a.value;return(0,u.jsx)(eY,{scope:e.__scopeMenu,checked:l,children:(0,u.jsx)(eF,{role:"menuitemradio","aria-checked":l,...t,ref:n,"data-state":e3(l),onSelect:(0,o.M)(t.onSelect,()=>{var e;return null===(e=a.onValueChange)||void 0===e?void 0:e.call(a,r)}
1,{checkForDefaultPrevented:!1})})})});eU.displayName=eG;var eX="MenuItemIndicator",[eY,ez]=ep(eX,{checked:!1}),eq=t.forwardRef((e,n)=>{let{__scopeMenu:r,forceMount:t,...o}=e,a=ez(eX,r);return(0,u.jsx)(E.z,{present:t||e9(a.checked)||!0===a.checked,children:(0,u.jsx)(N.span,{...o,ref:n,"data-state":e3(a.checked)})})});eq.displayName=eX;var eH=t.forwardRef((e,n)=>{let{__scopeMenu:r,...t}=e;return(0,u.jsx)(N.div,{role:"separator","aria-orientation":"horizontal",...t,ref:n})});eH.displayName="MenuSeparator";var eJ=t.forwardRef((e,n)=>{let{__scopeMenu:r,...t}=e,o=em(r);return(0,u.jsx)(M.Eh,{...o,...t,ref:n})});eJ.displayName="MenuArrow";var eQ="MenuSub",[e0,e1]=ep(eQ),e5=e=>{let{__scopeMenu:n,children:r,open:o=!1,onOpenChange:a}=e,l=ew(eQ,n),i=em(n),[c,s]=t.useState(null),[d,f]=t.useState(null),p=S(a);return t.useEffect(()=>(!1===l.open&&p(!1),()=>p(!1)),[l.open,p]),(0,u.jsx)(M.fC,{...i,children:(0,u.jsx)(eg,{scope:n,open:o,onOpenChange:p,content:d,onContentChange:f,children:(0,u.jsx)(e0,{scope:n,contentId:(0,C.M)(),triggerId:(0,C.M)(),trigger:c,onTriggerChange:s,children:r})})})};e5.displayName=eQ;var e4="MenuSubTrigger",e2=t.forwardRef((e,n)=>{let r=ew(e4,e.__scopeMenu),a=ex(e4,e.__scopeMenu),l=e1(e4,e.__scopeMenu),i=eD(e4,e.__scopeMenu),c=t.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=i,f={__scopeMenu:e.__scopeMenu},p=t.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return t.useEffect(()=>p,[p]),t.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]),(0,u.jsx)(eC,{asChild:!0,...f,children:(0,u.jsx)(eK,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":e8(r.open),...e,ref:m(n,l.onTriggerChange),onClick:n=>{var t;null===(t=e.onClick)||void 0===t||t.call(e,n),e.disabled||n.defaultPrevented||(n.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,o.M)(e.onPointerMove,ne(n=>{i.onItemEnter(n),n.defaultPrevented||e.disabled||r.open||c.current||(i.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,ne(e=>{var n,t;p();let o=null===(n=r.content)||void 0===n?void 0:n.getBoundingClientRect();if(o){let n=null===(t=r.content)||void 0===t?void 0:t.dataset.side,a="right"===n,u=o[a?"left":"right"],l=o[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:u,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:u,y:o.bottom}],side:n}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.M)(e.onKeyDown,n=>{let t=""!==i.searchRef.current;if(!e.disabled&&(!t||" "!==n.key)&&el[a.dir].includes(n.key)){var o;r.onOpenChange(!0),null===(o=r.content)||void 0===o||o.focus(),n.preventDefault()}})})})});e2.displayName=e4;var e7="MenuSubContent",e6=t.forwardRef((e,n)=>{let r=eE(e_,e.__scopeMenu),{forceMount:a=r.forceMount,...l}=e,i=ew(e_,e.__scopeMenu),c=ex(e_,e.__scopeMenu),s=e1(e7,e.__scopeMenu),d=t.useRef(null),f=h(n,d);return(0,u.jsx)(es.Provider,{scope:e.__scopeMenu,children:(0,u.jsx)(E.z,{present:a||i.open,children:(0,u.jsx)(es.Slot,{scope:e.__scopeMenu,children:(0,u.jsx)(eT,{id:s.contentId,"aria-labelledby":s.triggerId,...l,ref:f,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var n;c.isUsingKeyboardRef.current&&(null===(n=d.current)||void 0===n||n.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let n=e.currentTarget.contains(e.target),r=ei[c.dir].includes(e.key);if(n&&r){var t;i.onOpenChange(!1),null===(t=s.trigger)||void 0===t||t.focus(),e.preventDefault()}})})})})})});function e8(e){return e?"open":"closed"}function e9(e){return"indeterminate"===e}function e3(e){return e9(e)?"indeterminate":e?"checked":"unchecked"}function ne(e){return n=>"mouse"===n.pointerType?e(n):void 0}e6.displayName=e7;var nn="DropdownMenu",[nr,nt]=function(e,n=[]){let r=[],o=()=>{let n=r.map(e=>t.createContext(e));return function(r){let o=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(n,o){let a=t.createContext(o),l=r.length;r=[...r,o];let i=n=>{let{scope:r,children:o,...i}=n,c=r?.[e]?.[l]||a,s=t.useMemo(()=>i,Object.values(i));return(0,u.jsx)(c.Provider,{value:s,children:o})};return i.displayName=n+"Provider",[i,function(r,u){let i=u?.[e]?.[l]||a,c=t.useContext(i);if(c)return c;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((n,{useScope:r,scopeName:t})=>
1{let o=r(e)[`__scope${t}`];return{...n,...o}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}(o,...n)]}(nn,[ev]),no=ev(),[na,nu]=nr(nn),nl=e=>{let{__scopeDropdownMenu:n,children:r,dir:o,open:a,defaultOpen:i,onOpenChange:c,modal:s=!0}=e,d=no(n),f=t.useRef(null),[p=!1,v]=(0,l.T)({prop:a,defaultProp:i,onChange:c});return(0,u.jsx)(na,{scope:n,triggerId:(0,C.M)(),triggerRef:f,contentId:(0,C.M)(),open:p,onOpenChange:v,onOpenToggle:t.useCallback(()=>v(e=>!e),[v]),modal:s,children:(0,u.jsx)(eb,{...d,open:p,onOpenChange:v,dir:o,modal:s,children:r})})};nl.displayName=nn;var ni="DropdownMenuTrigger",nc=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,disabled:t=!1,...l}=e,i=nu(ni,r),c=no(r);return(0,u.jsx)(eC,{asChild:!0,...c,children:(0,u.jsx)(p.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...l,ref:a(n,i.triggerRef),onPointerDown:(0,o.M)(e.onPointerDown,e=>{t||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{!t&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nc.displayName=ni;var ns=e=>{let{__scopeDropdownMenu:n,...r}=e,t=no(n);return(0,u.jsx)(ej,{...t,...r})};ns.displayName="DropdownMenuPortal";var nd="DropdownMenuContent",nf=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...a}=e,l=nu(nd,r),i=no(r),c=t.useRef(!1);return(0,u.jsx)(eN,{id:l.contentId,"aria-labelledby":l.triggerId,...i,...a,ref:n,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var n;c.current||null===(n=l.triggerRef.current)||void 0===n||n.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:(0,o.M)(e.onInteractOutside,e=>{let n=e.detail.originalEvent,r=0===n.button&&!0===n.ctrlKey,t=2===n.button||r;(!l.modal||t)&&(c.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)"}})});nf.displayName=nd;var np=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=no(r);return(0,u.jsx)(eI,{...o,...t,ref:n})});np.displayName="DropdownMenuGroup";var nv=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=no(r);return(0,u.jsx)(eO,{...o,...t,ref:n})});nv.displayName="DropdownMenuLabel";var nm=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=no(r);return(0,u.jsx)(eF,{...o,...t,ref:n})});nm.displayName="DropdownMenuItem";var nh=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=no(r);return(0,u.jsx)(eV,{...o,...t,ref:n})});nh.displayName="DropdownMenuCheckboxItem";var ng=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=no(r);return(0,u.jsx)(e$,{...o,...t,ref:n})});ng.displayName="DropdownMenuRadioGroup";var nw=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=no(r);return(0,u.jsx)(eU,{...o,...t,ref:n})});nw.displayName="DropdownMenuRadioItem";var ny=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=no(r);return(0,u.jsx)(eq,{...o,...t,ref:n})});ny.displayName="DropdownMenuItemIndicator";var nx=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=no(r);return(0,u.jsx)(eH,{...o,...t,ref:n})});nx.displayName="DropdownMenuSeparator",t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=no(r);return(0,u.jsx)(eJ,{...o,...t,ref:n})}).displayName="DropdownMenuArrow";var nb=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=no(r);return(0,u.jsx)(e2,{...o,...t,ref:n})});nb.displayName="DropdownMenuSubTrigger";var nC=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=no(r);return(0,u.jsx)(e6,{...o,...t,ref:n,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)"}})});nC.displayName="DropdownMenuSubContent";var nM=nl,nR=nc,nE=ns,nj=nf,n_=np,nk=nv,nD=nm,nN=nh,nP=ng,nS=nw,nT=ny,nI=nx,nO=e=>{let{__scopeDropdownMenu:n,children:r,open:t,onOpenChange:o,defaultOpen:a}=e,i=no(n),[c=!1,s]=(0,l.T)({prop:t,defaultProp:a,onChange:o});return(0,u.jsx)(e5,{...i,open:c,onOpenChange:s,children:r})},nL=nb,nA=nC},97476:function(e,n,r){r.d(n,{ck:function(){return T},fC:function(){return S},Pc:function(){return M}});var t=r(2265),o=r(6741),a=r(21097);function u(...e){return n=>
1e.forEach(e=>{"function"==typeof e?e(n):null!=e&&(e.current=n)})}var l=r(57437),i=r(82425);r(54887);var c=t.forwardRef((e,n)=>{let{children:r,...o}=e,a=t.Children.toArray(r),u=a.find(f);if(u){let e=u.props.children,r=a.map(n=>n!==u?n:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,l.jsx)(s,{...o,ref:n,children:t.isValidElement(e)?t.cloneElement(e,void 0,r):null})}return(0,l.jsx)(s,{...o,ref:n,children:r})});c.displayName="Slot";var s=t.forwardRef((e,n)=>{let{children:r,...o}=e;if(t.isValidElement(r)){let e,a;let l=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return t.cloneElement(r,{...function(e,n){let r={...n};for(let t in n){let o=e[t],a=n[t];/^on[A-Z]/.test(t)?o&&a?r[t]=(...e)=>{a(...e),o(...e)}:o&&(r[t]=o):"style"===t?r[t]={...o,...a}:"className"===t&&(r[t]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props),ref:n?u(n,l):l})}return t.Children.count(r)>1?t.Children.only(null):null});s.displayName="SlotClone";var d=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});function f(e){return t.isValidElement(e)&&e.type===d}var p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{let r=t.forwardRef((e,r)=>{let{asChild:t,...o}=e,a=t?c:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(a,{...o,ref:r})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),v=r(46484),m=r(29114),h="rovingFocusGroup.onEntryFocus",g={bubbles:!1,cancelable:!0},w="RovingFocusGroup",[y,x,b]=(0,a.B)(w),[C,M]=function(e,n=[]){let r=[],o=()=>{let n=r.map(e=>t.createContext(e));return function(r){let o=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(n,o){let a=t.createContext(o),u=r.length;function i(n){let{scope:r,children:o,...i}=n,c=r?.[e][u]||a,s=t.useMemo(()=>i,Object.values(i));return(0,l.jsx)(c.Provider,{value:s,children:o})}return r=[...r,o],i.displayName=n+"Provider",[i,function(r,l){let i=l?.[e][u]||a,c=t.useContext(i);if(c)return c;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((n,{useScope:r,scopeName:t})=>{let o=r(e)[`__scope${t}`];return{...n,...o}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}(o,...n)]}(w,[b]),[R,E]=C(w),j=t.forwardRef((e,n)=>(0,l.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,l.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,l.jsx)(_,{...e,ref:n})})}));j.displayName=w;var _=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:i=!1,dir:c,currentTabStopId:s,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:f,onEntryFocus:w,preventScrollOnEntryFocus:y=!1,...b}=e,C=t.useRef(null),M=function(...e){return t.useCallback(u(...e),e)}(n,C),E=(0,m.gm)(c),[j=null,_]=(0,v.T)({prop:s,defaultProp:d,onChange:f}),[k,D]=t.useState(!1),N=function(e){let n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}(w),S=x(r),T=t.useRef(!1),[I,O]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(h,N),()=>e.removeEventListener(h,N)},[N]),(0,l.jsx)(R,{scope:r,orientation:a,dir:E,loop:i,currentTabStopId:j,onItemFocus:t.useCallback(e=>_(e),[_]),onItemShiftTab:t.useCallback(()=>D(!0),[]),onFocusableItemAdd:t.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>O(e=>e-1),[]),children:(0,l.jsx)(p.div,{tabIndex:k||0===I?-1:0,"data-orientation":a,...b,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{T.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let n=!T.current;if(e.target===e.currentTarget&&n&&!k){let n=new CustomEvent(h,g);if(e.currentTarget.dispatchEvent(n),!n.defaultPrevented){let e=S().filter(e=>
1e.focusable);P([e.find(e=>e.active),e.find(e=>e.id===j),...e].filter(Boolean).map(e=>e.ref.current),y)}}T.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>D(!1))})})}),k="RovingFocusGroupItem",D=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:u=!1,tabStopId:c,...s}=e,d=(0,i.M)(),f=c||d,v=E(k,r),m=v.currentTabStopId===f,h=x(r),{onFocusableItemAdd:g,onFocusableItemRemove:w}=v;return t.useEffect(()=>{if(a)return g(),()=>w()},[a,g,w]),(0,l.jsx)(y.ItemSlot,{scope:r,id:f,focusable:a,active:u,children:(0,l.jsx)(p.span,{tabIndex:m?0:-1,"data-orientation":v.orientation,...s,ref:n,onMouseDown:(0,o.M)(e.onMouseDown,e=>{a?v.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>v.onItemFocus(f)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){v.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let n=function(e,n,r){var t;let o=(t=e.key,"rtl"!==r?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t);if(!("vertical"===n&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===n&&["ArrowUp","ArrowDown"].includes(o)))return N[o]}(e,v.orientation,v.dir);if(void 0!==n){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===n)o.reverse();else if("prev"===n||"next"===n){var r,t;"prev"===n&&o.reverse();let a=o.indexOf(e.currentTarget);o=v.loop?(r=o,t=a+1,r.map((e,n)=>r[(t+n)%r.length])):o.slice(a+1)}setTimeout(()=>P(o))}})})})});D.displayName=k;var N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function P(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let t of e)if(t===r||(t.focus({preventScroll:n}),document.activeElement!==r))return}var S=j,T=D}}]);

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.