Ë
    3^(hÕ  ã                   ó   — dd„Z d„ Zy)Úprintc                 ój   ‡ ‡‡‡‡— ‰sd„ Šn‰dk(  rdgŠˆfd„Š‰sd„ Šn‰dk(  rdgŠˆfd„Šˆ ˆˆfd„}|S )az  
    Returns a wrapped copy of *f* that monitors evaluation by calling
    *input* with every input (*args*, *kwargs*) passed to *f* and
    *output* with every value returned from *f*. The default action
    (specify using the special string value ``'print'``) is to print
    inputs and outputs to stdout, along with the total evaluation
    count::

        >>> from mpmath import *
        >>> mp.dps = 5; mp.pretty = False
        >>> diff(monitor(exp), 1)   # diff will eval f(x-h) and f(x+h)
        in  0 (mpf('0.99999999906867742538452148'),) {}
        out 0 mpf('2.7182818259274480055282064')
        in  1 (mpf('1.0000000009313225746154785'),) {}
        out 1 mpf('2.7182818309906424675501024')
        mpf('2.7182808')

    To disable either the input or the output handler, you may
    pass *None* as argument.

    Custom input and output handlers may be used e.g. to store
    results for later analysis::

        >>> mp.dps = 15
        >>> input = []
        >>> output = []
        >>> findroot(monitor(sin, input.append, output.append), 3.0)
        mpf('3.1415926535897932')
        >>> len(input)  # Count number of evaluations
        9
        >>> print(input[3]); print(output[3])
        ((mpf('3.1415076583334066'),), {})
        8.49952562843408e-5
        >>> print(input[4]); print(output[4])
        ((mpf('3.1415928201669122'),), {})
        -1.66577118985331e-7

    c                  ó   — y ©N© ©Úvs    úN/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/mpmath/usertools.pyú<lambda>zmonitor.<locals>.<lambda>*   ó   � ó    r   é    c                 óX   •— | \  }}t        d‰d   ›d|›d|›�«       ‰dxx   dz  cc<   y )Nzin  r   ú é   ©r   )ÚvalueÚargsÚkwargsÚincounts      €r	   Úinputzmonitor.<locals>.input-   s,   ø€ Ø ‰LˆD�&Ý G¨A£J²±fÐ=Ô>Ø�A‹J˜!‰OŒJr   c                  ó   — y r   r   r   s    r	   r
   zmonitor.<locals>.<lambda>2   r   r   c                 óH   •— t        d‰d   ›d| ›�«       ‰dxx   dz  cc<   y )Nzout r   r   r   r   )r   Úoutcounts    €r	   Úoutputzmonitor.<locals>.output5   s"   ø€ Ý ¨!£©eÐ4Ô5Ø�Q‹K˜1ÑŒKr   c                  ó<   •—  ‰| |f«        ‰| i |¤Ž} ‰|«       |S r   r   )r   r   r   Úfr   r   s      €€€r	   Úf_monitoredzmonitor.<locals>.f_monitored8   s*   ø€ Ùˆt�VˆnÔÙˆtÐ�vÑˆÙˆqŒ	Øˆr   r   )r   r   r   r   r   r   s   ``` @@r	   Úmonitorr      sM   ü€ ñN Ù‰Ø	�'Ò	Ø�#ˆô	ñ Ù‰Ø	�7Ò	Ø�3ˆô	öð
 Ðr   c                 óÐ  ‡ ‡‡‡— ‰j                  d«      }d‰v r‰d= ‰s‰r$t        ‰«      dk(  r‰s‰d   Šˆˆ fd„}n
ˆˆ ˆfd„}n‰ }ddlm}  |«       } |«       } |«       }||z
  }	|	dkD  s|r|	S t	        d«      D ]h  }
 |«       } |«         |«         |«         |«         |«         |«         |«         |«         |«         |«         |«       }t        |	||z
  d	z  «      }	Œj |	S )
zò
    Returns time elapsed for evaluating ``f()``. Optionally arguments
    may be passed to time the execution of ``f(*args, **kwargs)``.

    If the first call is very quick, ``f`` is called
    repeatedly and the best time is returned.
    Úoncer   r   c                  ó   •—  ‰‰ «      S r   r   )Úargr   s   €€r	   r
   ztiming.<locals>.<lambda>M   s   ø€ ™˜#›€ r   c                  ó   •—  ‰‰ i ‰¤ŽS r   r   )r   r   r   s   €€€r	   r
   ztiming.<locals>.<lambda>O   s   ø€ ™˜4Ð* 6Ñ*€ r   )Údefault_timergš™™™™™©?é   é
   )ÚgetÚlenÚtimeitr$   ÚrangeÚmin)r   r   r   r    ÚgÚclockÚt1r   Út2ÚtÚir"   s   ```        @r	   Útimingr2   ?   sß   û€ ð �:‰:�fÓ€DØ�ÑØ�6ˆNÙ‰vÜˆt‹9˜Š>¡&Ø�q‘'ˆCÜ‰Aå*‰AàˆÝ-Ùƒw€B‘!“#�™%›'�r R¨¡U 1Øˆ4‚x‘4ØˆÜ�1‹Xò ˆÙ‹7ˆñ 	
Œ‰AŒC‘”‘A”C™œ™AœC¡¤¡A¤C©¬©A¬CÙ‹7ˆÜ
ˆa��B‘˜‘
Ó
‰ðð €Hr   N)r   r   )r   r2   r   r   r	   ú<module>r3      s   ðó;ózr   