Ë
    Ã?Æiô  ã                  óR   — d Z ddlmZ ddl­ ddlmZ ddlmZmZ d
d„Z	d
d„Z
dd„Zy	)a+  PIB (Poreski Identifikacioni Broj, Serbian tax identification number).

The Serbian tax identification number consists of 9 digits where the last
digit is a check digit.

>>> validate('101134702')
'101134702'
>>> validate('101134703')
Traceback (most recent call last):
    ...
InvalidChecksum: ...
é    )Úannotations)Ú*)Ú	mod_11_10)ÚcleanÚisdigitsc                ó6   — t        | d«      j                  «       S )zˆConvert the number to the minimal representation. This strips the
    number of any valid separators and removes surrounding whitespace.z -.)r   Ústrip©Únumbers    úT/var/www/html/myprovider/mon_projet_qr/lib/python3.12/site-packages/stdnum/rs/pib.pyÚcompactr   )   s   € ô �˜Ó×%Ñ%Ó'Ð'ó    c                ó    — t        | «      } t        | «      s
t        «       ‚t        | «      dk7  r
t	        «       ‚t        j                  | «       | S )zbCheck if the number is a valid VAT number. This checks the length,
    formatting and check digit.é	   )r   r   ÚInvalidFormatÚlenÚInvalidLengthr   Úvalidater
   s    r   r   r   /   sD   € ô �V‹_€FÜ�FÔÜ‹oÐÜ
ˆ6ƒ{�aÒÜ‹oÐÜ×Ñ�vÔØ€Mr   c                óJ   — 	 t        t        | «      «      S # t        $ r Y yw xY w)z*Check if the number is a valid VAT number.F)Úboolr   ÚValidationErrorr
   s    r   Úis_validr   ;   s)   € ðÜ”H˜VÓ$Ó%Ð%øÜò Ùðús   ‚ –	"¡"N)r   ÚstrÚreturnr   )r   r   r   r   )Ú__doc__Ú
__future__r   Ústdnum.exceptionsÚstdnum.iso7064r   Ústdnum.utilr   r   r   r   r   © r   r   ú<module>r!      s'   ðñ*õ #ä Ý $ß 'ó(ó	ôr   