Current File : //proc/self/root/usr/lib/python3.12/__pycache__/pathlib.cpython-312.pyc
�

�(�g�����dZddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
ddlmZm
Z
mZmZddlmZmZmZmZmZmZmZddlmZgd�Zehd�d	D�chc]}d
|����	c}zd	D�chc]}d|����	c}z�ZdZd
ZdZ ee
eefZ!eee fZ"d�Z#ejHd��Z%ejLd�jOd�\Z(Z)e*e+e(�e+e)��Z,e-j]ddd��e-j]ddd��d�Z/ej`�d��Z1ej`d��d��Z2ej`�d��Z3Gd�d�Z4Gd�d �Z5Gd!�d"e4�Z6Gd#�d$e4�Z7Gd%�d&e4�Z8Gd'�d(e8�Z9Gd)�d*e
�Z:Gd+�d,e;�Z<ejzj}e<�Gd-�d.e<�Z?Gd/�d0e<�Z@Gd1�d2e<�ZAGd3�d4eAe?�ZBGd5�d6eAe@�ZCycc}wcc}w)7z�Object-oriented filesystem paths.

This module provides classes to represent abstract paths and concrete
paths with operations that have semantics appropriate for different
operating systems.
�N)�Sequence)�ENOENT�ENOTDIR�EBADF�ELOOP)�S_ISDIR�S_ISLNK�S_ISREG�S_ISSOCK�S_ISBLK�S_ISCHR�S_ISFIFO)�quote_from_bytes)�PurePath�
PurePosixPath�PureWindowsPath�Path�	PosixPath�WindowsPath>�CONIN$�CONOUT$�AUX�CON�NUL�PRNu123456789¹²³�COM�LPT��{i�c�R�t|dd�tvxst|dd�tvS)N�errno�winerror)�getattr�_IGNORED_ERRNOS�_IGNORED_WINERRORS)�	exceptions �/usr/lib/python3.12/pathlib.py�
_ignore_errorr(3s1���I�w��-��@�
G��I�z�4�0�4F�F�H�c�*�|jd�dk(S)N�Aa)�normcase)�flavours r'�_is_case_sensitiver.8s�����D�!�T�)�)r)�_�
�/)r1r0�\)r2r0)r1r2c�&�|d}|s
t�S|dk(rKd}|t|�kr$||dk(r|dz
}|t|�kr	||dk(r�||d}d|vrt}n-t}n&|dd}|dk(rt}nd|vrtd��t}|||||�S)Nr�**��..z:Invalid pattern: '**' can only be an entire path component)�_TerminatingSelector�len� _DoubleRecursiveWildcardSelector�_RecursiveWildcardSelector�_ParentSelector�
ValueError�_WildcardSelector)�
pattern_partsr-�case_sensitive�pat�child_parts_idx�child_parts�clss       r'�_make_selectorrDPs���
��
�C��#�%�%�
�d�{�����M� 2�2�}�_�7U�Y]�7]��q� �O���M� 2�2�}�_�7U�Y]�7]�#�O�$4�5���;��2�C�,�C�#�A�B�'���$�;�!�C�
�S�[��Y�Z�Z�#�C��s�K��.�9�9r)�)�maxsizec��|rtjntj}tjt	j
|�|�jS�N)�re�NOFLAG�
IGNORECASE�compile�fnmatch�	translate�match)r@r?�flagss   r'�_compile_patternrQis5��'�B�I�I�R�]�]�E�
�:�:�g�'�'��,�e�4�:�:�:r)c�h�dg}|jd��D]?}|dk(rd}n$|dk(rd}ntj|�t}|j	|��A|j	d�t
j}|s|t
jz}tjd	j|�|�
�S)aYCompile the given pattern lines to an `re.Pattern` object.

    The *pattern_lines* argument is a glob-style pattern (e.g. '*/*.py') with
    its path separators and newlines swapped (e.g. '*
*.py`). By using
    newlines to separate path components, and not setting `re.DOTALL`, we
    ensure that the `*` wildcard cannot match path separators.

    The returned `re.Pattern` object may have its `match()` method called to
    match a complete pattern, or `search()` to match from the right. The
    argument supplied to these methods must also have its path separators and
    newlines swapped.
    �^T)�keependsz*
z.+\n�*z.+z\Z�)rP)
�
splitlinesrMrN�_FNMATCH_SLICE�appendrI�	MULTILINErKrL�join)�
pattern_linesr?�parts�partrPs     r'�_compile_pattern_linesr_os��� �E�E��(�(�$�(�7�
���5�=��D�
�S�[��D��$�$�T�*�>�:�D�
���T��
�
�L�L����L�L�E��
������
�:�:�b�g�g�e�n�E�2�2r)c��eZdZdZd�Zd�Zy)�	_SelectorzYA selector matches a specific glob pattern part against the children
    of a given path.c�v�||_|rt|||�|_d|_yt	�|_d|_y)NTF)rBrD�	successor�dironlyr7)�selfrBr-r?s    r'�__init__z_Selector.__init__�s5��&����+�K��.�Q�D�N��D�L�1�3�D�N� �D�Lr)c��t|�}|j}|j�stg�S|j	||�S)zuIterate over all child paths of `parent_path` matched by this
        selector.  This can contain parent_path itself.)�type�_scandir�is_dir�iter�_select_from)re�parent_path�path_cls�scandirs    r'�select_fromz_Selector.select_from�sA����$���#�#���!�!�#���8�O�� � ��g�6�6r)N)�__name__�
__module__�__qualname__�__doc__rfrp�r)r'rara�s���!�7r)rac��eZdZd�Zy)r7c#�K�|��y�wrHru)rermros   r'rlz!_TerminatingSelector._select_from�s������s�N)rqrrrsrlrur)r'r7r7�s��r)r7c��eZdZd�Zd�Zy)r;c�4�tj||||�yrH�rarf)re�namerBr-r?s     r'rfz_ParentSelector.__init__�������4��g�~�Fr)c#�xK�|jd�}|jj||�D]}|���y�w)Nr6)�_make_child_relpathrcrl)rermro�path�ps     r'rlz_ParentSelector._select_from�s;�����.�.�t�4�����,�,�T�7�;�	�A��G�	�s�8:N�rqrrrsrfrlrur)r'r;r;�s
��G�r)r;c��eZdZd�Zd�Zy)r=c�p�tj||||�|�t|�}t||�|_yrH)rarfr.rQrO�rer@rBr-r?s     r'rfz_WildcardSelector.__init__�s4�����4��g�~�F��!�/��8�N�%�c�>�:��
r)c#�K�	||�5}t|�}ddd�D]u}|jr	|j�s�!	|j}|j|�s�@|j
|�}|jj||�D]}|����wy#1swY��xYw#t$rY��wxYw#t$rYywxYw�wrH)	�listrdrj�OSErrorr{rOr~rcrl)	rermro�
scandir_it�entries�entryr{rr�s	         r'rlz_WildcardSelector._select_from�s�����	 ���%�
+���z�*��
+�
!�
 ���<�<�!�$�|�|�~�$� .��z�z���:�:�d�#�&�:�:�4�@�D�!�^�^�8�8��w�G� ���� �
 �
+�
+��#�!� �!���	��	�sf�C�B6�B�B6�C�B'�C�"9C�B$� B6�'	B3�0C�2B3�3C�6	C�?C�C�CNr�rur)r'r=r=�s��;� r)r=c��eZdZd�Zd�Zd�Zy)r:c�4�tj||||�yrHrzr�s     r'rfz#_RecursiveWildcardSelector.__init__�r|r)c#�zK�|��|j�D] \}}}|D]}|j|�����"y�wrH)�walkr~)rerm�dirpath�dirnamesr/�dirnames      r'�_iterate_directoriesz/_RecursiveWildcardSelector._iterate_directories�sK������$/�$4�$4�$6�	;� �G�X�q�#�
;���1�1�'�:�:�
;�	;�s�9;c#�K�|jj}|j|�D]}|||�D]}|����y�wrH)rcrlr�)rermro�successor_select�starting_pointr�s      r'rlz'_RecursiveWildcardSelector._select_from�sK�����>�>�6�6��"�7�7��D�	�N�%�n�g�>�
����
�	�s�AAN)rqrrrsrfr�rlrur)r'r:r:�s��G�;�r)r:c�"��eZdZdZ�fd�Z�xZS)r9z�
    Like _RecursiveWildcardSelector, but also de-duplicates results from
    successive selectors. This is necessary if the pattern contains
    multiple non-adjacent '**' segments.
    c#���K�t�}	t�|�	||�D]}||vs�|��|j|��	|j	�y#|j	�wxYw�wrH)�set�superrl�add�clear)rermro�yieldedr��	__class__s     �r'rlz-_DoubleRecursiveWildcardSelector._select_from�sZ������%��	��W�)�+�w�?�
#���G�#��G��K�K��N�
#�

�M�M�O��G�M�M�O�s �A%�A�A�A%�A"�"A%)rqrrrsrtrl�
__classcell__�r�s@r'r9r9�s�����r)r9c�,�eZdZdZdZd�Zd�Zd�Zd�Zy)�_PathParentszvThis object provides sequence-like access to the logical ancestors
    of a path.  Don't try to construct it yourself.)�_path�_drv�_root�_tailc�x�||_|j|_|j|_|j
|_yrH)r��driver��rootr�r�)rers  r'rfz_PathParents.__init__s*����
��J�J��	��Y�Y��
��Z�Z��
r)c�,�t|j�SrH)r8r��res r'�__len__z_PathParents.__len__s���4�:�:��r)c
���t|t�r2t�fd�t|j	t����D��S|t��k\s|t��krt
|��|dkr|t��z
}�jj�j�j�jd|dz
�S)Nc3�(�K�|]	}�|���y�wrHru)�.0�ires  �r'�	<genexpr>z+_PathParents.__getitem__.<locals>.<genexpr>s�����I�Q��a��I�s�rr5)�
isinstance�slice�tuple�range�indicesr8�
IndexErrorr��_from_parsed_partsr�r�r�)re�idxs` r'�__getitem__z_PathParents.__getitem__s�����c�5�!��I�%����S��Y�1G�*H�I�I�I��#�d�)��s�c�$�i�Z�/��S�/�!���7��3�t�9��C��z�z�,�,�T�Y�Y��
�
�-1�Z�Z�	�#����-B�D�	Dr)c�^�djt|j�j�S)Nz<{}.parents>)�formatrhr�rqr�s r'�__repr__z_PathParents.__repr__s"���$�$�T�$�*�*�%5�%>�%>�?�?r)N)	rqrrrsrt�	__slots__rfr�r�r�rur)r'r�r�s"��7�3�I� ��	D�@r)r�c���eZdZdZdZejZd�Zd�Z	d�Z
d�Zed��Z
d�Zd	�Zed
��Zd�Zd�Zd
�Zd�Zd�Zd�Zed��Zed��Zed��Zd�Zd�Zd�Zd�Zd�Zd�Z ed��Z!ed��Z"ed��Z#ed��Z$ed��Z%ed��Z&ed ��Z'ed!��Z(d"�Z)d#�Z*d$�Z+d%d&�d'�Z,d(�Z-ed)��Z.d*�Z/d+�Z0d,�Z1ed-��Z2ed.��Z3d/�Z4d0�Z5d1d2�d3�Z6y1)4ra|Base class for manipulating paths without I/O.

    PurePath represents a filesystem path and offers operations which
    don't imply any actual filesystem I/O.  Depending on your system,
    instantiating a PurePath will return either a PurePosixPath or a
    PureWindowsPath object.  You can also instantiate either of these classes
    directly, regardless of your system.
    )	�
