"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.checkIsExtraColoredCard = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
require("core-js/modules/es.array.includes.js");
require("core-js/modules/es.string.includes.js");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var ONE_CARDS = '1';
var TWO_CARDS = '2';
var THREE_CARDS = '3';
var FOUR_CARDS = '4';
var FIVE_CARDS = '5';
var SIX_CARDS = '6';
var FIRST_CARD_INDEX = 0;
var THIRD_CARD_INDEX = 2;
var FOURTH_CARD_INDEX = 3;
var FIFTH_CARD_INDEX = 4;
var INDEXES_MAP = (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, ONE_CARDS, [FIRST_CARD_INDEX]), TWO_CARDS, [FIRST_CARD_INDEX]), THREE_CARDS, [FIRST_CARD_INDEX]), FOUR_CARDS, [FIRST_CARD_INDEX, FOURTH_CARD_INDEX]), FIVE_CARDS, [FIRST_CARD_INDEX, FIFTH_CARD_INDEX]), SIX_CARDS, [FIRST_CARD_INDEX, THIRD_CARD_INDEX, FIFTH_CARD_INDEX]);
var checkIsExtraColoredCard = exports.checkIsExtraColoredCard = function checkIsExtraColoredCard(index, total) {
  var _a;
  var indexes = (_a = INDEXES_MAP[String(total)]) !== null && _a !== void 0 ? _a : INDEXES_MAP[SIX_CARDS];
  return indexes.includes(index);
};