Ë
    `§1h?2  ã                   ó  — d dl mZmZmZmZ d dlmZ  G d„ d«      Z G d„ d«      Z G d„ d«      Z	 G d	„ d
«      Z
 G d„ d«      Z G d„ d«      Z G d„ d«      Z G d„ d«      Z G d„ d«      Z G d„ d«      Z G d„ d«      Z G d„ d«      Zy)é    )ÚDictÚListÚOptionalÚUnion)Úcommand_builderc                   ó   — e Zd ZdZdZdZdZy)ÚSameSitez5Represents the possible same site values for cookies.ÚstrictÚlaxÚnoneN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚSTRICTÚLAXÚNONE© ó    úd/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/selenium/webdriver/common/bidi/storage.pyr	   r	      s   „ Ù?à€FØ
€CØ�Dr   r	   c                   ó4   — e Zd ZdZdZdZdedefd„Zdefd„Z	y	)
Ú
BytesValuezRepresents a bytes value.Úbase64ÚstringÚtypeÚvaluec                 ó    — || _         || _        y ©N©r   r   )Úselfr   r   s      r   Ú__init__zBytesValue.__init__%   s   € ØˆŒ	Øˆ�
r   Úreturnc                 ó4   — | j                   | j                  dœS )z”Converts the BytesValue to a dictionary.

        Returns:
        -------
            Dict: A dictionary representation of the BytesValue.
        r   r   ©r    s    r   Úto_dictzBytesValue.to_dict)   s   € ð Ÿ	™	¨D¯J©JÑ7Ð7r   N)
r   r   r   r   ÚTYPE_BASE64ÚTYPE_STRINGÚstrr!   r   r%   r   r   r   r   r      s.   „ Ù#à€KØ€Kð˜Sð ¨ó ð8˜ô 8r   r   c                   óˆ   — e Zd ZdZ	 	 	 	 	 	 ddedededee   dee   dee   d	ee   d
ee   dee   fd„Z	e
dedd fd„«       Zy)ÚCookiezRepresents a cookie.NÚnamer   ÚdomainÚpathÚsizeÚ	http_onlyÚsecureÚ	same_siteÚexpiryc
                 ó‚   — || _         || _        || _        || _        || _        || _        || _        || _        |	| _        y r   ©	r+   r   r,   r-   r.   r/   r0   r1   r2   ©
r    r+   r   r,   r-   r.   r/   r0   r1   r2   s
             r   r!   zCookie.__init__6   óC   € ð ˆŒ	ØˆŒ
ØˆŒØˆŒ	ØˆŒ	Ø"ˆŒØˆŒØ"ˆŒØˆ�r   Údatar"   c                 ó¨  — t        |j                  di «      j                  d«      |j                  di «      j                  d«      «      } | |j                  d«      ||j                  d«      |j                  d«      |j                  d«      |j                  d«      |j                  d«      |j                  d	«      |j                  d
«      ¬«	      S )zðCreates a Cookie instance from a dictionary.

        Parameters:
        -----------
            data: A dictionary containing the cookie information.

        Returns:
        -------
            Cookie: A new instance of Cookie.
        r   r   r+   r,   r-   r.   ÚhttpOnlyr0   ÚsameSiter2   r4   )r   Úget)Úclsr7   r   s      r   Ú	from_dictzCookie.from_dictL   s®   € ô ˜4Ÿ8™8 G¨RÓ0×4Ñ4°VÓ<¸d¿h¹hÀwÐPRÓ>S×>WÑ>WÐX_Ó>`ÓaˆáØ—‘˜&Ó!ØØ—8‘8˜HÓ%Ø—‘˜&Ó!Ø—‘˜&Ó!Ø—h‘h˜zÓ*Ø—8‘8˜HÓ%Ø—h‘h˜zÓ*Ø—8‘8˜HÓ%ô

ð 
	
