PageSourceSearch

https://account.nostr.build/assets/dropdown-menu-jRDrvZ3W.js

js nostr.build collected 2026-09-25 19:42:15 UTC 37,865 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{A as r,F as i,P as a,_ as o,a as s,b as c,c as l,f as u,g as d,l as f,m as p,o as m,p as h,u as g,v as _,x as v,y}from"./button-CzhKj0ca.js";import{J as b,K as x,M as S,T as C,U as w,d as T,i as E,l as D,n as O,o as k,r as A,t as j,y as ee,z as M}from"./useBaseUiId-DOwErmJe.js";import{n as N}from"./createIcon-D-2Lgu70.js";import{t as te}from"./use-reduced-motion-DX3njGTG.js";import{C as ne,D as re,E as P,F,N as ie,O as I,S as L,T as ae,U as R,_ as oe,a as z,b as se,c as B,d as ce,f as le,ft as V,g as ue,i as H,nt as de,o as U,p as W,pt as G,r as fe,t as pe,tt as me,u as he,w as ge,x as K,y as _e}from"./InternalBackdrop-DDjLSWD3.js";import{a as ve,tt as ye}from"./composite-Du76yYwi.js";import{a as be,n as xe,r as Se,t as Ce}from"./safePolygon-CiWFK5tC.js";import{i as we,n as Te,o as Ee,r as De}from"./ToolbarRootContext-D6k2UH9C.js";import{i as q,n as Oe,r as ke,t as Ae}from"./floating-D_UD-DzG.js";import{n as je,t as J}from"./store-DixnfpJf.js";import{t as Me}from"./useFocus-DC9VSos0.js";import{n as Ne,r as Pe,t as Fe}from"./getPseudoElementBounds-QItfJ34H.js";import{t as Ie}from"./DirectionContext-BHJDGMvC.js";import{t as Y}from"./useControlled-DzDNSzzO.js";import{n as Le,t as X}from"./useCompositeListItem-BR2SYoRd.js";import{t as Re}from"./CompositeItem-DUGexbgX.js";import{t as ze}from"./useTriggerFocusGuards-CIAfsqov.js";var Z=e(t(),1),Be=Z.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return m(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})}),Q=n(),Ve=Z.createContext(void 0);function He(e){let t=Z.useContext(Ve);if(t===void 0&&!e)throw Error(o(33));return t}var Ue=Z.createContext(void 0);function $(e){let t=Z.useContext(Ue);if(t===void 0&&!e)throw Error(o(36));return t}var We=Z.createContext(void 0);function Ge(e=!0){let t=Z.useContext(We);if(t===void 0&&!e)throw Error(o(25));return t}function Ke(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,{events:l}=a.useState(`floatingTreeRoot`),u=a.useState(`open`),d=Ge(!0),f=d!==void 0;return Z.useMemo(()=>({id:r,role:`menuitem`,tabIndex:u&&n?0:-1,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&l.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&l.emit(`close`,{domEvent:e,reason:C})},onMouseUp(e){if(d){let t=d.initialCursorPointRef.current;if(d.initialCursorPointRef.current=null,f&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||f&&!ye&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!f||e.button===2)&&c.type===`regular-item`&&p(s.current,e,{detail:1})}}),[t,n,r,l,i,u,a,o,s,d,f,c])}var qe={type:`regular-item`};function Je(e){let{closeOnClick:t,disabled:n,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,d=Z.useRef(null),{getButtonProps:f,buttonRef:p}=h({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),m=Ke({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:d,itemMetadata:c}),g=Z.useCallback(e=>_(m,{onMouseEnter(){c.type===`submenu-trigger`&&c.setActive()}},e,f),[m,f,c]),v=u(d,p);return Z.useMemo(()=>({getItemProps:g,itemRef:v}),[g,v])}var Ye=`data-checked`,Xe=`data-unchecked`,Ze={checked(e){return e?{[Ye]:``}:{[Xe]:``}},...M},Qe=Z.createContext(void 0);function $e(){let e=Z.useContext(Qe);if(e===void 0)throw Error(o(31));return e}var et=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=Z.useState(void 0),c=m(`div`,e,{ref:t,props:{role:`group`,"aria-labelledby":o,...a}});return(0,Q.jsx)(Qe.Provider,{value:s,children:c})}),tt=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=j(a),c=$e();return y(()=>(c(s),()=>{c(e=>e===s?void 0:e)}),[c,s]),m(`div`,e,{ref:t,props:{id:s,"aria-hidden":!0,...o}})}),nt=Z.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,d=X({guess:!0,label:a}),f=He(!0),p=j(i),{store:h}
1=$(),g=h.useState(`disabled`),_=s||g,v=h.useState(`isActive`,d.index),y=h.useState(`itemProps`),{getItemProps:b,itemRef:x}=Je({closeOnClick:c,disabled:_,highlighted:v,id:p,store:h,nativeButton:o,nodeId:f?.context.nodeId,itemMetadata:qe});return m(`div`,e,{state:{disabled:_,highlighted:v},props:[y,u,b],ref:[x,t,d.ref]})}),rt=Z.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,closeOnClick:o=!1,style:s,...c}=e,l=Z.useRef(null),u=X({guess:!0,label:a}),d=He(!0)?.context.nodeId,f=j(i),{store:p}=$(),g=p.useState(`isActive`,u.index),v=p.useState(`itemProps`),y=p.context.typingRef,{getButtonProps:b,buttonRef:x}=h({native:!1,composite:!0}),S=Ke({closeOnClick:o,highlighted:g,id:f,nodeId:d,store:p,typingRef:y,itemRef:l,itemMetadata:qe});function C(e){return _(S,e,b)}return m(`a`,e,{state:{highlighted:g},props:[v,c,C],ref:[l,x,t,u.ref]})}),it=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s}=$(),{side:c,align:l}=He(),u=Te(!0)!=null,d=s.useState(`open`),f=s.useState(`transitionStatus`),p=s.useState(`popupProps`),h=s.useState(`mounted`),g=s.useState(`instantType`),_=s.useState(`activeTriggerElement`),v=s.useState(`parent`),y=s.useState(`lastOpenChangeReason`),b=s.useState(`rootId`),x=s.useState(`floatingRootContext`),S=s.useState(`floatingTreeRoot`),C=s.useState(`closeDelay`),w=s.useState(`hoverEnabled`),T=s.useState(`disabled`),E=s.useState(`openMethod`),k=v.type===`context-menu`;O({open:d,ref:s.context.popupRef,onComplete(){d&&s.context.onOpenChangeComplete?.(!0)}}),Z.useEffect(()=>{function e(e){s.setOpen(!1,D(e.reason,e.domEvent))}return S.events.on(`close`,e),()=>{S.events.off(`close`,e)}},[S.events,s]),Se(x,{enabled:w&&!T&&!k&&v.type!==`menubar`,closeDelay:C});let A=s.useStateSetter(`popupElement`),j={transitionStatus:f,side:c,align:l,open:d,nested:v.type===`menu`,instant:g},ee=m(`div`,e,{state:j,ref:[t,s.context.popupRef,A],stateAttributesMapping:me,props:[p,{onKeyDown(e){u&&ve.has(e.key)&&e.stopPropagation()}},ke(f),o,{"data-rootownerid":b}]}),M=v.type===void 0||k;return(_||v.type===`menubar`&&y!==`outside-press`)&&(M=!0),(0,Q.jsx)(K,{context:x,openInteractionType:E,modal:k,disabled:!h,returnFocus:a===void 0?M:a,initialFocus:v.type!==`menu`,restoreFocus:!0,externalTree:v.type===`menubar`?void 0:S,previousFocusableElement:_,nextFocusableElement:v.type===void 0?s.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:v.type===void 0?s.context.beforeContentFocusGuardRef:void 0,children:ee})}),at=Z.createContext(void 0);function ot(){let e=Z.useContext(at);if(e===void 0)throw Error(o(32));return e}var st=Z.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i,parent:a}=$();if(!(i.useState(`mounted`)||n))return null;let o=a.type===`menu`||a.type===`menubar`?`group`:void 0;return(0,Q.jsx)(at.Provider,{value:n,children:(0,Q.jsx)(I,{ref:t,...r,portalOwnerRole:o})})}),ct=Z.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=ie,style:g,..._}=e,{store:v}=$(),b=ot(),C=Ge(!0),w=v.useState(`parent`),T=v.useState(`floatingRootContext`),E=v.useState(`floatingTreeRoot`),O=v.useState(`mounted`),k=v.useState(`open`),j=v.useState(`modal`),ee=v.useState(`openMethod`),M=v.useState(`activeTriggerElement`),N=v.useState(`transitionStatus`),te=v.useState(`positionerElement`),ne=v.useState(`instantType`),re=v.useState(`adaptiveOrigin`),P=v.useState(`lastOpenChangeReason`),I=v.useState(`floatingNodeId`),ae=v.useState(`floatingParentNodeId`),R=T.useState(`domReferenceElement`),oe=Z.useRef(null),z=A(te),se=n,B=c,ce=l,le=s,V=h;w.type===`context-menu`&&(se=n??w.context?.anchor,le??=`start`,!o&&le!==`center`&&(ce=e.alignOffset??2,B=e.sideOffset??-5));let ue=o,H=le;w.type===`menu`?(ue??=`inline-end`,H??=`start`,V=e.collisionAvoidance??F):w.type===`menubar`&&(ue??=w.context.orientation===`vertical`?`inline-end`:`bottom`,H??=`start`);let de=w.type===`context-menu`,U=q({anchor:se,floatingRootContext:T,positionMethod:C?`fixed`:r,mounted:O,side:ue,sideOffset:B,align:H,alignOffset:ce,arrowPadding:de?0:f,collisionBoundary:u,collisionPadding:d,sticky:p,nodeId:I,keepMounted:b,disableAnchorTracking:m,collisionAvoidance:V,shift:de?{crossAxis:!(`side`in V&&V.side===`flip`),rootBoundary:`layoutViewport`}:void 0,externalTree:E,adaptiveOrigin:re});Z.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===I&&v.set(`hoverEnabled`,!1),e.nodeId!==I&&e.parentNodeId===v.select(`floatingParentNodeId`)&&v.setOpen(!1,D(S)))}return E.events.on(`menuopenchange`,e),()=>{E.events.off(`menuopenchange`,e)}},[v,E.events,I]),Z.useEffect(()=>{if(v.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==v.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;v.setOpen(!1,D(t))}return E.events.on(`menuopenchange`,e),()=>{E.events.off(`menuopenchange`,e)}},[E.events,v]);let W=x();Z.useEffect(()=>{k||W.clear()},[k,W]),Z.useEffect(()=>{function e(e){if(k&&e.nodeId===v.select(`floatingParentNodeId`)){if(e.target&&M&&M!==e.target){let e=v.select(`closeDelay`);e>0?W.isStarted()||W.start(e,()=>{v.setOpen(!1,D(S))}):v.setOpen(!1,D(S))}else W.clear()}}return E.events.on(`itemhover`,e),()=>{E.events.off(`itemhover`,e)}},[E.events,k,M,v,W]),Z.useEffect(()=>{let e={open:k,nodeId:I,parentNodeId:ae,reason:v.select(`lastOpenChangeReason`)};E.events.emit(`menuopenchange`,e)},[E.events,k,v,I,ae]),y(()=>{let e=R,t=oe.current;if(e&&(oe.current=e),t&&e&&e!==t){v.set(`instantType`,void 0);let e=new AbortController;return z(()=>{v.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[R,z,v]);let G={open:k,side:U.side,align:U.align,anchorHidden:U.anchorHidden,nested:w.t
1ype===`menu`,instant:ne},me=w.type===`menubar`&&w.context.modal;De(k&&(me||j&&P!==`trigger-hover`),ee===`touch`,te,M);let he=Oe(e,G,{styles:U.positionerStyles,transitionStatus:N,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!O,inert:!k}),ge=O&&w.type!==`menu`&&(w.type!==`menubar`&&j&&P!==`trigger-hover`||w.type===`menubar`&&w.context.modal),K=null;return w.type===`menubar`?K=w.context.contentElement:w.type===void 0&&(K=M),(0,Q.jsxs)(Ve.Provider,{value:U,children:[ge&&(0,Q.jsx)(pe,{ref:w.type===`context-menu`||w.type===`nested-context-menu`?w.context.internalBackdropRef:null,inert:fe(!k),cutout:K}),(0,Q.jsx)(L,{id:I,children:(0,Q.jsx)(Le,{elementsRef:v.context.itemDomElements,labelsRef:v.context.itemLabels,children:he})})]})}),lt=Z.createContext(void 0);function ut(){let e=Z.useContext(lt);if(e===void 0)throw Error(o(34));return e}var dt=Z.memo(Z.forwardRef(function(e,t){let{render:n,className:r,value:i,defaultValue:a,onValueChange:o,disabled:s=!1,style:l,"aria-labelledby":u,...d}=e,[f,p]=Z.useState(void 0),[h,g]=Y({controlled:i,default:a,name:`MenuRadioGroup`}),_=c((e,t)=>{o?.(e,t),!t.isCanceled&&g(e)}),v=m(`div`,e,{state:{disabled:s},ref:t,props:{role:`group`,"aria-labelledby":u??f,"aria-disabled":s||void 0,...d}}),y=Z.useMemo(()=>({value:h,setValue:_,disabled:s}),[h,_,s]);return(0,Q.jsx)(Qe.Provider,{value:p,children:(0,Q.jsx)(lt.Provider,{value:y,children:v})})})),ft=Z.createContext(void 0);function pt(){let e=Z.useContext(ft);if(e===void 0)throw Error(o(35));return e}var mt=Z.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!1,value:l,style:u,...d}=e,f=X({guess:!0,label:a}),p=He(!0),h=j(i),{store:_}=$(),v=_.useState(`isActive`,f.index),y=_.useState(`itemProps`),{value:b,setValue:x,disabled:S}=ut(),w=_.useState(`disabled`),T=s||S||w,E=b===l,{getItemProps:O,itemRef:k}=Je({closeOnClick:c,disabled:T,highlighted:v,id:h,store:_,nativeButton:o,nodeId:p?.context.nodeId,itemMetadata:qe}),A=Z.useMemo(()=>({disabled:T,highlighted:v,checked:E}),[T,v,E]);function ee(e){let t=D(C,e.nativeEvent,void 0,{preventUnmountOnClose:g});x(l,t)}let M=m(`div`,e,{state:A,stateAttributesMapping:Ze,props:[y,{role:`menuitemradio`,"aria-checked":E,onClick:ee},d,O],ref:[k,t,f.ref]});return(0,Q.jsx)(ft.Provider,{value:A,children:M})}),ht=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=pt(),c=Z.useRef(null),{transitionStatus:l,mounted:u,setMounted:d}=E(s.checked);O({batch:!0,enabled:!s.checked,open:s.checked,ref:c,onComplete(){s.checked||d(!1)}});let f={checked:s.checked,disabled:s.disabled,highlighted:s.highlighted,transitionStatus:l};return m(`span`,e,{state:f,stateAttributesMapping:Ze,ref:[t,c],props:{"aria-hidden":!0,...o},enabled:a||u})}),gt=Z.createContext(null);function _t(e){let t=Z.useContext(gt);if(t===null&&!e)throw Error(o(5));return t}var vt={...je,disabled:e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0),openMethod:e=>e.openMethod,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId,activeIndex:e=>e.activeIndex,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)}},yt=class extends _e{constructor(e,t,n=!1){let r=new H,i=xt(r,t,n,e);super(i,bt(r),vt),this.unsubscribeParentListener=this.observe(`parent`,e=>{if(this.unsubscribeParentListener?.(),e.type===`menu`){let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}unsubscribeParentListener=null};function bt(e){return{positionerRef:Z.createRef(),popupRef:Z.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1}
1,triggerFocusTargetRef:Z.createRef(),beforeContentFocusGuardRef:Z.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function xt(e,t,n=!1,r){return{...J(e,t,n),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new re,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:f,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var St=Z.createContext(void 0);function Ct(){return Z.useContext(St)}var wt=V(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,defaultOpen:a=!1,disabled:o=!1,modal:s,loopFocus:u=!0,orientation:d=`vertical`,actionsRef:p,closeParentOnEsc:m=!1,handle:h,triggerId:g,defaultTriggerId:b=null,highlightItemOnHover:S=!0}=e,C=Ge(!0),w=$(!0),T=_t(!0),E=Ct(),O=Z.useMemo(()=>E&&w?{type:`menu`,store:w.store}:T?{type:`menubar`,context:T}:C&&!w?{type:`context-menu`,context:C}:{type:void 0},[C,w,T,E]),j=k(),M=k(),N=ae(),te=O.type===`menu`?O.store:void 0,re=(n??a)&&te?.state.transitionStatus===`starting`,P=v(()=>re?te?.state.instantType:void 0).current,F=Tt({open:a,openProp:n,activeTriggerId:b,triggerIdProp:g,parent:O,disabled:o,highlightItemOnHover:S,modal:O.type===void 0?s:void 0,rootId:j,instantType:P},M,N!=null);F.useControlledProp(`openProp`,n),F.useControlledProp(`triggerIdProp`,g),F.useContextCallback(`onOpenChangeComplete`,i);let ie=F.useState(`floatingTreeRoot`),I=ge(ie),L=F.useState(`open`),R=F.useState(`activeTriggerElement`),V=F.useState(`positionerElement`),ue=F.useState(`hoverEnabled`),H=F.useState(`disabled`),de=F.useState(`lastOpenChangeReason`),G=F.useState(`parent`),fe=F.useState(`activeIndex`),pe=F.useState(`payload`),me=F.useState(`floatingParentNodeId`),K=Z.useRef(null),_e=Z.useRef(G.type!==`context-menu`),ve=x(),ye=Z.useRef(!0),be=x(),xe=me!=null,{openMethod:Se,triggerProps:Ce}=we(L);F.useSyncedValues({disabled:o,highlightItemOnHover:S,modal:G.type===void 0?s:void 0,openMethod:Se,rootId:j}),ce(F);let{forceUnmount:Te,transitionStatus:Ee}=le(L,F,()=>{F.set(`allowMouseEnter`,!1)},re),De=A(F.context.popupRef);Z.useEffect(()=>{if(P===void 0)return;let e=()=>{F.state.instantType===P&&F.set(`instantType`,void 0)};if(!L){e();return}if(Ee!==void 0)return;if(F.context.popupRef.current==null){e();return}let t=new AbortController;return De(e,t.signal),()=>{t.abort()}},[P,L,Ee,De,F]),y(()=>{C&&!w?F.update({parent:{type:`context-menu`,context:C},floatingNodeId:I,floatingParentNodeId:N}):w&&F.update({floatingNodeId:I,floatingParentNodeId:N})},[C,w,I,N,F]),Z.useEffect(()=>{if(L||(K.current=null),G.type===`context-menu`){if(!L){ve.clear(),_e.current=!1;return}ve.start(500,()=>{_e.current=!0})}},[ve,L,G.type]),y(()=>{!L&&!ue&&F.set(`hoverEnabled`,!0)},[L,ue,F]);let q=c((e,t)=>{let n=t.reason;if(!e&&!F.select(`open`)||L===e&&t.trigger===R&&de===n)return;let i=B(t);if(!e&&t.trigger==null&&(t.trigger=R??void 0),r?.(e,t),t.isCanceled)return;F.state.floatingRootContext.dispatchOpenChange(e,t);let a=t.event;if(e===!1&&a?.type===`click`&&a.pointerType===`touch`&&!ye.current)return;e&&n===`trigger-focus`?(ye.current=!1,be.start(300,()=>{ye.current=!0})):(ye.current=!0,be.clear());let o=(n===`trigger-press`||n===`item-press`)&&a.detail===0,s=!e&&(n===`escape-key`||n==null);K.current=t.event;let c=he(F.state,e,t.trigger,i());c.openChangeReason=n,c.instantType=G.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?`group`:o||s?o?`click`:`dismiss`:void 0,F.update(c)}),Oe=oe({popupStore:F,floatingRootContext:F.state.floatingRootContext,floatingId:M,nested:N!=null,onOpenChange:q}),ke=Oe.context.events;y(()=>{let e=({open:e,eventDetails:t})=>q(e,t);return ke.on(`setOpen`,e),()=>{ke?.off(`setOpen`,e)}},[ke,q]);let Ae=Z.useCallback(()=>{F.setOpen(!1,D(ee))},[F]);Z.useImperativeHandle(p,()=>({unmount:Te,close:Ae}),[Te,Ae]);let je;G.type===`context-menu`&&(je=G.context),Z.useImperativeHandle(je?.positionerRef,()=>V,[V]),Z.useImperativeHandle(je?.actionsRef,()=>({setOpen:q}),[q]);let J=se(Oe,{enabled:!H,bubbles:{escapeKey:m&&G.type===`menu`},outsidePress(){return G.type!==`context-menu`||K.current?.type===`contextmenu`||_e.current},externalTree:xe?ie:void 0}),Me=Ie(),Fe=Z.useCallback(e=>{F.select(`activeIndex`)!==e&&F.set(`activeIndex`,e)}
1,[F]),Y=Pe(Oe,{enabled:!H,listRef:F.context.itemDomElements,activeIndex:fe,nested:G.type!==void 0,loopFocus:u,orientation:d,parentOrientation:G.type===`menubar`?G.context.orientation:void 0,rtl:Me===`rtl`,disabledIndices:l,onNavigate:Fe,openOnArrowKeyDown:G.type!==`context-menu`,externalTree:xe?ie:void 0,focusItemOnHover:S}),Le=Z.useCallback(e=>{F.context.typingRef.current=e},[F]),X=Ne(Oe,{enabled:!H,listRef:F.context.itemLabels,elementsRef:F.context.itemDomElements,activeIndex:fe,resetMs:500,onMatch:e=>{L&&e!==fe&&F.set(`activeIndex`,e)},onTyping:Le}),Re=Z.useMemo(()=>{let e=_(X.reference,Y.reference,J.reference,{onMouseMove(){F.set(`allowMouseEnter`,!0)}},Ce);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=L,e},[F,X.reference,Y.reference,J.reference,Ce,L]),ze=Z.useMemo(()=>{let e=_(Y.trigger,J.trigger,Ce);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[Y.trigger,J.trigger,Ce]);v(()=>(F.update({inactiveTriggerProps:ze}),null));let Be=Z.useMemo(()=>_(z,{id:M,role:`menu`,"aria-orientation":d===`horizontal`?`horizontal`:void 0,"aria-labelledby":R?.id,onMouseMove(){F.set(`allowMouseEnter`,!0),G.type===`menu`&&F.set(`hoverEnabled`,!1)},onClick(){F.select(`hoverEnabled`)&&F.set(`hoverEnabled`,!1)},onKeyDown(e){let t=F.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},X.floating,Y.floating,J.floating),[R,M,d,G.type,F,X.floating,Y.floating,J.floating]),Ve=Y.item??f;W(F,{floatingRootContext:Oe,activeTriggerProps:Re,inactiveTriggerProps:ze,popupProps:Be,itemProps:Ve});let He=Z.useMemo(()=>({store:F,parent:O}),[F,O]),We=(0,Q.jsxs)(Ue.Provider,{value:He,children:[h&&(0,Q.jsx)(U,{handle:h,store:F}),typeof t==`function`?t({payload:pe}):t]});return G.type===void 0||G.type===`context-menu`?(0,Q.jsx)(ne,{externalTree:ie,children:We}):We});function Tt(e,t,n){return v(()=>new yt(e,t,n)).current}function Et(e){if(a(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!i(e))return Et(r(e))}function Dt(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=Z.useRef(!1);return Z.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,b(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:f,[t,n,r])}var Ot=G(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:s=!0,id:l,openOnHover:u,delay:p=100,closeDelay:g=0,handle:v,payload:y,...S}=e,C=$(!0),E=be(v)??C?.store;if(!E)throw Error(o(85));let D=j(l),O=E.useState(`isTriggerActive`,D),k=E.useState(`floatingRootContext`),A=E.useState(`isOpenedByTrigger`,D),ee=E.useState(`triggerPopupId`,D),M=Z.useRef(null),N=At(),te=d(!0),ne=P(),F=Z.useMemo(()=>ne??new re,[ne]),ie=ge(F),I=ae(),{registerTrigger:L,isMountedByThisTrigger:oe}=ue(D,M,E,{payload:y,closeDelay:g,parent:N,floatingTreeRoot:F,floatingNodeId:ie,floatingParentNodeId:I,keyboardEventRelay:te?.relayKeyboardEvent}),z=N.type===`menubar`,se=E.useState(`disabled`),B=a||se||z&&N.context.disabled,{getButtonProps:ce,buttonRef:le}=h({disabled:B,native:s});Z.useEffect(()=>{!A&&N.type===void 0&&(E.context.allowMouseUpTriggerRef.current=!1)},[E,A,N.type]);let V=Z.useRef(null),H=x(),U=c(e=>{if(!V.current)return;H.clear(),E.context.allowMouseUpTriggerRef.current=!1;let t=e.target;w(V.current,t)||w(E.select(`positionerElement`),t)||t===V.current||(t==null||Et(t)!==E.select(`rootId`))&&(Fe(e,V.current)||F.events.emit(`close`,{domEvent:e,reason:T}))});Z.useEffect(()=>{A&&E.select(`lastOpenChangeReason`)===`trigger-hover`&&b(V.current).addEventListener(`mouseup`,U,{once:!0})},[A,U,E]);let W=z&&N.context.hasSubmenuOpen,G=xe(k,{enabled:(u??W)&&!B&&(!z||W&&!oe),handleClose:Ce({blockPointerEvents:!z}),mouseOnly:!0,move:!1,restMs:N.type===void 0?p:void 0,delay:{close:g},triggerElementRef:M,externalTree:F,isActiveTrigger:O,isClosing:()=>E.select(`transitionStatus`)===`ending`}),fe=kt(A,E.select(`lastOpenChangeReason`)),pe=Ee(k,{enabled:!B,event:A&&z?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:N.type===void 0&&fe}),me=Me(k,{enabled:!B&&W}),he=Dt({open:A,enabled:z,mouseDownAction:`open`}),K=Z.useMemo(()=>_(me.reference,pe.reference),[me.reference,pe.reference]),_e=E.useState(`triggerProps`,oe),{preFocusGuardRef:ve,handlePreFocusGuardFocus:ye,handleFocusTargetFocus:Se}=ze(E,M),we={disabled:B,open:A},Te=[V,t,le,L,M],De=[K,G??f,_e,{"aria-haspopup":`menu`,"aria-controls":ee,id:D,onMouseDown:e=>{E.select(`open`)||(H.start(200,()=>{E.context.allowMouseUpTriggerRef.current=!0}),b(e.currentTarget).addEventListener(`mouseup`,U,{once:!0}))}},z?{role:`menuitem`}:{},he,S,ce],q=m(`button`,e,{enabled:!z,stateAttributesMapping:de,state:we,ref:Te,props:De});return z?(0,Q.jsx)(Re,{tag:`button`,render:n,className:r,style:i,state:we,refs:Te,props:De,stateAttributesMapping:de}
1):A?(0,Q.jsxs)(Z.Fragment,{children:[(0,Q.jsx)(R,{ref:ve,onFocus:ye},`${D}-pre-focus-guard`),(0,Q.jsx)(Z.Fragment,{children:q},D),(0,Q.jsx)(R,{ref:E.context.triggerFocusTargetRef,onFocus:Se},`${D}-post-focus-guard`)]}):(0,Q.jsx)(Z.Fragment,{children:q},D)});function kt(e,t){let n=x(),[r,i]=Z.useState(!1);return y(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function At(){let e=_t(!0);return Z.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}var jt=[`relative inline-flex items-center gap-1.5 transform-gpu cursor-pointer font-medium outline-none`,`transition duration-250 ease-[cubic-bezier(0.175,0.885,0.32,1.5)]`,`select-none not-data-popup-open:active:scale-[0.97] not-data-popup-open:active:duration-100 not-data-popup-open:active:ease-in-out not-data-popup-open:active:translate-y-px`,`data-disabled:opacity-disabled data-disabled:pointer-events-none`,`group-data-disabled/submenu-trigger:opacity-disabled group-data-disabled/submenu-trigger:pointer-events-none`,`motion-reduce:transition-none`,`data-[orientation=vertical]:text-start`,`[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='stroke-'])]:stroke-[1.85]`],Mt=[`text-foreground-strong hover:text-foreground-intense focus-visible:text-foreground-intense`,`data-active:text-foreground-intense data-popup-open:text-foreground-intense data-pressed:text-foreground-intense`],Nt=[...Mt,`before:pointer-events-none before:absolute before:inset-0 before:-z-1 before:rounded-[inherit]`,`before:transition-colors before:duration-300`,`motion-reduce:before:transition-none`,`hover:before:bg-background-muted focus-visible:before:bg-background-muted`,`data-active:before:bg-background-muted`,`data-popup-open:before:bg-background-muted data-pressed:before:bg-background-muted`,`data-highlighted:not-data-disabled:text-foreground-intense`,`data-highlighted:not-data-disabled:before:bg-background-muted`,`group-data-highlighted/submenu-trigger:not-data-disabled:text-foreground-intense`,`group-data-highlighted/submenu-trigger:not-data-disabled:before:bg-background-muted`,`group-data-popup-open/submenu-trigger:not-data-disabled:text-foreground-intense`,`group-data-popup-open/submenu-trigger:not-data-disabled:before:bg-background-muted`],Pt=[...Mt,`after:absolute after:rounded-full after:bg-no-repeat`,`after:[background-image:linear-gradient(0deg,currentColor,currentColor)]`,`after:transition-[background-size] after:duration-300`,`motion-reduce:after:transition-none`,`data-[orientation=horizontal]:after:inset-x-0`,`data-[orientation=horizontal]:after:h-0.5`,`data-[orientation=horizontal]:after:bg-size-[0_2px]`,`ltr:data-[orientation=horizontal]:after:bg-right rtl:data-[orientation=horizontal]:after:bg-left`,`hover:data-[orientation=horizontal]:after:bg-size-[100%_2px] focus-visible:data-[orientation=horizontal]:after:bg-size-[100%_2px]`,`ltr:hover:data-[orientation=horizontal]:after:bg-left rtl:hover:data-[orientation=horizontal]:after:bg-right`,`ltr:focus-visible:data-[orientation=horizontal]:after:bg-left rtl:focus-visible:data-[orientation=horizontal]:after:bg-right`,`data-active:data-[orientation=horizontal]:after:bg-size-[100%_2px]`,`ltr:data-active:data-[orientation=horizontal]:after:bg-left rtl:data-active:data-[orientation=horizontal]:after:bg-right`,`data-popup-open:data-[orientation=horizontal]:after:bg-size-[100%_2px]`,`ltr:data-popup-open:data-[orientation=horizontal]:after:bg-left rtl:data-popup-open:data-[orientation=horizontal]:after:bg-right`,`data-pressed:data-[orientation=horizontal]:after:bg-size-[100%_2px]`,`ltr:data-pressed:data-[orientation=horizontal]:after:bg-left rtl:data-pressed:data-[orientation=horizontal]:after:bg-right`,`data-[orientation=vertical]:after:inset-s-0 data-[orientation=vertical]:after:top-[25%] data-[orientation=vertical]:after:bottom-[25%]`,`data-[orientation=vertical]:after:w-0.5`,`data-[orientation=vertical]:after:bg-size-[2px_0]`,`data-[orientation=vertical]:after:[background-position-y:bottom]`,`hover:data-[orientation=vertical]:after:bg-size-[2px_100%] hover:data-[orientation=vertical]:after:[background-position-y:top]`,`focus-visible:data-[orientation=vertical]:after:bg-size-[2px_100%] focu
1s-visible:data-[orientation=vertical]:after:[background-position-y:top]`,`data-active:data-[orientation=vertical]:after:bg-size-[2px_100%] data-active:data-[orientation=vertical]:after:[background-position-y:top]`,`data-popup-open:data-[orientation=vertical]:after:bg-size-[2px_100%] data-popup-open:data-[orientation=vertical]:after:[background-position-y:top]`,`data-pressed:data-[orientation=vertical]:after:bg-size-[2px_100%] data-pressed:data-[orientation=vertical]:after:[background-position-y:top]`],Ft=[...Mt,`max-w-full`,`**:data-[slot=navigation-link-indicator]:inline-flex`,`**:data-[slot=navigation-link-indicator]:items-center`,`**:data-[slot=navigation-link-indicator]:justify-center`,`**:data-[slot=navigation-link-indicator]:overflow-hidden`,`**:data-[slot=navigation-link-indicator]:shrink-0`,`**:data-[slot=navigation-link-indicator]:w-0`,`**:data-[slot=navigation-link-indicator]:opacity-0`,`rtl:**:data-[slot=navigation-link-indicator]:rotate-180`,`**:data-[slot=navigation-link-indicator]:transition-[width,opacity]`,`**:data-[slot=navigation-link-indicator]:duration-250`,`**:data-[slot=navigation-link-indicator]:ease-out`,`motion-reduce:**:data-[slot=navigation-link-indicator]:transition-none`,`hover:**:data-[slot=navigation-link-indicator]:opacity-100 focus-visible:**:data-[slot=navigation-link-indicator]:opacity-100`,`data-active:**:data-[slot=navigation-link-indicator]:opacity-100`,`**:data-[slot=navigation-link-label]:flex-1`,`**:data-[slot=navigation-link-label]:min-w-0`,`**:data-[slot=navigation-link-label]:truncate`],It=s(N(jt),{variants:{variant:{pill:N(Nt),line:N(Pt),indicator:N(Ft)},size:{sm:`text-xs [&_svg:not([class*='size-'])]:size-4`,md:`text-sm [&_svg:not([class*='size-'])]:size-4.5`,lg:`text-base [&_svg:not([class*='size-'])]:size-5`}},compoundVariants:[{variant:`pill`,size:`sm`,class:N(`data-[orientation=horizontal]:rounded-sm data-[orientation=horizontal]:py-2 data-[orientation=horizontal]:px-3 data-[orientation=horizontal]:has-data-[icon=end]:pe-2 data-[orientation=horizontal]:has-data-[icon=start]:ps-2`,`data-[orientation=vertical]:rounded-xs data-[orientation=vertical]:py-1.5 data-[orientation=vertical]:px-2.5 data-[orientation=vertical]:has-data-[icon=end]:pe-1.5 data-[orientation=vertical]:has-data-[icon=start]:ps-1.5`,`in-aria-[orientation=vertical]:rounded-xs in-aria-[orientation=vertical]:py-1.5 in-aria-[orientation=vertical]:px-2.5 in-aria-[orientation=vertical]:has-data-[icon=end]:pe-1.5 in-aria-[orientation=vertical]:has-data-[icon=start]:ps-1.5`)},{variant:`pill`,size:`md`,class:N(`data-[orientation=horizontal]:rounded-md data-[orientation=horizontal]:py-2.5 data-[orientation=horizontal]:px-3.5 data-[orientation=horizontal]:has-data-[icon=end]:pe-2.5 data-[orientation=horizontal]:has-data-[icon=start]:ps-2.5`,`data-[orientation=vertical]:rounded-sm data-[orientation=vertical]:py-2 data-[orientation=vertical]:px-3 data-[orientation=vertical]:has-data-[icon=end]:pe-2 data-[orientation=vertical]:has-data-[icon=start]:ps-2`,`in-aria-[orientation=vertical]:rounded-sm in-aria-[orientation=vertical]:py-2 in-aria-[orientation=vertical]:px-3 in-aria-[orientation=vertical]:has-data-[icon=end]:pe-2 in-aria-[orientation=vertical]:has-data-[icon=start]:ps-2`)},{variant:`pill`,size:`lg`,class:N(`data-[orientation=horizontal]:rounded-lg data-[orientation=horizontal]:py-3 data-[orientation=horizontal]:px-4 data-[orientation=horizontal]:has-data-[icon=end]:pe-3 data-[orientation=horizontal]:has-data-[icon=start]:ps-3`,`data-[orientation=vertical]:rounded-md data-[orientation=vertical]:py-2.5 data-[orientation=vertical]:px-3.5 data-[orientation=vertical]:has-data-[icon=end]:pe-2.5 data-[orientation=vertical]:has-data-[icon=start]:ps-2.5`,`in-aria-[orientation=vertical]:rounded-md in-aria-[orientation=vertical]:py-2.5 in-aria-[orientation=vertical]:px-3.5 in-aria-[orientation=vertical]:has-data-[icon=end]:pe-2.5 in-aria-[orientation=vertical]:has-data-[icon=start]:ps-2.5`)},{variant:`line`,size:`sm`,class:N(`data-[orientation=horizontal]:py-2`,`data-[orientation=vertical]:py-1.5 data-[orientation=vertical]:ps-2.5`,`data-[orientation=vertical]:has-data-[icon=end]:pe-1.5 data-[orientation=vertical]:has-data-[icon=start]:ps-1.5`,`data-[orientation=horizontal]:after:bottom-1`)},{variant:`line`,size:`md`,class:N(`data-[orientation=horizontal]:py-2.5`,`data-[orientation=vertical]:py-2 data-[orientation=vertical]:ps-3`,`data-[orientation=vertical]:has-data-[icon=end]:pe-2 data-[orientation=vertical]:has-data-[icon=start]:ps-2.5`,`data-[orientation=horizontal]:after:bottom-1.5`)},{variant:`line`,size:`lg`,class:N(`data-[orientation=horizontal]:py-3`,`data-[orientation=vertical]:py-2.5 data-[orientation=vertical]:ps-3.5`,`data-[orientation=vertical]:has-data-[icon=end]:pe-2.5 data-[orientation=vertical]:has-data-[icon=start]:ps-2.5`,`data-[orientation=horizontal]:after:bottom-2`)},{variant:`indicator`,size:`sm`,class:N(`data-[orientation=horizontal]:py-2`,`data-[orientation=vertical]:py-1.5`,`hover:**:data-[slot=navigation-link-indicator]:w-4 focus-visible:**:data-[slot=navigation-link-indicator]:w-4 data-active:
1**:data-[slot=navigation-link-indicator]:w-4`)},{variant:`indicator`,size:`md`,class:N(`data-[orientation=horizontal]:py-2.5`,`data-[orientation=vertical]:py-2`,`hover:**:data-[slot=navigation-link-indicator]:w-4.5 focus-visible:**:data-[slot=navigation-link-indicator]:w-4.5 data-active:**:data-[slot=navigation-link-indicator]:w-4.5`)},{variant:`indicator`,size:`lg`,class:N(`data-[orientation=horizontal]:py-3`,`data-[orientation=vertical]:py-2.5`,`hover:**:data-[slot=navigation-link-indicator]:w-5 focus-visible:**:data-[slot=navigation-link-indicator]:w-5 data-active:**:data-[slot=navigation-link-indicator]:w-5`)}],defaultVariants:{variant:`pill`,size:`md`}}),Lt=Z.createContext(null);function Rt(){let e=Z.useContext(Lt);if(!e)throw Error(`DropdownMenu sub-components must be rendered inside <DropdownMenu>`);return e}function zt({size:e=`md`,children:t,...n}){let r=te(),i=Z.useMemo(()=>({size:e,reducedMotion:r}),[e,r]);return(0,Q.jsx)(Lt,{value:i,children:(0,Q.jsx)(wt,{...n,children:t})})}function Bt({className:e,...t}){return(0,Q.jsx)(Ot,{"data-slot":`dropdown-menu-trigger`,className:N(e),...t})}var Vt={sm:`min-w-40 rounded-md`,md:`min-w-48 rounded-lg`,lg:`min-w-56 rounded-xl`};function Ht(e,t){return N(`max-h-(--available-height) w-(--anchor-width) bg-background border-border-overlay flex flex-col border shadow-2xl outline-none`,Vt[e],`origin-(--transform-origin)`,`motion-safe:transition-[opacity,scale] motion-safe:duration-200 motion-safe:ease-[cubic-bezier(0.175,0.885,0.32,1.5)]`,`data-starting-style:motion-safe:scale-90 data-starting-style:motion-safe:opacity-0`,`data-ending-style:motion-safe:scale-95 data-ending-style:motion-safe:opacity-0 data-ending-style:motion-safe:duration-100 data-ending-style:motion-safe:ease-out`,t)}function Ut({className:e,children:t,...n}){let{size:r}=Rt(),{positioner:i,portal:a,popup:o}=Ae(n);return(0,Q.jsx)(st,{...a,children:(0,Q.jsx)(ct,{align:`start`,sideOffset:6,...i,className:N(`isolate z-50`,i.className),children:(0,Q.jsx)(it,{"data-slot":`dropdown-menu-content`,className:Ht(r,e),...o,children:(0,Q.jsx)(`div`,{className:`flex flex-col gap-0.5 overflow-x-hidden overflow-y-auto p-2`,children:t})})})})}var Wt=`w-full outline-hidden`,Gt={sm:`gap-1`,md:`gap-1.5`,lg:`gap-1.5`};function Kt({className:e,...t}){let{size:n}=Rt();return(0,Q.jsx)(nt,{"data-slot":`dropdown-menu-item`,className:N(It({variant:`pill`,size:n}),Wt,e),...t})}function qt({className:e,...t}){let{size:n}=Rt();return(0,Q.jsx)(rt,{"data-slot":`dropdown-menu-link-item`,className:N(It({variant:`pill`,size:n}),Wt,e),...t})}function Jt(e){return(0,Q.jsx)(et,{"data-slot":`dropdown-menu-group`,...e})}var Yt={sm:`px-2.5 pt-1.5 pb-1 text-xs`,md:`px-3 pt-2 pb-1.25 text-sm`,lg:`px-3.5 pt-2.5 pb-1.5 text-base`};function Xt({className:e,...t}){let{size:n}=Rt();return(0,Q.jsx)(tt,{"data-slot":`dropdown-menu-group-label`,className:N(`text-foreground-subtle`,Yt[n],e),...t})}function Zt({className:e,...t}){return(0,Q.jsx)(Be,{"data-slot":`dropdown-menu-separator`,className:N(`bg-border -mx-2 my-1.5 h-px shrink-0`,e),...t})}function Qt(e){return(0,Q.jsx)(dt,{"data-slot":`dropdown-menu-radio-group`,...e})}function $t({className:e,children:t,...n}){let{size:r,reducedMotion:i}=Rt();return(0,Q.jsxs)(mt,{"data-slot":`dropdown-menu-radio-item`,className:N(It({variant:`pill`,size:r}),Wt,`justify-between`,e),...n,children:[(0,Q.jsx)(`span`,{className:N(`flex items-center`,Gt[r]),children:t}),(0,Q.jsx)(ht,{"data-slot":`dropdown-menu-radio-item-indicator`,keepMounted:!i,className:`group/check text-foreground-intense shrink-0`,children:(0,Q.jsx)(en,{"data-icon":`end`,className:`me-0.5 size-[1.125em]`})})]})}function en({className:e,...t}){return(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,className:N(`stroke-2`,e),...t,children:(0,Q.jsx)(`path`,{d:`M4.3 12.55 L9.25 17.5 L19.7 6.5`,pathLength:1,strokeDasharray:`1 2`,className:N(`opacity-0 [stroke-dashoffset:1.02]`,`group-data-checked/check:opacity-100 group-data-checked/check:[stroke-dashoffset:0]`,`motion-safe:transition-[opacity,stroke-dashoffset] motion-safe:ease-out`,`motion-safe:delay-[0ms,150ms] motion-safe:duration-[150ms,0ms]`,`motion-safe:group-data-checked/check:delay-[0ms] motion-safe:group-data-checked/check:duration-[0ms,300ms]`)})})}export{Kt as a,$t as c,Be as d,Xt as i,Zt as l,Ut as n,qt as o,Jt as r,Qt as s,zt as t,Bt as u};

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.