
    'h                        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\R                  5      r
    SS jr    SS	 jr S       SS
 jjr        SS jr      SS jr        SS jrg)    )annotations   )event_classT_JSON_DICT)	dataclassNc                  >    \ rS rSrSrSrSrSrSrS r	\
S 5       rS	rg
)StorageArea   z
Storage areas.
sessionlocalsyncmanagedc                    U R                   $ N)value)selfs    {/var/www/home/psychics-availability/venv/lib/python3.13/site-packages/selenium/webdriver/common/devtools/v138/extensions.pyto_jsonStorageArea.to_json   s    zz    c                    U " U5      $ r    )clsjsons     r   	from_jsonStorageArea.from_json   s    4yr   r   N)__name__
__module____qualname____firstlineno____doc__SESSIONLOCALSYNCMANAGEDr   classmethodr   __static_attributes__r   r   r   r	   r	      s6     GEDG  r   r	   c              #  T   #    [        5       nXS'   SUS.nUv n[        US   5      $ 7f)aV  
Installs an unpacked extension from the filesystem similar to
--load-extension CLI flags. Returns extension ID once the extension
has been installed. Available if the client is connected using the
--remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
flag is set.

:param path: Absolute file path.
:returns: Extension id.
pathzExtensions.loadUnpackedmethodparamsid)dictstr)r)   r,   cmd_dictr   s       r   load_unpackedr1      s9      &F6N+H >DtDz?s   &(c              #  :   #    [        5       nXS'   SUS.nUv ng7f)z
Uninstalls an unpacked extension (others not supported) from the profile.
Available if the client is connected using the --remote-debugging-pipe flag
and the --enable-unsafe-extension-debugging.

:param id_: Extension id.
r-   zExtensions.uninstallr*   N)r.   )id_r,   r0   r   s       r   	uninstallr4   5   s+      &F4L(H >Ds   c              #     #    [        5       nXS'   UR                  5       US'   Ub  U Vs/ s H  oDPM     snUS'   SUS.nUv n[        US   5      $ s  snf 7f)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.getStorageItemsr*   datar.   r   r3   storage_arear7   r,   ir0   r   s          r   get_storage_itemsr=   H   sp      &F4L(002F=%)*T!T*v.H >DV +s   )AA"Ac              #     #    [        5       nXS'   UR                  5       US'   U Vs/ s H  oDPM     snUS'   SUS.nUv ngs  snf 7f)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-   r6   r7   zExtensions.removeStorageItemsr*   Nr9   r:   s          r   remove_storage_itemsr?   c   s[      &F4L(002F=!%&Aa&F6N1H >D 's   &AAAc              #  `   #    [        5       nXS'   UR                  5       US'   SUS.nUv ng7f)z
Clears extension storage in the given ``storageArea``.

:param id_: ID of extension.
:param storage_area: StorageArea to remove data from.
r-   r6   zExtensions.clearStorageItemsr*   Nr9   )r3   r;   r,   r0   r   s        r   clear_storage_itemsrA   z   s>      &F4L(002F=0H >Ds   ,.c              #  h   #    [        5       nXS'   UR                  5       US'   X#S'   SUS.nUv ng7f)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-   r6   valueszExtensions.setStorageItemsr*   Nr9   )r3   r;   rC   r,   r0   r   s         r   set_storage_itemsrD      sF      &F4L(002F=8.H >Ds   02)r)   r/   returnz/typing.Generator[T_JSON_DICT, T_JSON_DICT, str])r3   r/   rE   0typing.Generator[T_JSON_DICT, T_JSON_DICT, None]r   )r3   r/   r;   r	   r7   z!typing.Optional[typing.List[str]]rE   z0typing.Generator[T_JSON_DICT, T_JSON_DICT, dict])r3   r/   r;   r	   r7   ztyping.List[str]rE   rF   )r3   r/   r;   r	   rE   rF   )r3   r/   r;   r	   rC   r.   rE   rF   )
__future__r   utilr   r   dataclassesr   enumtypingEnumr	   r1   r4   r=   r?   rA   rD   r   r   r   <module>rM      s    # * !  $)) "	6.	7, 37! 0 
8	6!  
8	.! 
8(!  
8	r   