
    PIi                         d dl Z d Zy)    Nc                    t        | t        j                  t        j                  f      s#t	        dj                  t        |                   t        | t        j                        r@t        j                  r$t        j                  |       j                  d      n
t        |       } n!t        | t              s| j                  d      } t        j                  j                  j                  j                  |       S )a  Quote a string that will be placed in url.
    If the string is unicode, we encode it
    to utf-8 before using `urllib.parse.quote`.
    In case it's not a string (an int for instance),
    we still try to convert it.

    Args:
            val: The string to be properly encoded.
    zCannot encode {} type.zutf-8)
isinstancesixinteger_typesstring_types
ValueErrorformattypePY3	text_typeencodebytesmovesurllibparsequote)vals    j/var/www/webhook.estador.de/web/meta/bot/venv/lib/python3.12/site-packages/facebook_business/utils/urls.pyquote_with_encodingr   
   s     cC--s/?/?@A188cCDD #s(()47GGcmmC ''0s U#jj!99!!'',,    )r   r    r   r   <module>r      s    -r   