
    @jk                         d  Z d Zd Zd ZdS )c                 D      fd|                                 D             S )zNReturn a new dict from an input dict and a {'input_key': 'output_key'} mappingc                 0    i | ]\  }}|v 	||         S  r   ).0inputKey	outputKeyinputs      U/home/ubuntu/.hermes/hermes-agent/venv/lib/python3.11/site-packages/snscrape/utils.py
<dictcomp>zdict_map.<locals>.<dictcomp>   s0    ccc(;)QY]bQbQbE(OQbQbQb    )items)r   keyMaps   ` r	   dict_mapr      s(     	dcccv||~~ccccr   c                  D   i }|                                  D ]\  }}|                    d          }t          dt          |                    D ]8}||         dd                                         ||         dd         z   ||<   9||d                    |          <   |S )zHReturn a new dict from kwargs with snake_case keys replaced by camelCase_   N )r   splitrangelenupperjoin)kwargsoutkeyvaluekeyPartsis         r	   snake_to_camelr      s     
<<>> ! !ZS%YYs^^(CMM"" ; ;a!RaR&&((8A;qrr?:8A;; #bgghr   c                     d }| |_         |S )zAn argparse argument type factory for a non-empty string argument. The supplied `name` is used for the internal function name, resulting in better error messages.c                 P    |                                  } | r| S t          d          )Nzmust not be an empty string)strip
ValueError)ss    r	   fznonempty_string_arg.<locals>.f   s+    ggii! 
80111r   )__name__)namer$   s     r	   nonempty_string_argr'      s    2 2 2
 	r   c                 $     fd} fd}||fS )zqA helper function to generate the relevant module __getattr__ and __dir__ functions for handling deprecated namesc                     | v r;t                               |  d|          j         dt          d           |          S t	          dt          d|           )Nz is deprecated, use z instead   )
stacklevelzmodule z has no attribute )warningswarnr%   DeprecatedFeatureWarningAttributeError)r&   namess    r	   __getattr__z.module_deprecation_helper.<locals>.__getattr__"   sg    	U]]==DLLeDk.BLLLNfuv=www
+GGGtGGHHHr   c                  f    t           t                                                    z             S )N)sortedlistkeys)allr0   s   r	   __dir__z*module_deprecation_helper.<locals>.__dir__'   s&    	d5::<<(((	)	))r   r   )r6   r0   r1   r7   s   ``  r	   module_deprecation_helperr8      sK    I I I I I
* * * * * *Wr   N)r   r   r'   r8   r   r   r	   <module>r9      sN   d d d	 	 		
 	
 	

 
 
 
 
r   