python (3.11.7)

(root)/
lib/
python3.11/
__pycache__/
pydoc.cpython-311.pyc

eOdZdgZdZdZdZddlZddlZddlZddl	Zddl
ZddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZddlmZdd	lmZd
ZdZ dZ!d
Z"dZ#dZ$dZ%dZ&dZ'dZ(dZ)ej*dej+Z,dZ-dZ.dZ/dZ0e1ej2Z3dSdZ4dZ5dZ6dZ7dZ8ifdZ9Gd d!e:Z;d"Z<difd#Z=Gd$d%Z>Gd&d'eZ?Gd(d)e>Z@Gd*d+eZAGd,d-e>ZBGd.d/eBZCd0aDd1ZEd2ZFd3ZGd4ZHd5ZId6ZJd7ZKd8ZLdTd9ZMeBZNeCZOe@ZPdTd:ZQ		dUd<ZR		dVd>ZSdTd?ZTdWdAZUGdBdCZVeVZWGdDdEZXdFZYdGZZdXdIZ[dTdJdKdLdMZ\dNZ]dOZ^dPZ_dQZ`eadRkre`dSdS)YaGenerate Python documentation in HTML or text for interactive use.

At the Python interactive prompt, calling help(thing) on a Python object
documents the object, and calling help() starts up an interactive
help session.

Or, at the shell command line outside of Python:

Run "pydoc <name>" to show documentation on something.  <name> may be
the name of a function, module, package, or a dotted reference to a
class or function within a module or module in a package.  If the
argument contains a path segment delimiter (e.g. slash on Unix,
backslash on Windows) it is treated as the path to a Python source file.

Run "pydoc -k <keyword>" to search for a keyword in the synopsis lines
of all available modules.

Run "pydoc -n <hostname>" to start an HTTP server with the given
hostname (default: localhost) on the local machine.

Run "pydoc -p <port>" to start an HTTP server on the given port on the
local machine.  Port number 0 can be used to get an arbitrary unused port.

Run "pydoc -b" to start an HTTP server on an arbitrary unused port and
open a web browser to interactively browse documentation.  Combine with
the -n and -p options to control the hostname and port used.

Run "pydoc -w <name>" to write out the HTML documentation for a module
to a file named "<name>.html".

Module docs for core modules are assumed to be in

    https://docs.python.org/X.Y/library/

This can be overridden by setting the PYTHONDOCS environment variable
to a different URL or to a local directory containing the Library
Reference Manual pages.
helpzKa-Ping Yee <ping@lfw.org>z26 February 2001zGuido van Rossum, for an excellent programming language.
Tommy Burnette, the original creator of manpy.
Paul Prescod, for all his work on onlinehelp.
Richard Chamberlain, for the first implementation of textdoc.
N)deque)Repr)format_exception_onlycFg}g}tjD]}tj|pd}tj|}||vrItj|r*|||||S)zAConvert sys.path into a list of absolute, existing, unique paths..)syspathosabspathnormcaseisdirappend)dirsnormdirsdirnormdirs    9/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/pydoc.pypathdirsrRs
DHx%%goocjS))'""3''(""rw}}S'9'9"KKOOG$$$Kctj|j}|dS|jdddD]}t
||}tj|sdS|S)Nr)	r	modulesget
__module____qualname__splitgetattrinspectisclass)funcclsnames   r
_findclassr$^sw

+//$/
*
*C
{t!'',,SbS1!!c4  ?3tJrcJtj|rZ|jj}|j}tj|r*t
t
||dd|jur|}n~|j}nutj|r.|j}t|}|t
|||urdSn3tj
|rC|j}|j}tj|r|jdz|z|jkr|}n|j}nt|tr4|j}|j}t|}|t
|||urdSntj|stj|ri|j}|j}t
|||urdStj|r2t
|dd}t|t&r||vr||SndS|jD]7}	t+t
||}n#t,$rY-wxYw||cS8dS)N__func__r	__slots__)rismethodr&__name____self__r r	__class__
isfunctionr$	isbuiltinr
isinstancepropertyfgetismethoddescriptorisdatadescriptor__objclass__ismemberdescriptordict__mro__
_getowndocAttributeError)objr#selfr"r!slotsbasedocs        r_finddocr>hsd(|$|OD!!	!GD$--z::clJJCC.CC		C	 	 |oo;'#t,,C7748		3		||OD!!	!#d*c.>>>CC.CC	C	"	"x};'#t,,C7748		#C	(	(
G,DS,I,I
|3S((4%c**	#Cd33E%&&
#45==T{"t	WT40011CC			H	?JJJ4s.H
HHc	t|d}|dS|tur1t|j}t	|t
r||krdS|S#t$rYdSwxYw)zUGet the documentation string for an object if it is not
    inherited from its class.__doc__N)object__getattribute__typer@r.strr8)r9r=typedocs   rr7r7s
%%c955;4d??3ii'G'3''
GsNNt
ttsA8AA
A+*A+ct|}|)	t|}n#ttf$rYdSwxYwt	|t
sdSt
j|S)zGet the documentation string for an object.

    All tabs are expanded to spaces.  To clean up docstrings that are
    indented to line up with blocks of code, any whitespace than can be
    uniformly removed from the second line onwards is removed.N)r7r>r8	TypeErrorr.rDrcleandoc)rAr=s  r_getdocrIsyV

C
{	6""CC	*			44	c3tC   s#88ct|ptj|}|r(tjdd|pdS)z-Get the doc string or comments for an object.z^ *
)rIrgetcommentsresubrstrip)rAresults  rgetdocrQsC
V__
; 3F ; ;F:bfWb&--//::@b@rc\|d}t|dkr
|ddfSt|dkr?|ds%|dd|ddfSdd|fS)z>Split a doc string into a synopsis line (if any) and the rest.
rrKN)striprlenrOjoin)r=liness  rsplitdocrZsIIKKd##E
5zzQQx|	Uqq!2!2Qx59----
tyyrcD|j}|j|kr
|jdz|z}|S)z@Get a class name and qualify it with a module name if necessary.r)r)r)rAmodnamer#s   r	classnamer]s.?D
G## 3&-Krctj|pctj|pOtj|p;tj|p'tj|ptj|S)z>Check if an object is of a type that probably means it's data.)rismoduler 	isroutineisframeistracebackiscode)rAs risdatards| ((FGOF,C,CF!&))F-4_V-D-DF#F++F/6~f/E/EGGrc|r@|d||d}|dd}|@|S)z/Do a series of global replacements on a string.rTrrUN)rXr)textpairss  rreplacerhsM
Qx}}TZZa1122abb	Krct||krTtd|dz
dz}td|dz
|z
}|d|dz|t||z
dzS|S)zCOmit part of a string if needed to make it fit in a maximum length.rrUN...)rWmax)rfmaxlenpreposts    rcramrpsq
4yy6!fQh]##1fQhsl##DSDzE!DT4$999Krz at 0x[0-9a-f]{6,16}(>+)$c8td|S)z>Remove the hexadecimal id from a Python object representation.z\1)_re_stripidrNrfs rstripidrts??5$'''rctj|rdStj|r*t|dd}tj|p|duSdS)zo
    Returns True if fn is a bound method, regardless of whether
    fn was implemented in Python or in C.
    Tr*NF)rr(r-rr_)fnr:s  r_is_bound_methodrwsb
t>r:t,,$T**<tt|==5rc
i}tj|tjD]
\}}d||<|jD]$}|t|%|D]}t||||<|SNrT)r
getmembersr`	__bases__update
allmethodskeysr)clmethodskeyvaluer<s     rr}r}sG(W->??
U))z$''((((||~~((r3''Nrcg}g}|D]8}||r||#||9||fS)zSplit sequence s via predicate, and return pair ([true], [false]).

    The return value is a 2-tuple of lists,
        ([x for x in s if predicate(x)],
         [x for x in s if not predicate(x)])
    r)s	predicateyesnoxs     r_split_listrsX
C	B
9Q<<	JJqMMMMIIaLLLL7Nrcf|dvrdS|dr|drdS|drt|drdS|tur4|tvr+tt
||dtjrd	S|||vS|dS)
z3Decide whether to show documentation on a variable.>r@__date____file__r)__path____spec__r'
__author__
__cached__
__loader__r__credits____package____version____builtins__rr__rT__fieldsTNF)
startswithendswithhasattr
__future___future_feature_namesr.r_Feature)r#allr9s   rvisiblenamersHHHqt>t!4!4>QQsY 7 7t
*)>!>!>gc4..
0CDD	5
s{??3''''rcg}tj|D]T\}}}}tj|r d}t|tr	|jd}|||||fU|S)zCWrap inspect.classify_class_attrs, with fixup for data descriptors.data descriptorNreadonly property)rclassify_class_attrsr2r.r/fsetr)rAresultsr#kindr"rs      rrr,sG$+$@$H$H11 tS%#E**	+$D%**
+uz/A*dC/0000Nrct|dg	fdtDn#t$riYnwxYwfd}||dS)zGSort the attrs list in-place by _fields and then alphabetically by namerc<i|]\}}||tz
S)rW).0ir#fieldss   r
<dictcomp>z#sort_attributes.<locals>.<dictcomp>=s)OOO	DtaFmOOOrcL|dd|dfSNr)r)attrfield_orders r<lambda>z!sort_attributes.<locals>.<lambda>@s"KOODGQ77aArrN)r	enumeraterGsort)attrsrAkeyfuncrrs   @@rsort_attributesr7sVY
+
+FOOOOYv=N=NOOOAAAAG	JJ7Js1AActj|rHdD]E}tjtj|d|zrdSFdS)z3Guess whether a path refers to a package directory.)z.pyz.pyc__init__TF)rr
risfilerX)r
exts  r	ispackagerEsc	w}}T"		Cw~~bgll4c1ABBCC
tt
5rcz|}|dddks|s9|}|sn"|dddk%|9|}|dddkr
|dd}|dddkr|dd}|dddkr
|dd}|s+|}|sn|+|dd	}nd}|S)
NrT#zr"""rj"""r\r)readlinerVr)filelinerPs   rsource_synopsisrMs4==??D
rr(c///}}Urr(c///::<<DBQBx6$qrr(4BQBx5ABBx9T#2#Yd**,,	==??D**,,	E""1%++--&MrcXtj|j}||d\}}|||krn|ttjjrtjj	}nE|ttjj
rtjj}nd}|Q	tj
|}n#t$rYdSwxYw|5t|}dddn#1swxYwYn|d|}tjd||}	tj|}	n#YdSxYwt(jd=|	jr|	jdnd}||f||<|S)z.Get the one-line summary out of a module file.NNN__temp__loaderr)rstatst_mtimerrtuple	importlib	machineryBYTECODE_SUFFIXESSourcelessFileLoaderEXTENSION_SUFFIXESExtensionFileLoadertokenizeopenOSErrorrutilspec_from_file_location
_bootstrap_loadr	rr@
splitlines)
filenamecachemtime
lastupdaterP
loader_clsrrspecmodules
          rsynopsisr^sGH&E8\::JZ%//U9#6#HIIJJ	",AJJ


uY%8%KLL
M
M	",@JJJ
}X..


tt

/
/(..
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/ Z
H55F>99*hAG:IID
"-33D99
ttJ'7=~OV^..00334F &/hMs0C
C*)C*/DDDE&&E+ceZdZdZdZdZdS)ErrorDuringImportzEErrors that occurred while trying to import something to document it.c>||_|\|_|_|_dSN)rexcrtb)r:rexc_infos   rrzErrorDuringImport.__init__s 
(0%$*dgggrcD|jj}d|jd|d|jS)Nzproblem in  - z: )rr)rr)r:rs  r__str__zErrorDuringImport.__str__s)h+/===###tzzJJrN)r)rrr@rrrrrrrs=OO111KKKKKrrctjj}t|d5}||t|k}dddn#1swxYwYtj|}tj	|\}}|r!tj
||}n tj
||}tj
|||}	tj|S#t!|t#jxYw)z<Import a Python source file or compiled file given its path.rbNr)rrMAGIC_NUMBERrreadrWrr
basenamesplitext_bootstrap_externalrSourceFileLoaderrrrrr	r)	r
magicris_bytecoderr#rrrs	         r
importfilersJN'E	
dD		5TtyyU444555555555555555w%%H  **ID#L.CCD$OO.??dKK>11$V1LLD6#))$///6clnn555s'AAAD&&#E	c	|r_tjvrQtjvrCfdtjD}g|zD]$}tj|||<tj|=%t}n#tjx\}}}}	tjvr%ttjj|	|turt|j|	t|tr|jkrYdSttjxYwdddD]$}
t||
}#t$rYdSwxYw|S)aImport a module; handle errors; return None if the module isn't found.

    If the module *is* found but an exception occurs, it's wrapped in an
    ErrorDuringImport exception and reraised.  Unlike __import__, if a
    package path is specified, the module at the end of the path is returned,
    not the package at the beginning.  If the optional 'forceload' argument
    is 1, we reload the module from disk (unless it's a dynamic extension).cDg|]}|dz|S)r)r)rmr
s  r
<listcomp>zsafeimport.<locals>.<listcomp>s.KKKa!,,tcz2J2JKKKKrNrrT)r	rbuiltin_module_names
__import__rrrSyntaxErrorr
issubclassImportErrorr#rrr8)r
	forceloadrsubsrrrrrinfoparts`          r
safeimportr	s :
	),,3333LKKK3;KKK 6D=))C!$S!1E#JC((D!!:"%,..0eR43;#CK$5$>EEE
K

#END999
[
)
)	:ejD.@.@44$D#,..999

3#++fd++VV***dddd*Ms%A0A44BD$!D$E
E&%E&ceZdZejddejddzZd	dZ	d	dZ
e
xZxZxZ
xZxZZejdfdZdS)
Doc
PYTHONDOCSz%https://docs.python.org/%d.%d/libraryNrUc8||f|z}	tj|r
|j|Stj|r
|j|Stj|r
|j|Sn#t$rYnwxYwtj|r
|j	|S|j
|S)z%Generate documentation for an object.)rr_	docmoduler docclassr`
docroutiner8r2docdatadocother)r:rAr#argss    rdocumentzDoc.documents~$
	''E0E)Ev&&C}t}d/C(C ((G$1G*GG			D	#F++GLDL$4G-Gt}d##sA$A$A$$
A10A1cxd|odt|zdt|j}t|)z+Raise an exception for unimplemented types.z!don't know how to document object z	 of type )reprrCr)rG)r:rAr#rmessages     rfailzDoc.failsB
%S4::%%%tF||'<'<>   rstdlibc	tj|}n#t$rd}YnwxYwtjd|j}tj|}t|ttr|jdvsH||r|tj
|ds|jdvr|drAd|d|j}n=tj
||jd	z}nd
}|S)z*Return the location of module docs or None
(built-in)r)
errno
exceptionsgcimpmarshalposixsignalr	_thread	zipimportz
site-packages)z	xml.etreeztest.pydoc_mod)zhttp://zhttps://z
{}/{}.html/.htmlN)r
getabsfilerGrenvironrrr
r
r.rCr)rrXformatrOlower)r:rAbasedirrdoclocs     r	getdoclocz
Doc.getdoclocs`	 %f--DD	 	 	 DDD	 do>>'""7++vtBxx((	
_!999oog&&9//"',,w"H"HII	9

O#BBB  !899
Q%,,V]]3-?-?AVAVAXAXYYffo.C.C.E.E.OPPF
s&&r)r)rrrr)rr	version_inforrrrrrrdocpropertyr	sysconfigget_pathr.rrrrrs G"%"22A2"6!788J$$$$ !!!!LPOIOO:OO;(:	(:8(D(Drrc>eZdZdZdZdZdZdZdZeZ	dZ
eZdS)	HTMLReprzBClass for safely making an HTML representation of a Python object.cttj|dx|_|_d|_dx|_|_dSN
drrmaxlistmaxtuplemaxdict	maxstringmaxotherr:s rrzHTMLRepr.__init__
9
d'))t}),,rc	,t|ddddddS)N&z&amp;<z&lt;>z&gt;)rhr:rfs  rescapezHTMLRepr.escapestS'3VDDDrc,tj||Sr)rrr:rAs  rrz
HTMLRepr.reprsyv&&&rc	tt|drfddt|jz}t||rt||||S|ttt||j
SNr)repr_r)rrCrXr)rrrGrprtrr?r:rlevel
methodnames    rrepr1zHTMLRepr.repr1s477J''	; 388DGG,<,B,B,D,D#E#EEJtZ((
;0wtZ00E:::{{4Q 0 0$-@@AAArct||j}t|}d|vr=dt|ddvr*d|dz||z|dzStjdd||S)Nr\\rKrrz-((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)z<span class="repr">\1</span>)rpr>rrhrGrMrNr:rrNtesttestreprs     rrepr_stringzHTMLRepr.repr_string sAt~&&::4<<D%(D(DDD!$t{{4'8'888A;FFvF5kk(++--	-rc		|ttt||jS#|d|jjzcYSxYwNz
<%s instance>)rGrprtrr>r+r)r:rrNs   r
repr_instancezHTMLRepr.repr_instance-s`	G;;tGDGG$4$4dnEEFFF	G;;1EEFFFFFsAA$A*N)r)rrr@rrGrrPrWrepr_strr[repr_unicoderrrr4r4sLL---EEE'''BBB	-	-	-HGGGLLLrr4ceZdZdZeZejZejZdZddZ			ddZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdiiifdZddZddZddiifdZdZddiiidfdZddZeZddZddZdS) HTMLDocz'Formatter class for HTML documentation.cd|d|dS)Format an HTML page.zN<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Python: z</title>
</head><body>
z
</body></html>r)r:titlecontentss   rpagezHTMLDoc.page>sUUHHH&	&rrKcd|d|pddS)zFormat a page heading.zU
<table class="heading">
<tr class="heading-text decor">
<td class="title">&nbsp;<br>z</td>
<td class="extra">&nbsp;z</td></tr></table>
    r)r:rbextrass   rheadingzHTMLDoc.headingJs$55&$H$$&	&rNrfc|dd|zzdz}d|d|d}|r|d|d	|d
|d|d|d
z}n|d|d|d|d
z}|d|zzS)z Format a section with a heading.Nz<span class="code">rfz</span>z-<p>
<table class="section">
<tr class="decor zD-decor heading-text">
<td class="section-title" colspan=3>&nbsp;<br>z</td></tr>
    z
<tr><td class="decor z-decor" rowspan=2>z</td>
<td class="decor z-decor" colspan=2>z</td></tr>
<tr><td></td>z-decor">z	</td><td>z.
<td class="singlecolumn">%s</td></tr></table>r)	r:rbr"rcwidthprelude
marginaliagaprPs	         rsectionzHTMLDoc.sectionSs.E1AAIMJ
33	
	NVcc:::sssGGGSSS::FF
V8;ZZZNNFIHTTTrc(d|z}|j|g|RS)z$Format a section with a big heading.z&<strong class="bigsection">%s</strong>)rp)r:rbrs   r
bigsectionzHTMLDoc.bigsectionhs&85@t|E)D))))rc~||}t|dddddddd		S)z!Format literal preformatted text.

z
 
rrfrS<br>
)rG
expandtabsrhrFs  r	preformatzHTMLDoc.preformatmsB{{4??,,--tVWfg (D(<<	<rcd}t|dzdz}tdD]R}|dz}t||z||z|zD],}|t|kr||||zdz}-|dz}Sd|zS)z0Format a list of items into a multi-column list.rKrjrz<td class="multicolumn">rurkz<table><tr>%s</tr></table>)rWrange)r:listr*rProwscolrs       rmulticolumnzHTMLDoc.multicolumnssD		A
!#88	&	&C88F48T#Xd]33
A
As4yy==#ffT!Woo5@Fg%FF+f44rcd|zS)Nz<span class="grey">%s</span>rrFs  rgreyzHTMLDoc.greys
!?$!FFrc:|D]}||vrd||d|dcS|S)z:Make a link for an identifier, given name-to-URL mappings.	<a href=""></a>r)r:r#dictsr5s    rnamelinkzHTMLDoc.namelinksE	B	BDt|||04T


DDDAAAArc	|jtj|j}}t||r1t
|||urd|jd|dt||dSt||S)zMake a link for a class.r.html#rr)r)r	rrrrrr])r:rAr\r#rs     r	classlinkzHTMLDoc.classlinks8I(J(Jf64  	CWVT%:%:f%D%D%Dy'A'A'A'AC
C)))rc(d|jd|jdS)zMake a link for a module.r.html">r)r)rIs  r
modulelinkzHTMLDoc.modulelinks-3___foooNNrc|\}}}}|r||S|r	|d|d}nd|z}|rd|z}n|}d|d|dS)z;Make a link for a module or package to display in an index.rr'z%s.htmlz"<strong>%s</strong>&nbsp;(package)rrr)r)r:
modpkginfor#r
rshadowedurlrfs        r
modpkglinkzHTMLDoc.modpkglinks{*4'dIx	#99T??"	#"&$$-CCd"C	7$>DDD(+TTT22rcd|d|dS)zMake a link to source file.z<a href="file:rrr)r:rr
s   rfilelinkzHTMLDoc.filelinks-0SS$$$77rc|p|j}g}d}tjd}	|||}	|	sn|	\}
}|||||
|	\}}
}}}}|
r=||dd}|d|d|dn3|r8d	t|z}|d|d||dn|r8d
t|z}|d|d||dn|rW|||dzdkr-|d
|	||zn|d|znf|||dzdkr,||	||||n)||	|||}||||dd
|S)zMark up some plain text, given a context of symbols to look for.
        Each context dictionary maps object names to anchor names.rzJ\b((http|https|ftp)://\S+[\w/]|RFC[- ]?(\d+)|PEP[- ]?(\d+)|(self\.)?(\w+))T"z&quot;rrrz(https://www.rfc-editor.org/rfc/rfc%d.txtz!https://peps.python.org/pep-%04d/rT(zself.zself.<strong>%s</strong>NrK)rGrMcompilesearchspanrgroupsrhintrrX)r:rfrGfuncsclassesrrherepatternmatchstartendrschemerfcpepselfdotr#rs                   rmarkupzHTMLDoc.markupsu&4;*344	NN4..E%JE3NN66$tEz"23344438<<>>0Cc7D
=fSkk))#x88SSSABBBB
=@3s88KVVC[[[[IJJJJ

=9CHHDVVC[[[[IJJJJ

=CE	?c))NN7T]]4-I-I#IJJJJNN#=#DEEEEc#a%iC''t}}T7E7KKLLLLt}}T7;;<<<D7	8	vvd455k**+++wwwrcd}|D]}t|tdur|\}}|dz}||||z}|rU||fkrNg}|D]+}	|||	|,|dzd|zdz}|dz}t|tgur|d||||zz}d	|zS)
zAProduce HTML for a class tree as given by inspect.getclasstree().rKrz<dt class="heading-text">r, )z
</dt>z
<dd>
%s</dd>
z
<dl>
%s</dl>
)rCrrrX
formattree)
r:treer\parentrPentrycbasesparentsr<s
          rrzHTMLDoc.formattrees
	'
	'EE{{d2hh&& 5"==$..G"<"<<EUvi// G %FFt~~dG'D'DEEEE#c\DIIg,>,>>DF)+eR(("3doo7A7'7'#'' 6))rc
|j}	|j}n#t$rd}YnwxYw|d}g}t	t|dz
D]B}|dd|d|dzd||dCd||ddz}	d|	z}
	tj	|}tj|}
||}
n#t$rd	}
YnwxYwg}t|d
rwt!|j}|dddkr*|ddd
kr|dd}|d|zt|dr:|t!|j|r|
dd|zz}
|}|dt-z}nd}|
d|
z|z}tj|tj}gi}}tj|tjD]T\}}|tj|p||ur5t9|||r$|||fd|zx||<||<U|D]z\}}|jD]m}|j|j}}t>j !|}||kr8|r6t||r&tE|||ur||vr|dz|zx||<||<n{gi}}tj|tj#D]\}}|*tj$|stj||urOt9|||r>|||fd|z||<tj%|r||||<g}tj|tLD]-\}}t9|||r|||f.'tQ|j)||}|od|z}|d|zz}t|drg}tUj+|j,D]\}}} |||| df |-.|j/}!|0dd|!z}n5|r3.|fd}!|0dd|!z}|rd |D}"1tj2|"d|g}!|D]1\}}|!3|||||2|0d!d"d#|!z}|rcg}!|D]1\}}|!3|||||2|0d$d%d#|!z}|r`g}!|D].\}}|!3||/|0d&d'd(|!z}t|d)rG't!|j4j)}!|0d*d+|!z}t|d,rG't!|j5j)}!|0d-d.|!z}|S)/z/Produce HTML documentation for a module object.NrrTrz.html" class="white">rr!<strong class="title">%s</strong>rr$Revision: $z
version %srz (%s)rz-<br><a href="%(docloc)s">Module Reference</a>rKz<a href=".">index</a><br>rrz#-z<span class="code">%s</span>z
<p>%s</p>
rrzPackage Contentszpkg-contentc:|dSry)r)tr:s rrz#HTMLDoc.docmodule.<locals>.<lambda>9s4??1Q4#8#8rModulescg|]\}}|Srrrrrs   rrz%HTMLDoc.docmodule.<locals>.<listcomp>>s;;;<C;;;rClassesindexr	Functions	functionsDatadatarurAuthorauthorrCreditscredits)6r)__all__r8rryrWrrXrr(urllibparsequoterrGrrDrrVrGrr.localsrhrzr_r 	getmodulerr{rr	rrrr`r-r,rdrrQrwpkgutiliter_modulesrrr}rrrrgetclasstreerrr)#r:rAr#modignoredrpartslinksr
linkednameheadr
rrrversionr-rPrrcdictrrr<r\rrfdictrr=modpkgsimporterispkgrc	classlists#`                                  rrzHTMLDoc.docmodules!	.CC			CCC	

