Ë
    Ã?Æi	  ã                  óz   — d Z ddlmZ ddlmZ ddl­ g d¢Zej                  Zej                  Zd
d„Z	dd„Z
dd„Zy	)at  Montenegro IBAN (International Bank Account Number).

The IBAN is used to identify bank accounts across national borders. The
Montenegro IBAN is built up of the IBAN prefix (ME) and check digits,
followed by a 3 digit bank identifier, a 13 digit account number and 2 more
check digits.

>>> validate('ME 2551 0000 0000 0623 4133')
'ME25510000000006234133'
>>> validate('ME52510000000006234132')  # incorrect national check digits
Traceback (most recent call last):
    ...
InvalidChecksum: ...
>>> validate('GR1601101050000010547023795')  # not a Montenegro IBAN
Traceback (most recent call last):
    ...
InvalidComponent: ...
é    )Úannotations)Úiban)Ú*)ÚcompactÚformatÚvalidateÚis_validc                ó   — t        | «      dz  S )z@Calculate the check digits over the provided part of the number.éa   )Úint©Únumbers    úU/var/www/html/myprovider/mon_projet_qr/lib/python3.12/site-packages/stdnum/me/iban.pyÚ	_checksumr   5   s   € äˆv‹;˜ÑÐó    c                ó    — t        j                  | d¬«      } | j                  d«      s
t        «       ‚t	        | dd «      dk7  r
t        «       ‚| S )ú8Check if the number provided is a valid Montenegro IBAN.F)Úcheck_countryÚMEé   Né   )r   r   Ú
startswithÚInvalidComponentr   ÚInvalidChecksumr   s    r   r   r   :   sJ   € ä�]‰]˜6°Ô7€FØ×Ñ˜TÔ"ÜÓ Ð Ü�˜˜�Ó Ò!ÜÓÐØ€Mr   c                óJ   — 	 t        t        | «      «      S # t        $ r Y yw xY w)r   F)Úboolr   ÚValidationErrorr   s    r   r	   r	   D   s)   € ðÜ”H˜VÓ$Ó%Ð%øÜò Ùðús   ‚ –	"¡"N)r   ÚstrÚreturnr   )r   r   r   r   )r   r   r   r   )Ú__doc__Ú
__future__r   Ústdnumr   Ústdnum.exceptionsÚ__all__r   r   r   r   r	   © r   r   ú<module>r&      s?   ðñ*õ& #å Ü ò 8€ð �,‰,€Ø	�‰€óó
ôr   