_raw_pathsr�r��_tail_cached�_str�_str_normcase_cached�_parts_normcase_cached�
_lines_cached�_hashc�z�|turtjdk(rtnt}t
j
|�S)z�Construct a PurePath from one or several strings and or existing
        PurePath objects.  The strings and path objects are combined so as
        to yield a canonicalized path, which is incorporated into the
        new PurePath object.
        �nt)r�osr{rr�object�__new__�rC�args�kwargss   r'r�zPurePath.__new__Vs+���(�?�%'�W�W��_�/�-�C��~�~�c�"�"r)c�2�|j|jfSrH)r�r]r�s r'�
__reduce__zPurePath.__reduce__`s������
�
�+�+r)c���ddl}g}|D]�}t|t�r_|j|ur5|jtur#|jd�|jD���V|j|j��r	tj|�}t|t�s!tdt|�j����|j|���||_y#t$r|}Y�YwxYw)Nrc3�@K�|]}|jdd����y�w)r2r1N)�replace)r�rs  r'r�z$PurePath.__init__.<locals>.<genexpr>ls���� T�T����d�C�!8� T�s�zVargument should be a str or an os.PathLike object where __fspath__ returns a str, not )�ntpathr�r�_flavour�	posixpath�extendr�r��fspath�	TypeError�strrhrqrY)rer�r��paths�argrs      r'rfzPurePath.__init__es�������	#�C��#�x�(��<�<�6�)�d�m�m�y�.H��L�L� T�S�^�^� T�T��L�L����0���9�9�S�>�D�"�$��,�#��#�D�z�2�2�5�7�8�8����T�"�#	#�$ ����!���D��s�<C�C+�*C+c��t|�|�S)z�Construct a new path object from any number of path-like objects.
        Subclasses may override this method to customize how new path objects
        are created from methods like `iterdir()`.
        )rh�re�pathsegmentss  r'�
with_segmentszPurePath.with_segments|s��
�t�D�z�<�(�(r)c�"�|sddgfS|jj}|jj}|r|j||�}|jj	|�\}}}|s[|j|�rJ|j
|�s9|j|�}t|�dk(r
|ddvr|}nt|�dk(r|}|j|�D�cgc])}|s�|dk7s�tjt|����+}	}|||	fScc}w)NrV��z?.��.)r��sep�altsepr��	splitroot�
startswith�endswith�splitr8�sys�internr�)
rCrr�r��drvr��rel�	drv_parts�x�parseds
          r'�_parse_pathzPurePath._parse_path�s�����r�2�:���l�l�������$�$����<�<���,�D����/�/��5���T�3�����s�+�C�L�L��4E��	�	�#��I��9�~��"�y��|�4�'?����Y��1�$���.1�i�i��n�O���a�3�h�#�*�*�S��V�$�O��O��D�&� � ��Ps�D�D�% Dc���|j}t|�dk(rd}n-t|�dk(r|d}n|jj|�}|j	|�\}}}||_||_||_y)NrrVr5)r�r8r�r[r�r�r�r�)rer�rr�r��tails      r'�_load_partszPurePath._load_parts�sq�������u�:��?��D�
��Z�1�_���8�D�%�4�=�=�%�%�u�-�D��*�*�4�0���T�4���	���
� ��r)c��|j|||�}|j|�}|xsd|_||_||_||_|S�Nr�)�_format_parsed_partsr�r�r�r�r�)rer�r�r��path_strrs      r'r�zPurePath._from_parsed_parts�sL���,�,�S�$��=���!�!�(�+���O���	���	���
� ����r)c��|s|r+||z|jjj|�zS|r'|jj|d�drdg|z}|jjj|�S)Nrr�)r�r�r[�
splitdrive)rCr�r�r�s    r'r�zPurePath._format_parsed_parts�sn���$���:���� 0� 0� 5� 5�d� ;�;�;�
�c�l�l�-�-�d�1�g�6�q�9��5�4�<�D��|�|���$�$�T�*�*r)c���	|jS#t$rI|j|j|j|j
�xsd|_|jcYSwxYw)z[Return the string representation of the path, suitable for
        passing to system calls.r�)r��AttributeErrorr�r�r�r�r�s r'�__str__zPurePath.__str__�s[��	��9�9����	��1�1�$�*�*�d�i�i�26�*�*�>�E�AD�
�I��9�9��	�s��AA �A c��t|�SrH)r�r�s r'�
__fspath__zPurePath.__fspath__�s���4�y�r)c�d�|j}t|�j|jd�S)zNReturn the string representation of the path with forward (/)
        slashes.r1)r�r�r�r��re�fs  r'�as_posixzPurePath.as_posix�s(��
�M�M���4�y� � �����,�,r)c�,�tj|�S)zaReturn the bytes representation of the path.  This is only
        recommended to use under Unix.)r��fsencoder�s r'�	__bytes__zPurePath.__bytes__�s���{�{�4� � r)c�j�dj|jj|j��S)Nz{}({!r}))r�r�rqrr�s r'r�zPurePath.__repr__�s%��� � ����!8�!8�$�-�-�/�J�Jr)c�4�|j�std��|j}t|�dk(r!|ddk(rd|z}|j	�dd}n"|rd}|j	�}n
d}t|�}|t
tj|��zS)	z Return the path as a 'file' URI.z.relative path can't be expressed as a file URIr�r5�:zfile:///Nzfile:zfile://)	�is_absoluter<r�r8rr��urlquote_from_bytesr�r)rer��prefixrs    r'�as_urizPurePath.as_uri�s������!��M�N�N��
�
���u�:��?�u�Q�x�3���%�'�F��=�=�?�1�2�&�D�
��F��=�=�?�D��F��t�9�D��+�B�K�K��,=�>�>�>r)c���	|jS#t$rSt|j�rt	|�|_nt	|�j�|_|jcYSwxYwrH)r�r�r.r�r��lowerr�s r'�
_str_normcasezPurePath._str_normcase�sY��	-��,�,�,���	-�!�$�-�-�0�,/��I��)�,/��I�O�O�,=��)��,�,�,�	-�s��AA*�)A*c��	|jS#t$rC|jj|jj
�|_|jcYSwxYwrH)r�r�rr�r�r�r�s r'�_parts_normcasezPurePath._parts_normcase�sQ��	/��.�.�.���	/�*.�*<�*<�*B�*B�4�=�=�CT�CT�*U�D�'��.�.�.�	/�s��A	A�Ac���	|jS#t$rZt|�}|dk(rd|_n3t|jj
}|j
|�|_|jcYSwxYw)Nr�rV)r�r�r��_SWAP_SEP_AND_NEWLINEr�r�rN)rer��transs   r'�_lineszPurePath._lines�sm��		&��%�%�%���	&��4�y�H��3��%'��"�-�d�m�m�.?�.?�@��%-�%7�%7��%>��"��%�%�%�	&�s��A A1�0A1c��t|t�stS|j|jk(xr|j|juSrH)r�r�NotImplementedrr��re�others  r'�__eq__zPurePath.__eq__s;���%��*�!�!��!�!�U�%8�%8�8�\�T�]�]�e�n�n�=\�\r)c��	|jS#t$r)t|j�|_|jcYSwxYwrH)r�r��hashrr�s r'�__hash__zPurePath.__hash__s<��	��:�:����	��d�0�0�1�D�J��:�:��	�s��/A�Ac��t|t�r|j|jurtS|j|jkSrH�r�rr�rrrs  r'�__lt__zPurePath.__lt__�8���%��*�d�m�m�5�>�>�.Q�!�!��#�#�e�&;�&;�;�;r)c��t|t�r|j|jurtS|j|jkSrHr!rs  r'�__le__zPurePath.__le__�8���%��*�d�m�m�5�>�>�.Q�!�!��#�#�u�'<�'<�<�<r)c��t|t�r|j|jurtS|j|jkDSrHr!rs  r'�__gt__zPurePath.__gt__r#r)c��t|t�r|j|jurtS|j|jk\SrHr!rs  r'�__ge__zPurePath.__ge__"r&r)c�r�	|jS#t$r|j�|jcYSwxYw)z.The drive prefix (letter or UNC path), if any.)r�r�r�r�s r'r�zPurePath.drive's6��	��9�9����	������9�9��	����%6�6c�r�	|jS#t$r|j�|jcYSwxYw)zThe root of the path, if any.)r�r�r�r�s r'r�z
PurePath.root0s6��	��:�:����	������:�:��	�r,c�r�	|jS#t$r|j�|jcYSwxYwrH)r�r�r�r�s r'r�zPurePath._tail9s:��	%��$�$�$���	%������$�$�$�	%�r,c�8�|j|jz}|S)z/The concatenation of the drive and root, or ''.)r�r�)re�anchors  r'r0zPurePath.anchorAs�����d�i�i�'���
r)c�*�|j}|sy|dS)z!The final path component, if any.rV���)r�)rer�s  r'r{z
PurePath.nameGs���z�z�����B�x�r)c�|�|j}|jd�}d|cxkrt|�dz
krny||dSy)z{
        The final component's last suffix, if any.

        This includes the leading period. For example: '.txt'
        r�rr5NrV�r{�rfindr8�rer{r�s   r'�suffixzPurePath.suffixOsD���y�y���J�J�s�O���q� �3�t�9�q�=� �����8�O�r)c��|j}|jd�rgS|jd�}|jd�ddD�cgc]}d|z��	c}Scc}w)z�
        A list of the final component's suffixes, if any.

        These include the leading periods. For example: ['.tar', '.gz']
        r�r5N)r{r��lstripr�)rer{r7s   r'�suffixeszPurePath.suffixes]sS���y�y���=�=����I��{�{�3���+/�:�:�c�?�1�2�+>�?���f��?�?��?s�Ac��|j}|jd�}d|cxkrt|�dz
kr	n|S|d|S|S)z0The final path component, minus its last suffix.r�rr5Nr4r6s   r'�stemz
PurePath.stemjsH���y�y���J�J�s�O���q� �3�t�9�q�=� ��K����8�O��Kr)c�8�|jst|�d���|j}|r-|j|vs|jr|j|vs|dk(rtd|z��|j|j|j|jdd|gz�S)z-Return a new path with the file name changed.� has an empty namer�zInvalid name %rNr2)	r{r<r�r�r�r�r�r�r�)rer{rs   r'�	with_namezPurePath.with_namets����y�y��t�=�>�>��M�M���q�u�u��}����a�h�h�$�6F�4�SV�;��.�$�7�8�8��&�&�t�z�z�4�9�9�'+�z�z�#�2��$��'?�A�	Ar)c�>�|j||jz�S)z(Return a new path with the stem changed.)r?r7)rer<s  r'�	with_stemzPurePath.with_stem~s���~�~�d�T�[�[�0�1�1r)c���|j}|j|vs|jr|j|vrtd|����|r|j	d�r|dk(rtd|z��|j
}|st|�d���|j}|s||z}n|dt|�|z}|j|j|j|jdd|gz�S)z�Return a new path with the file suffix changed.  If the path
        has no suffix, add given suffix.  If the given suffix is an empty
        string, remove the suffix from the path.
        zInvalid suffix r�zInvalid suffix %rr>Nr2)r�r�r�r<r�r{r7r8r�r�r�r�)rer7rr{�
old_suffixs     r'�with_suffixzPurePath.with_suffix�s���

�M�M���5�5�F�?�a�h�h�1�8�8�v�+=��F�<�=�=��&�+�+�C�0�F�c�M��0�F�;�<�<��y�y����t�=�>�>��[�[�
���&�=�D��)�#�j�/�)�*�V�3�D��&�&�t�z�z�4�9�9�'+�z�z�#�2��$��'?�A�	Ar)F)�walk_upc�&�|rd}tjd|d��|j|g|���}t|gt	|j
�z�D]c\}}|j
|�rnp|s"tt|��dt|�����|jdk(s�Mtdt|��d���tt|��d	t|��d
���dg|z|jt|j�dz}|j|�S)a*Return the relative path to another path identified by the passed
        arguments.  If the operation is not possible (because this is not
        related to the other path), raise ValueError.

        The *walk_up* parameter controls whether `..` may be used to resolve
        the path.
        z�support for supplying more than one positional argument to pathlib.PurePath.relative_to() is deprecated and scheduled for removal in Python {remove}z#pathlib.PurePath.relative_to(*args)�����removez is not in the subpath of r6z'..' segment in z cannot be walkedz and z have different anchorsN)�warnings�_deprecatedr��	enumerater��parents�is_relative_tor<r�r{r�r8)rerrErM�msg�steprr]s        r'�relative_tozPurePath.relative_to�s���>�C�
� � �!F��(/�
1�"��"�"�5�7�;�7��#�U�G�d�5�=�=�.A�$A�B�	Y�J�D�$��"�"�4�(��� �C��I�=�0J�3�u�:�.�!Y�Z�Z����d�"� �#3�C��J�>�AR�!S�T�T�
	Y���D�	�}�E�#�e�*��?V�W�X�X����
��
�
�3�t�z�z�?�+;� <�<��!�t�!�!�5�)�)r)c��|rd}tjd|d��|j|g|���}||k(xs||jvS)zFReturn True if the path is relative to another path or False.
        z�support for supplying more than one argument to pathlib.PurePath.is_relative_to() is deprecated and scheduled for removal in Python {remove}z&pathlib.PurePath.is_relative_to(*args)rGrJ)rLrMr�rO)rerrMrQs    r'rPzPurePath.is_relative_to�sU���>�C�
� � �!I�!$�W�
6�"��"�"�5�7�;�7����}�5����� 5�5r)c��|js|jr0|j|jzft|j�zSt|j�S)zZAn object providing sequence-like access to the
        components in the filesystem path.)r�r�r�r�r�s r'r]zPurePath.parts�sD���:�:�����J�J����*�,�u�T�Z�Z�/@�@�@�����$�$r)c�(�|j|g|���S)z�Combine this path with one or several arguments, and return a
        new path representing either a subpath (if all arguments are relative
        paths) or a totally different path (if one of the arguments is
        anchored).
        )r�r�s  r'�joinpathzPurePath.joinpath�s��"�t�!�!�$�6��6�6r)c�P�	|j|�S#t$r	tcYSwxYwrH)rWr�r�re�keys  r'�__truediv__zPurePath.__truediv__�s+��	"��=�=��%�%���	"�!�!�	"�s��%�%c�R�	|j||�S#t$r	tcYSwxYwrH)r�r�rrYs  r'�__rtruediv__zPurePath.__rtruediv__�s/��	"��%�%�c�4�0�0���	"�!�!�	"�s��&�&c�~�|j}|j}|j}|s|S|j|||dd�S)zThe logical parent of the path.Nr2)r�r�r�r�)rer�r�r�s    r'�parentzPurePath.parent�sB���j�j���y�y���z�z����K��&�&�s�D�$�s��)�<�<r)c��t|�S)z*A sequence of this path's logical parents.)r�r�s r'rOzPurePath.parents�s��
�D�!�!r)c�"�ddl}|j|ur#t|jxr|j�S|jt
ur%|jD]}|jd�s�yy|jjt|��S)zSTrue if the path is absolute (has both a root and, if applicable,
        a drive).rNr1TF)
r�r��boolr�r�r�r�r��isabsr�)rer�rs   r'rzPurePath.is_absolute�sw��	��=�=�F�"���
�
�0�t�y�y�1�1�
�]�]�i�
'����
 ���?�?�3�'��
 ���=�=�&�&�s�4�y�1�1r)c�(�|jtus|jsy|jj	d�ry|jdjd�djd�dj
d�}|j�tvS)zaReturn True if the path contains one of the special names reserved
        by the system, if any.Fz\\r2r�rr
� )	r�r�r�r�r��	partition�rstrip�upper�_WIN_RESERVED_NAMES�rer{s  r'�is_reservedzPurePath.is_reserved�sz���=�=�I�%�T�Z�Z���:�:� � ��(���z�z�"�~�'�'��,�Q�/�9�9�#�>�q�A�H�H��M���z�z�|�2�2�2r)N�r?c�p�t|t�s|j|�}|�t|j�}t|j|�}|js|jr|j|j�duS|jr|j|j�duStd��)zE
        Return True if this path matches the given pattern.
        Nz
empty pattern)
r�rr�r.r�r_rr�r�rOr��searchr<)re�path_patternr?�patterns    r'rOzPurePath.matchs����,��1��-�-�l�;�L��!�/��
�
�>�N�(��)<�)<�n�M������!2�!2��=�=����-�T�9�9�
�
�
��>�>�$�+�+�.�d�:�:��_�-�-r))7rqrrrsrtr�r�rr�r�r�rfr��classmethodr�r�r�r�r�rrrr�r�propertyrrrrrr"r%r(r*r�r�r�r0r{r7r:r<r?rArDrSrPr]rWr[r]r_rOrrkrOrur)r'rr#s����&�I�N�w�w�H�#�,�
 �.)��!��!�&!���+��+���-�!�
K�?�(�	-��	-��/��/��&��&�]�
�<�
=�
<�
=�
���������%��%�����
���������
@��
@�����A�2�A�*;@�*�6
6��%��%�7�"�"��=��=��"��"�2� 3� 59�.r)rc��eZdZdZeZdZy)rz�PurePath subclass for non-Windows systems.

    On a POSIX system, instantiating a PurePath should return this object.
    However, you can also instantiate it directly on any system.
    ruN)rqrrrsrtr�r�r�rur)r'rr"s���
�H��Ir)rc� �eZdZdZddlZeZdZy)rz�PurePath subclass for Windows systems.

    On a Windows system, instantiating a PurePath should return this object.
    However, you can also instantiate it directly on any system.
    rNru)rqrrrsrtr�r�r�rur)r'rr,s���
��H��Ir)rc�|��eZdZdZdZdd�d�Zd�Zdd�d�Zd�Zd	�Z	d
�Z
d�Zd�Zd
�Z
d�Zd�Zd�Zd�Z		d5d�Zd�Zd6d�Zd�Zd7d�Zd�Zd�Zd�Zdd�d�Zdd�d�Zd8d�Z�fd�Zd �Zd!�Zd"�Z e!d#��Z"e!d$��Z#d%�Z$d9d&�Z%d'�Z&d(�Z'd)�Z(d:d*�Z)d;d+�Z*dd�d,�Z+d-�Z,d9d.�Z-d/�Z.d0�Z/d1�Z0d9d2�Z1d3�Z2d4�Z3�xZ4S)<ra�PurePath subclass that can make system calls.

    Path represents a filesystem path but unlike PurePath, also offers
    methods to do system calls on path objects. Depending on your system,
    instantiating a Path will return either a PosixPath or a WindowsPath
    object. You can also instantiate a PosixPath or WindowsPath directly,
    but cannot instantiate a WindowsPath on a POSIX system or vice versa.
    ruT��follow_symlinksc�0�tj||��S)zh
        Return the result of the stat() system call on this path, like
        os.stat() does.
        rv)r��stat)rerws  r'ryz	Path.statEs��
�w�w�t�_�=�=r)c�&�|jd��S)z�
        Like stat(), except if the path points to a symlink, the symlink's
        status information is returned, rather than its target's.
        Frv)ryr�s r'�lstatz
Path.lstatLs��
�y�y��y�/�/r)c��	|j|��y#t$r}t|�s�Yd}~yd}~wt$rYywxYw)z�
        Whether this path exists.

        This method normally follows symlinks; to check whether a symlink exists,
        add the argument follow_symlinks=False.
        rvNFT)ryr�r(r<)rerw�es   r'�existszPath.existsVsE��	��I�I�o�I�6����	� ��#�����	��	�s��	>�/�>�>c��	t|j�j�S#t$r}t	|�s�Yd}~yd}~wt
$rYywxYw)z3
        Whether this path is a directory.
        NF)rry�st_moder�r(r<�rer}s  r'rjzPath.is_dirh�I��
	��4�9�9�;�.�.�/�/���	� ��#�����	��	���"%�	A�?�A�
Ac��	t|j�j�S#t$r}t	|�s�Yd}~yd}~wt
$rYywxYw)zq
        Whether this path is a regular file (also True for symlinks pointing
        to regular files).
        NF)r
ryr�r�r(r<r�s  r'�is_filezPath.is_filexsI��

	��4�9�9�;�.�.�/�/���	� ��#�����	��	�r�c�8�|jj|�S)z5
        Check if this path is a mount point
        )r��ismountr�s r'�is_mountz
Path.is_mount�s���}�}�$�$�T�*�*r)c��	t|j�j�S#t$r}t	|�s�Yd}~yd}~wt
$rYywxYw)z7
        Whether this path is a symbolic link.
        NF)r	r{r�r�r(r<r�s  r'�
is_symlinkzPath.is_symlink�sG��		��4�:�:�<�/�/�0�0���	� ��#�����	��	�r�c�8�|jj|�S)z2
        Whether this path is a junction.
        )r��
isjunctionr�s r'�is_junctionzPath.is_junction�s���}�}�'�'��-�-r)c��	t|j�j�S#t$r}t	|�s�Yd}~yd}~wt
$rYywxYw)z6
        Whether this path is a block device.
        NF)rryr�r�r(r<r�s  r'�is_block_devicezPath.is_block_device�r�r�c��	t|j�j�S#t$r}t	|�s�Yd}~yd}~wt
$rYywxYw)z:
        Whether this path is a character device.
        NF)r
ryr�r�r(r<r�s  r'�is_char_devicezPath.is_char_device�r�r�c��	t|j�j�S#t$r}t	|�s�Yd}~yd}~wt
$rYywxYw)z.
        Whether this path is a FIFO.
        NF)rryr�r�r(r<r�s  r'�is_fifozPath.is_fifo��I��
	��D�I�I�K�/�/�0�0���	� ��#�����	��	�r�c��	t|j�j�S#t$r}t	|�s�Yd}~yd}~wt
$rYywxYw)z0
        Whether this path is a socket.
        NF)rryr�r�r(r<r�s  r'�	is_socketzPath.is_socket�r�r�c���|j�}	|j�}|jj	||�S#t$r"|j|�j�}Y�FwxYw)zoReturn whether other_path is the same or not as this file
        (as returned by os.path.samefile()).
        )ryr�r�r��samestat)re�
other_path�st�other_sts    r'�samefilez
Path.samefile�sc���Y�Y�[��	=�!���(�H��}�}�%�%�b�(�3�3���	=��)�)�*�5�:�:�<�H�	=�s�>�(A)�(A)Nc�h�d|vrtj|�}tj||||||�S)z|
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        �b)�io�
text_encoding�open)re�mode�	buffering�encoding�errors�newlines      r'r�z	Path.open�s4���d�?��'�'��1�H��w�w�t�T�9�h���H�Hr)c�r�|jd��5}|j�cddd�S#1swYyxYw)zK
        Open the file in bytes mode, read it, and close the file.
        �rb�r�N)r��readrs  r'�
read_byteszPath.read_bytes�s2���Y�Y�D�Y�
!�	�Q��6�6�8�	�	�	�s�-�6c��tj|�}|jd||��5}|j�cddd�S#1swYyxYw)zJ
        Open the file in text mode, read it, and close the file.
        �r)r�r�r�N)r�r�r�r�)rer�r�rs    r'�	read_textzPath.read_textsF���#�#�H�-��
�Y�Y�C�(�6�Y�
B�	�a��6�6�8�	�	�	�s�A�A
c��t|�}|jd��5}|j|�cddd�S#1swYyxYw)zO
        Open the file in bytes mode, write to it, and close the file.
        �wbr�N)�
memoryviewr��write)re�data�viewrs    r'�write_byteszPath.write_bytess>��
�$���
�Y�Y�D�Y�
!�	!�Q��7�7�4�=�	!�	!�	!�s	�9�Ac��t|t�s"td|jjz��tj|�}|jd|||��5}|j|�cddd�S#1swYyxYw)zN
        Open the file in text mode, write to it, and close the file.
        zdata must be str, not %s�w)r�r�r�r�N)	r�r�r�r�rqr�r�r�r�)rer�r�r�r�rs      r'�
write_textzPath.write_textsw���$��$��6� �N�N�3�3�4�5�
5��#�#�H�-��
�Y�Y�C�(�6�7�Y�
S�	!�WX��7�7�4�=�	!�	!�	!�s�A8�8Bc#�fK�tj|�D]}|j|����y�w)z�Yield path objects of the directory contents.

        The children are yielded in arbitrary order, and the
        special entries '.' and '..' are not included.
        N)r��listdirr~rjs  r'�iterdirzPath.iterdirs1�����J�J�t�$�	1�D��*�*�4�0�0�	1�s�/1c�,�tj|�SrH)r�ror�s r'riz
Path._scandir%s���z�z�$��r)c��t|�}|j}|r|�|jj�|��}n|dk7r|�|��}n|}|j	|�}||_|j|_|j|_	||gz|_
|Sr�)r�r�r�r�r�r�r�r�r�r�r�)rer{r�r�rs     r'r~zPath._make_child_relpath+s����t�9���z�z���"��D�M�M�$5�$5�#6�t�f�=�H�
��_�"��D�6�*�H��H��!�!�(�+����	��J�J��	��Y�Y��
� �D�6�M����r)rlc#�K�tjd||�|stdj|���|j	|�\}}}|s|rtd��|d|jj|jjfvr|jd�tt|�|j|�}|j|�D]}|���y�w)z�Iterate over this subtree and yield all existing files (of any
        kind, including directories) matching the given relative pattern.
        zpathlib.Path.globzUnacceptable pattern: {!r}�%Non-relative patterns are unsupportedr2rVN)
r��auditr<r�r��NotImplementedErrorr�r�r�rYrDr�rp�rerpr?r�r�r>�selectorr�s        r'�globz	Path.glob;s�����	�	�	�%�t�W�5���9�@�@��I�J�J�#'�#3�#3�G�#<� ��T�=��$�%�&M�N�N��2�;�4�=�=�,�,�d�m�m�.B�.B�C�C�� � ��$�!�%�
�"6��
�
�~�V���%�%�d�+�	�A��G�	�s�CCc#�K�tjd||�|j|�\}}}|s|rtd��|rB|d|jj
|jjfvr|jd�tdt|�z|j|�}|j|�D]}|���y�w)z�Recursively yield all existing files (of any kind, including
        directories) matching the given relative pattern, anywhere in
        this subtree.
        zpathlib.Path.rglobr�r2rV)r4N)r�r�r�r�r�r�r�rYrDr�rpr�s        r'�rglobz
Path.rglobKs�����
	�	�	�&��g�6�#'�#3�#3�G�#<� ��T�=��$�%�&M�N�N��w�r�{�t�}�}�'8�'8�$�-�-�:N�:N�&O�O�� � ��$�!�'�E�-�,@�"@�$�-�-�Q_�`���%�%�d�+�	�A��G�	�s�B>Cc#�K�tjd|||�|g}|r�|j�}t|t�r|���'	|j�}|5g}g}	|D]N}
	|
