const g = 220, h = 36, s = {
  x: 110,
  y: 110
}, r = {
  x: s.x,
  y: 0
}, O = r.x - s.x, _ = r.y - s.y, d = (t) => t * (180 / Math.PI), C = (t, a, o) => {
  const c = a - s.x, n = o - s.y, e = Math.atan2(O, _) - Math.atan2(c, n);
  let l = d(e);
  l = Math.round(l / t) * t, l %= 360;
  const u = Math.floor(l / t) || 0, x = c ** 2 + n ** 2, H = Math.sqrt(x);
  return {
    value: u,
    distance: H
  };
}, y = (t, a, o = 1) => {
  const c = o * 6;
  let {
    value: n
  } = C(c, t, a);
  return n = n * o % 60, n;
}, I = (t, a, o) => {
  const {
    value: c,
    distance: n
  } = C(30, t, a);
  let e = c || 12;
  return o ? e %= 12 : n < 220 / 2 - 36 && (e += 12, e %= 24), e;
};
export {
  h as CLOCK_HOUR_WIDTH,
  g as CLOCK_WIDTH,
  I as getHours,
  y as getMinutes
};
