§
    `~h
  ã                  óp   — d Z ddlmZ ddlZddlZddlmZ ddlm	Z	 erddl
mZ  G d„ d	e	¦  «        Zd	gZdS )
zmacOS.é    )ÚannotationsN)ÚTYPE_CHECKINGé   )ÚPlatformDirsABC)ÚPathc                  óÂ  — e Zd ZdZedd„¦   «         Zedd„¦   «         Zedd„¦   «         Zedd„¦   «         Zedd	„¦   «         Z	edd
„¦   «         Z
edd„¦   «         Zedd„¦   «         Zedd„¦   «         Zedd„¦   «         Zedd„¦   «         Zedd„¦   «         Zedd„¦   «         Zedd„¦   «         Zedd„¦   «         Zedd„¦   «         Zedd„¦   «         Zedd„¦   «         ZdS )ÚMacOSaß  
    Platform directories for the macOS operating system.

    Follows the guidance from
    `Apple documentation <https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html>`_.
    Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>`,
    `version <platformdirs.api.PlatformDirsABC.version>`,
    `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.

    ÚreturnÚstrc                óf   — |                       t          j                             d¦  «        ¦  «        S )zb:return: data directory tied to the user, e.g. ``~/Library/Application Support/$appname/$version``z~/Library/Application Support©Ú_append_app_name_and_versionÚosÚpathÚ
expanduser©Úselfs    ú`/var/www/html/prod/cognitive/venv/lib/python3.11/site-packages/pip/_vendor/platformdirs/macos.pyÚuser_data_dirzMacOS.user_data_dir   s)   € ð ×0Ò0µ´×1CÒ1CÐDcÑ1dÔ1dÑeÔeÐeó    c                ó   — t           j                             d¦  «        }|r|                      d¦  «        gng }|                     |                      d¦  «        ¦  «         | j        rt          j                             |¦  «        S |d         S )aB  
        :return: data directory shared by users, e.g. ``/Library/Application Support/$appname/$version``.
          If we're using a Python binary managed by `Homebrew <https://brew.sh>`_, the directory
          will be under the Homebrew prefix, e.g. ``/opt/homebrew/share/$appname/$version``.
          If `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled, and we're in Homebrew,
          the response is a multi-path string separated by ":", e.g.
          ``/opt/homebrew/share/$appname/$version:/Library/Application Support/$appname/$version``
        ú/opt/homebrewz/opt/homebrew/sharez/Library/Application Supportr   ©	ÚsysÚprefixÚ
startswithr   ÚappendÚ	multipathr   ÚpathsepÚjoin©r   Úis_homebrewÚ	path_lists      r   Úsite_data_dirzMacOS.site_data_dir    s†   € õ ”j×+Ò+¨OÑ<Ô<ˆØR]ÐeT×6Ò6Ð7LÑMÔMÐNÐNÐceˆ	Ø×Ò˜×:Ò:Ð;YÑZÔZÑ[Ô[Ð[ØŒ>ð 	.Ý”:—?’? 9Ñ-Ô-Ð-Ø˜Œ|Ðr   r   c                ó6   — |                       | j        ¦  «        S )zh:return: data path shared by users. Only return the first item, even if ``multipath`` is set to ``True``)Ú _first_item_as_path_if_multipathr$   r   s    r   Úsite_data_pathzMacOS.site_data_path1   s   € ð ×4Ò4°TÔ5GÑHÔHÐHr   c                ó   — | j         S )zC:return: config directory tied to the user, same as `user_data_dir`©r   r   s    r   Úuser_config_dirzMacOS.user_config_dir6   ó   € ð Ô!Ð!r   c                ó   — | j         S )zF:return: config directory shared by the users, same as `site_data_dir`)r$   r   s    r   Úsite_config_dirzMacOS.site_config_dir;   r+   r   c                óf   — |                       t          j                             d¦  «        ¦  «        S )zV:return: cache directory tied to the user, e.g. ``~/Library/Caches/$appname/$version``z~/Library/Cachesr   r   s    r   Úuser_cache_dirzMacOS.user_cache_dir@   s)   € ð ×0Ò0µ´×1CÒ1CÐDVÑ1WÔ1WÑXÔXÐXr   c                ó   — t           j                             d¦  «        }|r|                      d¦  «        gng }|                     |                      d¦  «        ¦  «         | j        rt          j                             |¦  «        S |d         S )a1  
        :return: cache directory shared by users, e.g. ``/Library/Caches/$appname/$version``.
          If we're using a Python binary managed by `Homebrew <https://brew.sh>`_, the directory
          will be under the Homebrew prefix, e.g. ``/opt/homebrew/var/cache/$appname/$version``.
          If `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled, and we're in Homebrew,
          the response is a multi-path string separated by ":", e.g.
          ``/opt/homebrew/var/cache/$appname/$version:/Library/Caches/$appname/$version``
        r   z/opt/homebrew/var/cachez/Library/Cachesr   r   r!   s      r   Úsite_cache_dirzMacOS.site_cache_dirE   s†   € õ ”j×+Ò+¨OÑ<Ô<ˆØVaÐiT×6Ò6Ð7PÑQÔQÐRÐRÐgiˆ	Ø×Ò˜×:Ò:Ð;LÑMÔMÑNÔNÐNØŒ>ð 	.Ý”:—?’? 9Ñ-Ô-Ð-Ø˜Œ|Ðr   c                ó6   — |                       | j        ¦  «        S )zi:return: cache path shared by users. Only return the first item, even if ``multipath`` is set to ``True``)r&   r1   r   s    r   Úsite_cache_pathzMacOS.site_cache_pathV   s   € ð ×4Ò4°TÔ5HÑIÔIÐIr   c                ó   — | j         S )zB:return: state directory tied to the user, same as `user_data_dir`r)   r   s    r   Úuser_state_dirzMacOS.user_state_dir[   r+   r   c                óf   — |                       t          j                             d¦  «        ¦  «        S )zR:return: log directory tied to the user, e.g. ``~/Library/Logs/$appname/$version``z~/Library/Logsr   r   s    r   Úuser_log_dirzMacOS.user_log_dir`   s)   € ð ×0Ò0µ´×1CÒ1CÐDTÑ1UÔ1UÑVÔVÐVr   c                ó@   — t           j                             d¦  «        S )zC:return: documents directory tied to the user, e.g. ``~/Documents``z~/Documents©r   r   r   r   s    r   Úuser_documents_dirzMacOS.user_documents_dire   ó   € õ Œw×!Ò! -Ñ0Ô0Ð0r   c                ó@   — t           j                             d¦  «        S )zC:return: downloads directory tied to the user, e.g. ``~/Downloads``z~/Downloadsr9   r   s    r   Úuser_downloads_dirzMacOS.user_downloads_dirj   r;   r   c                ó@   — t           j                             d¦  «        S )zA:return: pictures directory tied to the user, e.g. ``~/Pictures``z
~/Picturesr9   r   s    r   Úuser_pictures_dirzMacOS.user_pictures_diro   s   € õ Œw×!Ò! ,Ñ/Ô/Ð/r   c                ó@   — t           j                             d¦  «        S )z=:return: videos directory tied to the user, e.g. ``~/Movies``z~/Moviesr9   r   s    r   Úuser_videos_dirzMacOS.user_videos_dirt   s   € õ Œw×!Ò! *Ñ-Ô-Ð-r   c                ó@   — t           j                             d¦  «        S )z;:return: music directory tied to the user, e.g. ``~/Music``z~/Musicr9   r   s    r   Úuser_music_dirzMacOS.user_music_diry   s   € õ Œw×!Ò! )Ñ,Ô,Ð,r   c                ó@   — t           j                             d¦  «        S )z?:return: desktop directory tied to the user, e.g. ``~/Desktop``z	~/Desktopr9   r   s    r   Úuser_desktop_dirzMacOS.user_desktop_dir~   s   € õ Œw×!Ò! +Ñ.Ô.Ð.r   c                óf   — |                       t          j                             d¦  «        ¦  «        S )zg:return: runtime directory tied to the user, e.g. ``~/Library/Caches/TemporaryItems/$appname/$version``z~/Library/Caches/TemporaryItemsr   r   s    r   Úuser_runtime_dirzMacOS.user_runtime_dirƒ   s)   € ð ×0Ò0µ´×1CÒ1CÐDeÑ1fÔ1fÑgÔgÐgr   c                ó   — | j         S )zF:return: runtime directory shared by users, same as `user_runtime_dir`)rG   r   s    r   Úsite_runtime_dirzMacOS.site_runtime_dirˆ   s   € ð Ô$Ð$r   N)r
   r   )r
   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr   r$   r'   r*   r-   r/   r1   r3   r5   r7   r:   r=   r?   rA   rC   rE   rG   rI   © r   r   r	   r	      sv  € € € € € ð	ð 	ð ðfð fð fñ „Xðfð ðð ð ñ „Xðð  ðIð Ið Iñ „XðIð ð"ð "ð "ñ „Xð"ð ð"ð "ð "ñ „Xð"ð ðYð Yð Yñ „XðYð ðð ð ñ „Xðð  ðJð Jð Jñ „XðJð ð"ð "ð "ñ „Xð"ð ðWð Wð Wñ „XðWð ð1ð 1ð 1ñ „Xð1ð ð1ð 1ð 1ñ „Xð1ð ð0ð 0ð 0ñ „Xð0ð ð.ð .ð .ñ „Xð.ð ð-ð -ð -ñ „Xð-ð ð/ð /ð /ñ „Xð/ð ðhð hð hñ „Xðhð ð%ð %ð %ñ „Xð%ð %ð %r   r	   )rM   Ú
__future__r   Úos.pathr   r   Útypingr   Úapir   Úpathlibr   r	   Ú__all__rO   r   r   ú<module>rV      s¯   ðØ €à "Ð "Ð "Ð "Ð "Ð "à €€€Ø 
€
€
€
Ø  Ð  Ð  Ð  Ð  Ð  à  Ð  Ð  Ð  Ð  Ð  àð ØÐÐÐÐÐð|%ð |%ð |%ð |%ð |%ˆOñ |%ô |%ð |%ð@ ð€€€r   