+
    LV-jG\  ã                  óˆ  a € 0 t $ ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
HtHtHtHt ^ RIHt ^ RIHt ^ RIHt ^ RIHtHtHtHt ^ RIHt ]'       d   ^ RIt^ R	IHt ^ R
IHt R@t ]! R4      t!RAR R llt"RAR R llt#/ t$R]%R&   R R lt&R R lt'R R lt(RBR R llt)R R lt*R R lt+R R lt,R  R! lt-RCR" R# llt.R$ R% lt/R& R' lt0R( R) lt1R* R+ lt2R, R- lt3R. R/ lt4RDR0 R1 llt5R2 R3 lt6R4 R5 lt7]Pp                  R6 R7 l4       t9RER8 R9 llt:R: R; lt;]Pp                  RFR< R= ll4       t<R> t=R? t>R# )Gé    )ÚannotationsN)ÚCallableÚIterableÚIteratorÚSequence)Úpartial)Úmd5)Úversion)ÚIOÚTYPE_CHECKINGÚAnyÚTypeVar)Úurlsplit)Ú	TypeGuard)ÚAbstractFileSystemÚTc               ó$   € V ^8„  d   QhRRRRRR/# )é   ÚurlpathÚstrÚinherit_storage_optionsúdict[str, Any] | NoneÚreturnúdict[str, Any]© )Úformats   "Ú]/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/fsspec/utils.pyÚ__annotate__r      s)   € ÷ Rñ RØðRØ+@ðRàñRó    c                óZ  € \         P                  ! RV 4      '       g   \         P                  ! RV 4      f   RRRV /# \        V 4      pVP                  ;'       g    RpVP                  '       d)   RP                  VP                  VP                  .4      pMVP                  pVR8X  d9   \         P                  ! RV4      pV'       d   VP                  4       w  rdV RV 2pVR9   d   RVRV /# RVRV/pVP                  '       dÏ   VP                  P                  R	^4      R,          P                  R^4      ^ ,          VR
&   VR9   d   VR
,          VR,          ,           VR&   MVR
,          VR
&   VP                  '       d   VP                  VR&   VP                  '       d   VP                  VR&   VP                  '       d   VP                  VR&   VP                  '       d   VP                  VR&   VP                  '       d   VP                  VR&   V'       d   \        Wq4       V# )aO  Infer storage options from URL path and merge it with existing storage
options.

Parameters
----------
urlpath: str or unicode
    Either local absolute file path or URL (hdfs://namenode:8020/file.csv)
inherit_storage_options: dict (optional)
    Its contents will get merged with the inferred information from the
    given path

Returns
-------
Storage options dict.

Examples
--------
>>> infer_storage_options('/mnt/datasets/test.csv')  # doctest: +SKIP
{"protocol": "file", "path", "/mnt/datasets/test.csv"}
>>> infer_storage_options(
...     'hdfs://username:pwd@node:123/mnt/datasets/test.csv?q=1',
...     inherit_storage_options={'extra': 'value'},
... )  # doctest: +SKIP
{"protocol": "hdfs", "username": "username", "password": "pwd",
"host": "node", "port": 123, "path": "/mnt/datasets/test.csv",
"url_query": "q=1", "extra": "value"}
z^[a-zA-Z]:[\\/]z^[a-zA-Z0-9]+://ÚprotocolÚfileÚpathÚ#z^/([a-zA-Z])[:|]([\\/].*)$Ú:Ú@ÚhostÚportÚusernameÚpasswordÚ	url_queryÚurl_fragment)ÚhttpÚhttpséÿÿÿÿ)Ús3Ús3aÚgcsÚgs)ÚreÚmatchr   ÚschemeÚfragmentÚjoinr#   ÚgroupsÚnetlocÚrsplitr(   r)   r*   ÚqueryÚupdate_storage_options)r   r   Úparsed_pathr!   r#   Úwindows_pathÚdriveÚoptionss   &&      r   Úinfer_storage_optionsrB      s÷  € ô@ 	�ŠÐ# W×-Ò-Ü�8Š8Ð'¨Ó1Ò9à˜F F¨GÐ4Ð4ä˜7Ó#€KØ×!Ñ!×+Ð+ V€HØ××ÐØ�x‰x˜×)Ñ)¨;×+?Ñ+?Ð@ÓA‰à×ÑˆØ�6Ôô —x’xÐ =¸tÓDˆßØ&×-Ñ-Ó/‰KˆEØ�W˜A˜d˜VÐ$ˆDàÐ$Ô$à˜H f¨gÐ6Ð6à)¨8°V¸TÐB€Gà××Ðð &×,Ñ,×3Ñ3°C¸Ó;¸BÕ?×FÑFÀsÈAÓNÈqÕQˆ�‰àÐ1Ô1Ø% f�o°¸µÕ?ˆG�FŠOà% f�oˆG�F‰OØ××ÐØ)×.Ñ.ˆG�F‰OØ××ÐØ"-×"6Ñ"6ˆG�JÑØ××ÐØ"-×"6Ñ"6ˆG�JÑà××ÐØ*×0Ñ0ˆ�ÑØ××ÐØ"-×"6Ñ"6ˆ�ÑçÜ˜wÔ@à€Nr   c               ó$   € V ^8„  d   QhRRRRRR/# )r   rA   r   Ú	inheritedr   r   ÚNoner   )r   s   "r   r   r   r   s$   € ÷ ñ ØðØ(=ðà	ñr   c                óú   € V'       g   / p\        V 4      \        V4      ,          pV'       d=   V F6  pV P                  V4      VP                  V4      8w  g   K*  \        R V 24      h	  V P                  V4       R# )z9Collision between inferred and specified storage option:
N)ÚsetÚgetÚKeyErrorÚupdate)rA   rD   Ú
collisionsÚ	collisions   &&  r   r=   r=   r   so   € ÷ Øˆ	Ü�W“¤ I£Õ.€JßÛ#ˆIØ�{‰{˜9Ó%¨¯©°yÓ)AÖAÜð Ø )˜{ð,óð ñ $ð ‡N�N�9Ör   zdict[str, str]Úcompressionsc               ó    € V ^8„  d   QhRRRR/# )r   Úfilenamer   r   ú
str | Noner   )r   s   "r   r   r   †   s   € ÷ 
ñ 
 ð 
