+
    "i                     b    R t ^ RIt^ RIHt ]P                  ! R4      tR R ltRR/R R	 lltR# )
zVarious URL utils for HACS.N)Literalz^[a-fA-F0-9]{40}$c                H    V ^8  d   QhR\         R\         R\         R\         /# )   
repositoryversionfilenamereturn)str)formats   "+/config/custom_components/hacs/utils/url.py__annotate__r   	   s8     U UU U 	U 	U    c                    RV  RV RV 2# )z,Generate a download URL for a release asset.https://github.com/z/releases/download// )r   r   r   _s   $$$,r   github_release_assetr   	   s     !,?y(TTr   variantheadsc                V    V ^8  d   QhR\         R\         R\        R,          R\         /# )r   r   r   r   r   )r   tags)r	   r   )r
   s   "r   r   r      s=     
S 
S
S 
S _%	
S 	
Sr   c                b    \         P                  V4      '       d
   RV  RV R2# RV  RV RV R2# )z-Generate a download URL for a repository zip.r   z	/archive/z.zipz/archive/refs/r   )GIT_SHAmatch)r   r   r   r   s   $$$,r   github_archiver      sC     }}W$ZL	'$GG N7)1WITRRr   )__doc__retypingr   compiler   r   r   r   r   r   <module>r       s:    ! 	 
**)
*U
S )0	
S 
Sr   