cehua_lyf
2019-03-06 3c8ee0a8a524a6251d7d5aae2372e76fd8a99b9c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
ŒôXc@sQdZddlZddlZddlZddlZddlZddlZd„Zd„Zej    dƒj
Z dZ id3d46d5d66d7d86d9d:6d;d<6d=d>6d?d@6dAdB6dCdD6dEdF6dGdH6dIdJ6dKdL6dMdN6dOdP6Z ddQd „ƒYZd!dRd"„ƒYZd#efd$„ƒYZd%„Zd&ejfd'„ƒYZd(„Zd)„Zi dedƒed    ƒfd6d*edƒed    ƒfd*6d ed ƒed    ƒfd 6d edƒed    ƒfd 6d
edƒed    ƒfd
6dedƒedƒfd6dedƒed    ƒfd6dedƒedƒfd6ded ƒedƒfd6dedƒedƒfd6dedƒedƒfd6dedƒed ƒfd6dedƒedƒfd6Zd+„Zd,dSd-„ƒYZed    d.„Zd/„Zejd0eeƒejd0eƒejd0d1ƒejd0d2ƒdS(Ts0.9iÿÿÿÿNcCs t|dƒt|dƒd>S(Niii(tord(tc((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyti16)scCsDt|dƒt|dƒd>t|dƒd>t|dƒd>S(Niiiiiii(R(R((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyti32+ss\w\w\w\ws‰PNG
 
t1iitLsL;2isL;4iitIsI;16BitRGBsRGB;16BtPsP;1isP;2sP;4tLAtRGBAsLA;16BisRGBA;16Bt ChunkStreamcBsSeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zdd„Z    RS(    cCs7||_g|_ttjdƒs3|j|_ndS(Ntcrc32(tfptqueuethasattrtImagetcoretcrc_skiptcrc(tselfR ((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt__init__Ms        cCs¢|jr<|jd\}}}|jd=|jj|ƒn7|jjdƒ}|d}|jjƒ}t|ƒ}t|ƒs•tdt|ƒ‚n|||fS(s.Fetch a new chunk. Returns header information.iÿÿÿÿiisbroken PNG file (chunk %s)(    RR tseektreadttellRtis_cidt SyntaxErrortrepr(Rtcidtpostlents((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyRUs    
 
  cCsd|_|_|_dS(N(tNoneRRR (R((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pytclosegscCs|jj|||fƒdS(N(Rtappend(RRRR((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pytpushjscCs7tjrdG|G|G|GHnt|d|ƒ||ƒS(s"Call the appropriate chunk handlertSTREAMtchunk_(RtDEBUGtgetattr(RRRR((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pytcallns    cCsqtjj|tjj|ƒƒ}t|jjdƒƒt|jjdƒƒf}||krmtd|‚ndS(sRead and verify checksumis*broken PNG file(bad header checksum in %s)N(RRR RR RR(RRtdatatcrc1tcrc2((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyRus
!0 cCs|jjdƒdS(s3Read checksum.  Used if the C module is not presentiN(R R(RRR)((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyR~stIENDcCsag}xT|jƒ\}}}||kr.Pn|j|tj|j|ƒƒ|j|ƒq    |S(N(RRt    ImageFilet
_safe_readR R"(RtendchunktcidsRRR((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pytverifyƒs (
t__name__t
__module__RRR!R#R(RRR1(((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyR Ks                                tPngInfocBs&eZd„Zd„Zdd„ZRS(cCs g|_dS(N(tchunks(R((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyR™scCs|jj||fƒdS(N(R5R"(RRR)((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pytaddœsicCsR|r6ddl}|jd|d|j|ƒƒn|jd|d|ƒdS(NiÿÿÿÿtzTXttttEXtt(tzlibR6tcompress(RtkeytvaluetzipR;((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pytadd_textŸs $(R2R3RR6R@(((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyR4—s        t    PngStreamcBskeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z RS( cCsJtj||ƒi|_i|_d|_d|_d|_d|_dS(Ni(ii(    R Rtim_infotim_texttim_sizeR tim_modetim_tilet
im_palette(RR ((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyR«s                    cCsÑtj|j|ƒ}tj|tdƒƒ}tjrYdG|| GHdGt||ƒGHnt||ƒ}|dkrˆt    d|ƒ‚nyt
j ||dƒ}Wnt
j k
r¿d}nX||jd<|S(NisiCCP profile namesCompression methods+Unknown compression method %s in iCCP chunkit icc_profile(R-R.R tstringtfindtchrRR&RRR;t
decompressterrorR RB(RRRRtit comp_methodRH((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt
chunk_iCCP·s      
 cCs²tj|j|ƒ}t|ƒt|dƒf|_y4tt|dƒt|dƒf\|_|_WnnXt|dƒr’d|j    d<nt|dƒr®t
d‚n|S(    Niii    i it    interlacei sunknown filter category( R-R.R RRDt_MODESRREt
im_rawmodeRBR(RRRR((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt
chunk_IHDRÎs4 cCs5dd|j||jfg|_||_t‚dS(NR?i(ii(RDRSRFtim_idattEOFError(RRR((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt
chunk_IDATÝs"    cCs
t‚dS(N(RV(RRR((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt
chunk_IENDäscCs:tj|j|ƒ}|jdkr6d|f|_n|S(NRR(R-R.R RERG(RRRR((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt
chunk_PLTEéscCsÆtj|j|ƒ}|jdkr[tj|tdƒƒ}|dkrÂ||jd<qÂng|jdkr€t|ƒ|jd<nB|jdkrÂt|ƒt|dƒt|dƒf|jd<n|S(NRit transparencyRRii(    R-R.R RERIRJRKRBR(RRRRRN((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt
chunk_tRNSñs 3cCs0tj|j|ƒ}t|ƒd|jd<|S(Ngjø@tgamma(R-R.R RRB(RRRR((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt
chunk_gAMAÿscCs¬tj|j|ƒ}t|ƒt|dƒ}}t|dƒ}|dkr†t|ddƒt|ddƒf}||jd<n"|dkr¨||f|jd<n|S(    Niiig¦
F%uš?gà?tdpiitaspect(R-R.R RRtintRB(RRRRtpxtpytunitR^((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt
chunk_pHYss ( cCsytj|j|ƒ}ytj|ddƒ\}}Wntk
rS|}d}nX|ru||j|<|j|<n|S(NR:it(R-R.R RItsplitt
ValueErrorRBRC(RRRRtktv((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt
chunk_tEXts 
cCs”tj|j|ƒ}tj|ddƒ\}}t|dƒ}|dkr_td|ƒ‚nddl}|j|dƒ|j    |<|j
|<|S(NR:iis+Unknown compression method %s in zTXt chunkiÿÿÿÿ( R-R.R RIRfRRR;RLRBRC(RRRRRhRiROR;((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt
chunk_zTXts  %( R2R3RRPRTRWRXRYR[R]RdRjRk(((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyRA©s                                           cCs|d tkS(Ni(t_MAGIC(tprefix((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt_accept.st PngImageFilecBsAeZdZdZd„Zd„Zd„Zd„Zd„ZRS(tPNGsPortable network graphicscCsh|jjdƒtkr$td‚nt|jƒ|_x¡|jjƒ\}}}y|jj|||ƒ}WnTtk
rPnCtk
rÃt    j
r«|G|G|GdGHnt j |j|ƒ}nX|jj ||ƒq9|jj|_|jj|_|jj|_|jj|_|jj|_|jjr[|jj\}}tj||ƒ|_n||_dS(Nisnot a PNG files    (unknown)(R RRlRRAtpngR(RVtAttributeErrorRR&R-R.RREtmodeRDtsizeRBtinfoRCttextRFttileRGt ImagePalettetrawtpalettet_PngImageFile__idat(RRRRRtrawmodeR)((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt_open9s.            cCsd|jdkrtdƒ‚n|jj|jdddƒ|jjƒ|jjƒd|_dS(sVerify PNG files)verify must be called directly after openiiiN(R R t RuntimeErrorRRwRqR1R!(R((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyR1is   cCs9|jjdƒr%|jd|_ntjj|ƒdS(s"internal: prepare to read PNG fileRQiN(i(Rutgett decoderconfigR-t load_prepare(R((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyRwscCs·xj|jdkrl|jjdƒ|jjƒ\}}}|dkr`|jj|||ƒdS||_qW|dkr…|j}nt||jƒ}|j||_|jj|ƒS(sinternal: read more image dataiitIDATtDDATRe(R‚Rƒ(R{R RRqR#tmin(RtbytesRRR((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt    load_reads    cCs|jjƒd|_dS(s%internal: finished reading image dataN(RqR!R (R((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pytload_endšs (    R2R3tformattformat_descriptionR}R1RR†R‡(((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyRo4s    0            cCs t|d?d@ƒt|d@ƒS(Niiÿ(RK(RN((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyto16¤scCsDt|d?d@ƒt|d?d@ƒt|d?d@ƒt|d@ƒS(Niiÿii(RK(RN((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyto32§ssL;1cGs„tj|dƒ}|jtt|ƒƒ|ƒ|j|ƒtjj|tjj|ƒƒ\}}|jt|ƒt|ƒƒdS(s'Write a PNG chunk (including CRC field)ReN(    RItjointwriteR‹RRRR RŠ(R RR)thitlo((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pytputchunk»s
 't_idatcBseZd„Zd„ZRS(cCs||_||_dS(N(R tchunk(RR R’((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyRÈs    cCs|j|jd|ƒdS(NR‚(R’R (RR)((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyRËs(R2R3RR(((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyR‘Ås    c
Cs¶|j}|dkr¨|jjdƒr;d|jd>}nd}|dkrVd}n0|dkrkd}n|dkr€d}nd}|dkr¨d    ||f}q¨n|jjd
ƒrÊ|jd
}nd }|jjd ƒ|f|_yt|\}    }Wntk
rtd |‚nX|r*|S|jtƒ||dt    |j
dƒt    |j
dƒ|t dƒt dƒt dƒƒ|jdkr°||d|j j dƒƒn|jjdƒr¿|jdkrtdtd|jdƒƒ}
||dt dƒ|
t dƒƒq¿|jdkr^tdtd|jdƒƒ}
||dt|
ƒƒq¿|jdkr°|jd\} } } ||dt| ƒt| ƒt| ƒƒq¿tdƒ‚n|jjdƒ}|r&||dt    t|dddƒƒt    t|dddƒƒt dƒƒn|jjdƒ}|rkx*|jD]\}}||||ƒqHWn|jjdƒrXyddl}|j|jdƒ}|jjjd|jjjd |jjjd!|jjjd"iƒjd#d$ƒƒƒƒjd%d&ƒd' }Wntk
r&d$}nX|d(tj|jdƒ}||d)|ƒntj|t||ƒd*d,|j
d|    fgƒ||d+d ƒy|jƒWnnXdS(-NRtbitsiiiiiis%s;%dt
dictionaryRetoptimizescannot write mode %s as PNGtIHDRitPLTERRZiÿttRNSRiÿÿs%cannot use transparency for this modeR^tpHYsg¦
F%uš?gà?tpnginfoRHiÿÿÿÿtASCIItUnicodet    MacintoshtentUSs ICC Profiletlatin1treplaceiOR8tiCCPR?R,(ii( Rst encoderinfothas_keyt encoderconfigt    _OUTMODEStKeyErrortIOErrorRRlR‹RtRKtimt
getpalettetmaxR„RŠRR`R5Rut
ICCProfilettagstdesctencodet ImportErrorR;R<R-t_saveR‘tflush(R©R tfilenameR’tcheckRstnR“R”R|RZtredtgreentblueR^RuRR)R¬tptname((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyR±ÎsŠ                                     '-     n 
2cKsVddd„ƒY}d„}|ƒ}z ||_t||d|ƒWd|`X|jS(s4Return a list of PNG chunks representing this image.t    collectorcBs eZgZd„Zd„ZRS(cSsdS(N((RR)((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyRNscSs|jj|ƒdS(N(R)R"(RR’((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyR"Ps(R2R3R)RR"(((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyR»Ls    cWsitj|dƒ}tjj|tjj|ƒƒ\}}t|ƒt|ƒ}|j|||fƒdS(NRe(RIRŒRRR RŠR"(R RR)RŽRR((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyR"Ss'N((R£R±R R)(R©tparamsR»R"R ((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt    getchunksIs            Rps.pngs    image/png(RR(ii(RsL;2(ii(RsL;4(ii(RR(ii(RsI;16B(ii(sRGBsRGB(ii(sRGBsRGB;16B(ii(RsP;1(ii(RsP;2(ii(RsP;4(ii(RR(ii(R    R    (ii(R
sLA;16B(ii(R
R
(ii(R
sRGBA;16B(ii((((t __version__treRIRR-RxR;RRtcompiletmatchRRlRRR R4RARnRoRŠR‹RKR¦RR‘R±R½t register_opent register_savetregister_extensiont register_mime(((su.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PngImagePlugin.pyt<module>"sf0        
L…    p             
    {