+
    É&j[  ã                   óD   € ^ RI t ^ RIt^ RIHt ^ RIHt  ! R R]4      tR# )é    N)Úunquote)ÚAbstractFileSystemc                   ót   a a€ ] tR t^t oRtRtV 3R ltR
R ltR tRR lt	]
RV3R lR ll4       tR	tVtV ;t# )ÚDataFileSystemzàA handy decoder for data-URLs

Example
-------
>>> with fsspec.open("data:,Hello%2C%20World%21") as f:
...     print(f.read())
b"Hello, World!"

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs
Údatac                ó(   <€ \         SV `  ! R/ VB  R# )z!No parameters for this filesystemN© )ÚsuperÚ__init__)ÚselfÚkwargsÚ	__class__s   &,€Ús/Users/jameslopez/projects/CWCArchive/cwc-podcast/.venv/lib/python3.14/site-packages/fsspec/implementations/data.pyr   ÚDataFileSystem.__init__   s   ø€ ä‰ÒÑ"˜6Ô"ó    c                ó¾   € VP                  R ^4      w  rVVP                  R4      '       d   \        P                  ! V4      W# # \	        V4      P                  4       W# # )Ú,Úbase64)ÚsplitÚendswithr   Ú	b64decoder   Úencode)r   ÚpathÚstartÚendr   Úprefr   s   &&&&,  r   Úcat_fileÚDataFileSystem.cat_file   sQ   € Ø—Z‘Z  QÓ'‰
ˆØ=‰=˜×"Ò"Ü×#Ò# DÓ)¨%Ð4Ð4Üt‹}×#Ñ#Ó% eÐ0Ð0r   c                óÒ   € VP                  R ^4      w  r4V P                  V4      pVP                  R^4      ^,          P                  R^4      ^ ,          pRVR\        V4      RRRV/# )r   Ú:Ú;ÚnameÚsizeÚtypeÚfileÚmimetype)r   r   Úlen)r   r   r   r   r"   r   Úmimes   &&,    r   ÚinfoÚDataFileSystem.info    sd   € Ø—Z‘Z  QÓ'‰
ˆØ}‰}˜TÓ"ˆØz‰z˜#˜qÓ! !Õ$×*Ñ*¨3°Ó2°1Õ5ˆØ˜˜f¤c¨$£i°¸ÀÈTÐRÐRr   c                óp   € R V9  d   \        R4      h\        P                  ! V P                  V4      4      # )ÚrzRead only filesystem)Ú
ValueErrorÚioÚBytesIOr   )r   r   ÚmodeÚ
block_sizeÚ
autocommitÚcache_optionsr   s   &&&&&&,r   Ú_openÚDataFileSystem._open&   s/   € ð dŒ?ÜÐ3Ó4Ð4ÜzŠz˜$Ÿ-™-¨Ó-Ó.Ð.r   c                ó4   <€ V ^8„  d   QhRS[ RS[R,          /# )é   r   r(   N)ÚbytesÚstr)ÚformatÚ__classdict__s   "€r   Ú__annotate__ÚDataFileSystem.__annotate__4   s#   ø€ ÷ Mñ M‘Uð M¡#¨¥*ñ Mr   c                ój   € RT;'       g    R R\         P                  ! V 4      P                  4        2# )zvFormat the given data into data-URL syntax

This version always base64 encodes, even when the data is ascii/url-safe.
zdata:Ú z;base64,)r   Ú	b64encodeÚdecode)r   r(   s   &&r   r   ÚDataFileSystem.encode3   s2   € ð t—zz˜rl (¬6×+;Ò+;¸DÓ+A×+HÑ+HÓ+JÐ*KÐLÐLr   r	   )NN)ÚrbNTN)N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úprotocolr   r   r)   r4   Ústaticmethodr   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   r;   s   @@r   r   r      sH   ù‡ € ñ	ð €Hõ#ô1òSô/ð ÷Mñ Mó ÷Mð Mr   r   )r   r.   Úurllib.parser   Úfsspecr   r   r	   r   r   Ú<module>rP      s    ðÛ Û 	Ý  å %ô1MÐ'ö 1Mr   