j|��}|r|j|
j��4|	j|
j��P	ddd�|r|	f��n|j|	f�|t|�D�cgc]}|j|���c}z
}|r��yy#t$r}|�||�Yd}~��d}~wwxYw#t$rd}Y��wxYw#1swY��xYwcc}w�w)zBWalk the directory tree from this directory, similar to os.walk().zpathlib.Path.walkNrvF)r�r��popr�r�rir�rjrYr{�reversedr~)
re�top_down�on_errorrwr�rr��errorr��	filenamesr�rj�ds
             r'r�z	Path.walkZsK�����	�	�%�t�X��G������9�9�;�D��$��&��
��
�!�]�]�_�
��

5����	�'�
5�E�'�!&���o��!N��
� ����
�
�3�!�(�(����4�
5�

5���H�i�/�/����d�H�i�8�9��8�H�;M�N�a�d�.�.�q�1�N�N�E�M���
��'��U�O���
��#�'�!&��'��


5�

5��(O�s~�AE
�D�E
�
D9�#D(�5;D9�14E
�%E�=E
�E
�	D%�
D �E
� D%�%E
�(D6�3D9�5D6�6D9�9E�>E
c�V��|rd}tjd|d��t�|�|�y)Nzvsupport for supplying keyword arguments to pathlib.PurePath is deprecated and scheduled for removal in Python {remove}zpathlib.PurePath(**kwargs)rGrJ)rLrMr�rf)rer�r�rQr�s    �r'rfz
Path.__init__�s.����P�C�� � �!=�s�7�S�
���$�r)c�z�|turtjdk(rtnt}t
j
|�S)Nr�)rr�r{rrr�r�r�s   r'r�zPath.__new__�s)���$�;�!#���D��+�i�C��~�~�c�"�"r)c�>�tjdtd��|S)Nz}pathlib.Path.__enter__() is deprecated and scheduled for removal in Python 3.13; Path objects as a context manager is a no-opr�)�
stacklevel)rL�warn�DeprecationWarningr�s r'�	__enter__zPath.__enter__�s#��	�
�
�+�)�Q�	8��r)c��yrHru)re�t�v�tbs    r'�__exit__z
Path.__exit__�s��r)c�,�|�j�S)z<Return a new path pointing to the current working directory.)�absolute�rCs r'�cwdzPath.cwd�s���u�~�~��r)c�.�|d�j�S)zrReturn a new path pointing to the user's home directory (as
        returned by os.path.expanduser('~')).
        �~)�
expanduserr�s r'�homez	Path.home�s��
�3�x�"�"�$�$r)c�:�|j�r|S|jr&|jj|j�}nFt	j
�}|js&|js|j|�}||_	|S|j||�S)z�Return an absolute version of this path by prepending the current
        working directory. No normalization or symlink resolution is performed.

        Use resolve() to get the canonical path to a file.
        )
rr�r��abspathr��getcwdr�r�r�r�)rer��results   r'r�z
Path.absolute�s}�������K�
�Z�Z��-�-�'�'��
�
�3�C��)�)�+�C��9�9�T�Z�Z��+�+�C�0��!����
��!�!�#�t�,�,r)c��d�}	|jj||��}|j|�}|s	|j	�|S|S#t$r}||��d}~wwxYw#t$r}||�Yd}~|Sd}~wwxYw)zl
        Make the path absolute, resolving all symlinks on the way and also
        normalizing it.
        c��t|dd�}|jtk(s	|tk(rt	d|j
z��y)Nr"rzSymlink loop from %r)r#r!r�_WINERROR_CANT_RESOLVE_FILENAME�RuntimeError�filename)r}r"s  r'�check_eloopz!Path.resolve.<locals>.check_eloop�s?���q�*�a�0�H��w�w�%��8�/N�#N�"�#9�A�J�J�#F�G�G�$Or))�strictN)r��realpathr�r�ry)rer�r��sr}r�s      r'�resolvezPath.resolve�s���	H�
	��
�
�&�&�t�F�&�;�A�
���q�!���
�������q����	���N���	���
��A������
�s.�A
�A$�
	A!�	A�A!�$	B�-A;�;Bc��	ddl}|j|j�j�jS#t
