+
    3€Ög£	  ã                  ó°   € ^ RI Ht ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	H
t
 ^ RIt^RIHt ]P                  ! R] 24      tR R ltR]R	R
/R R lltR# )é    )ÚannotationsN)ÚCallable)Ú__version__zmkdocs.c               ó    € V ^8„  d   QhRRRR/# )é   ÚurlÚstrÚreturnÚbytes© )Úformats   "Ú7/usr/lib/python3/dist-packages/mkdocs_get_deps/cache.pyÚ__annotate__r      s   € ÷ ñ �sð ˜uñ ó    c                ó  € \         P                  P                  V R R\         2/R7      p\         P                  P	                  V4      ;_uu_ 4       pVP                  4       uuRRR4       #   + '       g   i     R# ; i)z
User-Agentzmkdocs-get-deps/)ÚheadersN)ÚurllibÚrequestÚRequestr   ÚurlopenÚread)r   ÚreqÚresps   &  r   Ú_download_urlr      sX   € Ü
�.‰.×
 Ñ
  ¨|Ð?OÔP[È}Ð=]Ð.^Ð
 Ó
_€CÜ	�‰×	Ñ	 ×	$Ô	$¨Ø�y‰y‹{÷ 
%×	$×	$Ó	$ús   ÁA-Á-A>	ÚdownloadÚcomments   # c          
     ó,   € V ^8„  d   QhRRRRRRRRR	R/# )
r   r   r	   Úcache_durationzdatetime.timedeltar   zCallable[[str], bytes]r   r   r
   r   )r   s   "r   r   r      s:   € ÷ .ñ .Ø	ð.à&ð.ð %ð	.ð
 ð.ð ñ.r   c          	     óF  € \         P                  P                  \        P                  ! R4      R4      p\
        P                  ! V P                  4       4      P                  4       R,          p\         P                  P                  WE\         P                  P                  V 4      ^,          ,           4      p\        \        P                  P                  \        P                  P                  4      P                  4       4      pRW0P                  4       3,          p\         P                  P!                  V4      '       d·    \#        VR4      ;_uu_ 4       p	V	P%                  4       p
V
P'                  V4      '       dr   V
\)        V4      R p
\        V
4      p\        P*                  ! W{,
          R7      V8:  d7   \,        P/                  RV R	V  R
24       V	P1                  4       uuRRR4       # RRR4       \,        P/                  RV  RV R
24       V! V 4      p\         P:                  ! VRR7       V R\<        P>                  ! R4      R R2p\#        VR4      ;_uu_ 4       p	V	PA                  RW‡3,          4       V	PA                  V4       RRR4       \         PB                  ! Wæ4       V#   + '       g   i     LÈ; i  \2        \4        3 d9   p\,        P/                  \7        T4      P8                   RT 24        Rp?ELRp?ii ; i  + '       g   i     L‡; i)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.
ÚmkdocsÚmkdocs_url_cache:Né    Ns   %s%s downloaded at timestamp ÚrbN)ÚsecondszUsing cached 'z' for 'Ú'z: zDownloading 'z' to 'T)Úexist_okÚ.Ú08xz.partÚwbs   %s%d
l        )"ÚosÚpathÚjoinÚplatformdirsÚuser_cache_dirÚhashlibÚsha256ÚencodeÚ	hexdigestÚsplitextÚintÚdatetimeÚnowÚtimezoneÚutcÚ	timestampÚisfileÚopenÚreadlineÚ
startswithÚlenÚ	timedeltaÚlogÚdebugr   ÚOSErrorÚ
ValueErrorÚtypeÚ__name__ÚmakedirsÚrandomÚ	randrangeÚwriteÚreplace)r   r   r   r   Ú	directoryÚ	name_hashr+   r6   ÚprefixÚfÚliner9   ÚeÚcontentÚtemp_filenames   &&$$           r   Údownload_and_cache_urlrS      s9  € ô" —‘—‘œ\×8Ò8¸ÓBÐDVÓW€IÜ—’˜sŸz™z›|Ó,×6Ñ6Ó8¸Õ=€IÜ�7‰7�<‰<˜	¬r¯w©w×/?Ñ/?ÀÓ/DÀQÕ/GÕ#GÓH€Dä
Œh×Ñ×#Ñ#¤H×$5Ñ$5×$9Ñ$9Ó:×DÑDÓFÓ
G€CØ-°¿*¹*»,Ð0GÕG€Fä	‡w�w‡~�~�d×Òð
	2Ü�d˜D×!Ô! QØ—z‘z“|�Ø—?‘? 6×*Ò*Ø¤ F£ Ð.�DÜ # D£	�IÜ×)Ò)°3µ?ÔDÈÔVÜŸ	™	 N°4°&¸À¸uÀAÐ"FÔGØ Ÿv™v›x÷ "×!Ò!ô ‡I�I�˜c˜U &¨¨¨aÐ0Ô1Ù�s‹m€GÜ‡K‚K�	 DÕ)Ø�f˜Aœf×.Ò.¨wÓ7¸Ð<¸EÐB€MÜ	ˆm˜T×	"Ô	" aØ	�‰�	˜V˜MÕ)Ô*Ø	�‰�Ô÷ 
#ô ‡J‚Jˆ}Ô#Ø€N÷) "×!ûô œÐ$ô 	2Ü�I‰Iœ˜a›×)Ñ)Ð*¨"¨Q¨CÐ0×1Ò1ûð	2ú÷ 
#×	"úsI   ÅK ÅBJ1Ç&
K Ç1K É&+LÊ1K	Ê<K ËK ËLË-LÌLÌL 	)Ú
__future__r   r5   r/   Úloggingr*   rG   Úurllib.requestr   Útypingr   r-   Ú r   Ú	getLoggerrE   r@   r   rS   r   r   r   Ú<module>rZ      s]   ðÝ "ã Û Û Û 	Û Û Ý ã å à×Ò˜' ( Ð,Ó-€õð.ð (5ð	.ð
 ÷.ñ .r   