Ë
    Ã?Æi�	  ã                  óF   — d Z ddlmZ ddl­ ddlmZmZ d	d„Zd	d„Zd
d„Z	y)aº  
Veronumero (Finnish individual tax number).

The Veronumero an individual tax number that is assigned to workers in the
construction industry in Finland. The number is separate from the HETU and is
a 12 digit number without any embedded information such as birth dates.

More information:

* https://www.vero.fi/en/detailed-guidance/guidance/48791/individual_tax_numbers__instructions_fo/
* https://prosentti.vero.fi/Veronumerorekisteri/Tarkistus/VeronumeronTarkistus.aspx

>>> validate('123456789123')
'123456789123'
>>> validate('12345678912A')
Traceback (most recent call last):
    ...
InvalidFormat: ...
>>> validate('123456789')
Traceback (most recent call last):
    ...
InvalidLength: ...
é    )Úannotations)Ú*)ÚcleanÚisdigitsc                ó6   — t        | d«      j                  «       S )ztConvert the Veronumero to the minimal representation. This strips
    surrounding whitespace and removes separators.ú )r   Ústrip©Únumbers    ú[/var/www/html/myprovider/mon_projet_qr/lib/python3.12/site-packages/stdnum/fi/veronumero.pyÚcompactr   4   s   € ô �˜Ó×#Ñ#Ó%Ð%ó    c                óv   — t        | «      } t        | «      s
t        «       ‚t        | «      dk7  r
t	        «       ‚| S )zUCheck if the number is a valid tax number. This checks the length and
    formatting.é   )r   r   ÚInvalidFormatÚlenÚInvalidLengthr
   s    r   Úvalidater   :   s6   € ô �V‹_€FÜ�FÔÜ‹oÐÜ
ˆ6ƒ{�bÒÜ‹oÐà€Mr   c                óJ   — 	 t        t        | «      «      S # t        $ r Y yw xY w)z*Check if the number is a valid tax number.F)Úboolr   ÚValidationErrorr
   s    r   Úis_validr   F   s)   € ðÜ”H˜VÓ$Ó%Ð%øÜò Ùðús   ‚ –	"¡"N)r   ÚstrÚreturnr   )r   r   r   r   )
Ú__doc__Ú
__future__r   Ústdnum.exceptionsÚstdnum.utilr   r   r   r   r   © r   r   ú<module>r       s$   ðñ,õ0 #ä ß 'ó&ó	ôr   