import{c as e}from"./security-CTzQb9Ko.js";import{$i as t,Qi as n,a as r}from"./bundle-mjs-lcbR1pPJ.js";import{K as i}from"./dist-C0UdmnhX.js";var a=e(t(),1);i();var o=e(n(),1),s=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=r(`Primitive.${t}`),i=a.forwardRef((e,r)=>{let{asChild:i,...a}=e,s=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,o.jsx)(s,{...a,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),c=`Label`,l=a.forwardRef((e,t)=>(0,o.jsx)(s.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName=c;var u=l;export{u as t};