Ë
    `§1hÈ:  ã                  ó  — d dl mZ ddlmZmZ d dlmZ d dlZd dlZddl	m
Z
  G d„ de«      Z G d	„ d
e«      Ze G d„ d«      «       Ze G d„ d«      «       Ze G d„ d«      «       Ze G d„ d«      «       Z G d„ de«      Z	 	 	 	 d$d„Zd%d„Zd%d„Z	 	 	 	 d&d„Z	 	 	 	 d'd„Z	 	 	 d(	 	 	 	 	 	 	 	 	 d)d„Z	 	 	 	 d*d„Z	 	 	 d(	 	 	 	 	 	 	 	 	 d+d„Z	 	 	 	 d,d„Z ed«      e G d„ d «      «       «       Z ed!«      e G d"„ d#«      «       «       Zy)-é    )Úannotationsé   )Úevent_classÚT_JSON_DICT)Ú	dataclassN)Údomc                  ó<   ‡ — e Zd ZdZdd„Zedd„«       Zˆ fd„Zˆ xZS )ÚLayerIdz"
    Unique Layer identifier.
    c                ó   — | S ©N© ©Úselfs    úp/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/selenium/webdriver/common/devtools/v135/layer_tree.pyÚto_jsonzLayerId.to_json   ó   € Øˆó    c                ó   —  | |«      S r   r   ©ÚclsÚjsons     r   Ú	from_jsonzLayerId.from_json   ó   € á�4‹yÐr   c                ó>   •— dj                  t        ‰| �	  «       «      S )NzLayerId({})©ÚformatÚsuperÚ__repr__©r   Ú	__class__s    €r   r   zLayerId.__repr__   s   ø€ Ø×#Ñ#¤E¡GÑ$4Ó$6Ó7Ð7r   ©ÚreturnÚstr)r   r#   r"   r
   ©	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úclassmethodr   r   Ú__classcell__©r    s   @r   r
   r
      s+   ø„ ñóð òó ð÷8ð 8r   r
   c                  ó<   ‡ — e Zd ZdZdd„Zedd„«       Zˆ fd„Zˆ xZS )Ú
SnapshotIdz%
    Unique snapshot identifier.
    c                ó   — | S r   r   r   s    r   r   zSnapshotId.to_json"   r   r   c                ó   —  | |«      S r   r   r   s     r   r   zSnapshotId.from_json%   r   r   c                ó>   •— dj                  t        ‰| �	  «       «      S )NzSnapshotId({})r   r   s    €r   r   zSnapshotId.__repr__)   s   ø€ Ø×&Ñ&¤u¡wÑ'7Ó'9Ó:Ð:r   r!   )r   r#   r"   r-   r$   r+   s   @r   r-   r-      s+   ø„ ñóð òó ð÷;ð ;r   r-   c                  ó<   — e Zd ZU dZded<   ded<   d„ Zed„ «       Zy)	Ú
ScrollRectz?
    Rectangle where scrolling happens on the main thread.
    údom.RectÚrectr#   Útype_c                ór   — t        «       }| j                  j                  «       |d<   | j                  |d<   |S )Nr4   Útype)Údictr4   r   r5   ©r   r   s     r   r   zScrollRect.to_json8   s1   € Ü‹vˆØ—y‘y×(Ñ(Ó*ˆˆV‰Ø—z‘zˆˆV‰Øˆr   c                ón   —  | t         j                  j                  |d   «      t        |d   «      ¬«      S )Nr4   r7   )r4   r5   )r   ÚRectr   r#   r   s     r   r   zScrollRect.from_json>   s1   € áÜ—‘×#Ñ# D¨¡LÓ1Ü�d˜6‘lÓ#ô
ð 	
r   N©r%   r&   r'   r(   Ú__annotations__r   r)   r   r   r   r   r2   r2   -   s.   … ñð ƒNð ƒJòð ñ
ó ñ
r   r2   c                  óX   — e Zd ZU dZded<   ded<   dZded<   dZded<   d	„ Zed
„ «       Z	y)ÚStickyPositionConstraintz&
    Sticky position constraints.
    r3   Ústicky_box_rectÚcontaining_block_rectNútyping.Optional[LayerId]Ú!nearest_layer_shifting_sticky_boxÚ'nearest_layer_shifting_containing_blockc                ó2  — t        «       }| j                  j                  «       |d<   | j                  j                  «       |d<   | j                  �| j                  j                  «       |d<   | j
                  �| j
                  j                  «       |d<   |S )NÚstickyBoxRectÚcontainingBlockRectÚnearestLayerShiftingStickyBoxÚ#nearestLayerShiftingContainingBlock)r8   r@   r   rA   rC   rD   r9   s     r   r   z StickyPositionConstraint.to_jsonW   s�   € Ü‹vˆØ $× 4Ñ 4× <Ñ <Ó >ˆˆ_ÑØ&*×&@Ñ&@×&HÑ&HÓ&JˆÐ"Ñ#Ø×1Ñ1Ð=Ø48×4ZÑ4Z×4bÑ4bÓ4dˆDÐ0Ñ1Ø×7Ñ7ÐCØ:>×:fÑ:f×:nÑ:nÓ:pˆDÐ6Ñ7Øˆr   c           	     ó  —  | t         j                  j                  |d   «      t         j                  j                  |d   «      d|v rt        j                  |d   «      nd d|v rt        j                  |d   «      ¬«      S d ¬«      S )NrF   rG   rH   rI   )r@   rA   rC   rD   )r   r;   r   r
   r   s     r   r   z"StickyPositionConstraint.from_jsona   s¦   € áÜŸH™H×.Ñ.¨t°OÑ/DÓEÜ"%§(¡(×"4Ñ"4°TÐ:OÑ5PÓ"Qð kJð  NRñ  kR¬g×.?Ñ.?ÀÐEdÑ@eÔ.fð  X\ð w\ð  `dñ  wd´G×4EÑ4EÀdÐKpÑFqÓ4rô	
