
    aDgU                    h    d dl mZ d dlmZmZ d dlmZ d dlZd dlZddl	m
Z
 	 	 d	 	 	 	 	 	 	 	 	 d	dZy)
    )annotations)event_classT_JSON_DICT)	dataclassN   )networkc              #     K   t               }| j                         |d<   ||d<   |||d<   |||d<   d|d}|}d|v rt        |d         ndt        |d	         t        |d
         fS w)u  
    Returns the response body and size if it were re-encoded with the specified settings. Only
    applies to images.

    :param request_id: Identifier of the network request to get content for.
    :param encoding: The encoding to use.
    :param quality: *(Optional)* The quality of the encoding (0-1). (defaults to 1)
    :param size_only: *(Optional)* Whether to only return the size information (defaults to false).
    :returns: A tuple with the following items:

        0. **body** – *(Optional)* The encoded body as a base64 string. Omitted if sizeOnly is true.
        1. **originalSize** – Size before re-encoding.
        2. **encodedSize** – Size after re-encoding.
    	requestIdencodingNqualitysizeOnlyzAudits.getEncodedResponse)methodparamsbodyoriginalSizeencodedSize)dictto_jsonstrint)
request_idr   r   	size_onlyr   cmd_dictjsons          J/var/www/highfloat_scraper/venv/lib/python3.12/site-packages/cdp/audits.pyget_encoded_responser      s     ( &F$,,.F;!F:#y&z-H >D#t^DLD !D  s   A)A+)NN)
r   znetwork.RequestIdr   r   r   ztyping.Optional[float]r   ztyping.Optional[bool]returnzXtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[typing.Optional[str], int, int]])
__future__r   cdp.utilr   r   dataclassesr   enumtyping r   r        r   <module>r&      sU    # - !    +/+/	$%$$ ($ )	$
 
`$r%   