r   )NNNNNN)r   r   r   r   r(   r   r   ÚintÚboolr!   Úclassmethodr   r=   r   r   r   r*   r*   3   s°   „ Ùð #Ø"Ø$(Ø!%Ø#'Ø $ñàðð ðð ð	ð
 �s‰mðð �s‰mðð ˜D‘>ðð ˜‘ðð ˜C‘=ðð ˜‘óð, ð
˜Tð 
 hò 
ó ñ
r   r*   c                   ó’   — e Zd ZdZ	 	 	 	 	 	 	 	 	 ddee   dee   dee   dee   dee   dee   d	ee   d
ee   dee   fd„Z	de
fd„Zy)ÚCookieFilterz Represents a filter for cookies.Nr+   r   r,   r-   r.   r/   r0   r1   r2   c
                 ó‚   — || _         || _        || _        || _        || _        || _        || _        || _        |	| _        y r   r4   r5   s
             r   r!   zCookieFilter.__init__j   r6   r   r"   c                 ó  — i }| j                   �| j                   |d<   | j                  �| j                  j                  «       |d<   | j                  �| j                  |d<   | j                  �| j                  |d<   | j
                  �| j
                  |d<   | j                  �| j                  |d<   | j                  �| j                  |d<   | j                  �| j                  |d<   | j                  �| j                  |d	<   |S )
z˜Converts the CookieFilter to a dictionary.

        Returns:
        -------
            Dict: A dictionary representation of the CookieFilter.
        r+   r   r,   r-   r.   r9   r0   r:   r2   )
r+   r   r%   r,   r-   r.   r/   r0   r1   r2   ©r    Úresults     r   r%   zCookieFilter.to_dict€   së   € ð ˆØ�9‰9Ð Ø!ŸY™YˆF�6‰NØ�:‰:Ð!Ø"Ÿj™j×0Ñ0Ó2ˆF�7‰OØ�;‰;Ð"Ø#Ÿ{™{ˆF�8ÑØ�9‰9Ð Ø!ŸY™YˆF�6‰NØ�9‰9Ð Ø!ŸY™YˆF�6‰NØ�>‰>Ð%Ø!%§¡ˆF�:ÑØ�;‰;Ð"Ø#Ÿ{™{ˆF�8ÑØ�>‰>Ð%Ø!%§¡ˆF�:ÑØ�;‰;Ð"Ø#Ÿ{™{ˆF�8ÑØˆr   )	NNNNNNNNN)r   r   r   r   r   r(   r   r>   r?   r!   r   r%   r   r   r   rB   rB   g   s°   „ Ù*ð #Ø&*Ø $Ø"Ø"Ø$(Ø!%Ø#'Ø $ñà�s‰mðð ˜
Ñ#ðð ˜‘ð	ð
 �s‰mðð �s‰mðð ˜D‘>ðð ˜‘ðð ˜C‘=ðð ˜‘óð,˜ô r   rB   c                   óH   — e Zd ZdZd	dee   dee   fd„Zededd fd„«       Z	y)
ÚPartitionKeyz#Represents a storage partition key.NÚuser_contextÚsource_originc                 ó    — || _         || _        y r   ©rI   rJ   ©r    rI   rJ   s      r   r!   zPartitionKey.__init__    s   € Ø(ˆÔØ*ˆÕr   r7   r"   c                 óR   —  | |j                  d«      |j                  d«      ¬«      S )a	  Creates a PartitionKey instance from a dictionary.

        Parameters:
        -----------
            data: A dictionary containing the partition key information.

        Returns:
        -------
            PartitionKey: A new instance of PartitionKey.
        ÚuserContextÚsourceOriginrL   )r;   )r<   r7   s     r   r=   zPartitionKey.from_dict¤   s)   € ñ ØŸ™ -Ó0ØŸ(™( >Ó2ô
ð 	
r   ©NN)
r   r   r   r   r   r(   r!   r@   r   r=   r   r   r   rH   rH   �   sC   „ Ù-ñ+ X¨c¡]ð +È(ÐSVÉ-ó +ð ð
˜Tð 
 nò 
ó ñ
r   rH   c                   ó(   — e Zd ZdZdefd„Zdefd„Zy)Ú"BrowsingContextPartitionDescriptorz3Represents a browsing context partition descriptor.Úcontextc                 ó    — d| _         || _        y )NrT   ©r   rT   )r    rT   s     r   r!   z+BrowsingContextPartitionDescriptor.__init__¹   s   € ØˆŒ	Øˆ�r   r"   c                 ó4   — | j                   | j                  dœS )zÄConverts the BrowsingContextPartitionDescriptor to a dictionary.

        Returns:
        -------
            Dict: A dictionary representation of the BrowsingContextPartitionDescriptor.
        rV   rV   r$   s    r   r%   z*BrowsingContextPartitionDescriptor.to_dict½   s   € ð Ÿ	™	¨d¯l©lÑ;Ð;r   N)r   r   r   r   r(   r!   r   r%   r   r   r   rS   rS   ¶   s   „ Ù=ð ó ð<˜ô <r   rS   c                   ó:   — e Zd ZdZddee   dee   fd„Zdefd„Zy)	ÚStorageKeyPartitionDescriptorz.Represents a storage key partition descriptor.NrI   rJ   c                 ó.   — d| _         || _        || _        y )NÚ
