
    ͆hg                         S SK r S SKrS SKJr  S SKrS SKrS\S\	4S jr
\
SS.S\S\ R                  S	\\/\	4   S
\	S\	4
S jjrg)    N)Callableurlreturnc                     [         R                  R                  U SS[        R                   30S9n[         R                  R                  U5       nUR                  5       sS S S 5        $ ! , (       d  f       g = f)Nz
User-Agentzmkdocs/)headers)urllibrequestRequestmkdocs__version__urlopenread)r   reqresps      J/opt/services/DDDS/venv/lib/python3.13/site-packages/mkdocs/utils/cache.pydownload_urlr   
   sW    
..
 
 |wvGYGYFZ=[.\
 
]C				$yy{ 
%	$	$s   A++
A9s   # )downloadcommentcache_durationr   r   c                >    [         R                  R                  XX#S9$ )a  
Downloads a file from the URL, stores it under ~/.cache/, and returns its content.

For tracking the age of the content, a prefix is inserted into the stored file, rather than relying on mtime.

Args:
    url: URL to use.
    download: Callback that will accept the URL and actually perform the download.
    cache_duration: How long to consider the URL content cached.
    comment: The appropriate comment prefix for this file format.
r   r   r   r   )mkdocs_get_depscachedownload_and_cache_urlr   s       r   r   r      s'    $   77 8      )datetimeurllib.requestr   typingr   mkdocs_get_deps.cacher   r   strbytesr   	timedeltar    r   r   <module>r$      ss        c e  (4	&& ue|$	
  r   