3s5zz!|$$	3	3ALLL%1+&&&&a2
3
3
3
3XXeeBCCj011
2Z?	$%f--D,$$T**C}}S$//HH	$	$	$#HHH	$6=))	=&,--Gss|111gbcclc6I6I!"R%...00KKt{{7';';;<<<6:&&	;KKC$8$899:::	4'DIIdOO33D''DvxxOFFFd$?($JV$STT$VW-=>>R!,VW_EE	:	:JC"5))3V>>sC00:NNC<00003c	9E#Ju!	P	PJC
P
P#}doW11d??v?'&#2F2F?vs++t33"e||7>7IC7OOE#Jt

P2u!,VW5FGG	L	LJC!%(( ,3,=e,D,D,N,NsC00LLL#u...!%E#J)%00Ks%,!,VV<<	*	*JC3V,,
*S%L)))kk&..$.%GG:4s:-#--6:&&	4G,3,@,Q,Q
:
:('5ua89999LLNNN''AAHdoo"M8===FF
	4''8888::Hdoo=(444F	8;;7;;;I 4Y B BDIIKH%
O
O
U

eS$u M MNNNNdoo7CHHX$6$6888F	>H#
O
O
U

eS$u M MNNNNdoo[#((8*<*<>>>F	9H"
;
;
U

eS 9 9::::doo

h 7 7999F6<((	L{{3v'8#9#94>JJHdooh(KKKF6=))	N{{3v'9#:#:DNKKHdooiHMMMF
s!!A	D

DDc> !j}|p|}j}g}	|	j G fdd}
|
tt	j}t
|dkrV d|D])} d|j	z* d fd}
 fd} fd	}fd
tD}i|D]O\}}}}d|zdz|zx|<}	t|}n#t$rYnwxYw	||<@#t$rYLwxYw|r|r|!n|d
d!t|!fd\}}t jur!t jur|}]!urd}nd!j	z}|dz
}t%||
d|z|d}|
d|z|d}|
d|z|d}|d|z|d}|d|z|d}|d|z|d}|gksJ|}|d|	}	||kr
d|d |d!}nd"|d#|d$|d%}|rPg}|D]0}||j	1|d&d'|zz}d}	t	j}n#t*tf$rd(}YnwxYw|r2t-|}|r!|d)kr||zd*z}t1}|r||pdz}|j}|od+|z}|d,|	d-|S).z.Produce HTML documentation for a class object.c eZdZdZfdZdS)(HTMLDoc.docclass.<locals>.HorizontalRulecd|_dSrneedoner@s rrz1HTMLDoc.docclass.<locals>.HorizontalRule.__init__f
 rc:|jrdd|_dS)Nz<hr>
rTrr:pushs rmaybez.HTMLDoc.docclass.<locals>.HorizontalRule.maybeh%<#DNNN rNr)rrrrrsrHorizontalRulere=
!
!
!
!
!
!
!
!
!
!rrrUz&<dl><dt>Method resolution order:</dt>
z<dd>%s</dd>
</dl>
cft||\}}|r
||D]x\}}}}	t
|}||	
n0#t$r#||YnwxYwdy|S)NrSrrrr	Exceptionr)msgrrokr#rhomeclsrrrhrmdictrrArr:s        rspillzHTMLDoc.docclass.<locals>.spillxs#E955IB




S			24

.D$H ' 5 5T]]5$(-wvGGHHHH%===T\\%s;;<<<<<=DJJJJLsA55*B"!B"ct||\}}|rI
||D]'\}}}}
||	(|Srrrrrrrrr#rrrrrrr:s        rspilldescriptorsz*HTMLDoc.docclass.<locals>.spilldescriptorsx#E955IB
9


S			2499.D$DeT3778888Lrct||\}}|r||D]\}}}}t||}t	|}	|	sd|znAt	|j

}	d|	z}	d||	dd|S)Nz<dl><dt>%s</dl>
z <dd><span class="code">%s</span><dl><dt>rrS)rrrrrQrrw)rrrrr#rrrr<r=rrrrrrArr:s          r	spilldataz#HTMLDoc.docclass.<locals>.spilldatas#E955IB




S			24

.D$==)>)>cJJD --CB0478888"kk&--*/%AA@3FddCCC@AAADJJJJLrcHg|]\}}}}t|||||fS)r9rrr#rr"rrAs     rrz$HTMLDoc.docclass.<locals>.<listcomp>L333+T4e&1113$c5)333rr-rc|duSNrUrr	thisclasss rrz"HTMLDoc.docclass.<locals>.<lambda>AaDI<Mrdefined hereinherited from %sz:<br>
z
Methods %sc|ddkSNrTmethodrrs rrz"HTMLDoc.docclass.<locals>.<lambda>AaDH$4rzClass methods %sc|ddkSNrTzclass methodrr
s rrz"HTMLDoc.docclass.<locals>.<lambda>AaDN$:rzStatic methods %sc|ddkSNrTz
static methodrr
s rrz"HTMLDoc.docclass.<locals>.<lambda>AaDO$;rzReadonly properties %sc|ddkSNrTrrr
s rrz"HTMLDoc.docclass.<locals>.<lambda>qt7J/JrzData descriptors %sc|ddkSNrTrrr
s rrz"HTMLDoc.docclass.<locals>.<lambda>qt7H/HrzData and other attributes %sc|ddkSNrTrrr
s rrz"HTMLDoc.docclass.<locals>.<lambda>!rrK	<a name="z">class <strong>
</strong></a>z<strong>z</strong> = <a name="z">class r(%s)rN()rtz&<span class="code">%s<br>&nbsp;</span>rbrj)r)r{rrrgetmrorWrrrrrrrGpopleftrbuiltinsrArrX	signature
ValueErrorrDrGrQrrwrp)"r:rAr#rrrrrealnamerrcrmror<rrrrrrrranchor	inheritedtagrbrdeclr%argspecr=rrrrs"`` ```                        @@@@rrzHTMLDoc.docclassZs?x 	!	!	!	!	!	!	!	!	!	!^

GN6**++s88a<<HHJJJD:;;;
J
J_t~~d6<6G(I(IIJJJJDOOO												$																				$3333/CF/K/K333).
	
	%Cw"%*s"2S"88E#J
--




 &e



!	
(KKMM		!!HQK	*52M2M2M2MNNE9X_,,ho1M1M!f$$$)DNN9;A;L-N-NN9CE6***E,,e4466EE,s2E::<<EE-3U;;==E$$%=%CU%J%JLLE$$%:S%@%%H%HJJEI<sBE6688EB;;;;EC!	F778$$8hhh EE
dddHHH&E	8G
H
Ht~~dF4EFFGGGGFTYYw%7%777E	)&11III&			III		<)nnG
<7d??dkk'222V;Vnn	%#)$Ckk#t~uguEED>D||E7Ha===s6D00
D=<D=E
EE'K<<LLcX|d||zSz)Format an argument default value as text.=)rrrIs  rformatvaluezHTMLDoc.formatvalues%yytyy000111rc|j}|p|}|r|jpddz|z}	d}
d}t|rp|jj}|r||urd|||z}
nD|j$d||jj|z}
nd|||z}
tj|stj|rd}
nd}
||kr
d	|	d
|d}n>|r/tj||g|urd|jdz|zd
|d}d}n|}d	|	d
|d|}d}tj	|rU	tj
|}n#ttf$rd}YnwxYw|r$t|}|dkrd|z}|dd}|sd}|
|z||z|
o|d|
zz}|rd|zS|t#||j|||}|od|z}d|d|dS)z;Produce HTML documentation for a function or method object.rKrr from N method of %s instance unbound %s methodasync rz
"><strong>rz
<a href="#rrrTz</strong></a> = <lambda>z$<strong>%s</strong> <em>lambda</em> r(...)z$<span class="heading-text">%s</span>z<dl><dt>%s</dt></dl>
z%<dd><span class="code">%s</span></dd>rz</dt>r)r)rwr*r+rriscoroutinefunctionisasyncgenfunctiongetattr_staticr`r%r&rGrDrGrrrQrw)r:rAr#rrrrrr'r)noteskipdocsimclassasyncqualifierrbreallinkr-r%r,r=s                    rrzHTMLDoc.docroutines?x$*c1D8F##
	No/G
