AlkantarClanX12

Your IP : 3.142.130.242


Current Path : /opt/alt/python39/lib64/python3.9/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib64/python3.9/__pycache__/sre_parse.cpython-39.pyc

a

R�fK��@s�dZddlTdZdZed�Zed�Zed�Zed�Zed	�Z	ee
eh�Zee
eeeeeh�Zeed
�feed�feed�feed
�feed�feed�feed�feed�fd�Zeefeefeefeeefgfeeefgfeeefgfeeefgfeeefgfeeefgfee fd�
Z!e"e#e$e%e&e'e(e)d�Z*e'e#Be)BZ+e,e(BZ-Gdd�de.�Z/Gdd�d�Z0Gdd�d�Z1Gdd�d�Z2dd�Z3dd �Z4d!d"�Z5d#d$�Z6d3d&d'�Z7d(d)�Z8d*d+�Z9d4d-d.�Z:d/d0�Z;d1d2�Z<d,S)5zInternal support module for sre�)�*z.\[{()*+?^$|z*+?{�
0123456789Z01234567Z0123456789abcdefABCDEFZ4abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZz 	

����
�
�	��\)z\a�\bz\fz\nz\rz\tz\vz\\)
z\Arz\Bz\dz\Dz\sz\Sz\wz\Wz\Z)�i�L�m�s�x�a�t�uc@seZdZdS)�VerboseN)�__name__�
__module__�__qualname__�rr�./opt/alt/python39/lib64/python3.9/sre_parse.pyrGsrc@sBeZdZdd�Zedd��Zddd�Zdd	�Zd
d�Zdd
�Z	dS)�StatecCs$d|_i|_dg|_d|_i|_dS)Nr)�flags�	groupdict�groupwidths�lookbehindgroups�grouprefpos��selfrrr�__init__Ls
zState.__init__cCs
t|j�S�N)�lenrr!rrr�groupsRszState.groupsNcCsb|j}|j�d�|jtkr$td��|dur^|j�|d�}|durTtd|||f��||j|<|S)Nztoo many groupsz7redefinition of group name %r as group %d; was group %d)r&r�append�	MAXGROUPS�errorr�get)r"�name�gid�ogidrrr�	opengroupUs
�
zState.opengroupcCs|��|j|<dSr$)�getwidthr)r"r,�prrr�
closegroupaszState.closegroupcCs||jko|j|duSr$)r&r)r"r,rrr�
checkgroupcszState.checkgroupcCs6|jdur2|�|�s|�d��||jkr2|�d��dS)N�cannot refer to an open groupz?cannot refer to group defined in the same lookbehind subpattern)rr2r))r"r,�sourcerrr�checklookbehindgroupfs




zState.checklookbehindgroup)N)
rrrr#�propertyr&r.r1r2r5rrrrrJs

rc@s`eZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
d�Zdd�Z	dd�Z
dd�Zdd�ZdS)�
SubPatternNcCs"||_|durg}||_d|_dSr$)�state�data�width)r"r8r9rrrr#ps
zSubPattern.__init__rcCs�d}ttf}|jD�]t\}}t|dt|�dd�|turlt�|D]"\}}t|ddt|�|�qFq|tur�t�t|d�D]*\}}|r�t|dd�|�|d�q�q|t	u�r|\}}	}
td|�|	�|d�|
�r�t|dd�|
�|d�qt
||��r~d}|D]T}t
|t��rJ|�s6t�|�|d�d}n"|�s\td	dd�t|dd�d}�q|�s�t�qtd|�qdS)
NTz  �)�end��OR�ELSEF� )�tuple�listr9�print�str�IN�BRANCH�	enumerate�dump�GROUPREF_EXISTS�
isinstancer7)r"�level�nl�seqtypes�op�avrr
�	condgroup�item_yes�item_norrrrHwsH


zSubPattern.dumpcCs
t|j�Sr$)�reprr9r!rrr�__repr__�szSubPattern.__repr__cCs
t|j�Sr$)r%r9r!rrr�__len__�szSubPattern.__len__cCs|j|=dSr$�r9�r"�indexrrr�__delitem__�szSubPattern.__delitem__cCs&t|t�rt|j|j|�S|j|Sr$)rJ�slicer7r8r9rWrrr�__getitem__�s
zSubPattern.__getitem__cCs||j|<dSr$rV�r"rX�coderrr�__setitem__�szSubPattern.__setitem__cCs|j�||�dSr$)r9�insertr\rrrr_�szSubPattern.insertcCs|j�|�dSr$)r9r')r"r]rrrr'�szSubPattern.appendc	Cs�|jdur|jSd}}|jD�]�\}}|tur|td}d}|dD]$}|��\}}t||�}t||�}qD||}||}q|tur�|��\}}||}||}q|tur�|d��\}}||}||}q|t	v�r|d��\}}|||d}|||d}q|t
v�r$|d}|d}q|tu�rP|jj
|\}}||}||}q|tu�r�|d��\}}|ddu�r�|d��\}}t||�}t||�}nd}||}||}q|tur�q�qt|td�t|t�f|_|jS)Nrr=����)r:r9rF�	MAXREPEATr/�min�max�CALL�
SUBPATTERN�_REPEATCODES�
_UNITCODES�GROUPREFr8rrI�SUCCESS)	r"�lo�hirNrOr
�j�l�hrrrr/�sZ












zSubPattern.getwidth)N)r)
rrrr#rHrTrUrYr[r^r_r'r/rrrrr7ns

(r7c@sbeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Ze	d
d��Z
dd�Zdd�Zddd�Z
dS)�	TokenizercCs@t|t�|_||_|js"t|d�}||_d|_d|_|��dS)N�latin1r)rJrD�istext�string�decoded_stringrX�next�_Tokenizer__next)r"rsrrrr#�s
zTokenizer.__init__cCs�|j}z|j|}Wnty.d|_YdS0|dkr�|d7}z||j|7}Wn,ty~td|jt|j�d�d�Yn0|d|_||_dS)Nrr=zbad escape (end of pattern))rXrt�
IndexErrorrur)rsr%)r"rX�charrrr�__next�s$��
zTokenizer.__nextcCs||jkr|��dSdS)NTF�rurv)r"rxrrr�match�s
zTokenizer.matchcCs|j}|��|Sr$rz)r"�thisrrrr*�sz
Tokenizer.getcCs8d}t|�D]&}|j}||vr"q4||7}|��q|S�Nr;)�rangerurv)r"�n�charset�result�_�crrr�getwhiles
zTokenizer.getwhilecCsld}|j}|��|dur@|s,|�d|��|�d|t|���||kr^|sh|�d|d��qh||7}q|S)Nr;zmissing zmissing %s, unterminated namer=)rurvr)r%)r"�
terminatorr+r�r�rrr�getuntils
�
zTokenizer.getuntilcCs|jt|jpd�Sr}�rXr%rur!rrr�possz
Tokenizer.poscCs|jt|jpd�Sr}r�r!rrr�tellszTokenizer.tellcCs||_|��dSr$)rXrvrWrrr�seek!szTokenizer.seekrcCst||j|��|�Sr$)r)rsr�)r"�msg�offsetrrrr)%szTokenizer.errorN)r)rrrr#rvr{r*r�r�r6r�r�r�r)rrrrrp�s		
rpc	Cs�t�|�}|r|St�|�}|r0|dtur0|S�zL|dd�}|dkr�||�dt�7}t|�dkrx|�d|t|���tt	|dd�d�fWS|dkr�|j
r�||�dt�7}t|�d	kr�|�d|t|���tt	|dd�d�fWS|d
k�rN|j
�rN||�dt�7}t|�dk�r*|�d|t|���t	|dd�d�}t|�t|fWS|d
k�r�|j
�r�ddl}|�
d��s~|�d��|�dd�}zt|�|��}Wn4ttf�y�|�d|t|�td���Yn0t|fWS|tv�r0||�dt�7}t	|dd�d�}|dk�r&|�d|t|���t|fWS|tv�r>t�t|�dk�r||tv�rj|�d|t|���tt|d�fWSWnt�y�Yn0|�d|t|���dS)Nrr=rar��incomplete escape %s�r��U��
�N�{�	missing {�}�character name�undefined character name %r�\N{}��.octal escape value %s outside of range 0-0o377�
bad escape %s)�ESCAPESr*�
CATEGORIESrEr��	HEXDIGITSr%r)�LITERAL�intrr�chr�unicodedatar{r��ord�lookup�KeyError�	TypeError�	OCTDIGITS�DIGITS�
ValueError�ASCIILETTERS)r4�escaper]r�r��charnamerrr�
_class_escape(sp




�



��


r�c	Csft�|�}|r|St�|�}|r$|S�z|dd�}|dkr�||�dt�7}t|�dkrl|�d|t|���tt|dd�d�fWS|dkr�|j	r�||�dt�7}t|�dkr�|�d|t|���tt|dd�d�fWS|d	k�rB|j	�rB||�d
t�7}t|�dk�r|�d|t|���t|dd�d�}t
|�t|fWS|dk�r�|j	�r�d
dl}|�d��sr|�d��|�
dd�}zt|�|��}Wn4ttf�y�|�d|t|�td���Yn0t|fWS|dk�r||�dt�7}tt|dd�d
�fWS|tv�r�|jtv�r�||��7}|dtv�r�|dtv�r�|jtv�r�||��7}t|dd�d
�}|dk�r�|�d|t|���t|fWSt|dd��}||jk�r�|�|��s�|�dt|���|�||�t|fWS|�d|t|�d��t|�dk�r6|tv�r$|�d|t|���tt|d�fWSWnt�yLYn0|�d|t|���dS)Nr=rarr�r�r�rr�r�r�r�r�rr�r�r�r�r�r��0r�r�r3�invalid group reference %dr�)r�r*r�r�r�r%r)r�r�rrr�r�r{r�r�r�r�r�r�r�rur&r2r5rir�r�)r4r�r8r]r�r�r��grouprrr�_escapeds�




�



�
��
�

r�cCstt�|��Sr$)rB�dict�fromkeys)�itemsrrr�_uniq�sr�cCsVg}|j}|j}|��}|t||||d|o2|��|d�sqDqt|�dkrX|dSt|�}d}	|D].}
|
stq�|	dur�|
d}	qh|
d|	krhq�qh|D]
}
|
d=q�|�|	�q`q�q`g}|D]h}
t|
�dkr��q@|
d\}}
|tur�|�||
f�q�|tu�r"|
ddtu�r"|�	|
�q��q@q�|�tt
|�f�|S|�td|ff�|S)Nr=�|r)r'r{r��_parser%r7r�rE�NEGATE�extendr�rF)r4r8�verbose�nestedr��itemsappend�sourcematch�start�
subpattern�prefix�item�setrNrOrrr�
_parse_sub�sN
�

r�Fc/
Cs�t|�}|j}|j}|j}t}	t}
|j}|dur4�qR|dvr@�qR|�|rx|tvrTq"|dkrx|�}|dusv|dkr\q"q\q"|ddkr�t|||�}||�q"|t	vr�|t
|
|�f�q"|dk�r�|��d}
g}|j}|jdk�rddl}|j
d|��t|d	d
�|d�}|�}|du�r0|�d|��|
��|d
k�rF|�rF�qbn�|ddk�r`t||�}n~|�r�|dv�r�|j|k�r�ddl}|j
d|dk�r�dn|dk�r�dn|dk�r�dnd|��dft|d	d
�t
|
|�f}|d��r<|�}|du�r|�d|��|
��|d
k�rL|dtu�r0|dd}||�|t
|
d�f��qb|ddk�rft||�}n>|dk�r�ddl}|j
d|��dt|d	d
�t
|
|�f}|dt
k�s�|dt
k�r�d||f}|�|t|�dt|���|d}|d}||k�r*d||f}|�|t|�dt|���|t||ff�n"|dtu�rV|dd}||��qt|�}|	|�dk�r�|ddt
u�r�|�r�|t|ddf�n||d�n"|�r�|�dtdf�|t|f�q"|tv�r.|��}
|dk�rd\}}�nB|dk�rdt}}�n*|dk�r0dt}}�n|dk�r4|jdk�rX|t
|
|�f�q"dt}}d }}|jtv�r�||�7}�qj|d!��r�|jtv�r�||�7}�q�n|}|d��s�|t
|
|�f�|�|
�q"|�r�t|�}|tk�r�td"��|�rBt|�}|tk�rtd"��||k�rB|�d#|��|
��ntd$|f��|�rV|d%d�}nd}|�rr|ddtu�r�|�d&|��|
t|���|ddtv�r�|�d'|��|
t|���|ddt u�r�|dd\}}}}|du�r�|�s�|�s�|}|d��rt!|||ff|d%<nt"|||ff|d%<q"|d(k�rF|t#df�q"|d)k�r|��d} d*}d}!d}d}|d��rB|�}|du�r�|�d+��|d,k�r�|d-��r�|�$d.d/�}!|!�%��s�d0|!}|�|t|!�d��n�|d1��r�|�$d2d/�}!|!�%��sd0|!}|�|t|!�d��|j&�|!�}"|"du�rFd3|!}|�|t|!�d��|�'|"��sf|�d4t|!�d��|�(|"|�|t)|"f�q"n2|�}|du�r�|�d+��|�d5|t|�d���n�|d6k�r�d}�nx|dk�r|jdu�r�|�d7|��| ��|�d2k�r�q"�q�q"�n6|d8v�r�d}#|d-k�r||�}|du�r>|�d+��|d9v�r`|�d:|t|�d��d%}#|j*}$|$du�r||j+|_*t,||||d�}|#dk�r�|$du�r�d|_*|d2��s�|�d;|��| ��|d1k�r�|t-|#|ff�q"|t.|#|ff�q"�nJ|d)k�
r�|�$d2d/�}%|%�%��	rL|j&�|%�}&|&du�
rd3|%}|�|t|%�d��n�zt|%�}&|&dk�	rdt/�Wn2t/�	y�d0|%}|�|t|%�d�d�Yn0|&�	s�|�d<t|%�d��|&t0k�	r�d=|&}|�|t|%�d��|&|j1v�
r|��t|%�d|j1|&<|�(|&|�t2||||d�}'|�d>��
rTt2||||d�}(|jd>k�
rX|�d?��nd}(|�d2��
sx|�d;|��| ��|t3|&|'|(ff�q"n�|t4v�
s�|dk�r*t5|||�})|)du�r|�
r�|�rddl}|j
d@|j6ddA�t|j6�dAk�
r�dBnd | ft7|d	d
�|j8t9@r"|s"t:�q"|)\}}d}n|�dC|t|�d��|du�r�z|�;|!�}Wn>t�y�}*z$|�|*j<t|!�d�d�WYd}*~*n
d}*~*00|�s�|t9@�o�|t9@}+t,|||+|d�}|�d2��s�|�d;|��| ��|du�r�|�=||�|t ||||ff�q"|dk�r*|tt>f�q"|dDk�rB|tt?f�q"tdE|f��q"t@t|��ddd%�D]N},||,\}-}.|-t u�rh|.\}}}}|du�rh|�sh|�sh|||,|,d�<�qh|S)FNz|)�#rrr�[r=z"Possible nested set at position %dr�)�
stacklevel�^zunterminated character set�]z-&~|zPossible set %s at position %d�-�
difference�&�intersection�~zsymmetric difference�unionz&Possible set difference at position %drazbad character range %s-%s�?)rr=r�+r�r�r;�,z"the repetition number is too largez"min repeat greater than max repeatzunsupported quantifier %rr`znothing to repeatzmultiple repeat�.�(Tzunexpected end of pattern�P�<�>�
group name�bad character in group name %r�=�)�unknown group name %rr3zunknown extension ?P�:zmissing ), unterminated commentz=!<z=!zunknown extension ?<z"missing ), unterminated subpatternzbad group numberr�r�z/conditional backref with more than two branchesz@Flags not at the start of the expression %r%s but at position %d�z (truncated)zunknown extension ?�$z unsupported special character %r)Ar7r'r*r{r%r�ru�
WHITESPACEr��
SPECIAL_CHARSr�r��warnings�warn�
FutureWarningr)r�rE�RANGEr��NOT_LITERALr_r��REPEAT_CHARSrbr�r�r��
OverflowError�AssertionError�ATrgrf�
MIN_REPEAT�
MAX_REPEAT�ANYr��isidentifierrr2r5rirr&r��ASSERT�
ASSERT_NOTr�r(r r�rI�FLAGS�_parse_flagsrs�DeprecationWarningr�SRE_FLAG_VERBOSErr.r�r1�AT_BEGINNING�AT_ENDr~)/r4r8r�r��firstr��subpatternappend�	sourcegetr��_len�_ordr|r]�herer��	setappendr��negate�code1�that�code2r�rkrlrcrdrxr�r��	add_flags�	del_flagsr0r�r+r,�dirr�condnamerPrQrRr�err�sub_verboser
rNrOrrrr��s~


�

�
��	


�


��
 












���












�



�


�






�




�





�
�
�
���	

�
.�
�



r�cCs|j}d}d}|dkr�t|}|jr<|dkrRd}|�|��n|dkrRd}|�|��||O}|t@r||t@|kr|d}|�|��|�}|dur�|�d��|d	vr�q�|tvr|��r�d
nd}|�|t|���q|dkr�|j|O_dS|t@r�|�dd
��|dk�r�|�}|du�r|�d��|tv�rF|���r2d
nd}|�|t|���t|}|t@�rfd}|�|��||O}|�}|du�r�|�d��|dk�r��q�|tv�rF|���r�d
nd}|�|t|����qF|dk�s�J�|t@�r�|�dd
��||@�r|�dd
��||fS)Nrr�rz8bad inline flags: cannot use 'L' flag with a str patternrz:bad inline flags: cannot use 'u' flag with a bytes patternz9bad inline flags: flags 'a', 'u' and 'L' are incompatiblezmissing -, : or )z)-:zunknown flagr�z,bad inline flags: cannot turn on global flagr=zmissing flagz8bad inline flags: cannot turn off flags 'a', 'u' and 'L'z	missing :r�z-bad inline flags: cannot turn off global flagz(bad inline flags: flag turned on and off)	r*r�rrr)�
TYPE_FLAGS�isalphar%r�GLOBAL_FLAGS)r4r8rxr�rr�flagr�rrrr�dsn














r�cCsjt|t�r>|t@rtd��|t@s,|tO}qf|t@rftd��n(|t@rNtd��|t@rf|t@rftd��|S)Nz)cannot use LOCALE flag with a str patternz(ASCII and UNICODE flags are incompatiblez,cannot use UNICODE flag with a bytes patternz'ASCII and LOCALE flags are incompatible)rJrD�SRE_FLAG_LOCALEr��SRE_FLAG_ASCII�SRE_FLAG_UNICODE)�srcrrrr�	fix_flags�s


rNcCs�t|�}|durt�}||_||_zt|||t@d�}Wn@tyxt�}|tB|_||_|�d�t||dd�}Yn0t||j	j�|j	_|j
dur�|j
dks�J�|�d��|j	jD],}||j	j
kr�d|}t|||j	j|��q�|t@r�|��|S)NrTr�zunbalanced parenthesisr�)rprrrDr�r�rr�rr8rur)r r&�SRE_FLAG_DEBUGrH)rDrr8r4r0�gr�rrr�parse�s0



rcs�t|���j}g�g�g��j}�����fdd�}�j}|�}|durL�q�|ddk�r�|d}|dk�rFd}��d�s���d	����d
d�}|��r�z||}	Wnty�t	d|��Yn0njzt
|�}	|	dkr�t�Wn.t�y��d
|t|�d�d�Yn0|	t
k�r0��d|	t|�d��||	t|�d��q�|dk�r��jtv�r|||�7}�jtv�r|||�7}|tt
|dd�d�d@���q�|tv�rVd}
�jtv�r0||�7}|tv�r0|dtv�r0�jtv�r0||�7}d}
t
|dd�d�}|dk�r$��d|t|���|t|��|
�s�|t
|dd��t|�d�nPztt|d�}Wn2t�y�|tv�r���d|t|���Yn0||�q:||�q:��rȈ�d����t|t��s�dd��D����fS)NcsX|�jkr��d||���r8��d�����dd�=��t��|f���d�dS)Nr�r;)r&r)r'�joinr%)rXr��r&�literal�literalsrr8rr�addgroup�s

z parse_template.<locals>.addgrouprrr=rr;r�z	missing <r�r�r�r�r�r�r�r�FraTr�r�cSs"g|]}|durdn|�d��qS)Nzlatin-1)�encode)�.0rrrr�
<listcomp>'�z"parse_template.<locals>.<listcomp>)rpr*r'�
groupindexr{r)r�r�r�rwr�r�r%r(rur�r�r�r�r�rrJrD)r4r8�sget�lappendrrr|r�r+rX�isoctalrrr�parse_template�s�




��


�


"

�

�� 


r"cCst|j}|jdd�}|\}}|dd�}z"|D]\}}||�p@|||<q.Wntyhtd|��Yn0|�|�S)Nrr�)r�rsrwr)r)�templater{r�emptyr&rrXr�rrr�expand_template*sr%)F)rN)=�__doc__�
sre_constantsr�r��	frozensetr�r�r�r�r�r�r�rgr�r�rEr�r��CATEGORYrhr�r�r�ZAT_BEGINNING_STRINGZAT_BOUNDARYZAT_NON_BOUNDARYZCATEGORY_DIGITZCATEGORY_NOT_DIGITZCATEGORY_SPACEZCATEGORY_NOT_SPACEZ
CATEGORY_WORDZCATEGORY_NOT_WORDZ
AT_END_STRINGr��SRE_FLAG_IGNORECASEr
�SRE_FLAG_MULTILINE�SRE_FLAG_DOTALLr�r�SRE_FLAG_TEMPLATErr�r	rr�	Exceptionrrr7rpr�r�r�r�r�r�rrr"r%rrrr�<module>sr







���
$rH<M:
x<
%U