Ë
    ìO´jÑ  ã                   óî  — d dl Z d dlZd dlZd dlZd dlmZ d dlmZmZm	Z	m
Z
mZmZ ej                  dk(  rd dlmZ 	 d dlZddlmZmZmZ dd	lmZ d
ee   fd„Z ej:                  «        ej<                  dd e«        ej>                  d¬«      d¬«       ej<                  ddd ej@                  g d¢«      d¬«       ej<                  dddejB                  d¬«       ejD                  e¬«      ejF                  dejH                  dededed
df
d „«       «       «       «       «       «       Z%ed!ejL                  d
e
ee      fd"„«       Z'e%jQ                  d#¬$«      ejF                   ej<                  d%d&d' ej@                  g d(¢«      d)¬«      dejH                  d&ed
dfd*„«       «       «       Z)e%jQ                  d+¬$«      ejF                   ejT                  d,d¬-«       ejT                  d.d¬-«      dejH                  d,ed.ed
dfd/„«       «       «       «       Z+e%jQ                  «       ejF                   ejT                  d,d¬-«      dejH                  d,ed
dfd0„«       «       «       Z,e%jQ                  «       ejF                   ejT                  d,d¬-«      dejH                  d,ed
dfd1„«       «       «       Z-e%jQ                  dddd2œ¬3«      ejF                   ej<                  d4dd5¬6«       ejT                  d7d8ej\                  ¬9«      dejH                  d:e/d7e0ed;f   d
dfd<„«       «       «       «       Z1d=ee   d>e	eef   d
dfd?„Z2y# e$ r1 ej$                  j'                  d«        ej(                  d«       Y �Œ2w xY w)@é    N)Úcontextmanager)ÚIOÚAnyÚDictÚIteratorÚListÚOptionalÚwin32)ÚPopenzkIt seems python-dotenv is not installed with cli option. 
Run pip install "python-dotenv[cli]" to fix this.é   )Údotenv_valuesÚset_keyÚ	unset_key)Ú__version__Úreturnc                  óŽ   — 	 t        j                  «       } t         j                  j	                  | d«      }|S # t        $ r Y yw xY w)zZ
    Return a path for the ${pwd}/.env file.

    If pwd does not exist, return None.
    Nz.env)ÚosÚgetcwdÚFileNotFoundErrorÚpathÚjoin)Úcwdr   s     úa/var/www/origus_pro_usr/data/www/origus.pro/core/.venv/lib/python3.12/site-packages/dotenv/cli.pyÚenumerate_envr      sA   € ðÜ�i‰i‹kˆô �7‰7�<‰<˜˜VÓ$€DØ€Køô ò Ùðús   ‚8 ¸	AÁAz-fz--fileT)Ú	file_okayzNLocation of the .env file, defaults to .env file in current working directory.)ÚdefaultÚtypeÚhelpz-qz--quoteÚalways)r   ÚneverÚautozbWhether to quote or not the variable values. Default mode is always. This does not affect parsing.z-ez--exportFz;Whether to write the dot file as an executable bash script.)ÚversionÚctxÚfileÚquoteÚexportc                 ó   — |||dœ| _         y)zAThis script is used to set, get or unset values from a .env file.)ÚQUOTEÚEXPORTÚFILEN)Úobj)r#   r$   r%   r&   s       r   Úclir,   &   s   € ð4 ¨¸Ñ>€C…Gó    r   c              #   óè   K  — 	 t        | «      5 }|–— ddd«       y# 1 sw Y   yxY w# t        $ r=}t        d|› �t        j                  ¬«       t        j
                  d«       Y d}~yd}~ww xY w­w)z~
    Open a file and yield the corresponding (decoded) stream.

    Exits with error code 2 if the file cannot be opened.
    NzError opening env file: ©r$   é   )ÚopenÚOSErrorÚprintÚsysÚstderrÚexit)r   ÚstreamÚexcs      r   Ústream_filer9   C   s_   è ø€ ðÜ�$‹Zð 	˜6ØŠL÷	÷ 	ñ 	ûäò ÜÐ(¨¨Ð.´S·Z±ZÕ@Ü�‰��‰ûðüsC   ‚A2„) �”) œA2�&¢) ¥A2¦) ©	A/²3A*Á%A2Á*A/Á/A2Úlist)Únamez--formatÚoutput_formatÚsimple)r=   ÚjsonÚshellr&   zlThe format in which to display the list. Default format is simple, which displays name=value without quotes.c                 óˆ  — | j                   d   }t        |«      5 }t        |¬«      }ddd«       |dk(  r,t        j                  t        j                  dd¬«      «       y|dk(  rd	nd
}t        «      D ]?  }||   }|€Œ|dv rt        j                  |«      }t        j                  |› |› d|› �«       ŒA y# 1 sw Y   Œ‘xY w)z!Display all the stored key/value.r*   ©r7   Nr>   r0   T)ÚindentÚ	sort_keysr&   zexport Ú )r&   r?   ú=)
r+   r9   r   ÚclickÚechor>   ÚdumpsÚsortedÚshlexr%   )r#   r<   r$   r7   ÚvaluesÚprefixÚkÚvs           r   Úlist_valuesrO   S   s½   € ð �7‰7�6‰?€Dä	�TÓ	ð .˜fÜ fÔ-ˆ÷.ð ˜ÒÜ�
‰
”4—:‘:˜f¨Q¸$Ô?Õ@à+¨xÒ7‘¸RˆÜ˜“ò 	/ˆAØ�q‘	ˆAØ‰}Ø Ð$7Ñ7ÜŸ™ A›�AÜ—
‘
˜f˜X a S¨¨!¨Ð-Õ.ñ	/÷.ð .ús   ›B8Â8CÚsetÚkey)ÚrequiredÚvaluec                 óè   — | j                   d   }| j                   d   }| j                   d   }t        |||||«      \  }}}|rt        j                  |› d|› �«       yt	        j
                  d«       y)z“
    Store the given key/value.

    This doesn't follow symlinks, to avoid accidentally modifying a file at a
    potentially untrusted path.
    r*   r(   r)   rE   r   N)r+   r   rF   rG   r4   r6   )r#   rQ   rS   r$   r%   r&   Úsuccesss          r   Ú	set_valuerV   p   sk   € ð �7‰7�6‰?€DØ�G‰G�GÑ€EØ�W‰W�XÑ€FÜ! $¨¨U°E¸6ÓBÑ€GˆS�%ÙÜ�
‰
�c�U˜!˜E˜7Ð#Õ$ä�‰��r-   c                 óö   — | j                   d   }t        |«      5 }t        |¬«      }ddd«       j                  |«      }|rt	        j
                  |«       yt        j                  d«       y# 1 sw Y   ŒHxY w)z%Retrieve the value for the given key.r*   rA   Nr   )r+   r9   r   ÚgetrF   rG   r4   r6   )r#   rQ   r$   r7   rK   Ústored_values         r   rX   rX   †   sc   € ð
 �7‰7�6‰?€Dä	�TÓ	ð .˜fÜ fÔ-ˆ÷.ð —:‘:˜c“?€LÙÜ�
‰
�<Õ ä�‰��÷.ð .ús   ›A/Á/A8c                 óÀ   — | j                   d   }| j                   d   }t        |||«      \  }}|rt        j                  d|› �«       yt	        j
                  d«       y)z�
    Removes the given key.

    This doesn't follow symlinks, to avoid accidentally modifying a file at a
    potentially untrusted path.
    r*   r(   zSuccessfully removed r   N)r+   r   rF   rG   r4   r6   )r#   rQ   r$   r%   rU   s        r   Úunsetr[   —   sS   € ð �7‰7�6‰?€DØ�G‰G�GÑ€EÜ˜T 3¨Ó.�L€GˆSÙÜ�
‰
Ð*¨3¨%Ð0Õ1ä�‰��r-   )Úallow_extra_argsÚallow_interspersed_argsÚignore_unknown_options)Úcontext_settingsz--override/--no-overridezKOverride variables from the environment file with those from the .env file.)r   r   Úcommandlineéÿÿÿÿ)Únargsr   Úoverride.c                 ó²  — | j                   d   }t        j                  j                  |«      st	        j
                  d|› d�| ¬«      ‚t        |«      j                  «       D ��ci c]  \  }}|�|s|t        j                  vr||“Œ  }}}|s*t	        j                  d«       t        j                  d«       t        g |¢| j                  ¢|«       yc c}}w )z/Run command with environment variables present.r*   zInvalid value for '-f' "z" does not exist.)r#   NzNo command given.r   )r+   r   r   ÚisfilerF   ÚBadParameterr   ÚitemsÚenvironrG   r4   r6   Úrun_commandÚargs)r#   rc   r`   r$   rM   rN   Údotenv_as_dicts          r   Úrunrl   ª   sÅ   € ð  �7‰7�6‰?€DÜ�7‰7�>‰>˜$ÔÜ× Ñ Ø'¨ vÐ-?Ð@Àcô
ð 	
ô
 $ DÓ)×/Ñ/Ó1÷áˆQ�Øˆ=™h¨!´2·:±:Ñ*=ð 	