N"$$#dnnWc&B&BBD?.3dnn1378788DD0$..2M2MMD'//	 *622	 %NNN8>DffhhhOEE
$g,R2>>&HHHK#%000(((<#hh(EV$$	,
!#-f55			*
!
!
! 			
!
,i..z))BTIE&admG	G%G(<(<<AHyy?$FGGI	<+d22++vwIICGACGCC15sss;;s2EEEcg}|j}|r|d|z|t||j}|r|d|z|dd|S)z1Produce html documentation for a data descriptor.z!<dl><dt><strong>%s</strong></dt>
z&<dd><span class="code">%s</span></dd>
rrK)rrrQrwrXr:rAr#rrrrr=s        rrzHTMLDoc.docdataAs~	>D5<===kk&..$.99	BD:S@AAAYwwwrcD|rd|zpd}|||zS)z-Produce HTML documentation for a data object.z<strong>%s</strong> = rKr)r:rAr#rrlhss      rrzHTMLDoc.docotherQs.6/$6<"TYYv&&&&rcFg}|i}tj|gD]@\}}}td|Dr ||d|||vfd||<A||||j}||d|S)z2Generate an HTML index for a directory of modules.Nc3PK|]!}dt|cxkodkncV"dS)iiN)ordrchs  r	<genexpr>z HTMLDoc.index.<locals>.<genexpr>[sD@@RFc"gg////////@@@@@@rrKrTr)rranyrrr}rrr)r:rrrrr#rrcs        rrz
HTMLDoc.indexVsX%,%93%%@%@		!HdE@@4@@@@@
NND"eTX-=>???HTNN##GT_==sGX666rrK)rirKNrfrrNNN)r)rrr@r4_repr_instancerrGrdrhrprrrwr}rrrrrrrrrrr1rrr0rrrrrr_r_5s11XZZND

"F
&
&
&&&&&3419UUUU****
<<<
5
5
5GFF***OOO
3
3
3888#'b"b' ' ' ' V****&ssssj%)d"b`>`>`>`>D222'+R?<?<?<?<B    K''''

7
7
7
7
7
7rr_c.eZdZdZdZdZdZeZdZdS)TextReprzAClass for safely making a text representation of a Python object.cttj|dx|_|_d|_dx|_|_dSr6r:r@s rrzTextRepr.__init__irArcftt|drfddt|jz}t||rt||||St
tt||j	SrK)
rrCrXr)rrrprtrr?rMs    rrPzTextRepr.repr1os477J''	; 388DGG,<,B,B,D,D#E#EEJtZ((
;0wtZ00E:::GDGG$$dm444rct||j}t|}d|vr*dt|ddvrd|dz|z|dzS|S)NrrRrKrSr)rpr>rrhrTs     rrWzTextRepr.repr_stringvsaAt~&&::4<<D%(D(DDD!$t+hqk99rc	ttt||jS#d|jjzcYSxYwrY)rprtrr>r+r)rZs   rr[zTextRepr.repr_instancesF	:Q(($.999	:"Q[%99999s	.1AN)	r)rrr@rrPrWr\r[rrrrQrQgs]KK---555H:::::rrQceZdZdZeZejZdZddZdZ	ddZ
dd	Zdd
ZdZ
ddZdd
ZeZddZdS)TextDocz'Formatter class for text documentation.c@dd|DS)z(Format a string in bold by overstriking.rKc3&K|]}|dz|zV
dS)NrrIs  rrKzTextDoc.bold.<locals>.<genexpr>s*55"rDy2~555555r)rXrFs  rboldzTextDoc.bolds#ww55555555r    c|sdSfd|dD}|r|d|d<d|S)z6Indent text by prepending a given prefix to each line.rKcg|]}|zSrr)rrprefixs  rrz"TextDoc.indent.<locals>.<listcomp>s<<<4$<<<rrSr)rrOrX)r:rfr_rYs  ` rindentzTextDoc.indentsbBB<<<<4::d+;+;<<<0eBi..00%)yyrc||}||dz|zdzS)z&Format a section with a given heading.rSrt)r`rOr[)r:rbrcclean_contentss    rrpzTextDoc.sections@X..5577yy$&7&@@rNrKc	pd}|D]}t|tdurS|\}}||zt|z}|r0||fkr)fd|D}	|dd|	zz}|dz}st|tgur|||||dzz}|S)zBRender in text a class tree as returned by inspect.getclasstree().rKrc38K|]}t|VdSrr])rrr\s  rrKz%TextDoc.formattree.<locals>.<genexpr>s-DDyG44DDDDDDrr rrSr\)rCr]rXr)
r:rr\rr_rPrrrrs
  `       rrzTextDoc.formattrees
	8
	8EE{{d2hh&& 5&9Q+@+@@BUvi//DDDDeDDDG#ftyy/A/A&AAF$eR(($//7Av#8#88
rc	|j}tt|\}}|d||od|zz}t	|dd}||}|||d|dzz}|r||d|z}g}	t
j|tjD]G\}
}|t
j	|p||ur(t|
||r|	|
|fHg}t
j|tjD]Y\}
}|*t
j
|st
j	||ur(t|
||r||
|fZg}
t
j|tD]-\}
}t|
||r|
|
|f.g}t}t!|drt#j|jD]K\}}}|||r||d	z6||L|||d
d|z}g}t
j|tjD];\}
}|j|dzr|
|vr||
<|r@|||d
d|z}|	rd|	D}|t
j|d|g}|	D]/\}
}||||
|0||dd|z}|r`g}|D]/\}
}||||
|0||dd|z}|
rbg}|
D]1\}
}||||
|d2||dd|z}t!|dret;|j}|dddkr*|dddkr|dd}||d|z}t!|dr+||dt;|j z}t!|dr+||dt;|j!z}t!|dr+||d t;|j"z}	t
j#|}n#tH$rd!}YnwxYw||d"|z}|S)#z5Produce text documentation for a given module object.NAMErrNzMODULE REFERENCEa.

The following documentation is automatically generated from the Python
source files.  It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations.  When in doubt, consult the module reference at the
location listed above.
DESCRIPTIONr
 (package)zPACKAGE CONTENTSrSr
