Qf3 gdZddlZddlZddlZddlddlmZmZddlZdZdZ dZ GddejZ ddd dddddd d Z ed ddfd Zeddfd Zy))$ CHECK_NONE CHECK_CRC32 CHECK_CRC64 CHECK_SHA256 CHECK_ID_MAX CHECK_UNKNOWN FILTER_LZMA1 FILTER_LZMA2 FILTER_DELTA FILTER_X86 FILTER_IA64 FILTER_ARMFILTER_ARMTHUMBFILTER_POWERPC FILTER_SPARC FORMAT_AUTO FORMAT_XZ FORMAT_ALONE FORMAT_RAWMF_HC3MF_HC4MF_BT2MF_BT3MF_BT4 MODE_FAST MODE_NORMALPRESET_DEFAULTPRESET_EXTREMELZMACompressorLZMADecompressorLZMAFile LZMAErroropencompress decompressis_check_supportedN)*)_encode_filter_properties_decode_filter_propertiesceZdZ dddddddZdZedZdZdZd Z d Z dd Z dd Z dd Z ddZdZej"fdZdZy)r Nformatcheckpresetfiltersc d|_d|_t|_|dvr,|dk7r t d| t d|t }t }nH|dvr*|t}t}t|||||_ d|_ nt d j|t|ttt j"fr3d |vr|d z }t%j&|||_d |_||_n2t)|d s t)|d r||_||_n t+d|jt k(rGt-j.|jt0t2||}t5j6||_yy)NF)rrbr-zACannot specify an integrity check when opening a file for readingzICannot specify a preset compression level when opening a file for reading)wwbaabxxbr.r&zInvalid mode: {!r}bTreadwritez6filename must be a str, bytes, file or PathLike object)trailing_errorr/r2)_fp_closefp _MODE_CLOSED_mode ValueErrorr _MODE_READr _MODE_WRITEr _compressor_posr/ isinstancestrbytesosPathLikebuiltinsr"hasattr TypeError _compressionDecompressReaderrr!ioBufferedReader_buffer) selffilenamemoder/r0r1r2 mode_coderaws +/opt/alt/python312/lib64/python3.12/lzma.py__init__zLZMAFile.__init__1sp) T ! ; { "CDD! "IJJ~$"I 6 6~"#I-V55;W ND DI188>? ? heR[[ 9 :$ }}Xt4DH DM"DJ Xv &'(G*DDH"DJTU U :: #//:J(JC,,S1DL $c |jtk(ry |jtk(r"|jj d|_nM|jt k(r:|j j|jjd|_ |jr|j j d|_d|_ t|_y#d|_d|_ t|_wxYw# |jr|j j d|_d|_ t|_w#d|_d|_ t|_wxYwxYw)NF) rCrBrErUcloserFr@r>rGflushrArVs r[r_zLZMAFile.closes :: %  *zzZ' ""$# {*t//5578#'  *==HHNN$ % )   % )  *==HHNN$ % )   % ) s0BC8&CC58E:&D: E:EEc* |jtk(SN)rCrBras r[closedzLZMAFile.closeds*zz\))r]cX |j|jjSrc)_check_not_closedr@filenoras r[rgzLZMAFile.filenos"A  xx  r]c\ |jxr|jjSrc)readablerUseekableras r[rjzLZMAFile.seekables#7}}:4<<#8#8#::r]cJ |j|jtk(Src)rfrCrEras r[rizLZMAFile.readables =  zzZ''r]cJ |j|jtk(Src)rfrCrFras r[writablezLZMAFile.writables =  zz[((r]cZ |j|jj|Src)_check_can_readrUpeekrVsizes r[rpz LZMAFile.peeks, ||  &&r]cZ |j|jj|Src)rorUr=rqs r[r=z LZMAFile.reads* ||  &&r]c |j|dkrtj}|jj |S)Nr&)rorSDEFAULT_BUFFER_SIZErUread1rqs r[rvzLZMAFile.read1s<  !8))D||!!$''r]cZ |j|jj|Src)rorUreadlinerqs r[rxzLZMAFile.readlines* ||$$T**r]c0 |jt|ttfr t |}nt |}|j }|jj|}|jj||xj|z c_ |Src) _check_can_writerIrK bytearraylen memoryviewnbytesrGr#r@r>rH)rVdatalength compresseds r[r>zLZMAFile.writes{   dUI. /YFd#D[[F%%..t4  z" V  r]c\ |j|jj||Src)_check_can_seekrUseek)rVoffsetwhences r[rz LZMAFile.seeks,  ||  00r]c |j|jtk(r|jj S|j Src)rfrCrErUtellrHras r[rz LZMAFile.tells:/  :: #<<$$& &yyr])Nr4)r-)__name__ __module__ __qualname__r\r_propertyrdrgrjrirmrpr=rvrxr>rSSEEK_SETrrr]r[r r &svS2BtTS2j*0**! ;( ) '' (+*#%++1$r]r r-)r/r0r1r2encodingerrorsnewlinec* d|vrd|vr5td|| td| td| td|jdd} t|| ||||} d|vr-tj|}tj | |||S| S) Ntr<zInvalid mode: z0Argument 'encoding' not supported in binary modez.Argument 'errors' not supported in binary modez/Argument 'newline' not supported in binary moder.)rDreplacer rS text_encoding TextIOWrapper) rWrXr/r0r1r2rrrlz_mode binary_files r[r"r"s. d{ $;49: :  OP P  MN N  NO Oll3#G8WV5"(';K d{##H- XvwGGr]cd t||||}|j||jzSrc)rr#r`)rr/r0r1r2comps r[r#r#?s3 &% 9D ==  --r]c g} t|||} |j|}|j||js td|j }|snWdj |S#t$r|rYwxYw)NzACompressed data ended before the end-of-stream marker was reachedr])rr$r!appendeof unused_datajoin)rr/memlimitr2resultsdecompress r[r$r$KsG !&(G< ##D)C szz?@ @!!   88G    sA-- A<:A<)r5)__all__rNrSrL_lzmar(r)rQrBrErF BaseStreamr r"rr#rr$rr]r[rs  F   f|&&fR-BtTtT-`$2dD .($r]