storageKey©r   rI   rJ   rM   s      r   r!   z&StorageKeyPartitionDescriptor.__init__Ê   s   € Ø ˆŒ	Ø(ˆÔØ*ˆÕr   r"   c                 óŽ   — d| j                   i}| j                  �| j                  |d<   | j                  �| j                  |d<   |S )zºConverts the StorageKeyPartitionDescriptor to a dictionary.

        Returns:
        -------
            Dict: A dictionary representation of the StorageKeyPartitionDescriptor.
        r   rO   rP   r\   rE   s     r   r%   z%StorageKeyPartitionDescriptor.to_dictÏ   sO   € ð ˜$Ÿ)™)Ð$ˆØ×ÑÐ(Ø$(×$5Ñ$5ˆF�=Ñ!Ø×ÑÐ)Ø%)×%7Ñ%7ˆF�>Ñ"Øˆr   rQ   )	r   r   r   r   r   r(   r!   r   r%   r   r   r   rY   rY   Ç   s-   „ Ù8ñ+ X¨c¡]ð +È(ÐSVÉ-ó +ð
˜ô r   rY   c                   ón   — e Zd ZdZ	 	 	 	 	 ddedededee   dee   dee   d	ee   d
ee   fd„Z	de
fd„Zy)ÚPartialCookiez(Represents a partial cookie for setting.Nr+   r   r,   r-   r/   r0   r1   r2   c	                 ót   — || _         || _        || _        || _        || _        || _        || _        || _        y r   )r+   r   r,   r-   r/   r0   r1   r2   )	r    r+   r   r,   r-   r/   r0   r1   r2   s	            r   r!   zPartialCookie.__init__á   s<   € ð ˆŒ	ØˆŒ
ØˆŒØˆŒ	Ø"ˆŒØˆŒØ"ˆŒØˆ�r   r"   c                 óx  — | j                   | j                  j                  «       | j                  dœ}| j                  �| j                  |d<   | j
                  �| j
                  |d<   | j                  �| j                  |d<   | j                  �| j                  |d<   | j                  �| j                  |d<   |S )zšConverts the PartialCookie to a dictionary.

        Returns:
        -------
            Dict: A dictionary representation of the PartialCookie.
        )r+   r   r,   r-   r9   r0   r:   r2   )	r+   r   r%   r,   r-   r/   r0   r1   r2   rE   s     r   r%   zPartialCookie.to_dictõ   s§   € ð —I‘IØ—Z‘Z×'Ñ'Ó)Ø—k‘kñ
