HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/hyperflight/apps/inxpress/.venv/Lib/site-packages/dotenv/__pycache__/main.cpython-311.pyc
�

��iP4����ddlZddlZddlZddlZddlZddlZddlZddlZddlm	Z	ddl
mZddlm
Z
mZmZmZmZmZmZmZddlmZmZddlmZeedfZeje��Zd	efd
�Z deed	eefd�Z!Gd
�d��Z"	d/dededeed	eefd�Z#ededeed	eee
ee
effd���Z$			d0dedededededeed	eeeeeffd�Z%		d1dedededeed	eeeeff
d�Z&deeeeefd ed	eeeeffd!�Z'ded	eefd"�Z(			d2d$ed%ed&ed	efd'�Z)						d3deed)ee
ed*ed ed+edeed	efd,�Z*					d4deed)ee
ed*ed+edeed	eeeeffd-�Z+ded	efd.�Z,dS)5�N)�OrderedDict)�contextmanager)�IO�Dict�Iterable�Iterator�Mapping�Optional�Tuple�Union�)�Binding�parse_stream)�parse_variableszos.PathLike[str]�returnc�r�dtjvrdStjd���}|dvS)z8
    Determine if dotenv loading has been disabled.
    �PYTHON_DOTENV_DISABLEDF>�1�t�y�yes�true)�os�environ�casefold)�values �GD:\web\hyperflight\apps\inxpress\.venv\Lib\site-packages\dotenv/main.py�_load_dotenv_disabledrs=�� �r�z�1���u��J�/�0�9�9�;�;�E��2�2�2��mappingsc#�tK�|D]2}|jr%t�d|jj��|V��3dS)Nz;python-dotenv could not parse statement starting at line %s)�error�logger�warning�original�line)r �mappings  r�with_warn_for_invalid_linesr(#sX���������=�	��N�N�M�� �%�
�
�
��
�
�
�
�
�rc�&�eZdZ					ddeedeeededeeded	ed
dfd�Ze	d
e
eefd���Zd
eeeeffd
�Z
d
e
eeeeffd�Zd
efd�Zded
eefd�ZdS)�DotEnvNFT�dotenv_path�stream�verbose�encoding�interpolate�overriderc�h�||_||_d|_||_||_||_||_dS�N)r+r,�_dictr-r.r/r0)�selfr+r,r-r.r/r0s       r�__init__zDotEnv.__init__.s;��/:���)/���9=��
�$���'/��
�!,���&��
�
�
rc#�VK�|jrNt|j��r:t|j|j���5}|V�ddd��dS#1swxYwYdS|j�|jV�dS|jr"t�d|jpd��tj	d��V�dS)N�r.z3python-dotenv could not find configuration file %s.�.env�)
r+�_is_file_or_fifo�openr.r,r-r#�info�io�StringIO)r4r,s  r�_get_streamzDotEnv._get_stream?s������	"� 0��1A� B� B�	"��d�&���?�?�?�
�6�����
�
�
�
�
�
�
�
�
�
�
�
����
�
�
�
�
�
�
�[�	"��+�������|�
����I��$�.������+�b�/�/�!�!�!�!�!s�A�A�Ac���|jr|jS|���}|jr)tt	||j�����|_nt|��|_|jS)zReturn dotenv as dict)r0)r3�parser/r�resolve_variablesr0)r4�
raw_valuess  r�dictzDotEnv.dictNsj���:�	��:���Z�Z�\�\�
���	1�$�!�*�t�}�E�E�E���D�J�J�%�Z�0�0�D�J��z�rc#��K�|���5}tt|����D]}|j�|j|jfV��	ddd��dS#1swxYwYdSr2)r?r(r�keyr)r4r,r's   rrAzDotEnv.parse^s�����
�
�
�
�
�	5�6�6�|�F�7K�7K�L�L�
5�
5���;�5�!�+�w�}�4�4�4�4��
5�	5�	5�	5�	5�	5�	5�	5�	5�	5�	5�	5�	5����	5�	5�	5�	5�	5�	5s�7A�A �#A c���|���sdS|������D],\}}|tjvr|js�|�|tj|<�-dS)zI
        Load the current dotenv as system environment variable.
        FNT)rD�itemsrrr0)r4�k�vs   r�set_as_environment_variablesz#DotEnv.set_as_environment_variablesdss���y�y�{�{�	��5��I�I�K�K�%�%�'�'�	"�	"�D�A�q��B�J��
�t�}�
���
"� !��
�1�
���trrFc��|���}||vr||S|jr!t�d||j��dS)� zKey %s not found in %s.N)rDr-r#r$r+)r4rF�datas   r�getz
DotEnv.getssO���y�y�{�{���$�;�	���9���<�	M��N�N�4�c�4�;K�L�L�L��tr)NFNTT)�__name__�
__module__�__qualname__r
�StrPathr�str�boolr5rrr?rrDrrArKrO�rrr*r*-s\������%)��"&� ��'�'��g�&�'���C��!�'��	'�
�3�-�'��
'��'�
�'�'�'�'�"�"�X�b��g�.�"�"�"��^�"��d�3���
�-�.����� 5�x��c�8�C�=�&8� 9�:�5�5�5�5�
�d�
�
�
�
�
�s�
�x��}�
�
�
�
�
�
rr*�utf-8r+�
key_to_getr.c�L�t|d|����|��S)z
    Get the value of a given key from the given .env.

    Returns `None` if the key isn't found or doesn't have a value.
    T)r-r.)r*rO)r+rXr.s   r�get_keyrZ�s'���+�t�h�?�?�?�C�C�J�O�O�Or�pathc#�K�tj|�����tjd|d���5}d}	t||���5}||fV�ddd��n#1swxYwYn#t$r}|}Yd}~nd}~wwxYwddd��n#1swxYwY|�tj|j	|��dStj|j	��|d�)N�wF)�moder.�deleter7)�pathlib�Path�touch�tempfile�NamedTemporaryFiler;�
BaseException�shutil�move�namer�unlink)r[r.�destr"�source�errs      r�rewriterm�s{����
�L���������	�	$�#���	O�	O�	O��SW���	��d�X�.�.�.�
%�&��t�n�$�$�$�
%�
%�
%�
%�
%�
%�
%�
%�
%�
%�
%����
%�
%�
%�
%����	�	�	��E�E�E�E�E�E�����	����������������������
����D�I�t�$�$�$�$�$�
�	�$�)������s`�B�A4�A(�A4�(A,	�,A4�/A,	�0A4�3B�4
B
�>B�B�B
�
B�B� B�alwaysF�
key_to_set�value_to_set�
quote_mode�exportc��|dvrtd|�����|dkp|dko|���}|r*d�|�dd����}n|}|r
d|�d	|�d
�}n|�d	|�d
�}t	||���5\}	}
d}d}tt
|	����D]d}
|
j|kr|
�|��d
}�%|
�|
j	j
��|
j	j
�d
��}�e|s,|r|
�d
��|
�|��ddd��n#1swxYwYd
||fS)z�
    Adds or Updates a key/value to the given .env

    If the .env path given doesn't exist, fails instead of risking creating
    an orphan .env somewhere in the filesystem
    )rn�auto�neverzUnknown quote_mode: rnrtz'{}'�'z\'zexport �=�
r7FTN)�
ValueError�isalnum�format�replacermr(rrF�writer%�string�endswith)r+rorprqrrr.�quote�	value_out�line_outrkrj�replaced�missing_newliner's              r�set_keyr��s����4�4�>��<�
�<�<�=�=�=��(�"�
��f��;�\�%9�%9�%;�%;�!;�
�
�!��M�M�,�"6�"6�s�E�"B�"B�C�C�	�	� �	�
�1�7�Z�7�7�)�7�7�7��� �0�0�9�0�0�0��	��x�	0�	0�	0�
!�N�V�T�����2�<��3G�3G�H�H�	M�	M�G��{�j�(�
M��
�
�8�$�$�$�����
�
�7�+�2�3�3�3�&-�&6�&=�&F�&F�t�&L�&L�"L����	!��
!��
�
�4� � � ��J�J�x� � � �
!�
!�
!�
!�
!�
!�
!�
!�
!�
!�
!����
!�
!�
!�
!���\�)�)s�B7E�E�E�key_to_unsetc��tj�|��st�d|��d|fSd}t||���5\}}t
t|����D]/}|j|krd}�|�	|j
j���0	ddd��n#1swxYwY|s t�d||��d|fS||fS)z�
    Removes a given key from the given `.env` file.

    If the .env path given doesn't exist, fails.
    If the given key doesn't exist in the .env, fails.
    z(Can't delete from %s - it doesn't exist.NFr7Tz/Key %s not removed from %s - key doesn't exist.)rr[�existsr#r$rmr(rrFr}r%r~)r+r�rqr.�removedrkrjr's        r�	unset_keyr��s<���7�>�>�+�&�&�"����A�;�O�O�O��\�!�!��G�	��x�	0�	0�	0�4�N�V�T�2�<��3G�3G�H�H�	4�	4�G��{�l�*�
4�����
�
�7�+�2�3�3�3�3�		4�4�4�4�4�4�4�4�4�4�4�4����4�4�4�4��"����=�|�[�	
�	
�	
��\�!�!��L� � s�AB/�/B3�6B3�valuesr0c�j��i}|D]�\}}|�d}n�t|��}i�|r5��tj����|��n4��|����tj��d��fd�|D����}|||<��|S)Nr9c3�B�K�|]}|����V��dSr2)�resolve)�.0�atom�envs  �r�	<genexpr>z$resolve_variables.<locals>.<genexpr>s/�����A�A�4�T�\�\�#�.�.�A�A�A�A�A�Ar)r�updaterr�join)r�r0�
new_valuesrhr�result�atomsr�s       @rrBrB�s����,.�J��"�"���e��	B��F�F�#�E�*�*�E�,.�C��
'��
�
�2�:�&�&�&��
�
�:�&�&�&�&��
�
�:�&�&�&��
�
�2�:�&�&�&��W�W�A�A�A�A�5�A�A�A�A�A�F�!�
�4����rc#��K�tj�|��std���tj�|��rtj�|��}d}tj�|��}||kr\|V�tj�tj�|tjj����}||}}||k�ZdSdS)zL
    Yield directories starting from the given directory up to the root
    zStarting path not foundN)	rr[r��IOError�isfile�dirname�abspathr��pardir)r[�last_dir�current_dir�
parent_dirs    r�
_walk_to_rootr�
s������7�>�>�$���1��/�0�0�0�	�w�~�~�d���%��w���t�$�$���H��'�/�/�$�'�'�K�
�k�
!�8������W�_�_�R�W�\�\�+�r�w�~�%N�%N�O�O�
� +�Z�+���k�
!�8�8�8�8�8rr8�filename�raise_error_if_not_found�usecwdc��d�}d�}|s*|��s |��sttdd��rtj��}n�tj��}t
}|jj|ks)tj�	|jj��sI|j
�J�|j
}|jj|k� tj�	|jj���I|jj}tj�tj�|����}t|��D]5}	tj�|	|��}
t|
��r|
cS�6|rt!d���dS)z�
    Search in increasingly higher folders for the given file

    Returns path to the file if found, or an empty string otherwise
    c���ttd��sttd��rdS	tddddg���}n#t$rYdSwxYwt|d��S)	z<Decide whether this is running in a REPL or IPython notebook�ps1�ps2T�__main__N�__file__)�fromlistF)�hasattr�sys�
__import__�ModuleNotFoundError)�mains r�_is_interactivez$find_dotenv.<locals>._is_interactive*s~���3����	�'�#�u�"5�"5�	��4�	��j�$��
�|�L�L�L�D�D��"�	�	�	��5�5�	�����4��,�,�,�,s�A�
A�Ac�,�tj��duSr2)r��gettracerVrr�_is_debuggerz!find_dotenv.<locals>._is_debugger4s���|�~�~�T�)�)r�frozenFNzFile not foundr9)�getattrr�r�getcwd�	_getframer��f_code�co_filenamer[r��f_backr�r�r�r�r:r�)r�r�r�r�r�r[�frame�current_file�frame_filenamer��
check_paths           r�find_dotenvr�s���-�-�-�*�*�*��@���"�"�@�l�l�n�n�@���X�u�8U�8U�@��y�{�{����
�������l�&�,�6�	!�b�g�n�n��L�$�?
�?
�	!��<�+�+�+��L�E�	�l�&�,�6�	!�b�g�n�n��L�$�?
�?
�	!�
��1���w���r�w���~�>�>�?�?�� ��&�&�����W�\�\�'�8�4�4�
��J�'�'�	�����	� �(��&�'�'�'�
�2rTr,r-r/c���t��rt�d��dS|�|�t��}t	||||||���}|���S)aParse a .env file and then load all the variables found as environment variables.

    Parameters:
        dotenv_path: Absolute or relative path to .env file.
        stream: Text stream (such as `io.StringIO`) with .env content, used if
            `dotenv_path` is `None`.
        verbose: Whether to output a warning the .env file is missing.
        override: Whether to override the system environment variables with the variables
            from the `.env` file.
        encoding: Encoding to be used to read the file.
    Returns:
        Bool: True if at least one environment variable is set else False

    If both `dotenv_path` and `stream` are `None`, `find_dotenv()` is used to find the
    .env file with it's default parameters. If you need to change the default parameters
    of `find_dotenv()`, you can explicitly call `find_dotenv()` and pass the result
    to this function as `dotenv_path`.

    If the environment variable `PYTHON_DOTENV_DISABLED` is set to a truthy value,
    .env loading is disabled.
    zSpython-dotenv: .env loading disabled by PYTHON_DOTENV_DISABLED environment variableFN�r+r,r-r/r0r.)rr#�debugr�r*rK)r+r,r-r0r/r.�dotenvs       r�load_dotenvr�Rs���:�������a�	
�	
�	
��u��$�v�$�!�m�m��
�������
���F��.�.�0�0�0rc�t�|�|�t��}t||||d|������S)a�
    Parse a .env file and return its content as a dict.

    The returned dict will have `None` values for keys without values in the .env file.
    For example, `foo=bar` results in `{"foo": "bar"}` whereas `foo` alone results in
    `{"foo": None}`

    Parameters:
        dotenv_path: Absolute or relative path to the .env file.
        stream: `StringIO` object with .env content, used if `dotenv_path` is `None`.
        verbose: Whether to output a warning if the .env file is missing.
        encoding: Encoding to be used to read the file.

    If both `dotenv_path` and `stream` are `None`, `find_dotenv()` is used to find the
    .env file.
    NTr�)r�r*rD)r+r,r-r/r.s     r�
dotenv_valuesr��sP��.�$�v�$�!�m�m���������
����d�f�f�
rc���tj�|��rdS	tj|��}n#tt
f$rYdSwxYwtj|j��S)zN
    Return True if `path` exists and is either a regular file or a FIFO.
    TF)rr[r��stat�FileNotFoundError�OSError�S_ISFIFO�st_mode)r[�sts  rr:r:�sn��
�w�~�~�d�����t��
�W�T�]�]�����w�'�����u�u������=���$�$�$s�8�A
�A
)rW)rnFrW)rnrW)r8FF)NNFFTrW)NNFTrW)-r=�loggingrr`rfr�r�rc�collectionsr�
contextlibr�typingrrrrr	r
rr�parserrr�	variablesrrTrS�	getLoggerrPr#rUrr(r*rZrmr�r�rBr�r�r�r�r:rVrr�<module>r�s���	�	�	�	�����	�	�	�	�����
�
�
�
�����
�
�
�
�����#�#�#�#�#�#�%�%�%�%�%�%�P�P�P�P�P�P�P�P�P�P�P�P�P�P�P�P�P�P�P�P�)�)�)�)�)�)�)�)�&�&�&�&�&�&���'�'�
(��	��	�8�	$�	$��3�t�3�3�3�3��(�7�*;����@Q�����P�P�P�P�P�P�P�P�l&�
P�
P��
P��
P��s�m�
P��c�]�	
P�
P�
P�
P���
���s�m���e�B�s�G�R��W�$�%�&�������2��%�
-*�-*��-*��-*��-*��	-*�

�-*��s�m�
-*��8�D�>�3��#�$�-*�-*�-*�-*�f�%�	!�!��!��!��!��s�m�	!�
�8�D�>�3���!�!�!�!�B��U�3���
�-�.�/����
�S�(�3�-�
� �����28��8���
�8�8�8�8�&�%*��0�0��0�"�0�
�0�	�	0�0�0�0�h&*� $����%�
.1�.1��'�"�.1��R��W��.1��.1��	.1�
�.1��s�m�
.1�
�.1�.1�.1�.1�d&*� $���%�!
�!
��'�"�!
��R��W��!
��!
��	!
�
�s�m�!
�
�#�x��}�
��
!
�!
�!
�!
�H%�7�%�t�%�%�%�%�%�%r