Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/urllib3/util/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/urllib3/util/__pycache__/url.cpython-310.pyc
o

�g�6�@s�ddlmZddlZddlmZddlmZddlZgd�ZdZ	e�
d�Ze�
d	�Ze�
d
ej
ejB�ZdZdZd
jeed�Zeed�Zgd�ZdZdd�dd�eD��dZdedZdededZdZe�
d�Ze�
ded�Ze�
ded�Ze�
ded�Ze�
dedd�d�Z e�
d ed!�Z!d"eeefZ"e�
e"ej
ejB�Z#e$d#�Z%e$d$�Z&e%e&Bd%hBZ'e'd&d'hBZ(e(d(hBZ)Z*Gd)d*�d*ed*e��Z+d+d,�Z,d<d.d/�Z-d0d1�Z.d2d3�Z/d4d5�Z0d6d7�Z1d8d9�Z2d:d;�Z3dS)=�)�absolute_importN)�
namedtuple�)�LocationParseError��scheme�auth�host�port�path�query�fragment)�http�httpsNz%[a-fA-F0-9]{2}z^(?:[a-zA-Z][a-zA-Z0-9+-]*:|/)zS^(?:([a-zA-Z][a-zA-Z0-9+.-]*):)?(?://([^\\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?$z(?:[0-9]{1,3}\.){3}[0-9]{1,3}z[0-9A-Fa-f]{1,4}z(?:{hex}:{hex}|{ipv4}))�hex�ipv4)r�ls32)	z(?:%(hex)s:){6}%(ls32)sz::(?:%(hex)s:){5}%(ls32)sz%(?:%(hex)s)?::(?:%(hex)s:){4}%(ls32)sz2(?:(?:%(hex)s:)?%(hex)s)?::(?:%(hex)s:){3}%(ls32)sz6(?:(?:%(hex)s:){0,2}%(hex)s)?::(?:%(hex)s:){2}%(ls32)sz/(?:(?:%(hex)s:){0,3}%(hex)s)?::%(hex)s:%(ls32)sz'(?:(?:%(hex)s:){0,4}%(hex)s)?::%(ls32)sz&(?:(?:%(hex)s:){0,5}%(hex)s)?::%(hex)sz(?:(?:%(hex)s:){0,6}%(hex)s)?::zDABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._!\-~z(?:�|cCsg|]}|t�qS�)�_subs��.0�xrr�2/usr/lib/python3/dist-packages/urllib3/util/url.py�
<listcomp>6�r�)z
(?:%25|%)(?:[z]|%[a-fA-F0-9]{2})+z\[z)?\]z!(?:[^\[\]%:/?#]|%[a-fA-F0-9]{2})*z!^(/[^?#]*)(?:\?([^#]*))?(?:#.*)?$�^�$����(z)\]$z^(%s|%s|%s)(?::([0-9]{0,5}))?$zBABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-~z!$&'()*+,;=�:�@�/�?csleZdZdZdZ							d�fdd�	Zedd��Zedd	��Zed
d��Z	edd
��Z
dd�Z�ZS)�Urlz�
    Data structure for representing an HTTP URL. Used as a return value for
    :func:`parse_url`. Both the scheme and host are normalized as they are
    both case-insensitive according to RFC 3986.
    rNc
sD|r|�d�sd|}|dur|��}tt|��||||||||�S)Nr#)�
startswith�lower�superr%�__new__)�clsrrr	r
rrr
��	__class__rrr)[s

�zUrl.__new__cC�|jS)z@For backwards-compatibility with urlparse. We're nice like that.)r	��selfrrr�hostnamemszUrl.hostnamecCs&|jpd}|jdur|d|j7}|S)z)Absolute path including the query string.r#Nr$)rr)r/�urirrr�request_urirs

zUrl.request_uricCs|jrd|j|jfS|jS)z(Network location including host and portz%s:%d)r
r	r.rrr�netloc|sz
Url.netlocc	Cs�|\}}}}}}}d}|dur||d7}|dur||d7}|dur'||7}|dur3|dt|�7}|dur;||7}|durE|d|7}|durO|d|7}|S)a�
        Convert self into a url

        This function should more or less round-trip with :func:`.parse_url`. The
        returned url may not be exactly the same as the url inputted to
        :func:`.parse_url`, but it should be equivalent by the RFC (e.g., urls
        with a blank port will have : removed).

        Example: ::

            >>> U = parse_url('http://google.com/mail/')
            >>> U.url
            'http://google.com/mail/'
            >>> Url('http', 'username:password', 'host.com', 80,
            ... '/path', 'query', 'fragment').url
            'http://username:password@host.com:80/path?query#fragment'
        �Nz://r"r!r$�#)�str)	r/rrr	r
rrr
�urlrrrr7�s"zUrl.urlcCr-�N)r7r.rrr�__str__�szUrl.__str__)NNNNNNN)
�__name__�
__module__�__qualname__�__doc__�	__slots__r)�propertyr0r2r3r7r9�
__classcell__rrr+rr%Rs(�

	

'r%cCsvd}d}|D]}|�|�}|dkrq|dus||kr|}|}q|dus'|dkr,|ddfS|d|�||dd�|fS)a�
    .. deprecated:: 1.25

    Given a string and an iterable of delimiters, split on the first found
    delimiter. Return two split parts and the matched delimiter.

    If not found, then the first part is the full input string.

    Example::

        >>> split_first('foo/bar?baz', '?/=')
        ('foo', 'bar?baz', '/')
        >>> split_first('foo/bar?baz', '123')
        ('foo/bar?baz', '', None)

    Scales linearly with number of delims. Not ideal for large number of delims.
    Nrr4�)�find)�s�delims�min_idx�	min_delim�d�idxrrr�split_first�s
