import{isString as t,singleColorRegex as r,floatRegex as a}from"../utils.js";var o=function(a,o){return function(e){return t(e)&&r.test(e)&&e.startsWith(a)||o&&Object.prototype.hasOwnProperty.call(e,o)}},e=function(r,o,e){return function(n){var p;if(!t(n))return n;var s=n.match(a),u=s[0],i=s[1],l=s[2],c=s[3];return(p={})[r]=parseFloat(u),p[o]=parseFloat(i),p[e]=parseFloat(l),p.alpha=void 0!==c?parseFloat(c):1,p}};export{o as isColorString,e as splitColor};
//# sourceMappingURL=utils.js.map
