+
    Ÿ÷Îjü  ã                  óX  a € 0 t $ ^ RIHt ^ RIt^ RIt^ RIt^ RIHt ^ RIH	t	H
t
Ht ^RIHtHtHtHt ^RIHtHtHt ^RIHtHt RtR	]R
&   RtR]R&   ]P6                  ! R]P8                  4      tR]R&   ]
R,          t ! R R]4      t ! R R]4      t R R lt!R R lt"R R lt#. ROt$R# )é    )ÚannotationsN)Úsuppress)ÚFinalÚLiteralÚ
NamedTuple)Ú	host_nameÚowner_is_current_processÚowner_is_staleÚprocess_start_token)ÚSoftFileLockÚ_read_lock_fileÚparse_decimal)Úbreak_lock_fileÚ	write_allz
filelock/2z
Final[str]Ú	_PROTOCOLz
Final[int]Ú_MAX_PIDz#[0-9]+(?:\.[0-9]+)?(?:e[+-][0-9]+)?zFinal[re.Pattern[str]]Ú	_DURATIONc                  óÐ   a € ] tR t^t$ RtRtR]R&   ]R R l4       t]R R l4       t	]R	 R
 l4       t
R R ltR V 3R llt]R V 3R ll4       tR R ltR R ltR R ltRtV ;t# )ÚMarkerSoftFileLockzAAn existence lock whose marker carries a protocol 2 owner record.Ú	exclusiveÚ	OwnerModeÚ_owner_modec               ó   € V ^8„  d   QhRR/# ©é   ÚreturnúOwnerRecord | None© )Úformats   "ÚF/opt/data/home/.local/lib/python3.14/site-packages/filelock/_marker.pyÚ__annotate__ÚMarkerSoftFileLock.__annotate__#   s   € ÷ "ñ "Ð)ñ "ó    c                ó"   € V P                  4       # )z•
The owner named by the marker on disk.

:returns: the published record, or ``None`` when no marker exists or its record is malformed or protocol 1

)Ú_read_owner©Úselfs   &r    ÚownerÚMarkerSoftFileLock.owner"   s   € ð ×ÑÓ!Ð!r#   c               ó   € V ^8„  d   QhRR/# )r   r   ú
int | Noner   )r   s   "r    r!   r"   -   s   € ÷ Lñ L�Zñ Lr#   c                óF   € V P                  4       ;pf   R# VP                  # )z”
The PID of the process holding this lock, read from the marker.

:returns: the PID, or ``None`` when no marker exists or its record is unreadable

N)r%   Úpid©r'   r(   s   & r    r-   ÚMarkerSoftFileLock.pid,   s&   € ð "&×!1Ñ!1Ó!3Ð3˜Ò<ˆtÐKÀ%Ç)Á)ÐKr#   c               ó   € V ^8„  d   QhRR/# )r   r   Úboolr   )r   s   "r    r!   r"   7   s   € ÷ fñ f Dñ fr#   c                ó�   € V P                  4       pVRJ;'       d,    \        VP                  VP                  VP                  4      # )z˜
Whether the marker on disk names this process.

:returns: ``True`` when the marker names this process's PID, hostname and, when recorded, start token

N)r%   r	   r-   ÚhostnameÚstartr.   s   & r    Úis_lock_held_by_usÚ%MarkerSoftFileLock.is_lock_held_by_us6   s>   € ð × Ñ Ó"ˆØ˜DÐ ×eÐeÔ%=¸e¿i¹iÈÏÉÐY^×YdÑYdÓ%eÐer#   c               ó   € V ^8„  d   QhRR/# ©r   r   ÚNoner   )r   s   "r    r!   r"   A   s   € ÷ ñ ˜Tñ r#   c                ó&   € V P                  4        R# )a  
Remove the marker whoever holds it, so a later contender can acquire.

Forced breaking voids mutual exclusion: the previous holder keeps running and keeps using whatever the lock
protects. Reserve it for an operator clearing a marker whose holder is known to be gone.
N)Ú
break_lockr&   s   &r    Úforce_breakÚMarkerSoftFileLock.force_breakA   s   € ð 	�‰Ör#   c               ó   € V ^8„  d   QhRR/# r8   r   )r   s   "r    r!   r"   J   s   € ÷ ?ñ ? tñ ?r#   c                	ó®  <€ \        \        \        4      ;_uu_ 4        \        V P                  4      p\        V^ ,          4      ;pf   \        SV `  4        M`VP                  R8w  dP   \        VP                  VP                  VP                  4      '       d   \        V P                  .VR,          O5!   RRR4       R#   + '       g   i     R# ; i)r   NÚunknownºé   NN)r   ÚOSErrorÚ
ValueErrorr   Ú	lock_fileÚparse_markerÚsuperÚ_try_break_stale_lockÚmoder
   r-   r3   r4   r   )r'   Úsnapshotr(   Ú	__class__s   &  €r    rH   Ú(MarkerSoftFileLock._try_break_stale_lockJ   sŠ   ø€ Ü”gœz×*Õ*Ü=LÈTÏ^É^Ó=\ˆHä% h¨q¥kÓ2Ð2�Ò;Ü‘Ñ-Õ/Ø—‘˜yÔ(¬^¸E¿I¹IÀuÇ~Á~ÐW\×WbÑWb×-cÒ-cÜ §¡Ð>°¸"µÔ>÷ +×*×*Ò*ús   žBCÃC	c               ó    € V ^8„  d   QhRRRR/# )r   Úcontentú
