Ë
    —Vf<  ã                   ó8   — d dl mZ d dlmZmZ d„ Zd„ Zd„ Zd„ Zy)é    )Ú	b64encode)Úbuiltin_strÚis_py2c                 óv   — t        | t        «      r| S t        r| j                  |«      S | j	                  |«      S )N)Ú
isinstancer   r   ÚencodeÚdecode)ÚstringÚencodings     ú_/var/www/html/software/conda/envs/catlas/lib/python3.12/site-packages/chart_studio/api/utils.pyÚ_to_native_stringr      s2   € Ü&œ+Ô&ØˆÝØ}‰}˜XÓ&Ð&Ø=‰=˜Ó"Ð"ó    c                 ó   — t        | d«      S )Nzutf-8©r   ©r
   s    r   Úto_native_utf8_stringr      ó   € Ü˜V WÓ-Ð-r   c                 ó   — t        | d«      S )NÚasciir   r   s    r   Úto_native_ascii_stringr      r   r   c           	      óò   — t        | t        «      r| j                  d«      } t        |t        «      r|j                  d«      }dt        t	        dj                  | |f«      «      j                  «       «      z   S )aE  
    Creates the basic auth value to be used in an authorization header.

    This is mostly copied from the requests library.

    :param (str) username: A Plotly username.
    :param (str) password: The password for the given Plotly username.
    :returns: (str) An 'authorization' header for use in a request header.

    Úlatin1zBasic ó   :)r   Ústrr   r   r   ÚjoinÚstrip)ÚusernameÚpasswords     r   Ú
basic_authr      sh   € ô (œCÔ Ø—?‘? 8Ó,ˆä(œCÔ Ø—?‘? 8Ó,ˆàÔ,Ü$—)‘)˜X xÐ0Ó1Ó2×8Ñ8Ó:óñ ð r   N)	Úbase64r   Úrequests.compatr   r   r   r   r   r   © r   r   ú<module>r#      s   ðÝ ç /ò#ò.ò.ór   