ó
    »®iæ  ã                  ó@  • S SK Jr  SSKJrJr  S SKJr  S SKrS SKrSSK	J
r
   " S S\5      r " S	 S
\5      r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       rS(S jrS(S jr\" S5      \ " S S5      5       5       r\" S5      \ " S S5      5       5       r\" S5      \ " S  S!5      5       5       r\" S"5      \ " S# S$5      5       5       r\" S%5      \ " S& S'5      5       5       rg))é    )Úannotationsé   )Úevent_classÚT_JSON_DICT)Ú	dataclassN)Údomc                  óJ   ^ • \ rS rSrSrSS jr\SS j5       rU 4S jrSr	U =r
$ )	ÚPlayerIdé   zA
Players will get an ID that is unique within the agent context.
c                ó   • U $ ©N© ©Úselfs    ÚZC:\des-py\RoboSAPF\venv\Lib\site-packages\selenium/webdriver/common/devtools/v142/media.pyÚto_jsonÚPlayerId.to_json   ó   € Øˆó    c                ó   • U " U5      $ r   r   ©ÚclsÚjsons     r   Ú	from_jsonÚPlayerId.from_json   ó   € á�4‹yÐr   c                ó>   >• SR                  [        TU ]	  5       5      $ )NzPlayerId({})©ÚformatÚsuperÚ__repr__©r   Ú	__class__s    €r   r!   ÚPlayerId.__repr__   s   ø€ Ø×$Ñ$¤U¡WÑ%5Ó%7Ó8Ð8r   r   )ÚreturnÚstr)r   r&   r%   r
   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Úclassmethodr   r!   Ú__static_attributes__Ú__classcell__©r#   s   @r   r
   r
      s+   ø† ñôð óó ð÷9ó 9r   r
   c                  óF   ^ • \ rS rSrSS jr\SS j5       rU 4S jrSrU =r	$ )Ú	Timestampé   c                ó   • U $ r   r   r   s    r   r   ÚTimestamp.to_json   r   r   c                ó   • U " U5      $ r   r   r   s     r   r   ÚTimestamp.from_json"   r   r   c                ó>   >• SR                  [        TU ]	  5       5      $ )NzTimestamp({})r   r"   s    €r   r!   ÚTimestamp.__repr__&   s   ø€ Ø×%Ñ%¤e¡gÑ&6Ó&8Ó9Ð9r   r   )r%   Úfloat)r   r9   r%   r1   )
r'   r(   r)   r*   r   r,   r   r!   r-   r.   r/   s   @r   r1   r1      s&   ø† ôð óó ð÷:ó :r   r1   c                  óD   • \ rS rSr% SrS\S'   S\S'   S r\S 5       rSr	g	)
ÚPlayerMessageé*   zI
Have one type per entry in MediaLogRecord::Type
Corresponds to kMessage
r&   ÚlevelÚmessagec                óV   • [        5       nU R                  US'   U R                  US'   U$ )Nr=   r>   )Údictr=   r>   ©r   r   s     r   r   ÚPlayerMessage.to_json=   s(   € Ü‹vˆØŸ
™
ˆˆW‰ØŸ,™,ˆˆY‰Øˆr   c                ó@   • U " [        US   5      [        US   5      S9$ )Nr=   r>   )r=   r>   ©r&   r   s     r   r   ÚPlayerMessage.from_jsonC   s'   € áÜ�d˜7‘mÓ$Ü˜˜Y™Ó(ñ
ð 	
r   r   N©
r'   r(   r)   r*   r+   Ú__annotations__r   r,   r   r-   r   r   r   r;   r;   *   s,   ‡ ñð ƒJàƒLòð ñ
ó ó
r   r;   c                  óD   • \ rS rSr% SrS\S'   S\S'   S r\S 5       rSr	g	)
ÚPlayerPropertyéK   z%
Corresponds to kMediaPropertyChange
r&   ÚnameÚvaluec                óV   • [        5       nU R                  US'   U R                  US'   U$ )NrK   rL   )r@   rK   rL   rA   s     r   r   ÚPlayerProperty.to_jsonT   s(   € Ü‹vˆØ—y‘yˆˆV‰ØŸ
™
ˆˆW‰Øˆr   c                ó@   • U " [        US   5      [        US   5      S9$ )NrK   rL   )rK   rL   rD   r   s     r   r   ÚPlayerProperty.from_jsonZ   s'   € áÜ�T˜&‘\Ó"Ü�d˜7‘mÓ$ñ
ð 	
r   r   NrF   r   r   r   rI   rI   K   s,   ‡ ñð ƒIàƒJòð ñ
ó ó
r   rI   c                  óD   • \ rS rSr% SrS\S'   S\S'   S r\S 5       rS	r	g
)ÚPlayerEventéb   z%
Corresponds to kMediaEventTriggered
r1   Ú	timestampr&   rL   c                ór   • [        5       nU R                  R                  5       US'   U R                  US'   U$ )NrT   rL   )r@   rT   r   rL   rA   s     r   r   ÚPlayerEvent.to_jsonk   s2   € Ü‹vˆØ ŸN™N×2Ñ2Ó4ˆˆ[ÑØŸ
™
ˆˆW‰Øˆr   c                óT   • U " [         R                  US   5      [        US   5      S9$ )NrT   rL   )rT   rL   )r1   r   r&   r   s     r   r   ÚPlayerEvent.from_jsonq   s.   € áÜ×)Ñ)¨$¨{Ñ*;Ó<Ü�d˜7‘mÓ$ñ
ð 	
r   r   NrF   r   r   r   rR   rR   b   s-   ‡ ñð ÓàƒJòð ñ
ó ó
r   rR   c                  óD   • \ rS rSr% SrS\S'   S\S'   S r\S 5       rS	r	g
)ÚPlayerErrorSourceLocationéy   z„
Represents logged source line numbers reported in an error.
NOTE: file and line are from chromium c++ implementation code, not js.
r&   ÚfileÚintÚlinec                óV   • [        5       nU R                  US'   U R                  US'   U$ )Nr\   r^   )r@   r\   r^   rA   s     r   r   Ú!PlayerErrorSourceLocation.to_jsonƒ   s(   € Ü‹vˆØ—y‘yˆˆV‰Ø—y‘yˆˆV‰Øˆr   c                ó@   • U " [        US   5      [        US   5      S9$ )Nr\   r^   )r\   r^   )r&   r]   r   s     r   r   Ú#PlayerErrorSourceLocation.from_json‰   s'   € áÜ�T˜&‘\Ó"Ü�T˜&‘\Ó"ñ
ð 	
r   r   NrF   r   r   r   rZ   rZ   y   s,   ‡ ñð ƒIà
ƒIòð ñ
ó ó
r   rZ   c                  ób   • \ rS rSr% SrS\S'   S\S'   S\S'   S	\S
'   S\S'   S r\S 5       rSr	g)ÚPlayerErroré‘   z
Corresponds to kMediaError
r&   Ú
error_typer]   Úcodez&typing.List[PlayerErrorSourceLocation]Ústackútyping.List[PlayerError]Úcauser@   Údatac                ó<  • [        5       nU R                  US'   U R                  US'   U R                   Vs/ s H  o"R	                  5       PM     snUS'   U R
                   Vs/ s H  o"R	                  5       PM     snUS'   U R                  US'   U$ s  snf s  snf )NÚ	errorTyperg   rh   rj   rk   )r@   rf   rg   rh   r   rj   rk   )r   r   Úis      r   r   ÚPlayerError.to_json¦   s~   € Ü‹vˆØ ŸO™Oˆˆ[ÑØ—y‘yˆˆV‰Ø.2¯jªjÓ9ªj¨Ÿ™ž©jÑ9ˆˆW‰Ø.2¯jªjÓ9ªj¨Ÿ™ž©jÑ9ˆˆW‰Ø—y‘yˆˆV‰Øˆùò :ùÚ9s   ·BÁ$Bc                ó  • U " [        US   5      [        US   5      US    Vs/ s H  n[        R                  U5      PM     snUS    Vs/ s H  n[        R                  U5      PM     sn[        US   5      S9$ s  snf s  snf )Nrm   rg   rh   rj   rk   )rf   rg   rh   rj   rk   )r&   r]   rZ   r   rd   r@   ©r   r   rn   s      r   r   ÚPlayerError.from_json¯   s€   € áÜ˜4 Ñ,Ó-Ü�T˜&‘\Ó"ØCGÈÂ=ÓQÂ=¸aÔ,×6Ñ6°qÖ9Á=ÑQØ59¸'²]ÓC²]°”;×(Ñ(¨Ö+±]ÑCÜ�d˜6‘lÓ#ñ
ð 	
ùò RùÚCs   ¤A=ÁBr   NrF   r   r   r   rd   rd   ‘   sE   ‡ ñð ƒOð ƒIð 2Ó1ð $Ó#ð ƒJòð ñ
ó ó
r   rd   c                  óD   • \ rS rSr% S\S'   SrS\S'   S r\S 5       rS	r	g)
ÚPlayeréº   r
   Ú	player_idNz"typing.Optional[dom.BackendNodeId]Údom_node_idc                ó¨   • [        5       nU R                  R                  5       US'   U R                  b  U R                  R                  5       US'   U$ )NÚplayerIdÚ	domNodeId)r@   rv   r   rw   rA   s     r   r   ÚPlayer.to_jsonÀ   sJ   € Ü‹vˆØŸ>™>×1Ñ1Ó3ˆˆZÑØ×ÑÑ'Ø $× 0Ñ 0× 8Ñ 8Ó :ˆD�ÑØˆr   c                ó�   • U " [         R                  US   5      SU;   a$  [        R                  R                  US   5      S9$ S S9$ )Nry   rz   )rv   rw   )r
   r   r   ÚBackendNodeIdr   s     r   r   ÚPlayer.from_jsonÇ   sP   € áÜ×(Ñ(¨¨jÑ)9Ó:ØJUÐY]ÓJ]œ×)Ñ)×3Ñ3°D¸Ñ4EÓFñ
ð 	
àcgñ
ð 	
r   r   )
r'   r(   r)   r*   rG   rw   r   r,   r   r-   r   r   r   rt   rt   º   s,   ‡ àÓà6:€KÐ3Ó:òð ñ
ó ó
r   rt   c               #  ó   #   • SS0n U v •ng7f)z
Enables the Media domain
ÚmethodzMedia.enableNr   ©Úcmd_dictr   s     r   Úenablerƒ   Ï   s   é € ð
 	�.ð€Hð ‰>�Dùó   ‚
c               #  ó   #   • SS0n U v •ng7f)z
Disables the Media domain.
r€   zMedia.disableNr   r�   s     r   Údisabler†   Ù   s   é € ð
 	�/ð€Hð ‰>�Dùr„   zMedia.playerPropertiesChangedc                  óB   • \ rS rSr% SrS\S'   S\S'   \S
S j5       rSrg	)ÚPlayerPropertiesChangedéã   z†
This can be called multiple times, and can be used to set / override /
remove player properties. A null propValue indicates removal.
r
   rv   ztyping.List[PlayerProperty]Ú
propertiesc           	     ó”   • U " [         R                  US   5      US    Vs/ s H  n[        R                  U5      PM     snS9$ s  snf )Nry   rŠ   )rv   rŠ   )r
   r   rI   rq   s      r   r   Ú!PlayerPropertiesChanged.from_jsoní   sI   € áÜ×(Ñ(¨¨jÑ)9Ó:Ø=AÀ,Ò=OÓPÒ=O¸œ×0Ñ0°Ö3Ñ=OÑPñ
ð 	
ùâPó   ¡A
r   N)r   r   r%   rˆ   ©	r'   r(   r)   r*   r+   rG   r,   r   r-   r   r   r   rˆ   rˆ   ã   s'   ‡ ñð ÓØ+Ó+àó
ó ó
r   rˆ   zMedia.playerEventsAddedc                  óB   • \ rS rSr% SrS\S'   S\S'   \S
S j5       rSrg	)ÚPlayerEventsAddedéõ   z’
Send events as a list, allowing them to be batched on the browser for less
congestion. If batched, events must ALWAYS be in chronological order.
r
   rv   ztyping.List[PlayerEvent]Úeventsc           	     ó”   • U " [         R                  US   5      US    Vs/ s H  n[        R                  U5      PM     snS9$ s  snf )Nry   r’   )rv   r’   )r
   r   rR   rq   s      r   r   ÚPlayerEventsAdded.from_jsonÿ   óF   € áÜ×(Ñ(¨¨jÑ)9Ó:Ø6:¸8²nÓE²n°”K×)Ñ)¨!Ö,±nÑEñ
ð 	
ùâEr�   r   N)r   r   r%   r�   rŽ   r   r   r   r�   r�   õ   s'   ‡ ñð ÓØ$Ó$àó
ó ó
r   r�   zMedia.playerMessagesLoggedc                  óB   • \ rS rSr% SrS\S'   S\S'   \S
S j5       rSrg	)ÚPlayerMessagesLoggedi  z8
Send a list of any messages that need to be delivered.
r
   rv   ztyping.List[PlayerMessage]Úmessagesc           	     ó”   • U " [         R                  US   5      US    Vs/ s H  n[        R                  U5      PM     snS9$ s  snf )Nry   r˜   )rv   r˜   )r
   r   r;   rq   s      r   r   ÚPlayerMessagesLogged.from_json  sI   € áÜ×(Ñ(¨¨jÑ)9Ó:Ø:>¸zÒ:JÓKÒ:J°Q”m×-Ñ-¨aÖ0Ñ:JÑKñ
ð 	
ùâKr�   r   N)r   r   r%   r—   rŽ   r   r   r   r—   r—     s'   ‡ ñð ÓØ(Ó(àó
ó ó
r   r—   zMedia.playerErrorsRaisedc                  óB   • \ rS rSr% SrS\S'   S\S'   \S
S j5       rSrg	)ÚPlayerErrorsRaisedi  z6
Send a list of any errors that need to be delivered.
r
   rv   ri   Úerrorsc           	     ó”   • U " [         R                  US   5      US    Vs/ s H  n[        R                  U5      PM     snS9$ s  snf )Nry   r�   )rv   r�   )r
   r   rd   rq   s      r   r   ÚPlayerErrorsRaised.from_json!  r•   r�   r   N)r   r   r%   rœ   rŽ   r   r   r   rœ   rœ     s'   ‡ ñð ÓØ$Ó$àó
ó ó
r   rœ   zMedia.playerCreatedc                  ó8   • \ rS rSr% SrS\S'   \SS j5       rSrg)	ÚPlayerCreatedi)  z²
Called whenever a player is created, or when a new agent joins and receives
a list of active players. If an agent is restored, it will receive one
event for each active player.
rt   Úplayerc                ó:   • U " [         R                  US   5      S9$ )Nr¢   )r¢   )rt   r   r   s     r   r   ÚPlayerCreated.from_json3  s!   € áÜ×#Ñ# D¨¡NÓ3ñ
ð 	
r   r   N)r   r   r%   r¡   rŽ   r   r   r   r¡   r¡   )  s    ‡ ñð
 ƒNàó
ó ó
r   r¡   )r%   z0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])Ú
__future__r   Úutilr   r   Údataclassesr   ÚenumÚtypingÚ r   r&   r
   r9   r1   r;   rI   rR   rZ   rd   rt   rƒ   r†   rˆ   r�   r—   rœ   r¡   r   r   r   Ú<module>r«      s–  ðõ #ß *Ý !Û Û Ý ô9ˆsô 9ô	:�ô 	:ð ÷
ð 
ó ð
ð@ ÷
ð 
ó ð
ð, ÷
ð 
ó ð
ð, ÷
ð 
ó ð
ð. ÷%
ð %
ó ð%
ðP ÷
ð 
ó ð
ô(ôñ Ð,Ó-Ø
÷
ð 
ó ó .ð
ñ  Ð&Ó'Ø
÷
ð 
ó ó (ð
ñ  Ð)Ó*Ø
÷
ð 
ó ó +ð
ñ Ð'Ó(Ø
÷
ð 
ó ó )ð
ñ Ð"Ó#Ø
÷
ð 
ó ó $ñ
r   