Ë
    Dü´jQ  ã                   ó2   — d Z ddlmZmZ dZdededz  fd„Zy)zæStage 1c: Pure ASCII detection (with null-separator tolerance).

Note: ``from __future__ import annotations`` is intentionally omitted because
this module is compiled with mypyc, which does not support PEP 563 string
annotations.
é    )ÚASCII_TEXT_BYTESÚDetectionResultgš™™™™™©?ÚdataÚreturnNc                 óØ   — | sy| j                  dt        «      }|st        ddd¬«      S |j                  dd«      ryt	        |«      t	        | «      z  }|t
        k  rt        ddd¬«      S y)al  Return an ASCII result if all bytes are printable ASCII plus common whitespace.

    Tolerates sparse null bytes (``\x00``) up to ``_MAX_NULL_FRACTION`` of
    the data, returning confidence 0.99 instead of 1.0 to distinguish from
    pure ASCII.

    :param data: The raw byte data to examine.
    :returns: A :class:`DetectionResult` for ASCII, or ``None``.
    NÚasciig      ð?)ÚencodingÚ
confidenceÚlanguageó    ó    g®Gáz®ï?)Ú	translater   r   ÚreplaceÚlenÚ_MAX_NULL_FRACTION)r   Ú	remainderÚnull_fractions      úT/root/workspace/ytshorts/venv/lib/python3.12/site-packages/chardet/pipeline/ascii.pyÚdetect_asciir      sm   € ñ ØØ—‘˜tÔ%5Ó6€IÙÜ¨¸CÈ$ÔOÐOà×Ñ˜ #Ô&Øä˜	“N¤S¨£YÑ.€MØÔ*Ò*Ü¨¸DÈ4ÔPÐPØr   )Ú__doc__Úchardet.pipeliner   r   r   Úbytesr   © r   r   ú<module>r      s/   ðñ÷ ?ð Ð ð�uð  °4Ñ!7ô r   