§
    ¤”jT  ã                   óŒ   — d Z ddlmZ ddlmZ  G d„ d¦  «        Z G d„ dee¦  «        ZeZd„ Z	 ee¦  «        d	„ ¦   «         Z
d
S )a8  
Functions for working with "safe strings": strings that can be displayed safely
without further escaping in HTML. Marking something as a "safe string" means
that the producer of the string has already turned characters that should not
be interpreted by the HTML engine (e.g. '<') into the appropriate entities.
é    ©Úwraps)Ú	keep_lazyc                   ó   — e Zd ZdZd„ ZdS )ÚSafeData© c                 ó   — | S )zŸ
        Return the html representation of a string for interoperability.

        This allows other template engines to understand Django's SafeData.
        r   ©Úselfs    úf/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/django/utils/safestring.pyÚ__html__zSafeData.__html__   s	   € ð ˆó    N)Ú__name__Ú
__module__Ú__qualname__Ú	__slots__r   r   r   r   r   r      s(   € € € € € Ø€Iðð ð ð ð r   r   c                   ó,   ‡ — e Zd ZdZdZˆ fd„Zd„ Zˆ xZS )Ú
SafeStringzb
    A str subclass that has been specifically marked as "safe" for HTML output
    purposes.
    r   c                 ó’   •— t          ¦   «                              |¦  «        }t          |t          ¦  «        rt	          |¦  «        S |S )z“
        Concatenating a safe string with another safe bytestring or
        safe string is safe. Otherwise, the result is no longer safe.
        )ÚsuperÚ__add__Ú
isinstancer   r   )r   ÚrhsÚtÚ	__class__s      €r   r   zSafeString.__add__!   s=   ø€ õ
 ‰GŒG�OŠO˜CÑ Ô ˆÝ�c�8Ñ$Ô$ð 	!Ý˜a‘=”=Ð Øˆr   c                 ó   — | S ©Nr   r
   s    r   Ú__str__zSafeString.__str__+   s   € Øˆr   )r   r   r   Ú__doc__r   r   r   Ú__classcell__)r   s   @r   r   r      sX   ø€ € € € € ðð ð
 €Iðð ð ð ð ðð ð ð ð ð ð r   r   c                 ó@   ‡ ‡— t          ‰¦  «        ˆˆ fd„¦   «         }|S )Nc                  ó&   •—  ‰ ‰| i |¤Ž¦  «        S r   r   )ÚargsÚkwargsÚfuncÚsafety_markers     €€r   Úwrapperz"_safety_decorator.<locals>.wrapper3   s"   ø€ àˆ}˜T˜T 4Ð2¨6Ð2Ð2Ñ3Ô3Ð3r   r   )r&   r%   r'   s   `` r   Ú_safety_decoratorr(   2   s9   øø€ Ý
ˆ4�[„[ð4ð 4ð 4ð 4ð 4ñ „[ð4ð €Nr   c                 óŒ   — t          | d¦  «        r| S t          | ¦  «        rt          t          | ¦  «        S t	          | ¦  «        S )a  
    Explicitly mark a string as safe for (HTML) output purposes. The returned
    object can be used everywhere a string is appropriate.

    If used on a method as a decorator, mark the returned data as safe.

    Can be called multiple times on a single string.
    r   )ÚhasattrÚcallabler(   Ú	mark_safer   )Úss    r   r,   r,   :   sE   € õ ˆq�*ÑÔð ØˆÝ��{„{ð /Ý ¥¨AÑ.Ô.Ð.Ý�a‰=Œ=Ðr   N)r   Ú	functoolsr   Údjango.utils.functionalr   r   Ústrr   ÚSafeTextr(   r,   r   r   r   ú<module>r2      sÏ   ððð ð Ð Ð Ð Ð Ð à -Ð -Ð -Ð -Ð -Ð -ð	ð 	ð 	ð 	ð 	ñ 	ô 	ð 	ðð ð ð ð ��hñ ô ð ð, €ðð ð ð €ˆ:ÑÔðð ñ Ôðð ð r   