SUBMODULEScg|]\}}|Srrrs   rrz%TextDoc.docmodule.<locals>.<listcomp>s999:3999rrTCLASSES	FUNCTIONSF)rmDATArrrrrVERSIONrDATErAUTHORrCREDITSrFILE)%r)rZrQrprr.rrzr rrrr`r-rdsetrrrraddrrXr_rrrrrrDrrVrrrr(rG)r:rAr#rsynopdescrPrr-rrrrrr
modpkgs_namesrr\r
submodulesrrcrrs                        rrzTextDoc.docmodules\vf~~..tfde.E
&FGGfi..''dll+=vI@F	@dll=$???F!,VW_EE	1	1JC%e,,66AAsC001NNC<000!,VW5FGG	/	/JC!%(( ,3,=e,D,D,N,NsC00/LL#u...!,VV<<	*	*JC3V,,
*S%L)))
6:&&
	8,3,@,Q,Q
,
,('5!!'***,NN7\#9::::NN7++++LLNNNdll"DIIg$6$6888F
!,VW5EFF	'	'JC~((44
'M9Q9Q!!#&&&	5OOdlldii
33555F	K99999I$Y22D::;H%
A
A
U

eS$ ? ?@@@@dll9dii6I6IJJJF	MH#
A
A
U

eS$ ? ?@@@@dll;		(8K8KLLLF	HH"
L
L
U

eS$r
 J JKKKKdll6499X3F3FGGGF6=))	?&,--Gss|111gbcclc6I6I!"R%...00dll9g>>>F6:&&	Idll63v3G3GHHHF6<((	Mdll8S9J5K5KLLLF6=))	Odll9c&:L6M6MNNNF	 %f--DD	 	 	 DDD	 $,,vt444
s9WWWcbj}|p|}j}jfd}||krd|z}n|dz|z}|r+t	||}	|dd|	zz}g}
|
j	tj}n#ttf$rd}YnwxYw|r(t|}|r|dkr||zdzt}
|
r|
dzttj}t|d	kr2d
|D]}d||zdt!d
t"Dtj}t|}d}|rXd|d|D]}d|z||kr!dt||z
zdzdGfdd}|fd}fd}fd}fdt)D}|r|r|n|dd	t-|fd\}}t.jurt.jur|}\urd}ndt3jz}t5||d|z|d}|d|z|d }|d!|z|d"}|d#|z|d$}|d%|z|d&}|d'|z|d(}|gksJ|}|d|
}
|
s|dzS|dz|
d)zdzS)*z4Produce text documentation for a given class object.c"t||Srre)rrs  rmakenamez"TextDoc.docclass.<locals>.makenamesQ??"rclass z	 = class r rNr!rSrUzMethod resolution order:r\rKc3K|]=}|jds!|jdk't|jV>dS)rr$N)r)rrrD)rr"s  rrKz#TextDoc.docclass.<locals>.<genexpr>Asa
S
S3L++C00
S58^z5Q5Q

5Q5Q5Q5Q
S
SrrrzBuilt-in subclasses:z    ... and z other subclassesc eZdZdZfdZdS)(TextDoc.docclass.<locals>.HorizontalRulecd|_dSrrr@s rrz1TextDoc.docclass.<locals>.HorizontalRule.__init__Srrc:|jrdd|_dS)NzF----------------------------------------------------------------------rTrrs rrz.TextDoc.docclass.<locals>.HorizontalRule.maybeUrrNrrsrrrRrrrc	Ht||\}}|r||D]i\}}}}	t
|}||	
:#t$r#||	YfwxYw|Srr)
rrrrr#rrrrrrArr:s
        rrzTextDoc.docclass.<locals>.spill[s#E955IB
<


S			24	<	<.D$< ' 5 5T]]5(,c6;;<<<<%===T\\%s;;<<<<<=LsA22*BBct||\}}|rI
||D]'\}}}}
||	(|Srrrs        rrz*TextDoc.docclass.<locals>.spilldescriptorslrrc
Lt||\}}|r

||D]k\}}}}t|}	t|}	n#t$r|j|}	YnwxYw
|	|d|dzl|S)Nrn)rmr=rS)rrrQrr8__dict__r)rrrrr#rrrr=r9rrrArr:s          rrz#TextDoc.docclass.<locals>.spilldataus#E955IB




S			24.D$ --C5%fd33)555%.t45DsD#bcJJLsA  A:9A:cHg|]\}}}}t|||||fSrrrs     rrz$TextDoc.docclass.<locals>.<listcomp>rrrc|duSrrrs rrz"TextDoc.docclass.<locals>.<lambda>rrrr	zMethods %s:
c|ddkSrrr
s rrz"TextDoc.docclass.<locals>.<lambda>rrzClass methods %s:
c|ddkSrrr
s rrz"TextDoc.docclass.<locals>.<lambda>rrzStatic methods %s:
c|ddkSrrr
s rrz"TextDoc.docclass.<locals>.<lambda>rrzReadonly properties %s:
c|ddkSrrr
s rrz"TextDoc.docclass.<locals>.<lambda>rrzData descriptors %s:
c|ddkSrrr
s rrz"TextDoc.docclass.<locals>.<lambda>rrzData and other attributes %s:
c|ddkSrrr
s rrz"TextDoc.docclass.<locals>.<lambda>rrz |  )r)r{rr[maprXrrr%r&rGrDrQrr"rWsortedrC__subclasses__r+rr#rr$rAr]rr`rO)r:rAr#rrr'rr}rbrrcr%r-r=r(r<
subclassesno_of_subclassesMAX_SUBCLASSES_TO_DISPLAYsubclassnamerrrrrr*r+rrrs`` `                       @@@rrzTextDoc.docclasss?x  +	#	#	#	#8tyy222EEIIdOOk1H<E	8(E**GFTYYw%7%777E	)&11III&			III		,)nnG
,7d??TG^d*+++Vnn	DtGN6**++s88a<<D+,,,
.
.Vhhtnn,----DHHH
S
S$*=*=f*E*E
S
S
S	




z??$%!	D'((( *+E,E+E F
,
,Vl*++++";;;^),EEFFG()***
DHHH	!	!	!	!	!	!	!	!	!	!^

									"								
	
	
	
	
	
	
	
	
	3333/CF/K/K333!	
(KKMM		!!HQK	*52M2M2M2MNNE9X_,,ho1M1M!f$$$)Ii6<6G-I-II
E6***E/C/4466EE/#5u::<<EE036;;==E$$%@3%F%J%JLLE$$%=%CU%H%HJJEI?#Eu6688EB;;;;EC!	F99X&&	 4<t|dkk(//*;*;VDDDtKKsB))B?>B?c2d||zSr/rDrIs  rr1zTextDoc.formatvaluesTYYv&&&&rc|j}|p|}d}d}t|r^|jj}|r||urdt	||z}n8|jdt	|jj|z}ndt	||z}tj|stj|rd}	nd}	||kr||}
n7|rtj	||g|urd}||d	z|z}
d}tj
|rh	tj|}n#ttf$rd}YnwxYw|r7t|}|d
kr"||dz}
|dd}|sd
}|	|
z|z|z}
|r|
dzSt|pd}|
dz|o)||dzzS)z;Produce text documentation for a function or method object.rKrr3Nr4r5r6rT = r7z lambda rr8rS)r)rwr*r+r]rr9r:r[r;r`r%r&rGrDrQr`rO)r:rAr#rrr'r<r=r>r?rbr-r%r,r=s               rrzTextDoc.docroutines>?xF##
	Io/G
I"$$#i&=&==D?.3i1378788DD0)GC2H2HHD'//	 *622	 %NNN8IIh''EE
g,R2>>&HHIIdOOe+h6EV$$	,
!#-f55			*
!
!
! 			
!
,i..z)) IIdOOj8E&admG	G%/$6	L$;..&BC$;#"J$++c*:*:*A*A*C*Cd*JKKsD))D?>D?cg}|j}|r)||||dt|pd}|r)||||dd|S)z1Produce text documentation for a data descriptor.rSrK)rr[rQr`rXrBs        rrzTextDoc.docdatas~	D4!!!DJJJVnn"	DS!!"""DJJJwwwrcP||}|r1|r|dzpd|z}|t|z
}	|	dkr
|d|	dz}|r||dzpd|z}|st|}|r+|d|t|zdzz
}|S)z-Produce text documentation for a data object.rrKrNrkrS)rrWr[rQr`rD)
r:rAr#rrrmr=rrchops
          rrzTextDoc.docothersyy  	4)TE\/R47DCII%DaxxUdUe 304506B$>	!..C	8D4;;s3xx000477Dr)r\)NrKrrN)NNNNN)r)rrr@rQrOrr[r`rprrrr1rrr0rrrrrWrWs11XZZND666    AAA ccccJXLXLXLXLt'''5L5L5L5Ln    KrrWceZdZdZdZdS)
_PlainTextDocz2Subclass of TextDoc which overrides string stylingc|SrrrFs  rr[z_PlainTextDoc.boldsrN)r)rrr@r[rrrrr	s)<<rrc@tat|dS)zCThe first time this is called, determine what kind of pager to use.N)getpagerpagerrss rrrs
JJE	$KKKKKrchttjdstSttjdstStjrtjstStjdkrtStj	dptj	dr@tjdkrfdStj	ddvrfd	Sfd
Stj	ddvrtStjdkrdSttdrtj
d
dkrdSddl}|\}}tj
|	ttdr2tj
d|zdkrdtj|Sttj|S#tj|wxYw)z2Decide what method to use for paging through text.isatty
emscriptenMANPAGERPAGERwin32c>tt|Sr
tempfilepagerplainrf	use_pagers rrzgetpager.<locals>.<lambda>#s
eDkk9 E ErTERM)dumbemacsc>tt|Sr)	pipepagerrrs rrzgetpager.<locals>.<lambda>%s	%++y A Arc$t|Srrrs rrzgetpager.<locals>.<lambda>'s	$	 : :rc<tt|dS)Nzmore <rrss rrzgetpager.<locals>.<lambda>+sM%++x@@rsystemz(less) 2>/dev/nullrc"t|dS)Nlessrrss rrzgetpager.<locals>.<lambda>-sIdF33rNz	more "%s"c"t|dS)Nmorerrss rrzgetpager.<locals>.<lambda>4s	$ 7 7r)rr	stdin
plainpagerstdoutrplatformrr)rrtempfilemkstempcloseunlinkttypager)rfdrrs   @rrrs39h''3:x((9SZ%6%6%8%8
||##
z**EbjnnW.E.EI;<7""EEEEE
Z^^F
#
#'8
8
8AAAAA:::::	z~~f!222
|w@@@r84+?!@!@A!E!E333OOO%%''NRHRLLL2x  	RY{X/E%F%F!%K%K77		(
	(	(s92HHH1c.tjdd|S)z%Remove boldface formatting from text.z.rK)rMrNrss rrr:s
6%T"""rcHddl}||d|jd}	|j5}	||n#t
$rYnwxYwdddn#1swxYwYn#t$rYnwxYw		|dS#t
$rYnwxYw()z3Page through text by feeding it to another program.rNTbackslashreplace)shellrerrors)
subprocessPopenPIPErwriteKeyboardInterruptrwait)rfcmdrprocpipes     rrr>s4Ct:?#577D	

Z	4


4    $



															



	IIKKKE 			
D		siA+AAA
A
AAAA+A##A+&A#'A++
A87A8=B
B B c	ddl}|5}tj|d}t|ddtjdkrtjdnd5}|	|dddn#1swxYwYtj
|dz|zd	zddddS#1swxYwYdS)
z<Page through text by invoking a program on a temporary file.rNz	pydoc.outwrr)rencodingz "r)rTemporaryDirectoryrr
rXrr	rdevice_encodingrr)rfrrtempdirrrs      rrrVsYOOO		$	$	&	&/'7<<55
(C(:,'))-a000/3	JJt																
		#*x'#-...//////////////////s6AC1BCB	CB	 CCCcttjddpd}||d|S)Nrutf-8r)rr	rencodedecode)rfrs  r_escape_stdoutrbs=sz:t44?H;;x!344;;HEEErc	tt|d}	ddl}tj}||}||d}n'#tttjf$rd}d}YnwxYw		ttjdd}n#t"$rd}YnwxYw|dkrd}|dz
x}}tjd|d|dz||drtjd	tj|}	|	d
vr tjdn|	dvr1tjd||zdz|dz}|	d
vr||z
|z
}|dkrd}tjdd||||zzdz||z}||d|r|||j|dSdS#|r|||j|wwxYw)z%Page through text on a text terminal.rSrNc@tjdSry)r	rrrrrrzttypager.<locals>.<lambda>os#)..++rc^tjddddS)NrrT)r	rrrrrrzttypager.<locals>.<lambda>rs&#),,..ss3BQB7rLINESrTz
-- more --)qQz
          
)
rS)bB)rrrttyr	rfileno	tcgetattr	setcbreakrr8ioUnsupportedOperationrrr)rr&rrrXflush	tcsetattr	TCSAFLUSH)
rfrYrroldgetcharhrSincrs
          rrrgs.&&''--d33E8



Y



mmB

b++)@A8887782	BJNN7A..//AA			AAA	66Aa%C
5#;//$6777ABBi	J\***J		AJ
  !1222l""
  !1E!H!<t!CDDDE&&&GcMq55a!JTDIIeAaeGn$=$==DEEECA!ABBi	&	2MM"cmS11111	2	23	2MM"cmS1111	2s=AB!B%$B%*-CI*C'$I*&C''E!I**!Jcxtjtt	|dS)z>Simply print unformatted text.  This is the ultimate fallback.N)r	rrrrrss rrrs.JU>$//0011111rctj|rA|jtjvr
d|jzSt|dr
d|jzSd|jzStj|r
d|jzStj|r$d|jj	d|jjd|jStj
|r$d|jj	d|jjd|jStj|r
d	|jzStj|r
d
|jzStj
|r
d|jzSt|jS)z/Produce a short description of the given thing.zbuilt-in module rzpackage zmodule zbuilt-in function zgetset descriptor rzmember descriptor r~z	function zmethod )rr_r)r	rrr-isgetsetdescriptorr3rr4r r,r(rC)things rdescribers|.>S555%665*%%	...u~--5#en44!%(()))5+=+F+F+FNN	!%(()))5+=+F+F+FNN	u)%.((%  ,U^++*5>));;rcd|dD}d\}}|t|krLtd|d|dz|}|r||dz}}nn|t|kL|r|}nt}||dD]%}	t||}#t$rYdSwxYw|S)z@Locate an object by name or dotted path, importing as necessary.cg|]}||Srr)rrs  rrzlocate.<locals>.<listcomp>s666d6T666rrrNrT)rrWr	rXr$rr8)r
rrrn
nextmodulerArs        rlocaters66djjoo666EIFA
c%jj..t!t 5 5yAA
	:q1uqvvc%jj..abb		VT**FF			444	MsB..
B=<B=ct|tr(t||}|td|z||fSt	|dd}|t|tr|ndfS)zDGiven an object or a path to an object, get the object and its name.Nz~No Python documentation found for %r.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.r))r.rDrrr)rrrAr#s    rresolvers%
>y))>,/4455
5u}uj$//js33=dd==r Python Library Documentation: %scN|t}t||\}}t|}tj|}|r(d|vr$|d|d|dzz
}n|r||ur
|d|jzz
}tj|swtj|sctj	|sOtj
|s;t|s,t|dr|j
}nt|}|dz
}||zdz|||zS)zBRender text documentation, given an object or a path to an object.Nrz in z in module 
__origin__z objectrt)rfrrrrrfindr)r_r r`r2rIrrrCr)rrbrrendererrAr#rxrs        r
render_docrsL5),,LFDFD

v
&
&F0t.tzz#.///	0F&((
//V$$of%%''&v..foo	6<((	&FF&\\FID4<& 8#4#4VT#B#BBBrFcH|K	tt|||dS#t$r}|rt|Yd}~dSd}~wwxYw	t|||t}n&#t$r}t|}Yd}~nd}~wwxYw||dS)zCDisplay text documentation, given an object or a path to an object.N)rrrprint	plaintextrDr)rrbroutputis_clirrs       rr=r=s~	*UE95566666			
#JJJJJJJJJ	
	5%I>>AA			CAAAAAA	Qs,$
AAAA''
B
1BB
cXt||\}}tt|t||}t|dzdd5}||dddn#1swxYwYtd|dzdS)z<Write HTML documentation to a file in the current directory.r'rr)rNwrote)rhtmlrdrrrrr
)rrrAr#rdrs      rwritedocrs5),,LFD99Xf%%t}}VT'B'BCCD	
dWncG	4	4	4

4	'4'>"""""s*BBBrKcf|i}tj|g|D]\}}}t|dS)zAWrite out HTML documentation for all modules in a directory tree.N)r
walk_packagesr)rpkgpathdonerr\rs      r	writedocsr
sF|BT$+$93%$I$I '5
Frc>eZdZiddddddddddd	d
ddd
dddddddddddddddddddid d!d"d#d$d%dd&d#d'd(d)d*d+d,d-d.d/d0dd1dd2d3d4d5d6d7dd8d9d:dd;d<d=iZd>d?DZd@dAdBdCgeRdDdEdFdGdHdIdJZdKdLdMdNdOdPdQdRdSdTdUdVdVdWdWdXZeD]1\ZZ	e	D])Z
ee
eZeevredYzezZeee
<*2[[	[
[idZd[dRd\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdZdxdZidydzdOd{d|d}d~ddddd#ddddddddddddddddddddddidddddddddddddddddddSdddddkdddddddndddidddddddddLddddddd“ddēd+dœddƓdd	ddɓdd˓dddd6dd#ddddddӜZddՄZ
edքZedׄZd؄ZeZefdلZdڄZdۄZdd݄ZdބZddZdZdZdZddZddZdZddZ dS)HelperFalserKNoneTrueandBOOLEANaswithassert)r rKasync)r!rKawait)r"rKbreak)r#	while forclass)r%zCLASSES SPECIALMETHODScontinue)r&r$def)functionrKdel)r)BASICMETHODSelififelse)r-r$excepttryfinallyfor)r1zbreak continue whilefromimportglobal)r4znonlocal NAMESPACES)r,
TRUTHVALUE)r3MODULESin)r7SEQUENCEMETHODSis
COMPARISONlambda)r;rmnonlocal)r<zglobal NAMESPACESnotorpass)r?rKraise)r@
EXCEPTIONSreturn)rBrm)r/rAwhile)rCzbreak continue if TRUTHVALUE)rz CONTEXTMANAGERS EXCEPTIONS yieldyield)rDrKc"g|]}dD]}||z
S)'rr)rprs   rrzHelper.<listcomp>Hs)LLLaLLAAELLLLr)rfrSurGz'''rr)+r***r&z//%<<>>rC|^~rDrE<=>===!=<>)rDrErTrUrVrWrX)rrS)z+=z-=z*=z/=z%=z&=z|=z^=z<<=z>>=z**=z//=)rOrPrCrQrRrS)jJ)STRINGS	OPERATORSr:UNARYAUGMENTEDASSIGNMENTBITWISECOMPLEXzOPERATORS FORMATTINGPOWERzTUPLES LISTS FUNCTIONSz ATTRIBUTES FLOAT MODULES OBJECTSELLIPSISzSLICINGS DICTIONARYLITERALSz	def classr[PRIVATENAMESzPRIVATENAMES SPECIALMETHODS
BACKQUOTESzTUPLES FUNCTIONS CALLSzLISTS SUBSCRIPTS SLICINGS)rNrM,rrk:@rrr`rr[]rTYPES)typeszRSTRINGS UNICODE NUMBERS SEQUENCES MAPPINGS FUNCTIONS CLASSES MODULES FILES inspect)stringsz4str UNICODE SEQUENCES STRINGMETHODS FORMATTING TYPES
STRINGMETHODS)zstring-methodszSTRINGS FORMATTING
FORMATTING)
formatstringsr\UNICODE)rmz:encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPESNUMBERS)numberszINTEGER FLOAT COMPLEX TYPESINTEGER)integersz	int rangeFLOAT)floatingz
float mathr`)	imaginaryz
complex cmath	SEQUENCES)typesseqz$STRINGMETHODS FORMATTING range LISTSMAPPINGSDICTIONARIESrm)typesfunctionsz	def TYPESMETHODS)typesmethodszclass def CLASSES TYPESCODEOBJECTS)zbltin-code-objectszcompile FUNCTIONS TYPESTYPEOBJECTS)zbltin-type-objectsztypes TYPESFRAMEOBJECTS
TRACEBACKSNONE)zbltin-null-objectrK)zbltin-ellipsis-objectSLICINGSSPECIALATTRIBUTES)specialattrsrKrl)rlz!class SPECIALMETHODS PRIVATENAMESr6)typesmodulesr3PACKAGESEXPRESSIONS)zoperator-summaryzlambda or and not in is BOOLEAN COMPARISON BITWISE SHIFTING BINARY FORMATTING POWER UNARY ATTRIBUTES SUBSCRIPTS SLICINGS CALLS TUPLES LISTS DICTIONARIESr\
PRECEDENCEOBJECTS)objectsrkSPECIALMETHODS)specialnameszbBASICMETHODS ATTRIBUTEMETHODS CALLABLEMETHODS SEQUENCEMETHODS MAPPINGMETHODS NUMBERMETHODS CLASSESr*)
customizationzhash repr str SPECIALMETHODSATTRIBUTEMETHODS)zattribute-accesszATTRIBUTES SPECIALMETHODSCALLABLEMETHODS)zcallable-typeszCALLS SPECIALMETHODSr8)sequence-typesz(SEQUENCES SEQUENCEMETHODS SPECIALMETHODSMAPPINGMETHODS)rzMAPPINGS SPECIALMETHODS
NUMBERMETHODS)z
numeric-typesz*NUMBERS AUGMENTEDASSIGNMENT SPECIALMETHODS	EXECUTION)	execmodelz%NAMESPACES DYNAMICFEATURES EXCEPTIONS
NAMESPACES)namingz3global nonlocal ASSIGNMENT DELETION DYNAMICFEATURESDYNAMICFEATURES)zdynamic-featuresrKSCOPINGFRAMESrA)rztry except finally raiseCONVERSIONS)conversionsrKIDENTIFIERS)identifierszkeywords SPECIALIDENTIFIERSSPECIALIDENTIFIERS)z
id-classesrK)zatom-identifiersrKLITERALS)z
atom-literalsz=STRINGS NUMBERS TUPLELITERALS LISTLITERALS DICTIONARYLITERALSTUPLES
TUPLELITERALS)	exprlistszTUPLES LITERALSLISTS)ztypesseq-mutableLISTLITERALSr)listszLISTS LITERALS)typesmappingDICTIONARYLITERALSr)r5zDICTIONARIES LITERALS
ATTRIBUTES)zattribute-referencesz(getattr hasattr setattr ATTRIBUTEMETHODS
SUBSCRIPTS)
subscriptionsr8r)slicingsr8CALLS)callsr)powerrr])unaryrBINARY)binaryrSHIFTING)shiftingrr_)bitwiser)comparisonszEXPRESSIONS BASICMETHODS)booleanszEXPRESSIONS TRUTHVALUE	ASSERTION
ASSIGNMENT)
assignmentr^r^)	augassignrDELETION	RETURNING	IMPORTING)compoundzfor while break continue)truthz if while and or not BASICMETHODS)debuggerpdb)zcontext-managersr)CONDITIONALLOOPINGr5	DEBUGGINGCONTEXTMANAGERSNc"||_||_dSr)_input_output)r:inputrs   rrzHelper.__init__src(|jptjSr)rr	rr@s rrzHelper.inputs{'ci'rc(|jptjSr)rr	rr@s rrz
Helper.outputs|)sz)rctjdddkr|dSd|jjd|jjdS)NrTrj?rKrDrz
 instance>)rstackr+rrr@s r__repr__zHelper.__repr__s\=??1a C''DFFF2(&*^%>%>%>%)^%@%@%@B	Brc6||jurM	||dS#t$r(}|j|dYd}~dSd}~wwxYw|||jddS)NrSa
