/*!
 * (C) Gasco https://gasco-web-component.herokuapp.com/ - MIT License
 */
const o=(o,c)=>null!==c.closest(o),c=o=>{const c={};return(o=>void 0!==o?(Array.isArray(o)?o:o.split(" ")).filter((o=>null!=o)).map((o=>o.trim())).filter((o=>""!==o)):[])(o).forEach((o=>c[o]=!0)),c},r=(o,c)=>"string"==typeof o&&o.length>0?Object.assign({"gasco-color":!0,[`gasco-color-${o}`]:!0},c):c;export{r as c,c as g,o as h}