"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../node_modules/.pnpm/@ctrl_tinycolor@3.6.1/node_modules/@ctrl/tinycolor/dist/module/index.js");function r(n){return n>=0&&n<=255}function h(n,l){const{r:e,g:i,b:u,a:s}=new o.TinyColor(n).toRgb();if(s<1)return n;const{r:f,g:c,b:d}=new o.TinyColor(l).toRgb();for(let t=.01;t<=1;t+=.01){const a=Math.round((e-f*(1-t))/t),b=Math.round((i-c*(1-t))/t),g=Math.round((u-d*(1-t))/t);if(r(a)&&r(b)&&r(g))return new o.TinyColor({r:a,g:b,b:g,a:Math.round(t*100)/100}).toRgbString()}return new o.TinyColor({r:e,g:i,b:u,a:1}).toRgbString()}exports.default=h;