¨
ñ 
r   c                ó¼   € \         P                  P                  V 4      R,          P                  R4      P	                  4       pV\
        9   d   \
        V,          # R# )a	  Infer compression, if available, from filename.

Infer a named compression type, if registered and available, from filename
extension. This includes builtin (gz, bz2, zip) compressions, as well as
optional compressions. See fsspec.compression.register_compression.
Ú.Nr/   )Úosr#   ÚsplitextÚstripÚlowerrM   )rO   Ú	extensions   & r   Úinfer_compressionrX   †   sG   € ô —‘× Ñ  Ó*¨2Õ.×4Ñ4°SÓ9×?Ñ?ÓA€IØ”LÔ Ü˜IÕ&Ð&Ùr   c               ó    € V ^8„  d   QhRRRR/# )r   Úmax_intÚfloatr   zCallable[[int], str]r   )r   s   "r   r   r   “   s   € ÷ ñ  ð Ð+?ñ r   c                ó’   a€ V R,          p \        \        P                  ! \        P                  ! V 4      4      4      oR V3R llpV# )aU  Returns a function that receives a single integer
and returns it as a string padded by enough zero characters
to align with maximum possible integer

>>> name_f = build_name_function(57)

>>> name_f(7)
'07'
>>> name_f(31)
'31'
>>> build_name_function(1000)(42)
'0042'
>>> build_name_function(999)(42)
'042'
>>> build_name_function(0)(0)
'0'
g:Œ0âŽyE>c               ó    € V ^8„  d   QhRRRR/# )r   ÚiÚintr   r   r   )r   s   "r   r   Ú)build_name_function.<locals>.__annotate__ª   s   € ÷ (ñ (˜ð ( ñ (r   c                ó8   <€ \        V 4      P                  S4      # ©N)r   Úzfill)r^   Ú
pad_lengths   &€r   Úname_functionÚ*build_name_function.<locals>.name_functionª   s   ø€ Ü�1‹v�|‰|˜JÓ'Ð'r   )r_   ÚmathÚceilÚlog10)rZ   re   rd   s   & @r   Úbuild_name_functionrj   “   s<   ø€ ð& ˆt…O€Gä”T—Y’YœtŸzšz¨'Ó2Ó3Ó4€J÷(ð (ð Ðr   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	r   r"   ú	IO[bytes]Ú	delimiterÚbytesÚ	blocksizer_   r   Úboolr   )r   s   "r   r   r   °   s(   € ÷ .'ñ .'˜ð .'¨uð .'Àð .'Èñ .'r   c                óÆ  € V P                  4       ^ 8X  d   R# Rp V P                  V4      pV'       g   R# V'       d	   W4,           MTp W9   dZ   VP                  V4      pV P                  V P                  4       \	        V4      V,
          ,
          \	        V4      ,           4       R# \	        V4      V8  d   R#  V\	        V4      ) R pK²    \
        \        3 d     L$i ; i)a\  Seek current file to file start, file end, or byte after delimiter seq.

Seeks file to next chunk delimiter, where chunks are defined on file start,
a delimiting sequence, and file end. Use file.tell() to see location afterwards.
Note that file start is a valid split, so must be at offset > 0 to seek for
delimiter.

Parameters
----------
file: a file
delimiter: bytes
    a delimiter like ``b'\n'`` or message sentinel, matching file .read() type
blocksize: int
    Number of bytes to read from the file at once.


Returns
-------
Returns True if a delimiter was found, False if at file start or end.

FNT)ÚtellÚreadÚindexÚseekÚlenÚOSErrorÚ
ValueError)r"   rm   ro   ÚlastÚcurrentÚfullr^   s   &&&    r   Úseek_delimiterr|   °   sÄ   € ð. ‡y�yƒ{�aÔáð €DØ
Ø—)‘)˜IÓ&ˆßáß!%ˆtŽ~¨7ˆð		ØÔ Ø—J‘J˜yÓ)�Ø—	‘	˜$Ÿ)™)›+¬¨T«°Q­Õ7¼#¸i».ÕHÔIÙÜ�W“ 	Ô)áð *ð
 ”S˜“^�OÐ%Ð&Šøô œÐ$ô 	Ùð	ús   Á	AC Â(C ÃC ÃC c               ó0   € V ^8„  d   QhRRRRRRRRR	R
RR/# )r   Úfrl   Úoffsetr_   Úlengthú
int | Nonerm   zbytes | NoneÚsplit_beforerp   r   rn   r   )r   s   "r   r   r   á   sL   € ÷ Gñ GØðGàðGð ðGð ð	Gð
 ðGð ñGr   c                ó  € V'       dÒ   V P                  V4       \        WR4      pVf   V P                  4       # V P                  4       pW&V,
          ,          pV P                  Wb,           4       \        WR4      pV P                  4       pV'       d   V'       d   V\	        V4      ,          pV'       d   V'       d   V\	        V4      ,          pTpW†,
          pV P                  V4       Vf   Q hV P                  V4      p	V	# )a  Read a block of bytes from a file

