Ë
    Ã?Æi¶	  ã                  óv   — d Z ddlmZ ddlZddl­ ddlmZ  ej                  d«      Zdd„Z	dd„Z
dd	„Zdd
„Zy)aú  ATIN (U.S. Adoption Taxpayer Identification Number).

An Adoption Taxpayer Identification Number (ATIN) is a temporary
nine-digit number issued by the United States IRS for a child for whom the
adopting parents cannot obtain a Social Security Number.

>>> validate('123-45-6789')
'123456789'
>>> validate('1234-56789')  # dash in the wrong place
Traceback (most recent call last):
    ...
InvalidFormat: ...
>>> format('123456789')
'123-45-6789'
>>> format('123')  # unknown formatting is left alone
'123'
é    )ÚannotationsN)Ú*)Úcleanz^[0-9]{3}-?[0-9]{2}-?[0-9]{4}$c                ó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.ú-)r   Ústrip©Únumbers    úU/var/www/html/myprovider/mon_projet_qr/lib/python3.12/site-packages/stdnum/us/atin.pyÚcompactr   2   s   € ô �˜Ó×#Ñ#Ó%Ð%ó    c                óŠ   — t         j                  t        | d«      j                  «       «      }|s
t	        «       ‚t        | «      S )z`Check if the number is a valid ATIN. This checks the length and
    formatting if it is present.Ú )Ú_atin_reÚsearchr   r   ÚInvalidFormatr   )r
   Úmatchs     r   Úvalidater   8   s7   € ô �O‰OœE &¨"Ó-×3Ñ3Ó5Ó6€EÙÜ‹oÐä�6‹?Ðr   c                óJ   — 	 t        t        | «      «      S # t        $ r Y yw xY w)z$Check if the number is a valid ATIN.F)Úboolr   ÚValidationErrorr	   s    r   Úis_validr   B   s)   € ðÜ”H˜VÓ$Ó%Ð%øÜò Ùðús   ‚ –	"¡"c                óP   — t        | «      dk(  r| dd dz   | dd z   dz   | dd z   } | S )z8Reformat the number to the standard presentation format.é	   Né   r   é   )Úlenr	   s    r   Úformatr   J   s>   € ä
ˆ6ƒ{�aÒØ˜˜�˜cÑ! F¨1¨Q KÑ/°#Ñ5¸¸q¸r¸
ÑBˆØ€Mr   )r
   ÚstrÚreturnr   )r
   r   r    r   )Ú__doc__Ú
__future__r   ÚreÚstdnum.exceptionsÚstdnum.utilr   Úcompiler   r   r   r   r   © r   r   ú<module>r(      s?   ðñ(õ$ #ã 	ä Ý ð ˆ2�:‰:Ð7Ó8€ó&óóôr   