+
    eih  c                   s    ^ RI t ^ RIHt ^ RIHt ^RIHt ^RIHt ^RIH	t	 ^RI
Ht ^RIHtHtHt  ^ RIt^ RIHt ] P*                  ! ]4      t ! R	 R
]P0                  ]4      tR#   ] d     L3] d     L;i ; i)i    N)closing)ExceptionTrap)backend)KeyringBackend)
properties)SimpleCredential)	InitErrorKeyringLockedPasswordDeleteErrorc                   s|   a  ] tR t^t o RtRt]P                  V 3R lR l4       tR t	R t
R tR tR	 tR
 tRtV tR# )KeyringzSecret Service KeyringzPython keyring libraryc                s    < V ^8  d   QhRS[ /# )   Zreturn)Zfloat)Zformat__classdict__s   "C/usr/lib/python3.14/site-packages/keyring/backends/SecretService.pyZ__annotate__ZKeyring.__annotate__"   s           c                s   \        4       ;_uu_ 4       p\        P                   R R R 4       X'       d   \        R4      h\        P                  R8  d   \        R4      h \        \        P                  ! 4       4      ;_uu_ 4       p\        P                  ! V4      '       g   \        R4      h R R R 4       ^#   + '       g   i     L; i  + '       g   i     ^# ; i  \        P                   d   p\        RT 24      ThR p?ii ; i)NzSecretStorage requiredz#SecretStorage 3.2 or newer requiredzJThe Secret Service daemon is neither running nor activatable through D-Busz$Unable to initialize SecretService: )i   r
   )
r   secretstorage__name__ZRuntimeErrorZ__version_tuple__r    	dbus_initZcheck_service_availability
exceptionsSecretStorageException)ZclsZexc
connectione   &   r   priorityZKeyring.priority!   s    __"" 788**V3DEE	R00233z$??
KK&4  L 4  _ 43  00 	R!EaSIJPQQ	RsA   B9 &C  (C/C  9C		C	C  C   D	5DD	c                s   \         P                  ! 4       p \        V R4      '       d"   \         P                  ! WP                  4      pM\         P
                  ! V4      p VP                  4       '       d2   VP                  4        VP                  4       '       d   \        R4      hV#   \        P                   d   p\        RT R24      ThRp?ii ; i)zIf self.preferred_collection contains a D-Bus path,
the collection at that address is returned. Otherwise,
the default collection is returned.
preferred_collectionz!Failed to create the collection: Z.Nz Failed to unlock the collection!)r   r   hasattrZ
Collectionr   Zget_default_collectionr   r   r   	is_lockedunlockr   )selfZbus
collectionr   r   r   get_preferred_collectionZ Keyring.get_preferred_collection4   s    
 %%'	Mt344*55c;T;TU
*AA#F
 !!##%%#$FGG 00 	M?s!DE1L	Ms   2B* 
B* *C?CCc                s    \        VR 4      '       d   VP                  4        VP                  4       '       d   \        R4      hR# )r   zFailed to unlock the item!N)r   r   r   r   )r   items   &&r   r   ZKeyring.unlockG   s6    4""KKM>> <== r   c                s`   V P                  4       p\        VP                  4      ;_uu_ 4        VP                  V P	                  W4      4      pV F=  pV P                  V4       VP                  4       P                  R4      u uuRRR4       # 	  RRR4       R#   + '       g   i     R# ; i)z,Get password of the username for the serviceutf-8N)r   r    r   search_items_queryr   
get_secretdecoder   serviceusernamer   itemsr      &&&   r   get_passwordZKeyring.get_passwordM   s}    224
Z**++++DKK,JKED!(//88	 ,+ ,+++s   ABBB-	c           	     s   V P                  4       pV P                  WV P                  R7      pRV RV R2p\        VP                  4      ;_uu_ 4        VP                  WeVRR7       RRR4       R#   + '       g   i     R# ; i)z,Set password for the username of the service)ZapplicationzPassword for 'z' on 'Z'T)ZreplaceN)r   r!   appidr    r   Zcreate_item)r   r%   r&   Zpasswordr   Z
attributesZlabels   &&&&   r   set_passwordZKeyring.set_passwordV   so    224
[[

[K
 
&	;Z**++""5h"M ,+++s   A33B	c                s0   V P                  4       p\        VP                  4      ;_uu_ 4        VP                  V P	                  W4      4      pV F  pVP                  4       u uuRRR4       # 	  RRR4       \        R4      h  + '       g   i     L; i)z/Delete the stored password (only the first one)NzNo such password!)r   r    r   r    r!   Zdeleter   r$   r(   r   delete_passwordZKeyring.delete_password^   sr    224
Z**++++DKK,JKE{{}$ ,+ , ""566	 ,+s   7B0BB	c           	     s   V P                   V P                  ,          pV P                  W4      pV P                  4       p\	        VP
                  4      ;_uu_ 4        VP                  V4      pV Fl  pV P                  V4       VP                  4       P                  VR,          4      p\        W'P                  4       P                  R4      4      u uuRRR4       # 	  RRR4       R#   + '       g   i     R# ; i)a1  Gets the first username and password for a service.
Returns a Credential instance

The username can be omitted, but if there is one, it will use get_password
and return a SimpleCredential containing  the username and password
Otherwise, it will return the first username and password combo that it finds.
r&   r   N)Zschemesschemer!   r   r    r   r    r   Zget_attributesZgetr   r"   r#   )r   r%   r&   r-   Zqueryr   r'   r   s   &&&     r   get_credentialZKeyring.get_credentialg   s     dkk*G.224
Z**++++E2ED!..044VJ5GH'//2C2J2J72STT ,+ ,+++s   A7C*C**C;	 N)r   Z
__module__Z__qualname__Z__firstlineno__Z__doc__r*   r   Zclasspropertyr   r   r   r)   r+   r,   r.   Z__static_attributes__Z__classdictcell__)r   s   @r   r	   r	      sK      $E $&>9N7U Ur   r	   )ZloggingZ
contextlibr    Zjaraco.contextr   Z r   r   Zcompatr   Zcredentialsr   Zerrorsr   r   r   r   Zsecretstorage.exceptionsr   ZImportErrorZAttributeErrorZ	getLoggerr   ZlogZSchemeSelectabler	   r/   r   r   <module>r0      sx      (  $  * 	1 !\Ug&& \U  	 		s   
A( (A:1A:6A:9A: