hyb
2026-01-30 44480e71b27aa9d4cb8441f50c873f1b110e9691
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
Ë
Ñ^ix+ãó¢—ddlZddlZddlZddlmZmZmZmZmZddl    m
Z
m Z m Z m Z ddlmZmZdZ    ee «Z    Gd„de«ZGd„d    e«Zy)
éNé)ÚAnsiForeÚAnsiBackÚ    AnsiStyleÚStyleÚBEL)Úenable_vt_processingÚWinTermÚWinColorÚWinStyle)ÚwindllÚ winapi_testcóP—eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z e d
„«Z y ) Ú StreamWrapperz´
    Wraps a stream (such as stdout), acting as a transparent proxy for all
    attribute access apart from method 'write()', which is delegated to our
    Converter instance.
    có —||_||_y©N)Ú_StreamWrapper__wrappedÚ_StreamWrapper__convertor)ÚselfÚwrappedÚ    converters   õgH:\项目\archive\测试组\脚本\Change_password\venv_build\Lib\site-packages\colorama/ansitowin32.pyÚ__init__zStreamWrapper.__init__s€ð!ˆŒØ$ˆÕócó.—t|j|«Sr)Úgetattrr)rÚnames  rÚ __getattr__zStreamWrapper.__getattr__s€Üt—~‘~ tÓ,Ð,rcó:—|jj|i|¤ŽSr)rÚ    __enter__©rÚargsÚkwargss   rr zStreamWrapper.__enter__s €ð(ˆt~‰~×'Ñ'¨Ð8°Ñ8Ð8rcó:—|jj|i|¤ŽSr)rÚ__exit__r!s   rr%zStreamWrapper.__exit__%s€Ø&ˆt~‰~×&Ñ&¨Ð7°Ñ7Ð7rcó—||_yr©Ú__dict__)rÚstates  rÚ __setstate__zStreamWrapper.__setstate__(s    €Øˆ rcó—|jSrr'©rs rÚ __getstate__zStreamWrapper.__getstate__+s €Ø}‰}Ðrcó:—|jj|«yr)rÚwrite©rÚtexts  rr/zStreamWrapper.write.s€Ø ×Ñ×јtÕ$rcóҗ|j}dtjvr'|%|tjus|tj
ury    |j }|«S#t$rYywxYw)NÚPYCHARM_HOSTEDTF)rÚosÚenvironÚsysÚ
__stdout__Ú
__stderr__ÚisattyÚAttributeError)rÚstreamÚ stream_isattys   rr9zStreamWrapper.isatty1sb€Ø—‘ˆØ œrŸz™zÑ )ØÐ! v´·±Ñ'?À6ÌSÏ^É^ÑC[Øð    #Ø"ŸM™MˆMñ!“?Ð "øôò    Ùð    úsÁ AÁ    A&Á%A&có^—|j}    |jS#ttf$rYywxYw©NT)rÚclosedr:Ú
ValueError)rr;s  rr?zStreamWrapper.closed=s3€à—‘ˆð    Ø—=‘=Ð  øô¤
Ð+ò    Ùð    ús Ž š,«,N)Ú__name__Ú
__module__Ú __qualname__Ú__doc__rrr r%r*r-r/r9Úpropertyr?©rrrrsC„ñò
%ò -ò9ò 8òòò%ò
#ðñóñrrcó¢—eZdZdZej
d«Zej
d«Zdd„Zd„Z    d„Z
d„Z d    „Z d
„Z d „Zd „Zd „Zd„Zd„Zd„Zy)Ú AnsiToWin32z¾
    Implements a 'write()' method which, on Windows, will strip ANSI character
    sequences from the text, and if outputting to a tty, will convert them into
    win32 function calls.
    z?\[((?:\d|;)*)([a-zA-Z])?z?\]([^]*)()?Ncó—||_||_t||«|_tj