Parameters
----------
f: File
    Open file
offset: int
    Byte offset to start read
length: int
    Number of bytes to read, read through end of file if None
delimiter: bytes (optional)
    Ensure reading starts and stops at delimiter bytestring
split_before: bool (optional)
    Start/stop read *before* delimiter bytestring.


If using the ``delimiter=`` keyword argument we ensure that the read
starts and stops at delimiter boundaries that follow the locations
``offset`` and ``offset + length``.  If ``offset`` is zero then we
start at zero, regardless of delimiter.  The bytestring returned WILL
include the terminating delimiter string.

Examples
--------

>>> from io import BytesIO  # doctest: +SKIP
>>> f = BytesIO(b'Alice, 100\nBob, 200\nCharlie, 300')  # doctest: +SKIP
>>> read_block(f, 0, 13)  # doctest: +SKIP
b'Alice, 100\nBo'

>>> read_block(f, 0, 13, delimiter=b'\n')  # doctest: +SKIP
b'Alice, 100\nBob, 200\n'

>>> read_block(f, 10, 10, delimiter=b'\n')  # doctest: +SKIP
b'Bob, 200\nCharlie, 300'
i   )ru   r|   rs   rr   rv   )
r~   r   r€   rm   r‚   Úfound_start_delimÚstartÚfound_end_delimÚendÚbs
   &&&&&     r   Ú
read_blockr‰   á   sË   € ÷V Ø	�‰ˆvŒÜ*¨1¸Ó?ÐØŠ>Ø—6‘6“8ˆOØ—‘“ˆØ˜&•.Õ ˆà	�‰ˆu�~ÔÜ(¨°uÓ=ˆØ�f‰f‹hˆ÷ §Ø”S˜“^Õ#ˆEçŸ|Ø”3�y“>Õ!ˆCàˆØ•ˆà‡F�Fˆ6„Nð ÒÐÐØ	�‰ˆv‹€AØ€Hr   c               ó$   € V ^8„  d   QhRRRRRR/# )r   Úargsr   Úkwargsr   r   r   )r   s   "r   r   r   +  s!   € ÷ ñ �Cð  3ð ¨3ñ r   c                 ó  € V'       d
   W3,          p  \        \        V 4      P                  4       4      pVP	                  4       #   \         d7    \        \        T 4      P                  4       RR7      p TP	                  4       # i ; i)zžDeterministic token

(modified from dask.base)

>>> tokenize([1, 2, '3'])
'9d71491b50023b06fc76928e6eddb952'

>>> tokenize('Hello') == tokenize('Hello')
True
F)Úusedforsecurity)r	   r   Úencoderx   Ú	hexdigest)r‹   rŒ   Úhs   *, r   Útokenizer’   +  sq   € ÷ Ø�	Õˆð;Ü”�D“	× Ñ Ó"Ó#ˆð �;‰;‹=Ðøô ô ;ä”�D“	× Ñ Ó"°EÔ:‰Ø�;‰;‹=Ðð;ús   “"A Á/BÂBc               ó    € V ^8„  d   QhRRRR/# )r   Úfilepathz%str | os.PathLike[str] | pathlib.Pathr   r   r   )r   s   "r   r   r   @  s   € ÷ ñ ÐBð Àsñ r   c                ó¶   € \        V \        4      '       d   V # \        V R4      '       d   V P                  4       # \        V R4      '       d   V P                  # V # )aú  Attempt to convert a path-like object to a string.

Parameters
----------
filepath: object to be converted

Returns
-------
filepath_str: maybe a string version of the object

Notes
-----
Objects supporting the fspath protocol are coerced according to its
__fspath__ method.

For backwards compatibility with older Python version, pathlib.Path
objects are specially coerced.

