import{_ as o}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-e1338cfd.js";import{i as g}from"./isHostComponent-73d6e646.js";import{h as v}from"./styled-6f3628cf.js";function O(n,s,e){return n===void 0||g(n)?s:o({},s,{ownerState:o({},s.ownerState,e)})}function p(n,s=[]){if(n===void 0)return{};const e={};return Object.keys(n).filter(t=>t.match(/^on[A-Z]/)&&typeof n[t]=="function"&&!s.includes(t)).forEach(t=>{e[t]=n[t]}),e}function P(n,s,e){return typeof n=="function"?n(s,e):n}function y(n){if(n===void 0)return{};const s={};return Object.keys(n).filter(e=>!(e.match(/^on[A-Z]/)&&typeof n[e]=="function")).forEach(e=>{s[e]=n[e]}),s}function k(n){const{getSlotProps:s,additionalProps:e,externalSlotProps:t,externalForwardedProps:l,className:u}=n;if(!s){const f=v(e==null?void 0:e.className,u,l==null?void 0:l.className,t==null?void 0:t.className),m=o({},e==null?void 0:e.style,l==null?void 0:l.style,t==null?void 0:t.style),a=o({},e,l,t);return f.length>0&&(a.className=f),Object.keys(m).length>0&&(a.style=m),{props:a,internalRef:void 0}}const h=p(o({},l,t)),N=y(t),S=y(l),r=s(h),d=v(r==null?void 0:r.className,e==null?void 0:e.className,u,l==null?void 0:l.className,t==null?void 0:t.className),c=o({},r==null?void 0:r.style,e==null?void 0:e.style,l==null?void 0:l.style,t==null?void 0:t.style),i=o({},r,e,S,N);return d.length>0&&(i.className=d),Object.keys(c).length>0&&(i.style=c),{props:i,internalRef:r.ref}}export{O as a,p as e,k as m,P as r};
