(function(){functiona(d){varc,b,e,f;if("[object String]"===Object.prototype.toString.call(d)||"[object Number]"===Object.prototype.toString.call(d))c=a.parse(d);else{if(m(d))throwError("Unsure how to parse array `"+d+"`, please pass an object or CSS style or try Chromath.rgb, Chromath.hsl, or Chromath.hsv");dinstanceofa?c=k({},d):n(d)&&(c=k({},d))}if(c)isFinite(c.a)||(c.a=1);elsethrowError("Could not parse `"+d+"`");if("r"inc)f=[c.r,c.g,c.b],b=a.rgb2hsl(f),e=a.rgb2hsv(f);elseif("h"inc)if("l"in
arguments.length-2,c=-1,b,e;c++<d;)b=b||newa(arguments[c]),e=newa(arguments[c+1]),b.r=b.r+e.r>>1,b.g=b.g+e.g>>1,b.b=b.b+e.b>>1,b=newa(b);returnb};a.overlay=function(d,c,b){d=newa(d);c=newa(c);1<b&&(b/=100);b=h(b-1+c.a,0,1);returnnewa({r:l(d.r,c.r,b),g:l(d.g,c.g,b),b:l(d.b,c.b,b)})};a.towards=function(d,c,b,e){if(!c)returnd;if(!isFinite(b))throwError("TypeError: `by`("+b+") should be between 0 and 1");dinstanceofa||(d=newa(d));cinstanceofa||(c=newa(c||"#FFFFFF"));e||(e=l);b=parseFloat(b);