+
    ÁFñjÃ=  ã                   ó  € R t ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt  ! R R]4      t ! R	 R
]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      tR# )z8This module contains objects that represent story areas.)ÚFinal)Ú	constants)ÚReactionType)ÚTelegramObject)Úenum)ÚJSONDictc                   óN   a a€ ] tR t^t oRtRtRR/V3R lV 3R llltRtVtV ;t	# )ÚStoryAreaPositiona  Describes the position of a clickable area within a story.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if all of their attributes are equal.

.. versionadded:: 22.1

Args:
    x_percentage (:obj:`float`): The abscissa of the area's center, as a percentage of the
        media width.
    y_percentage (:obj:`float`): The ordinate of the area's center, as a percentage of the
        media height.
    width_percentage (:obj:`float`): The width of the area's rectangle, as a percentage of the
        media width.
    height_percentage (:obj:`float`): The height of the area's rectangle, as a percentage of
        the media height.
    rotation_angle (:obj:`float`): The clockwise rotation angle of the rectangle, in degrees;
        0-:tg-const:`~telegram.constants.StoryAreaPositionLimit.MAX_ROTATION_ANGLE`.
    corner_radius_percentage (:obj:`float`): The radius of the rectangle corner rounding, as a
        percentage of the media width.

Attributes:
    x_percentage (:obj:`float`): The abscissa of the area's center, as a percentage of the
        media width.
    y_percentage (:obj:`float`): The ordinate of the area's center, as a percentage of the
        media height.
    width_percentage (:obj:`float`): The width of the area's rectangle, as a percentage of the
        media width.
    height_percentage (:obj:`float`): The height of the area's rectangle, as a percentage of
        the media height.
    rotation_angle (:obj:`float`): The clockwise rotation angle of the rectangle, in degrees;
        0-:tg-const:`~telegram.constants.StoryAreaPositionLimit.MAX_ROTATION_ANGLE`.
    corner_radius_percentage (:obj:`float`): The radius of the rectangle corner rounding, as a
        percentage of the media width.

