Vc*dZdZddlmZmZGddeZGddeZeedZd Z e d Z e d d =e d ddddddddddd Z e dddddddd d!d"d#d$d%d&d'd(d)d*Z e eeeiZe eeeiZe eeeiZeeeeiZeeee iZ!ee"ee#iZ$e%e%e&e&e'e'e(e(e)e*e+e,e-e-e.e.iZ/e%e0e&e1e'e2e(e3e)e4e+e5e-e6e.e7iZ8d+Z9d,Z:d-Z;d.Zd1Z?d2Z@d3ZAd+ZBd,ZCd-ZDd S)4zInternal support module for sreiNJ4) MAXREPEAT MAXGROUPSc(eZdZdZdZdfd ZxZS)erroraiException raised for invalid regular expressions. Attributes: msg: The unformatted error message pattern: The regular expression pattern pos: The index in the pattern where compilation failed (may be None) lineno: The line corresponding to pos (may be None) colno: The column corresponding to pos (may be None) reNc||_||_||_|x|vd||fz}t|trd}nd}||d|dz|_|||d|z |_||vrd||j|jfz}ndx|_|_t |dS)Nz%s at position %d  rz%s (line %d, column %d)) msgpatternpos isinstancestrcountlinenorfindcolnosuper__init__)selfr r rnewline __class__s &/usr/lib64/python3.11/re/_constants.pyrzerror.__init__%s   ,3 ,%c 2C'3'' !--C881s yrN)rrrr&r, __reduce__r r!s@rr#r#8sB JJJJJrr#rcdt|D}td|D|S)Nc4g|]\}}t||S)r#).0ir's r z_makecodes..Fs' H H HGAt q$ ' ' H H Hrci|] }|j| Sr0r+)r1items r z_makecodes..Gs888$di888r) enumerateglobalsupdate)namesitemss r _makecodesr<EsI H Hy7G7G H H HE II88%888999 Lr)-FAILURESUCCESSANYANY_ALLASSERT ASSERT_NOTATBRANCHCATEGORYCHARSET BIGCHARSETGROUPREFGROUPREF_EXISTSININFOJUMPLITERALMARK MAX_UNTIL MIN_UNTIL NOT_LITERALNEGATERANGEREPEAT REPEAT_ONE SUBPATTERNMIN_REPEAT_ONE ATOMIC_GROUPPOSSESSIVE_REPEATPOSSESSIVE_REPEAT_ONEGROUPREF_IGNORE IN_IGNORELITERAL_IGNORENOT_LITERAL_IGNOREGROUPREF_LOC_IGNORE IN_LOC_IGNORELITERAL_LOC_IGNORENOT_LITERAL_LOC_IGNOREGROUPREF_UNI_IGNORE IN_UNI_IGNORELITERAL_UNI_IGNORENOT_LITERAL_UNI_IGNORERANGE_UNI_IGNORE MIN_REPEAT MAX_REPEATN AT_BEGINNINGAT_BEGINNING_LINEAT_BEGINNING_STRING AT_BOUNDARYAT_NON_BOUNDARYAT_END AT_END_LINE AT_END_STRINGAT_LOC_BOUNDARYAT_LOC_NON_BOUNDARYAT_UNI_BOUNDARYAT_UNI_NON_BOUNDARYCATEGORY_DIGITCATEGORY_NOT_DIGITCATEGORY_SPACECATEGORY_NOT_SPACE CATEGORY_WORDCATEGORY_NOT_WORDCATEGORY_LINEBREAKCATEGORY_NOT_LINEBREAKCATEGORY_LOC_WORDCATEGORY_LOC_NOT_WORDCATEGORY_UNI_DIGITCATEGORY_UNI_NOT_DIGITCATEGORY_UNI_SPACECATEGORY_UNI_NOT_SPACECATEGORY_UNI_WORDCATEGORY_UNI_NOT_WORDCATEGORY_UNI_LINEBREAKCATEGORY_UNI_NOT_LINEBREAKr  @)ErMAGIC_srerr Exceptionrintr#r<OPCODESATCODESCHCODESrMr]rQr^ OP_IGNORErarbOP_LOCALE_IGNORErerfOP_UNICODE_IGNORErkrlrprq AT_MULTILINErnrsrort AT_LOCALErurv AT_UNICODErwrxryrzr{rr|rr}r~ CH_LOCALErrrrrrrr CH_UNICODESRE_FLAG_TEMPLATESRE_FLAG_IGNORECASESRE_FLAG_LOCALESRE_FLAG_MULTILINESRE_FLAG_DOTALLSRE_FLAG_UNICODESRE_FLAG_VERBOSESRE_FLAG_DEBUGSRE_FLAG_ASCIISRE_INFO_PREFIXSRE_INFO_LITERALSRE_INFO_CHARSETr0rrrs|&% %%%%%%%% IB          i 5 5  *0 0 b BCCL *')>$ m_,,   ***(20220:  " ^#   '  ' # K (  ( N*N*$,*2  &.&.$,.6  r