Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/werkzeug/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/werkzeug/__pycache__/test.cpython-312.pyc

�

'ٜg;���L�ddlmZddlZddlZddlZddlZddlmZddl	m	Z	ddl
mZddlm
Z
ddlmZddlmZdd	lmZdd
lmZddlmZddlmZd
dlmZd
dlmZd
dlmZd
dlmZd
dlmZd
dlmZd
dlmZd
dlmZd
dlm Z d
dlm!Z!d
dl"m#Z#d
dl"m$Z$d
dl"m%Z%d
dl"m&Z&d
dl"m'Z'd
dl(m)Z)d
dl(m*Z*d
dl(m+Z+d
d l(m,Z,d
d!l(m-Z-d
d"l(m.Z.d
d#l/m0Z0d
d$l/m1Z1d
d%l2m3Z3d
d&l2m4Z4d
d'l5m6Z6d
d(l7m8Z8d
d)l9m:Z:d
d*l9m;Z;ejxrddl=Z>dd+l?m@Z@dd,l?mAZA			d?									d@d-�ZB	dA					dBd.�ZCdCd/�ZDej�d0d1�2�ZFGd3�d4�ZGGd5�d6eH�ZIGd7�d8�ZJdDd9�ZK	dE							dFd:�ZLGd;�d<e8�ZMej�Gd=�d>��ZOy)G�)�annotationsN)�defaultdict)�datetime)�BytesIO)�chain)�random)�
TemporaryFile)�time)�unquote)�urlsplit)�
urlunsplit�)�_get_environ)�_wsgi_decoding_dance)�_wsgi_encoding_dance)�
Authorization)�CallbackDict)�CombinedMultiDict)�EnvironHeaders)�
FileMultiDict)�Headers)�	MultiDict)�dump_cookie)�dump_options_header)�parse_cookie)�
parse_date)�parse_options_header)�Data)�Epilogue)�Field)�File)�MultipartEncoder)�Preamble)�
_urlencode)�
iri_to_uri)�cached_property)�get_content_type)�Request)�Response)�ClosingIterator)�get_current_url)�WSGIApplication)�WSGIEnvironmentc
������|�dt��t���}t��d�d�|r
d����fd�}n�j}t	|j��}||j
td����t|�D�]�\}}t|dd�}|��t|d	t|d
d��}	t|dd�}
|
� |	xrtj|	�dxsd}
|j}|jd
|
fg�|	�#||j
t||����n#||j
t||	|����	|d�}|s#||j
t!|d������||j
t!|d�����Pt#|t$�st%|�}||j
t|t'�����||j
t!|j�d�������||j
t)d�����j+�}
�j-d��|
|fS)z�Encode a dict of values (either strings or file descriptors or
    :class:`FileStorage` objects.) into a multipart encoded string stored
    in a file descriptor.

    .. versionchanged:: 3.0
        The ``charset`` parameter was removed.
    Nz ---------------WerkzeugFormPart_rFc�R���r�j|�St|�}|�z�kr�j|�nhtjtjt
t
d��}|j�j��|j|�|�d��|z
�|S)Nzwb+T)�write�len�t�cast�IO�bytesr	�getvalue)�s�length�
new_stream�on_disk�stream�	threshold�total_lengths   �����8/usr/local/lib/python3.12/site-packages/werkzeug/test.py�write_binaryz-stream_encode_multipart.<locals>.write_binaryMs������|�|�A��&��Q����L�(�I�5��L�L��O�!"������U��]�5�5I�!J�J��$�$�V�_�_�%6�7��$�$�Q�'�'�F�"�G���&���
�r@)�data�read�filename�name�content_typezapplication/octet-stream�Content-Type)rD�headers)rDrCrGTi@)rA�	more_data)r7r5�return�int)r
rrr0r"�encode�
send_eventr#�
_iter_data�getattr�	mimetypes�
guess_typerG�updater r!r�
isinstance�strrr�tell�seek)rA�use_tempfiler<�boundaryr?�encoder�key�value�readerrCrErG�chunkr8r:r;r=s  `           @@@r>�stream_encode_multipartr]6s,�����5�d�f�X�f�h�Z�H��!�)�F��L��G��	�	�*�|�|���x���0�1�G���#�#�H�#�$6�7�8� ��&�
��U�����-�����u�j�'�%���2N�O�H�"�5�.�$�?�L��#��:�!�,�,�X�6�q�9�2�1��
�m�m�G��N�N�^�\�:�;�<����W�/�/��3��0P�Q�R���&�&��#��'�J���
��u�
��� ��!3�!3�D�e�u�4U�!V�W���W�/�/��%�4�0P�Q�R���e�S�)��E�
����+�+�E�s�G�I�,N�O�P���+�+�D�e�l�l�n�PU�,V�W�X�C'�F��#�#�H�#�$6�7�8�
�[�[�]�F�
�K�K��N��6�8�#�#r@c�J�t|d|��\}}}||j�fS)z�Like `stream_encode_multipart` but returns a tuple in the form
    (``boundary``, ``data``) where data is bytes.

    .. versionchanged:: 3.0
        The ``charset`` parameter was removed.
    F)rVrW)r]rB)�valuesrWr;r8s    r>�encode_multipartr`�s/�� 7��U�X� ��F�F�H��V�[�[�]�"�"r@c#��K�t|t�r|jd��Ed{���y|j�D])\}}t|t�r|D]}||f���
�$||f���+y7�B�w)z�Iterate over a mapping that might have a list of values, yielding
    all key, value pairs. Almost like iter_multi_items but only allows
    lists, not tuples, of values so tuples can be used for files.
    T)�multiN)rRr�items�list)rArYrZ�vs    r>rMrM�sh����
�$�	�"��:�:�D�:�)�)�)��*�*�,�J�C���%��&��A��q�&�L���5�j� �'�	*�s�&A-�A+�AA-�_TAnyMultiDictzMultiDict[t.Any, t.Any])�boundc��eZdZUdZdZdZeZddlZe	ej�Z[ded<ded	<d
ed<ded<d
ed<																		d.																																					d/d�Z
ed0d��Z						d1d�Ze	d2d��Zed3d��Zej(d4d��Zed5d��Zej(d4d��Zed5d��Zej(d6d��Zed7d��Zed8d��Zej(d9d��Zd:d�Zd;d�Zed<d��Zej(d=d��Zed>d ��Zej(d?d!��Zed@d"��Zej(dAd#��Zed3d$��Zej(d4d%��Zed<d&��Zej(dBd'��Zed3d(��Z edCd)��Z!dDd*�Z"dDd+�Z#dEd,�Z$dFdGd-�Z%y)H�EnvironBuildera+This class can be used to conveniently create a WSGI environment
    for testing purposes.  It can be used to quickly create WSGI environments
    or request objects from arbitrary data.

    The signature of this class is also used in some other places as of
    Werkzeug 0.5 (:func:`create_environ`, :meth:`Response.from_values`,
    :meth:`Client.open`).  Because of this most of the functionality is
    available through the constructor alone.

    Files and regular form data can be manipulated independently of each
    other with the :attr:`form` and :attr:`files` attributes, but are
    passed with the same argument to the constructor: `data`.

    `data` can be any of these values:

    -   a `str` or `bytes` object: The object is converted into an
        :attr:`input_stream`, the :attr:`content_length` is set and you have to
        provide a :attr:`content_type`.
    -   a `dict` or :class:`MultiDict`: The keys have to be strings. The values
        have to be either any of the following objects, or a list of any of the
        following objects:

        -   a :class:`file`-like object:  These are converted into
            :class:`FileStorage` objects automatically.
        -   a `tuple`:  The :meth:`~FileMultiDict.add_file` method is called
            with the key and the unpacked `tuple` items as positional
            arguments.
        -   a `str`:  The string is set as form data for the associated key.
    -   a file-like object: The object content is loaded in memory and then
        handled like a regular `str` or a `bytes`.

    :param path: the path of the request.  In the WSGI environment this will
                 end up as `PATH_INFO`.  If the `query_string` is not defined
                 and there is a question mark in the `path` everything after
                 it is used as query string.
    :param base_url: the base URL is a URL that is used to extract the WSGI
                     URL scheme, host (server name + server port) and the
                     script root (`SCRIPT_NAME`).
    :param query_string: an optional string or dict with URL parameters.
    :param method: the HTTP method to use, defaults to `GET`.
    :param input_stream: an optional input stream.  Do not specify this and
                         `data`.  As soon as an input stream is set you can't
                         modify :attr:`args` and :attr:`files` unless you
                         set the :attr:`input_stream` to `None` again.
    :param content_type: The content type for the request.  As of 0.5 you
                         don't have to provide this when specifying files
                         and form data via `data`.
    :param content_length: The content length for the request.  You don't
                           have to specify this when providing data via
                           `data`.
    :param errors_stream: an optional error stream that is used for
                          `wsgi.errors`.  Defaults to :data:`stderr`.
    :param multithread: controls `wsgi.multithread`.  Defaults to `False`.
    :param multiprocess: controls `wsgi.multiprocess`.  Defaults to `False`.
    :param run_once: controls `wsgi.run_once`.  Defaults to `False`.
    :param headers: an optional list or :class:`Headers` object of headers.
    :param data: a string or dict of form data or a file-object.
                 See explanation above.
    :param json: An object to be serialized and assigned to ``data``.
        Defaults the content type to ``"application/json"``.
        Serialized with the function assigned to :attr:`json_dumps`.
    :param environ_base: an optional dict of environment defaults.
    :param environ_overrides: an optional dict of environment overrides.
    :param auth: An authorization object to use for the
        ``Authorization`` header value. A ``(username, password)`` tuple
        is a shortcut for ``Basic`` authorization.

    .. versionchanged:: 3.0
        The ``charset`` parameter was removed.

    .. versionchanged:: 2.1
        ``CONTENT_TYPE`` and ``CONTENT_LENGTH`` are not duplicated as
        header keys in the environ.

    .. versionchanged:: 2.0
        ``REQUEST_URI`` and ``RAW_URI`` is the full raw URI including
        the query string, not only the path.

    .. versionchanged:: 2.0
        The default :attr:`request_class` is ``Request`` instead of
        ``BaseRequest``.

    .. versionadded:: 2.0
       Added the ``auth`` parameter.

    .. versionadded:: 0.15
        The ``json`` param and :meth:`json_dumps` method.

    .. versionadded:: 0.15
        The environ has keys ``REQUEST_URI`` and ``RAW_URI`` containing
        the path before percent-decoding. This is not part of the WSGI
        PEP, but many WSGI servers include it.

    .. versionchanged:: 0.6
       ``path`` and ``base_url`` can now be unicode strings that are
       encoded with :func:`iri_to_uri`.
    zHTTP/1.1)rrrN�MultiDict[str, str] | None�_args�
str | None�
_query_string�t.IO[bytes] | None�
_input_stream�_formzFileMultiDict | None�_filesc��|�d|vrtd��t|�}|�d|vr|j}t|j�|_||_|�t|�}||_t|t�r||_	n/|�t�}nt|t�st|�}||_||_|�t�}nt|t�st|�}||_|�||_|�t j"}||_|	|_|
|_||_||_||_||_||_d|_|�Ot|t6�rt9d|d|dd��}|jj;d|j=��|�1|
�t?d	��|jA|�}
|j�d
|_|
r�|�t?d��tC|
d�r|
jE�}
t|
t�r|
jG�}
t|
tH�r-tK|
�|_|j2��tM|
�|_nrtO|
�D]d\}}t|t6tPf�stC|d�r|jS||��;|jTjW|�jY|��f|�||_-yy)
N�?z6Query string is defined in the path and as an argumentF�basicrr)�username�passwordrz can't provide both json and datazapplication/jsonz#can't provide input stream and datarB).�
ValueErrorr�queryr%�path�request_uri�base_urlrRrS�query_stringr�args�methodrrGrE�sys�stderr�
errors_stream�multithread�multiprocess�run_once�environ_base�environ_overrides�input_stream�content_length�closed�tupler�set�	to_header�	TypeError�
json_dumps�hasattrrBrKr5rr1rM�dict�_add_file_from_data�form�setlistdefault�append�mimetype)�selfryr{r|r~r�rEr�r�r�r�r�rGrAr�r�r��json�authrzrYrZs                      r>�__init__zEnvironBuilder.__init__*s���*�#��t���U�V�V��t�n����C�4�K�&�,�,�L��{�/�/�0��	������!�(�+�H� ��
��l�C�(� ,�D���#�(�{����i�8�(��6��$�D�I�����?��i�G��G�W�-��g�&�G�����#� ,�D��� ��J�J�M�*���&���(��� ��
�(���!2���(���,���������$��&�$��$�q�'�t�A�w�G���
�L�L���_�d�n�n�.>�?������ B�C�C��?�?�4�(�D�� � �(�$6��!���'�� E�F�F��t�V�$��y�y�{���$��$��{�{�}���$��&�$+�D�M��!��&�&�.�*-�d�)�D�'�",�T�"2�J�C��!�%�%���7�7�5�&�;Q��0�0��e�<��	�	�0�0��5�<�<�U�C�	#3���$�D�M� r@c
�l�tt|��}t|d�|j|d|j	d�t|d��t|d�|d|d|j	dd	�|j	d
d	�|d|d|d
|d|d�}|j|�|di|��S)a-Turn an environ dict back into a builder. Any extra kwargs
        override the args extracted from the environ.

        .. versionchanged:: 2.0
            Path and query values are passed through the WSGI decoding
            dance to avoid double encoding.

        .. versionadded:: 0.15
        �	PATH_INFO�wsgi.url_scheme�Host�SCRIPT_NAME�QUERY_STRING�REQUEST_METHOD�
wsgi.inputrFN�Content-Length�wsgi.errors�wsgi.multithread�wsgi.multiprocess�
wsgi.run_once)ryr{r|r~r�rEr�r�r�r�r�rG�)rrr�_make_base_url�poprQ)�cls�environ�kwargsrG�outs     r>�from_environzEnvironBuilder.from_environ�s����.��1�2��(���)=�>��*�*��)�*����F�#�$�W�]�%;�<��
1���1H�I��.�/�#�L�1�#�K�K���=�%�k�k�*:�D�A�$�]�3�"�#5�6�#�$7�8���0��!
��$	�
�
�6���z�S�z�r@c��t|t�r|jj|g|���y|jj||�y)z=Called in the EnvironBuilder to add files from the data dict.N)rRr��files�add_file)r�rYrZs   r>r�z"EnvironBuilder._add_file_from_data�s;���e�U�#��D�J�J����,�e�,��J�J����U�+r@c�F�t|||ddf�jd�dzS)N��/)r
�rstrip)�scheme�host�script_roots   r>r�zEnvironBuilder._make_base_url�s(���6�4��b�"�=�>�E�E�c�J�S�P�Pr@c�d�|j|j|j|j�S)z`The base URL is used to extract the URL scheme, host name,
        port, and root path.
        )r��
