function arrayMaskToRegExpMask(arrayMask, maskReplacers = defaultMaskReplacers) {
  const flattenedMask = arrayMask
    .map((part) => {
      if (part instanceof RegExp) {
        return part;
      }
      if (typeof part === 'string') {
        return part.split('');
      }
      return null;
    })
    .filter(Boolean)
    .reduce((mask, part) => mask.concat(part), []);

  return maskToRegExpMask(flattenedMask, maskReplacers);
}
Converts mask from `v-mask` array format to `text-mask-core` format
@param {Array.<string|RegExp>} arrayMask
@param {MaskReplaces} maskReplacers
@return {RegExp[]}