ó
    ÷Þ j`  ã                  óJ   • S SK Jr  S SKJr  SSKJrJr  S	S jrS
S jrSS jr	g)é    )Úannotations)ÚAnyé   )ÚdecodeÚencodec                ó   • [        U 5      $ )aK  Compatibility shim for :rfc:`3490` ``ToASCII``.

Delegates to :func:`idna.encode` (IDNA 2008). Provided to ease porting
of code written against the legacy :mod:`encodings.idna` API; new code
should call :func:`idna.encode` directly.

:param label: The label or domain to encode.
:returns: The encoded form as ASCII :class:`bytes`.
)r   ©Úlabels    ÚE/var/www/html/gaurav/venv/lib/python3.13/site-packages/idna/compat.pyÚToASCIIr      ó   € ô �%‹=Ðó    c                ó   • [        U 5      $ )a=  Compatibility shim for :rfc:`3490` ``ToUnicode``.

Delegates to :func:`idna.decode` (IDNA 2008). Provided to ease porting
of code written against the legacy :mod:`encodings.idna` API; new code
should call :func:`idna.decode` directly.

:param label: The label or domain to decode.
:returns: The decoded Unicode form.
)r   r	   s    r   Ú	ToUnicoder      r   r   c                ó   • [        S5      e)a   Stub for :rfc:`3491` Nameprep, which is not used by IDNA 2008.

IDNA 2008 (:rfc:`5891`) replaces Nameprep with the per-codepoint
validity classes from :rfc:`5892`; this function exists only to
return a clear error if legacy code attempts to call it.

:raises NotImplementedError: Always.
z,IDNA 2008 does not utilise nameprep protocol)ÚNotImplementedError)Úss    r   Únameprepr   "   s   € ô ÐLÓ
MÐMr   N)r
   ÚstrÚreturnÚbytes)r
   zbytes | bytearrayr   r   )r   r   r   ÚNone)
Ú
__future__r   Útypingr   Úcorer   r   r   r   r   © r   r   Ú<module>r      s   ðÝ "å ç  ô
ô
õ	Nr   