ó
    Ñ]j¾  ã                   óT   • S r SSKrSSKJr  \R                  " S5      r " S S5      rg)z)Support for interactive macros in IPythoné    N)ÚDEFAULT_ENCODINGz#\s*coding[:=]\s*([-\w.]+)c                   ó6   • \ rS rSrSrS rS rS rS rS r	Sr
g	)
ÚMacroé   z…Simple class to store the value of macros as strings.

Macro is just a callable that executes a string of IPython
input when called.
c                 óV  • / nSnUR                  5        HC  n[        R                  U5      nU(       a  UR                  S5      nM2  UR	                  U5        ME     SR                  U5      n[        U[        5      (       a  UR                  U=(       d    [        5      nUS-   U l
        g)z?store the macro value, as a single string which can be executedNé   Ú
)Ú
splitlinesÚcoding_declarationÚmatchÚgroupÚappendÚjoinÚ
isinstanceÚbytesÚdecoder   Úvalue)ÚselfÚcodeÚlinesÚencÚlineÚcoding_matchs         ÚO/home/mande/repo/quber/.venv/lib/python3.13/site-packages/IPython/core/macro.pyÚ__init__ÚMacro.__init__   sˆ   € àˆØˆØ—O‘OÖ%ˆDÜ-×3Ñ3°DÓ9ˆLÞØ"×(Ñ(¨Ó+’à—‘˜TÖ"ñ &ð �y‰y˜ÓˆÜ�dœE×"Ñ"Ø—;‘;˜s×6Ô&6Ó7ˆDØ˜D‘[ˆ�
ó    c                 ó   • U R                   $ ©N©r   ©r   s    r   Ú__str__ÚMacro.__str__&   s   € Ø�z‰zÐr   c                 ó2   • S[        U R                  5      -  $ )NzIPython.macro.Macro(%s))Úreprr   r!   s    r   Ú__repr__ÚMacro.__repr__)   s   € Ø(¬4°·
±
Ó+;Ñ;Ð;r   c                 ó   • SU R                   0$ )z$needed for safe pickling via %store r   r    r!   s    r   Ú__getstate__ÚMacro.__getstate__,   s   € à˜Ÿ™Ð$Ð$r   c                 óÖ   • [        U[        5      (       a"  [        U R                  UR                  -   5      $ [        U[        5      (       a  [        U R                  U-   5      $ [        er   )r   r   r   ÚstrÚ	TypeError)r   Úothers     r   Ú__add__ÚMacro.__add__0   sM   € Ü�eœU×#Ñ#Ü˜Ÿ™ e§k¡kÑ1Ó2Ð2Ü˜œs×#Ñ#Ü˜Ÿ™ eÑ+Ó,Ð,Üˆr   r    N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r"   r&   r)   r/   Ú__static_attributes__© r   r   r   r      s    † ñò!òò<ò%õr   r   )r5   ÚreÚIPython.utils.encodingr   Úcompiler   r   r7   r   r   Ú<module>r;      s*   ðÙ /ó 
å 3à—Z’ZÐ =Ó>Ð ÷%ò %r   