Any other object is passed through unchanged, which includes bytes,
strings, buffers, or anything else that's not even path-like.
Ú
__fspath__r#   )Ú
isinstancer   Úhasattrr–   r#   )r”   s   &r   Ústringify_pathr™   @  sN   € ô, �(œC× Ò ØˆÜ	�˜<×	(Ò	(Ø×"Ñ"Ó$Ð$Ü	�˜6×	"Ò	"Ø�}‰}Ðàˆr   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	r   ÚclszCallable[..., T]r‹   zSequence[Any]rŒ   r   r   r   r   )r   s   "r   r   r   `  s,   € ÷ ñ Ø	ðØ!.ðØ8Fðàñr   c                ó6   € V ! V/ VB pVP                  4        V# rb   )Ú_determine_worker)r›   r‹   rŒ   Úinsts   &&& r   Úmake_instancerŸ   `  s$   € ñ �Ð˜Ñ€DØ×ÑÔØ€Kr   c               ó    € V ^8„  d   QhRRRR/# )r   ÚpathsúIterable[str]r   r   r   )r   s   "r   r   r   h  s   € ÷ 
"ñ 
"˜ð 
"¨3ñ 
"r   c                óp  aa€ V  Uu. uF  qP                  R4      NK  	  upo\        R S 4       4      p^ p\        V4       FI  o\        ;QJ d     VV3R lS 4       F  '       d   K   RM	  RM! VV3R lS 4       4      pV'       d   KI   M	  SV,          oRP	                  S^ ,          RS 4      # u upi )z;For a list of paths, find the shortest prefix common to allÚ/c              3  ó8   "  € T F  p\        V4      x € K  	  R # 5irb   )rv   )Ú.0Úps   & r   Ú	<genexpr>Ú common_prefix.<locals>.<genexpr>k  s   é € Ð%™u˜!Œs�1�vˆv›uùó   ‚c              3  óV   <"  € T F  qS,          S^ ,          S,          8H  x € K   	  R# 5i)r   Nr   )r¦   r§   r^   Úpartss   & €€r   r¨   r©   n  s    øé € Ð5©u¨!�A•$˜% �( 1�+Ö%«uùs   ƒ&)FTN)ÚsplitÚminÚrangeÚallr8   )r¡   r§   Úlmaxr‡   r^   r¬   s   &   @@r   Úcommon_prefixr²   h  s‘   ù€ á#(Ó)¡5˜a�W‰W�SŽ\¡5Ñ)€EÜÑ%™uÓ%Ó%€DØ
€CÜ�4Ž[ˆß‹cÕ5©uÓ5�c�cŠcÕ5©uÓ5Ó5ˆß‰sÙñ ð ˆ…H€AØ�8‰8�E˜!•H˜R˜a�LÓ!Ð!ùò *s   ‡B3c          
     ó,   € V ^8„  d   QhRRRRRRRRRR/# )	r   r¡   ú	list[str]Úpath2zstr | list[str]Úexistsrp   Úflattenr   r   )r   s   "r   r   r   u  s:   € ÷ *ñ *Øð*àð*ð ð*ð ð	*ð
 ñ*r   c           	     ó”  € \        V\        4      '       Ed   VP                  R4      pV'       d:   V  Uu. uF+  pRP                  WP	                  R4      R,          34      NK-  	  ppV# \        V 4      pV'       d   VP                  R^4      ^ ,          pV'       g^   \        ;QJ d    R V  4       F  '       d   K   RM	  RM! R V  4       4      '       d$   V  Uu. uF  pRP                  W.4      NK  	  ppV# V  Uu. uF  qDP                  WQ^4      NK  	  pp V# \        V 4      \        V4      8X  g   Q hV# u upi u upi u upi )aE  In bulk file operations, construct a new file tree from a list of files

Parameters
----------
paths: list of str
    The input file tree
path2: str or list of str
    Root to construct the new list in. If this is already a list of str, we just
    assert it has the right number of elements.
exists: bool (optional)
    For a str destination, it is already exists (and is a dir), files should
    end up inside.
flatten: bool (optional)
    Whether to flatten the input directory tree structure so that the output files
    are in the same directory.

Returns
-------
list of str
r¤   c              3  óL   "  € T F  qP                  R 4      '       * x € K  	  R# 5i)r¤   N)Ú
startswith©r¦   Úss   & r   r¨   Úother_paths.<locals>.<genexpr>™  s   é € ÐC¹U¸§,¡,¨sÓ"3×3Ñ3»Uùs   ‚"$FTr/   )
r—   r   Úrstripr8   r­   r²   r;   r°   Úreplacerv   )r¡   rµ   r¶   r·   r§   Úcps   &&&&  r   Úother_pathsrÁ   u  s  € ô6 �%œ×ÓØ—‘˜SÓ!ˆçÙBGÓHÁ%¸Q�S—X‘X˜u§g¡g¨c£l°2Õ&6Ð7Ö8Á%ˆEÐHð €Lô ˜uÓ%ˆBßØ—Y‘Y˜s AÓ& qÕ)�ßŸ#›#ÑC¹UÓCŸ#Ÿ#š#ÑC¹UÓC×CÒCÙ7<Ó=±u°!˜Ÿ™ 5 *Ö-±u�Ð=ð
 €Lñ ;@Ó@¹%°QŸ™ 2¨aÖ0¹%�Ð@�ð €Lô �5‹zœS ›ZÔ'Ð'Ð'Ø€Lùò Iùò >ùâ@s   µ1D;ÃE Ã?Ec               ó    € V ^8„  d   QhRRRR/# )r   Úobjr   r   rp   r   )r   s   "r   r   r   ¢  s   € ÷ *ñ *�cð *˜dñ *r   c                ó"   € \        V \        4      # rb   )r—   ÚBaseException©rÃ   s   &r   Úis_exceptionrÇ   ¢  s   € Ü�cœ=Ó)Ð)r   c               ó    € V ^8„  d   QhRRRR/# )r   r~   r   r   zTypeGuard[IO[bytes]]r   )r   s   "r   r   r   ¦  s   € ÷ Gñ G�#ð GÐ.ñ Gr   c                óx   a € \         ;QJ d    V 3R  lR 4       F  '       d   K   R# 	  R# ! V 3R  lR 4       4      # )c              3  ó<   <"  € T F  p\        SV4      x € K  	  R # 5irb   )r˜   )r¦   Úattrr~   s   & €r   r¨   Úisfilelike.<locals>.<genexpr>§  s   øé € ÐFÑ,E DŒw�q˜$×ÐÓ,Eùs   ƒFT)rs   Úcloserr   )r°   )r~   s   fr   Ú
