import{s as b}from"./chunk-LvLJmgfZ.js";import{t as v}from"./react-Bj1aDYRI.js";import{t as m}from"./emotion-is-prop-valid.esm-C59xfSYt.js";var O=function(){let r=Array.prototype.slice.call(arguments).filter(Boolean),e={},a=[];r.forEach(s=>{(s?s.split(" "):[]).forEach(l=>{if(l.startsWith("atm_")){let[,o]=l.split("_");e[o]=l}else a.push(l)})});let t=[];for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.push(e[s]);return t.push(...a),t.join(" ")},f=b(v(),1),x=r=>r.toUpperCase()===r,R=r=>e=>r.indexOf(e)===-1,_=(r,e)=>{let a={};return Object.keys(r).filter(R(e)).forEach(t=>{a[t]=r[t]}),a};function g(r,e,a){let t=_(e,a);if(!r){let s=typeof m=="function"?{default:m}:m;Object.keys(t).forEach(l=>{s.default(l)||delete t[l]})}return t}function k(r){return e=>{let a=(s,l)=>{let{as:o=r,class:y=""}=s,n=g(e.propsAsIs===void 0?!(typeof o=="string"&&o.indexOf("-")===-1&&!x(o[0])):e.propsAsIs,s,["as","class"]);n.ref=l,n.className=e.atomic?O(e.class,n.className||y):O(n.className||y,e.class);let{vars:c}=e;if(c){let p={};for(let i in c){let E=c[i],u=E[0],j=E[1]||"",N=typeof u=="function"?u(s):u;e.name,p[`--${i}`]=`${N}${j}`}let d=n.style||{},h=Object.keys(d);h.length>0&&h.forEach(i=>{p[i]=d[i]}),n.style=p}return r.__linaria&&r!==o?(n.as=o,f.createElement(r,n)):f.createElement(o,n)},t=f.forwardRef?f.forwardRef(a):s=>a(_(s,["innerRef"]),s.innerRef);return t.displayName=e.name,t.__linaria={className:e.class||"",extends:r},t}}var w=k;export{w as t};
