Hacked By AnonymousFox
�
c��f% � � � d Z ddlZdd�Zdd�Z G d� dej � � Z G d� d ej � � Z G d
� dej � � Z G d� d
ej � � Zd� Z dS )a Python 'utf-8-sig' Codec
This work similar to UTF-8 with the following changes:
* On encoding/writing a UTF-8 encoded BOM will be prepended/written as the
first three bytes.
* On decoding/reading if the first three bytes are a UTF-8 encoded BOM, these
bytes will be skipped.
� N�strictc �p � t j t j | |� � d z t | � � fS �Nr )�codecs�BOM_UTF8�utf_8_encode�len)�input�errorss �:/opt/alt/python311/lib64/python3.11/encodings/utf_8_sig.py�encoder
s1 � ��O�f�1�%��@�@��C�C���J�J�� � c � � d}| d d� t j k r| dd � } d}t j | |d� � \ }}|||z fS )Nr � T)r r �utf_8_decode)r
r �prefix�output�consumeds r �decoder sV � �
�F��R�a�R�y�F�O�#�#��a�b�b� �����,�U�F�D�A�A��V�X��H�V�O�$�$r c �0 � e Zd Zd d�Zd
d�Zd� Zd� Zd� ZdS )�IncrementalEncoderr c �T � t j � | |� � d| _ d S �N� )r r �__init__�first��selfr s r r zIncrementalEncoder.__init__ s&