import i from "../Color.js";
i.prototype.get = function(e) {
  const [n, o] = e.split("."), r = this[n]();
  if (o) {
    const t = n.indexOf(o) - (n.substr(0, 2) === "ok" ? 2 : 0);
    if (t > -1) return r[t];
    throw new Error(`unknown channel ${o} in mode ${n}`);
  } else
    return r;
};
//# sourceMappingURL=get.js.map
