Ë
    ž…Åj1  ã                   ó*  — g d ¢Z ddlmZmZmZ ddlmZ ddlmZm	Z	 ddl
mZmZ ddlmZ dd	lmZmZ dd
lmZmZmZ ddlmZmZ ddlmZmZmZmZmZmZm Z m!Z! ddl"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z) er G d„ de d¬«      Z*neZ*	 	 	 d$dede+dee   dee,   dee-   de!e    defd„Z.de+de!e*   defd„Z/de+de!e*   defd„Z0de+de!e*   defd„Z1de+de!e*   defd„Z2de+de!e*   defd„Z3de+de!e*   defd „Z4de+de!e*   defd!„Z5de+de!e*   defd"„Z6de+de!e*   defd#„Z7y)%) ÚSessionÚAsyncSessionÚBrowserTypeÚBrowserTypeLiteralÚ
CurlWsFlagÚrequestÚheadÚgetÚpostÚputÚpatchÚdeleteÚoptionsÚRequestsErrorÚCookiesÚHeadersÚRequestÚResponseÚAsyncWebSocketÚ	WebSocketÚWebSocketErrorÚWebSocketClosedÚWebSocketTimeoutÚWebSocketRetryStrategyÚWsCloseCodeÚExtraFingerprintsÚRetryStrategyÚCacheBackendÚFileCacheBackendÚCookieTypesÚHeaderTypesÚ	ProxySpecé    )ÚOptionalÚTYPE_CHECKINGÚ	TypedDicté   )r   é   )r   r   )r   r   )r   )r   r    )r   r   r   )r   r   )r   Ú
HttpMethodr!   r   r   Ú
ThreadTypeÚRequestParamsÚUnpack)r   r   r   r   r   r   r   c                   ó>   — e Zd ZU ee   ed<   ee   ed<   ee   ed<   y)ÚSessionRequestParamsÚthreadÚcurl_optionsÚdebugN)Ú__name__Ú
__module__Ú__qualname__r#   r)   Ú__annotations__ÚdictÚbool© ó    úQ/opt/euro-skaner/venv/lib/python3.12/site-packages/curl_cffi/requests/__init__.pyr-   r-   C   s!   … Ø˜Ñ$Ó$Ø˜t‘nÓ$Ø˜‰~Ôr8   r-   F)ÚtotalNÚmethodÚurlr.   r/   r0   ÚkwargsÚreturnc                 ó€   — |€dn|}t        |||¬«      5 } |j                  d| |dœ|¤Žcddd«       S # 1 sw Y   yxY w)a  Send an http request.

    Parameters:
        method: http method for the request: GET/POST/PUT/DELETE etc.
        url: url for the requests.
        params: query string for the requests.
        data: form values(dict/list/tuple) or binary data to use in body,
            ``Content-Type: application/x-www-form-urlencoded`` will be added if a dict
            is given.
        content: raw request body as str, bytes, a byte iterable, or a binary file.
            ``AsyncSession`` also accepts an async byte iterable.
        json: json values to use in body, `Content-Type: application/json` will be added
            automatically.
        headers: headers to send.
        cookies: cookies to use.
        files: not supported, use ``multipart`` instead.
        auth: HTTP basic auth, a tuple of (username, password), only basic auth is
            supported.
        timeout: how many seconds to wait before giving up.
        allow_redirects: whether to allow redirection.
        max_redirects: max redirect counts, default 30, use -1 for unlimited.
        proxies: dict of proxies to use, prefer to use ``proxy`` if they are the same.
            format: ``{"http": proxy_url, "https": proxy_url}``.
        proxy: proxy to use, format: "http://user@pass:proxy_url".
            Can't be used with `proxies` parameter.
        proxy_auth: HTTP basic auth for proxy, a tuple of (username, password).
        verify: whether to verify https certs.
        referer: shortcut for setting referer header.
        accept_encoding: shortcut for setting accept-encoding header.
        content_callback: a callback function to receive response body.
            ``def callback(chunk: bytes) -> None:``
        impersonate: which browser version or fingerprint to impersonate.
        ja3: ja3 string to impersonate.
        akamai: akamai string to impersonate.
        extra_fp: extra fingerprints options, in complement to ja3 and akamai strings.
        thread: thread engine to use for working with other thread implementations.
            choices: eventlet, gevent.
        default_headers: whether to set default browser headers when impersonating.
        default_encoding: encoding for decoding response content if charset is not found
            in headers. Defaults to "utf-8". Can be set to a callable for automatic
            detection.
        quote: Set characters to be quoted, i.e. percent-encoded. Default safe string
            is ``!#$%&'()*+,/:;=?@[]~``. If set to a sting, the character will be
            removed from the safe string, thus quoted. If set to False, the url will be
            kept as is, without any automatic percent-encoding, you must encode the URL
            yourself.
        curl_options: extra curl options to use.
        http_version: limiting http version, defaults to http2.
        debug: print extra curl debug info.
        interface: interface name or local IP to bind to (bare IP = source address).
        cert: a tuple of (cert, key) filenames for client cert.
        stream: streaming the response, default False.
        max_recv_speed: maximum receive speed, bytes per second.
        multipart: upload files using the multipart format, see examples for details.
        discard_cookies: discard cookies from server. Default to False.

    Returns:
        A ``Response`` object.
    NF)r.   r/   r0   ©r;   r<   r7   )r   r   )r;   r<   r.   r/   r0   r=   Úss          r9   r   r   L   sK   € ðF �]‰E¨€EÜ	˜¨\ÀÔ	Gð ;È1Øˆq�y‰yÐ: ¨CÑ:°6Ñ:÷;÷ ;ò ;ús   •4´=c                 ó   — t        dd| dœ|¤ŽS )NÚHEADr@   r7   ©r   ©r<   r=   s     r9   r   r   ”   ó   € ÜÐ4˜& cÑ4¨VÑ4Ð4r8   c                 ó   — t        dd| dœ|¤ŽS )NÚGETr@   r7   rD   rE   s     r9   r	   r	   ˜   ó   € ÜÐ3˜% SÑ3¨FÑ3Ð3r8   c                 ó   — t        dd| dœ|¤ŽS )NÚPOSTr@   r7   rD   rE   s     r9   r
   r
   œ   rF   r8   c                 ó   — t        dd| dœ|¤ŽS )NÚPUTr@   r7   rD   rE   s     r9   r   r       rI   r8   c                 ó   — t        dd| dœ|¤ŽS )NÚPATCHr@   r7   rD   rE   s     r9   r   r   ¤   ó   € ÜÐ5˜' sÑ5¨fÑ5Ð5r8   c                 ó   — t        dd| dœ|¤ŽS )NÚDELETEr@   r7   rD   rE   s     r9   r   r   ¨   s   € ÜÐ6˜(¨Ñ6¨vÑ6Ð6r8   c                 ó   — t        dd| dœ|¤ŽS )NÚOPTIONSr@   r7   rD   rE   s     r9   r   r   ¬   s   € ÜÐ7˜)¨Ñ7°Ñ7Ð7r8   c                 ó   — t        dd| dœ|¤ŽS )NÚTRACEr@   r7   rD   rE   s     r9   ÚtracerW   °   rP   r8   c                 ó   — t        dd| dœ|¤ŽS )NÚQUERYr@   r7   rD   rE   s     r9   ÚqueryrZ   ´   rP   r8   )NNN)8Ú__all__Útypingr#   r$   r%   Úconstr   Úcacher   r   Úcookiesr   r   Úerrorsr   Úheadersr   r    Úimpersonater   r   r   Úmodelsr   r   Úsessionr   r(   r!   r   r   r)   r*   r+   Ú
