
    Eg                    @    d dl mZ d dlmZ d dlZd dlmZ d	dZd Z	dS )
    )annotations)reduceN)
get_optionreturnstrc                    t          | t          j        t          f          r"|                     t          d                    } | S )z3
    If we have bytes, decode them to unicode.
    zdisplay.encoding)
isinstancenpbytes_bytesdecoder   )ss    S/var/www/sysmax/venv/lib/python3.11/site-packages/pandas/core/computation/common.pyensure_decodedr   
   s<     !bi'(( 5HHZ 23344H    c                    	 t          j        |  S # t          $ r t          t           j        |           cY S t          $ r ddlm} ddlm} t          |           }g g }}|D ]8} ||          r|
                    |           #|
                    |           9|rK	 t          j        | }n*# t          $ r t          t           j        |           }Y nw xY w |||gz             cY S  ||          cY S w xY w)zc
    Wrapper around numpy.result_type which overcomes the NPY_MAXARGS (32)
    argument limit.
    r   )find_common_type)is_extension_array_dtype)r
   result_type
ValueErrorr   	TypeErrorpandas.core.dtypes.castr   pandas.core.dtypes.commonr   listappend)arrays_and_dtypesr   r   arr_and_dtypes	ea_dtypesnon_ea_dtypesarr_or_dtypenp_dtypes           r   result_type_manyr"      sl   
+~011 9 9 9bn&788888 + + +<<<<<<FFFFFF/00#%r=	* 	3 	3L''55 3  ....$$\2222 	<E>=9 E E E!".2CDDE##I
$:;;;;;	*****'+s?    $C4A%C4B+*C4+$CC4CC4&C43C4)r   r   )

__future__r   	functoolsr   numpyr
   pandas._configr   r   r"    r   r   <module>r(      st    " " " " " "           % % % % % %   + + + + +r   