grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026a XC?h°Xã@sêdZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZzddlZejZWneyšdZejZYn0z ddlZWney¾dZYn0z ddlZWneyâdZYn0gd¢ZGdd„deƒZGdd„deƒZeZZdZd Zd ZdZd Zd Zd Z d Z!dZ"dZ#dZ$dZ%dZ&dZ'e  (e&¡Z)dZ*dZ+dZ,dZ-dZ.dZ/dZ0dZ1d Z2dZ3dZ4dZ5e  (e4¡Z6dZ7dZ8dZ9dZ:dZ;dZd Z?dZ@dZAdZBd ZCdZDd ZEd ZFd!ZGd"ZHd#ZId$ZJd%ZKe  (eJ¡ZLdZMdZNdZOdZPdZQdZRdZSdZTd ZUdZVdZWdZXd&ZYd'ZZe  (eY¡Z[d(Z\d)Z]e  (e\¡Z^dZ_dZ`dZadZbdZcdZddZedZfd ZgdZhd*Zie  jd+¡Zkd,d-„Zld.d/„Zmd0d1„Znd2d3„Zod4d5„ZpGd6d7„d7eqƒZrdasd8d9„Ztd:d;„ZuGdd?„d?ƒZwd@dAdBdBdBdBdCdDdEdFdCdGdHdIdJdKdLdMœZxdNdO„ZydodPdQ„ZzdRdS„Z{GdTdU„dUƒZ|GdVdW„dWƒZ}GdXdY„dYej~ƒZGdZd[„d[ej~ƒZ€Gd\d]„d]ƒZ�Gd^d_„d_e�ƒZ‚d`da„Zƒdbdc„Z„e…j†Z‡ddde„ZˆGdfdg„dge�ƒZ‰Gdhdi„die‰ƒZŠGdjdk„dkƒZ‹dpdldm„ZŒe�dnk�ræeŒƒdS)qzP Read and write ZIP files. XXX references to utf-8 need further investigation. éN) Ú BadZipFileÚ BadZipfileÚerrorÚ ZIP_STOREDÚ ZIP_DEFLATEDÚ ZIP_BZIP2ÚZIP_LZMAÚ is_zipfileÚZipInfoÚZipFileÚ PyZipFileÚ LargeZipFileÚPathc@s eZdZdS)rN)Ú__name__Ú __module__Ú __qualname__©rrú,/opt/alt/python39/lib64/python3.9/zipfile.pyr*src@seZdZdZdS)r zu Raised when writing a zipfile, the zipfile requires ZIP64 extensions and those extensions are disabled. N)rrrÚ__doc__rrrrr .sr iÿÿÿéÿÿéé ééé-é.é?s<4s4H2LHsPKéééééééé z<4s4B4HL2L5H2LsPKé é é ééééz <4s2B4HL2L2HsPKz<4sLQLsPKz <4sQ2H2L4QsPKiPKúr0Ústructr/ÚstructEndArchive64LocatorÚstringEndArchive64LocatorrÚsizeEndCentDir64ÚstructEndArchive64ÚstringEndArchive64Ú_ECD_SIGNATUREÚ_ECD_DISK_NUMBERÚ_ECD_DISK_STARTÚ_ECD_ENTRIES_THIS_DISKÚ_ECD_ENTRIES_TOTALÚ _ECD_SIZEÚ _ECD_OFFSET)ÚfpinÚoffsetÚendrecÚdataZsigZdisknoZreloffZdisksZszÚcreate_versionZ read_versionZdisk_numZdisk_dirZdircountZ dircount2ZdirsizeZ diroffsetrrrÚ _EndRecData64Õs:       þrXc Csf| dd¡| ¡}z| t d¡Wnty:YdS0| ¡}t|ƒtkrª|dd…tkrª|dd…dkrªt t |¡}t |ƒ}|  d¡|  |t¡t |t |ƒSt |dtdƒ}| |d¡| ¡}| t¡}|dk�rb|||t…}t|ƒtk�rdSt t t |¡ƒ}|t}||t|t|…}|  |¡|  ||¡t |||||ƒSdS) zÔReturn data from the "End of Central Directory" record, or None. The data is a list of the nine items in the ZIP "End of central dir" record followed by a tenth item, the file seek offset of this record.rrNr éþÿÿÿsr-i)rDÚtellÚsizeEndCentDirr:r>r0ÚstringEndArchiverFr/ÚstructEndArchiveÚlistr1rXÚmaxÚrfindÚ_ECD_COMMENT_SIZE) rSZfilesizerVrUZmaxCommentStartr5ZrecDataZ commentSizeÚcommentrrrr9sD   ÿþ      ÿr9c@s\eZdZdZdZddd„Zdd„Zdd d „Zd d „Zdd„Z e dddœdd„ƒZ dd„Z d S)r z>Class with attributes describing each file in the ZIP archive.)Ú orig_filenamerBÚ date_timeÚ compress_typeÚ_compresslevelrbr3Ú create_systemrWÚextract_versionÚreservedÚ flag_bitsÚvolumeÚ internal_attrÚ external_attrÚ header_offsetÚCRCÚ compress_sizeÚ file_sizeÚ _raw_timeÚ _end_offsetÚNoName©é¼rrrrrcCsÚ||_| tdƒ¡}|dkr(|d|…}tjdkrJtj|vrJ| tjd¡}||_||_|ddkrjtdƒ‚t |_ d|_ d|_ d|_ tjdkr”d|_nd|_t|_t|_d|_d|_d|_d|_d|_d|_d|_d|_dS)Nrú/rvz+ZIP does not support timestamps before 1980r-Zwin32r)rcÚfindÚchrÚosÚsepÚreplacerBrdÚ ValueErrorrrerfrbr3ÚsysÚplatformrgÚDEFAULT_VERSIONrWrhrirjrkrlrmrprqrs)ÚselfrBrdZ null_byterrrÚ__init__Xs6   zZipInfo.__init__cCsÜd|jj|jfg}|jtkr8| dt |j|j¡¡|jd?}|jd@}|rd| dt   |¡¡|rv| d|¡|  ¡}|rˆ|j r˜| d|j ¡|r¢|j rÈ|jtks¸|j |j krÈ| d|j ¡| d ¡d  |¡S) Nz<%s filename=%rú compress_type=%sr)rz filemode=%rz external_attr=%#xz file_size=%rz compress_size=%rú>Ú)Ú __class__rrBrerr1Úcompressor_namesÚgetrmÚstatÚfilemodeÚis_dirrqrpr2)r�rCÚhiÚloÚisdirrrrÚ__repr__„s0 ÿÿ    ÿ þ zZipInfo.__repr__NcCs||j}|ddd>|dd>B|dB}|dd>|d d>B|ddB}|jd @rfd}}}n|j}|j}|j}|j}d} |d urš|tkp˜|tk}|rÂd } |t | dt  | ¡d ||¡}|tksÒ|tkrê|sÞt d ƒ‚d}d}t } |j t k�rtt| ƒ} n|j tk�rtt| ƒ} t| |jƒ|_t| |jƒ|_| ¡\} } t tt|j|j| |j |||||t| ƒt|ƒ¡ } | | |S)z-Return the per-file header as a bytes object.rrvr$rr!rrr&r rNz|_|rôd|_|jd O_n|j|_|S) a_Construct an appropriate ZipInfo for a file on the filesystem. filename should be the path to a file or directory on the filesystem. arcname is the name which it will have within the archive (by default, this will be the same as filename, but without a drive letter and with leading path separators removed). rr"rvrué;)r¬rééé;r¯Nrrwrr))Ú isinstancerzÚPathLikeÚfspathr‰ÚS_ISDIRÚst_modeÚtimeÚ localtimeÚst_mtimeÚpathÚnormpathÚ splitdriver{ÚaltseprmrqÚst_size) ÚclsrBÚarcnamer«ÚstrŽÚmtimerdÚzinforrrÚ from_fileës0       zZipInfo.from_filecCs|jddkS)z2Return True if this archive member is a directory.éÿÿÿÿrw©rBr§rrrr‹szZipInfo.is_dir)rtru)N)N) rrrrÚ __slots__r‚r�r¡r—r©Ú classmethodrÂr‹rrrrr =s , .%r cCs0tdƒD]"}|d@r"|d?dA}q|dL}q|S)Nrrl q[)Úrange)Úcrcr7rrrÚ_gen_crcs   rÉcsld‰d‰d‰tdur&ttttdƒƒƒat‰‡fdd„‰‡‡‡‡fdd„‰|D] }ˆ|ƒqL‡‡fd d „}|S) NixV4i‰gE#i�xV4écs|d?ˆ||Ad@AS)z(Compute the CRC32 primitive on one byte.réÿr)ZchrÈ)ÚcrctablerrÚcrc325sz_ZipDecrypter..crc32cs<ˆ|ˆƒ‰ˆˆd@d@‰ˆddd@‰ˆˆd?ˆƒ‰dS)NrËr�i„rér)Úc)rÍÚkey0Úkey1Úkey2rrÚ update_keys9s z"_ZipDecrypter..update_keyscsNtƒ}|j}|D]4}ˆdB}|||dAd?d@N}ˆ|ƒ||ƒqt|ƒS)zDecrypt a bytes object.rrrrË)Ú bytearrayr1Úbytes)rVrCr1rÏÚk)rÒrÓrrÚ decrypterCs z _ZipDecrypter..decrypter)Ú _crctabler^ÚmaprÉrÇ)ÚpwdÚpr×r)rÍrÌrÐrÑrÒrÓrÚ _ZipDecrypter+s   rÜc@s,eZdZdd„Zdd„Zdd„Zdd„Zd S) ÚLZMACompressorcCs d|_dS©N)Ú_compr§rrrr‚SszLZMACompressor.__init__cCsFt dtji¡}tjtjt tj|¡gd�|_t dddt |ƒ¡|S)NÚid©ÚfilterszrZ©r�ÚnrVrrrr>ãs  z_SharedFile.readcCs$|jdur |j}d|_| |¡dSrÞ)rÿr)r�Úfileobjrrrrîs z_SharedFile.closeN)r)rÃ)rrrr‚rZrDr>rrrrrrþÍs  rþc@s4eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd S) Ú _TellablecCs||_d|_dS©Nr)r<rT©r�r<rrrr‚ösz_Tellable.__init__cCs|j |¡}|j|7_|SrÞ)r<ÚwriterT)r�rVr rrrrús z_Tellable.writecCs|jSrÞ)rTr§rrrrZÿsz_Tellable.tellcCs|j ¡dSrÞ)r<rér§rrrrész_Tellable.flushcCs|j ¡dSrÞ)r<rr§rrrrsz_Tellable.closeN)rrrr‚rrZrérrrrrrõs rcs¦eZdZdZdZdZdZd(dd„Zd d „Zd d „Z d)dd„Z d*dd„Z dd„Z d+dd„Z dd„Zdd„Zdd„Zdd„Z‡fdd „Zd!d"„Zd,d$d%„Zd&d'„Z‡ZS)-Ú ZipExtFilezZFile-like object for reading an archive member. Is returned by ZipFile.open(). i@iiNFcCs&||_||_||_|j|_|j|_|j|_t |jƒ|_ d|_ d|_ d|_ d|_||_|j|_t|dƒrz|j|_tdƒ|_nd|_d|_z4| ¡r¸| ¡|_|j|_|j|_|j|_d|_WntyÌYn0d|_|�r"|j d@rô|j!d?d@}n|jd?d@}| "¡}||k�r"t#d |j$ƒ‚dS) NFr-rroTrrËrÎzBad password for file %r)%Ú_fileobjÚ_pwdÚ_close_fileobjreÚ_compress_typerpÚ_compress_leftrqÚ_leftrýÚ _decompressorÚ_eofÚ _readbufferÚ_offsetÚnewlinesÚmoderBÚnamer@roÚ _expected_crcrÍÚ _running_crcÚ _seekablerrZÚ_orig_compress_startÚ_orig_compress_sizeÚ_orig_file_sizeÚ_orig_start_crcÚAttributeErrorÚ _decrypterrjrrÚ_init_decrypterrõrc)r�r rÚzipinforÚZ close_fileobjZ check_byteÚhrrrr‚sF        zZipExtFile.__init__cCs4t|jƒ|_|j d¡}|jd8_| |¡dS)Nrr&)rÜrr(rr>r)r�r rrrr)Js  zZipExtFile._init_decryptercCsvd|jj|jjfg}|jsX| d|j|jf¡|jtkrb| dt   |j|j¡¡n | d¡| d¡d  |¡S)Nú<%s.%sz name=%r mode=%rrƒú [closed]r„r…) r†rrÚclosedr1rrrrr‡rˆr2©r�rCrrrr�Usÿ ÿÿ  zZipExtFile.__repr__rÃcCsL|dkr>|j d|j¡d}|dkr>|j|j|…}||_|Stj ||¡S)zrRead and return a line from the stream. If limit is specified, at most limit bytes will be read. ró r)rrxrÚioÚBufferedIOBaseÚreadline)r�Úlimitr6Úlinerrrr3cszZipExtFile.readlinercCsr|t|jƒ|jkr\| |¡}t|ƒ|jkrJ||j|jd…|_d|_n|jt|ƒ8_|j|j|jd…S)z6Returns buffered bytes without advancing the position.Nri)r0rrr>)r�r ÚchunkrrrÚpeekss zZipExtFile.peekcCs|jrtdƒ‚dS)NúI/O operation on closed file.T)r.r}r§rrrÚreadable€szZipExtFile.readablecCs|jrtdƒ‚|dus|dkrV|j|jd…}d|_d|_|jsR|| |j¡7}q:|S||j}|t|jƒkrˆ|j|j|…}||_|S|t|jƒ}|j|jd…}d|_d|_|dk�r|j�s| |¡}|t|ƒkrú||_||_||d|…7}�q||7}|t|ƒ8}q²|S)zŽRead and return up to n bytes. If the argument is omitted, None, or negative, data is read and returned until EOF is reached. zread from closed file.Nrr-)r.r}rrrÚ_read1ÚMAX_Nr0)r�r ÚbufÚendrVrrrr>…s8   zZipExtFile.readcCs@|jdurdSt||jƒ|_|jr<|j|jkr     zZipExtFile.read1cCs"|js|dkrdS|jtkrH|jj}|t|ƒkrR|| |t|ƒ¡7}n | |¡}|jtkrj|jdk|_nx|jtkrÂt ||j ƒ}|j  ||¡}|jj p¨|jdko¨|jj |_|jrâ||j  ¡7}n |j  |¡}|jj pÞ|jdk|_|d|j…}|jt|ƒ8_|jdk�rd|_| |¡|S)Nrr-T)rrrrZunconsumed_tailr0Ú_read2rrr_Ú MIN_READ_SIZErîrírérr?r rrrr:×s4       þ   zZipExtFile._read1cCsd|jdkrdSt||jƒ}t||jƒ}|j |¡}|jt|ƒ8_|sLt‚|jdur`| |¡}|S)Nrr-) rr_rBÚminrr>r0ÚEOFErrorr(r rrrrAûs      zZipExtFile._read2cs0z|jr|j ¡Wtƒ ¡n tƒ ¡0dSrÞ)rrrÚsuperr§©r†rrr s zZipExtFile.closecCs|jrtdƒ‚|jS©Nr8)r.r}r"r§rrrrszZipExtFile.seekablercCsL|jrtdƒ‚|jst d¡‚| ¡}|dkr4|}n.|dkrF||}n|dkrZ|j|}ntdƒ‚||jkrr|j}|dkr~d}||}||j}|dkr²|t|j ƒkr²||_d}nf|dk�r|j   |j ¡|j |_|j|_|j|_d|_ d|_t|jƒ|_d|_|}|jdu�r| ¡|dk�rDt|j|ƒ}| |¡||8}�q| ¡S) Nzseek on closed file.ú!underlying stream is not seekablerrrzCwhence must be os.SEEK_SET (0), os.SEEK_CUR (1), or os.SEEK_END (2)r-F)r.r}r"r1ÚUnsupportedOperationrZr%rr0rrrDr#r&r!r$rrrýrrrr(r)rCÚ MAX_SEEK_READr>)r�rTr Zcurr_posZnew_posZ read_offsetZ buff_offsetZread_lenrrrrDsL            zZipExtFile.seekcCs>|jrtdƒ‚|jst d¡‚|j|jt|jƒ|j }|S)Nztell on closed file.rH) r.r}r"r1rIr%rr0rr)r�ZfileposrrrrZIs  zZipExtFile.tell)NF)rÃ)r)rÃ)r)rrrrr;rBrJr‚r)r�r3r7r9r>r?r@r:rArrrDrZÚ __classcell__rrrFrr s*ÿ 3    # %$  2rcs@eZdZdd„Zedd„ƒZdd„Zdd„Z‡fd d „Z‡Z S) Ú _ZipWriteFilecCs8||_||_||_t|j|jƒ|_d|_d|_d|_ dSr) Ú_zinfoÚ_zip64Ú_zipfilerürerfÚ _compressorÚ _file_sizeÚ_compress_sizeÚ_crc)r�ÚzfrÁršrrrr‚Ssÿz_ZipWriteFile.__init__cCs|jjSrÞ)rOr<r§rrrr]sz_ZipWriteFile._fileobjcCsdS)NTrr§rrrÚwritableasz_ZipWriteFile.writablecCs„|jrtdƒ‚t|ttfƒr&t|ƒ}nt|ƒ}|j}|j|7_t ||j ƒ|_ |j rt|j   |¡}|j t|ƒ7_ |j |¡|SrG)r.r}r°rÕrÔr0Ú memoryviewÚnbytesrQrÍrSrPrèrRrr)r�rVrWrrrrds   z_ZipWriteFile.writec sj|jr dS�zNtƒ ¡|jrR|j ¡}|jt|ƒ7_|j |¡|j|j _ n |j |j _ |j |j _ |j |j _|j jd@rÀ|jr†dnd}|j t |t|j j |j j |j j¡¡|j ¡|j_nn|jsê|j tkrØtdƒ‚|jtkrêtdƒ‚|j ¡|j_|j |j j¡|j |j  |j¡¡|j |jj¡|jj |j ¡|j |jj|j j<Wd|j_ n d|j_ 0dS)Nrzdd „Zd?d!d"œd#d$„Zd@d%d&„ZdAd'd(„ZdBd)d*„Zed+d,„ƒZd-d.„Zd/d0„ZdCd1d2„ZdDd3d4„Zd5d6„Z d7d8„Z!d9d:„Z"d;d<„Z#dS)Er ai Class with methods to open, read, write, close, list zip files. z = ZipFile(file, mode="r", compression=ZIP_STORED, allowZip64=True, compresslevel=None) file: Either the path to the file, or a file-like object. If it is a path, the file will be opened and closed by ZipFile. mode: The mode can be either read 'r', write 'w', exclusive create 'x', or append 'a'. compression: ZIP_STORED (no compression), ZIP_DEFLATED (requires zlib), ZIP_BZIP2 (requires bz2) or ZIP_LZMA (requires lzma). allowZip64: if True ZipFile will create files with ZIP64 extensions when needed, otherwise it will raise an exception when this would be necessary. compresslevel: None (default for the given compression type) or an integer specifying the level to pass to the compressor. When using ZIP_STORED or ZIP_LZMA this keyword has no effect. When using ZIP_DEFLATED integers 0 through 9 are accepted. When using ZIP_BZIP2 integers 1 through 9 are accepted. NÚrTrªc CsH|dvrtdƒ‚t|ƒ||_d|_d|_i|_g|_||_||_||_ d|_ d|_ ||_ t |tjƒrpt |¡}t |tƒräd|_||_ddd d dd d d œ}||}zt ||¡|_WqâtyÜ||vrÖ||}Yq¢‚Yqâ0qþq¢nd|_||_t|ddƒ|_d|_t ¡|_d|_d|_�z|dk�r2| ¡nê|dv�r¸d|_z|j  ¡|_!Wn0t"tf�y‚t#|jƒ|_d|_!d|_Yn40z|j $|j!¡Wnt"tf�y´d|_Yn0nd|dk�rz| ¡|j $|j!¡Wn4t%�y|j $dd¡d|_|j  ¡|_!Yn0ntdƒ‚Wn$|j} d|_| &| ¡‚Yn0dS)z]Open the ZIP file with mode read 'r', write 'w', exclusive create 'x', or append 'a'.)r]ÚwÚxÚaz+ZipFile requires mode 'r', 'w', 'x', or 'a'FrNr-r?úw+búx+búr+bÚwbZxb)r]r^r_r`rcrarbrrTr])r^r_r`rz"Mode must be 'r', 'w', 'x', or 'a')'r}rùÚ _allowZip64Ú _didModifyÚdebugr[rZrørûrrÚÚ_commentÚ_strict_timestampsr°rzr±r²ÚstrÚ _filePassedrBr1rAr<r:ÚgetattrÚ _fileRefCntÚ threadingÚRLockrr"rÚ_RealGetContentsrZrYr'rrDrÚ_fpclose) r�rrrøÚ allowZip64rûr«ZmodeDictrŠr<rrrr‚Ás†   ÿ          zZipFile.__init__cCs|SrÞrr§rrrÚ __enter__szZipFile.__enter__cCs | ¡dSrÞ©r)r�ÚtypeÚvalueÚ tracebackrrrÚ__exit__szZipFile.__exit__cCs‚d|jj|jjfg}|jdurd|jr8| d|j¡n|jdurR| d|j¡| d|j¡n | d¡| d¡d |¡S)Nr,z file=%rz filename=%rz mode=%rr-r„r…) r†rrr<rkr1rBrr2r/rrrr�!sÿ    zZipFile.__repr__c Csä|j}z t|ƒ}Wnty,tdƒ‚Yn0|s:tdƒ‚|jdkrLt|ƒ|t}|t}|t|_ |t ||}|t t krŽ|t t8}|jdkr®||}td|||ƒ|||_| |jd¡| |¡}t |¡}d}||k�r²| t¡} t| ƒtk�rtdƒ‚t t| ¡} | ttk�r*tdƒ‚|jdk�r>t| ƒ| | t¡} | d} | d @�rj|  d ¡} n |  d ¡} t| ƒ} | | t¡| _| | t ¡| _!| t"| _#| dd …\ | _$| _%| _&| _'| _(| _)} }| _*| _+| _,| j&t-k�røt.d | j&dƒ‚| dd…\| _/| _0| _1| | _2|d?d|d?d@|d@| d?| d?d@| d@df| _3|  4¡| j#|| _#|j5 6| ¡| |j7| j8<|t| t| t| t }|jdkrÞtd|ƒqÞ|j}t9|j5dd„dd�D]}||_:|j#}�qÌdS)z/Read in the table of contents for the ZIP file.zFile is not a zip filerrzgiven, inferred, offsetrzTruncated central directoryz&Bad magic number for central directoryr!r¤r£Úcp437rzzip file version %.1fr%r(r+r$rvr­r&rÚtotalcSs|jSrÞ)rn)rÁrrrÚ~r-z*ZipFile._RealGetContents..T)ÚkeyÚreverseN);r<r9r:rrgÚprintrQrRÚ _ECD_COMMENTrhÚ _ECD_LOCATIONrLrKrIrErYrDr>r1ÚBytesIOÚsizeCentralDirr0rFr/ÚstructCentralDirÚ _CD_SIGNATUREÚstringCentralDirÚ_CD_FILENAME_LENGTHÚdecoder Ú_CD_EXTRA_FIELD_LENGTHr3Ú_CD_COMMENT_LENGTHrbÚ_CD_LOCAL_HEADER_OFFSETrnrWrgrhrirjrerorprqÚMAX_EXTRACT_VERSIONr÷rkrlrmrrrdr©rZr1r[rBÚsortedrs)r�r<rUZsize_cdZ offset_cdÚconcatZinferredrVrzÚcentdirrBÚflagsr_ÚtÚdZ end_offsetrÁrrrrp/s�                   þ   ÿÿ   ÿþ  þ zZipFile._RealGetContentscCsdd„|jDƒS)z+Return a list of file names in the archive.cSsg|] }|j‘qSrrÄ)Ú.0rVrrrÚ …r-z$ZipFile.namelist..©rZr§rrrÚnamelistƒszZipFile.namelistcCs|jS)zJReturn a list of class ZipInfo instances for files in the archive.r”r§rrrÚinfolist‡szZipFile.infolistcCsLtdd|d�|jD]0}d|jdd…}td|j||jf|d�qdS)z+Print a table of contents for the zip file.z%-46s %19s %12s)z File Namez Modified ZSize)rz%d-%02d-%02d %02d:%02d:%02dNr"z %-46s %s %12d)r~rZrdrBrq)r�rrÁÚdaterrrÚprintdirŒsÿ ÿzZipFile.printdirc Cspd}|jD]`}z>| |jd¡�}| |¡r,q Wdƒn1s@0YWq tyh|jYS0q dS)z%Read all the files and check the CRC.ir]N)rZrArBr>r)r�Z chunk_sizerÁÚfrrrÚtestzip•s  $ zZipFile.testzipcCs$|j |¡}|dur td|ƒ‚|S)z,Return the instance of ZipInfo given 'name'.Nz(There is no item named %r in the archive)r[rˆÚKeyError)r�rÚinforrrÚgetinfo¢s  ÿzZipFile.getinfocCs6|r t|tƒs tdt|ƒjƒ‚|r,||_nd|_dS)z)Set default password for encrypted files.úpwd: expected bytes, got %sN)r°rÕÚ TypeErrorrurrÚ)r�rÚrrrÚ setpassword«s zZipFile.setpasswordcCs|jS)z.The comment text associated with the ZIP file.)rhr§rrrrb´szZipFile.commentcCs^t|tƒstdt|ƒjƒ‚t|ƒtkrNddl}|jdtdd�|dt…}||_ d|_ dS)Nzcomment: expected bytes, got %srz3Archive comment is too long; truncating to %d bytesr©Ú stacklevelT) r°rÕrŸrurr0ÚZIP_MAX_COMMENTÚwarningsÚwarnrhrf)r�rbr¤rrrrb¹s  ÿÿ cCs:| |d|¡�}| ¡WdƒS1s,0YdS)zReturn file bytes for name.r]N©rAr>)r�rrÚr<rrrr>Æsz ZipFile.readF©Ú force_zip64c sJ|dvrtdƒ‚|r0t|tƒs0tdt|ƒjƒ‚|rD|dkrDtdƒ‚ˆjsRtdƒ‚t|tƒrb|}n,|dkr„t|ƒ}ˆj|_ ˆj |_ n ˆ  |¡}|dkr¤ˆj ||d�Sˆjr²tdƒ‚ˆjd 7_tˆj|jˆjˆj‡fd d „ƒ}�zL| t¡}t|ƒtk�rtd ƒ‚t t|¡}|ttk�r&td ƒ‚| |t¡}|t�rL| |t¡|jd@�r`t dƒ‚|jd@�rtt dƒ‚|t!d@�rŽ| "d¡} n | "d¡} | |j#k�r¶td|j#|fƒ‚|j$du�rê| %¡|j&|j$k�rêtd|j#›d�ƒ‚|jd @} | �r|�sˆj'}|�st(d|ƒ‚nd}t)||||dƒWS| *¡‚Yn0dS)auReturn file-like object for 'name'. name is a string for the file name within the ZIP file, or a ZipInfo object. mode should be 'r' to read a file already in the ZIP file, or 'w' to write to a file newly added to the archive. pwd is the password to decrypt files (only used for reading). When writing, if the file size is not known in advance but may exceed 2 GiB, pass force_zip64 to use the ZIP64 format, which can handle large files. If the size is known in advance, it is best to pass a ZipInfo instance for name, with zinfo.file_size set. >r]r^zopen() requires mode "r" or "w"ržr^z'pwd is only supported for reading filesz2Attempt to use ZIP archive that was already closedr§r rcsˆjSrÞ)rrr§rrr{ür-zZipFile.open..zTruncated file headerz Bad magic number for file headeré z$compressed patched data (flag bit 5)é@zstrong encryption (flag bit 6)r¤r£ryz/File name in directory %r and header %r differ.NzOverlapped entries: z (possible zip bomb)z6File %r is encrypted, password required for extractionT)+r}r°rÕrŸrurr<r rørerûrfr�Ú_open_to_writerrmrþrnrqrr>ÚsizeFileHeaderr0rrFr/r˜Ú _FH_SIGNATUREr™Ú_FH_FILENAME_LENGTHÚ_FH_EXTRA_FIELD_LENGTHrjr÷Ú_FH_GENERAL_PURPOSE_FLAG_BITSr‡rcrsrZrprÚrõrr) r�rrrÚr¨rÁZzef_fileZfheaderÚfnameZ fname_strZ is_encryptedrr§rrAËs‚ ÿ    ÿ        ÿÿ ÿ ÿz ZipFile.opencCsÖ|r|jstdƒ‚|jr tdƒ‚d|_d|_d|_|jtkrJ|jdO_|js^|jdO_|j sjd|_ |jo€|p€|j dt k}|jr–|j   |j¡|j  ¡|_| |¡d|_|j  | |¡¡d|_t|||ƒS) NzHforce_zip64 is True, but allowZip64 was False when opening the ZIP file.zzCan't write to the ZIP file while there is another write handle open on it. Close the first handle before opening another.rrré€gÍÌÌÌÌÌð?T)rer}rrprorjrerr"rmrqr‘r<rDrYrZrnÚ _writecheckrfrr¡rL)r�rÁr¨ršrrrr«1s4 ÿ ÿ  zZipFile._open_to_writecCs*|durt ¡}n t |¡}| |||¡S)a#Extract a member from the archive to the current working directory, using its full name. Its file information is extracted as accurately as possible. `member' may be a filename or a ZipInfo object. You can specify a different directory using `path'. N)rzÚgetcwdr²Ú_extract_member)r�Úmemberr¸rÚrrrÚextractZs  zZipFile.extractcCsH|dur| ¡}|dur"t ¡}n t |¡}|D]}| |||¡q0dS)zõExtract all members from the archive to the current working directory. `path' specifies a different directory to extract to. `members' is optional and must be a subset of the list returned by namelist(). N)r•rzr´r²rµ)r�r¸ÚmembersrÚr*rrrÚ extractallgs  zZipFile.extractallcCs^|j}|s(d}t |dt|ƒ¡}||_| |¡}dd„| |¡Dƒ}| dd„|Dƒ¡}|S)z;Replace bad characters and remove trailing dots from parts.z:<>|"?*Ú_css|]}| d¡VqdS)Ú.N)Úrstrip©r’r_rrrÚ ‚r-z1ZipFile._sanitize_windows_name..css|]}|r|VqdSrÞrr½rrrr¾„r-)Ú!_windows_illegal_name_trans_tablerjÚ maketransr0Ú translateÚsplitr2)r½r¾ÚpathsepÚtableZillegalrrrÚ_sanitize_windows_namexs zZipFile._sanitize_windows_namec sxt|tƒs| |¡}|j dtjj¡}tjjrB| tjjtjj¡}tj  |¡d}dtjj tjj f‰tjj  ‡fdd„|  tjj¡Dƒ¡}tjjdkr¦| |tjj¡}tj  ||¡}tj |¡}tj |¡}|rætj |¡sæt |¡| ¡�r tj |¡�st |¡|S|j||d��H}t|dƒ�}t ||¡Wd ƒn1�sJ0YWd ƒn1�sj0Y|S) zbExtract the ZipInfo object 'member' to a physical file on the path targetpath. rwrr…c3s|]}|ˆvr|VqdSrÞrr½©Zinvalid_path_partsrrr¾˜sÿz*ZipFile._extract_member..ú\©rÚrdN)r°r r�rBr|rzr¸r{r»rºÚcurdirÚpardirr2rÂrÅr¹ÚdirnameÚexistsÚmakedirsr‹rŽÚmkdirrAÚshutilÚ copyfileobj)r�r¶Z targetpathrÚr¾Z upperdirsÚsourceÚtargetrrÆrrµ‡s2  &      ÿLzZipFile._extract_membercCs¢|j|jvr(ddl}|jd|jdd�|jdvr:tdƒ‚|jsHtdƒ‚t|jƒ|j sžd}t |j ƒt krpd }n|j tkr€d }n|jtkrŽd }|ržt|d ƒ‚dS) z6Check for errors before writing a file to the archive.rNzDuplicate name: %rrr¡©r^r_r`z&write() requires mode 'w', 'x', or 'a'z4Attempt to write ZIP archive that was already closedú Files countZFilesizez Zipfile sizeú would require ZIP64 extensions)rBr[r¤r¥rr}r<rùrerer0rZÚZIP_FILECOUNT_LIMITrqr‘rnr )r�rÁr¤Úrequires_zip64rrrr³±s,  ÿ   ÿzZipFile._writecheckc Cs’|jstdƒ‚|jrtdƒ‚tj|||jd�}| ¡rDd|_d|_n0|durT||_ n|j |_ |durl||_ n|j |_ | ¡�r&|j �Ž|jrš|j |j¡|j ¡|_|j tkr¾|jdO_| |¡d|_|j |¡||j|j<|j | d¡¡|j ¡|_Wdƒn1�s0Ynht|d ƒ�L}| |d ¡�}t ||d ¡Wdƒn1�sd0YWdƒn1�s„0YdS) zLPut the bytes from filename into the archive under the name arcname.ú7Attempt to write to ZIP archive that was already closedz>Can't write to ZIP archive while an open writing handle existsrªrNrTFr?r^i ) r<r}rr rÂrir‹rprorerørfrûrr"rDrYrZrnrrjr³rfrZr1r[rBrr¡rArÏrÐ)r�rBr¾rerûrÁÚsrcÚdestrrrrÈsFÿÿÿ      .z ZipFile.writec Cs"t|tƒr| d¡}t|tƒsxt|t t ¡¡dd…d�}|j|_|j|_ |j ddkrpd|_ |j dO_ q|d |_ n|}|j sŠt d ƒ‚|jr˜t d ƒ‚|dur¦||_|dur´||_ t|ƒ|_|j�H|j|d d ��}| |¡Wdƒn1sô0YWdƒn1�s0YdS)aWrite a file into the archive. The contents is 'data', which may be either a 'str' or a 'bytes' instance; if it is a 'str', it is encoded as UTF-8 first. 'zinfo_or_arcname' is either a ZipInfo instance or the name of the file in the archive.r£Nr")rBrdrÃrwiýAr)r²rØz?Can't write to ZIP archive while an open writing handle exists.r^)r)r°rjr¥r rµr¶rørerûrfrBrmr<r}rr0rqrrAr)r�Zzinfo_or_arcnamerVrerûrÁrÚrrrÚwritestrùs:   ÿÿÿ zZipFile.writestrcCs | ¡dS)z2Call the "close()" method in case the user forgot.Nrtr§rrrÚ__del__"szZipFile.__del__c Cs¦|jdurdS|jrtdƒ‚zl|jdvrp|jrp|j�,|jrJ|j |j¡|  ¡Wdƒn1sf0YW|j}d|_|  |¡n|j}d|_|  |¡0dS)zOClose the file, and for mode 'w', 'x' and 'a' write the ending records.NzvCan't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.rÓ) r<rr}rrfrr"rDrYÚ_write_end_recordrqrrrrr&s  ( þz ZipFile.closecCs|jD�]Ô}|j}|ddd>|dd>B|dB}|dd>|d d>B|ddB}g}|jtksr|jtkr”| |j¡| |j¡d }d }n |j}|j}|jtkr¼| |j¡d }n|j}|j} d} |�rt| d ƒ} t j d d t |ƒddt |ƒg|¢RŽ| } t } |j tk�r&tt| ƒ} n|j tk�rrAr«r·r¹rÆrÅrµr³rrÛrÜrrÝrqrrrrr §sPÿÿ ZT      f )  *ÿ 2ÿ )^r c@s4eZdZdZdeddfdd„Zd d d „Zd d „ZdS)r zDClass to create ZIP archives with Python library files and packages.r]TrÃcCstj|||||d�||_dS)N)rrørr)r r‚Ú _optimize)r�rrrørrÚoptimizerrrr‚¤s ÿzPyZipFile.__init__r…NcCs¼t |¡}|rD||ƒsD|jr@tj |¡r,dnd}td||fƒdStj |¡\}}tj |¡�rhtj |d¡}tj |¡�r¸|r�d||f}n|}|jr¨td|d|ƒ|  |d d …|¡\}} |jrÐtd | ƒ|  || ¡t t  |¡ƒ} |   d¡| D]¼} tj || ¡} tj | ¡\} }tj | ¡�rRtj tj | d¡¡�r´|j| ||d �qø|d krø|�r~|| ƒ�s~|jrøtd| ƒqø|  | d d …|¡\}} |j�r¨td | ƒ|  || ¡qøn®|j�rÊtd|ƒt t  |¡ƒD]Œ} tj || ¡} tj | ¡\} }|d k�rØ|�r,|| ƒ�s,|j�rØtd| ƒ�qØ|  | d d …|¡\}} |j�rVtd | ƒ|  || ¡�qØnP|d d…d k�r‚tdƒ‚|  |d d …|¡\}} |j�r¬td| ƒ|  || ¡dS)a¦Add all files from "pathname" to the ZIP archive. If pathname is a package directory, search the directory and all package subdirectories recursively for all *.py and enter the modules into the archive. If pathname is a plain directory, listdir *.py and enter all modules. Else, pathname must be a Python *.py file and the module will be put into the archive. Added modules are always module.pyc. This method will compile the module.py into module.pyc if necessary. If filterfunc(pathname) is given, it is called with every argument. When it is False, the file or directory is skipped. r¸rz%s %r skipped by filterfuncNz __init__.pyú%s/%szAdding package inÚasréýÿÿÿZAdding)Ú filterfuncú.pyzfile %r skipped by filterfunczAdding files from directoryz.Files added with writepy() must end with ".py"z Adding file)rzr²rgr¸rŽr~rÂr2ÚisfileÚ _get_codenamerrŒÚlistdirÚremoveÚsplitextÚwritepyrõ)r�ÚpathnameÚbasenamerçZlabelÚdirrZinitnamer±r¾ZdirlistrBr¸ÚrootZextrrrrîªs€     ÿ ÿ    ÿ ÿ zPyZipFile.writepyc sd‡fdd„ }|d}|d}tjj|dd�}tjj|dd�}tjj|d d�}ˆjdk�r\tj |¡rˆt |¡jt |¡jkrˆ|} } nÒtj |¡r¶t |¡jt |¡jkr¶|} |} n¤tj |¡rät |¡jt |¡jkrä|} |} nvtj |¡�rt |¡jt |¡jk�r|} |} nD||ƒ�rRt j j d k�r4|} nt j j dk�rH|} n|} |} n|} } n’ˆjd k�rr|} |} n<|} ˆjdk�rˆ|} n&ˆjd k�rš|} nd   ˆj¡} t | ƒ‚tj | ¡�rÖt | ¡jt |¡jk�sî||ˆjd ��sî|} } tj | ¡d} |�rd || f} | | fS)aReturn (filename, archivename) for the path. Given a module name path, return the correct file path and archive name, compiling if necessary. For example, given /python/lib/string, return (/python/lib/string.pyc, string). rÃc sdddl}ˆjrtd|ƒz|j|d|d�Wn2|jy^}zt|jƒWYd}~dSd}~00dS)NrZ CompilingT)ÚdoraiserãF)Ú py_compilergr~ÚcompileÚPyCompileErrorÚmsg)rrãrôÚerrr§rrÚ_compiles  z)PyZipFile._get_codename.._compilerèz.pycr…)Ú optimizationrrrz"invalid value for 'optimize': {!r})rãrä)rÃ)Ú importlibÚutilÚcache_from_sourcerârzr¸rér‰r·r~r�rãÚformatr}rÂ) r�rïrðrùZfile_pyZfile_pycZ pycache_opt0Z pycache_opt1Z pycache_opt2r¾r±r÷Z archivenamerr§rrêüsj   ÿ  ÿ ÿÿ      ÿ zPyZipFile._get_codename)r…N)rrrrrr‚rîrêrrrrr ¡s ÿ  Rr cCst t|ƒdd¡S)a2 Given a path with elements separated by posixpath.sep, generate all parents of that path. >>> list(_parents('b/d')) ['b'] >>> list(_parents('/b/d/')) ['/b'] >>> list(_parents('b/d/f/')) ['b/d', 'b'] >>> list(_parents('b')) [] >>> list(_parents('')) [] rN)Ú itertoolsÚisliceÚ _ancestry)r¸rrrÚ_parentsOsrccs2| tj¡}| tj¡r.|Vt |¡\}}q dS)aÔ Given a path with elements separated by posixpath.sep, generate all elements of that path. >>> list(_ancestry('b/d')) ['b/d', 'b'] >>> list(_ancestry('/b/d/')) ['/b/d', '/b'] >>> list(_ancestry('b/d/f/')) ['b/d/f', 'b/d', 'b'] >>> list(_ancestry('b')) ['b'] >>> list(_ancestry('')) [] Multiple separators are treated like a single. >>> list(_ancestry('//b//d///f//')) ['//b//d///f', '//b//d', '//b'] N)r¼Ú posixpathr{rÂ)r¸Útailrrrrbs  rcCst t|ƒj|¡S)zZ Return items in minuend not in subtrahend, retaining order with O(1) lookup. )rÿÚ filterfalseÚsetÚ __contains__)ZminuendZ subtrahendrrrÚ _difference�srcsHeZdZdZedd„ƒZ‡fdd„Zdd„Zdd „Ze d d „ƒZ ‡Z S) Ú CompleteDirszk A ZipFile subclass that ensures that implied directories are always included in the namelist. cCs.tj tt|ƒ¡}dd„|Dƒ}tt||ƒƒS)Ncss|]}|tjVqdSrÞ)rr{)r’rÛrrrr¾’r-z-CompleteDirs._implied_dirs..)rÿÚchainÚ from_iterablerÙrÚ_deduper)ÚnamesÚparentsZas_dirsrrrÚ _implied_dirs�szCompleteDirs._implied_dirscs tt|ƒ ¡}|t| |¡ƒSrÞ)rEr r•r^r)r�r rFrrr••szCompleteDirs.namelistcCs t| ¡ƒSrÞ)rr•r§rrrÚ _name_set™szCompleteDirs._name_setcCs,| ¡}|d}||vo||v}|r(|S|S)zx If the name represents a directory, return that name as a directory (with the trailing slash). rw)r)r�rr rËZ dir_matchrrrÚ resolve_dirœszCompleteDirs.resolve_dircCsNt|tƒr|St|tƒs ||ƒSd|jvr.t}| |¡}t|ƒ t|ƒ¡|S)zl Given a source (filename or zipfile), return an appropriate CompleteDirs subclass. r])r°r r rÚ__new__ÚvarsÚupdate)r½rÑÚresrrrÚmake¦s    zCompleteDirs.make) rrrrÚ staticmethodrr•rrrÆrrKrrrFrr ‰s   r cs,eZdZdZ‡fdd„Z‡fdd„Z‡ZS)Ú FastLookupzV ZipFile subclass to ensure implicit dirs exist and are resolved rapidly. csFt t¡�|jWdƒS1s&0Ytt|ƒ ¡|_|jSrÞ)Ú contextlibÚsuppressr'Z_FastLookup__namesrErr•r§rFrrr•Às $zFastLookup.namelistcsFt t¡�|jWdƒS1s&0Ytt|ƒ ¡|_|jSrÞ)rrr'Z_FastLookup__lookuprErrr§rFrrrÆs $zFastLookup._name_set)rrrrr•rrKrrrFrr»s rc@sœeZdZdZdZd$dd„Zd%dd„Zed d „ƒZd d „Z d d„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd„Zdd „ZeZed!d"„ƒZd#S)&ru’ A pathlib-compatible interface for zip files. Consider a zip file with this structure:: . ├── a.txt └── b ├── c.txt └── d └── e.txt >>> data = io.BytesIO() >>> zf = ZipFile(data, 'w') >>> zf.writestr('a.txt', 'content of a') >>> zf.writestr('b/c.txt', 'content of c') >>> zf.writestr('b/d/e.txt', 'content of e') >>> zf.filename = 'abcde.zip' Path accepts the zipfile object itself or a filename >>> root = Path(zf) From there, several path operations are available. Directory iteration (including the zip file itself): >>> a, b = root.iterdir() >>> a Path('abcde.zip', 'a.txt') >>> b Path('abcde.zip', 'b/') name property: >>> b.name 'b' join with divide operator: >>> c = b / 'c.txt' >>> c Path('abcde.zip', 'b/c.txt') >>> c.name 'c.txt' Read text: >>> c.read_text() 'content of c' existence: >>> c.exists() True >>> (b / 'missing.txt').exists() False Coercion to string: >>> str(c) 'abcde.zip/b/c.txt' z>{self.__class__.__name__}({self.root.filename!r}, {self.at!r})r…cCst |¡|_||_dSrÞ)rrròÚat)r�ròrrrrr‚ s z Path.__init__r]cOs\| dd¡}|d}|jj|j||d�}d|vrD|s8|r@tdƒ‚|Stj|g|¢Ri|¤ŽS)zª Open this entry as text or binary following the semantics of ``pathlib.Path.open()`` by passing arguments through to io.TextIOWrapper(). rÚNrrÈÚbz*encoding args invalid for binary operation)ÚpopròrArr}r1Ú TextIOWrapper)r�rÚargsÚkwargsrÚZzip_modeÚstreamrrrrA s z Path.opencCst |j d¡¡S©Nrw)rrðrr¼r§rrrr# sz Path.namecOsD|jdg|¢Ri|¤Ž�}| ¡WdƒS1s60YdS)Nr]r¦)r�rr ÚstrmrrrÚ read_text' szPath.read_textcCs6| d¡�}| ¡WdƒS1s(0YdS)Nr?r¦)r�r#rrrÚ read_bytes+ s zPath.read_bytescCst |j d¡¡|j d¡kSr")rrËrr¼)r�r¸rrrÚ _is_child/ szPath._is_childcCs t|j|ƒSrÞ)rrò)r�rrrrÚ_next2 sz Path._nextcCs|j p|j d¡Sr")rÚendswithr§rrrr‹5 sz Path.is_dircCs | ¡ SrÞ)r‹r§rrrÚis_file8 sz Path.is_filecCs|j|j ¡vSrÞ)rròrr§rrrrÌ; sz Path.existscCs.| ¡stdƒ‚t|j|j ¡ƒ}t|j|ƒS)NzCan't listdir a file)r‹r}rÙr'ròr•Úfilterr&)r�ZsubsrrrÚiterdir> sz Path.iterdircCst |jj|j¡SrÞ)rr2ròrBrr§rrrÚ__str__D sz Path.__str__cCs|jj|d�S)Nr§)Ú _Path__reprrþr§rrrr�G sz Path.__repr__cCs t |j|¡}| |j |¡¡SrÞ)rr2rr'ròr)r�ÚaddÚnextrrrÚjoinpathJ sz Path.joinpathcCs(t |j d¡¡}|r|d7}| |¡Sr")rrËrr¼r')r�Z parent_atrrrÚparentP sz Path.parentN)r…)r])rrrrr-r‚rAr\rr$r%r&r'r‹r)rÌr+r,r�r0Ú __truediv__r1rrrrrÍs(@   rc s ddl}d}|j|d�}|jdd�}|jdddd d �|jd d d ddd�|jdddddd�|jddddd �| |¡}|jdurÚ|j}t|dƒ�}| ¡}Wdƒn1s²0Y|rÎtd  |¡ƒtdƒ�nB|j du�r"|j }t|dƒ�}|  ¡Wdƒn1�s0Ynú|j du�rp|j \}}t|dƒ�}|  |¡Wdƒn1�sd0Yn¬|jdu�r|j d¡} |j} ‡fdd„‰t| dƒ�f}| D]P} tj | ¡} | �sÔtj tj | ¡¡} | dtjtjfv�rìd} ˆ|| | ƒ�qªWdƒn1�s0YdS) Nrz3A simple command-line interface for zipfile module.)Ú descriptionT)Zrequiredz-lz--listú zShow listing of a zipfile)ÚmetavarÚhelpz-ez --extractr)r4z zExtract zipfile into target dir)Únargsr5r6z-cz--createú+)zzzCreate zipfile from sourcesz-tz--testzTest if a zipfile is validr]z.The following enclosed file is corrupted: {!r}z Done testingcsptj |¡r| ||t¡nPtj |¡rl|r8| ||¡tt |¡ƒD]$}ˆ|tj ||¡tj ||¡ƒqFdSrÞ) rzr¸rérrrŽrŒrër2)rTr¸ÚzippathZnm©ÚaddToZiprrr;€ s   ÿzmain..addToZipr^r…)ÚargparseÚArgumentParserZadd_mutually_exclusive_groupÚ add_argumentÚ parse_argsÚtestr ršr~rþr^r˜r·r¹Zcreaterrzr¸rðrËrÉrÊ) rr<r3ÚparserÚgrouprÙrTZbadfilerÉZzip_nameÚfilesr¸r9rr:rÚmainX s\   ÿ þ þ ÿ   &   *   ,    rDÚ__main__)N)N)ŽrZbinasciiÚimportlib.utilrûr1rÿrzrrÏr‰rFr~rnrµrrôrÍÚ ImportErrorrörãÚ__all__Ú Exceptionrr rrr‘rÖr£rrrrr€r”r•r–r‹r]r\r“r[rLrMrNrOrPrQrRrarr€rƒr…r‚r„Z_CD_CREATE_VERSIONZ_CD_CREATE_SYSTEMZ_CD_EXTRACT_VERSIONZ_CD_EXTRACT_SYSTEMZ _CD_FLAG_BITSZ_CD_COMPRESS_TYPEZ_CD_TIMEZ_CD_DATEZ_CD_CRCZ_CD_COMPRESSED_SIZEZ_CD_UNCOMPRESSED_SIZEr†rˆr‰Z_CD_DISK_NUMBER_STARTZ_CD_INTERNAL_FILE_ATTRIBUTESZ_CD_EXTERNAL_FILE_ATTRIBUTESrŠr˜r™r¬r­Z_FH_EXTRACT_VERSIONZ_FH_EXTRACT_SYSTEMr°Z_FH_COMPRESSION_METHODZ_FH_LAST_MOD_TIMEZ_FH_LAST_MOD_DATEZ_FH_CRCZ_FH_COMPRESSED_SIZEZ_FH_UNCOMPRESSED_SIZEr®r¯rGrHrErJrKrIZ_CD64_SIGNATUREZ_CD64_DIRECTORY_RECSIZEZ_CD64_CREATE_VERSIONZ_CD64_EXTRACT_VERSIONZ_CD64_DISK_NUMBERZ_CD64_DISK_NUMBER_STARTZ_CD64_NUMBER_ENTRIES_THIS_DISKZ_CD64_NUMBER_ENTRIES_TOTALZ_CD64_DIRECTORY_SIZEZ_CD64_OFFSET_START_CENTDIRrXZStructr.r8r=r rXr9Úobjectr rØrÉrÜrÝrêr‡rùrürýrþrr2rrLr r rrÚdictÚfromkeysr rr rrrDrrrrrÚsT                +=^&ï (KU/2 =