o
     Th                     @  s   d dl mZ d dlmZ ddlmZ ddlmZ er ddlmZ zddlm	Z	m
Z
mZmZmZmZmZmZmZmZ W n eyU   ddlmZmZmZmZmZmZmZ Y nw d	ZeZdddZdddZdddZdddZdddZdddZdS )     )annotations)TYPE_CHECKING   _license)_version)Buffer)
_get_simd_flags_compile_get_simd_flags_runtime_get_simd_name_get_simd_path_set_simd_path	b64decodeb64decode_as_bytearray	b64encodeb64encode_as_stringencodebytes)r   r   r   r   r   r   r   )	r   r   r   r   r   standard_b64decodestandard_b64encodeurlsafe_b64decodeurlsafe_b64encodereturnstrc                   C  s   t S )zReturns pybase64 license information as a :class:`str` object.

    The result includes libbase64 license information as well.
    r    r   r   R/home/air/segue/gemini/back/venv/lib/python3.10/site-packages/pybase64/__init__.pyget_license_text3   s   r   c                  C  s,   t t } | dkrt d|  dS t dS )zReturns pybase64 version as a :class:`str` object.

    The result reports if the C extension is used or not.
    e.g. `1.0.0 (C extension active - AVX2)`
    fallbackz (C extension active - )z (C extension inactive))r   r   __version__)	simd_namer   r   r   get_version;   s   

r    sr   bytesc                 C     t | S )zEncode bytes using the standard Base64 alphabet.

    Argument ``s`` is a :term:`bytes-like object` to encode.

    The result is returned as a :class:`bytes` object.
    r   r!   r   r   r   r   G   s   r   str | Bufferc                 C  r#   )au  Decode bytes encoded with the standard Base64 alphabet.

    Argument ``s`` is a :term:`bytes-like object` or ASCII string to
    decode.

    The result is returned as a :class:`bytes` object.

    A :exc:`binascii.Error` is raised if the input is incorrectly padded.

    Characters that are not in the standard alphabet are discarded prior
    to the padding check.
    r   r%   r   r   r   r   Q   s   r   c                 C  
   t | dS )zEncode bytes using the URL- and filesystem-safe Base64 alphabet.

    Argument ``s`` is a :term:`bytes-like object` to encode.

    The result is returned as a :class:`bytes` object.

    The alphabet uses '-' instead of '+' and '_' instead of '/'.
       -_r$   r%   r   r   r   r   a   s   
	r   c                 C  r(   )a  Decode bytes using the URL- and filesystem-safe Base64 alphabet.

    Argument ``s`` is a :term:`bytes-like object` or ASCII string to
    decode.

    The result is returned as a :class:`bytes` object.

    A :exc:`binascii.Error` is raised if the input is incorrectly padded.

    Characters that are not in the URL-safe base-64 alphabet, and are not
    a plus '+' or slash '/', are discarded prior to the padding check.

    The alphabet uses '-' instead of '+' and '_' instead of '/'.
    r)   r'   r%   r   r   r   r   m   s   
r   N)r   r   )r!   r   r   r"   )r!   r&   r   r"   )
__future__r   typingr   r   r   _typingr   	_pybase64r	   r
   r   r   r   r   r   r   r   r   ImportError	_fallback__all__r   r   r    r   r   r   r   r   r   r   r   <module>   s&    4(