ˆð
 �9‰9Ð Ø!ŸY™YˆF�6‰NØ�>‰>Ð%Ø!%§¡ˆF�:ÑØ�;‰;Ð"Ø#Ÿ{™{ˆF�8ÑØ�>‰>Ð%Ø!%§¡ˆF�:ÑØ�;‰;Ð"Ø#Ÿ{™{ˆF�8ÑØˆr   )NNNNN)r   r   r   r   r(   r   r   r?   r>   r!   r   r%   r   r   r   r_   r_   Þ   s‰   „ Ù2ð #Ø$(Ø!%Ø#'Ø $ñàðð ðð ð	ð
 �s‰mðð ˜D‘>ðð ˜‘ðð ˜C‘=ðð ˜‘óð(˜ô r   r_   c                   ó@   — e Zd ZdZdee   defd„Zede	dd fd„«       Z
y)	ÚGetCookiesResultz.Represents the result of a getCookies command.ÚcookiesÚpartition_keyc                 ó    — || _         || _        y r   ©rd   re   )r    rd   re   s      r   r!   zGetCookiesResult.__init__  s   € ØˆŒØ*ˆÕr   r7   r"   c                 óÎ   — |j                  dg «      D �cg c]  }t        j                  |«      ‘Œ }}t        j                  |j                  di «      «      } | ||¬«      S c c}w )a  Creates a GetCookiesResult instance from a dictionary.

        Parameters:
        -----------
            data: A dictionary containing the get cookies result information.

        Returns:
        -------
            GetCookiesResult: A new instance of GetCookiesResult.
        rd   ÚpartitionKeyrg   )r;   r*   r=   rH   )r<   r7   Úcookierd   re   s        r   r=   zGetCookiesResult.from_dict  s[   € ð ;?¿(¹(À9ÈbÓ:QÖR°”6×#Ñ# FÕ+ÐRˆÐRÜ$×.Ñ.¨t¯x©x¸ÈÓ/KÓLˆÙ˜7°-Ô@Ð@ùò Ss   •A"N)r   r   r   r   r   r*   rH   r!   r@   r   r=   r   r   r   rc   rc     sC   „ Ù8ð+  V¡ð +¸\ó +ð ðA˜Tð AÐ&8ò Aó ñAr   rc   c                   ó6   — e Zd ZdZdefd„Zededd fd„«       Zy)ÚSetCookieResultz-Represents the result of a setCookie command.re   c                 ó   — || _         y r   ©re   ©r    re   s     r   r!   zSetCookieResult.__init__)  ó
   € Ø*ˆÕr   r7   r"   c                 ó^   — t         j                  |j                  di «      «      } | |¬«      S )a  Creates a SetCookieResult instance from a dictionary.

        Parameters:
        -----------
            data: A dictionary containing the set cookie result information.

        Returns:
        -------
            SetCookieResult: A new instance of SetCookieResult.
        ri   rn   ©rH   r=   r;   ©r<   r7   re   s      r   r=   zSetCookieResult.from_dict,  ó*   € ô %×.Ñ.¨t¯x©x¸ÈÓ/KÓLˆÙ Ô/Ð/r   N©	r   r   r   r   rH   r!   r@   r   r=   r   r   r   rl   rl   &  s4   „ Ù7ð+ ló +ð ð0˜Tð 0Ð&7ò 0ó ñ0r   rl   c                   ó6   — e Zd ZdZdefd„Zededd fd„«       Zy)ÚDeleteCookiesResultz1Represents the result of a deleteCookies command.re   c                 ó   — || _         y r   rn   ro   s     r   r!   zDeleteCookiesResult.__init__?  rp   r   r7   r"   c                 ó^   — t         j                  |j                  di «      «      } | |¬«      S )a&  Creates a DeleteCookiesResult instance from a dictionary.

        Parameters:
        -----------
            data: A dictionary containing the delete cookies result information.

        Returns:
        -------
            DeleteCookiesResult: A new instance of DeleteCookiesResult.
        ri   rn   rr   rs   s      r   r=   zDeleteCookiesResult.from_dictB  rt   r   Nru   r   r   r   rw   rw   <  s4   „ Ù;ð+ ló +ð ð0˜Tð 0Ð&;ò 0ó ñ0r   rw   c                   óž   — e Zd ZdZd„ Z	 	 ddee   deeee	f      de
fd„Z	 ddedeeee	f      defd	„Z	 	 ddee   deeee	f      defd
„Zy)ÚStoragez*BiDi implementation of the storage module.c                 ó   — || _         y r   )Úconn)r    r}   s     r   r!   zStorage.__init__U  s	   € Øˆ�	r   NÚfilterÚ	partitionr"   c                 óÎ   — i }|�|j                  «       |d<   |�|j                  «       |d<   | j                  j                  t        d|«      «      }t        j                  |«      S )a7  Retrieves cookies that match the given parameters.

        Parameters:
        -----------
            filter: Optional filter to match cookies.
            partition: Optional partition descriptor.

        Returns:
        -------
            GetCookiesResult: The result of the get cookies command.
        r~   r   zstorage.getCookies)r%   r}   Úexecuter   rc   r=   ©r    r~   r   ÚparamsrF   s        r   Úget_cookieszStorage.get_cookiesX  sf   € ð  ˆØÐØ%Ÿ~™~Ó/ˆF�8ÑØÐ Ø"+×"3Ñ"3Ó"5ˆF�;Ñà—‘×"Ñ"¤?Ð3GÈÓ#PÓQˆÜ×)Ñ)¨&Ó1Ð1r   rj   c                 óÄ   — d|j                  «       i}|�|j                  «       |d<   | j                  j                  t        d|«      «      }t        j                  |«      S )a  Sets a cookie in the browser.

        Parameters:
        -----------
            cookie: The cookie to set.
            partition: Optional partition descriptor.

        Returns:
        -------
            SetCookieResult: The result of the set cookie command.
        rj   r   zstorage.setCookie)r%   r}   r�   r   rl   r=   )r    rj   r   rƒ   rF   s        r   Ú
