Ë
    Ã?Æ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�  PEID (Liechtenstein tax code for individuals and entities).

The Personenidentifikationsnummer (PEID) is an numeric code up to 12 digits
used to identify entities and individuals residing in Liechtenstein.

More information:

* https://www.oera.li/
* https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistance/tax-identification-numbers/LIECHTENSTEIN%20TIN.pdf

>>> compact('00001234567')
'1234567'
>>> validate('1234567')  # personal number or entity number
'1234567'
>>> validate('00001234567')
'1234567'
>>> validate('00001234568913454545')
Traceback (most recent call last):
    ...
InvalidLength: The number has an invalid length.
é    )Úannotations)Ú*)ÚcleanÚisdigitsc                óT   — t        | d«      j                  «       j                  d«      S )zˆConvert the number to the minimal representation. This strips the
    number of any valid separators and removes surrounding whitespace.z .Ú0)r   ÚstripÚlstrip©Únumbers    úU/var/www/html/myprovider/mon_projet_qr/lib/python3.12/site-packages/stdnum/li/peid.pyÚcompactr   0   s%   € ô �˜Ó×$Ñ$Ó&×-Ñ-¨cÓ2Ð2ó    c                ó’   — t        | «      } t        | «      dk  st        | «      dkD  r
t        «       ‚t        | «      s
t	        «       ‚| S )ú(Check if the given fiscal code is valid.é   é   )r   ÚlenÚInvalidLengthr   ÚInvalidFormatr   s    r   Úvalidater   6   s>   € ä�V‹_€FÜ
ˆ6ƒ{�Q‚œ#˜f›+¨Ò*Ü‹oÐÜ�FÔÜ‹oÐà€Mr   c                óJ   — 	 t        t        | «      «      S # t        $ r Y yw xY w)r   F)Úboolr   ÚValidationErrorr   s    r   Úis_validr   A   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$   ðñ(õ, #ä ß 'ó3óôr   