Ë
    +Ñ¦hJ  ã                   ó6   — d dl mZ d dlmZmZ  G d„ de«      Zy)é   )Úurlparse)Ú	text_typeÚuc                   óÂ   — e Zd ZdZd„ Zed„ «       Zed„ «       Zd„ Z	d„ Z
ed„ «       Zd„ Zd	„ Zed
„ «       Zd„ Zd„ Zed„ «       Zd„ Zed„ «       Zd„ Zd„ Zed„ «       Zd„ Zy)ÚNetloczÑ
    A netloc string (``username:password@hostname:port``).

    Contains methods for accessing and (non-destructively) modifying those four
    components of the netloc. All methods return new instances.
    c                 ó2   — t        d«      t        | «      fz  S )Nz
Netloc(%r))r   r   ©Úselfs    úH/var/www/timesheet/venv/lib/python3.12/site-packages/urlobject/netloc.pyÚ__repr__zNetloc.__repr__   s   € Ü�‹¤)¨D£/Ð!3Ñ3Ð3ó    c                 óZ   — d}|r|}|r|d|z   z  }|dz  }d}|�d|z  } | ||z   |z   «      S )z:Put together a :class:`Netloc` from its constituent parts.Ú ú:ú@z:%d© )ÚclsÚusernameÚpasswordÚhostnameÚportÚauth_stringÚport_strings          r   Ú	__unsplitzNetloc.__unsplit   sU   € ð ˆÙØ"ˆKÙØ˜s X™~Ñ-�Ø˜3ÑˆKØˆØÐØ $™,ˆKÙ�; Ñ)¨KÑ7Ó8Ð8r   c                 ó.   — | j                   j                  S )z1The username portion of this netloc, or ``None``.)Ú_Netloc__urlsplitr   r	   s    r   r   zNetloc.username   ó   € ð �‰×'Ñ'Ð'r   c                 ó&   — | j                  |¬«      S )z)Replace or add a username to this netloc.)r   ©Ú_Netloc__replace)r
   r   s     r   Úwith_usernamezNetloc.with_username$   ó   € à�~‰~ xˆ~Ó0Ð0r   c                 ó@   — | j                  «       j                  d«      S )z4Remove any username (and password) from this netloc.r   )Úwithout_passwordr!   r	   s    r   Úwithout_usernamezNetloc.without_username(   s   € à×$Ñ$Ó&×4Ñ4°RÓ8Ð8r   c                 ó.   — | j                   j                  S )z1The password portion of this netloc, or ``None``.)r   r   r	   s    r   r   zNetloc.password,   r   r   c                 óX   — |r| j                   st        d«      ‚| j                  |¬«      S )z£
        Replace or add a password to this netloc.

        Raises a ``ValueError`` if you attempt to add a password to a netloc
        with no username.
        z1Can't set a password on a netloc with no username)r   )r   Ú
ValueErrorr    )r
   r   s     r   Úwith_passwordzNetloc.with_password1   s*   € ñ ˜DŸMšMÜÐPÓQÐQØ�~‰~ xˆ~Ó0Ð0r   c                 ó$   — | j                  d«      S )z%Remove any password from this netloc.r   )r)   r	   s    r   r$   zNetloc.without_password>   s   € à×!Ñ! "Ó%Ð%r   c                 ó2   — | j                   | j                  fS )z6The username and password of this netloc as a 2-tuple.)r   r   r	   s    r   ÚauthzNetloc.authB   s   € ð —‘˜tŸ}™}Ð-Ð-r   c                 ó„   — | j                  «       }|r |j                  |«      j                  |Ž S |j                  |«      S )z:Replace or add a username and password in one method call.)Úwithout_authr!   r)   )r
   r   r   Únetlocs       r   Ú	with_authzNetloc.with_authG   sB   € à×"Ñ"Ó$ˆÙØ?�6×'Ñ'¨Ó1×?Ñ?ÀÐJÐJØ×#Ñ# HÓ-Ð-r   c                 ó>   — | j                  «       j                  «       S )N)r$   r%   r	   s    r   r.   zNetloc.without_authN   s   € Ø×$Ñ$Ó&×7Ñ7Ó9Ð9r   c                 ó.   — | j                   j                  S )z$The hostname portion of this netloc.)r   r   r	   s    r   r   zNetloc.hostnameQ   r   r   c                 ó&   — | j                  |¬«      S )z$Replace the hostname on this netloc.)r   r   )r
   r   s     r   Úwith_hostnamezNetloc.with_hostnameV   r"   r   c                 ó.   — | j                   j                  S )z<The port number on this netloc (as an ``int``), or ``None``.)r   r   r	   s    r   r   zNetloc.portZ   s   € ð �‰×#Ñ#Ð#r   c                 ó&   — | j                  |¬«      S )z,Replace or add a port number to this netloc.©r   r   )r
   r   s     r   Ú	with_portzNetloc.with_port_   ó   € à�~‰~ 4ˆ~Ó(Ð(r   c                 ó&   — | j                  d¬«      S )z(Remove any port number from this netloc.Nr7   r   r	   s    r   Úwithout_portzNetloc.without_portc   r9   r   c                 ó4   — t        j                  d| ddd«      S )Nr   )r   ÚSplitResultr	   s    r   Ú
__urlsplitzNetloc.__urlsplitg   s   € ä×#Ñ# B¨¨b°"°bÓ9Ð9r   c                 ó¦   — | j                   | j                  | j                  | j                  dœ}|j	                  |«        | j
                  di |¤ŽS )z0Replace any number of components on this netloc.)r   r   r   r   r   )r   r   r   r   ÚupdateÚ_Netloc__unsplit)r
   ÚparamsÚunsplit_argss      r   Ú	__replacezNetloc.__replacek   sI   € à$(§M¡MØ$(§M¡MØ$(§M¡MØ $§	¡	ñ+ˆð 	×Ñ˜FÔ#Øˆt�~‰~Ñ- Ñ-Ð-r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚclassmethodrA   Úpropertyr   r!   r%   r   r)   r$   r,   r0   r.   r   r4   r   r8   r;   r   r    r   r   r   r   r      sÊ   „ ñò4ð ñ9ó ð9ð ñ(ó ð(ò1ò9ð ñ(ó ð(ò1ò&ð ñ.ó ð.ò.ò:ð ñ(ó ð(ò1ð ñ$ó ð$ò)ò)ð ñ:ó ð:ó.r   r   N)Úcompatr   Úsixr   r   r   r   r   r   ú<module>rM      s   ðÝ ß ôm.ˆYõ m.r   