You are now leaving help and returning to the Python interpreter.
If you want to ask for help on a particular object directly from the
interpreter, you can type "help(object)".  Executing "help('string')"
has the same effect as typing a particular string at the help> prompt.
)_GoInteractiverrrrintrointeract)r:requestes   r__call__zHelper.__call__s$---
,		'"""""
,
,
,!!Q(((+++++++++
,
JJLLLMMOOOK




s"
AAAc|jd		|d}|sdSn#ttf$rYdSwxYw|}t
|dkr6|d|dcxkrdvrnn|d|ddvr
|dd}|d	vrdS|d
kr|n|	|)NrSTzhelp> rUrrrFrT)rquitr)
rrgetlinerEOFErrorrVrWr+rr)r:rs  rrzHelper.interacts$	#
,,x00%%%x0



mmooGGq  WQZ72;%L%L%L%L*%L%L%L%L%L
'!B$-77!!B$-}}-//&  

		'"""#	#s7AAc|jtjurt|S|j||j|jS)z.Read one line, using input() when appropriate.)rr	rrrrr)r:prompts  rrzHelper.getlines[:""== Kf%%%K:&&(((rFct|trz|}|dkr|n|dkr|nf|dkr|nJ|dkr|n.|dddkr.||dn||jvr|	|n|dvr tt|d	|
n||jvr|
|n||jvr|
|nq|rt|d	|j|nVttd	|j|n8t|t r|nt|d	|j||jddS)
Nkeywordssymbolstopicsrzmodules rT)rrrzHelp on %s:r
)rr
rS)r.rDrVlistkeywordslistsymbols
listtopicslistmodulesrr
showsymbolr=evalr	showtopicrrrrr)r:rr
s   rrzHelper.helpsgs##	NmmooG*$$d&7&7&9&9&9&9I%%t'7'7'9'9'9'9H$$doo&7&7&7&7I%%t'7'7'9'9'9'9!
**  !34444DL(($//'*B*B*B*B555DMM=@@@@@DM))4>>'+B+B+B+BDK'')@)@)@)@
N#g}T\RXYYYYYc=fMMMMM

(
(	N$$&&&&'=fMMMM$rc|jddtjddzdS)NaWelcome to Python {0}'s help utility! If this is your first time using
Python, you should definitely check out the tutorial at
https://docs.python.org/{0}/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To get a list of available
modules, keywords, symbols, or topics, enter "modules", "keywords",
"symbols", or "topics".

Each module also comes with a one-line summary of what it does; to list
the modules whose name or summary contain a given string such as "spam",
enter "modules spam".

To quit this help utility and return to the interpreter,
enter "q" or "quit".
z%d.%drU)rrr*r	r/r@s rrzHelper.introsK F7S%bqb))**!	,	,	,	,	,rrPctt|}||z}t||zdz
|z}t|D]}t|D]}||z|z}|t|krb|j||||dz
kr9|jdd|dz
t||z
zz|jddS)NrTrrS)rzrrWryrr)	r:itemscolumnsrlcolwr{rowr|rs	         rrzzHelper.list.sVE]]##E