ð 	
ð jnô	
ð 	
r   )
r%   r&   r'   r(   r=   rC   rD   r   r)   r   r   r   r   r?   r?   F   sP   … ñð Óð $Ó#ð CGÐ%Ð'?ÓFð IMÐ+Ð-EÓLòð ñ
ó ñ
r   r?   c                  óF   — e Zd ZU dZded<   ded<   ded<   d„ Zed„ «       Zy	)
ÚPictureTilezV
    Serialized fragment of layer picture along with its offset within the layer.
    ÚfloatÚxÚyr#   Úpicturec                ót   — t        «       }| j                  |d<   | j                  |d<   | j                  |d<   |S )NrN   rO   rP   )r8   rN   rO   rP   r9   s     r   r   zPictureTile.to_jsony   s5   € Ü‹vˆØ—F‘FˆˆS‰	Ø—F‘FˆˆS‰	ØŸ,™,ˆˆY‰Øˆr   c                ó`   —  | t        |d   «      t        |d   «      t        |d   «      ¬«      S )NrN   rO   rP   )rN   rO   rP   )rM   r#   r   s     r   r   zPictureTile.from_json€   s3   € áÜ�D˜‘IÓÜ�D˜‘IÓÜ˜˜Y™Ó(ô
ð 	
r   Nr<   r   r   r   rL   rL   k   s5   … ñð ƒHð ƒHð ƒLòð ñ
ó ñ
r   rL   c                  óì   — e Zd ZU dZded<   ded<   ded<   ded<   ded<   d	ed
<   ded<   dZded<   dZded<   dZded<   dZded<   dZ	ded<   dZ
ded<   dZded<   dZded<   dZded<   d„ Zed„ «       Zy) ÚLayerz0
    Information about a compositing layer.
    r
   Úlayer_idrM   Úoffset_xÚoffset_yÚwidthÚheightÚintÚpaint_countÚboolÚdraws_contentNrB   Úparent_layer_idz"typing.Optional[dom.BackendNodeId]Úbackend_node_idz#typing.Optional[typing.List[float]]Ú	transformútyping.Optional[float]Úanchor_xÚanchor_yÚanchor_zztyping.Optional[bool]Ú	invisiblez(typing.Optional[typing.List[ScrollRect]]Úscroll_rectsz)typing.Optional[StickyPositionConstraint]Ústicky_position_constraintc                óª  — t        «       }| j                  j                  «       |d<   | j                  |d<   | j                  |d<   | j
                  |d<   | j                  |d<   | j                  |d<   | j                  |d<   | j                  �| j                  j                  «       |d<   | j                  �| j                  j                  «       |d	<   | j                  �| j                  D �cg c]  }|‘Œ c}|d
<   | j                  �| j                  |d<   | j                  �| j                  |d<   | j                  �| j                  |d<   | j                  �| j                  |d<   | j                   �+| j                   D �cg c]  }|j                  «       ‘Œ c}|d<   | j"                  �| j"                  j                  «       |d<   |S c c}w c c}w )NÚlayerIdÚoffsetXÚoffsetYrX   rY   Ú
paintCountÚdrawsContentÚparentLayerIdÚbackendNodeIdr`   ÚanchorXÚanchorYÚanchorZre   ÚscrollRectsÚstickyPositionConstraint)r8   rU   r   rV   rW   rX   rY   r[   r]   r^   r_   r`   rb   rc   rd   re   rf   rg   )r   r   Úis      r   r   zLayer.to_json¿   s   € Ü‹vˆØŸ-™-×/Ñ/Ó1ˆˆY‰ØŸ-™-ˆˆY‰ØŸ-™-ˆˆY‰ØŸ
™
ˆˆW‰ØŸ™ˆˆX‰Ø!×-Ñ-ˆˆ\ÑØ#×1Ñ1ˆˆ^ÑØ×ÑÐ+Ø$(×$8Ñ$8×$@Ñ$@Ó$BˆD�Ñ!Ø×ÑÐ+Ø$(×$8Ñ$8×$@Ñ$@Ó$BˆD�Ñ!Ø�>‰>Ð%Ø,0¯N©NÖ ; q¢Ò ;ˆD�ÑØ�=‰=Ð$Ø"Ÿm™mˆD�‰OØ�=‰=Ð$Ø"Ÿm™mˆD�‰OØ�=‰=Ð$Ø"Ÿm™mˆD�‰OØ�>‰>Ð%Ø $§¡ˆD�ÑØ×ÑÐ(Ø8<×8IÑ8IÖ"J°1 1§9¡9¥;Ò"JˆD�ÑØ×*Ñ*Ð6Ø/3×/NÑ/N×/VÑ/VÓ/XˆDÐ+Ñ,Øˆùò !<ùò #Ks   Ã.	GÆGc                ó"  —  | di dt         j                  |d   «      “dt        |d   «      “dt        |d   «      “dt        |d   «      “dt        |d   «      “d	t        |d
   «      “dt	        |d   «      “dd|v rt         j                  |d   «      nd “dd|v r"t
        j                  j                  |d   «      nd “dd|v r|d   D �cg c]  }t        |«      ‘Œ c}nd “dd|v rt        |d   «      nd “dd|v rt        |d   «      nd “dd|v rt        |d   «      nd “dd|v rt	        |d   «      nd “dd|v r&|d   D �cg c]  }t        j                  |«      ‘Œ c}nd “dd|v rt        j                  |d   «      “ŽS d “ŽS c c}w c c}w )NrU   ri   rV   rj   rW   rk   rX   rY   r[   rl   r]   rm   r^   rn   r_   ro   r`   rb   rp   rc   rq   rd   rr   re   rf   rs   rg   rt   r   )	r
   r   rM   rZ   r\   r   ÚBackendNodeIdr2   r?   ©r   r   ru   s      r   r   zLayer.from_jsonÜ   s  € áò 
Ü×&Ñ& t¨I¡Ô7ð
ä˜4 	™?Ô+ð
ô ˜4 	™?Ô+ð
ô ˜˜W™Ô&ð	
ô
 ˜˜h™Ô(ð
ô ˜D Ñ.Ô/ð
ô ˜t NÑ3Ô4ð
ð IXÐ[_ÑH_œG×-Ñ-¨d°?Ñ.CÔDÐeiøð
ð SbÐeiÑRiœC×-Ñ-×7Ñ7¸¸_Ñ8MÔNÐosøð
ð @KÈdÑ?R¨¨kÑ):Ö; A”u˜Q•xÓ;ÐX\øð
ð 09¸DÑ/@”U˜4 	™?Ô+Àdøð
ð 09¸DÑ/@”U˜4 	™?Ô+Àdøð
ð 09¸DÑ/@”U˜4 	™?Ô+Àdøð
ð 2=ÀÑ1D”d˜4 Ñ,Ô-È$øð
ð TaÐdhÑSh¸4ÀÑ;NÖO°aœ*×.Ñ.¨qÕ1ÓOÐnrøð
ð  pJð  NRñ  pRÔ'?×'IÑ'IÈ$ÐOiÑJjÔ'kð!
ð 	
ñ  X\ð!
ð 	
ùò <ùò
 Ps   ÃFÅF)r%   r&   r'   r(   r=   r^   r_   r`   rb   rc   rd   re   rf   rg   r   r)   r   r   r   r   rT   rT   ‰   sÍ   … ñð Óð ƒOð ƒOð ƒLð ƒMð Óð Óð 15€OÐ-Ó4ð ;?€OÐ7Ó>ð 6:€IÐ2Ó9ð (,€HÐ$Ó+ð (,€HÐ$Ó+ð (,€HÐ$Ó+ð (,€IÐ$Ó+ð >B€LÐ:ÓAð MQÐÐ IÓPòð: ñ
ó ñ
r   rT   c                  ó<   ‡ — e Zd ZdZdd„Zedd„«       Zˆ fd„Zˆ xZS )ÚPaintProfilez/
    Array of timings, one per paint step.
    c                ó   — | S r   r   r   s    r   r   zPaintProfile.to_jsonö   r   r   c                ó   —  | |«      S r   r   r   s     r   r   zPaintProfile.from_jsonù   r   r   c                ó>   •— dj                  t        ‰| �	  «       «      S )NzPaintProfile({})r   r   s    €r   r   zPaintProfile.__repr__ý   s   ø€ Ø!×(Ñ(¬©Ñ)9Ó);Ó<Ð<r   )r"   útyping.List[float])r   r~   r"   rz   r$   r+   s   @r   rz   rz   ò   s+   ø„ ñóð òó ð÷=ð =r   rz   c              #  óÚ   K  — t        «       }| j                  «       |d<   d|dœ}|–—}|d   D �cg c]  }t        |«      ‘Œ c}|d   D �cg c]  }t        |«      ‘Œ c}fS c c}w c c}w ­w)aÀ  
    Provides the reasons why the given layer was composited.

    :param layer_id: The id of the layer for which we want to get the reasons it was composited.
    :returns: A tuple with the following items:

        0. **compositingReasons** - A list of strings specifying reasons for the given layer to become composited.
        1. **compositingReasonIds** - A list of strings specifying reason IDs for the given layer to become composited.
    ri   zLayerTree.compositingReasons©ÚmethodÚparamsÚcompositingReasonsÚcompositingReasonIds©r8   r   r#   )rU   r‚   Úcmd_dictr   ru   s        r   Úcompositing_reasonsr‡     sx   è ø€ ô ›&€FØ ×(Ñ(Ó*€Fˆ9Ñà0Øñ€Hð ‰>€DàÐ2Ñ3Ö4�AŒˆQ�Ò4ØÐ4Ñ5Ö6�AŒˆQ�Ò6ðð ùÚ4ùÚ6ùs   ‚.A+°A!Á	A+ÁA&ÁA+c               #  ó   K  — ddi} | –—}y­w)z/
    Disables compositing tree inspection.
    r�   zLayerTree.disableNr   ©r†   r   s     r   ÚdisablerŠ     s   è ø€ ð
 	Ð%ð€Hð ‰>�Dùó   ‚
c               #  ó   K  — ddi} | –—}y­w)z.
    Enables compositing tree inspection.
    r�   zLayerTree.enableNr   r‰   s     r   Úenabler�   $  s   è ø€ ð
 	Ð$ð€Hð ‰>�Dùr‹   c              #  ó¬   K  — t        «       }| D �cg c]  }|j                  «       ‘Œ c}|d<   d|dœ}|–—}t        j                  |d   «      S c c}w ­w)z�
    Returns the snapshot identifier.

    :param tiles: An array of tiles composing the snapshot.
    :returns: The id of the snapshot.
    ÚtileszLayerTree.loadSnapshotr€   Ú
snapshotId©r8   r   r-   r   )r�   r‚   ru   r†   r   s        r   Úload_snapshotr’   .  sZ   è ø€ ô ›&€FØ,1Ö2 q�q—y‘y•{Ò2€Fˆ7�Oà*Øñ€Hð ‰>€DÜ×Ñ  \Ñ 2Ó3Ð3ùò 3ùs   ‚A‘A¨,Ac              #  ó†   K  — t        «       }| j                  «       |d<   d|dœ}|–—}t        j                  |d   «      S ­w)z‡
    Returns the layer snapshot identifier.

    :param layer_id: The id of the layer.
    :returns: The id of the layer snapshot.
    ri   zLayerTree.makeSnapshotr€   r�   r‘   )rU   r‚   r†   r   s       r   Úmake_snapshotr”   A  sN   è ø€ ô ›&€FØ ×(Ñ(Ó*€Fˆ9Ñà*Øñ€Hð ‰>€DÜ×Ñ  \Ñ 2Ó3Ð3ùs   ‚?Ac              #  óò   K  — t        «       }| j                  «       |d<   |�||d<   |�||d<   |�|j                  «       |d<   d|dœ}|–—}|d   D �cg c]  }t        j                  |«      ‘Œ c}S c c}w ­w)a£  
    :param snapshot_id: The id of the layer snapshot.
    :param min_repeat_count: *(Optional)* The maximum number of times to replay the snapshot (1, if not specified).
    :param min_duration: *(Optional)* The minimum duration (in seconds) to replay the snapshot.
    :param clip_rect: *(Optional)* The clip rectangle to apply when replaying the snapshot.
    :returns: The array of paint profiles, one per run.
    r�   ÚminRepeatCountÚminDurationÚclipRectzLayerTree.profileSnapshotr€   Útimings)r8   r   rz   r   )Úsnapshot_idÚmin_repeat_countÚmin_durationÚ	clip_rectr‚   r†   r   ru   s           r   Úprofile_snapshotrž   T  s•   è ø€ ô ›&€FØ&×.Ñ.Ó0€Fˆ<ÑØÐ#Ø#3ˆÐÑ ØÐØ ,ˆˆ}ÑØÐØ&×.Ñ.Ó0ˆˆzÑà-Øñ€Hð ‰>€DØ/3°I©Ö?¨!ŒL×"Ñ" 1Õ%Ò?Ð?ùÒ?ùs   ‚AA7ÁA2Á/A7c              #  óX   K  — t        «       }| j                  «       |d<   d|dœ}|–—}y­w)zr
    Releases layer snapshot captured by the back-end.

    :param snapshot_id: The id of the layer snapshot.
    r�   zLayerTree.releaseSnapshotr€   N©r8   r   )rš   r‚   r†   r   s       r   Úrelease_snapshotr¡   q  s8   è ø€ ô ›&€FØ&×.Ñ.Ó0€Fˆ<Ñà-Øñ€Hð ‰>�Dùs   ‚(*c              #  óœ   K  — t        «       }| j                  «       |d<   |�||d<   |�||d<   |�||d<   d|dœ}|–—}t        |d   «      S ­w)aÓ  
    Replays the layer snapshot and returns the resulting bitmap.

    :param snapshot_id: The id of the layer snapshot.
    :param from_step: *(Optional)* The first step to replay from (replay from the very start if not specified).
    :param to_step: *(Optional)* The last step to replay to (replay till the end if not specified).
    :param scale: *(Optional)* The scale to apply while replaying (defaults to 1).
    :returns: A data: URL for resulting image.
    r�   ÚfromStepÚtoStepÚscalezLayerTree.replaySnapshotr€   ÚdataURLr…   )rš   Ú	from_stepÚto_stepr¥   r‚   r†   r   s          r   Úreplay_snapshotr©   ‚  sv   è ø€ ô ›&€FØ&×.Ñ.Ó0€Fˆ<ÑØÐØ&ˆˆzÑØÐØ"ˆˆxÑØÐØˆˆw‰à,Øñ€Hð ‰>€DÜˆt�I‰ÓÐùs   ‚A
Ac              #  ó˜   K  — t        «       }| j                  «       |d<   d|dœ}|–—}|d   D �cg c]  }t        |«      ‘Œ c}S c c}w ­w)z¥
    Replays the layer snapshot and returns canvas log.

    :param snapshot_id: The id of the layer snapshot.
    :returns: The array of canvas function calls.
    r�   zLayerTree.snapshotCommandLogr€   Ú
commandLogr    )rš   r‚   r†   r   ru   s        r   Úsnapshot_command_logr¬   ¡  sU   è ø€ ô ›&€FØ&×.Ñ.Ó0€Fˆ<Ñà0Øñ€Hð ‰>€DØ! ,Ñ/Ö0˜ŒD��GÒ0Ð0ùÒ0ùs   ‚.A
°AÁA
zLayerTree.layerPaintedc                  ó4   — e Zd ZU ded<   ded<   edd„«       Zy)ÚLayerPaintedr
   rU   r3   Úclipc                ó‚   —  | t         j                  |d   «      t        j                  j                  |d   «      ¬«      S )Nri   r¯   )rU   r¯   )r
   r   r   r;   r   s     r   r   zLayerPainted.from_json¼  s7   € áÜ×&Ñ& t¨I¡Ó7Ü—‘×#Ñ# D¨¡LÓ1ô
ð 	
r   N)r   r   r"   r®   ©r%   r&   r'   r=   r)   r   r   r   r   r®   r®   ´  s!   … ð Óà
ƒNàò
ó ñ
r   r®   zLayerTree.layerTreeDidChangec                  ó*   — e Zd ZU ded<   edd„«       Zy)ÚLayerTreeDidChangez#typing.Optional[typing.List[Layer]]Úlayersc                ó|   —  | d|v r+|d   D �cg c]  }t         j                  |«      ‘Œ c}¬«      S d ¬«      S c c}w )Nr´   )r´   )rT   r   rx   s      r   r   zLayerTreeDidChange.from_jsonÊ  sA   € áØCKÈtÑCS°°X±Ö?¨1”E—O‘O AÕ&Ò?ô
ð 	
ØY]ô
ð 	
ùÚ?s   Ž9N)r   r   r"   r³   r±   r   r   r   r³   r³   Ä  s   … ð 0Ó/àò
ó ñ
r   r³   )rU   r
   r"   z\typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[typing.List[str], typing.List[str]]])r"   ú0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])r�   ztyping.List[PictureTile]r"   ú6typing.Generator[T_JSON_DICT, T_JSON_DICT, SnapshotId])rU   r
   r"   r·   )NNN)
rš   r-   r›   útyping.Optional[int]rœ   ra   r�   ztyping.Optional[dom.Rect]r"   zEtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[PaintProfile]])rš   r-   r"   r¶   )
rš   r-   r§   r¸   r¨   r¸   r¥   ra   r"   z/typing.Generator[T_JSON_DICT, T_JSON_DICT, str])rš   r-   r"   z=typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[dict]])Ú
__future__r   Úutilr   r   Údataclassesr   ÚenumÚtypingÚ r   r#   r
   r-   r2   r?   rL   rT   Úlistrz   r‡   rŠ   r�   r’   r”   rž   r¡   r©   r¬   r®   r³   r   r   r   ú<module>rÀ      sê  ðõ #ß *Ý !Û Û Ý ô8ˆcô 8ô;�ô ;ð ÷
ð 
ó ð
ð0 ÷!
ð !
ó ð!
ðH ÷
ð 
ó ð
ð: ÷e
ð e
ó ðe
ôP=�4ô =ðØðà	cóó2óð4Ø'ð4à	=ó4ð&4Øð4à	=ó4ð* 26Ø/3Ø/3ð	@Øð@à.ð@ð -ð@ð -ð	@ð
 
Mó@ð:Øðà	7óð& +/Ø(,Ø(,ð	 Øð à'ð ð &ð ð &ð	 ð
 
7ó ð>1Øð1à	Dó1ñ& Ð%Ó&Ø
÷
ð 
ó ó 'ð
ñ Ð+Ó,Ø
÷
ð 
ó ó -ñ
r   