Ë
    Eü´jK  ã                   óH   — d dl mZ d dlmZ d dlmZ e G d„ de«      «       Zy)é    )Ú	dataclass)ÚClip)ÚEffectc                   ó6   — e Zd ZU dZeed<   eed<   dedefd„Zy)ÚSlideOutaÛ  Makes the clip goes away by one side of the screen.

    Only works when the clip is included in a CompositeVideoClip,
    and if the clip has the same size as the whole composition.

    Parameters
    ----------

    clip : moviepy.Clip.Clip
      A video clip.

    duration : float
      Time taken for the clip to be fully visible

    side : str
      Side of the screen where the clip goes. One of
      'top', 'bottom', 'left' or 'right'.

    Examples
    --------

    .. code:: python

        from moviepy import *

        clips = [... make a list of clips]
        slided_clips = [
            CompositeVideoClip([clip.with_effects([vfx.SlideOut(1, "left")])])
            for clip in clips
        ]
        final_clip = concatenate_videoclips(slided_clips, padding=-1)

        clip = ColorClip(
            color=(255, 0, 0), duration=1, size=(300, 300)
        ).with_fps(60)
        final_clip = CompositeVideoClip([clip.with_effects([vfx.SlideOut(1, "right")])])
    ÚdurationÚsideÚclipÚreturnc                 óú   ‡ ‡‡‡— |j                   €t        d«      ‚|j                  \  ŠŠ|j                   ‰ j                   z
  Šˆ ˆˆfd„ˆ ˆˆfd„ˆˆ ˆfd„ˆˆ ˆfd„dœ}|j                  |‰ j                     «      S )zApply the effect to the clip.zAttribute 'duration' not setc                 óH   •— t        d‰| ‰z
   ‰j                  z  z  «      dfS ©Nr   Úcenter©Úminr   ©ÚtÚselfÚtsÚws    €€€úW/root/workspace/ytshorts/venv/lib/python3.12/site-packages/moviepy/video/fx/SlideOut.pyú<lambda>z SlideOut.apply.<locals>.<lambda>:   s'   ø€ œs 1 a¨Q°©V¨9°t·}±}Ñ+DÑ&EÓFÈÐQ€ ó    c                 óF   •— t        d‰| ‰z
  ‰j                  z  z  «      dfS r   ©Úmaxr   r   s    €€€r   r   z SlideOut.apply.<locals>.<lambda>;   s%   ø€ ¤ A q¨Q°©V°t·}±}Ñ,DÑ'EÓ FÈÐQ€ r   c                 óH   •— dt        d‰| ‰z
   ‰j                  z  z  «      fS ©Nr   r   r   ©r   Úhr   r   s    €€€r   r   z SlideOut.apply.<locals>.<lambda><   s'   ø€ ˜h¬¨A¨q°a¸"±f°IÀÇÁÑ4MÑ/NÓ(OÐP€ r   c                 óF   •— dt        d‰| ‰z
  ‰j                  z  z  «      fS r   r   r   s    €€€r   r   z SlideOut.apply.<locals>.<lambda>=   s%   ø€  ¬3¨q°!¸¸B¹À$Ç-Á-Ñ7OÑ2PÓ+QÐ R€ r   )ÚleftÚrightÚtopÚbottom)r   Ú
ValueErrorÚsizeÚwith_positionr	   )r   r
   Úpos_dictr    r   r   s   `  @@@r   ÚapplyzSlideOut.apply2   sg   û€ à�=‰=Ð ÜÐ;Ó<Ð<à�y‰y‰ˆˆ1Ø�]‰]˜TŸ]™]Ñ*ˆåQÝQÝPÝRñ	
ˆð ×!Ñ! (¨4¯9©9Ñ"5Ó6Ð6r   N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚfloatÚ__annotations__Ústrr   r*   © r   r   r   r      s'   … ñ$ðL ƒOØ
ƒIð7˜$ð 7 4ô 7r   r   N)Údataclassesr   Úmoviepy.Clipr   Úmoviepy.Effectr   r   r2   r   r   ú<module>r6      s)   ðÝ !å Ý !ð ô87ˆvó 87ó ñ87r   