/// Convert to map
/// @param {*} $value - value to cast
/// @return {Map}
@function _sc-to-map($value) {
  @if type-of($value) == "list" {
    $map: ();

    @if length($value) > 1 {
      @for $i from 1 through length($value) {
        $map: map-merge($map, ($i: nth($value, $i)));
      }
    }

    @return $map;
  }

  @return if(type-of($value) != map, (1: $value), $value);
}
