Ë
    £eh¾  ã                   ó&  — d Z ddlZddlZddlZddlmZmZ ddl	m
Z
 ddl	mZ ddlmZ ddlmZmZmZmZmZmZmZ  ej.                  d	e«       g d
¢Z G d„ de«      ZeZeZeZej>                  Zej@                  Z e!Z!e"Z"e#xZ#Z$e%Z&eZ'e(Z(eZ)d„ Z*dd„Z+y)z"Python 2/3 compat layer leftovers.é    N)Úredirect_stderrÚredirect_stdout)ÚBytesIO)ÚStringIO)ÚSimpleNamespaceé   )ÚTagÚbytechrÚbyteordÚ	bytesjoinÚstrjoinÚtobytesÚtostrzeThe py23 module has been deprecated and will be removed in a future release. Please update your code.)Ú
basestringr
   r   r   r   ÚopenÚ	Py23ErrorÚrangeÚRecursionErrorÚroundr   r   r   r	   r   r   Ú	tounicodeÚunichrÚunicodeÚ	UnicodeIOÚxrangeÚzipc                   ó   — e Zd Zy)r   N)Ú__name__Ú
__module__Ú__qualname__© ó    úQ/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/fontTools/misc/py23.pyr   r   -   s   „ Ør!   r   c                  ó   — t        d«      ‚)Nz-'xrange' is not defined. Use 'range' instead.)r   )ÚargsÚkwargss     r"   r   r   A   s   € Ü
ÐCÓ
DÐDr!   c                 óB  — |€d}|dk  r5d| z  }t        | |«      \  }}||dz  k\  r
| dk\  r|dz  }t        ||z  «      S t        j                  d«      | z  }t        j                  j	                  | «      j                  |t        j                  ¬«      }t        |«      S )aØ  
    Implementation of Python 2 built-in round() function.
    Rounds a number to a given precision in decimal digits (default
    0 digits). The result is a floating point number. Values are rounded
    to the closest multiple of 10 to the power minus ndigits; if two
    multiples are equally close, rounding is done away from 0.
    ndigits may be negative.
    See Python 2 documentation:
    https://docs.python.org/2/library/functions.html?highlight=round#round
    r   é
   é   r   Ú10)Úrounding)ÚdivmodÚfloatÚ_decimalÚDecimalÚ
from_floatÚquantizeÚROUND_HALF_UP)ÚnumberÚndigitsÚexponentÚquotientÚ	remainderÚds         r"   Úround2r8   E   s°   € ð €Øˆà�‚{Ø˜7˜(Ñ#ˆÜ$ V¨XÓ6Ñˆ�)Ø˜ A™Ò%¨&°Aª+Ø˜‰MˆHÜ�X Ñ(Ó)Ð)ä×#Ñ# DÓ)¨w¨hÑ7ˆä×Ñ×'Ñ'¨Ó/×8Ñ8Øœx×5Ñ5ð 9ó 
ˆô �Q‹xˆr!   )N),Ú__doc__Údecimalr-   ÚmathÚ_mathÚwarningsÚ
contextlibr   r   Úior   r   r   Útypesr   Ú	textToolsr	   r
   r   r   r   r   r   ÚwarnÚDeprecationWarningÚ__all__ÚNotImplementedErrorr   r   Ústrr   ÚiscloseÚisfiniter   r   r   Úround3Úchrr   r   r   r   r   r8   r    r!   r"   ú<module>rK      s¦   ðÙ (ã Û Û ß 7Ý Ý $Ý !ç P× PÑ Pà €‡�ðàôò€ô4	Ð#ô 	ð  €Ø€à€
Ø
�-‰-€Ø�>‰>€Ø€Ø€ØÐ €ˆØ	€Ø
€Ø	€à€	òEôr!   