url_schemer�r��r�s r>r{zEnvironBuilder.base_url�s'��
�"�"�4�?�?�D�I�I�t�?O�?O�P�Pr@c��|�d}d}d}n t|�\}}}}}|s|rtd��|jd�|_||_||_y)N�http�	localhostr�z4base url must not contain a query string or fragmentr�)rrwr�r�r�r�)r�rZr��netlocr��qs�anchors       r>r{zEnvironBuilder.base_url�s\���=��F� �F��K�6>�u�o�3�F�F�K��V��V� �!W�X�X�&�-�-�c�2�����	� ��r@c��|jjd�}|�'|js|jry|jryy|S)z�The content type for the request.  Reflected from and to
        the :attr:`headers`.  Do not set if you set :attr:`files` or
        :attr:`form` for auto detection.
        rFN�multipart/form-data�!application/x-www-form-urlencoded)rG�getrorqrp�r��cts  r>rEzEnvironBuilder.content_type�sA���\�\�
�
�n�
-��
�:�d�0�0��{�{�,��z�z�:���	r@c�`�|�|jjdd�y||jd<y�NrF)rGr��r�rZs  r>rEzEnvironBuilder.content_type�s)���=��L�L���^�T�2�+0�D�L�L��(r@c�f�|j}|r"|jd�dj�SdS)zYThe mimetype (content type without charset etc.)

        .. versionadded:: 0.14
        �;rN)rE�split�stripr�s  r>r�zEnvironBuilder.mimetype�s2���
�
��+-�r�x�x��}�Q��%�%�'�7�4�7r@c�&�t|d�|_y)Nzutf-8)r'rEr�s  r>r�zEnvironBuilder.mimetype�s��,�U�G�<��r@c�x��d�fd�}t�jjdd��d}t||�S)z�The mimetype parameters as dict.  For example if the
        content type is ``text/html; charset=utf-8`` the params would be
        ``{'charset': 'utf-8'}``.

        .. versionadded:: 0.14
        c�L��t�j|��jd<yr�)rr�rG)�dr�s �r>�	on_updatez1EnvironBuilder.mimetype_params.<locals>.on_update�s���+>�t�}�}�a�+P�D�L�L��(r@zcontent-typer�r)r�zCallbackDict[str, str]rI�None)rrGr�r)r�r�r�s`  r>�mimetype_paramszEnvironBuilder.mimetype_params�s8���	Q�
!����!1�!1�.�"�!E�F�q�I���A�y�)�)r@c�D�|jjdt��S)z�The content length as integer.  Reflected from and to the
        :attr:`headers`.  Do not set if you set :attr:`files` or
        :attr:`form` for auto detection.
        r�)�type)rGr�rJr�s r>r�zEnvironBuilder.content_lengths���|�|��� 0�s��;�;r@c�r�|�|jjdd�yt|�|jd<y)Nr�)rGr�rSr�s  r>r�zEnvironBuilder.content_lengths/���=��L�L���-�t�4�-0��Z�D�L�L�)�*r@c�x�|j�td��t||�}|�|�}t|||�|S)z�Common behavior for getting the :attr:`form` and
        :attr:`files` properties.

        :param name: Name of the internal cached attribute.
        :param storage: Storage class used for the data.
        zan input stream is defined)r��AttributeErrorrN�setattr)r�rD�storage�rvs    r>�	_get_formzEnvironBuilder._get_formsE�����(� �!=�>�>�
�T�4�
 ��
�:���B��D�$��#��	r@c�,�d|_t|||�y)z�Common behavior for setting the :attr:`form` and
        :attr:`files` properties.

        :param name: Name of the internal cached attribute.
        :param value: Value to assign to the attribute.
        N)ror�)r�rDrZs   r>�	_set_formzEnvironBuilder._set_form$s��"�����d�E�"r@c�.�|jdt�S)z$A :class:`MultiDict` of form values.rp)r�rr�s r>r�zEnvironBuilder.form.s���~�~�g�y�1�1r@c�(�|jd|�y)Nrp�r�r�s  r>r�zEnvironBuilder.form3s�����w��&r@c�.�|jdt�S)zrA :class:`FileMultiDict` of uploaded files. Use
        :meth:`~FileMultiDict.add_file` to add new files.
        rq)r�rr�s r>r�zEnvironBuilder.files7s��
�~�~�h�
�6�6r@c�(�|jd|�y)Nrqr�r�s  r>r�zEnvironBuilder.files>s�����x��'r@c��|jS)z�An optional input stream. This is mutually exclusive with
        setting :attr:`form` and :attr:`files`, setting it will clear
        those. Do not provide this if the method is not ``POST`` or
        another method that has a body.
        )ror�s r>r�zEnvironBuilder.input_streamBs���!�!�!r@c�.�||_d|_d|_y�N)rorprqr�s  r>r�zEnvironBuilder.input_streamKs��"�����
���r@c�v�|j�"|j�t|j�Sy|jS)ziThe query string.  If you set this to a string
        :attr:`args` will no longer be available.
        r�)rmrkr$r�s r>r|zEnvironBuilder.query_stringQs8��
���%��z�z�%�!�$�*�*�-�-���!�!�!r@c� �||_d|_yr��rmrkr�s  r>r|zEnvironBuilder.query_string\s��"�����
r@c�~�|j�td��|j�t�|_|jS)z(The URL arguments as :class:`MultiDict`.za query string is defined)rmr�rkrr�s r>r}zEnvironBuilder.argsas9�����)� �!<�=�=��:�:��"��D�J��z�z�r@c� �d|_||_yr�r�r�s  r>r}zEnvironBuilder.argsjs��!�����
r@c�@�|jjdd�dS)z4The server name (read-only, use :attr:`host` to set)�:rr)r�r�r�s r>�server_namezEnvironBuilder.server_nameos���y�y���s�A�&�q�)�)r@c��|jjdd�}t|�dk(r	t|d�S|j
dk(ryy#t$rY�wxYw)z?The server port as integer (read-only, use :attr:`host` to set)r�r��httpsi��P)r�r�r1rJrwr�)r��piecess  r>�server_portzEnvironBuilder.server_portts_��������a�(���v�;�!��
��6�!�9�~�%��?�?�g�%�����
��
�s�
A�	A�Ac�D�	|j�y#t$rYywxYwr�)�close�	Exceptionr�s r>�__del__zEnvironBuilder.__del__�s"��	��J�J�L���	��	�s��	�c���|jry	|jj�}|D]}	|j	��d|_y#t$rd}Y�-wxYw#t
$rY�:wxYw)z�Closes all files.  If you put real :class:`file` objects into the
        :attr:`files` dict you can call this method to automatically close
        them all in one go.
        Nr�T)r�r�r_r�r�r�)r�r��fs   r>r�zEnvironBuilder.close�sq��
�;�;��	��J�J�%�%�'�E��A�
����	��
�����	��E�	��
�
��
�s"�A	�A�	A�A�	A&�%A&c�l�|j}|j}|j}|j}|�I|j	�}|jdd�|j	�}|j|�||z
}n�|dk(r7t
t|j|jg��\}}}|�d|�d�}nJ|dk(r;t|j�jd�}t|�}t|�}n
t�}i}	|jr|	j|j�d"d�}
t!|j"�}|	jid	|j$�d
|
|j&��d|
|j(��dt!|j*��d
|�d|�d|j,�dt/|j0��d|j2�d|j4�d|j6�d|j8�d|�d|j:�d|j<�d|j>�d|j@��|jBjE�}|jGd�|jGd�|�||	d<|�t/|�|	d<tItJ�}
|jM�D]:\}}|
d|jO�jQdd ���jS|��<|
jU�D]\}}d!jW|�|	|<�|jXr|	j|jX�|	S)#z�Return the built environ.

        .. versionchanged:: 0.15
            The content type and length headers are set based on
            input stream detection. Previously this only set the WSGI
            keys.
        rr�r�z; boundary="�"r��asciic�*�tt|��Sr�)rr)�xs r>�_path_encodez0EnvironBuilder.get_environ.<locals>._path_encode�s��'���
�3�3r@r�r�r�r��REQUEST_URI�RAW_URI�SERVER_NAME�SERVER_PORT�	HTTP_HOST�SERVER_PROTOCOLzwsgi.versionr�r�r�r�r�r�rFr��CONTENT_TYPE�CONTENT_LENGTH�HTTP_�-�_z, )rrSrIrS)-r�r�r�rErTrUr]rr�r�r$rKr1rr�rQrrzr~r�ryr|r�rSr�r��server_protocol�wsgi_versionr�r�r�r�r�rG�copy�removerrd�to_wsgi_list�upper�replacer�rc�joinr�)r�r�r�r�rE�	start_pos�end_posrW�form_encoded�resultr�raw_urirG�combined_headersrYrZr_s                 r>�get_environzEnvironBuilder.get_environ�sW���(�(���,�,���=�=���(�(���#�$�)�)�+�I����a��#�"�'�'�)�G����i�(�$�y�0�N�
�.�
.�5L�!�4�9�9�d�j�j�"9�:�6�2�L�.�(�'�Z�|�H�:�Q�?�L�
�<�
<�%�d�i�i�0�7�7��@�L� ��.�N�"�<�0�L�"�9�L�"$������M�M�$�+�+�,�	4�'�t�'7�'7�8���
�
�
� �$�+�+�
��|�D�,<�,<�=�
��\�$�)�)�4�
�� 4�T�5F�5F� G�	
��w�

��7�
��t�/�/�
��s�4�#3�#3�4�
��T�Y�Y�
�"�4�#7�#7�
��� 1� 1�
�"�4�?�?�
��l�
� �t�1�1�!
�"#�D�$4�$4�#
�$$�T�%6�%6�%
�& ����'
�	
�0�,�,�#�#�%�����~�&����'�(��#�%1�F�>�"��%�'*�>�':�F�#�$�&�t�,��!�.�.�0�J�C���u�S�Y�Y�[�%8�%8��c�%B�$C�D�E�L�L�U�S�1�,�1�1�3�K�C���)�)�F�+�F�3�K�4��!�!��M�M�$�0�0�1��
r@c�J�|�|j}||j��S)z�Returns a request with the data.  If the request class is not
        specified :attr:`request_class` is used.

        :param cls: The request wrapper to use.
        )�
request_classr)r�r�s  r>�get_requestzEnvironBuilder.get_request�s(���;��$�$�C��4�#�#�%�&�&r@)r�NN�GETNNNNFFFNNNNNNN)&ryrSr{rlr|z t.Mapping[str, str] | str | Noner~rSr�rnrErlr��
int | Noner�zt.IO[str] | Noner��boolr�r"r�r"rGz,Headers | t.Iterable[tuple[str, str]] | NonerAz:None | (t.IO[bytes] | str | bytes | t.Mapping[str, t.Any])r��t.Mapping[str, t.Any] | Noner�r#r�rlr�r#r�z&Authorization | tuple[str, str] | NonerIr�)r�r-r��t.AnyrIri)rYrSrZzDt.IO[bytes] | tuple[t.IO[bytes], str] | tuple[t.IO[bytes], str, str]rIr�)r�rSr�rSr�rSrIrS�rIrS)rZrlrIr�)rIrl)rZrSrIr�)rIzt.Mapping[str, str])rIr!)rZr!rIr�)rDrSr�ztype[_TAnyMultiDict]rIrf)rDrSrZzMultiDict[str, t.Any]rIr�)rI�MultiDict[str, str])rZr&rIr�)rIr)rZrrIr�)rIrn)rZrnrIr�)rZrjrIr�)rIrJ)rIr�)rIr-r�)r�ztype[Request] | NonerIr()&�__name__�
__module__�__qualname__�__doc__rrr(rr��staticmethod�dumpsr��__annotations__r��classmethodr�r�r��propertyr{�setterrEr�r�r�r�r�r�r�r�r|r}r�r�r�r�rrr�r@r>riri�s���`�F!�O��L��M���d�j�j�)�J��%�%���%�%�%�%� � ��#�9=��+/�#'�%)�*.�!�"��@D�KO�59�:>�#�-1�7;�'`%��`%��`%�7�	`%�
�`%�)�
`%�!�`%�#�`%�(�`%��`%��`%��`%�>�`%�I�`%�3�`%� 8�!`%�"�#`%�$+�%`%�&5�'`%�(
�)`%�D����@	,�
�	,�U�	,�
�		,��Q��Q��Q��Q��_�_�!��!��������1��1��8��8��_�_�=��=��*��*��<��<����8��8��$#��2��2�
�[�[�'��'��7��7��\�\�(��(��"��"�������
�"��"�����������
�[�[�����*��*�������$V�p	'r@ric��eZdZdZy)�ClientRedirectErrorzIf a redirect loop is detected when using follow_redirects=True with
    the :cls:`Client`, then this exception is raised.
    N)r'r(r)r*r�r@r>r2r2�s��r@r2c�P�eZdZdZ			d									dd�Z	d							dd�Z	d dddd	�													d!d
�Zddd�							d"d�Zd#d
�Z								d$d�Z		d%					d&d�Z
	d%					d'd�Zddd�									d(d�Zd)d�Z
d)d�Zd)d�Zd)d�Zd)d�Zd)d�Zd)d�Zd)d�Zd*d�Zy)+�Clienta�Simulate sending requests to a WSGI application without running a WSGI or HTTP
    server.

    :param application: The WSGI application to make requests to.
    :param response_wrapper: A :class:`.Response` class to wrap response data with.
        Defaults to :class:`.TestResponse`. If it's not a subclass of ``TestResponse``,
        one will be created.
    :param use_cookies: Persist cookies from ``Set-Cookie`` response headers to the
        ``Cookie`` header in subsequent requests. Domain and path matching is supported,
        but other cookie parameters are ignored.
    :param allow_subdomain_redirects: Allow requests to follow redirects to subdomains.
        Enable this if the application handles subdomains and redirects between them.

    .. versionchanged:: 2.3
        Simplify cookie implementation, support domain and path matching.

    .. versionchanged:: 2.1
        All data is available as properties on the returned response object. The
        response cannot be returned as a tuple.

    .. versionchanged:: 2.0
        ``response_wrapper`` is always a subclass of :class:``TestResponse``.

    .. versionchanged:: 0.5
        Added the ``use_cookies`` parameter.
    NTFc��||_|dthvrt}n%|�#t|t�st	dt|fi�}tjtd|�|_|ri|_||_	yd|_||_	y)N�WrapperTestResponse�TestResponse)
�applicationr)r7�
issubclassr�r2r3�response_wrapper�_cookies�allow_subdomain_redirects)r�r8r:�use_cookiesr<s     r>r�zClient.__init__!s���'�����h�/�/�+��
�
)�*��l�3
� $�%��/�0�� ��!"���t�N�';�=M� N����GI�D�M�*C��&�!�D�M�)B��&r@r�r�c�l�|j�td��|jj|||f�S)aDReturn a :class:`.Cookie` if it exists. Cookies are uniquely identified by
        ``(domain, path, key)``.

        :param key: The decoded form of the key for the cookie.
        :param domain: The domain the cookie was set for.
        :param path: The path the cookie was set for.

        .. versionadded:: 2.3
        �>Cookies are disabled. Create a client with 'use_cookies=True'.)r;r�r��r�rY�domainrys    r>�
get_cookiezClient.get_cookie>s<���=�=� ��P��
��}�}� � �&�$��!4�5�5r@)rA�origin_onlyryc
�"�|j�td��tj|dt	||f||d�|���}||_|jr'|jj|jd�y||j|j<y)a~Set a cookie to be sent in subsequent requests.

        This is a convenience to skip making a test request to a route that would set
        the cookie. To test the cookie, make a test request to a route that uses the
        cookie value.

        The client uses ``domain``, ``origin_only``, and ``path`` to determine which
        cookies to send with a request. It does not use other cookie parameters that
        browsers use, since they're not applicable in tests.

        :param key: The key part of the cookie.
        :param value: The value part of the cookie.
        :param domain: Send this cookie with requests that match this domain. If
            ``origin_only`` is true, it must be an exact match, otherwise it may be a
            suffix match.
        :param origin_only: Whether the domain must be an exact match to the request.
        :param path: Send this cookie with requests that match this path either exactly
            or as a prefix.
        :param kwargs: Passed to :func:`.dump_cookie`.

        .. versionchanged:: 3.0
            The parameter ``server_name`` is removed. The first parameter is
            ``key``. Use the ``domain`` and ``origin_only`` parameters instead.

        .. versionchanged:: 2.3
            The ``origin_only`` parameter was added.

        .. versionchanged:: 2.3
            The ``domain`` parameter defaults to ``localhost``.
        Nr?r��rAry)	r;r��Cookie�_from_response_headerrrC�_should_deleter��_storage_key)r�rYrZrArCryr��cookies        r>�
set_cookiezClient.set_cookieQs���P�=�=� ��P��
��-�-��C��S�%�T��T�T�V�T�
��)���� � ��M�M���f�1�1�4�8�17�D�M�M�&�-�-�.r@rEc�p�|j�td��|jj|||fd�y)a�Delete a cookie if it exists. Cookies are uniquely identified by
        ``(domain, path, key)``.

        :param key: The decoded form of the key for the cookie.
        :param domain: The domain the cookie was set for.
        :param path: The path the cookie was set for.

        .. versionchanged:: 3.0
            The ``server_name`` parameter is removed. The first parameter is
            ``key``. Use the ``domain`` parameter instead.

        .. versionchanged:: 3.0
            The ``secure``, ``httponly`` and ``samesite`` parameters are removed.

        .. versionchanged:: 2.3
            The ``domain`` parameter defaults to ``localhost``.
        Nr?)r;r�r�r@s    r>�
delete_cookiezClient.delete_cookie�s;��0�=�=� ��P��
�	
�
�
���6�4��-�t�4r@c����|j�ytt|����jxsd�dj	��fd�|jj�D��}|r||d<y|j
dd�y)z�If cookies are enabled, set the ``Cookie`` header in the environ to the
        cookies that are applicable to the request host and path.

        :meta private:

        .. versionadded:: 2.3
        Nr�z; c3�v�K�|]0}|j��j�r|j����2y�wr�)�_matches_requestry�_to_request_header)�.0�cr��urls  ��r>�	<genexpr>z.Client._add_cookies_to_wsgi.<locals>.<genexpr>�s6�����
�+���!�!�+�s�x�x�8�
� � �"�+�s�69�HTTP_COOKIE)r;rr+�hostnamerr_r�)r�r�rZr�rTs   @@r>�_add_cookies_to_wsgizClient._add_cookies_to_wsgi�st����=�=� ����w�/�0���l�l�1�k���	�	�
��]�]�)�)�+�
�
���%*�G�M�"��K�K�
�t�,r@c���|j�y|D]e}tj|||�}|jr'|jj	|j
d��M||j|j
<�gy)z�If cookies are enabled, update the stored cookies from any ``Set-Cookie``
        headers in the response.

        :meta private:

        .. versionadded:: 2.3
        N)r;rFrGrHr�rI)r�r�ryrG�headerrJs      r>�_update_cookies_from_responsez$Client._update_cookies_from_response�sf���=�=� ���F��1�1�+�t�V�L�F��$�$��
�
�!�!�&�"5�"5�t�<�5;��
�
�f�1�1�2�
r@c��|j|�t|j||��}tt	|��}|j|jxsd|j|djd��|S)zVRuns the wrapped WSGI app with the given environment.

        :meta private:
        ��bufferedr�r�z
Set-Cookie)	rX�run_wsgi_appr8rr+r[rWry�getlist)r�r�r^r�rTs     r>r_zClient.run_wsgi_app�sk��	
�!�!�'�*�
�$�*�*�G�h�
G����w�/�0���*�*��L�L�'�K����2�a�5�=�=��3N�	
��	r@c��t|j�\}}}}}tj|jj
||��}|j
dd�dj
d�}	|jj
d�}
|	dgk7r||_||_	n|
}	|	|
k7r4|	t|
�d|
k(r|jstd��td	��|j
d
�}|jj
d
�}|dt|�|k(r|t|j�d|_n||_d|_
|jdvrm|j dk7rd
|_|j"�!|j"j%�d|_d|_d|_|j*j-dd�|j/||��S)z�Perform a new request to the location given by the redirect
        response to the previous request.

        :meta private:
        )ryr|r�rr�.r�Nz-Following subdomain redirects is not enabled.z.Following external redirects is not supported.r�>�3�4�HEADr zTransfer-Encodingr])r�locationrir��requestr�r�r�r�r�r1r<�RuntimeErrorr�ry�status_coder~r�r�rEr�rGr��open)
r��responser^r�r�ryr�r��builder�
to_name_parts�from_name_parts�
path_parts�
root_partss
             r>�resolve_redirectzClient.resolve_redirect�s���,4�H�4E�4E�+F�(����b�&� �-�-����$�$�4�b�.�
�����S�!�,�Q�/�5�5�c�:�
�!�-�-�3�3�C�8���R�D� �!'�G��!�G�L�,�M��O�+��c�/�2�2�4�5��H��5�5�&�'V�W�W�"�#S�T�T��Z�Z��_�
��(�(�.�.�s�3�
��'��J��(�J�6���G�$7�$7� 8� :�;�G�L� �G�L�"$�G�����z�1��~�~��'�!&����#�#�/��$�$�*�*�,�'+��$�#'�G� �%)�G�"��O�O��� 3�T�:��y�y��8�y�4�4r@)r^�follow_redirectsc��d}|szt|�dk(rl|d}t|t�r|j�}nFt|t�r$tj|�j�}nt|t�r|}|�,t|i|��}	|j�}|j�|j|j|��}|j|d|i�}	t�}
g}|s|	S|	jdvr�|s |	j�|	j�|	j|	jf}||
vr&td|	j�d|	j�d	���|
j!|�t#|�|	_|j'|	�|j)|	|��}	|	jdvr��t#|�|	_|	j+|j,j�|	S#|j�wxYw)
a|Generate an environ dict from the given arguments, make a
        request to the application using it, and return the response.

        :param args: Passed to :class:`EnvironBuilder` to create the
            environ for the request. If a single arg is passed, it can
            be an existing :class:`EnvironBuilder` or an environ dict.
        :param buffered: Convert the iterator returned by the app into
            a list. If the iterator has a ``close()`` method, it is
            called automatically.
        :param follow_redirects: Make additional requests to follow HTTP
            redirects until a non-redirect status is returned.
            :attr:`TestResponse.history` lists the intermediate
            responses.

        .. versionchanged:: 2.1
            Removed the ``as_tuple`` parameter.

        .. versionchanged:: 2.0
            The request input stream is closed when calling
            ``response.close()``. Input streams for redirects are
            automatically closed.

        .. versionchanged:: 0.5
            If a dict is provided as file in the dict for the ``data``
            parameter the content type has to be called ``content_type``
            instead of ``mimetype``. This change was made for
            consistency with :class:`werkzeug.FileWrapper`.

        .. versionchanged:: 0.5
            Added the ``follow_redirects`` parameter.
        Nrrr]rg>�-�.�/�1rcrdzLoop detected: A z
 redirect to z was already made.)r1rRrirr�r�r(r�r_r�r:r�ri�
make_sequencerfr2�addr��historyr�rq�
call_on_closer�)
r�r^rrr}r�rg�argrl�response_partsrk�	redirectsrz�new_redirect_entrys
             r>rjzClient.open"s���L#'���#�d�)�q�.��q�'�C��#�~�.��/�/�+���C��&�(�5�5�c�:�F�F�H���C��)����?�$�d�5�f�5�G�
 �!�-�-�/���
�
���*�*�7�?�?�X�*�N��(�4�(�(�.�J�'�J���E�	�&(����O��"�"�'
�
���&�&�(���� �"*�"3�"3�X�5I�5I�!J��!�Y�.�)�'��(<�(<�'=�>�#�,�,�-�-?�A���

�M�M�,�-�$�W�~�H���N�N�8�$��,�,�X��,�I�H�3�"�"�'
�
�8 %�W�~�H��
�"�"�7�#7�#7�#=�#=�>��O��W�
�
��s�
G)�)G;c�0�d|d<|j|i|��S)z1Call :meth:`open` with ``method`` set to ``GET``.r r~�rj�r�r}�kws   r>r�z
Client.get��!����8���t�y�y�$�%�"�%�%r@c�0�d|d<|j|i|��S)z2Call :meth:`open` with ``method`` set to ``POST``.�POSTr~r�r�s   r>�postzClient.post��!����8���t�y�y�$�%�"�%�%r@c�0�d|d<|j|i|��S)z1Call :meth:`open` with ``method`` set to ``PUT``.�PUTr~r�r�s   r>�putz
Client.put�r�r@c�0�d|d<|j|i|��S)z4Call :meth:`open` with ``method`` set to ``DELETE``.�DELETEr~r�r�s   r>�deletez
Client.delete�s!����8���t�y�y�$�%�"�%�%r@c�0�d|d<|j|i|��S)z3Call :meth:`open` with ``method`` set to ``PATCH``.�PATCHr~r�r�s   r>�patchzClient.patch��!����8���t�y�y�$�%�"�%�%r@c�0�d|d<|j|i|��S)z5Call :meth:`open` with ``method`` set to ``OPTIONS``.�OPTIONSr~r�r�s   r>�optionszClient.options�s!�� ��8���t�y�y�$�%�"�%�%r@c�0�d|d<|j|i|��S)z2Call :meth:`open` with ``method`` set to ``HEAD``.rer~r�r�s   r>�headzClient.head�r�r@c�0�d|d<|j|i|��S)z3Call :meth:`open` with ``method`` set to ``TRACE``.�TRACEr~r�r�s   r>�tracezClient.trace�r�r@c�N�dt|�j�d|j�d�S)N�<� �>)r�r'r8r�s r>�__repr__zClient.__repr__�s)���4��:�&�&�'�q��)9�)9�(<�A�>�>r@)NTF)
r8r,r:ztype[Response] | Noner=r"r<r"rIr�)r�r�)rYrSrArSryrSrIz
Cookie | None)r�)rYrSrZrSrArSrCr"ryrSr�r$rIr�)rYrSrArSryrSrIr�)r�r-rIr�)r�rSryrSrGz	list[str]rIr��F)r�r-r^r"rI�&tuple[t.Iterable[bytes], str, Headers])rkr7r^r"rIr7)
r}r$r^r"rrr"r�r$rIr7)r}r$r�r$rIr7r%)r'r(r)r*r�rBrKrMrXr[r_rqrjr�r�r�r�r�r�r�r�r�r�r@r>r4r4s����<37� �*/�C�$�C�0�C��	C�
$(�C�
�
C�<@C�6��6� #�6�9<�6�	�6�,�58�
"� ��58�
�58��58�
�58��
58��58��58�
�58�v"��5�
�5��	5�
�5�
�
5�>-�0<��<�&)�<�4=�<�	
�<�,:?�
�&�
�26�
�	/�
� 8=�=5�$�=5�04�=5�	�=5�D�!&�	c��c��c��	c�
�c�
�
c�J&�
&�
&�
&�
&�
&�
&�
&�
?r@r4c��t|i|��}	|j�|j�S#|j�wxYw)a�Create a new WSGI environ dict based on the values passed.  The first
    parameter should be the path of the request which defaults to '/'.  The
    second one can either be an absolute path (in that case the host is
    localhost:80) or a full path to the request with scheme, netloc port and
    the path to the script.

    This accepts the same arguments as the :class:`EnvironBuilder`
    constructor.

    .. versionchanged:: 0.5
       This function is now a thin wrapper over :class:`EnvironBuilder` which
       was added in 0.5.  The `headers`, `environ_base`, `environ_overrides`
       and `charset` parameters were added.
    )rirr�)r}r�rls   r>�create_environr��s7���d�-�f�-�G���"�"�$��
�
����
�
��s�-�?c�|�
��t|�j�}d�g�
d�
�fd�	}|||�}t|dd�}t|�}|r	t	|�}|�D|�n<|D]}�
j|����n�
rt
�
|�}|�||urt||�}�\}}	||t|	�fS#|�|�wwxYw)aReturn a tuple in the form (app_iter, status, headers) of the
    application output.  This works best if you pass it an application that
    returns an iterator all the time.

    Sometimes applications may use the `write()` callable returned
    by the `start_response` function.  This tries to resolve such edge
    cases automatically.  But if you don't get the expected output you
    should set `buffered` to `True` which enforces buffering.

    If passed an invalid WSGI application the behavior of this function is
    undefined.  Never pass non-conforming WSGI applications to this function.

    :param app: the application to execute.
    :param buffered: set to `True` to enforce buffering.
    :return: tuple in the form ``(app_iter, status, headers)``
    Nc�f��|r	|dj|d��||f��jS#d}wxYw)Nrr�)�with_tracebackr�)�statusrG�exc_info�bufferrks   ��r>�start_responsez$run_wsgi_app.<locals>.start_response�sE����
 ��q�k�0�0��!��=�=��G�$���}�}��� ��s�,�0r�r�)	rrrN�iterrdr�rr*r)�appr�r^r��app_rv�
close_func�app_iter�itemr�rGr�rks          @@r>r_r_�s����*�7�#�(�(�*�G�9=�H��F�
���.�
)�F����$�/�J�"&�v�,�H��	��H�~�H��%����D��M�M�$���#��	���V�X�.�H��!�h�f�&<�&�x��<�H��O�F�G��V�W�W�-�-�-��+�%���&�s�B/�/B;c�v��eZdZUdZdZded<	ded<	dZ	d
													d�fd�
Zedd	��Z	�xZ
S)
r7a=:class:`~werkzeug.wrappers.Response` subclass that provides extra
    information about requests made with the test :class:`Client`.

    Test client requests will always return an instance of this class.
    If a custom response class is passed to the client, it is
    subclassed along with this to support test information.

    If the test request included large files, or if the application is
    serving a file, call :meth:`close` to close any open files and
    prevent Python showing a ``ResourceWarning``.

    .. versionchanged:: 2.2
        Set the ``default_mimetype`` to None to prevent a mimetype being
        assumed if missing.

    .. versionchanged:: 2.1
        Response instances cannot be treated as tuples.

    .. versionadded:: 2.0
        Test client methods always return instances of this class.
    Nr(rgztuple[TestResponse, ...]rzFc�Z��t�|�|||fi|��||_||_|||f|_yr�)�superr�rgrz�
_compat_tuple)r�rkr�rGrgrzr��	__class__s       �r>r�zTestResponse.__init__9s8���	����6�7�=�f�=�������%�v�w�6��r@c�&�|jd��S)z~The response data as text. A shortcut for
        ``response.get_data(as_text=True)``.

        .. versionadded:: 2.1
        T)�as_text)�get_datar�s r>�textzTestResponse.textGs���}�}�T�}�*�*r@)r�)rkzt.Iterable[bytes]r�rSrGrrgr(rzztuple[TestResponse]r�r$rIr�r%)r'r(r)r*�default_mimetyper-�__test__r�r&r��
__classcell__)r�s@r>r7r7s�����,�����&�%��
�H�(*�
7�#�7��7��	7�
�7�%�
7��7�
�7��+��+r@r7c���eZdZUdZded<	ded<	ded<	ded<	ded<	d	ed
<	ded<	ded
<	ded<	ded<	ded<	ded<	dd�Zdd�Zedd��Ze	dd��Z
e	dd��Zy)rFz�A cookie key, value, and parameters.

    The class itself is not a public API. Its attributes are documented for inspection
    with :meth:`.Client.get_cookie` only.

    .. versionadded:: 2.3
    rSrYrZ�decoded_key�
decoded_valuezdatetime | None�expiresr!�max_agerAr"rCryzbool | None�secure�	http_onlyrl�	same_sitec��||jk(xsT|jxrE|j|j�xr(|dt|j�jd�xrq||jk(xs`|j|j�xrC|t|j�|jjd�z
djd�S)Nrbr�)rArC�endswithr1ry�
startswith)r�r�rys   r>rPzCookie._matches_request�s����4�;�;�&�
��$�$�$�C��(�(����5�C�� 3�3�t�{�{�#3�"3�4�=�=�c�B�

�
�D�I�I��
�����	�	�*�U���T�Y�Y��$�)�)�*<�*<�S�*A�A�C�D�O�O�PS�T�
	
r@c�8�|j�d|j��S)N�=)rYrZr�s r>rQzCookie._to_request_header�s���(�(��1�T�Z�Z�L�)�)r@c��|jd�\}}}|jd�\}}}tt|�j��\}}	i}
|j	d�D]J}|jd�\}}
}|
r|j�nd|
|j�j
�<�L||j�|j�||	t|
jd��d|
vrt|
dxsd�nd|
jd�xs|d|
v|
jd�xs|jd�dxsdd	|
vd
|
v|
jd���S)
Nr�r�r�zmax-agerrAryr�r��httponly�samesite)rYrZr�r�r�r�rArCryr�r�r�)�	partition�nextrrcr�r��lowerrr�rJ�
rpartition)r�r�ryrZr
�parameters_strrYrZr�r��paramsr��k�sepres               r>rGzCookie._from_response_header�sG��$*�$4�$4�S�$9�!���>��(�(��-�
��Q��%)�,�v�*>�*D�*D�*F�%G�"��]���"�(�(��-�D����s�+�I�A�s�A�58����	�d�F�1�7�7�9�?�?�$�%�.���	�	���+�+�-�#�'��v�z�z�)�4�5�3<��3F�C��y�)�.�Q�/�D��:�:�h�'�6�;� ��.����F�#�E�t���s�';�A�'>�E�#��v�%� �F�*��j�j��,�

�
	
r@c�H�|j|j|jfSr�)rAryr�r�s r>rIzCookie._storage_key�s���{�{�D�I�I�t�'7�'7�7�7r@c�~�|jdk(xs-|jduxr|jj�dk(S)Nr)r�r��	timestampr�s r>rHzCookie._should_delete�s;���|�|�q� �
��L�L��$�F����)?�)?�)A�Q�)F�	
r@N)r�rSryrSrIr"r%)r�rSryrSrZrSrIzte.Self)rIztuple[str, str, str])rIr")r'r(r)r*r-rPrQr.rGr/rIrHr�r@r>rFrFQs����

�H�;��J�;���J���L�
��:�
���
�K�S�����I�/���#���%���%�
� *��
��
�2�8��8��
��
r@rF)Ti�N)
rA�t.Mapping[str, t.Any]rVr"r<rJrWrlrIztuple[t.IO[bytes], int, str]r�)r_r�rWrlrIztuple[str, bytes])rAr�rIzt.Iterator[tuple[str, t.Any]])r}r$r�r$rIr-r�)r�r,r�r-r^r"rIr�)P�
__future__r�dataclassesrOr�typingr2�collectionsrr�ior�	itertoolsrr�tempfiler	r
�urllib.parserrr
�	_internalrrr�datastructuresrrrrrrrr�rrrrr�sansio.multipartrrr r!r"r#�urlsr$r%�utilsr&r'�wrappers.requestr(�wrappers.responser)�wsgir*r+�
TYPE_CHECKING�typing_extensions�te�_typeshed.wsgir,r-r]r`rM�TypeVarrfrir�r2r4r�r_r7�	dataclassrFr�r@r>�<module>r�s���"���
��#�����"�� �!�#�#�+�+�)�(�-�*�)�#�%��%���&�"�&�#�"�.�&���"�#�%�'�!�!��?�?�"�.�.�
���	W$�
�W$��W$��W$��	W$�
"�W$�v;?�#�!�#�-7�#��#�
!� ����+�3L�M��J	'�J	'�Z�)��k?�k?�\
�0FK�E.�	�E.�#2�E.�>B�E.�+�E.�P<+�8�<+�~
���f
�f
��f
r@

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists