ó
    ¼®i~!  ã                   ó`   • S SK JrJrJr  S SKJr   " S S5      r " S S5      r " S S5      rg	)
é    )ÚAnyÚOptionalÚUnion)Úcommand_builderc                   óò  • \ rS rSrSr     SS\S\S\S\\   S\\   S	\\   S
\\   4S jjr\S 5       r	\	R                  S 5       r	\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       rS\\\\S4   4   4S jrSrg)ÚGeolocationCoordinatesé   z#Represents geolocation coordinates.NÚlatitudeÚ	longitudeÚaccuracyÚaltitudeÚaltitude_accuracyÚheadingÚspeedc                 óX   • Xl         X l        X0l        X@l        XPl        X`l        Xpl        g)a…  Initialize GeolocationCoordinates.

Parameters:
-----------
    latitude: Latitude coordinate (-90.0 to 90.0).
    longitude: Longitude coordinate (-180.0 to 180.0).
    accuracy: Accuracy in meters (>= 0.0), defaults to 1.0.
    altitude: Altitude in meters or None, defaults to None.
    altitude_accuracy: Altitude accuracy in meters (>= 0.0) or None, defaults to None.
    heading: Heading in degrees (0.0 to 360.0) or None, defaults to None.
    speed: Speed in meters per second (>= 0.0) or None, defaults to None.

Raises:
------
    ValueError: If coordinates are out of valid range or if altitude_accuracy is provided without altitude.
N©r
   r   r   r   r   r   r   )Úselfr
   r   r   r   r   r   r   s           ÚUC:\des-py\RoboSAPF\venv\Lib\site-packages\selenium\webdriver\common\bidi\emulation.pyÚ__init__ÚGeolocationCoordinates.__init__   s(   € ð4 !ŒØ"ŒØ ŒØ ŒØ!2ÔØŒØ�
ó    c                 ó   • U R                   $ ©N)Ú	_latitude©r   s    r   r
   ÚGeolocationCoordinates.latitude<   ó   € à�~‰~Ðr   c                 óD   • SUs=::  a  S::  d  O  [        S5      eXl        g )Ng     €VÀg     €V@z'latitude must be between -90.0 and 90.0)Ú
ValueErrorr   ©r   Úvalues     r   r
   r   @   s    € à˜Õ& $Õ&ÜÐFÓGÐGØ�r   c                 ó   • U R                   $ r   )Ú
_longituder   s    r   r   Ú GeolocationCoordinates.longitudeF   s   € à�‰Ðr   c                 óD   • SUs=::  a  S::  d  O  [        S5      eXl        g )Ng     €fÀg     €f@z*longitude must be between -180.0 and 180.0)r   r#   r    s     r   r   r$   J   s    € à˜%Õ( 5Õ(ÜÐIÓJÐJØ�r   c                 ó   • U R                   $ r   )Ú	_accuracyr   s    r   r   ÚGeolocationCoordinates.accuracyP   r   r   c                 ó2   • US:  a  [        S5      eXl        g )Nç        zaccuracy must be >= 0.0)r   r'   r    s     r   r   r(   T   s   € à�3‹;ÜÐ6Ó7Ð7Ø�r   c                 ó   • U R                   $ r   ©Ú	_altituder   s    r   r   ÚGeolocationCoordinates.altitudeZ   r   r   c                 ó   • Xl         g r   r,   r    s     r   r   r.   ^   s   € à�r   c                 ó   • U R                   $ r   )Ú_altitude_accuracyr   s    r   r   Ú(GeolocationCoordinates.altitude_accuracyb   s   € à×&Ñ&Ð&r   c                 ón   • Ub  U R                   c  [        S5      eUb  US:  a  [        S5      eXl        g )Nz0altitude_accuracy cannot be set without altituder*   z altitude_accuracy must be >= 0.0)r   r   r1   r    s     r   r   r2   f   s;   € àÑ §¡Ñ!6ÜÐOÓPÐPØÑ ¨£ÜÐ?Ó@Ð@Ø"'Õr   c                 ó   • U R                   $ r   )Ú_headingr   s    r   r   ÚGeolocationCoordinates.headingn   s   € à�}‰}Ðr   c                 óJ   • Ub  SUs=::  a  S:  d  O  [        S5      eXl        g )Nr*   g     €v@z%heading must be between 0.0 and 360.0)r   r5   r    s     r   r   r6   r   s%   € àÑ c¨UÕ&:°UÕ&:ÜÐDÓEÐEØ�r   c                 ó   • U R                   $ r   )Ú_speedr   s    r   r   ÚGeolocationCoordinates.speedx   s   € à�{‰{Ðr   c                 ó8   • Ub  US:  a  [        S5      eXl        g )Nr*   zspeed must be >= 0.0)r   r9   r    s     r   r   r:   |   s   € àÑ ¨£ÜÐ3Ó4Ð4Ø�r   Úreturnc                 ó.  • U R                   U R                  U R                  S.nU R                  b  U R                  US'   U R                  b  U R                  US'   U R
                  b  U R
                  US'   U R                  b  U R                  US'   U$ )N)r
   r   r   r   ÚaltitudeAccuracyr   r   r   )r   Úresults     r   Úto_dictÚGeolocationCoordinates.to_dict‚   s‰   € àŸ™ØŸ™ØŸ™ñ1
ˆð �=‰=Ñ$Ø!%§¡ˆF�:Ñà×!Ñ!Ñ-Ø)-×)?Ñ)?ˆFÐ%Ñ&à�<‰<Ñ#Ø $§¡ˆF�9Ñà�:‰:Ñ!Ø"Ÿj™jˆF�7‰Oàˆr   )r'   r-   r1   r5   r   r#   r9   r   r   r   r   r
   r   r   )g      ð?NNNN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úfloatr   r   Úpropertyr
   Úsetterr   r   r   r   r   r   ÚdictÚstrr   r@   Ú__static_attributes__© r   r   r   r      sÇ  † Ù-ð Ø$(Ø-1Ø#'Ø!%ñ àð ð ð ð ð	 ð
 ˜5‘/ð ð $ E™?ð ð ˜%‘ð ð ˜‰õ ðD ñó ðð ‡_�_ñó ðð
 ñó ðð ×Ññ ó ð ð
 ñó ðð ‡_�_ñó ðð
 ñó ðð ‡_�_ñó ðð ñ'ó ð'ð ×Ññ(ó ð(ð ñó ðð ‡^�^ñó ðð
 ñó ðð ‡\�\ñó ðð
˜˜c 5¨°¨Ñ#5Ð5Ñ6÷ r   r   c                   óH   • \ rS rSrSrSr\4S\4S jjrS\\\4   4S jr	Sr
g	)
ÚGeolocationPositionErroré˜   z(Represents a geolocation position error.ÚpositionUnavailableÚtypec                 ó`   • XR                   :w  a  [        SU R                    S35      eXl        g )Nztype must be "Ú")ÚTYPE_POSITION_UNAVAILABLEr   rR   )r   rR   s     r   r   Ú!GeolocationPositionError.__init__�   s.   € Ø×1Ñ1Ó1Ü˜~¨d×.LÑ.LÐ-MÈQÐOÓPÐPØ�	r   r<   c                 ó   • SU R                   0$ )NrR   ©rR   r   s    r   r@   Ú GeolocationPositionError.to_dict¢   s   € Ø˜Ÿ	™	Ð"Ð"r   rX   N)rB   rC   rD   rE   rF   rU   rK   r   rJ   r@   rL   rM   r   r   rO   rO   ˜   s.   † Ù2à 5Ðà#<ñ ˜Sõ ð
#˜˜c 3˜h™÷ #r   rO   c                   ó®   • \ rS rSrSrS r    SS\\   S\\   S\\	\
      S\\	\
      S	S4
S
 jjr   SS\\
   S\\	\
      S\\	\
      S	S4S jjrSrg)Ú	Emulationé¦   z.
BiDi implementation of the emulation module.
c                 ó   • Xl         g r   ©Úconn)r   r_   s     r   r   ÚEmulation.__init__«   s   € Ø�	r   NÚcoordinatesÚerrorÚcontextsÚuser_contextsr<   c                 ó0  • Ub  Ub  [        S5      eUb  Ub  [        S5      eUc  Uc  [        S5      e0 nUb  UR                  5       US'   OUb  UR                  5       US'   Ub  X5S'   OUb  XES'   U R                  R                  [	        S	U5      5        g)
a+  Set geolocation override for the given contexts or user contexts.

Parameters:
-----------
    coordinates: Geolocation coordinates to emulate, or None.
    error: Geolocation error to emulate, or None.
    contexts: List of browsing context IDs to apply the override to.
    user_contexts: List of user context IDs to apply the override to.

Raises:
------
    ValueError: If both coordinates and error are provided, or if both contexts
               and user_contexts are provided, or if neither contexts nor
               user_contexts are provided.
Nz)Cannot specify both coordinates and errorz-Cannot specify both contexts and userContextsz,Must specify either contexts or userContextsra   rb   rc   ÚuserContextsz emulation.setGeolocationOverride)r   r@   r_   Úexecuter   )r   ra   rb   rc   rd   Úparamss         r   Úset_geolocation_overrideÚ"Emulation.set_geolocation_override®   s²   € ð, Ñ" uÑ'8ÜÐHÓIÐIàÑ MÑ$=ÜÐLÓMÐMàÑ Ñ 5ÜÐKÓLÐLà!#ˆàÑ"Ø$/×$7Ñ$7Ó$9ˆF�=Ò!ØÑØ#Ÿm™m›oˆF�7‰OàÑØ!)�:ÒØÑ&Ø%2�>Ñ"à�	‰	×Ñœ/Ð*LÈfÓUÕVr   Útimezonec                 ó¸   • Ub  Ub  [        S5      eUc  Uc  [        S5      eSU0nUb  X$S'   OUb  X4S'   U R                  R                  [        SU5      5        g)aý  Set timezone override for the given contexts or user contexts.

Parameters:
-----------
    timezone: Timezone identifier (IANA timezone name or offset string like '+01:00'),
             or None to clear the override.
    contexts: List of browsing context IDs to apply the override to.
    user_contexts: List of user context IDs to apply the override to.

Raises:
------
    ValueError: If both contexts and user_contexts are provided, or if neither
               contexts nor user_contexts are provided.
Nz.Cannot specify both contexts and user_contextsz-Must specify either contexts or user_contextsrk   rc   rf   zemulation.setTimezoneOverride)r   r_   rg   r   )r   rk   rc   rd   rh   s        r   Úset_timezone_overrideÚEmulation.set_timezone_overrideÛ   sr   € ð( Ñ MÑ$=ÜÐMÓNÐNàÑ Ñ 5ÜÐLÓMÐMà",¨hÐ!7ˆàÑØ!)�:ÒØÑ&Ø%2�>Ñ"à�	‰	×Ñœ/Ð*IÈ6ÓRÕSr   r^   )NNNN)NNN)rB   rC   rD   rE   rF   r   r   r   rO   ÚlistrK   ri   rm   rL   rM   r   r   r[   r[   ¦   sË   † ñòð
 9=Ø48Ø(,Ø-1ñ+WàÐ4Ñ5ð+Wð Ð0Ñ1ð+Wð ˜4 ™9Ñ%ð	+Wð
    S¡	Ñ*ð+Wð 
õ+Wð^ #'Ø(,Ø-1ñ	!Tà˜3‘-ð!Tð ˜4 ™9Ñ%ð!Tð    S¡	Ñ*ð	!Tð
 
÷!Tð !Tr   r[   N)	Útypingr   r   r   Ú%selenium.webdriver.common.bidi.commonr   r   rO   r[   rM   r   r   Ú<module>rr      s5   ð÷$ (Ñ 'å A÷~ñ ~÷B#ñ #÷VTò VTr   