File: //lib/python3.12/__pycache__/base64.cpython-312.pyc
�
    )!�hzP  �                   �`  � d Z ddlZddlZddlZg d�ZeefZd� Zd5d�Z	d6d�Z
d� Zd	� Zej                  d
d�      Zej                  dd
�      Zd� Zd
� ZdZdZdZdZdZi ai ad� Zd7d�Zd� Zej9                  d��      e_         d7d�Zej9                  de��      e_         d� Zej9                  d��      e_         d8d�Zej9                  dd��      e_         d� Z d8d�Z!da"da#d Z$d!Z%d9d"�Z&ddddd#�d$�Z'ddd%d&�d'�Z(d(Z)da*da+da,d8d)�Z-d*� Z.d+Z/e/d,z  d-z  Z0d.� Z1d/� Z2d0� Z3d1� Z4d2� Z5d3� Z6e7d4k(  r e6�        yy):zDBase16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodings�    N)�encode�decode�encodebytes�decodebytes�	b64encode�	b64decode�	b32encode�	b32decode�b32hexencode�b32hexdecode�	b16encode�	b16decode�	b85encode�	b85decode�	a85encode�	a85decode�standard_b64encode�standard_b64decode�urlsafe_b64encode�urlsafe_b64decodec                 �.  � t        | t        �      r	 | j                  d�      S t        | t
        �      r| S 	 t
        | �      j                  �       S # t        $ r t	        d�      �w xY w# t        $ r$ t        d| j                  j                  z  �      d �w xY w)N�asciiz4string argument should contain only ASCII charactersz>argument should be a bytes-like object or ASCII string, not %r)�
isinstance�strr   �UnicodeEncodeError�
ValueError�bytes_types�
memoryview�tobytes�	TypeError�	__class__�__name__��ss    �/usr/lib/python3.12/base64.py�_bytes_from_decode_datar&