选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
a ´i-xã@sRdZddlZddlmZmZddlZddlZddlZddl Z ddl Z ddl Z ddgZ ej Z ejdd…ZGdd„deƒZiZee ƒZdZd Zd ZGd d„dƒZe d d d fe ddd fddfZdd„Zdd„Zdd„Zdd„ZdZdadd„Z dd„Z!dd „Z"d!d"„Z#ee#j$ƒZ%d#d$„Z&d%d&„Z'd'd(„Z(d)d*„Z)d+d,„Z*d-d.„Z+Gd/d0„d0ƒZ,dS)1aPzipimport provides support for importing Python modules from Zip archives. This module exports three objects: - zipimporter: a class; its constructor takes a path to a Zip archive. - ZipImportError: exception raised by zipimporter objects. It's a subclass of ImportError, so it can be caught as ImportError, too. - _zip_directory_cache: a dict, mapping archive paths to zip directory info dicts, as used in zipimporter._files. It is usually not needed to use the zipimport module explicitly; it is used by the builtin import mechanism for sys.path items that are paths to Zip archives. éN)Ú_unpack_uint16Ú_unpack_uint32ÚZipImportErrorÚ zipimporteréc@s eZdZdS)rN)Ú__name__Ú __module__Ú __qualname__©r r ú!/usr/lib64/python3.9/zipimport.pyr!sésPKiÿÿc@sleZdZdZdd„Zddd„Zddd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„ZdS)raÿzipimporter(archivepath) -> zipimporter object Create a new zipimporter instance. 'archivepath' must be a path to a zipfile, or to a specific path inside a zipfile. For example, it can be '/tmp/myimport.zip', or '/tmp/myimport.zip/mydirectory', if mydirectory is a valid directory inside the archive. 'ZipImportError is raised if 'archivepath' doesn't point to a valid Zip archive. The 'archive' attribute of zipimporter objects contains the name of the zipfile targeted. c Cs t|tƒsddl}| |¡}|s,td|d�‚tr<| tt¡}g}zt  |¡}WnFt t fy”t  |¡\}}||kr‚td|d�‚|}|  |¡Yq@0|jd@dkr´td|d�‚q´q@z t|}Wn"tyât|ƒ}|t|<Yn0||_||_tj|ddd…Ž|_|j�r|jt7_dS)Nrzarchive path is empty©Úpathznot a Zip fileiði€éÿÿÿÿ)Ú isinstanceÚstrÚosÚfsdecoderÚ alt_path_sepÚreplaceÚpath_sepÚ_bootstrap_externalÚ _path_statÚOSErrorÚ ValueErrorÚ _path_splitÚappendÚst_modeÚ_zip_directory_cacheÚKeyErrorÚ_read_directoryÚ_filesÚarchiveÚ _path_joinÚprefix)Úselfrrr$ÚstÚdirnameÚbasenameÚfilesr r r Ú__init__?s:        zzipimporter.__init__NcCsNt||ƒ}|dur|gfSt||ƒ}t||ƒrFd|j›t›|›�gfSdgfS)aïfind_loader(fullname, path=None) -> self, str or None. Search for a module specified by 'fullname'. 'fullname' must be the fully qualified (dotted) module name. It returns the zipimporter instance itself if the module was found, a string containing the full path name if it's possibly a portion of a namespace package, or None otherwise. The optional 'path' argument is ignored -- it's there for compatibility with the importer protocol. N)Ú_get_module_infoÚ_get_module_pathÚ_is_dirr"r)r%ÚfullnamerÚmiÚmodpathr r r Ú find_loaderms   zzipimporter.find_loadercCs| ||¡dS)a‹find_module(fullname, path=None) -> self or None. Search for a module specified by 'fullname'. 'fullname' must be the fully qualified (dotted) module name. It returns the zipimporter instance itself if the module was found, or None if it wasn't. The optional 'path' argument is ignored -- it's there for compatibility with the importer protocol. r)r1)r%r.rr r r Ú find_module�s zzipimporter.find_modulecCst||ƒ\}}}|S)z£get_code(fullname) -> code object. Return the code object for the specified module. Raise ZipImportError if the module couldn't be found. ©Ú_get_module_code©r%r.ÚcodeÚ ispackager0r r r Úget_code™szzipimporter.get_codecCsttr| tt¡}|}| |jt¡r:|t|jtƒd…}z|j|}Wntyftdd|ƒ‚Yn0t |j|ƒS)zšget_data(pathname) -> string with file data. Return the data associated with 'pathname'. Raise OSError if the file wasn't found. NrÚ) rrrÚ startswithr"Úlenr!rrÚ _get_data)r%ÚpathnameÚkeyÚ toc_entryr r r Úget_data£s  zzipimporter.get_datacCst||ƒ\}}}|S)zjget_filename(fullname) -> filename string. Return the filename for the specified module. r3r5r r r Ú get_filename¸szzipimporter.get_filenamecCs~t||ƒ}|dur$td|›�|d�‚t||ƒ}|r@t |d¡}n |›d�}z|j|}WntylYdS0t|j|ƒ  ¡S)zýget_source(fullname) -> source string. Return the source code for the specified module. Raise ZipImportError if the module couldn't be found, return None if the archive does contain the module, but has no source for it. Núcan't find module ©Únameú __init__.pyú.py) r+rr,rr#r!rr<r"Údecode)r%r.r/rÚfullpathr?r r r Ú get_sourceÃs    zzipimporter.get_sourcecCs(t||ƒ}|dur$td|›�|d�‚|S)z«is_package(fullname) -> bool. Return True if the module specified by fullname is a package. Raise ZipImportError if the module couldn't be found. NrBrC)r+r)r%r.r/r r r Ú is_packageÝs zzipimporter.is_packagecCsöt||ƒ\}}}tj |¡}|dus.t|tƒs@t|ƒ}|tj|<||_zT|rlt||ƒ}t  |j |¡}|g|_ t |dƒs|t |_ t |j||¡t||jƒWntj|=‚Yn0ztj|}Wn"tyâtd|›d�ƒ‚Yn0t d||¡|S)zõload_module(fullname) -> module. Load the module specified by 'fullname'. 'fullname' must be the fully qualified (dotted) module name. It returns the imported module, or raises ZipImportError if it wasn't found. NÚ __builtins__zLoaded module z not found in sys.moduleszimport {} # loaded from Zip {})r4ÚsysÚmodulesÚgetrÚ _module_typeÚ __loader__r,rr#r"Ú__path__ÚhasattrrKÚ_fix_up_moduleÚ__dict__ÚexecrÚ ImportErrorÚ _bootstrapÚ_verbose_message)r%r.r6r7r0ÚmodrrHr r r Ú load_moduleês0     zzipimporter.load_modulecCsVz| |¡sWdSWnty(YdS0tjsLddlm}| t¡dt_t||ƒS)zÌReturn the ResourceReader for a package in a zip file. If 'fullname' is a package within the zip file, return the 'ResourceReader' object for the package. Otherwise return None. Nr)ÚResourceReaderT)rJrÚ_ZipImportResourceReaderÚ _registeredÚ importlib.abcr[Úregister)r%r.r[r r r Úget_resource_readers     zzipimporter.get_resource_readercCsd|j›t›|j›d�S)Nz)r"rr$)r%r r r Ú__repr__"szzipimporter.__repr__)N)N)rrr Ú__doc__r*r1r2r8r@rArIrJrZr`rar r r r r-s.    &z __init__.pycTrEF)z.pycTF)rFFFcCs|j| d¡dS)NÚ.é)r$Ú rpartition)r%r.r r r r,4sr,cCs|t}||jvS©N)rr!)r%rÚdirpathr r r r-8sr-cCs8t||ƒ}tD]$\}}}||}||jvr|SqdSrf)r,Ú_zip_searchorderr!)r%r.rÚsuffixÚ isbytecoder7rHr r r r+As    r+c Cszt |¡}Wn$ty2td|›�|d�‚Yn0|��¤z$| t d¡| ¡}| t¡}Wn$ty„td|›�|d�‚Yn0t|ƒtkr¤td|›�|d�‚|dd…t k�rªz| dd¡| ¡}Wn$tyòtd|›�|d�‚Yn0t |t tdƒ}z| |¡| ¡}Wn&t�yBtd|›�|d�‚Yn0|  t ¡}|dk�rjtd|›�|d�‚|||t…}t|ƒtk�rštd|›�|d�‚|t|ƒ|}t |d d …ƒ}t |d d …ƒ} ||k�rætd |›�|d�‚|| k�rtd |›�|d�‚||8}|| } | dk�r.td|›�|d�‚i} d} z| |¡Wn&t�yjtd|›�|d�‚Yn0| d¡}t|ƒdk�rŒtdƒ‚|dd…dk�r¢�qÐt|ƒdk�r¸tdƒ‚t|dd…ƒ} t|dd …ƒ}t|d d…ƒ}t|dd …ƒ}t |d d …ƒ}t |d d…ƒ}t |dd…ƒ}t|dd…ƒ}t|dd…ƒ}t|dd…ƒ}t |dd…ƒ}|||}|| k�r�td|›�|d�‚|| 7}z| |¡}Wn&t�yÌtd|›�|d�‚Yn0t|ƒ|k�rîtd|›�|d�‚z2t| ||¡ƒ||k�rtd|›�|d�‚Wn&t�yFtd|›�|d�‚Yn0| d@�r\| ¡}n4z| d¡}Wn$t�yŽ| d¡ t¡}Yn0| dt¡}t ||¡}||||||||f}|| |<| d 7} �qlWdƒn1�sæ0Yt d!| |¡| S)"Nzcan't open Zip file: r rdúcan't read Zip file: érznot a Zip file: zcorrupt Zip file: é éézbad central directory size: zbad central directory offset: z&bad central directory size or offset: é.úEOF read where not expectedsPKéé ééééé é"é*zbad local header offset: iÚasciiÚlatin1ú/rz!zipimport: found {} names in {!r})Ú_ioÚ open_coderrÚseekÚEND_CENTRAL_DIR_SIZEÚtellÚreadr;ÚSTRING_END_ARCHIVEÚmaxÚMAX_COMMENT_LENÚrfindrÚEOFErrorrrGÚUnicodeDecodeErrorÚ translateÚ cp437_tablerrrr#rWrX)r"ÚfpÚheader_positionÚbufferÚ file_sizeÚmax_comment_startÚdataÚposÚ header_sizeÚ header_offsetÚ arc_offsetr)ÚcountÚflagsÚcompressÚtimeÚdateÚcrcÚ data_sizeÚ name_sizeÚ extra_sizeÚ comment_sizeÚ file_offsetrDrÚtr r r r `sÔ       ÿ ÿÿ   ÿ    ÿ ÿ          ,r u¾  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿âŒ�¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗â•�╜╛â”�└┴┬├─┼╞╟╚╔╩╦╠â•�╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌â–�▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√â�¿Â²â– Â cCsntrt d¡tdƒ‚daz>zddlm}Wn$tyPt d¡tdƒ‚Yn0Wdanda0t d¡|S)Nzzipimport: zlib UNAVAILABLEú)can't decompress data; zlib not availableTr©Ú decompressFzzipimport: zlib available)Ú_importing_zlibrWrXrÚzlibr¤Ú Exceptionr£r r r Ú_get_decompress_funcþs     r¨c Cs�|\}}}}}}}} |dkr$tdƒ‚t |¡��} z|  |¡Wn$tydtd|›�|d�‚Yn0|  d¡} t| ƒdkr„tdƒ‚| dd…dkr¦td |›�|d�‚t| d d …ƒ} t| d d…ƒ} d| | }||7}z|  |¡Wn&t�ytd|›�|d�‚Yn0|  |¡}t|ƒ|k�r0td ƒ‚Wdƒn1�sF0Y|dk�r^|Sz t ƒ}Wnt �y„td ƒ‚Yn0||dƒS)Nrznegative data sizerkr rwrqrlsPKzbad local file header: érvzzipimport: can't read datar¢iñÿÿÿ) rr~rr€rrƒr;rˆrr¨r§)r"r?Údatapathr˜rœr�r r™ršr›rŒrŽr�ržr“Úraw_datar¤r r r r<s>     (  r<cCst||ƒdkS)Nr)Úabs)Út1Út2r r r Ú _eq_mtimeAsr¯cCs8||dœ}zt |||¡}Wnty0YdS0|d@dk}|r²|d@dk}tjdkr°|sftjdkr°t||ƒ} | dur°t tj| ¡} zt || ||¡Wnty®YdS0nTt ||ƒ\} } | �rt t |dd…ƒ| ƒròt |dd …ƒ| k�rt   d |›�¡dSt |d d…¡} t| tƒ�s4td |›d �ƒ‚| S) N)rDrrrrdÚneverÚalwaysrrrmrnzbytecode is stale for zcompiled module z is not a code object)rÚ _classify_pycrVÚ_impÚcheck_hash_based_pycsÚ_get_pyc_sourceÚ source_hashÚ_RAW_MAGIC_NUMBERÚ_validate_hash_pycÚ_get_mtime_and_size_of_sourcer¯rrWrXÚmarshalÚloadsrÚ _code_typeÚ TypeError)r%r=rHr.r‘Ú exc_detailsr—Ú hash_basedÚ check_sourceÚ source_bytesr¶Ú source_mtimeÚ source_sizer6r r r Ú_unmarshal_codeKsRþ    ÿÿ þÿ  ÿÿÿ rÄcCs| dd¡}| dd¡}|S)Ns ó ó )r)Úsourcer r r Ú_normalize_line_endings~s  rÈcCst|ƒ}t||ddd�S)NrUT)Ú dont_inherit)rÈÚcompile)r=rÇr r r Ú_compile_source…srËc CsDt |d?d|d?d@|d@|d?|d?d@|d@dd d d f ¡S) Né i¼éééé é?rdr)r™Úmktime)Údr¡r r r Ú_parse_dostime‹s    ùrÔc Cs^z>|dd…}|j|}|d}|d}|d}t||ƒ|fWStttfyXYdS0dS)NrrÍéé)rr)r!rÔrÚ IndexErrorr½)r%rr?r™ršÚuncompressed_sizer r r r¹˜s  r¹cCs@|dd…}z|j|}Wnty.YdS0t|j|ƒSdS)Nr)r!rr<r")r%rr?r r r rµ«s   rµc CsÄt||ƒ}tD]ž\}}}||}tjd|jt|dd�z|j|}WntyVYq0|d}t|j|ƒ} |r‚t ||||| ƒ} n t || ƒ} | dur–q|d}| ||fSqt d|›�|d�‚dS)Nz trying {}{}{}rd)Ú verbosityrrBrC) r,rhrWrXr"rr!rr<rÄrËr) r%r.rrirjr7rHr?r0r‘r6r r r r4ºs$    r4c@s<eZdZdZdZdd„Zdd„Zdd„Zd d „Zd d „Z d S)r\z¥Private class used to support ZipImport.get_resource_reader(). This class is allowed to reference all the innards and private parts of the zipimporter. FcCs||_||_dSrf)rr.)r%rr.r r r r*Üsz!_ZipImportResourceReader.__init__cCsZ|j dd¡}|›d|›�}ddlm}z||j |¡ƒWStyTt|ƒ‚Yn0dS)Nrcr}r)ÚBytesIO)r.rÚiorÚrr@rÚFileNotFoundError)r%ÚresourceÚfullname_as_pathrrÚr r r Ú open_resourceàs  z&_ZipImportResourceReader.open_resourcecCst‚dSrf)rÜ)r%rÝr r r Ú resource_pathész&_ZipImportResourceReader.resource_pathcCsF|j dd¡}|›d|›�}z|j |¡Wnty@YdS0dS)Nrcr}FT)r.rrr@r)r%rDrÞrr r r Ú is_resourceïs z$_ZipImportResourceReader.is_resourcec csªddlm}||j |j¡ƒ}| |jj¡}|j}tƒ}|jj D]d}z||ƒ |¡}Wnt ylYq@Yn0|jj }t |ƒdkrŒ|j Vq@||vr@|  |¡|Vq@dS)Nr)ÚPath)ÚpathlibrârrAr.Ú relative_tor"ÚparentÚsetr!rrDr;Úadd) r%râÚ fullname_pathÚ relative_pathÚ package_pathÚ subdirs_seenÚfilenameÚrelativeÚ parent_namer r r Úcontentsús        z!_ZipImportResourceReader.contentsN) rrr rbr]r*rßràrárïr r r r r\Ôs  r\)-rbÚ_frozen_importlib_externalrrrÚ_frozen_importlibrWr³r~rºrLr™Ú__all__rÚpath_separatorsrrVrrÚtyperOr�r„r†rrhr,r-r+r r‹r¥r¨r<r¯rÄÚ__code__r¼rÈrËrÔr¹rµr4r\r r r r ÚsX  ü  ~þ. .