Ë
    >²Xjª	  ã                   ó†   — d Z ddlmZmZ  G d„ de«      Z G d„ de«      Z G d„ de«      Z G d	„ d
e«      Z G d„ de«      Z	y)z¿
oauthlib.oauth1.rfc5849.errors
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error used both by OAuth 1 clients and provicers to represent the spec
defined error responses for all four core grant types.
é    )Úadd_params_to_uriÚ	urlencodec                   óR   ‡ — e Zd ZdZdZ	 	 dˆ fd„	Zd„ Zed„ «       Zed„ «       Z	ˆ xZ
S )ÚOAuth1ErrorNÚ c                 óÜ   •— |xs | j                   | _         dj                  | j                  | j                   «      }|r|dt        |«      z   z  }t        ‰| �  |«       || _        || _        y)a®  
        description:    A human-readable ASCII [USASCII] text providing
                        additional information, used to assist the client
                        developer in understanding the error that occurred.
                        Values for the "error_description" parameter MUST NOT
                        include characters outside the set
                        x20-21 / x23-5B / x5D-7E.

        uri:    A URI identifying a human-readable web page with information
                about the error, used to provide the client developer with
                additional information about the error.  Values for the
                "error_uri" parameter MUST conform to the URI- Reference
                syntax, and thus MUST NOT include characters outside the set
                x21 / x23-5B / x5D-7E.

        state:  A CSRF protection value received from the client.

        request:  Oauthlib Request object
        z({}) {}Ú N)ÚdescriptionÚformatÚerrorÚreprÚsuperÚ__init__ÚuriÚstatus_code)Úselfr
   r   r   ÚrequestÚmessageÚ	__class__s         €úd/var/www/html/content_generation/venv/lib/python3.12/site-packages/oauthlib/oauth1/rfc5849/errors.pyr   zOAuth1Error.__init__   sf   ø€ ð* 'Ò:¨$×*:Ñ*:ˆÔØ×"Ñ" 4§:¡:¨t×/?Ñ/?Ó@ˆÙØ�sœT '›]Ñ*Ñ*ˆGÜ‰Ñ˜Ô!àˆŒØ&ˆÕó    c                 ó.   — t        || j                  «      S ©N)r   Ú	twotuples)r   r   s     r   Úin_urizOAuth1Error.in_uri-   s   € Ü   d§n¡nÓ5Ð5r   c                 óÈ   — d| j                   fg}| j                  r|j                  d| j                  f«       | j                  r|j                  d| j                  f«       |S )Nr   Úerror_descriptionÚ	error_uri)r   r
   Úappendr   )r   r   s     r   r   zOAuth1Error.twotuples0   sU   € à˜4Ÿ:™:Ð&Ð'ˆØ×ÒØ�L‰LÐ-¨t×/?Ñ/?Ð@ÔAØ�8Š8Ø�L‰L˜+ t§x¡xÐ0Ô1Øˆr   c                 ó,   — t        | j                  «      S r   )r   r   )r   s    r   Ú
urlencodedzOAuth1Error.urlencoded9   s   € ä˜Ÿ™Ó(Ð(r   )NNi�  N)Ú__name__Ú
__module__Ú__qualname__r   r
   r   r   Úpropertyr   r!   Ú__classcell__)r   s   @r   r   r      sE   ø„ Ø€EØ€Kà?BØõ'ò<6ð ñó ðð ñ)ó ô)r   r   c                   ó   — e Zd ZdZdZy)ÚInsecureTransportErrorÚinsecure_transport_protocolz%Only HTTPS connections are permitted.N)r"   r#   r$   r   r
   © r   r   r(   r(   >   s   „ Ø)€EØ9�Kr   r(   c                   ó   — e Zd ZdZy)ÚInvalidSignatureMethodErrorÚinvalid_signature_methodN©r"   r#   r$   r   r*   r   r   r,   r,   C   s   „ Ø&�Er   r,   c                   ó   — e Zd ZdZy)ÚInvalidRequestErrorÚinvalid_requestNr.   r*   r   r   r0   r0   G   s   „ Ø�Er   r0   c                   ó   — e Zd ZdZy)ÚInvalidClientErrorÚinvalid_clientNr.   r*   r   r   r3   r3   K   s   „ Ø�Er   r3   N)
Ú__doc__Úoauthlib.commonr   r   Ú	Exceptionr   r(   r,   r0   r3   r*   r   r   Ú<module>r8      sL   ðñ÷ 9ô0)�)ô 0)ôf:˜[ô :ô
' +ô 'ô˜+ô ô˜õ r   