const c=function(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`).toLowerCase()},f=function(n){return/[heigt|wd]$/.test(n)},s=function(n){let t="";const r=Object.keys(n);return r.forEach((e,i)=>{let o=n[e];e=c(e),f(e)&&typeof o=="number"&&(o=`${o}px`),o===!0?t+=e:o===!1?t+=`not ${e}`:t+=`(${e}: ${o})`,i<r.length-1&&(t+=" and ")}),t};function l(n){let t="";return typeof n=="string"?n:Array.isArray(n)?(n.forEach((r,e)=>{t+=s(r),e<n.length-1&&(t+=", ")}),t):s(n)}export{l as default};
