import{_ as p}from"./extends-dGVwEr9R.js";import{r as o}from"./index-4g5l5LRQ.js";import{r as m}from"./index-zaNpaTzt.js";import{a as d}from"./index-dNGI4_9C.js";function f(){return f=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&(t[e]=a[e])}return t},f.apply(this,arguments)}const u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],x=u.reduce((t,r)=>{const a=o.forwardRef((e,n)=>{const{asChild:s,...c}=e,i=s?d:r;return o.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),o.createElement(i,p({},c,{ref:n}))});return a.displayName=`Primitive.${r}`,{...t,[r]:a}},{});function b(t,r){t&&m.flushSync(()=>t.dispatchEvent(r))}export{x as $,f as _,b as a};