$rt
d��wxYw)z:
        Return the login name of the file owner.
        rNz*Path.owner() is unsupported on this system)�pwd�getpwuidry�st_uid�pw_name�ImportErrorr�)rer�s  r'�ownerz
Path.owner�sI��	T���<�<��	�	�� 2� 2�3�;�;�;���	T�%�&R�S�S�	T��	�69�Ac��	ddl}|j|j�j�jS#t
$rt
d��wxYw)z8
        Return the group name of the file gid.
        rNz*Path.group() is unsupported on this system)�grp�getgrgidry�st_gid�gr_namer�r�)rer�s  r'�groupz
Path.group�sI��
	T���<�<��	�	�� 2� 2�3�;�;�;���	T�%�&R�S�S�	T�r�c��ttd�std��|jtj|��S)zD
        Return the path to which the symbolic link points.
        �readlinkz*os.readlink() not available on this system)�hasattrr�r�r�rr�s r'rz
Path.readlink�s4���r�:�&�%�&R�S�S��!�!�"�+�+�d�"3�4�4r)c��|r	tj|d�ytjtjz}|s|tj
z}tj|||�}tj|�y#t$rY�nwxYw)zS
        Create this file with the given access mode, if it doesn't exist.
        N)r��utimer��O_CREAT�O_WRONLY�O_EXCLr��close)rer��exist_okrP�fds     r'�touchz