isfilelikerÎ   ¦  s.   ø€ ß‹3ÔFÑ,EÓF�3Œ3ÐFŠ3ÐFˆ3ÔFÑ,EÓFÓFÐFr   c               ó    € V ^8„  d   QhRRRR/# ©r   Úurlr   r   r   )r   s   "r   r   r   ª  s   € ÷ ñ �cð ˜cñ r   c                ó€   € \        V 4      p \        P                  ! R V ^R7      p\        V4      ^8”  d
   V^ ,          # R# )z(\:\:|\://))Úmaxsplitr"   )r™   r4   r­   rv   )rÑ   r¬   s   & r   Úget_protocolrÔ   ª  s5   € Ü
˜Ó
€CÜ�HŠH�^ S°1Ô5€EÜ
ˆ5ƒz�A„~Ø�Q�xˆÙr   c               ó    € V ^8„  d   QhRRRR/# rÐ   r   )r   s   "r   r   r   ²  s   € ÷ ñ ˜Cð  Cñ r   c                ór   € \        V 4      p V P                  R ^4      p\        V4      ^8”  d
   VR,          # R# )rR   Ú r/   )r™   r;   rv   )rÑ   Ú	ext_partss   & r   Úget_file_extensionrÙ   ²  s5   € Ü
˜Ó
€CØ—
‘
˜3 Ó"€IÜ
ˆ9ƒ~˜ÔØ˜�}ÐÙr   c               ó    € V ^8„  d   QhRRRR/# )r   r#   r   r   rp   r   )r   s   "r   r   r   º  s   € ÷ ñ �sð ˜tñ r   c                óx   € ^ RI Hp  \        V! \        V 4      4      RR4      #   \        \
        3 d     R# i ; i)z*Can the given URL be used with open_local?)Úget_filesystem_classÚ
local_fileF)ÚfsspecrÜ   ÚgetattrrÔ   rx   ÚImportError)r#   rÜ   s   & r   Úcan_be_localrá   º  s;   € å+ðÜÑ+¬L¸Ó,>Ó?ÀÈuÓUÐUøÜœÐ$ô âðús   ˆ$ ¤9¸9c               ó    € V ^8„  d   QhRRRR/# )r   Únamer   r   rP   r   )r   s   "r   r   r   Å  s   € ÷ ñ ¨Sð °Zñ r   c                ó0  € V \         P                  9   d6   \         P                  V ,          p\        VR4      '       d   VP                  #  \	        V 4      #     M; i ^ RIpTP                  T 4      pTP                  #   \        \        3 d     R# i ; i)zþFor given package name, try to find the version without importing it

Import and package.__version__ is still the backup here, so an import
*might* happen.