W$q(W4;;	$	$CW~~
R
R$J$s5zz>>K%%eAh///Wq[(())#tax#eAh--7O0P*PQQQKd####	$	$rc|jd||jdS)NzN
Here is a list of the Python keywords.  Enter any keyword to get more help.

)rrrzrr~r@s rrzHelper.listkeywords;sI				
		$-$$&&'''''rc|jd||jdS)Nzx
Here is a list of the punctuation symbols which Python assigns special meaning
to. Enter any symbol to get more help.

)rrrzrr~r@s rrzHelper.listsymbolsBsI			
	
		$,##%%&&&&&rc|jd||jdS)NzN
Here is a list of available topics.  Enter any topic name to get more help.

)rrrzrr~r@s rrzHelper.listtopicsJsI				
		$+""$$%%%%%rcf	ddl}n+#t$r|jdYdSwxYw|j||j|}|s,|jdt|zdSt|tdur|	||S|\}}	|jj|}n;#t$r.|jdt|zYdSwxYw|dz}|r
|pddz|z}|rbddl}dd
|zdz}	||	d	}
|d
d
|
zz
}t!|dS)Nrt
Sorry, topic and keyword documentation is not available because the
module "pydoc_data.topics" could not be found.
zno documentation found for %s
rKrSrRelated help topics: rHz
%s
)pydoc_data.topicsrrrrrrrrCrKeyErrorrVtextwraprXrwrapr)r:topic
more_xrefs
pydoc_datatargetlabelxrefsr=rrfwrapped_texts           rrzHelper.showtopicQs	$$$$$			K



FF	
(9(9%(@(@AA	K?$u++MNNNF<<488##>>&*555u	#*51CC			K?$u++MNNNFF	iikkD 	5[bC'*4E	6OOO*TYYu{{}}-E-EELD#==r22L8dii5555C
c




s$//
C  4DDc\	ddl}n#t$rYdSwxYw|j||j|}|stdt
|tr|||S|\}}|jj|}|r
|pddz|z}||fS)a*Return unbuffered tuple of (topic, xrefs).

        If an error occurs here, the exception is caught and displayed by
        the url handler.

        This function duplicates the showtopic method but returns its
        result directly so it can be formatted for display in an html page.
        rN)rrKzcould not find topicrKr)	rrrrrr&r.rD	_gettopic)r:rrrrrrr=s        rrzHelper._gettopicqs	
$$$$$	
	
	



	


(9(9%(@(@AA	53444fc""	6>>&*555u&u-	5[bC'*4EEzs
c~|j|}|d\}}}|||dS)Nr)r	partitionr)r:symbolrrrrs      rrzHelper.showsymbolsAf% **3//q%ue$$$$$rc|r>|jd|t|dS|jdi}|fdfd}t	||||jddS)Nzy
Here is a list of modules whose name or summary contains '{}'.
If there are any, enter a module name to get more help.

zI
Please wait a moment while I gather a list of all available modules...

c|r|dddkr
|dddz}|ddkrd||<dSdS)N	.__init__rirrrT)find)r
r\rxrs    rcallbackz$Helper.listmodules.<locals>.callbacks]:wrss|{::%crcl\9G<<$$q(('(GG$$$)(rc"d|ddSrr)r\rs ronerrorz#Helper.listmodules.<locals>.onerrorsw-----rrz
Enter any module name to get more help.  Or, type "modules spam" to search
for modules whose name or summary contain the string "spam".
)rrr*apropos
ModuleScannerrunrzr~)r:rrrrs    @rrzHelper.listmoduless	KF3KK	




CLLLLLK


G6=
)
)
)
)

.
.
.
.
.OO':::IIgllnn%%%K




rr)F)rrrM)!r)rrr_strprefixes_symbols_inverserrrsymbols_r
rrrr/rrrrArrrrrrrzrrrrrrrrrrrrs$$$	$	y	$
	
f$	.
$	$	$	'$	4$	-$	$	&$	$	%$ 	%!$"	5#$$$	.%$&	'$(	3)$*	
"+$,	'-$.	
'/$0	
l1$2	)3$4	55$6	y7$8	
i9$:	;$<	(=$>	)?$@	$A$B	:C$D	<E$$F	G$$HNML#7LLLL%e;l;;N?!B4

$
%
/
*

+

%
%
(
(G",1133%%x	%	%F[[//FF""#-$GFOO		%
	xU=U	(U
	AU	4
U	(U	=U	,U	+U	1U	IU	NU	4U 	>!U"	H#U$	<%U&	'U(	g)UU*	)+U,	9-U.	1/U0	A1U2	-3U4	H5U6	.7U>	]?U@	mAUB	'CUD	4EUJ	IKUL	MMUN	EOUP	/QUT	GUUV	,WUUUZ	K[U\	W]U^	3_U`	<aUb	,cUd	@eUf	*gUh	EiUj	0kUl	0mUn	8oUr	+sUt	9uUv	5wUx	3yUz	>{U|	?}UUU~	ZU@	:AUB	3CUD	)EUF	)GUH	)IUJ	+KUL	/MUN	-OUP	AQUR	9SUT	XUUV	;WUX	=YUZ	E[U\	X]U^	X_UU`;C(7iUUUFn((X(**X*BBBVXXN- ###*)))    *,,,&$$$$((('''&&&@6%%%
rrceZdZdZddZdS)rz7An interruptible scanner that searches module synopses.Nc|r|}d|_i}tjD]}|dkrd||<||d|dt	|jpd}|dd}|dz|z}||dkr
|d||tj	|D]\}	}}
|jrn||d|d!	tj
|	|}n#t$rYDwxYw|j}t|d	r	||}
n#t$r|r||YwxYwt!t#j|
pd}t|d
r||}n{d}nx	t(j|}n#t.$r|r||YwxYw|jr|jdnd}t3|dd}|dz|z}||dkr
|||||r|dSdS)NF__main__rTrKrSrrr
get_sourceget_filenamer)r+rr	rrr@rrrr	_get_specrrrrrrrStringIOrrrrrrr)r:rr	completerrseenr\r#rxrrrrsourcer
rs                rrzModuleScanner.runs!ciikk	/
	6
	6G*$$ !W
;HT7B////%g..6<"D::d++A.D"U?T1Dzz||((--22 w555(/(=g(N(N(N$	2$	2$Hguy
{w++++",Xw??DD"H6<00;!!'!2!27!;!;$!!!"-#GG,,, !+2;v+>+>??E2Dv~66$%227;;#!!*!5!;!;D!A!A&!!!"-#GG,,, !>D^S6>4466q99QSD"6*T::D-::<<$$S))Q..HT7D111	IKKKKK		s62D
DD0EE E 0GG+*G+rN)r)rrr@rrrrrrs.AA888888rrcd}d}tj5tjdt|||ddddS#1swxYwYdS)zAPrint all the one-line module summaries that contain a substring.cf|dddkr
|dddz}t||od|zdSNr
rriz- )r
)r
r\rxs   rrzapropos.<locals>.callbacksF233<;&&crcl\1G
gt+t,,,,,rcdSrrr\s rrzapropos.<locals>.onerrorsrignorerN)warningscatch_warningsfilterwarningsrr)rrrs   rrrs---


		 	"	"<<)))Hc7;;;<<<<<<<<<<<<<<<<<<s9A  A$'A$cj	
ddlddlddl	ddl
GddjjG	fddjjG
fdd
j}||||}||j	s)|j
s"tjd	|j	s|j
"|S)
aAStart an HTTP server thread on a specific port.

    Start an HTML/text server thread, so HTML or text documents can be
    browsed dynamically and interactively with a web browser.  Example use:

        >>> import time
        >>> import pydoc

        Define a URL handler.  To determine what the client is asking
        for, check the URL and content_type.

        Then get or generate some text or HTML code and return it.

        >>> def my_url_handler(url, content_type):
        ...     text = 'the URL sent was: (%s, %s)' % (url, content_type)
        ...     return text

        Start server thread on port 0.
        If you use port 0, the server will pick a random port number.
        You can then use serverthread.port to get the port number.

        >>> port = 0
        >>> serverthread = pydoc._start_server(my_url_handler, port)

        Check that the server is really started.  If it is, open browser
        and get first page.  Use serverthread.url as the starting page.

        >>> if serverthread.serving:
        ...    import webbrowser

        The next two lines are commented out so a browser doesn't open if
        doctest is run on this module.

        #...    webbrowser.open(serverthread.url)
        #True

        Let the server do its thing. We just need to monitor its status.
        Use time.sleep so the loop doesn't hog the CPU.

        >>> starttime = time.monotonic()
        >>> timeout = 1                    #seconds

        This is a short timeout for testing purposes.

        >>> while serverthread.serving:
        ...     time.sleep(.01)
        ...     if serverthread.serving and time.monotonic() - starttime > timeout:
        ...          serverthread.stop()
        ...          break

        Print any errors that may have occurred.

        >>> print(serverthread.error)
        None
   rNceZdZdZdZdS)!_start_server.<locals>.DocHandlercT|jdrd}nd}|d|dd|z||j||j|ddS)	zProcess a request from an HTML browser.

            The URL received is in self.path.
            Get an HTML page from self.urlhandler and send it.
            z.csstext/css	text/htmlzContent-Typez%s; charset=UTF-8rN)	r
r
send_responsesend_headerend_headerswfiler
urlhandlerr)r:content_types  rdo_GETz(_start_server.<locals>.DocHandler.do_GET9	sy!!&))
+)*s###^-@<-OPPPJT__	<)))/
:
:
:
:
:rcdSrr)r:rs  rlog_messagez-_start_server.<locals>.DocHandler.log_messageI	sDrN)r)rrr:r<rrr
DocHandlerr/7	s2	:	:	: 					rr=c&eZdZdZfdZdZdS) _start_server.<locals>.DocServerc||_|j|f|_||_|j||j|jd|_dSNF)hostaddressrr<rhandlerr)r:rBportrs    rrz)_start_server.<locals>.DocServer.__init__O	sGDI It,DL$DMItT\4<@@@DIIIrc|jsQ|jgggd\}}}|r||jQ|dSry)rselectsocketrhandle_requestserver_close)r:rdwrexrGs    rserve_until_quitz1_start_server.<locals>.DocServer.serve_until_quitV	s{i
*#]]DK,>,>,@,@+A2r1MM
B*'')))i
*
rcv|j||jr||dSdSr)r<server_activaterr@s rrPz0_start_server.<locals>.DocServer.server_activate]	sDI%%d+++}
$

d#####
$
$rN)r)rrrrNrP)rGsr	DocServerr?M	sL				 	 	 	 	 	$	$	$	$	$rrQc6eZdZfdZfdZdZdZdS)#_start_server.<locals>.ServerThreadc||_||_t||_j|d|_d|_dSrA)r8rBrrEThreadrservingerror)r:r8rBrE	threadings    rrz,_start_server.<locals>.ServerThread.__init__d	sG(DODID		DI%%d+++ DLDJJJrc:	jj__jj_t|j_|j	|j
|j}||_|
dS#t$r}||_Yd}~dSd}~wwxYw)zStart the server.N)server
HTTPServerr<rDrMessageMessageClassstaticmethodr8rBrEready	docserverrNrrW)r:docsvrrr=rQemailhttps   rrz'_start_server.<locals>.ServerThread.runl	s	
!%!7	$.	!*/-*?
'(4T_(E(E
%"49diDD!''')))))










sA9A>>
BBBcpd|_|j|_|j|_d|j|jfz|_dS)NTz
http://%s:%d/)rVrBserver_portrEr)r:rZs  rr_z)_start_server.<locals>.ServerThread.readyy	s5DLDI*DI&$)TY)??DHHHrcpd|j_|d|_d|_d|_dS)z&Stop the server and this thread nicelyTNF)r`rrXrVrr@s rstopz(_start_server.<locals>.ServerThread.stop	s4"&DNIIKKK"DN DLDHHHrN)r)rrrrr_rg)r=rQrbrcrXsrServerThreadrSb	sw														@	@	@					rrhg{Gz?)
http.server
email.messagerGrXrZBaseHTTPRequestHandlerr[rUrrWrVtimesleep)r8hostnamerErhthreadr=rQrbrcrGrXs     @@@@@@r
_start_serverrpsJpMMMT[7,$$$$$$$DK*$$$*%%%%%%%%%%%y'%%%N\*h
5
5F
LLNNNl6>
3l6>Mrr2c	

Gfddt}|fdfd
fd
fdfdfdfd		fd
	

fd}|dr
|d
d}|dkrtjtjt}tj||}t|5}d|	cdddS#1swxYwYn|dkr||Std|d|)aThe pydoc url handler for use with the pydoc server.

    If the content_type is 'text/css', the _pydoc.css style
    sheet is read and returned if it exits.

    If the content_type is 'text/html', then the result of
    get_html_page(url) is returned.
    ceZdZfdZdS)_url_handler.<locals>._HTMLDocc	@d}d|z}d|d|dd|d	S)razpydoc_data/_pydoc.cssz1<link rel="stylesheet" type="text/css" href="%s">zH<!DOCTYPE>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pydoc: z	</title>
z
</head><body>z*<div style="clear:both;padding-top:.5em;">z</div>
</body></html>r)r:rbrccss_pathcss_linkhtml_navbars     rrdz#_url_handler.<locals>._HTMLDoc.page	sE.HC
HUUHHHkkmmmmXXX?
?rN)r)rrrd)rwsr_HTMLDocrs	s.
	?
	?
	?
	?
	?
	?
	?rrxctjdtjddtjd}d|dtjdd	S)
Nz [rrrjz=
            <div style='float:left'>
                Python <br>T)tersea
            </div>
            <div style='float:right'>
                <div style='text-align:center'>
                  <a href="index.html">Module Index</a>
                  : <a href="topics.html">Topics</a>
                  : <a href="keywords.html">Keywords</a>
                </div>
                <div>
                    <form action="get" style='display:inline;'>
                      <input type=text name=key size=15>
                      <input type=submit value="Get">
                    </form>&nbsp;
                    <form action="search" style='display:inline;'>
                      <input type=text name=key size=15>
                      <input type=submit value="Search">
                    </form>
                </div>
            </div>
            )rGrpython_versionpython_buildpython_compiler)rrs rrwz!_url_handler.<locals>.html_navbar	s++x/F/H/H/H/H/7/D/F/Fq/I/I/I/7/G/I/I/I/IKLL077DKK(9(E(E(EFFFF+H	Hrcd}d}dtjD}||}|ddd|zg}i}tjD]+}|||,|ddd	|fS)