str | Noner   ztuple[int, str] | Noner   )r   s   "r    r!   r"   T   s   € ÷ 1ñ 1 zð 1Ð6Lñ 1r#   c                	óp   <€ \        V4      ;pe   VP                  VP                  3# \        SV `  V4      # ©N)rF   r-   r3   rG   Ú_recorded_holder)ÚclsrN   r(   rK   s   && €r    rR   Ú#MarkerSoftFileLock._recorded_holderS   s6   ø€ ä! 'Ó*Ð*ˆEÒ7Ø—9‘9˜eŸn™nÐ,Ð,Ü‰wÑ'¨Ó0Ð0r#   c               ó   € V ^8„  d   QhRR/# r   r   )r   s   "r    r!   r"   Y   s   € ÷ ñ Ð/ñ r#   c                	óÂ   € \        \        \        4      ;_uu_ 4        \        \	        V P
                  4      ^ ,          4      uuRRR4       #   + '       g   i     R# ; i)r   N)r   rC   rD   rF   r   rE   r&   s   &r    r%   ÚMarkerSoftFileLock._read_ownerY   s7   € Ü”gœz×*Õ*Ü¤°·±Ó ?ÀÕ BÓC÷ +×*×*Ñ*áús   �%AÁA	c               ó    € V ^8„  d   QhRRRR/# )r   ÚfdÚintr   r9   r   )r   s   "r    r!   r"   ^   s   € ÷ ?ñ ? 3ð ?¨4ñ ?r#   c                	óL   € \        V\        V P                  4       4      4       R # rQ   )r   Úencode_markerÚ_published_record)r'   rY   s   &&r    Ú_write_lock_infoÚ#MarkerSoftFileLock._write_lock_info^   s   € Ü�"”m D×$:Ñ$:Ó$<Ó=Ö>r#   c               ó   € V ^8„  d   QhRR/# )r   r   ÚOwnerRecordr   )r   s   "r    r!   r"   a   s   € ÷ 
ñ 
 ;ñ 
