+
    € ’e‚  ã                   óv   € ^ RI Ht ^ RIHt ^RIHt  ! R R4      t ! R R4      tRR lt ! R	 R
4      t	R t
R# )é    )Úsuppress)ÚTextIOWrapper)Úabcc                   ó8   a € ] tR t^t o RtR 3R ltR tRtV tR# )ÚSpecLoaderAdapterz6
Adapt a package spec to adapt the underlying loader.
c                ó   € V P                   # ©N)Úloader©Úspecs   &Úk/home/ubuntu/.hermes/tools/python-3.14.9+20261021-linux-x64/lib/python3.14/importlib/resources/_adapters.pyÚ<lambda>ÚSpecLoaderAdapter.<lambda>   s   € °$·+²+ó    c                ó,   € Wn         V! V4      V n        R # r	   )r   r
   )Úselfr   Úadapters   &&&r   Ú__init__ÚSpecLoaderAdapter.__init__   s   € ØŒ	Ù˜d“mˆŽr   c                ó.   € \        V P                  V4      # r	   )Úgetattrr   ©r   Únames   &&r   Ú__getattr__ÚSpecLoaderAdapter.__getattr__   s   € Ü�t—y‘y $Ó'Ð'r   )r
   r   N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r      s   ø‡ € ññ &>ô $÷(ð (r   r   c                   ó0   a € ] tR t^t o RtR tR tRtV tR# )ÚTraversableResourcesLoaderz1
Adapt a loader to provide TraversableResources.
c                ó   € Wn         R # r	   r   ©r   r   s   &&r   r   Ú#TraversableResourcesLoader.__init__   ó   € ØŽ	r   c                óH   € \        V P                  4      P                  4       # r	   )ÚCompatibilityFilesr   Ú_nativer   s   &&r   Úget_resource_readerÚ.TraversableResourcesLoader.get_resource_reader   s   € Ü! $§)¡)Ó,×4Ñ4Ó6Ð6r   r   N)	r   r   r   r   r    r   r.   r!   r"   r#   s   @r   r&   r&      s   ø‡ € ñò÷7ð 7r   r&   c                 ó^   € VR 8X  d   \        V .VO5/ VB # VR8X  d   V # \        RV R24      h)ÚrÚrbzInvalid mode value 'z"', only 'r' and 'rb' are supported)r   Ú
ValueError)ÚfileÚmodeÚargsÚkwargss   &&*,r   Ú_io_wrapperr8       s@   € Øˆs„{Ü˜TÐ3 DÒ3¨FÑ3Ð3Ø	�ŒØˆÜ
Ð+¨D¨6Ð1SÐTÓ
UÐUr   c                   óÊ   a € ] tR t^(t o Rt ! R R]P                  4      t ! R R]P                  4      t ! R R]P                  4      t	R t
]R	 4       tR
 tR tR tRtV tR# )r,   z^