Returns either the version string, or None if the package
or the version was not readily  found.
Ú__version__N)	ÚsysÚmodulesr˜   rå   r
   Ú	importlibÚimport_modulerà   ÚAttributeError)rã   Úmodrè   s   &  r   Ú"get_package_version_without_importrì   Å  s‡   € ð Œs�{‰{ÔÜ�k‰k˜$ÕˆÜ�3˜×&Ò&Ø—?‘?Ð"ðÜ�t‹}ÐøðÙúðÛà×%Ñ% dÓ+ˆØ�‰ÐøÜœÐ(ô Úðús   Á
A ÁAÁ B  Â BÂBc          
     ó,   € V ^8„  d   QhRRRRRRRRR	R
/# )r   Úloggerzlogging.Logger | NoneÚlogger_namerP   Úlevelr   Úclearrp   r   zlogging.Loggerr   )r   s   "r   r   r   ß  s:   € ÷ ñ Ø!ðàðð ðð ð	ð
 ñr   c                ól  € V f   Vf   \        R4      hT ;'       g    \        P                  ! V4      p \        P                  ! 4       p\        P                  ! R4      pVP                  V4       V'       d   V P                  P                  4        V P                  V4       V P                  V4       V # )Nz+Provide either logger object or logger namezD%(asctime)s - %(name)s - %(levelname)s - %(funcName)s -- %(message)s)
rx   ÚloggingÚ	getLoggerÚStreamHandlerÚ	FormatterÚsetFormatterÚhandlersrñ   Ú
addHandlerÚsetLevel)rî   rï   rð   rñ   ÚhandleÚ	formatters   &&&&  r   Úsetup_loggingrý   ß  s•   € ð ‚~˜+Ò-ÜÐFÓGÐGØ×5Ð5”w×(Ò(¨Ó5€FÜ×"Ò"Ó$€FÜ×!Ò!ØNó€Ið ×Ñ˜	Ô"ßØ�‰×ÑÔØ
×Ñ�fÔØ
‡O�O�EÔØ€Mr   c               ó$   € V ^8„  d   QhRRRRRR/# )r   rã   r   Úfsr   r   r   )r   s   "r   r   r   ô  s"   € ÷ %ñ %˜Cð %Ð%7ð %¸Cñ %r   c                ó$   € VP                  V 4      # rb   )Úunstrip_protocol)rã   rÿ   s   &&r   Ú_unstrip_protocolr  ô  s   € Ø×Ñ˜tÓ$Ð$r   c               ó$   € V ^8„  d   QhRRRRRR/# )r   Úorigin_namer   Úmethodsr¢   r   zCallable[[type[T]], type[T]]r   )r   s   "r   r   r   ø  s$   € ÷ ñ ØðØ,ðà!ñr   c                ó2   a aa€ R V 3R lloR VV3R llpV# )ziMirror attributes and methods from the given
origin_name attribute of the instance to the
decorated classc               ó$   € V ^8„  d   QhRRRRRR/# )r   Úmethodr   Úselfr   r   r   )r   s   "r   r   Ú!mirror_from.<locals>.__annotate__ÿ  s!   € ÷ 'ñ '˜cð '¨ð '°ñ 'r   c                ó2   <€ \        VS4      p\        W 4      # rb   )rß   )r  r	  Úoriginr  s   && €r   Úorigin_getterÚ"mirror_from.<locals>.origin_getterÿ  s   ø€ Ü˜˜{Ó+ˆÜ�vÓ&Ð&r   c               ó    € V ^8„  d   QhRRRR/# )r   r›   ztype[T]r   r   )r   s   "r   r   r
    s   € ÷ ñ �Wð  ñ r   c                ó\   <€ S F$  p\        SV4      p\        W\        V4      4       K&  	  V # rb   )r   ÚsetattrÚproperty)r›   r  Úwrapped_methodr  r  s   &  €€r   ÚwrapperÚmirror_from.<locals>.wrapper  s/   ø€ ÛˆFÜ$ ]°FÓ;ˆNÜ�C¤¨.Ó!9Ö:ñ ð ˆ
r   r   )r  r  r  r  s   ff @r   Úmirror_fromr  ø  s   ú€ ÷'ð '÷ñ ð €Nr   c               ó    € V ^8„  d   QhRRRR/# )r   rÃ   r   r   zIterator[T]r   )r   s   "r   r   r     s   € ÷ ñ �Qð ˜;ñ r   c              #  ó   "  € V x € R # 5irb   r   rÆ   s   &r   Únullcontextr    s
   é € à
„Iùs   ‚	c               ó4   € V ^8„  d   QhRRRRRRRRRR	R
RRR/# )r   r¡   r´   Ústartszlist[int] | intÚendsÚmax_gapr_   Ú	max_blockr�   Úsortrp   r   z&tuple[list[str], list[int], list[int]]r   )r   s   "r   r   r     sW   € ÷ Mñ MØðMàðMð ðMð ð	Mð
 ðMð ðMð ,ñMr   c                ó¦  aaaa€ \        V \        4      '       g   \        h\        V\        4      '       g   V.\        V 4      ,          p\        V\        4      '       g   V.\        V 4      ,          p\        V4      \        V 4      8w  g   \        V4      \        V 4      8w  d   \        h\        V4      ^8:  d   WV3# V Uu. uF  qf;'       g    ^ NK  	  ppV'       d'   R \        \        \        WV4      4      !   4       w  rp. p\        \        WV4      4       F‰  w  ow  ooo\        ;QJ d5    VVVV3R l\        \        WV4      4       4       F  '       g   K   RM*	  RM&! VVVV3R l\        \        WV4      4       4       4      '       g   Kx  VP                  S4       K‹  	  \        V 4       UU	u. uF  w  r‰W‡9  g   K  V	NK  	  p pp	\        V4       UUu. uF  w  r†W‡9  g   K  VNK  	  ppp\        V4       UU
u. uF  w  rŠW‡9  g   K  V
NK  	  ppp
V '       Ed   V R,          pVR,          pVR,          p\        ^\        V 4      4       FÚ  oV S,          V S^,
          ,          8X  d   VR,          f   K,  V S,          V S^,
          ,          8w  g=   VS,          VR,          ,
          V8”  g!   Veg   VS,          VR,          ,
          V8”  dK   VP                  V S,          4       VP                  VS,          4       VP                  VS,          4       KÎ  VS,          VR&   KÜ  	  W¼V3# WV3# u upi u up	pi u uppi u up
pi )ae  Merge adjacent byte-offset ranges when the inter-range
gap is <= `max_gap`, and when the merged byte range does not
exceed `max_block` (if specified). By default, this function
will re-order the input paths and byte ranges to ensure sorted
order. If the user can guarantee that the inputs are already
sorted, passing `sort=False` will skip the re-ordering.
c              3  ó8   "  € T F  p\        V4      x € K  	  R # 5irb   )Úlist)r¦   Úvs   & r   r¨   Ú&merge_offset_ranges.<locals>.<genexpr>1  s!   é € ð 
ñ�ô ��GˆGóùrª   c              3  ó    <"  € T FC  w  pw  r#pVR J;'       d-    VS8H  ;'       d     SV8¬  ;'       d    SV8*  ;'       d    SV8g  x € KE  	  R # 5irb   r   )	r¦   Úi2r§   r¼   Úer‡   r^   r#   r…   s	   &    €€€€r   r¨   r$  ;  sW   øé € ð 
á!D‘�‘I�Q˜1ð �TˆM×OÐO˜a 4™i×OÐO¨E°Q©J×OÐO¸3À!¹8×OÐOÈÈRÉÔOÛ!Dùs   ƒA™A¦A³AÁ ATF:Né   Nr/   )r—   r"  Ú	TypeErrorrv   rx   ÚzipÚsortedÚ	enumerateÚanyÚappendr¯   )r¡   r  r  r  r  r  r¼   Úremover^   r§   r'  Ú	new_pathsÚ
new_startsÚnew_endsr‡   r#   r…   s   &&&&&&  `     @@@r   Úmerge_offset_rangesr3    sÉ  û€ ô  �eœT×"Ò"ÜˆÜ�fœd×#Ò#Ø�œC ›JÕ&ˆÜ�dœD×!Ò!Øˆvœ˜E›
Õ"ˆÜ
ˆ6ƒ{”c˜%“jÔ ¤C¨£I´°U³Ô$;ÜÐô ˆ6ƒ{�aÔØ˜dÐ"Ð"á$Ó%™f˜�fˆf�1Šf™f€FÐ%çñ
äÜÜ˜ tÓ,óòó
Ñˆ�tð €FÜ!*¬3¨u¸dÓ+CÖ!DÑˆÑˆD�%˜ß‹3÷ 
ä!*¬3¨u¸dÓ+CÔ!Dó
�3�3Š3÷ 
ä!*¬3¨u¸dÓ+CÔ!Dó
÷ 
ô 
ð �M‰M˜!Öñ "Eô % UÔ+Ô?Ñ+‘4�1¨q©�QˆQÑ+€EÑ?Ü% fÔ-ÔAÑ-‘D�A°±�aˆaÑ-€FÑAÜ# Dœ/Ô=™/‘$�!¨Q©_�AˆA™/€DÑ=ç€uð ˜"•Iˆ	Ø˜B•Zˆ
Ø˜•8ˆÜ�qœ#˜e›*Ö%ˆAØ�Q�x˜5  Q¥�<Ô'¨H°R­LÒ,@Ùà�a•˜E ! a¥%�LÔ(Ø˜A•Y ¨"¥Õ-°Ô8ØÒ)¨t°A­w¸ÀB½Õ/GÈ9Ô.Tð × Ñ   q¥Ô*Ø×!Ñ! &¨¥)Ô,Ø—‘  Q¥Ö(ð  $ A�w�˜“ñ! &ð"  hÐ.Ð.ð ˜$ÐÐùòa &ùó$ @ùÛAùÛ=s0   ÃL<ÃL<Æ9
MÇMÇ
MÇ.MÈ
MÈMc               ó    € V ^8„  d   QhRRRR/# )r   Úfilelikerl   r   r_   r   )r   s   "r   r   r   a  s   € ÷ ñ ˜	ð  cñ r   c                ó–   € V P                  4       p V P                  ^ ^4      V P                  V4       #   T P                  T4       i ; i)z+Find length of any open read-mode file-like)rr   ru   )r5  Úposs   & r   Ú	file_sizer8  a  s9   € à
�-‰-‹/€CðØ�}‰}˜Q Ó"à�‰�cÕøˆ�‰�cÕús	   ’5 µAc               ó    € V ^8„  d   QhRRRR/# )r   r#   r   Úmoder   )r   s   "r   r   r   k  s   € ÷ ñ �sð  #ñ r   c              #  ó   "  € \         P                  ! \        P                  P	                  V 4      \        P                  P                  V 4      R,           R7      w  r# \        W!4      ;_uu_ 4       pVx € RRR4       \        P                  ! W04       R#   + '       g   i     L(; i  \         dW    \        P                  ! \        4      ;_uu_ 4        \        P                  ! T4       RRR4       h   + '       g   i     h ; ii ; i5i)z™
A context manager that opens a temporary file next to `path` and, on exit,
replaces `path` with the temporary file, thereby updating `path`
atomically.
Ú-)ÚdirÚprefixN)ÚtempfileÚmkstemprS   r#   ÚdirnameÚbasenameÚopenr¿   rÅ   Ú
contextlibÚsuppressÚFileNotFoundErrorÚunlink)r#   r:  ÚfdÚfnÚfps   &&   r   Úatomic_writerK  j  s­   é € ô ×ÒÜ�G‰G�O‰O˜DÓ!¬"¯'©'×*:Ñ*:¸4Ó*@À3Õ*Fô�F€BðÜ�"�^Œ^˜rØŠH÷ ô 	�
Š
�2Ö÷ �^ûäô Ü× Ò Ô!2×3Õ3Ü�IŠI�bŒM÷ 4à÷ 4Ö3àúðüsN   ‚ADÁB* Á2BÁ7B* Á?DÂB'	Â"B* Â*-DÃC7Ã.	DÃ7DÄ	DÄDc                ó¸  € . pVP                   p^ \        V 4      reWV8  Ed±   W,          pV^,           pVR8X  d"   V'       d   VR,          VJd   V! V4       K>  K@  VR8X  d   V! V4       KQ  VR8X  Ed@   TpW†8  d   W,          R8X  d
   V^,           pW†8  d   W,          R8X  d
   V^,           pW†8  d   W,          R8w  d   V^,           pK  W†8¼  d   V! R4       KÁ  WV p	RV	9  d   V	P                  RR	4      p	EM-. p
