Ë
    CåÃh"  ã                   óT   — d dl mZ d dlmZ d dlmZ d dlmZ e G d„ de«      «       Zy)é    )Ú	dataclass)ÚClip)ÚEffect)Úconcatenate_videoclipsc                   óh   — e Zd ZU dZdZeed<   dZeed<   dZeed<   dZ	eed<   dZ
eed	<   d
edefd„Zy)ÚFreezeaL  Momentarily freeze the clip at time t.

    Set `t='end'` to freeze the clip at the end (actually it will freeze on the
    frame at time clip.duration - padding_end seconds - 1 / clip_fps).
    With ``duration`` you can specify the duration of the freeze.
    With ``total_duration`` you can specify the total duration of
    the clip and the freeze (i.e. the duration of the freeze is
    automatically computed). One of them must be provided.

    With ``update_start_end`` you can define if the effect must preserve
    and/or update start and end properties of the original clip
    r   ÚtNÚfreeze_durationÚtotal_durationÚpadding_endTÚupdate_start_endÚclipÚreturnc                 ó"  — |j                   €t        d«      ‚| j                  dk(  r.|j                   | j                  z
  d|j                  z  z
  | _        | j
                  €5| j                  €t        d«      ‚| j                  |j                   z
  | _        | j                  dk7  r|d| j                   gng }|j                  | j                  «      j                  | j
                  «      g}| j                  |j                   k7  r|| j                  d gng }t        ||z   |z   «      }| j                  r[|j                  |j                  |j                  «      }|j                  (|j                  |j                  | j
                  z   «      }|S )zApply the effect to the clip.NzAttribute 'duration' not setÚendé   z=You must provide either 'freeze_duration' or 'total_duration'r   )ÚdurationÚ
ValueErrorr	   r   Úfpsr
   r   Úto_ImageClipÚwith_durationr   r   ÚstartÚ
with_startr   Úwith_end)Úselfr   ÚbeforeÚfreezeÚafterÚnew_clips         úb/var/www/html/Telegram-Engagement-Pod-/env/lib/python3.12/site-packages/moviepy/video/fx/Freeze.pyÚapplyzFreeze.apply   sX  € à=‰=Ð ÜÐ;Ó<Ð<à6‰6UŠ?Ø—]‘] T×%5Ñ%5Ñ5¸¸D¿H¹H¹ÑDˆDŒFà×ÑÐ'Ø×"Ñ"Ð*Ü ØSóð ð $(×#6Ñ#6¸¿¹Ñ#FˆDÔ à&*§f¡f°¢k$x˜Ÿ™.Ñ!¸ˆØ×#Ñ# D§F¡FÓ+×9Ñ9¸$×:NÑ:NÓOÐPˆØ%)§V¡V¨t¯}©}Ò%<d—f‘fhÑ À2ˆä)¨&°6©/¸EÑ*AÓBˆØ× Ò Øz‰zÐ%Ø#×.Ñ.¨t¯z©zÓ:Øx‰xÐ#Ø#×,Ñ,¨T¯X©X¸×8LÑ8LÑ-LÓMàˆó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   ÚfloatÚ__annotations__r
   r   r   r   Úboolr   r!   © r"   r    r   r      sN   … ñð €A€uƒLØ!€OUÓ!Ø €NEÓ Ø€KÓØ!ÐdÓ!ð˜$ð  4ô r"   r   N)	Údataclassesr   Úmoviepy.Clipr   Úmoviepy.Effectr   Ú,moviepy.video.compositing.CompositeVideoClipr   r   r*   r"   r    Ú<module>r/      s,   ðÝ !å Ý !Ý Oð ô.ˆVó .ó ñ.r"   