§
    ¹eîi§  ã                  ób   — d dl mZ d dlmZmZmZ dZdZdZdZ	dZ
ed         Zdd„Zdd„Zdd„ZdS )é    )Úannotations)ÚLiteralÚUnionÚget_argsé   zX-Fal-Request-TimeoutzX-Fal-Request-Timeout-TypezX-Fal-Runner-HintzX-Fal-Queue-Priority)ÚnormalÚlowÚtimeoutúUnion[int, float]Úheadersúdict[str, str]ÚreturnÚNonec                óÜ   — 	 t          | ¦  «        } n # t          $ r t          d| › �¦  «        ‚w xY w| t          k    rt          dt          › d�¦  «        ‚t          | ¦  «        |t          <   dS )zV
    Validates the timeout and adds the timeout header to the headers dictionary.
    zTimeout must be a number, got zTimeout must be greater than z secondsN)ÚfloatÚ
ValueErrorÚMIN_REQUEST_TIMEOUT_SECONDSÚstrÚREQUEST_TIMEOUT_HEADER)r
   r   s     úW/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/fal_client/_headers.pyÚadd_timeout_headerr      s“   € ðEÝ˜‘.”.ˆˆøåð Eð Eð EÝÐC¸'ÐCÐCÑDÔDÐDðEøøøð Õ-Ò-Ð-ÝØQÕ,GÐQÐQÐQñ
ô 
ð 	
õ '*¨'¡l¤l€GÕ"Ñ#Ð#Ð#s   ‚ ’/Úhintr   c                ó   — | |t           <   d S )N)ÚRUNNER_HINT_HEADER)r   r   s     r   Úadd_hint_headerr   "   s   € Ø"&€GÕÑÐÐó    ÚpriorityÚPriorityc                óv   — t          t          ¦  «        }| |vrt          d|› d| › d�¦  «        ‚| |t          <   dS )a&  
    Validates the priority and adds the priority header to the headers dictionary.

    Args:
        priority: Queue priority, must be "normal" or "low".
        headers: Headers dictionary to add the priority header to.

    Raises:
        ValueError: If priority is not a valid value.
    zPriority must be one of z, got 'ú'N)r   r   r   ÚQUEUE_PRIORITY_HEADER)r   r   Úvalid_prioritiess      r   Úadd_priority_headerr#   &   sZ   € õ  ¥Ñ)Ô)ÐØÐ'Ð'Ð'ÝØKÐ'7ÐKÐKÀÐKÐKÐKñ
ô 
ð 	
ð &.€GÕ!Ñ"Ð"Ð"r   N)r
   r   r   r   r   r   )r   r   r   r   r   r   )r   r   r   r   r   r   )Ú
__future__r   Útypingr   r   r   r   r   ÚREQUEST_TIMEOUT_TYPE_HEADERr   r!   r   r   r   r#   © r   r   ú<module>r(      s§   ðØ "Ð "Ð "Ð "Ð "Ð "à +Ð +Ð +Ð +Ð +Ð +Ð +Ð +Ð +Ð +àÐ ð 1Ð Ø:Ð Ø(Ð Ø.Ð ð �?Ô#€ð3ð 3ð 3ð 3ð"'ð 'ð 'ð 'ð.ð .ð .ð .ð .ð .r   