Ë
    bQbj”  ã                  ó$  — 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 G d„ dej                  «      Z
e G d„ d	«      «       Z	 	 	 	 	 	 dd
„Z	 d	 	 	 	 	 dd„Zdd„Z	 	 	 	 dd„Z	 d	 	 	 	 	 	 	 dd„Z	 	 	 	 	 	 	 	 dd„Z	 	 	 	 	 	 dd„Z	 	 	 	 	 	 	 	 dd„Zy)é    )Úannotationsé   )Úevent_classÚT_JSON_DICT)Ú	dataclassNc                  ó6   — e Zd ZdZdZdZdZdZd„ Ze	d„ «       Z
y)	ÚStorageAreaz
    Storage areas.
    ÚsessionÚlocalÚsyncÚmanagedc                ó   — | j                   S ©N)Úvalue)Úselfs    úe/var/www/html/venv/lib/python3.12/site-packages/selenium/webdriver/common/devtools/v149/extensions.pyÚto_jsonzStorageArea.to_json   s   € Ø�z‰zÐó    c                ó   —  | |«      S r   © ©ÚclsÚjsons     r   Ú	from_jsonzStorageArea.from_json   s   € á�4‹yÐr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚSESSIONÚLOCALÚSYNCÚMANAGEDr   Úclassmethodr   r   r   r   r	   r	      s6   „ ñð €GØ€EØ€DØ€Gòð ñó ñr   r	   c                  óZ   — e Zd ZU dZded<   ded<   ded<   ded<   ded<   d	„ Zed
„ «       Zy)ÚExtensionInfoz2
    Detailed information about an extension.
    ÚstrÚid_ÚnameÚversionÚpathÚboolÚenabledc                ó°   — t        «       }| j                  |d<   | j                  |d<   | j                  |d<   | j                  |d<   | j
                  |d<   |S )NÚidr(   r)   r*   r,   )Údictr'   r(   r)   r*   r,   )r   r   s     r   r   zExtensionInfo.to_json2   sO   € Ü‹vˆØ—X‘XˆˆT‰
Ø—y‘yˆˆV‰ØŸ,™,ˆˆY‰Ø—y‘yˆˆV‰ØŸ,™,ˆˆY‰Øˆr   c           
     ó”   —  | t        |d   «      t        |d   «      t        |d   «      t        |d   «      t        |d   «      ¬«      S )Nr.   r(   r)   r*   r,   )r'   r(   r)   r*   r,   )r&   r+   r   s     r   r   zExtensionInfo.from_json;   sJ   € áÜ�D˜‘J“Ü�T˜&‘\Ó"Ü˜˜Y™Ó(Ü�T˜&‘\Ó"Ü˜˜i™Ó)ô
ð 	
r   N)r   r   r   r   Ú__annotations__r   r#   r   r   r   r   r%   r%      sC   … ñð 
ƒHð ƒIð ƒLð ƒIð ƒMòð ñ
ó ñ
r   r%   c              #  óF   K  — t        «       }| |d<   ||d<   d|dœ}|–—}y­w)zœ
    Runs an extension default action.

    :param id_: Extension id.
    :param target_id: A tab target ID to trigger the default extension action on.
    r.   ÚtargetIdzExtensions.triggerAction©ÚmethodÚparamsN©r/   )r'   Ú	target_idr6   Úcmd_dictr   s        r   Útrigger_actionr:   F   s8   è ø€ ô ›&€FØ€Fˆ4�LØ"€Fˆ:Ñà,Øñ€Hð ‰>�Dùs   ‚!c              #  ód   K  — t        «       }| |d<   |�||d<   d|dœ}|–—}t        |d   «      S ­w)a8  
    Installs an unpacked extension from the filesystem similar to
    --load-extension CLI flags. Returns extension ID once the extension
    has been installed.

    :param path: Absolute file path.
    :param enable_in_incognito: *(Optional)* Enable the extension in incognito
    :returns: Extension id.
    r*   ÚenableInIncognitozExtensions.loadUnpackedr4   r.   )r/   r&   )r*   Úenable_in_incognitor6   r9   r   s        r   Úload_unpackedr>   Z   sM   è ø€ ô ›&€FØ€Fˆ6�NØÐ&Ø&9ˆÐ"Ñ#à+Øñ€Hð ‰>€DÜˆt�D‰z‹?Ðùs   ‚.0c               #  óp   K  — ddi} | –—}|d   D �cg c]  }t         j                  |«      ‘Œ c}S c c}w ­w)zA
    Gets a list of all unpacked extensions.

    :returns: 
    r5   zExtensions.getExtensionsÚ