Adapter for an existing or non-existent resource reader
to provide a compatibility .files().
c                   óZ   a € ] tR t^.t o RtR tR tR t]tR t	]
R 4       tR
R ltRtV tR	# )ÚCompatibilityFiles.SpecPathzS
Path tied to a module spec.
Can be read and exposes the resource reader children.
c                ó   € Wn         W n        R # r	   )Ú_specÚ_reader)r   r   Úreaders   &&&r   r   Ú$CompatibilityFiles.SpecPath.__init__4   s   € ØŒJØ!ŽLr   c                ó˜   a € S P                   '       g   \        R4      # \        V 3R  lS P                   P                  4        4       4      # )c              3   ód   <"  € T F%  p\         P                  SP                  V4      x € K'  	  R # 5ir	   )r,   Ú	ChildPathr>   )Ú.0Úpathr   s   & €r   Ú	<genexpr>Ú6CompatibilityFiles.SpecPath.iterdir.<locals>.<genexpr>;   s,   øé € ð á3�Dô #×,Ñ,¨T¯\©\¸4×@Ð@Û3ùs   ƒ-0© )r>   ÚiterÚcontents©r   s   fr   ÚiterdirÚ#CompatibilityFiles.SpecPath.iterdir8   s<   ø€ Ø—<—<�<Ü˜B“x�Üô à ŸL™L×1Ñ1Ô3óó ð r   c                ó   € R # ©FrH   rK   s   &r   Úis_fileÚ#CompatibilityFiles.SpecPath.is_file@   ó   € Ùr   c                ó�   € V P                   '       g   \        P                  V4      # \        P                  V P                   V4      # r	   )r>   r,   Ú
OrphanPathrC   ©r   Úothers   &&r   ÚjoinpathÚ$CompatibilityFiles.SpecPath.joinpathE   s3   € Ø—<—<�<Ü)×4Ñ4°UÓ;Ð;Ü%×/Ñ/°·±¸eÓDÐDr   c                ó.   € V P                   P                  # r	   )r=   r   rK   s   &r   r   Ú CompatibilityFiles.SpecPath.nameJ   s   € à—:‘:—?‘?Ð"r   c                óT   € \        V P                  P                  R 4      V.VO5/ VB # r	   )r8   r>   Úopen_resource©r   r5   r6   r7   s   &&*,r   ÚopenÚ CompatibilityFiles.SpecPath.openN   s)   € Ü˜tŸ|™|×9Ñ9¸$Ó?ÀÐWÈÒWÐPVÑWÐWr   )r>   r=   N©r1   ©r   r   r   r   r    r   rL   rP   Úis_dirrW   Úpropertyr   r^   r!   r"   r#   s   @r   ÚSpecPathr;   .   sF   ø‡ € ñ	ò
	"ò	ò	ð ˆò	Eð
 
ñ	#ó 
ð	#÷	Xò 	Xr   rd   c                   ó\   a € ] tR t^Qt o RtR tR tR tR tR t	]
R 4       tRR ltR	tV tR
# )ÚCompatibilityFiles.ChildPathz_
Path tied to a resource reader child.
Can be read but doesn't expose any meaningful children.
c                ó   € Wn         W n        R # r	   )r>   Ú_name)r   r?   r   s   &&&r   r   Ú%CompatibilityFiles.ChildPath.__init__W   s   € Ø!ŒLØŽJr   c                ó   € \        R4      # ©NrH   ©rI   rK   s   &r   rL   Ú$CompatibilityFiles.ChildPath.iterdir[   ó   € Ü˜“8ˆOr   c                óL   € V P                   P                  V P                  4      # r	   )r>   Úis_resourcer   rK   s   &r   rP   Ú$CompatibilityFiles.ChildPath.is_file^   s   € Ø—<‘<×+Ñ+¨D¯I©IÓ6Ð6r   c                ó,   € V P                  4       '       * # r	   )rP   rK   s   &r   rb   Ú#CompatibilityFiles.ChildPath.is_dira   s   € Ø—|‘|“~Ô%Ð%r   c                óB   € \         P                  V P                  V4      # r	   )r,   rT   r   rU   s   &&r   rW   Ú%CompatibilityFiles.ChildPath.joinpathd   s   € Ü%×0Ñ0°·±¸EÓBÐBr   c                ó   € V P                   # r	   )rh   rK   s   &r   r   Ú!CompatibilityFiles.ChildPath.nameg   s   € à—:‘:Ðr   c                óh   € \        V P                  P                  V P                  4      V.VO5/ VB # r	   )r8   r>   r\   r   r]   s   &&*,r   r^   Ú!CompatibilityFiles.ChildPath.openk   s7   € ÜØ—‘×*Ñ*¨4¯9©9Ó5°tðØ>BòØFLñð r   )rh   r>   Nr`   ra   r#   s   @r   rC   rf   Q   sB   ø‡ € ñ	ò
	ò	ò	7ò	&ò	Cð 
