+
    ÁFñjÀ  ã                   óü   € R t ^ RIt^ RIt^ RIHt ]! R4      t]! R4      t]! R]P                  R7      t	R R lt
 ! R	 R
]]P                  4      t ! R R]P                  4      t ! R R]]P                  4      tR# )a  This module contains helper functions related to enums.

Warning:
    Contents of this module are intended to be used internally by the library and *not* by the
    user. Changes to this module are not considered breaking changes and may not be documented in
    the changelog.
N)ÚTypeVarÚ_AÚ_BÚ_Enum)Úboundc          	      óŠ   € V ^8„  d   QhR\         \        ,          R\        R\        R\        \        ,          \        ,          /# )é   Úenum_clsÚvalueÚdefaultÚreturn)Útyper   r   r   )Úformats   "ÚJ/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/_utils/enum.pyÚ__annotate__r   $   s4   € ÷ ñ œœe�ð ¬Rð ¼"ð ÄÌÅÌbÅñ ó    c                ó:   €  V ! V4      #   \          d    Tu # i ; i)zTries to call ``enum_cls(value)`` to convert the value into an enumeration member.
If that fails, the ``default`` is returned.
)Ú
ValueError)r	   r
   r   s   &&&r   Ú
get_memberr   $   s%   € ðÙ˜‹ÐøÜô ØŠðús   ‚
 Š™c                   óL   a € ] tR t^1t o RtRtV 3R lR ltV 3R lR ltRtV t	R# )Ú
StringEnumz{Helper class for string enums where ``str(member)`` prints the value, but ``repr(member)``
gives ``EnumName.MEMBER_NAME``.
c                ó    <€ V ^8„  d   QhRS[ /# ©r   r   ©Ústr)r   Ú__classdict__s   "€r   r   ÚStringEnum.__annotate__8   ó   ø€ ÷ :ñ :™#ñ :r   c                óP   € R V P                   P                   RV P                   R2# ©Ú<Ú.Ú>©Ú	__class__Ú__name__Úname©Úselfs   &r   Ú__repr__ÚStringEnum.__repr__8   ó&   € Ø�4—>‘>×*Ñ*Ð+¨1¨T¯Y©Y¨K°qÐ9Ð9r   c                ó    <€ V ^8„  d   QhRS[ /# r   r   )r   r   s   "€r   r   r   ;   s   ø€ ÷ !ñ !™ñ !r   c                ó,   € \         P                  V 4      # ©N)r   Ú__str__r'   s   &r   r/   ÚStringEnum.__str__;   s   € Ü�{‰{˜4Ó Ð r   © N©
r%   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r)   r/   Ú__static_attributes__Ú__classdictcell__©r   s   @r   r   r   1   s%   ø‡ € ñð €I÷:ð :÷!ö !r   r   c                   óz   a € ] tR t^@t o RtRtV 3R lR lt]P                  R8  d   V 3R lR lt	Rt
V tR# Rt
V tR# )	ÚIntEnumzxHelper class for int enums where ``str(member)`` prints the value, but ``repr(member)``
gives ``EnumName.MEMBER_NAME``.
c                ó    <€ V ^8„  d   QhRS[ /# r   r   )r   r   s   "€r   r   ÚIntEnum.__annotate__G   r   r   c                óP   € R V P                   P                   RV P                   R2# r   r#   r'   s   &r   r)   ÚIntEnum.__repr__G   r+   r   c                ó    <€ V ^8„  d   QhRS[ /# r   r   )r   r   s   "€r   r   r>   L   s   ø€ ÷ 	#ñ 	#™Sñ 	#r   c                ó,   € \        V P                  4      # r.   ©r   r
   r'   s   &r   r/   ÚIntEnum.__str__L   s   € Ü�t—z‘z“?Ð"r   r1   N)é   é   )r%   r3   r4   r5   r6   r7   r)   ÚsysÚversion_infor/   r8   r9   r:   s   @r   r<   r<   @   s:   ø‡ € ñð €I÷:ð :ð ×Ñ˜'Ô!÷	#ö 	#õ "r   r<   c                   óL   a € ] tR t^Pt o RtRtV 3R lR ltV 3R lR ltRtV t	R# )Ú	FloatEnumzzHelper class for float enums where ``str(member)`` prints the value, but ``repr(member)``
gives ``EnumName.MEMBER_NAME``.
c                ó    <€ V ^8„  d   QhRS[ /# r   r   )r   r   s   "€r   r   ÚFloatEnum.__annotate__W   r   r   c                óP   € R V P                   P                   RV P                   R2# r   r#   r'   s   &r   r)   ÚFloatEnum.__repr__W   r+   r   c                ó    <€ V ^8„  d   QhRS[ /# r   r   )r   r   s   "€r   r   rL   Z   s   ø€ ÷ ñ ™ñ r   c                ó,   € \        V P                  4      # r.   rC   r'   s   &r   r/   ÚFloatEnum.__str__Z   s   € Ü�4—:‘:‹Ðr   r1   Nr2   r:   s   @r   rJ   rJ   P   s%   ø‡ € ñð €I÷:ð :÷ö r   rJ   )r6   ÚenumÚ_enumrG   Útypingr   r   r   ÚEnumr   r   r   r   r<   ÚfloatrJ   r1   r   r   Ú<module>rW      sp   ðñ&ó Û 
Ý áˆTƒ]€ÙˆTƒ]€Ù�˜uŸz™zÔ*€õô!��e—j‘jô !ô#ˆe�m‰mô #ô ��u—z‘zö r   