�
rI�utf-8c
Cs�|dur|St�|�}t�dd�|�\}}|�dd�}||�d�k}t�}tdt|��D]7}|||d�}t	|�}	|r@|dksJ|	d	krO|�
�|vrO||7}q,|�dt|	�d
d����
d
����q,|�
|�S)zfPercent-encodes a URI component without reapplying
    onto an already percent-encoded component.
    NcSs|�d���S)Nr)�group�upper)�matchrrr�<lambda>�sz'_encode_invalid_chars.<locals>.<lambda>rJ�
surrogatepass�%rrA�r)�six�ensure_text�
PERCENT_RE�subn�encode�count�	bytearray�range�len�ord�decode�extendr�zfillrL)
�	component�
allowed_chars�encoding�percent_encodings�	uri_bytes�is_percent_encoded�encoded_component�i�byte�byte_ordrrr�_encode_invalid_chars�s$
�*
ricCs�|�d�}g}|D]}|dkrq	|dkr|�|�q	|r |��q	|�d�r2|r,|dr2|�dd�|�d�r<|�d�d�|�S)Nr#�.z..rr4)z/.z/..)�split�append�popr&�insert�endswith�join)r�segments�output�segmentrrr�_remove_path_dot_segments�s
�


rtcCs�|rrt|tj�r
t�|�}|tvrrt�|�}|r]t�|�}|rY|�	d�\}}|||�}|�
d�r<|dkr<|dd�}n|dd�}dt|t�}|d|��
�|||d�S|�
�St�|�srt�d�dd�|�d�D���S|S)	NrAz%25��%�.cSsg|]}t|��qSr)�_idna_encode)r�labelrrrr)rz#_normalize_host.<locals>.<listcomp>rj)�
isinstancerR�binary_type�
ensure_str�NORMALIZABLE_SCHEMES�
IPV6_ADDRZ_RErM�
ZONE_ID_RE�search�spanr&ri�UNRESERVED_CHARSr'�IPV4_RErprk)r	r�is_ipv6rM�start�end�zone_idrrr�_normalize_hosts*


 
�r�cCs�|rCtdd�|D��rCzddl}Wnty"t�td�d�Ynwz|j|��ddd�WS|jyBt�td|�d�Ynw|���d�S)	NcSsg|]}t|�dk�qS)rQ)r[rrrrr/sz _idna_encode.<locals>.<listcomp>rz-Unable to parse URL without the 'idna' moduleT)�strict�
std3_rulesz#Name '%s' is not a valid IDNA label�ascii)	�any�idna�ImportErrorrR�
raise_fromrrVr'�	IDNAError)�namer�rrrrx.s"����rxcCs>t�|���\}}t|t�}t|t�}|dur|d|7}|S)zHPercent-encodes a request target so that there are no invalid charactersNr$)�	TARGET_RErM�groupsri�
PATH_CHARS�QUERY_CHARS)�targetrrrrr�_encode_target@s

r�c	s�|st�S|}t�|�sd|}z�t�|���\}}}}}|dup&|��tv}|r-|��}|rT|�d�\}}	}
|p:d}t	�|
���\}}|rM|rMt
|t�}|dkrSd}nd\}}}|durst|�}d|krndksst
|��t
|��t||�}|r�|r�t|�}t
|t�}|r�|r�t
|t�}|r�|r�t
|t�}Wnttfy�t�t
|�d�YSw|s�|dus�|dur�d}nd}t|tj�r�tj�ntj��fdd	�}
t|
|�|
|�|
|�||
|�|
|�|
|�d
�S)a

    Given a url, return a parsed :class:`.Url` namedtuple. Best-effort is
    performed to parse incomplete urls. Fields not provided will be None.
    This parser is RFC 3986 compliant.

    The parser logic and helper functions are based heavily on
    work done in the ``rfc3986`` module.

    :param str url: URL to parse into a :class:`.Url` namedtuple.

    Partly backwards-compatible with :mod:`urlparse`.

    Example::

        >>> parse_url('http://google.com/mail/')
        Url(scheme='http', host='google.com', port=None, path='/mail/', ...)
        >>> parse_url('google.com:80')
        Url(scheme=None, host='google.com', port=80, path=None, ...)
        >>> parse_url('/foo?bar')
        Url(scheme=None, host=None, port=None, path='/foo', query='bar', ...)
    z//Nr"r4)NNNri��cs|dur|S�|�Sr8r)r��ensure_funcrr�ensure_type�szparse_url.<locals>.ensure_typer)r%�	SCHEME_REr��URI_RErMr�r'r}�
rpartition�
_HOST_PORT_REri�USERINFO_CHARS�intrr�rtr�r��FRAGMENT_CHARS�
ValueError�AttributeErrorrRr�rz�	text_typerSr|)r7�
source_urlr�	authorityrrr
�
normalize_urir�_�	host_portr	r
r�rr�r�	parse_urlJsn

�
�



���r�cCst|�}|jpd|j|jfS)z4
    Deprecated. Use :func:`parse_url` instead.
    r)r�rr0r
)r7�prrr�get_host�sr�)rJ)4�
__future__r�re�collectionsr�
exceptionsrrR�	url_attrsr}�compilerTr��UNICODE�DOTALLr��IPV4_PAT�HEX_PAT�format�LS32_PATr�_variations�UNRESERVED_PATrp�IPV6_PAT�ZONE_ID_PAT�IPV6_ADDRZ_PAT�REG_NAME_PATr�r��IPV6_REr~�BRACELESS_IPV6_ADDRZ_REr�_HOST_PORT_PATr��setr��SUB_DELIM_CHARSr�r�r�r�r%rIrirtr�rxr�r�r�rrrr�<module>sf


�	

��]
#"
a

Spamworldpro Mini