zModule Index page.cd|d|dSNrrrrr#s r	bltinlinkz3_url_handler.<locals>.html_index.<locals>.bltinlink	15ttt<<rz/<strong class="title">Index of Modules</strong>cg|]
}|dk|S)rr)rr#s  rrz4_url_handler.<locals>.html_index.<locals>.<listcomp>	s,((($J&&&&&rz<p>zBuilt-in Modulesrzf<p align=right class="heading-text grey"><strong>pydoc</strong> by Ka-Ping Yee&lt;ping@lfw.org&gt;</p>zIndex of ModulesrK)	rhr	rr}rrr
rrrX)rrhnamesrcr"rrs      r
html_indexz _url_handler.<locals>.html_index	s	=	=	=,,=

((#":(((##E955UT__&3&3348	3	3COODJJsD112222
'	(	(	("2778#4#444rc	g		fd}tj5tjdd}t|||dddn#1swxYwYd}g}
d}	D]&\}}||||z'|
d|zd	d
|z}d|fS)zSearch results page.cv|dddkr
|dddz}||od|zfdSr&r)r
r\rx
search_results   rrz3_url_handler.<locals>.html_search.<locals>.callback	sPrss|{**!#2#,5  '4+?D4K!@AAAAArr)cdSrrr(s rrz2_url_handler.<locals>.html_search.<locals>.onerror	srrNcd|d|dSrrrs rrz4_url_handler.<locals>.html_search.<locals>.bltinlink	rrz-<strong class="title">Search Results</strong>zkey = %srrzzSearch Results)	r*r+r,rrrhrrrrX)rrrrrrhr#rxrcrrs         @rhtml_searchz!_url_handler.<locals>.html_search	s
	B	B	B	B	B

$
&
&	@	@#H---


OO#w???		@	@	@	@	@	@	@	@	@	@	@	@	@	@	@	=	=	=,,;

(	3	3JD$NN99T??T12222T__gv{{7';';===))s<A%%A),A)cd}d}ttj}||}|dd|z}d|fS)zIndex of topic texts available.cd|d|dSNz<a href="topic?key=rrrrs rrz4_url_handler.<locals>.html_topics.<locals>.bltinlink
6:ddDDDAAr$<strong class="title">INDEX</strong>Topicsr)rhrrrr~r}rr)rrhrrcrs    rhtml_topicsz!_url_handler.<locals>.html_topics
s	B	B	B,,2

v}))++,,##E955T__gx)))!!rcd}ttj}d}||}|dd|z}d|fS)zIndex of keywords.rcd|d|dSrrrs rrz6_url_handler.<locals>.html_keywords.<locals>.bltinlink
rrKeywordsr)rhrrrr~r}rr)rhrrrcrs    r
html_keywordsz#_url_handler.<locals>.html_keywords
s,,2

v++--..	B	B	B##E955T__+++8##rctj}t||}||\}}||jvrd}nd}d|z}d|z}|d|}|rQt|	}d}
||}dd|}|d|d	|||ffS)
zTopic or keyword help page.KEYWORDTOPICrz
<pre>%s</pre>rcd|d|dSrrrs rrz7_url_handler.<locals>.html_topicpage.<locals>.bltinlink0
s:>$$EErrrrK)
rr rrrrhrrrrrr}rprX)	rbufhtmlhelprcrrbrhrrs	        rhtml_topicpagez$_url_handler.<locals>.html_topicpage
s!kmm#s##",,U33%H%%%EEE,,/%7

#T[[%:%::??57H==	J5;;==))E
F
F
F$$UI66ELL!8'5IIE 55%%((E2335	5rct|d}||dkrtdt|}||}||fS)NrT)rrzcould not find object)rr&rr)rr9rbcontentrs    rhtml_getobjz!_url_handler.<locals>.html_getobj8
sYSA&&&;3&==4555

--S))g~rcd}dfdtt||D}||d|z}d|z|fS)Nz$<strong class="title">Error</strong>rzc3BK|]}|VdSr)rG)rrrs  rrKz3_url_handler.<locals>.html_error.<locals>.<genexpr>D
sGFFTt{{400FFFFFFrrWz
Error - %s)rhrXrrCrr)rrrhrcrs    r
html_errorz _url_handler.<locals>.html_error@
s,,2

;;FFFF4T#YYDDFFFFFT__S'8DDDc!8++rc|}|dr
|dd}	|dvr
\}}n|dkr\}}n|dkr\}}nd|vr|d\}}}|dkr|\}}n|d	kr.	
|\}}n#t$r	|\}}YngwxYw|d
kr@|dvr
\}}nK		|\}}n;#t$r
|\}}Yn!wxYwtd	|\}}n&#t$r}||\}}Yd}~nd}~wwxYw||S)zGenerate an HTML page for url.r'N)rKrrrr0z
search?keyz	topic?keyzget?keyz
bad pydoc url)rr	r&rrd)rcomplete_urlrbroprrrrrrrrrrs       r
get_html_pagez#_url_handler.<locals>.get_html_pageI
s<<  	crc(C 	;m##!+ww!,ww
""!.ww ]]3//
As%%%0[%5%5NE77;&&:)7)<)<ww%:::)4S)9)9www:9__m++)3wwA-8[-=-=NE77)AAA-;^C-@-@NE777A%_555!,S!1!1w	;	;	;'Zc::NE777777	;yy(((s`A2D(B&%D(&C>D(CD(C,+D(,DD(D D((
E2EEr&rTNr1rKr2zunknown content type z	 for url )r_rrr
dirnamerealpathrrXr	readlinesrG)rr9rxr	path_hererufprrrrrrwrrrs       @@@@@@@@@r_url_handlerr	sq???????7???$8::DHHHHH6555550*****<""""" 
$
$
$
$
$555552,,,,,&)&)&)&)&)&)&)&)&)&)&)&)P~~c!""gz!!GOOBG$4$4X$>$>??	7<<	3//
(^^	+r772<<>>**	+	+	+	+	+	+	+	+	+	+	+	+	+	+	+	+	+		$	$}S!!!
)LLL##N
O
OOs2'D&&D*-D*T	localhost)open_browserrncddl}tt||}|jrt	|jdS|jr/d}|r||j	t	d|jt	||jratd}|	}|dkrn7|dkr||jnt	||jan%#ttf$rt	YnwxYw|jr%|t	ddSdS#|jr$|t	dwwxYwdS)	zStart the enhanced pydoc web server and open a web browser.

    Use port '0' to start the server on an arbitrary port.
    Set open_browser to False to suppress opening a browser.
    rNz"Server commands: [b]rowser, [q]uitzServer ready atzserver> rrzServer stopped)
webbrowserrprrWr
rVrrrr+rrrg)rErrnrserverthreadserver_help_msgrs       rbrowser~
s x>>L
l !!!(>	.OOL,---	(#\%5666/"""&
+J''iikk#::CZZOOL$45555/***&
+"8,			GGGGG	#
(!!###&'''''
(
(|#
(!!###&''''
('((s+BC,+D?,DD?
DD??-E,crt|to"|tjdkSr)r.rDrrsep)rs rispathr
s(a5!&&..A"55rcd|vs#tj|vstj|vrdStjt
}tj|}|}||vr5tj||s|||	dtj|S)zEnsures current directory is on returned path, and argv0 directory is not

    Exception: argv0 dir is left alone if it's also pydoc's directory.

    Returns a new path entry list, or None if no adjustment is needed.
    rKNr)
rcurdirgetcwdr
rrcopysamefileremoveinsert)
given_pathargv0
stdlib_dir
script_dirrevised_paths     r_get_revised_pathr
s
Z29
22bikkZ6O6Ot**J''J??$$LZ(8(8Z(P(PJ'''29;;'''rcttjtjd}||tjdd<dSdS)zEnsures current directory is on sys.path, and __main__ directory is not.

    Exception: __main__ dir is left alone if it's also pydoc's directory.
    rN)rr	r
argv)rs r_adjust_cli_sys_pathr
s<
%SXsx{;;L" rc0ddl}Gddt}t	|tjddd\}}d}d}d}d}d}|D]C\}	}
|	d	krd
}d
}|	dkrt|
dS|	dkrd
}|
}|	d
krd
}|	dkrd
}|
}D|rt
|||dS|s||D]C}t|rEtj	
|s&td|ztjd	t|r.tj	
|rt|}|rNt|r/tj	|rt!|n,t#|nt$|d
#t&t(f$r.}t|tjdYd}~=d}~wwxYwdS#|j|f$rtj	tj	tjdd}
td|
tjYdSwxYw)z@Command-line interface (looks at sys.argv to decide what to do).rNceZdZdS)cli.<locals>.BadUsageN)r)rrrrrBadUsager
srrrTzbk:n:p:wFrz-bTz-kz-pz-wz-n)rnrzfile %r does not existrapydoc - the Python documentation tool

{cmd} <name> ...
    Show text documentation on something.  <name> may be the name of a
    Python keyword, topic, function, module, or package, or a dotted
    reference to a class or function within a module or module in a
    package.  If <name> contains a '{sep}', it is used as the path to a
    Python source file to document. If name is 'keywords', 'topics',
    or 'modules', a listing of these things is displayed.

{cmd} -k <keyword>
    Search for a keyword in the synopsis lines of all available modules.

{cmd} -n <hostname>
    Start an HTTP server with the given hostname (default: localhost).

{cmd} -p <port>
    Start an HTTP server on the given port on the local machine.  Port
    number 0 can be used to get an arbitrary unused port.

{cmd} -b
    Start an HTTP server on an arbitrary unused port and open a web browser
    to interactively browse documentation.  This option can be used in
    combination with -n and/or -p.

{cmd} -w <name> ...
    Write out the HTML documentation for a module to a file in the current
    directory.  If <name> contains a '{sep}', it is treated as a filename; if
    it names a directory, documentation is written for all the contents.
)rr)getoptrrr	rrrrrr
existsr
exitrrrrrrrrrWrrr*r)rroptsrwritingstart_serverrrErnoptvalargrrs              rclir
sMMM#####9###M!]]38ABB<<<
d		HCd{{##d{{d{{#d{{d{{#	4(FFFFF#8^		Cc{{
27>>##6#6
.4555
#;;*27>>##6#6*$S//C0c{{&rw}}S'9'9&!# 



IIc$I///!23


e
		$
L(#!!!grw//<<==a@
:FsF;	!	!	!	!	!	!!sKAH1H8AHB)G?HH#G;5H;HHBJJrr)r)rrN)rrNF)rKN)r2)br@rrrrrr$importlib._bootstraprimportlib._bootstrap_externalimportlib.machineryimportlib.utilrrrrrrMr	r1rlrurllib.parserr*collectionsrreprlibr	tracebackrrr$r>r7rIrQrZr]rdrhrpr
IGNORECASErrrtrwr}rruall_feature_namesrrrrrrrrrrr	rr4r_rQrWrrrrrrrrrrrrfrrrrr=rrrrrrrprrrrrrr)rrr<module>rsp%%L(
)
$$$$												



++++++



111f


!!! AAA
   GGGbj5r}EE(((



"J899((((0			


" %%%%NKKKKK	KKK666$ !,,,,`66666666t(((((t(((Tn7n7n7n7n7cn7n7n7d:::::t:::@@@@@@c@@@DG"""H###0
/
/
/FFF
*2*2*2X222   6*wyyMOO	wyy>>>>KLCCCC6DE!"####WWWWWWWWrvxx;;;;;;;;z
<
<
<UUUpiPiPiPiPX (4+ ( ( ( ( (J6668###T!T!T!lzCEEEEEr