Ú
api_kwargsNc                óV   <€ V ^8„  d   QhRS[ RS[ RS[ RS[ RS[ RS[ RS[R,          R	R/# )
é   Úx_percentageÚy_percentageÚwidth_percentageÚheight_percentageÚrotation_angleÚcorner_radius_percentager
   NÚreturn)Úfloatr   )ÚformatÚ__classdict__s   "€ÚI/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/_storyarea.pyÚ__annotate__ÚStoryAreaPosition.__annotate__M   s_   ø€ ÷ ñ áðñ ðñ  ð	ñ
 !ðñ ðñ #(ðñ ˜t•Oðð 
ñó    c               ó"  <€ \         SV `  VR 7       Wn        W n        W0n        W@n        WPn        W`n        V P                  V P                  V P                  V P
                  V P                  V P                  3V n        V P                  4        R# ©)r
   N)
ÚsuperÚ__init__r   r   r   r   r   r   Ú	_id_attrsÚ_freeze)	Úselfr   r   r   r   r   r   r
   Ú	__class__s	   &&&&&&&$€r   r   ÚStoryAreaPosition.__init__M   s…   ø€ ô 	‰Ñ JÐÔ/Ø#/ÔØ#/ÔØ'7ÔØ(9ÔØ%3ÔØ/GÔ%ð ×ÑØ×ÑØ×!Ñ!Ø×"Ñ"Ø×ÑØ×)Ñ)ð
ˆŒð 	�‰Žr   )r   r   r   r   r   r   r   )r   r   r   r   r   r   ©
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r   Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r"   r   s   @@r   r	   r	      s+   ù‡ € ñ#ðJ€Iðð '+÷÷ õ r   r	   c                   óR   a a€ ] tR t^kt oRtRtRRR/V3R lV 3R lllltRtVtV ;t	# )	ÚLocationAddressa–  Describes the physical address of a location.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`country_code`, :attr:`state`, :attr:`city` and :attr:`street`
are equal.

.. versionadded:: 22.1

Args:
    country_code (:obj:`str`): The two-letter ``ISO 3166-1 alpha-2`` country code of the
        country where the location is located.
    state (:obj:`str`, optional): State of the location.
    city (:obj:`str`, optional): City of the location.
    street (:obj:`str`, optional): Street address of the location.

Attributes:
    country_code (:obj:`str`): The two-letter ``ISO 3166-1 alpha-2`` country code of the
        country where the location is located.
    state (:obj:`str`): Optional. State of the location.
    city (:obj:`str`): Optional. City of the location.
    street (:obj:`str`): Optional. Street address of the location.

Nr
   c                ót   <€ V ^8„  d   QhRS[ RS[ R,          RS[ R,          RS[ R,          RS[R,          RR/# )r   Úcountry_codeÚstateNÚcityÚstreetr
   r   ©Ústrr   )r   r   s   "€r   r   ÚLocationAddress.__annotate__†   sW   ø€ ÷ ñ áðñ �T�zðñ �D�jð	ñ
 �d•
ðñ ˜t•Oðð 
ñr   c               óÞ   <€ \         SV `  VR 7       Wn        W n        W0n        W@n        V P                  V P                  V P                  V P
                  3V n        V P                  4        R# r   )r   r   r2   r3   r4   r5   r   r    )r!   r2   r3   r4   r5   r
   r"   s   &&&&&$€r   r   ÚLocationAddress.__init__†   sU   ø€ ô 	‰Ñ JÐÔ/Ø!-ÔØ!&Œ
Ø $Œ	Ø"(Œà×+Ñ+¨T¯Z©Z¸¿¹ÀDÇKÁKÐPˆŒØ�‰Žr   )r   r4   r2   r3   r5   )r4   r2   r3   r5   )NNNr$   r.   s   @@r   r0   r0   k   s*   ù‡ € ñð0 <€Iñð '+÷÷ ö r   r0   c                   ó@  a a€ ] tR t^™t oRtRt]P                  P                  t ]P                  P                  t	 ]P                  P                  t
 ]P                  P                  t ]P                  P                  t RR/V3R lV 3R llltV3R ltRtVtV ;t# )	ÚStoryAreaTypea4  Describes the type of a clickable area on a story. Currently, it can be one of:

* :class:`telegram.StoryAreaTypeLocation`
* :class:`telegram.StoryAreaTypeSuggestedReaction`
* :class:`telegram.StoryAreaTypeLink`
* :class:`telegram.StoryAreaTypeWeather`
* :class:`telegram.StoryAreaTypeUniqueGift`

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`type` is equal.

.. versionadded:: 22.1

Args:
    type (:obj:`str`): Type of the area.

Attributes:
    type (:obj:`str`): Type of the area.

r
   Nc                ó8   <€ V ^8„  d   QhRS[ RS[R,          RR/# )r   Útyper
   Nr   r6   )r   r   s   "€r   r   ÚStoryAreaType.__annotate__¼   s-   ø€ ÷ 
ñ 
áð
ñ ˜t•Oð	
ð
 
ñ
r   c               óÀ   <€ \         SV `  VR 7       \        P                  ! \        P
                  W4      V n        V P                  3V n        V P                  4        R# r   )	r   r   r   Ú
get_memberr   ÚStoryAreaTypeTyper>   r   r    )r!   r>   r
   r"   s   &&$€r   r   ÚStoryAreaType.__init__¼   sC   ø€ ô 	‰Ñ JÐÔ/ÜŸš¬×)DÑ)DÀdÓQˆŒ	àŸ)™)˜ˆŒØ�‰Žr   c                ó¦   <€ V ^8„  d   Qh/ S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   # )r   ÚLOCATIONÚSUGGESTED_REACTIONÚLINKÚWEATHERÚUNIQUE_GIFT)r   r7   )r   r   s   "€r   r   r?   ™   s\   ø‡ ‚ ñ0 ‘C�jÑ?ñ1 ñ4 ™c�
ÑSñ5 ñ8 ‘�*Ñ7ñ9 ñ< ‘3�ZÑ=ñ= ñ@ ‘s•ÑEòA r   )r   r>   )r>   )r%   r&   r'   r(   r)   r*   r   rB   rE   rF   rG   rH   rI   r   Ú__annotate_func__r+   r,   r-   r.   s   @@r   r<   r<   ™   s’   ù‡ € ñð* €Ià$×6Ñ6×?Ñ?€HØ@Ø%.×%@Ñ%@×%SÑ%SÐØJØ ×2Ñ2×7Ñ7€DØ<Ø#×5Ñ5×=Ñ=€GØ?Ø'×9Ñ9×EÑE€KØCð
ð '+÷	
õ 
÷G … r   r<   c                   óR   a a€ ] tR t^Ét oRtRtRRR/V3R lV 3R lllltRtVtV ;t	# )	ÚStoryAreaTypeLocationam  Describes a story area pointing to a location. Currently, a story can have up to
:tg-const:`~telegram.constants.StoryAreaTypeLimit.MAX_LOCATION_AREAS` location areas.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`latitude` and :attr:`longitude` are equal.