W,          R8X  d
   V^,           MV^,           p V P                  RW¸4      pV^ 8  d   M'V
P                  WV 4       V^,           pV^,           pKB  WV pV'       d   V
P                  V4       MV
R;;,          R,          uu&   \	        \        V
4      ^,
          ^ R4       F^  pW«^,
          ,          R,          W«,          ^ ,          8”  g   K-  W«^,
          ,          R
R W«,          R,          ,           W«^,
          &   W« K`  	  RP                  R V
 4       4      p	\        P                  ! RRV	4      p	V^,           pV	'       g   V! R4       EKA  V	R8X  d   V! R4       EKS  V	^ ,          R8X  d   RV	R,          ,           p	MV	^ ,          R9   d
   RV	,           p	V! RV	 R24       EK˜  V! \        P                  ! V4      4       EK·  WV8X  g   Q hV# )r   Ú*Ú?Ú[Ú!Ú]z\[r<  Ú\ú\\N:r(  NNc              3  ód   "  € T F&  qP                  R R4      P                  RR4      x € K(  	  R# 5i)rR  rS  r<  z\-N)r¿   r»   s   & r   r¨   Ú_translate.<locals>.<genexpr>±  s,   é € ð %ÙLRÀqŸ	™	 $¨Ó.×6Ñ6°s¸E×BÐBËFùs   ‚.0z([&~|])z\\\1z(?!)rR   Ú^r/   )rV  rO  )	r.  rv   r¿   Úfindr¯   r8   r4   ÚsubÚescape)ÚpatÚSTARÚQUESTION_MARKÚresÚaddr^   ÚnÚcÚjÚstuffÚchunksÚkÚchunks   &&&          r   Ú
_translaterf    se  € à€CØ
�*‰*€CØŒc�#‹h€qØ
�%Ø�FˆØ��EˆØ�Œ8ç˜C �G¨4Ó/Ù�D–	ñ 0à�#ŒXÙ�ÖØ�#�XØˆAØŒu˜� 3œØ˜•E�ØŒu˜� 3œØ˜•E�Ø”%˜C�F cœMØ˜•E’ØŒvÙ�E–
à˜a˜�Ø˜eÔ#Ø!ŸM™M¨$°Ó6’Eà�FØ!$¥¨3¤˜˜Až°A¸µE�AØØŸH™H S¨!Ó/˜Ø˜qœ5Ø!ØŸ™ c¨A hÔ/Ø �E˜Ø �EšØ !˜H�EßØŸ™ eÕ,à˜rŸ
 cÕ)›
ä"¤3 v£;°¥?°A°rÖ:˜Ø! a¥%�=¨Õ,¨v­y¸­|Ö;Ø,2°qµ5­M¸#¸2Ð,>ÀÅÈ2ÅÕ,N˜F q¥5™MØ &¢	ñ ;ð  ŸH™Hñ %ÙLRó%ó �Eô Ÿš˜z¨7°EÓ:�Ø˜•E�ßá˜—KØ˜c”\á˜—Hà˜Q•x 3”Ø # e¨B¥i¥™Ø˜q� ZÔ/Ø $ u¥˜Ù˜!˜E˜7 !˜×%á”—	’	˜!“×ØŒ6€Mˆ6Ø€Jr   c                ór  € \         P                  P                  '       d;   \         P                  P                  \         P                  P                  ,           pM\         P                  P                  pRP	                  \        \        P                  V4      4      p\        V4      ^8”  d   RV R2MTpRV R2pV R2pV V 2pRV R2pRp. p	\        P                  ! W04      p
\        V
4      ^,
          p\        V
4       Fš  w  rÍVR	8X  d   T	P                  WË8  d   TMT4       K'  VR
8X  d   T	P                  WË8  d   TMT4       KI  R
V9   d   \        R4      hV'       d   V	P                  \        WÔ R	2V4      4       WË8  g   K‰  V	P                  V4       Kœ  	  RP	                  V	4      pRV R2# )zBTranslate a pathname with shell wildcards to a regular expression.r×   rO  rQ  z[^Ú+z(?:.+z)?z.*rM  z**z:Invalid pattern: '**' can only be an entire path componentz(?s:z)\Z)rS   r#   ÚaltsepÚsepr8   Úmapr4   rY  rv   r­   r,  r.  rx   Úextendrf  )rZ  ÚsepsÚescaped_sepsÚany_sepÚnot_sepÚone_last_segmentÚone_segmentÚany_segmentsÚany_last_segmentsÚresultsr¬   Úlast_part_idxÚidxÚpartr]  s   &              r   Úglob_translatery  É  s{  € ô
 
‡w�w‡~‡~€~Ü�w‰w�{‰{œRŸW™WŸ^™^Õ+‰ä�w‰w�{‰{ˆØ—7‘7œ3œrŸy™y¨$Ó/Ó0€LÜ%(¨£Y°¤]��,�˜qÑ!¸€GØ�<�. Ð"€GØ!˜ !�}ÐØ%Ð& w iÐ0€KØ˜7˜) 2Ð&€LØÐØ€GÜ�HŠH�WÓ"€EÜ˜“J •N€MÜ˜uÖ%‰	ˆØ�3Œ;Ø�N‰N¨#Ô*=™;ÐCSÔTÙØ�4Œ<Ø�N‰N¨3Ô+>™<ÐDUÔVÙØ�TŒ\ÜØLóð ÷ Ø�N‰Nœ: d¨i°q¨M¸7ÓCÔDØÖØ�N‰N˜7Ö#ñ &ð �'‰'�'Ó
€CØ�3�%�sÐÐr   i  P rb   )NF)FF)NNÚDEBUGT)r   NT)Úwb)?Ú__conditional_annotations__Ú
__future__r   rD  ró   rg   rS   r4   ræ   r?  Úcollections.abcr   r   r   r   Ú	functoolsr   Úhashlibr	   Úimportlib.metadatar
   Útypingr   r   r   r   Úurllib.parser   Úpathlibr   Úfsspec.specr   ÚDEFAULT_BLOCK_SIZEr   rB   r=   rM   Ú__annotations__rX   rj   r|   r‰   r’   r™   rŸ   r²   rÁ   rÇ   rÎ   rÔ   rÙ   rá   rì   rý   r  r  Úcontextmanagerr  r3  r8  rK  rf  ry  )r|  s   @r   Ú<module>r‰     s  øðß "Ð "ã Û Û Û 	Û 	Û 
Û ß BÓ BÝ Ý Ý &ß 2Ó 2Ý !çÛÝ å.ð Ð áˆCƒL€÷R÷jð"  "€ˆnÓ !õ
õõ:.'÷bGõTõ*õ@õ
"÷*õZ*õGõõõõ÷4õ*%õð( ×Ñôó ð÷Mõ`ð ×Ñöó ðò(GôT#r   