
    )Jf                     $    d dl mZ d dlmZ d ZdS )    wraps)	ratelimitc                      ddl m} |j                                       }|rJt	          j        |          }                    d|j                                       d|j                    fd}|S )Nr   )app_settingsdurationamountc                 B     t                      fd            }|S )Nc                 L    t          j        | fdi}|s | g|R i |}|S )Naction)r   consume_or_429)requestargskwargsrespr   function	rl_kwargss       U/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/allauth/decorators.pywrapz+rate_limit.<locals>.decorator.<locals>.wrap   sL    +GPPFPiPPD :x9$999&99K    r   )r   r   r   r   s   ` r   	decoratorzrate_limit.<locals>.decorator   s>    	x	 	 	 	 	 	 
	 r   )	allauth.accountr   RATE_LIMITSgetr   parse
setdefaultr   r	   )r   r   r   rater   s   ``   r   
rate_limitr      s    ,,,,,,#''//D 4t$$Z777Xt{333      r   N)	functoolsr   allauth.corer   r    r   r   <module>r"      sB          " " " " " "    r   