
    (ph	                     d    S r SSKrSSKJr  SSKJr  S\S\4S jrS\R                  S\SS4S	 jrg)
z-Helper functions for commonly used utilities.    N)Any)_helpersresponsereturnc                 d   #     U R                  5       I Sh  vN nU$  N! [         a     gf = f7f)a  
Parses an async response, attempting to decode JSON.

Args:
    response: The response object to parse. This can be any type, but
        it is expected to have a `json()` method if it contains JSON.

Returns:
    The parsed response. If the response contains valid JSON, the
    decoded JSON object (e.g., a dictionary) is returned.
    If the response does not have a `json()` method or if the JSON
    decoding fails, None is returned.
N)json	Exception)r   json_responses     K/var/www/html/venv/lib/python3.13/site-packages/google/auth/aio/_helpers.py_parse_response_asyncr      s6     &mmo- .  s(   0    0  
-0-0loggerc                 t   #    [         R                  " U 5      (       a  Sn[         R                  " X5        gg7f)z
Logs an Async HTTP response at the DEBUG level if logging is enabled.

Args:
    logger: The logging.Logger instance to use.
    response: The HTTP response object to log.
N)r   is_logging_enabled_response_log_base)r   r   r
   s      r   response_log_asyncr   /   s2      ""6** ##F: +s   68)	__doc__loggingtypingr   google.authr   r   Loggerr        r   <module>r      sF    4    # # .;W^^ ;s ;t ;r   