AlkantarClanX12

Your IP : 3.145.33.244


Current Path : /opt/alt/python312/lib64/python3.12/re/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/re/__pycache__/_compiler.cpython-312.opt-2.pyc

�

�Q�f�e��2�	ddlZddlmZddl�ddlmZeehZe	e
hZee
hZeeehzZeeeefeeeefeee	efiZej8fd�Zd�Zd�Zdd	�Z ejBd
zZ"de"zdz
Z#dZ$e"e%fd�Z&d
�Z'd�Z(d�Z)d�Z*d�Z+d�Z,d�Z-d�Z.d�Z/d�Z0d�Z1dd�Z2y)�N�)�_parser)�*)�_EXTRA_CASESc�*�||zr||z}||z|zS�N�)�flags�	add_flags�	del_flags�
TYPE_FLAGSs    �3/opt/alt/python312/lib64/python3.12/re/_compiler.py�_combine_flagsrs(���:��
�*�����I��)��+�+�c
�
�|j}t}t}t}t}t
}d}	d}
d}|tzrY|tzsP|tzr'tj}	tj}
t}n tj}	tj}
|D�]d\}}
||v�r|tzs||�||
��&|tzr|t|�||
��G|	|
�s||�||
��`|
|
�}|s|t |�||���||vr|t"|�||���|t$�||�}|d�|t&ur|t(�|f||zD]}|t*�||��|t,�||�|z
||<��|t.ur�t1|
|	|
|�\}}|tzr|tzr
|t2�n*|s
|t.�n|s
|t4�n|t$�||�}|d�t7|||�||�|z
||<���|t8ur%|t:zr|t<����|t8����||vr�|t>zrtAd|����tC|
d�r`|||d�||�}|d�||
d�||
d�tE||
d|�|tF�||�|z
||<��Q|||d�||�}|d�||
d�||
d�tE||
d|�||�|z
||<|||d����|tHur^|
\}}}}|r|tJ�||dz
dz�tE||tM|||��|s���|tJ�||dz
dzdz���|tNurE|tN�||�}|d�tE||
|�|tF�||�|z
||<��f||vr
||���t||vr�||�||�}|d�|
ddk\r	|d�nB|
djQ�\}}|tRkDrtAd��||k7rtAd��||�tE||
d|�|tF�||�|z
||<��|tTurp||�|tVzrtXj[|
|
�}
|tzrt\j[|
|
�}
n|tzrt^j[|
|
�}
||
����|t`ur�||�g}|j}|
dD]O}
||�}|d�tE||
|�|tb�|||��|d�||�|z
||<�Q|t,�|D]}||�|z
||<���|tdur7||�|tzr
tf|
}
n|tzr	th|
}
||
���^|tjurP|tzs	||�n1|tzr
|tl�n|s
|tn�n|tp�||
dz
����|trur�||�||
ddz
�||�}|d�tE||
d|�|
drM|tb�||�}|d�||�|z
dz||<tE||
d|�||�|z
||<��F||�|z
dz||<��YtAd|����y)Nrz(internal: unsupported template operator �rzlooks too much behindz(look-behind requires fixed-width patternz#internal: unsupported operand type ):�append�len�_LITERAL_CODES�_REPEATING_CODES�_SUCCESS_CODES�
_ASSERT_CODES�SRE_FLAG_IGNORECASE�SRE_FLAG_LOCALE�SRE_FLAG_UNICODE�_sre�unicode_iscased�unicode_tolowerr�
ascii_iscased�
ascii_tolower�OP_LOCALE_IGNORE�	OP_IGNORE�OP_UNICODE_IGNORE�
IN_UNI_IGNORE�NOT_LITERAL�NEGATE�LITERAL�FAILURE�IN�_optimize_charset�
IN_LOC_IGNORE�	IN_IGNORE�_compile_charset�ANY�SRE_FLAG_DOTALL�ANY_ALL�SRE_FLAG_TEMPLATE�error�_simple�_compile�SUCCESS�
SUBPATTERN�MARKr�ATOMIC_GROUP�getwidth�MAXCODE�AT�SRE_FLAG_MULTILINE�AT_MULTILINE�get�	AT_LOCALE�
AT_UNICODE�BRANCH�JUMP�CATEGORY�	CH_LOCALE�
CH_UNICODE�GROUPREF�GROUPREF_LOC_IGNORE�GROUPREF_IGNORE�GROUPREF_UNI_IGNORE�GROUPREF_EXISTS)�code�patternr
�emit�_len�
LITERAL_CODES�REPEATING_CODES�
SUCCESS_CODES�ASSERT_CODES�iscased�tolower�fixes�op�av�lo�skip�k�charset�hascased�grouprr�p�hi�tail�
tailappend�skipyes�skipnos                            rr4r4%s����;�;�D��D�"�M�&�O�"�M� �L��G��G��E��"�"�5�?�+B��#�#��*�*�G��*�*�G� �E��(�(�G��(�(�G����B�
����.�.��R���R����(��%�b�)�*��R���R�[��R���R���R�[�����2��'���H��u�_��*�2�.�/���H���'���:�D�t�A�w��[�(��V�� �U�U�2�Y�.���W�
��Q��/���M�!%�d��d�!2�D��J�
�2�X� 1�"�g�w�� N��G�X��*�*�u��/F��]�#���R����Y���]�#���:�D�t�A�w��W�e�T�2��d��d�*�D��J�
�3�Y���&��W�
��S�	�
�?�
"��(�(��B�P�Q�Q��r�!�u�~��_�R�(��+�,��D�z��4��7��R��U���R��U����r�!�u�e�,��W�
�!�$�Z�$�.��T�
��_�R�(��+�,��D�z��4��7��R��U���R��U����r�!�u�e�,�!�$�Z�$�.��T�
��_�R�(��+�,�
�:�
�-/�*�E�9�i����T�
��e�A�g�q�[�!��T�1�n�U�I�y�I�J���T�
��e�A�g�q�[��]�#�
�<�
�
�����:�D�t�A�w��T�2�u�%���M��d��d�*�D��J�
�=�
 ���H�
�<�
���H���:�D�t�A�w��!�u��z��Q���A����)���B���<�� 7�8�8���8�� J�K�K��R���T�2�a�5�%�(���M��d��d�*�D��J�
�2�X���H��)�)�!�%�%�b�"�-����&��]�]�2�r�*���)�)��^�^�B��+����H�
�6�\���H��D����J���e���D�z��4��7���r�5�)��T�
��4��:�&��Q��!�$�Z�$�.��T�
�
�
��M���!�$�Z�$�.��T�
��
�8�^���H���&��r�]���)�)���^����H�
�8�^��.�.��R����(��(�)���_�%��(�)���A��J�
�?�
"���H���A��q��M��4�j�G�$�q�'��T�2�a�5�%�(��!�u��T�
��d���T�!�W� $�T�
�W� 4�q� 8��W�
���r�!�u�e�,�#�D�z�F�2��V�� $�T�
�W� 4�q� 8��W�
��2�G�H�H�}rc���|j}|D]�\}}||�|tur�|tur	||��(|tus|tur||d�||d��O|t
ur|j
|��i|tur|j
|���|tur;|tzr|t|���|tzr|t|���||���td|����|t�y)Nrrz#internal: unsupported set operator )rr&r'�RANGE�RANGE_UNI_IGNORE�CHARSET�extend�
BIGCHARSETrCrrDrrEr2r()r[r
rKrMrVrWs      rr-r-�s����;�;�D����B��R��
��<��
�7�]���H�
�5�[�B�"2�2���A��K���A��K�
�7�]��K�K��O�
�:�
��K�K��O�
�8�^���&��Y�r�]�#��)�)��Z��^�$��R���2�G�H�H�+�,	��Mrc�@�g}g}td�}d}|D]�\}}			|tur7|r/||	�}
d||
<|r|
|vr||
D]}d||<�	|s�||	�r�d}n�d||	<n�|turt|	d|	ddz�}|r[|r+t	||�D]}
d||
<|
|vs�
||
D]}d||<�	�nt	||�D]}
d||
<�	|sRtt	||��}n<|D]}
d||
<�	n/|tur|j||	f�n|j||	f���g}d}	|jd|�}|dkrnYt|�dk\rd}nH|jd|�}|dkr|j|t|�f�n|j||f��q|�l|D]A\}}||z
dk(r|jt|f��&|jt||dz
ff��C||z
}|st|�t|�kr||fS||fSt|�dk(r+t|�}|jt|f�||z
}||fSt|�}i}td�}d}t�}tdd	d�D]1}
||
|
dz}||vr||||
dz<�|x||
dz<||<|dz
}||z
}�3t|�}|gt|�z|dd|jt |f�||z
}||fS#t$rBt|�dk(r|ddzz
}Y���|rd}|turt}|j||	f�Y��wxYw)
N�FTrr�i�ri)�	bytearrayr're�range�map�anyr&r�
IndexErrorrrf�find�
_mk_bitmaprg�bytes�_bytes_to_codesri)r[rS�fixuprU�outr`�charmapr\rVrWrXrZ�r�i�runs�qr^�data�comps�mapping�block�chunks                      rr*r*�s���
�C�
�D���n�G��H����B��6
&���=��"�2�Y��&'���� �R�5�[�%*�2�Y��-.���
�&/�'�G�B�K�'+�H�&'�����5�[��b��e�R��U�1�W�-�A�� �%(���]��-.���
�#$��:�-2�1�X��56���
�.6�&3�&)���]��-.���
�&3�'�'*�3�w��?�';�H�!"�A�)*�G�A�J�"#��6�\��J�J��B�x�(��K�K��R��)�.
�s�x�D�	�A�
��L�L��A����q�5���t�9��>��D���L�L��A����q�5��K�K��C��L�)�*�����Q��F������D�A�q��1�u��z��
�
�G�Q�<�(��
�
�E�A�q�1�u�:�.�/�	�
	�t����s�3�x�#�g�,�.���=� ��� � ��7�|�s���'�"���
�
�G�T�?�#��t����H�}��,�G�n�G��E���n�G�
�E��;�D�
�1�e�S�
!����1�s�7�#���E�>� %�e��G�A��H��/4�4�G�A��H���e���Q�J�E��E�M�D�"��d��D���/�'�2�2�D��1�I��J�J�
�D�!�"��4�K�C���=���C�
&��w�<�3�&��u�v�~�-�G���#�H��U�{�-�����R��H�%�+
&�s�A8K�A<K�L�4%L�L�s0111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111c��|jt�ddd�}tt|�d|�D�cgc]}||||z
|d���c}Scc}w)N���rr)�	translate�_BITS_TRANSrnr)�bits�	_CODEBITS�_int�srzs     rrsrs�s_�����{�#�D�b�D�)�A��3�q�6�1�y�j�1�3�1��
��1�y�=�!�$�a�(�1�3�3��3s�Ac�V�t|�jd�}|j�S)N�I)�
memoryview�cast�tolist)�b�as  rruru�s$���1�
���3��A�
�8�8�:�rc�~�t|�dk7ry|d\}}|tur|dduxrt|d�S|tvS)NrFrr�)rr6r3�_UNIT_CODES)r^rVrWs   rr3r3�sK��
�1�v��{��
�q�T�F�B��	�Z���!�u��}�0���B���0�
���rc���	dgt|�z}tdt|��D]<}||dz
}||||k7r|dk(rd||<�!||dz
}||||k7r�|dz||<�>|S)Nrr)rrn)�prefix�tablerz�idxs    r�_generate_overlap_tabler��s�����C�#�f�+��E�
�1�c�&�k�
"���A��E�l���Q�i�6�#�;�&��a�x���a�����a��.�C�	�Q�i�6�#�;�&��Q�w�E�!�H�#��Lrc�h�|tzsy|tzrtjStjSr)rrrrr)r
s r�_get_iscasedr��s/���&�&��	�!�	!��#�#�#��!�!�!rc��g}|j}d}t|�}|jD]�\}}|tur|r
||�rn�||��#|turn|\}}	}
}t||	|
�}|tzr|tzrnNt||�\}
}}|�|�t|�}n|�t|�|z}|j|
�|r��nn||dfS||dfS)NTF)rr�r}r'r6rrr�_get_literal_prefixrrh)rLr
r��prefixappend�prefix_skiprSrVrWr]rrr^�flags1�prefix1�prefix_skip1�got_alls                rr�r��s���
�F��=�=�L��K��5�!�G��,�,���B�
��=��7�2�;�����
�:�
�-/�*�E�9�i��#�E�9�i�@�F��+�+���0H��-@��F�-K�*�G�\�7��"��$�"%�f�+�K�!�-�"%�f�+��"<�K��M�M�'�"����)�,�{�D�(�(��;��%�%rc�T�	|jsy|jd\}}|turn(|\}}}}t|||�}|tzr
|tzry�Pt|�}|tur|r	||�ry||fgS|turDg}|j}	|dD],}
|
sy|
d\}}|tur|r||�s|	||f��,y|S|tur`|}|rZ|D]U\}}|tur||�s�y|tus�"|ddkDrytt|t|d|ddz���s�Uy|Sy)Nrri��)r}r6rrrr�r'rArr)rerprorn)rLr
rVrWr]rrrSr[�
charsetappendr^s           r�_get_charset_prefixr��sW��
��|�|�����a����B�
�Z���/1�,��y�)�W��u�i��;���&�&�5�?�+B����5�!�G�	�W�}��w�r�{���R��z��	�v�������
��A��A����q�T�F�B���W�}�g�'�"�+��r�2�h�'�����	�r�����!���B���=��r�{�#��5�[��!�u�v�~�#��3�w��b��e�R��U�1�W�(=�>�?�#�"���rc��|j�\}}|tkDrt}|dk(r|jtdd||g�yg}d}g}|tzr	|t
zst
||�\}}}|st||�}|j}	|	t�t|�}
|	d�d}|rt}|�r|tz}n|r	|tz}|	|�|tkr	|	|�n|	t�|dt}|	|�|rR|	t|��|�t|�}|	|�|j|�|jt|��n|rt|�\}}t|||�t|�|
z
||
<y)Nr�)r9r:rh�INFOrrr�r�rr�SRE_INFO_PREFIX�SRE_INFO_LITERAL�SRE_INFO_CHARSETr�r*r-)
rKrLr
rXr_r�r�r[r�rMrY�maskr\s
             r�
_compile_infor��sv���
�
�
�F�B��	�G�|�
��	�Q�w����T�1�a��R�(�)��
�F��K��G��'�'�E�O�,C�':�7�E�'J�$���W��)�'�5�9�G��;�;�D���J��t�9�D�d�1�g��D�
�����7��*�*�D�	��&�&����J�	�G�|��R���W�
����!����H�
��S��[�����v�;�K��[�����F�����+�F�3�4�	�-�g�6������%��.��T��T�!�D��Jrc�.�t|ttf�Sr)�
isinstance�strrt)�objs r�isstringr�:s���c�C��<�(�(rc��|jj|z}g}t|||�t||j|�|jt�|Sr)�stater
r�r4r}rr5)r^r
rKs   r�_coder�=sJ��
�G�G�M�M�E�!�E�
�D��$��5�!�
�T�1�6�6�5�!��K�K����Krc�8�ddjd�|D��zS)N�[%s]�, c3�RK�|]}dtjdzdz|fz���!y�w)z%#0*xrN)r�CODESIZE��.0�xs  r�	<genexpr>z_hex_code.<locals>.<genexpr>Ms(����M��1�g����q���):�A�(>�>��s�%')�join)rKs r�	_hex_coder�Ls���D�I�I�M��M�M�M�Mrc��������ddl�t��d�ttt��dz
���������fd���dt���y)Nrrc�l
���dd�����fd�
}��fd�}�dz
��}||k�r|��|}|dz
}t|}|ttttt
ttfvr
||��n�|ttttttttfvr#�|}|dz
}||d|t!|�fz��ns|t"ur*�|}|dz
}t%t&|�}|||dd��nA|t(ur*�|}|dz
}t%t*|�}|||dd��n|t,t.t0t2fvr)�|}|||||z���|dz||z�||z
}�n�|t4t6fvr4�||dz\}}	|dz
}||d	||	t!|�t!|	�fz��n�|t8ur-||t;�||d
t<zz��|d
t<zz
}�nW|t>ur��|}|dz
}tAdjC�fd��||d
tDjFzzD���}
||||
�|d
tDjFzz
}�dz
�tI|�D],}|t;�||d
t<zz��|d
t<zz
}�.�dz��n�|tJtLtNtPtRfvr�|}|dz
}|||��ns|tTur�|}|||||z��|dz
}�nQ|tVurW�|}|||||z��|r;�|dz||z�||z
}|��|}|r|d
|||z��n|t�|r�;|dz
}�n�|tXtZt\t^t`fvr=�||dz\}}}
|
tbk(rd}
|||||
||z���|dz||z�||z
}�n�|tdur!�||dz\}}||||||z��|dz
}�no|tfthfvr0�||dz\}}||||||z���|dz||z�||z
}�n1|tjur)�|}|||||z���|dz||z�||z
}�n|tlur�||dz\}}}}
|
tbk(rd}
|||to|�||
||z��|dz�|tpzr��|dz|dz\}}|d|�|dz����|z}|dddjCd�|D��zddjCtst |��z��|z
�|d���|z��|z
�|ttzr�dz
�|d���||z��dz�||z
}ntw|��||kr���dz�y)N)�toc���|��j|�|d|fzfz
}td����vrdndfzd�dz
z��t|�y)Nz(to %d)z%*d%s �:�.z  r��end)�add�print)r��args�labels�level�offset_width�starts  ����r�print_z!dis.<locals>.dis_.<locals>.print_WsW����~��
�
�2����b�U�*�,�,���(�l�E�%�6�/�3�s�S�S��E�!�G�n�
&��4�Lrc�@��td�d�zzz��t|�y)N� rr�)r�)r�r�r�s ��r�print_2z"dis.<locals>.dis_.<locals>.print_2_s ����c�<�!�E�'�1�2�3��4�Lrrz
%#02x (%r)��	rz%#02x %#02x (%r-%r)rkrc3�r�K�|].}|jtj�j����0y�wr)�to_bytesrr��	byteorder)r�r��syss  �rr�z$dis.<locals>.dis_.<locals>.<genexpr>�s-�����(R�1P�A�)*�
�
�4�=�=�#�-�-�(P�1P�s�47�branch�	MAXREPEATr��z
  prefix_skipz  prefixr�r�c3�&K�|]	}d|z���y�w)z%#02xNr	r�s  rr�z$dis.<locals>.dis_.<locals>.<genexpr>�s����.K�F�q�w��{�F�s�z(%r)�z	  overlap�in)<�OPCODESr5r(r.r0�	MAX_UNTIL�	MIN_UNTILr&r'r%�LITERAL_IGNORE�NOT_LITERAL_IGNORE�LITERAL_UNI_IGNORE�NOT_LITERAL_UNI_IGNORE�LITERAL_LOC_IGNORE�NOT_LITERAL_LOC_IGNORE�chrr;r��ATCODESrC�CHCODESr)r,r$r+rerfrgr�r�ri�listr�rr�rnr7rFrHrIrGrBrA�REPEAT�
REPEAT_ONE�MIN_REPEAT_ONE�POSSESSIVE_REPEAT�POSSESSIVE_REPEAT_ONEr�rJ�ASSERT�
ASSERT_NOTr8r��binr�ror��
ValueError)r�r�r�r�rzrV�argrYrXr_r�j�min�maxr
�
prefix_lenr�r�rK�dis_r�r�r�r�s`                 ������rr�zdis.<locals>.dis_Vs���!�	�	�	�
	��
�����#�g��E��a��B�
��F�A����B��g�w��W���F�4�4��r�
����&�(:�*�,B�*�,B�D�D��1�g���Q����r�<�3��C��/�9�:��r���1�g���Q����'�#�,�'���r�3�q�r�7�#��x���1�g���Q����'�#�,�'���r�3�q�r�7�#���I�}�m�D�D��A�w���r�4�A�d�F�+��Q�q�S�!�D�&�!��T�	����/�0�0��a��1�����B��Q����r�0�B��C��G�S��W�3M�M�N��w���r�9�T�!�Q��i��-?�%@�A�B��S�)�^�#���z�!��1�g���Q����s�x�x�(R�15�a��S�$�-�-�=O�9O�1P�(R� R�S���r�3��(��S�$�-�-�'�'����
���s��A��I�d�1�a�#�y�.�.@�&A�B�C���i��'�A�$���
����h��9L�+�-�-��1�g���Q����r�3���t���A�w���r�4�A�d�F�+��Q����v���A�w���r�4�A�d�F�+����1��a��f�%���I�A��E���7�D���x��!�D�&�9��w����Q�����
�N�)�+@�B�B�!%�a��1�����c�3��)�#�%�C��r�4��c�a��f�5��Q�q�S�!�D�&�!��T�	����&� ��A�a�C�L�	��T��r�3���4��0��Q�����
�+�+� ��A�a�C�L�	��c��r�4���4��0��Q�q�S�!�D�&�!��T�	���|�#��A�w���r�4�A�d�F�+��Q�q�S�!�D�&�!��T�	���t��(,�Q��!���%��e�S�#��)�#�%�C��r�4��U��S�#�!�D�&�A��!����?�*�.2�1�Q�3��!��n�+�J���O�[�9���E�E�!�%��z�)9�:�F��J�"�T�Y�Y�.K�F�.K�%K�K�"�R�W�W�S��f�-=�%>�>�@��Z�'�E��K��e�U�:�5E�)F�G��Z�'�E��+�+��Q�J�E��D�M����$��'��Q�J�E��T�	�� ��n�$�o�#�g�r	��
�r)r��setrr�)rKr�r�r�r�r�s`@@@@@r�disr�OsF����
�U�F�
�E��s�3�t�9�q�=�)�*�L�I�I�V	��C��I�rc
���t|�r|}tj||�}nd}t||�}|tzrt�t
|�|jj}dg|jjz}|j�D]
\}}|||<�tj|||jjz||jjdz
|t|��S)Nr)r�r�parser��SRE_FLAG_DEBUGr�r�r��	groupdict�groups�itemsr�compiler
�tuple)r^r
rLrK�
groupindex�
indexgrouprZrzs        rrr�s�����{����M�M�!�U�#������E�?�D��~��
���D�	����"�"�J���!�'�'�.�.�(�J�� � �"���1��
�1�
�#��<�<��������&��	�����q���E�*�%�
�
r)NNN)r)3rr�r�
_constants�_casefixrr'r%rr5r(rr�r�rr.r)r��
MIN_REPEATr�r�r��
MAX_REPEATr�r�r�r�rr
rr4r-r*r�r�r:r��intrsrur3r�r�r�r�r�r�r�r�r�rr	rr�<module>r
s��&����"��;�'���7�#����$�
���R�y�(�����N�3����J�/��)�7�4I�J���&�0�0�,�qI�f�6J�X
�M�M�A��	��	�>�Q�
����(�s�3�
���*"�&�>*�X9"�v)�
�N�R�j
r