dk(}|xr
t «}    |j«}| xs t|«}|jj xr|jj«}    |xr| }
|€|
xs|     }||_ |€|
xr|    }||_ |j«|_|jt j"u|_y#t$rd}YŒ­wxYw)NÚntéÿÿÿÿ)rÚ    autoresetrr;r4rrÚfilenoÚ    Exceptionr    r?r9ÚstripÚconvertÚget_win32_callsÚ win32_callsr6ÚstderrÚ    on_stderr) rrrPrOrLÚ
on_windowsÚconversion_supportedÚfdÚsystem_has_native_ansiÚhave_ttyÚneed_conversions            rrzAnsiToWin32.__init__Qs€àˆŒ ð#ˆŒô$ G¨TÓ2ˆŒ ä—W‘W ‘_ˆ
ð
 *Ò;¬k«mÐð    Ø—‘Ó!ˆBð&0 Ò!KÔ3GÈÓ3KÐØ—{‘{×)Ñ)Ð)ÒB¨d¯k©k×.@Ñ.@Ó.BˆØ.ÒMÐ7MÐ3Mˆð ˆ=Ø#Ò3¨8 |ˆE؈Œ
ð ˆ?Ø%Ò2¨(ˆG؈Œ ð ×/Ñ/Ó1ˆÔ🙬¯©Ð3ˆøô)ò    ØŠBð    úsÁC2Ã2 DÃ?DcóR—|jxs|jxs |jS)aj
        True if this class is actually needed. If false, then the output
        stream will not be affected, nor will win32 calls be issued, so
        wrapping stdout is not actually required. This will generally be
        False on non-Windows platforms, unless optional functionality like
        autoreset has been requested using kwargs to init()
        )rPrOrLr,s rÚ should_wrapzAnsiToWin32.should_wrapys €ð|‰|Ò;˜tŸz™zÒ;¨T¯^©^Ð;rc óü —|jrætrßitjtjf“tj