Path.touchss��
�
�����t�$�
��
�
�R�[�[�(����R�Y�Y��E�
�W�W�T�5�$�
'��
�������
��
�s�A>�>	B
�	B
c��	tj||�y#t$rF|r|j|k(r�|jjdd��|j|d|��Yyt$r|r|j�s�YywxYw)z<
        Create a new directory at this given path.
        T)rOrFN)r��mkdir�FileNotFoundErrorr_r�rj)rer�rOrs    r'rz
Path.mkdirs{��	��H�H�T�4� �� �	?��d�k�k�T�1���K�K���d�T��:��J�J�t�U�X�J�>��	��4�;�;�=��$1�	�s��AB�'B�Bc�4�tj|||��y)zF
        Change the permissions of the path, like os.chmod().
        rvN)r��chmod)rer�rws   r'rz
Path.chmod-s��	����t�_�=r)c�*�|j|d��y)z�
        Like chmod(), except if the path points to a symlink, the symlink's
        permissions are changed, rather than its target's.
        FrvN)r)rer�s  r'�lchmodzPath.lchmod3s��
	
�
�
�4��
�/r)c�T�	tj|�y#t$r|s�YywxYw)zd
        Remove this file or link.
        If the path is a directory, use rmdir() instead.
        N)r��unlinkr
)re�
missing_oks  r'rzPath.unlink:s,��
	��I�I�d�O�� �	����	�s��'�'c�.�tj|�y)zF
        Remove this directory.  The directory must be empty.
        N)r��rmdirr�s r'rz
