"use strict";const y=require("react");require("react-dom");const g=require("./index-_XxjJPRD.js"),f=require("react/jsx-runtime");function S(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=S(y);function d(e){const t=b(e),r=o.forwardRef((n,i)=>{const{children:l,...c}=n,s=o.Children.toArray(l),a=s.find(C);if(a){const u=a.props.children,m=s.map(p=>p===a?o.Children.count(u)>1?o.Children.only(null):o.isValidElement(u)?u.props.children:null:p);return f.jsx(t,{...c,ref:i,children:o.isValidElement(u)?o.cloneElement(u,void 0,m):null})}return f.jsx(t,{...c,ref:i,children:l})});return r.displayName=`${e}.Slot`,r}function b(e){const t=o.forwardRef((r,n)=>{const{children:i,...l}=r;if(o.isValidElement(i)){const c=P(i),s=E(l,i.props);return i.type!==o.Fragment&&(s.ref=n?g.composeRefs(n,c):c),o.cloneElement(i,s)}return o.Children.count(i)>1?o.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var v=Symbol("radix.slottable");function C(e){return o.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===v}function E(e,t){const r={...t};for(const n in t){const i=e[n],l=t[n];/^on[A-Z]/.test(n)?i&&l?r[n]=(...s)=>{l(...s),i(...s)}:i&&(r[n]=i):n==="style"?r[n]={...i,...l}:n==="className"&&(r[n]=[i,l].filter(Boolean).join(" "))}return{...e,...r}}function P(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var R=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],h=R.reduce((e,t)=>{const r=d(`Primitive.${t}`),n=o.forwardRef((i,l)=>{const{asChild:c,...s}=i,a=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...s,ref:l})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});exports.Primitive=h;exports.createSlot=d;
//# sourceMappingURL=index-Hk_HrrHM.js.map