extensions)r%   r   )r9   r   Úis      r   Úget_extensionsrB   s   sB   è ø€ ð 	Ð,ð€Hð ‰>€DØ04°\Ñ0BÖC¨1ŒM×#Ñ# AÕ&ÒCÐCùÒCùs   ‚6’1®6c              #  ó<   K  — t        «       }| |d<   d|dœ}|–—}y­w)zr
    Uninstalls an unpacked extension (others not supported) from the profile.

    :param id_: Extension id.
    r.   zExtensions.uninstallr4   Nr7   )r'   r6   r9   r   s       r   Ú	uninstallrD   €   s.   è ø€ ô ›&€FØ€Fˆ4�Là(Øñ€Hð ‰>�Dùs   ‚c              #  ó°   K  — t        «       }| |d<   |j                  «       |d<   |�|D �cg c]  }|‘Œ c}|d<   d|dœ}|–—}t        |d   «      S c c}w ­w)a(  
    Gets data from extension storage in the given ``storageArea``. If ``keys`` is
    specified, these are used to filter the result.

    :param id_: ID of extension.
    :param storage_area: StorageArea to retrieve data from.
    :param keys: *(Optional)* Keys to retrieve.
    :returns: 
    r.   ÚstorageAreaÚkeyszExtensions.getStorageItemsr4   Údata©r/   r   ©r'   Ústorage_arearG   r6   rA   r9   r   s          r   Úget_storage_itemsrL   ‘   so   è ø€ ô ›&€FØ€Fˆ4�LØ(×0Ñ0Ó2€Fˆ=ÑØÐØ%)Ö* š!Ò*ˆˆv‰à.Øñ€Hð ‰>€DÜ��V‘ÓÐùò +ùs   ‚)A«	A´"Ac              #  ó’   K  — t        «       }| |d<   |j                  «       |d<   |D �cg c]  }|‘Œ c}|d<   d|dœ}|–—}yc c}w ­w)zÌ
    Removes ``keys`` from extension storage in the given ``storageArea``.

    :param id_: ID of extension.
    :param storage_area: StorageArea to remove data from.
    :param keys: Keys to remove.
    r.   rF   rG   zExtensions.removeStorageItemsr4   NrI   rJ   s          r   Úremove_storage_itemsrN   ¬   sZ   è ø€ ô ›&€FØ€Fˆ4�LØ(×0Ñ0Ó2€Fˆ=ÑØ!%Ö&˜A’aÒ&€Fˆ6�Nà1Øñ€Hð ‰>�Dùò 'ùs   ‚'A©	A²Ac              #  ób   K  — t        «       }| |d<   |j                  «       |d<   d|dœ}|–—}y­w)zœ
    Clears extension storage in the given ``storageArea``.

    :param id_: ID of extension.
    :param storage_area: StorageArea to remove data from.
    r.   rF   zExtensions.clearStorageItemsr4   NrI   )r'   rK   r6   r9   r   s        r   Úclear_storage_itemsrP   Ã   sA   è ø€ ô ›&€FØ€Fˆ4�LØ(×0Ñ0Ó2€Fˆ=Ñà0Øñ€Hð ‰>�Dùs   ‚-/c              #  ól   K  — t        «       }| |d<   |j                  «       |d<   ||d<   d|dœ}|–—}y­w)a  
    Sets ``values`` in extension storage in the given ``storageArea``. The provided ``values``
    will be merged with existing values in the storage area.

    :param id_: ID of extension.
    :param storage_area: StorageArea to set data in.
    :param values: Values to set.
    r.   rF   ÚvalueszExtensions.setStorageItemsr4   NrI   )r'   rK   rR   r6   r9   r   s         r   Úset_storage_itemsrS   ×   sK   è ø€ ô ›&€FØ€Fˆ4�LØ(×0Ñ0Ó2€Fˆ=ÑØ€Fˆ8Ñà.Øñ€Hð ‰>�Dùs   ‚24)r'   r&   r8   r&   Úreturnú0typing.Generator[T_JSON_DICT, T_JSON_DICT, None]r   )r*   r&   r=   ztyping.Optional[bool]rT   z/typing.Generator[T_JSON_DICT, T_JSON_DICT, str])rT   zFtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[ExtensionInfo]])r'   r&   rT   rU   )r'   r&   rK   r	   rG   z!typing.Optional[typing.List[str]]rT   z0typing.Generator[T_JSON_DICT, T_JSON_DICT, dict])r'   r&   rK   r	   rG   ztyping.List[str]rT   rU   )r'   r&   rK   r	   rT   rU   )r'   r&   rK   r	   rR   r/   rT   rU   )Ú
__future__r   Úutilr   r   Údataclassesr   ÚenumÚtypingÚEnumr	   r%   r:   r>   rB   rD   rL   rN   rP   rS   r   r   r   ú<module>r\      s=  ðõ #ß *Ý !Û Û ô�$—)‘)ô ð" ÷$
ð $
ó ð$
ðNØðàðð 
8óð, 6:ðØðà2ðð 
7óó2
DðØðà	7óð( 37ðØðà!ðð 0ðð 
8ó	ð6Øðà!ðð ðð 
8ó	ð.Øðà!ðð 
8óð(Øðà!ðð ðð 
8ô	r   