ˆ1‰ð€Nñ ñ Ü�
‰
Ð&Ô'Ü�‰�ŒäÐ)�+Ð) §¡Ð)¨>Õ:ùós   Á&#CÚcommandÚenvc                 ó\  — t         j                  j                  «       }|j                  |«       t        j
                  dk(  rD	 t        | ddd|¬«      }j                  «       \  }}t	        j                  |j                  «       y
	 t        j                  | d   | |¬	«       y
# t        $ r9 t        d| d   › �t        j                  ¬«       t	        j                  d«       Y Œ‘w xY w# t        $ r9 t        d| d   › �t        j                  ¬«       t	        j                  d«       Y y
w xY w)aå  Replace the current process with the specified command.

    Replaces the current process with the specified command and the variables from `env`
    added in the current environment variables.

    Parameters
    ----------
    command: List[str]
        The command and it's parameters
    env: Dict
        The additional environment variables

    Returns
    -------
    None
        This function does not return any value. It replaces the current process with the new one.

    r
   Tr   F)Úuniversal_newlinesÚbufsizer?   rn   zCommand not found: r/   r   )rj   rn   N)r   rh   ÚcopyÚupdater4   Úplatformr   r   r3   r5   r6   ÚcommunicateÚ
returncodeÚexecvpe)rm   rn   Úcmd_envÚpÚ_s        r   ri   ri   Ì   së   € ô* �j‰j�o‰oÓ€GØ‡N�N�3Ôä
‡|�|�wÒð	ÜØ¨D¸!À5ÈgôˆAð �}‰}‹‰ˆˆ1ä�‰�—‘Õð	Ü�J‰J�w˜q‘z¨°WÖ=øô !ò 	ÜÐ'¨°©
 |Ð4¼3¿:¹:ÕFÜ�H‰H�QŽKð	ûô !ò 	ÜÐ'¨°©
 |Ð4¼3¿:¹:ÕFÜ�H‰H�QŽKð	ús$   ÁB$ ÂC) Â$?C&Ã%C&Ã)?D+Ä*D+)3r>   r   rJ   r4   Ú
contextlibr   Útypingr   r   r   r   r   r	   rt   Ú
subprocessr   rF   ÚImportErrorr5   Úwriter6   Úmainr   r   r   r"   r   Ústrr   ÚgroupÚoptionÚPathÚChoiceÚBOOLÚversion_optionÚpass_contextÚContextr,   ÚPathLiker9   rm   rO   ÚargumentrV   rX   r[   ÚUNPROCESSEDÚboolÚtuplerl   ri   © r-   r   ú<module>r�      s  ðÛ Û 	Û Û 
Ý %ß :× :à‡<�<�7ÒÝ ðÛ÷ 4Ñ 3Ý  ð�x ‘}ó ð €‡�ƒØ€‡�ØØÙ‹OØ	ˆ�‰˜dÔ	#Ø	Yôð €‡�ØØØØ	ˆ�‰Ò1Ó	2Ø	môð €‡�ØØØØ	�‰Ø	Fôð €×Ñ˜kÔ*Ø×Ñð?ˆU�]‰]ð ? #ð ?¨cð ?¸3ð ?À4ò ?ó ó +óóóó ð0?ð
 ð�b—k‘kð  h¨r°#©wÑ&7ò ó ðð ‡��&€ÓØ×ÑØ€‡�ØØØØ	ˆ�‰Ò;Ó	<ð
0ôð/�U—]‘]ð /°3ð /¸4ò /óó ó ð/ð& ‡��%€ÓØ×ÑØ€‡�� Ô%Ø€‡�� $Ô'ð�5—=‘=ð  sð °3ð ¸4ò ó (ó &ó ó ðð$ ‡�ƒØ×ÑØ€‡�� Ô%ðˆU�]‰]ð  ð ¨ò ó &ó ó ðð ‡�ƒØ×ÑØ€‡�� Ô%ðˆu�}‰}ð  3ð ¨4ò ó &ó ó ðð  ‡�à Ø#(Ø"&ñð ó ð ×ÑØ€‡�ØØØ	Vôð
 €‡�� R¨e×.?Ñ.?Ô@ð;ˆU�]‰]ð ; dð ;¸¸sÀC¸x¹ð ;ÈTò ;ó Aóó óð;ð(+˜˜c™ð +¨¨c°3¨h©ð +¸Dô +øð ò Ø‡J�J×Ñð	<ôð €C‡H�HˆQ‡Kðús   ½L> Ì>2M4Í3M4