.. versionadded:: 22.1

Args:
    latitude (:obj:`float`): Location latitude in degrees.
    longitude (:obj:`float`): Location longitude in degrees.
    address (:class:`telegram.LocationAddress`, optional): Address of the location.

Attributes:
    type (:obj:`str`): Type of the area, always :attr:`~telegram.StoryAreaType.LOCATION`.
    latitude (:obj:`float`): Location latitude in degrees.
    longitude (:obj:`float`): Location longitude in degrees.
    address (:class:`telegram.LocationAddress`): Optional. Address of the location.

Nr
   c          
      óR   <€ V ^8„  d   QhRS[ RS[ RS[R,          RS[R,          RR/# )r   ÚlatitudeÚ	longitudeÚaddressNr
   r   )r   r0   r   )r   r   s   "€r   r   Ú"StoryAreaTypeLocation.__annotate__á   sM   ø€ ÷ Hñ HáðHñ ðHñ ! 4Õ'ð	Hñ ˜t•OðHð 
ñHr   c               ó$  <€ \         SV `  \        P                  VR 7       V P	                  4       ;_uu_ 4        Wn        W n        W0n        V P                  V P
                  V P                  3V n	        RRR4       R#   + '       g   i     R# ; i©)r>   r
   N)
r   r   r<   rE   Ú	_unfrozenrN   rO   rP   r>   r   )r!   rN   rO   rP   r
   r"   s   &&&&$€r   r   ÚStoryAreaTypeLocation.__init__á   sb   ø€ ô 	‰Ñœm×4Ñ4ÀÐÔLà�^‰^×ÕØ#+ŒMØ$-ŒNØ3:ŒLà"Ÿi™i¨¯©¸¿¹ÐGˆDŒN÷ ××Òús   ¹;A>Á>B	)r   rP   rN   rO   )rP   rN   rO   )Nr$   r.   s   @@r   rL   rL   É   s.   ù‡ € ñð* 5€IñHð '+÷H÷ Hö Hr   rL   c                   óR   a a€ ] tR t^ót oRtRtRRR/V3R lV 3R lllltRtVtV ;t	# )	ÚStoryAreaTypeSuggestedReactiona1  
Describes a story area pointing to a suggested reaction. Currently, a story can have up to
:tg-const:`~telegram.constants.StoryAreaTypeLimit.MAX_SUGGESTED_REACTION_AREAS`
suggested reaction areas.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`reaction_type`, :attr:`is_dark` and :attr:`is_flipped`
are equal.

.. versionadded:: 22.1

Args:
    reaction_type (:class:`ReactionType`): Type of the reaction.
    is_dark (:obj:`bool`, optional): Pass :obj:`True` if the reaction area has a dark
        background.
    is_flipped (:obj:`bool`, optional): Pass :obj:`True` if reaction area corner is flipped.

Attributes:
    type (:obj:`str`): Type of the area, always
        :tg-const:`~telegram.StoryAreaType.SUGGESTED_REACTION`.
    reaction_type (:class:`ReactionType`): Type of the reaction.
    is_dark (:obj:`bool`): Optional. Pass :obj:`True` if the reaction area has a dark
        background.
    is_flipped (:obj:`bool`): Optional. Pass :obj:`True` if reaction area corner is flipped.

Nr
   c          
      ó`   <€ V ^8„  d   QhRS[ RS[R,          RS[R,          RS[R,          RR/# )r   Úreaction_typeÚis_darkNÚ
is_flippedr
   r   )r   Úboolr   )r   r   s   "€r   r   Ú+StoryAreaTypeSuggestedReaction.__annotate__  sP   ø€ ÷ \ñ \á#ð\ñ ˜•ð\ñ ˜4•Kð	\ñ ˜t•Oð\ð 
ñ\r   c               ó:  <€ \         SV `  \        P                  VR 7       V P	                  4       ;_uu_ 4        Wn        W n        W0n        V P                  V P
                  V P                  V P                  3V n	        RRR4       R#   + '       g   i     R# ; irS   )
r   r   r<   rF   rT   rY   rZ   r[   r>   r   )r!   rY   rZ   r[   r
   r"   s   &&&&$€r   r   Ú'StoryAreaTypeSuggestedReaction.__init__  sk   ø€ ô 	‰Ñœm×>Ñ>È:ÐÔVà�^‰^×ÕØ/<ÔØ(/ŒLØ+5ŒOà"Ÿi™i¨×);Ñ);¸T¿\¹\È4Ï?É?Ð[ˆDŒN÷ ××Òúó   ¹AB	Â	B	)r   rZ   r[   rY   )rZ   r[   rY   )NNr$   r.   s   @@r   rW   rW   ó   s.   ù‡ € ñð6 ;€Iñ\ð '+÷\÷ \ö \r   rW   c                   óN   a a€ ] tR tRt oRtRtRR/V3R lV 3R llltRtVtV ;t	# )	ÚStoryAreaTypeLinki#  an  Describes a story area pointing to an ``HTTP`` or ``tg://`` link. Currently, a story can
have up to :tg-const:`~telegram.constants.StoryAreaTypeLimit.MAX_LINK_AREAS` link areas.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`url` is equal.

.. versionadded:: 22.1

Args:
    url (:obj:`str`): ``HTTP`` or ``tg://`` URL to be opened when the area is clicked.

Attributes:
    type (:obj:`str`): Type of the area, always :attr:`~telegram.StoryAreaType.LINK`.
    url (:obj:`str`): ``HTTP`` or ``tg://`` URL to be opened when the area is clicked.

r
   Nc                ó8   <€ V ^8„  d   QhRS[ RS[R,          RR/# )r   Úurlr
   Nr   r6   )r   r   s   "€r   r   ÚStoryAreaTypeLink.__annotate__7  s-   ø€ ÷ 3ñ 3áð3ñ ˜t•Oð	3ð
 
ñ3r   c               óö   <€ \         SV `  \        P                  VR 7       V P	                  4       ;_uu_ 4        Wn        V P                  V P
                  3V n        RRR4       R#   + '       g   i     R# ; irS   )r   r   r<   rG   rT   rd   r>   r   )r!   rd   r
   r"   s   &&$€r   r   ÚStoryAreaTypeLink.__init__7  sR   ø€ ô 	‰Ñœm×0Ñ0¸ZÐÔHà�^‰^×ÕØŒHà"Ÿi™i¨¯©Ð2ˆDŒN÷ ××Òúó   ¹$A'Á'A8	)r   rd   )rd   r$   r.   s   @@r   rb   rb   #  s*   ù‡ € ñð" €Ið3ð '+÷	3÷ 3õ 3r   rb   c                   óN   a a€ ] tR tRt oRtRtRR/V3R lV 3R llltRtVtV ;t	# )	ÚStoryAreaTypeWeatheriE  a¤  
Describes a story area containing weather information. Currently, a story can have up to
:tg-const:`~telegram.constants.StoryAreaTypeLimit.MAX_WEATHER_AREAS` weather areas.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`temperature`, :attr:`emoji` and
:attr:`background_color` are equal.

.. versionadded:: 22.1

Args:
    temperature (:obj:`float`): Temperature, in degree Celsius.
    emoji (:obj:`str`): Emoji representing the weather.
    background_color (:obj:`int`): A color of the area background in the ``ARGB`` format.

Attributes:
    type (:obj:`str`): Type of the area, always
        :tg-const:`~telegram.StoryAreaType.WEATHER`.
    temperature (:obj:`float`): Temperature, in degree Celsius.
    emoji (:obj:`str`): Emoji representing the weather.
    background_color (:obj:`int`): A color of the area background in the ``ARGB`` format.

r
   Nc          
      óD   <€ V ^8„  d   QhRS[ RS[RS[RS[R,          RR/# )r   ÚtemperatureÚemojiÚbackground_colorr
   Nr   )r   r7   Úintr   )r   r   s   "€r   r   Ú!StoryAreaTypeWeather.__annotate__`  sH   ø€ ÷ ^ñ ^áð^ñ ð^ñ ð	^ñ ˜t•Oð^ð 
ñ^r   c               ó:  <€ \         SV `  \        P                  VR 7       V P	                  4       ;_uu_ 4        Wn        W n        W0n        V P                  V P
                  V P                  V P                  3V n	        RRR4       R#   + '       g   i     R# ; irS   )
r   r   r<   rH   rT   rl   rm   rn   r>   r   )r!   rl   rm   rn   r
   r"   s   &&&&$€r   r   ÚStoryAreaTypeWeather.__init__`  sn   ø€ ô 	‰Ñœm×3Ñ3À
ÐÔKà�^‰^×ÕØ&1ÔØ#ŒJØ)9Ô!à"Ÿi™i¨×)9Ñ)9¸4¿:¹:Àt×G\ÑG\Ð]ˆDŒN÷ ××Òúr`   )r   rn   rm   rl   )rn   rm   rl   r$   r.   s   @@r   rj   rj   E  s.   ù‡ € ñð0 =€Ið^ð '+÷^÷ ^õ ^r   rj   c                   óN   a a€ ] tR tRt oRtRtRR/V3R lV 3R llltRtVtV ;t	# )	ÚStoryAreaTypeUniqueGiftir  a4  
Describes a story area pointing to a unique gift. Currently, a story can have at most
:tg-const:`~telegram.constants.StoryAreaTypeLimit.MAX_UNIQUE_GIFT_AREAS` unique gift area.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`name` is equal.

.. versionadded:: 22.1

Args:
    name (:obj:`str`): Unique name of the gift.

Attributes:
    type (:obj:`str`): Type of the area, always
        :tg-const:`~telegram.StoryAreaType.UNIQUE_GIFT`.
    name (:obj:`str`): Unique name of the gift.

r
   Nc                ó8   <€ V ^8„  d   QhRS[ RS[R,          RR/# )r   Únamer
   Nr   r6   )r   r   s   "€r   r   Ú$StoryAreaTypeUniqueGift.__annotate__ˆ  s-   ø€ ÷ 4ñ 4áð4ñ ˜t•Oð	4ð
 
ñ4r   c               óö   <€ \         SV `  \        P                  VR 7       V P	                  4       ;_uu_ 4        Wn        V P                  V P
                  3V n        RRR4       R#   + '       g   i     R# ; irS   )r   r   r<   rI   rT   rv   r>   r   )r!   rv   r
   r"   s   &&$€r   r   Ú StoryAreaTypeUniqueGift.__init__ˆ  sR   ø€ ô 	‰Ñœm×7Ñ7ÀJÐÔOà�^‰^×ÕØ!ŒIà"Ÿi™i¨¯©Ð3ˆDŒN÷ ××Òúrh   )r   rv   )rv   r$   r.   s   @@r   rt   rt   r  s*   ù‡ € ñð& €Ið4ð '+÷	4÷ 4õ 4r   rt   c                   óN   a a€ ] tR tRt oRtRtRR/V3R lV 3R llltRtVtV ;t	# )	Ú	StoryAreai–  a  Describes a clickable area on a story media.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`position` and :attr:`type` are equal.

.. versionadded:: 22.1

Args:
    position (:class:`telegram.StoryAreaPosition`): Position of the area.
    type (:class:`telegram.StoryAreaType`): Type of the area.

Attributes:
    position (:class:`telegram.StoryAreaPosition`): Position of the area.
    type (:class:`telegram.StoryAreaType`): Type of the area.

r
   Nc                ó>   <€ V ^8„  d   QhRS[ RS[RS[R,          RR/# )r   Úpositionr>   r
   Nr   )r	   r<   r   )r   r   s   "€r   r   ÚStoryArea.__annotate__ª  s7   ø€ ÷ ñ á#ðñ ðñ
 ˜t•Oðð 
ñr   c               óš   <€ \         SV `  VR 7       Wn        W n        V P                  V P                  3V n        V P                  4        R# r   )r   r   r}   r>   r   r    )r!   r}   r>   r
   r"   s   &&&$€r   r   ÚStoryArea.__init__ª  s<   ø€ ô 	‰Ñ JÐÔ/Ø+3ŒØ#'Œ	ØŸ-™-¨¯©Ð3ˆŒà�‰Žr   )r   r}   r>   )r}   r>   r$   r.   s   @@r   r{   r{   –  s*   ù‡ € ñð" %€Iðð
 '+÷÷ õ r   r{   N)r)   Útypingr   Útelegramr   Útelegram._reactionr   Útelegram._telegramobjectr   Útelegram._utilsr   Útelegram._utils.typesr   r	   r0   r<   rL   rW   rb   rj   rt   r{   © r   r   Ú<module>rˆ      s˜   ðñ& ?å å Ý +Ý 3Ý  Ý *ôJ˜ô JôZ+�nô +ô\-�Nô -ô`'H˜Mô 'HôT-\ ]ô -\ô`3˜ô 3ôD*^˜=ô *^ôZ!4˜mô !4ôH �ö  r   