ñ	ó 
ð	÷	ò 	r   rC   c                   óZ   a € ] tR t^pt o RtR tR tR t]tR t	]
R 4       tR
R ltRtV tR	# )ÚCompatibilityFiles.OrphanPathzv
Orphan path, not tied to a module spec or resource reader.
Can't be read and doesn't expose any meaningful children.
c                óH   € \        V4      ^8  d   \        R4      hWn        R# )é   z/Need at least one path part to construct a pathN)Úlenr3   Ú_path)r   Ú
path_partss   &*r   r   Ú&CompatibilityFiles.OrphanPath.__init__v   s   € Ü�:‹ Ô"Ü Ð!RÓSÐSØ#ŽJr   c                ó   € \        R4      # rk   rl   rK   s   &r   rL   Ú%CompatibilityFiles.OrphanPath.iterdir{   rn   r   c                ó   € R # rO   rH   rK   s   &r   rP   Ú%CompatibilityFiles.OrphanPath.is_file~   rR   r   c                óH   € \         P                  ! . V P                  OVN5!  # r	   )r,   rT   r   rU   s   &&r   rW   Ú&CompatibilityFiles.OrphanPath.joinpathƒ   s   € Ü%×0Ò0ÐD°$·*±*ÐD¸eÓDÐDr   c                ó(   € V P                   R,          # )r}   éÿÿÿÿ©r   rK   s   &r   r   Ú"CompatibilityFiles.OrphanPath.name†   s   € à—:‘:˜b•>Ð!r   c                ó   € \        R 4      h)zCan't open orphan path)ÚFileNotFoundErrorr]   s   &&*,r   r^   Ú"CompatibilityFiles.OrphanPath.openŠ   s   € Ü#Ð$<Ó=Ð=r   rŠ   Nr`   ra   r#   s   @r   rT   r{   p   sD   ø‡ € ñ	ò
	$ò
	ò	ð ˆò	Eð 
ñ	"ó 
ð	"÷	>ò 	>r   rT   c                ó   € Wn         R # r	   r   r(   s   &&r   r   ÚCompatibilityFiles.__init__�   r*   r   c                óà   € \        \        4      ;_uu_ 4        V P                  P                  P	                  V P                  P
                  4      uuR R R 4       #   + '       g   i     R # ; ir	   )r   ÚAttributeErrorr   r
   r.   r   rK   s   &r   r>   ÚCompatibilityFiles._reader�   s<   € ä”n×%Õ%Ø—9‘9×#Ñ#×7Ñ7¸¿	¹	¿¹ÓG÷ &×%×%Ó%ús   ˜9AÁA-	c                óF   € V P                   p\        VR4      '       d   V# T # )z2
Return the native reader if it supports files().
Úfiles)r>   Úhasattr)r   r?   s   & r   r-   ÚCompatibilityFiles._native•   s$   € ð —‘ˆÜ  ¨×1Ò1ˆvÐ;°tÐ;r   c                ó.   € \        V P                  V4      # r	   )r   r>   )r   Úattrs   &&r   r   ÚCompatibilityFiles.__getattr__œ   s   € Ü�t—|‘| TÓ*Ð*r   c                óV   € \         P                  V P                  V P                  4      # r	   )r,   rd   r   r>   rK   s   &r   r•   ÚCompatibilityFiles.filesŸ   s   € Ü!×*Ñ*¨4¯9©9°d·l±lÓCÐCr   r   N)r   r   r   r   r    r   ÚTraversablerd   rC   rT   r   rc   r>   r-   r   r•   r!   r"   r#   s   @r   r,   r,   (   sn   ø‡ € ñô
!X�3—?‘?ô !XôF�C—O‘Oô ô>>�S—_‘_ô >ò:ð ñHó ðHò<ò+÷Dð Dr   r,   c                ó6   € \        V P                  \        4      # )zT
Construct a package spec with traversable compatibility
on the spec/loader/reader.
)r   Ú__spec__r&   )Úpackages   &r   Ú	wrap_specr¡   £   s   € ô
 ˜W×-Ñ-Ô/IÓJÐJr   Nr`   )Ú
contextlibr   Úior   Ú r   r   r&   r8   r,   r¡   rH   r   r   Ú<module>r¥      s=   ðÝ Ý å ÷
(ñ 
(÷	7ñ 	7ôV÷xDñ xDôvKr   