def _parse_fasta_input(fasta: str) -> dict:
    """
        The expected input of the protein sequences are in FASTA format.
        http://genetics.bwh.harvard.edu/pph/FASTA.html
        Parse the input to retrieve the entries and sequences.

    :param fasta: the FASTA formatted string.
    :return: Return a dictionary of each entry and its corresponding sequences.
    """

    entry_dict = {}
    entries = fasta.split(">")

    for entry in entries:
        if entry == "":
            continue
        entry = entry.replace("\r", "").replace(" ", "")

        entry_split_by_newline = entry.split("\n")

        if len(entry_split_by_newline) < 1:
            continue

        entry_dict[entry_split_by_newline[0]] = "".join(entry_split_by_newline[1:])

    return entry_dict