r#   c           	     	ó¢   € \        \        P                  ! 4       \        4       V P                  \        \        P                  ! 4       4      R 7      # ))r-   r3   rI   r4   )ra   ÚosÚgetpidr   r   r   r&   s   &r    r]   Ú$MarkerSoftFileLock._published_recorda   s4   € ÜÜ—	’	“Ü“[Ø×!Ñ!Ü%¤b§i¢i£kÓ2ô	
ð 	
r#   r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Ú__annotations__Úpropertyr(   r-   r5   r<   rH   ÚclassmethodrR   r%   r^   r]   Ú__static_attributes__Ú__classcell__)rK   s   @r    r   r      s‡   ø‡ ÙKð )€K�Ó(àô"ó ð"ð ôLó ðLð ôfó ðfõ÷?ð ?ð ÷1ó ð1õ
õ
?÷
ó 
r#   r   c                  ód   € ] tR t^jt$ RtR]R&   R]R&   R]R&   RtR	]R
&   RtR]R&   RtR]R&   Rt	R# )ra   z7Keep optional metadata when reading unknown lock modes.rZ   r-   Ústrr3   r   rI   NrO   Útokenzfloat | NoneÚlease_durationr+   r4   r   )
rf   rg   rh   ri   rj   rk   rr   rs   r4   rn   r   r#   r    ra   ra   j   s2   ‡ ÙAà	ƒHØƒMØ
ƒOØ€Eˆ:ÓØ#'€N�LÓ'Ø€Eˆ:×r#   ra   c               ó    € V ^8„  d   QhRRRR/# )r   Úrecordra   r   Úbytesr   )r   s   "r    r!   r!   u   s   € ÷ 	;ñ 	;˜+ð 	;¨%ñ 	;r#   c                óº  € \         RV P                   2RV P                   2RV P                   2.pV P                  e   VP                  RV P                   24       V P                  e    VP                  RV P                  : 24       V P                  e   VP                  RV P                   24       RP                  R V 4       4      P                  4       # )	z>Render an owner record as the bytes a protocol 2 marker holds.zpid=zhost=zmode=ztoken=z	duration=zstart=Ú c              3  ó*   "  € T F	  q R 2x € K  	  R# 5i)Ú
Nr   )Ú.0Úlines   & r    Ú	<genexpr>Ú encode_marker.<locals>.<genexpr>~   s   é € Ð1©5 4�V˜2•;«5ùs   ‚)
r   r-   r3   rI   rr   Úappendrs   r4   ÚjoinÚencode)ru   Úliness   & r    r\   r\   u   s»   € ä˜$˜vŸz™z˜lÐ+¨u°V·_±_Ð4EÐ-FÈ%ÐPV×P[ÑP[È}ÐH]Ð^€EØ‡|�|ÒØ�‰�v˜fŸl™l˜^Ð,Ô-Ø×ÑÒ(Ø�‰�y ×!6Ñ!6Ñ 9Ð:Ô;Ø‡|�|ÒØ�‰�v˜fŸl™l˜^Ð,Ô-Ø�7‰7Ñ1©5Ó1Ó1×8Ñ8Ó:Ð:r#   c               ó    € V ^8„  d   QhRRRR/# )r   rN   rO   r   r   r   )r   s   "r    r!   r!   �   s   € ÷ !ñ !˜*ð !Ð);ñ !r#   c                ó"  € V '       dG   V R,          R8w  g9   V P                  4       P                  4       ;p'       d   V^ ,          \        8w  d   R# / pVR,           F&  pVP                  R4      w  rEpV'       g    R# WbV&   K(  	  \	        V4      # )zcReturn the owner a protocol 2 marker names, or ``None`` when the record is malformed or protocol 1.rz   NrA   Ú=éÿÿÿÿ)ÚstripÚ
splitlinesr   Ú	partitionÚ_build_record)rN   r‚   Úfieldsr|   ÚkeyÚ	separatorÚvalues   &      r    rF   rF   �   s   € ÷ �g˜b•k TÔ)¸7¿=¹=»?×;UÑ;UÓ;WÐ2W°%Ö2WÐ\aÐbcÕ\dÔhqÔ\qÙØ€FØ�b—	�	ˆØ $§¡¨sÓ 3Ñˆ˜ßÚØˆs‹ñ	 ô
 ˜Ó Ð r#   c               ó    € V ^8„  d   QhRRRR/# )r   r‹   zdict[str, str]r   r   r   )r   s   "r    r!   r!   �   s   € ÷ qñ q˜.ð qÐ-?ñ qr#   c           	     ór  € V P                  R 4      ;pf   R# VR
9   d   TMRpV P                  R4      pV'       d1   RV 9  g*   RV 9   d%   \        P                  V R,          4      '       g   R#  \        V R,          4      pRV 9   d   \	        V R,          4      MRpRV 9   d   \        V R,          4      MRp^Tu;8:  d   \        8:  g    R#  R# T P                  R4      pTR8X  d2   T'       d(   Te$   \        P                  ! T4      '       d   T^ 8”  g   R# \        YCY'YVR	7      #   \
         d     R# i ; i)rI   NÚleaser@   Úhostr-   Údurationr4   rr   )r-   r3   rI   rr   rs   r4   >   r‘   r   )
Úgetr   Ú	fullmatchr   ÚfloatrD   r   ÚmathÚisfinitera   )r‹   Ú	publishedrI   r3   r-   r“   r4   rr   s   &       r    rŠ   rŠ   �   s  € ð
 —Z‘Z Ó'Ð'ˆ	Ò0ÙØ*3Ð7MÔ*M™YÐS\€DØ�z‰z˜&Ó!€Hß�u FÔ*¨z¸VÔ/CÌI×L_ÑL_Ð`fÐgqÕ`r×LsÒLsÙðÜ˜F 5�MÓ*ˆØ0:¸fÔ0D”5˜ 
Õ+Ô,È$ˆØ29¸VÔ2C”˜f W�oÔ.Èˆð �Ö”xÕÙð  ÙØ�J‰J�wÓ€Eð ˆw„§¨Ò)9Ä$Ç-Â-ÐPX×BYÒBYÐ^fÐijÔ^jÙÜ˜3¸ÐZbÔpÐpøô ô Úðús   Á/AD' Ä'D6Ä5D6iÿÿÿ)r‘   r   r@   )r   r   ra   r\   rF   )%Ú__conditional_annotations__Ú
__future__r   r—   rc   ÚreÚ
contextlibr   Útypingr   r   r   Ú	_identityr   r	   r
   r   Ú_softr   r   r   Ú_utilr   r   r   rk   r   ÚcompileÚASCIIr   r   r   ra   r\   rF   rŠ   Ú__all__)rš   s   @r    Ú<module>r¥      s¢   øðß "Ð "ã Û 	Û 	Ý ß -Ñ -ç _Ó _ß ?Ñ ?ß -ð
 %€	ˆ:Ó $à €ˆ*Ó  ð %'§J¢JÐ/UÐWY×W_ÑW_Ó$`€	Ð!Ó `ð Ð3Õ4€	ôK
˜ô K
ô\�*ô õ	;õ!õqò6‚r#   