tj tj
f“tjtj tjf“tjtj tjf“tjtjtjf“tjtjtjf“tjtjtjf“tj tjtj f“tj"tjtj"f“tj$tjtj$f“tj&tjtj&f“tj(tjtj*f“tj,tjf“tj.tjtjdf“tj0tjtjdf“tj2tjtjdf“tj4tjtj df“itj6tjtj"df“tj8tjtj$df“tj:tjtj&df“tj<tjtj*df“t>jtj@tjf“t>jtj@tjf“t>jtj@tjf“t>j tj@tj f“t>j"tj@tj"f“t>j$tj@tj$f“t>j&tj@tj&f“t>j(tj@tj*f“t>j,tj@f“t>j.tj@tjdf“t>j0tj@tjdf“t>j2tj@tjdf“t>j4tj@tj df“¥t>j6tj@tj"dft>j8tj@tj$dft>j:tj@tj&dft>j<tj@tj*dfi¥StC«Sr>)"rPÚwintermrÚ    RESET_ALLÚ    reset_allÚBRIGHTÚstyler ÚDIMÚNORMALrÚBLACKÚforer ÚREDÚGREENÚYELLOWÚBLUEÚMAGENTAÚCYANÚWHITEÚGREYÚRESETÚ LIGHTBLACK_EXÚ LIGHTRED_EXÚ LIGHTGREEN_EXÚLIGHTYELLOW_EXÚ LIGHTBLUE_EXÚLIGHTMAGENTA_EXÚ LIGHTCYAN_EXÚ LIGHTWHITE_EXrÚbackÚdictr,s rrQzAnsiToWin32.get_win32_callsƒsž€Ø <‹<žGð'Ü×#Ñ#¤g×&7Ñ&7Ð%:ð'ä× Ñ ¤7§=¡=´(·/±/Ð"Bð'ô— ‘ ¤§ ¡ ¬x¯©Ð?ð'ô× Ñ ¤7§=¡=´(·/±/Ð"Bð    'ô
—‘¤§¡¬x¯~©~Р>ð 'ô — ‘ œwŸ|™|¬X¯\©\Ð:ð 'ô—‘¤§¡¬x¯~©~Р>ð'ô—‘¤'§,¡,´·±Ð!@ð'ô— ‘ ¤§ ¡ ¬h¯m©mÐ<ð'ô× Ñ ¤7§<¡<´×1AÑ1AÐ"Bð'ô— ‘ ¤§ ¡ ¬h¯m©mÐ<ð'ô—‘¤§¡¬x¯}©}Р=ð'ô—‘¤§¡Р0ð'ô×&Ñ&¬¯©´x·~±~ÀtÐ(Lð'ô×$Ñ$¤w§|¡|´X·\±\À4Ð&Hð'ô ×&Ñ&¬¯©´x·~±~ÀtÐ(Lð!'ô"×'Ñ'¬'¯,©,¼¿¹ÈÐ)Nñ#'ô$×%Ñ%¬¯ © ´h·m±mÀTÐ'Jð%'ô&×(Ñ(¬7¯<©<¼×9IÑ9IÈ4Ð*Pð''ô(×%Ñ%¬¯ © ´h·m±mÀTÐ'Jð)'ô*×&Ñ&¬¯©´x·}±}ÀdÐ(Kð+'ô,—‘¤§¡¬x¯~©~Р>ð-'ô.— ‘ œwŸ|™|¬X¯\©\Ð:ð/'ô0—‘¤§¡¬x¯~©~Р>ð1'ô2—‘¤'§,¡,´·±Ð!@ð3'ô4— ‘ ¤§ ¡ ¬h¯m©mÐ<ð5'ô6× Ñ ¤7§<¡<´×1AÑ1AÐ"Bð7'ô8— ‘ ¤§ ¡ ¬h¯m©mÐ<ð9'ô:—‘¤§¡¬x¯}©}Р=ð;'ô<—‘¤§¡Р0ð='ô>×&Ñ&¬¯©´x·~±~ÀtÐ(Lð?'ô@×$Ñ$¤w§|¡|´X·\±\À4Ð&HðA'ôB×&Ñ&¬¯©´x·~±~ÀtÐ(LðC'ôD×'Ñ'¬'¯,©,¼¿¹ÈÐ)NñE'ôF×%Ñ%¬¯ © ´h·m±mÀTÐ'JÜ×(Ñ(¬7¯<©<¼×9IÑ9IÈ4Ð*PÜ×%Ñ%¬¯ © ´h·m±mÀTÐ'JÜ×&Ñ&¬¯©´x·}±}ÀdÐ(KñM'ð' ôP‹vˆ rcóü—|js |jr|j|«n5|jj    |«|jj «|j r|j«yyr)rOrPÚwrite_and_convertrr/ÚflushrLr`r0s  rr/zAnsiToWin32.write¯sU€Ø :Š:˜ŸšØ × "Ñ " 4Õ (à L‰L× Ñ ˜tÔ $Ø L‰L× Ñ Ô  Ø >Š>Ø N‰NÕ ð rcóܗ|jr|jdd«y|jsA|jjs*|j
j tj«yyy)NÚm©r)    rPÚ
call_win32rOr;r?rr/rr_r,s rr`zAnsiToWin32.reset_all¹sG€Ø <Š<Ø O‰O˜C Õ &Ø—’ D§K¡K×$6Ò$6Ø L‰L× Ñ œuŸ™Õ /ð%7rcó,—d}|j|«}|jj|«D]G}|j«\}}|j    |||«|j
|j «Ž|}ŒI|j    ||t|««y)zª
        Write the given text to our wrapped stream, stripping any ANSI
        sequences from the text, and optionally converting them into win32
        calls.
        rN)Ú convert_oscÚ ANSI_CSI_REÚfinditerÚspanÚwrite_plain_textÚ convert_ansiÚgroupsÚlen)rr1ÚcursorÚmatchÚstartÚends      rr{zAnsiToWin32.write_and_convertÀs€ð ˆØ×Ñ Ó%ˆØ×%Ñ%×.Ñ.¨tÓ4ò    ˆEØŸ™›‰JˆE3Ø × !Ñ ! $¨°Ô 6Ø ˆD× Ñ ˜uŸ|™|›~Ñ .؉Fð        ð
     ×јd F¬C°«IÕ6rcó€—||kr9|jj|||«|jj«yyr)rr/r|)rr1rŒrs    rr†zAnsiToWin32.write_plain_textÐs6€Ø 3Š;Ø L‰L× Ñ ˜t E¨#˜Ô /Ø L‰L× Ñ Õ  ð rcóf—|jr%|j||«}|j||«yyr)rPÚextract_paramsr€)rÚ paramstringÚcommandÚparamss    rr‡zAnsiToWin32.convert_ansiÖs.€Ø <Š<Ø×(Ñ(¨°+Ó>ˆFØ O‰O˜G VÕ ,ð rcó—|dvrEtd„|jd«D««}t|«dkr|dz}t|«dkrŒ|Std„|jd«D««}t|«dk(r|dvrd    }|S|d
vrd}|S) NÚHfc3óRK—|]}t|«dk7r t|«nd–—Œ!y­w)rrN©r‰Úint©Ú.0Úps  rú    <genexpr>z-AnsiToWin32.extract_params.<locals>.<genexpr>Þs#èø€ÒX¸A¤S¨£V¨q¢[œ3˜qœ6°aÓ7ÑXùs‚%'ú;é)rc3óPK—|]}t|«dk7sŒt|«–—Œ y­w)rNr—r™s  rrœz-AnsiToWin32.extract_params.<locals>.<genexpr>ãsèø€ÒQ aÄSÈÃVÈqÃ[œ3˜qŸ6ÑQùs‚&–&rÚJKmrÚABCD)ÚtupleÚsplitr‰)rr’r‘r“s    rrzAnsiToWin32.extract_paramsÜsž€Ø d‰?ÜÑXÀ×ARÑARÐSVÓAWÔXÓXˆFܐf“+ ’/à $™ôf“+ “/ðˆ ôÑQ¨;×+<Ñ+<¸SÓ+AÔQÓQˆFܐ6‹{˜aÒà˜eÑ#Ø!Fðˆ ð Ñ&Ø!Fàˆ rcó —|dk(rN|D]H}||jvsŒ|j|}|d}|dd}t|j¬«}||i|¤ŽŒJy|dvr%tj    |d|j¬«y|dvr%tj |d|j¬«y|dvr"tj ||j¬«y|dvr?|d}d| fd|f|df| dfd    œ|\}    }
tj|    |
|j¬«yy)
Nr~rr)rTÚJÚKr•r¡)ÚAÚBÚCÚD)rRryrTr^Ú erase_screenÚ
erase_lineÚset_cursor_positionÚ cursor_adjust) rr’r“ÚparamÚ    func_argsÚfuncr"r#ÚnÚxÚys            rr€zAnsiToWin32.call_win32îs#€Ø cŠ>Øò *Ø˜D×,Ñ,Ò,Ø $× 0Ñ 0°Ñ 7IØ$ Q™<DØ$ Q R˜=DÜ!¨D¯N©NÔ;FÙ˜$Ð) &Ó)ñ  *ð˜‰^Ü ×  Ñ   ¨¡°d·n±nÐ  Õ EØ ˜‰^Ü × Ñ ˜v a™y°D·N±NÐ Õ CØ ˜‰_Ü × 'Ñ '¨¸$¿.¹.Ð 'Õ IØ ˜Ñ ؐq‘    ˆAà˜a˜R˜¨¨1 v°Q¸°FÀ1À"ÀaÀÑIÈ'ÑR‰DˆAˆqÜ × !Ñ ! ! Q°$·.±.Ð !Õ Að    rcóH—|jj|«D]ƒ}|j«\}}|d|||dz}|j«\}}|tk(sŒ>|j d«dk(sŒS|j d«}|ddvsŒltj|d«Œ…|S)NrrrÚ02)    Ú ANSI_OSC_REr„r…rˆrÚcountr£r^Ú    set_title)rr1r‹rŒrr‘r’r“s        rr‚zAnsiToWin32.convert_oscs¨€Ø×%Ñ%×.Ñ.¨tÓ4ò     5ˆEØŸ™›‰JˆE3ؘ˜< $ s t *Ñ,ˆDØ#(§<¡<£>Ñ  ˆK˜Øœ#‹~Ø×$Ñ$ SÓ)¨QÓ.Ø(×.Ñ.¨sÓ3Fð˜a‘y DÒ(Ü×)Ñ)¨&°©)Õ4ð     5ðˆ rcó8—|jj«yr)rr|r,s rr|zAnsiToWin32.flushs€Ø  ‰ ×ÑÕr)NNF)rArBrCrDÚreÚcompilerƒr·rr\rQr/r`r{r†r‡rr€r‚r|rFrrrHrHHsj„ñð
"—*‘*ÐFÓG€Kؐ"—*‘*Ð<Ó=€Kó&4òP<ò*òXò0ò 7ò !ò -ò ò$Bò, ó rrH)r»r6r4Úansirrrrrr^r    r
r r Úwin32r rÚobjectrrHrFrrú<module>rÀsLðã    Û
Û    ç;Õ;ßFÓFß&ð €Ø    ÐÙ‹i€Gô5Fô5ôpM&õMr