websocketsr   r   r   r   r   r   r   r-   Ústrr5   r6   r   r   r	   r
   r   r   r   r   rW   rZ   r7   r8   r9   ú<module>rg      só  ðò!€÷F 6Ñ 5å ß 1ß )Ý !ß )ß KÑ Kß %÷	÷ 	ó 	÷÷ ñ ñ ô˜}°Eö ð %Ðð $(Ø#'Ø ñE;ØðE;à	ðE;ð �ZÑ ðE;ð ˜4‘.ð	E;ð
 �D‰>ðE;ð �]Ñ#ðE;ð óE;ðP5ˆcð 5˜VÐ$8Ñ9ð 5¸hó 5ð4ˆSð 4˜FÐ#7Ñ8ð 4¸Xó 4ð5ˆcð 5˜VÐ$8Ñ9ð 5¸hó 5ð4ˆSð 4˜FÐ#7Ñ8ð 4¸Xó 4ð6ˆsð 6˜fÐ%9Ñ:ð 6¸xó 6ð7�ð 7˜vÐ&:Ñ;ð 7Àó 7ð8�ð 8 Ð';Ñ <ð 8Àó 8ð6ˆsð 6˜fÐ%9Ñ:ð 6¸xó 6ð6ˆsð 6˜fÐ%9Ñ:ð 6¸xô 6r8   