§
    ÎÑßj¶  ã                   ó>   — g d ¢Z d	d„Zd
d„Zd
d„Zd	d„Zd	d„Zd	d„ZdS ))ÚfixxpathÚfindtextÚfindattrÚfindallÚfindall_ignore_namespaceÚfindtext_ignore_namespaceNc                 ót   ‡— ‰s| S d                      ˆfd„|                      d¦  «        D ¦   «         ¦  «        S )Nú/c                 ó<   •— g | ]}d                       ‰|¦  «        ‘ŒS )z{{{}}}{})Úformat)Ú.0ÚeÚ	namespaces     €úF/opt/saltstack/salt/lib/python3.11/site-packages/libcloud/utils/xml.pyú
<listcomp>zfixxpath.<locals>.<listcomp>   s)   ø€ ÐOÐOÐO¸�Z×&Ò& y°!Ñ4Ô4ÐOÐOÐOó    )ÚjoinÚsplit©Úxpathr   s    `r   r   r      sC   ø€ àð ØˆØ�8Š8ÐOÐOÐOÐO¸e¿kºkÈ#Ñ>NÔ>NÐOÑOÔOÑPÔPÐPr   Ú c                 ó^   — |                       t          ||¬¦  «        ¦  «        }|dk    r|S |S )z˜
    :param no_text_value: Value to return if the provided element has no text
                          value.
    :type no_text_value: ``object``
    r   r   ©r   r   )Úelementr   r   Úno_text_valueÚvalues        r   r   r   !   s8   € ð ×Ò�X¨E¸YÐGÑGÔGÑHÔH€Eà�‚{€{ØÐØ€Lr   c                 óZ   — t          | |||¬¦  «        }|s|rt          | |d|¬¦  «        }|S )a+  
    Special version of findtext() which first tries to find the provided value using the provided
    namespace and in case no results are found we fallback to the xpath lookup without namespace.

    This is needed because some providers return some responses with namespace and some without.
    )r   r   r   r   N)r   )r   r   r   r   Úresults        r   r   r   .   sP   € õ Ø˜u°	Èðñ ô €Fð ð e�ið eÝ '°À$ÐVcÐdÑdÔdˆà€Mr   c                 óJ   — |                       t          ||¬¦  «        ¦  «        S ©Nr   r   ©r   r   r   s      r   r   r   @   s#   € Ø×Ò�H¨5¸IÐFÑFÔFÑGÔGÐGr   c                 óJ   — |                       t          ||¬¦  «        ¦  «        S r   )r   r   r    s      r   r   r   D   s!   € Ø�?Š?�8¨%¸9ÐEÑEÔEÑFÔFÐFr   c                 óV   — t          | ||¬¦  «        }|s|rt          | |d¬¦  «        }|S )a*  
    Special version of findall() which first tries to find the provided value using the provided
    namespace and in case no results are found we fallback to the xpath lookup without namespace.

    This is needed because some providers return some responses with namespace and some without.
    r    N)r   )r   r   r   r   s       r   r   r   H   sB   € õ ˜W¨E¸YÐGÑGÔG€Fàð G�ið GÝ °ÀÐFÑFÔFˆà€Mr   )N)Nr   )Ú__all__r   r   r   r   r   r   © r   r   ú<module>r%      s¤   ðð ð ð €ðQð Qð Qð Qð
ð 
ð 
ð 
ðð ð ð ð$Hð Hð Hð HðGð Gð Gð Gðð ð ð ð ð r   