§
    7?Äj·  ã                   ón   — d dl mZ 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
dS )	é    )Ú	dataclass)ÚClip)ÚEffect)ÚCompositeVideoClip)ÚCropc                   ó\   — 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ed	efd
„ZdS )ÚFreezeRegiona!  Freezes one region of the clip while the rest remains animated.

    You can choose one of three methods by providing either `region`,
    `outside_region`, or `mask`.

    Parameters
    ----------

    t
      Time at which to freeze the freezed region.

    region
      A tuple (x1, y1, x2, y2) defining the region of the screen (in pixels)
      which will be freezed. You can provide outside_region or mask instead.

    outside_region
      A tuple (x1, y1, x2, y2) defining the region of the screen (in pixels)
      which will be the only non-freezed region.

    mask
      If not None, will overlay a freezed version of the clip on the current clip,
      with the provided mask. In other words, the "visible" pixels in the mask
      indicate the freezed region in the final picture.

    r   ÚtNÚregionÚoutside_regionÚmaskÚclipÚreturnc                 ó   — | j         �…| j         \  }}}}|                     t          | j         Ž g¦  «                             | j        ¬¦  «                             |j        ¦  «                             ||f¦  «        }t          ||g¦  «        S | j	        �‡| j	        \  }}}}|                     t          | j	        Ž g¦  «                             ||f¦  «        }	|                     | j        ¬¦  «                             |j        ¦  «        }t          ||	g¦  «        S | j
        �\|                     | j        ¬¦  «                             |j        ¦  «                             | j
        ¦  «        }t          ||g¦  «        S dS )zApply the effect to the clip.N)r
   )r   Úwith_effectsr   Úto_ImageClipr
   Úwith_durationÚdurationÚwith_positionr   r   r   Ú	with_mask)
Úselfr   Úx1Úy1Ú_x2Ú_y2ÚfreezeÚx2Úy2Úanimated_regions
             úNC:\Projects\Historical\venv\Lib\site-packages\moviepy/video/fx/FreezeRegion.pyÚapplyzFreezeRegion.apply*   si  € àŒ;Ð"Ø#œ{ÑˆB��C˜à×!Ò!¥4¨¬Ð#5Ð"6Ñ7Ô7ß’ ¤�Ñ'Ô'ß’˜tœ}Ñ-Ô-ß’  B˜xÑ(Ô(ð	 õ & t¨V nÑ5Ô5Ð5àÔ Ð,Ø!Ô0‰NˆB��B˜Ø"×/Ò/Ý�tÔ*Ð+Ð,ñô çŠm˜R ˜HÑ%Ô%ð ð ×&Ò&¨¬Ð&Ñ0Ô0×>Ò>¸t¼}ÑMÔMˆFÝ% v¨Ð&?Ñ@Ô@Ð@àŒYÐ"à×!Ò! D¤FÐ!Ñ+Ô+ß’˜tœ}Ñ-Ô-ß’˜4œ9Ñ%Ô%ð õ
 & t¨V nÑ5Ô5Ð5ð #Ð"ó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   ÚfloatÚ__annotations__r   Útupler   r   r   r!   © r"   r    r	   r	   	   s�   € € € € € € ðð ð4 €A€u€L€L�LØ€FˆEÐÐÑØ €N�EÐ Ð Ñ Ø€Dˆ$ÐÐÑð6˜$ð 6 4ð 6ð 6ð 6ð 6ð 6ð 6r"   r	   N)Údataclassesr   Úmoviepy.Clipr   Úmoviepy.Effectr   Ú,moviepy.video.compositing.CompositeVideoClipr   Úmoviepy.video.fx.Cropr   r	   r*   r"   r    ú<module>r0      sŸ   ðØ !Ð !Ð !Ð !Ð !Ð !à Ð Ð Ð Ð Ð Ø !Ð !Ð !Ð !Ð !Ð !Ø KÐ KÐ KÐ KÐ KÐ KØ &Ð &Ð &Ð &Ð &Ð &ð ð:6ð :6ð :6ð :6ð :6�6ñ :6ô :6ñ „ð:6ð :6ð :6r"   