set_cookiezStorage.set_cookieq  s[   € ð  ˜FŸN™NÓ,Ð-ˆØÐ Ø"+×"3Ñ"3Ó"5ˆF�;Ñà—‘×"Ñ"¤?Ð3FÈÓ#OÓPˆÜ×(Ñ(¨Ó0Ð0r   c                 óÎ   — i }|�|j                  «       |d<   |�|j                  «       |d<   | j                  j                  t        d|«      «      }t        j                  |«      S )aE  Deletes cookies that match the given parameters.

        Parameters:
        -----------
            filter: Optional filter to match cookies to delete.
            partition: Optional partition descriptor.

        Returns:
        -------
            DeleteCookiesResult: The result of the delete cookies command.
        r~   r   zstorage.deleteCookies)r%   r}   r�   r   rw   r=   r‚   s        r   Údelete_cookieszStorage.delete_cookiesˆ  sf   € ð  ˆØÐØ%Ÿ~™~Ó/ˆF�8ÑØÐ Ø"+×"3Ñ"3Ó"5ˆF�;Ñà—‘×"Ñ"¤?Ð3JÈFÓ#SÓTˆÜ"×,Ñ,¨VÓ4Ð4r   rQ   r   )r   r   r   r   r!   r   rB   r   rS   rY   rc   r„   r_   rl   r†   rw   rˆ   r   r   r   r{   r{   R  sÁ   „ Ù4òð
 *.Øhlñ2à˜Ñ&ð2ð ˜EÐ"DÐFcÐ"cÑdÑeð2ð 
ó	2ð8 imñ1àð1ð ˜EÐ"DÐFcÐ"cÑdÑeð1ð 
ó	1ð2 *.Øhlñ5à˜Ñ&ð5ð ˜EÐ"DÐFcÐ"cÑdÑeð5ð 
ô	5r   r{   N)Útypingr   r   r   r   Ú%selenium.webdriver.common.bidi.commonr   r	   r   r*   rB   rH   rS   rY   r_   rc   rl   rw   r{   r   r   r   ú<module>r‹      s�   ð÷$ /Ó .å A÷ñ ÷8ñ 8÷(1
ñ 1
÷h3ñ 3÷l
ñ 
÷2<ñ <÷"ñ ÷.-ñ -÷`Añ A÷00ñ 0÷,0ñ 0÷,M5ò M5r   