Path.rmdirEs��	����r)c�P�tj||�|j|�S)a2
        Rename this path to the target path.

        The target path may be absolute or relative. Relative paths are
        interpreted relative to the current working directory, *not* the
        directory of the Path object.

        Returns the new Path instance pointing to the target path.
        )r��renamer��re�targets  r'rzPath.renameKs#��	�	�	�$����!�!�&�)�)r)c�P�tj||�|j|�S)aS
        Rename this path to the target path, overwriting if that path exists.

        The target path may be absolute or relative. Relative paths are
        interpreted relative to the current working directory, *not* the
        directory of the Path object.

        Returns the new Path instance pointing to the target path.
        )r�r�r�rs  r'r�zPath.replaceXs#��	�
�
�4�� ��!�!�&�)�)r)c�h�ttd�std��tj|||�y)z�
        Make this path a symlink pointing to the target path.
        Note the order of arguments (link, target) is the reverse of os.symlink.
        �symlinkz)os.symlink() not available on this systemN)rr�r�r)rer�target_is_directorys   r'�
symlink_tozPath.symlink_toes+��
�r�9�%�%�&Q�R�R�
�
�
�6�4�!4�5r)c�f�ttd�std��tj||�y)z�
        Make this path a hard link pointing to the same file as *target*.

        Note the order of arguments (self, target) is the reverse of os.link's.
        �linkz&os.link() not available on this systemN)rr�r�r!rs  r'�hardlink_tozPath.hardlink_tons(���r�6�"�%�&N�O�O�
�����r)c�^�|js�|js�|jr�|jddddk(rs|jj	|jd�}|dddk(rtd��|j
|�\}}}|j||||jddz�S|S)zl Return a new path with expanded ~ and ~user constructs
        (as returned by os.path.expanduser)
        rNr5r�z#Could not determine home directory.)r�r�r�r�r�r�r�r�)re�homedirr�r�r�s     r'r�zPath.expanduserxs������t�y�y��J�J�4�:�:�a�=��!�,��3��m�m�.�.�t�z�z�!�}�=�G��r��{�c�!�"�#H�I�I�"�.�.�w�7�O�C��t��*�*�3��d�T�Z�Z���^�6K�L�L��r))r�r2NNN)NN)NNN)TNF)F)i�T)i�FF)5rqrrrsrtr�ryr{r~rjr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rir~r�r�r�rfr�r�r�rqr�r�r�r�r�r�rr
rrrrrrr�rr"r�r�r�s@r'rr:s7�����I�&*�>�0�)-��$� �"+�
�.�� � � � 	4�59�"&�I���!�	!�1� �� /3�� 04�
�+O�Z �#�
�
�
� �� ��%��%�-�0�6T�	T�5��,�".2�>�0�	��*�*�6��r)rc�:�eZdZdZdZejdk(rd�Zyy)rzsPath subclass for non-Windows systems.

    On a POSIX system, instantiating a Path should return this object.
    rur�c�4�td|j�d����Nzcannot instantiate z on your system�r�rqr�s   r'r�zPosixPath.__new__��"��%�%�c�l�l�%5�_�E�G�
Gr)N�rqrrrsrtr�r�r{r�rur)r'rr��$����I�	�w�w�$��	G�r)rc�:�eZdZdZdZejdk7rd�Zyy)rzqPath subclass for Windows systems.

    On a Windows system, instantiating a Path should return this object.
    rur�c�4�td|j�d���r'r(r�s   r'r�zWindowsPath.__new__�r)r)Nr*rur)r'rr�r+r)r)DrtrM�	functoolsr�r�r�rIr�rL�_collections_abcrr!rrrrryrr	r
rrr
r�urllib.parserr�__all__�	frozensetri�_WINERROR_NOT_READY�_WINERROR_INVALID_NAMEr�r$r%r(�cacher.rNr��_FNMATCH_PREFIX�_FNMATCH_SUFFIXr�r8rXr��	maketransr�	lru_cacherDrQr_rar7r;r=r:r9r�r�r�PathLike�registerrrrrr)�cs0r'�<module>r=se�����	�	��	�
��%�/�/�P�P�P�@��� �5�/�0�1�s�1�#�Y�0�1�/�0�1�s�1�#�Y�0�1�������"&���7�E�5�1����#�%��
H�
���*��*�$5�7�#4�#4�S�#9�#?�#?��#D� ����s�?�+�c�/�.B�-B�C��	���T��-�	.�

�-�-�t�4�0�
1��������:��:�0����S�!�;�"�;�
�����#3��#3�L7�7�.���i�� �	� �@���$�'A��,@�8�@�:w.�v�w.�x�����X���H���h��J	�8�J	�Z
G��m�
G�
G�$��
G��a+1��0s�G>
�.H
¿Qué es la limpieza dental de perros? - Clínica veterinaria


Es la eliminación del sarro y la placa adherida a la superficie de los dientes mediante un equipo de ultrasonidos que garantiza la integridad de las piezas dentales a la vez que elimina en profundidad cualquier resto de suciedad.

A continuación se procede al pulido de los dientes mediante una fresa especial que elimina la placa bacteriana y devuelve a los dientes el aspecto sano que deben tener.

Una vez terminado todo el proceso, se mantiene al perro en observación hasta que se despierta de la anestesia, bajo la atenta supervisión de un veterinario.

¿Cada cuánto tiempo tengo que hacerle una limpieza dental a mi perro?

A partir de cierta edad, los perros pueden necesitar una limpieza dental anual o bianual. Depende de cada caso. En líneas generales, puede decirse que los perros de razas pequeñas suelen acumular más sarro y suelen necesitar una atención mayor en cuanto a higiene dental.


Riesgos de una mala higiene


Los riesgos más evidentes de una mala higiene dental en los perros son los siguientes:

  • Cuando la acumulación de sarro no se trata, se puede producir una inflamación y retracción de las encías que puede descalzar el diente y provocar caídas.
  • Mal aliento (halitosis).
  • Sarro perros
  • Puede ir a más
  • Las bacterias de la placa pueden trasladarse a través del torrente circulatorio a órganos vitales como el corazón ocasionando problemas de endocarditis en las válvulas. Las bacterias pueden incluso acantonarse en huesos (La osteomielitis es la infección ósea, tanto cortical como medular) provocando mucho dolor y una artritis séptica).

¿Cómo se forma el sarro?

El sarro es la calcificación de la placa dental. Los restos de alimentos, junto con las bacterias presentes en la boca, van a formar la placa bacteriana o placa dental. Si la placa no se retira, al mezclarse con la saliva y los minerales presentes en ella, reaccionará formando una costra. La placa se calcifica y se forma el sarro.

El sarro, cuando se forma, es de color blanquecino pero a medida que pasa el tiempo se va poniendo amarillo y luego marrón.

Síntomas de una pobre higiene dental
La señal más obvia de una mala salud dental canina es el mal aliento.

Sin embargo, a veces no es tan fácil de detectar
Y hay perros que no se dejan abrir la boca por su dueño. Por ejemplo…

Recientemente nos trajeron a la clínica a un perro que parpadeaba de un ojo y decía su dueño que le picaba un lado de la cara. Tenía molestias y dificultad para comer, lo que había llevado a sus dueños a comprarle comida blanda (que suele ser un poco más cara y llevar más contenido en grasa) durante medio año. Después de una exploración oftalmológica, nos dimos cuenta de que el ojo tenía una úlcera en la córnea probablemente de rascarse . Además, el canto lateral del ojo estaba inflamado. Tenía lo que en humanos llamamos flemón pero como era un perro de pelo largo, no se le notaba a simple vista. Al abrirle la boca nos llamó la atención el ver una muela llena de sarro. Le realizamos una radiografía y encontramos una fístula que llegaba hasta la parte inferior del ojo.

Le tuvimos que extraer la muela. Tras esto, el ojo se curó completamente con unos colirios y una lentilla protectora de úlcera. Afortunadamente, la úlcera no profundizó y no perforó el ojo. Ahora el perro come perfectamente a pesar de haber perdido una muela.

¿Cómo mantener la higiene dental de tu perro?
Hay varias maneras de prevenir problemas derivados de la salud dental de tu perro.

Limpiezas de dientes en casa
Es recomendable limpiar los dientes de tu perro semanal o diariamente si se puede. Existe una gran variedad de productos que se pueden utilizar:

Pastas de dientes.
Cepillos de dientes o dedales para el dedo índice, que hacen más fácil la limpieza.
Colutorios para echar en agua de bebida o directamente sobre el diente en líquido o en spray.

En la Clínica Tus Veterinarios enseñamos a nuestros clientes a tomar el hábito de limpiar los dientes de sus perros desde que son cachorros. Esto responde a nuestro compromiso con la prevención de enfermedades caninas.

Hoy en día tenemos muchos clientes que limpian los dientes todos los días a su mascota, y como resultado, se ahorran el dinero de hacer limpiezas dentales profesionales y consiguen una mejor salud de su perro.


Limpiezas dentales profesionales de perros y gatos

Recomendamos hacer una limpieza dental especializada anualmente. La realizamos con un aparato de ultrasonidos que utiliza agua para quitar el sarro. Después, procedemos a pulir los dientes con un cepillo de alta velocidad y una pasta especial. Hacemos esto para proteger el esmalte.

La frecuencia de limpiezas dentales necesaria varía mucho entre razas. En general, las razas grandes tienen buena calidad de esmalte, por lo que no necesitan hacerlo tan a menudo e incluso pueden pasarse la vida sin requerir una limpieza. Sin embargo, razas pequeñas como el Yorkshire o el Maltés, deben hacérselas todos los años desde cachorros si se quiere conservar sus piezas dentales.

Otro factor fundamental es la calidad del pienso. Algunas marcas han diseñado croquetas que limpian la superficie del diente y de la muela al masticarse.

Ultrasonido para perros

¿Se necesita anestesia para las limpiezas dentales de perros y gatos?

La limpieza dental en perros no es una técnica que pueda practicarse sin anestesia general , aunque hay veces que los propietarios no quieren anestesiar y si tiene poco sarro y el perro es muy bueno se puede intentar…… , pero no se va a poder pulir ni acceder a todas la zona de la boca …. Además los limpiadores dentales van a irrigar agua y hay riesgo de aspiración a vías respiratorias si no se realiza una anestesia correcta con intubación traqueal . En resumen , sin anestesia no se va hacer una correcta limpieza dental.

Tampoco sirve la sedación ya que necesitamos que el animal esté totalmente quieto, y el veterinario tenga un acceso completo a todas sus piezas dentales y encías.

Alimentos para la limpieza dental

Hay que tener cierto cuidado a la hora de comprar determinados alimentos porque no todos son saludables. Algunos tienen demasiado contenido graso, que en exceso puede causar problemas cardiovasculares y obesidad.

Los mejores alimentos para los dientes son aquellos que están elaborados por empresas farmacéuticas y llevan componentes químicos con tratamientos específicos para el diente del perro. Esto implica no solo limpieza a través de la acción mecánica de morder sino también un tratamiento antibacteriano para prevenir el sarro.

Conclusión

Si eres como la mayoría de dueños, por falta de tiempo , es probable que no estés prestando la suficiente atención a la limpieza dental de tu perro. Por eso te animamos a que comiences a limpiar los dientes de tu perro y consideres atender a su higiene bucal con frecuencia.

Estas simples medidas pueden conllevar a que tu perro tenga una vida más larga y mucho más saludable.

Si te resulta imposible introducir un cepillo de dientes a tu perro en la boca, pásate con él por clínica Tus Veterinarios y te explicamos cómo hacerlo.

Necesitas hacer una limpieza dental profesional a tu mascota?
Llámanos al 622575274 o contacta con nosotros

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

¡Hola!