403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.216.55
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7
System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/elementpath/regex/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/elementpath/regex/__pycache__/unicode_subsets.cpython-39.pyc
a

���c"K�a@sdZddlmZddlmZmZddlmZmZddl	m
Z
ddlmZm
Z
mZmZmZGdd	�d	e�Zdxeeed�dd
�ZGdd�de�Zdd�e
��D�Zed�ed�ed�ed�ed�ed�ed�ed�ed�ed�ed�ed�ed�ed�ed �ed!�ed"�ed#�ed$�ed%�ed&�ed'�ed(�ed)�ed*�ed+�ed,�ed-�ed.�ed/�ed0�ed1�ed2�ed3�ed4�ed5�ed6�ed7�ed8�ed9�ed:�ed;�ed<�ed=�ed>�ed?�ed@�edA�edB�edC�edD�edE�edF�edG�edH�edI�edJ�edK�edL�edM�edN�edO�edP�edQ�edR�edS�edT�edU�edV�edW�edX�edY�edZ�ed[�ed\�ed]�ed^�ed_�ed`�eda�edb�edc�edd�ede�edf�edg�edh�edi�edj�edk�edl�edm�edn�edo�edp�edq�dr�`Zeds�dt�fdudv�ZdwS)yz>
This module defines Unicode character categories and blocks.
�)�
maxunicode)�Iterable�
MutableSet)�Iterator�List�)�RAW_UNICODE_CATEGORIES)�	CodePoint�code_point_order�code_point_repr�iter_code_points�get_code_point_rangec@seZdZdZdS)�
RegexErrorz�
    Error in a regular expression or in a character class specification.
    This exception is derived from `Exception` base class and is raised
    only by the regex subpackage.
    N)�__name__�
__module__�__qualname__�__doc__�rr�E/usr/lib/python3.9/site-packages/elementpath/regex/unicode_subsets.pyrsrF)�s�returnc
csd}d}d}t|�}ttt|���}|D�]�}|dkr�|d}|dkrLd}nL|dvrj|dkrjtd|��n.|rzt|�Vn|d	ks�|dd
kr�t|�Vq(||d
k�r�|s�||dkr�||}t|�Vd}�q�|r�||}t|�Vd}n�d}t|�}||}|dk�rt||dk�rt||ddv�r>t|�}||}n6||ddv�rtd
}	t|	|||d|d	|f��t|�t|�k�r�d}	t|	|||d	|f��n>|�r�tt|�dt|�d�EdHnt|�t|�dfVq(||dv�r|�r�d}d}||}t|�Vq(||dv�r�|�sF|dk�rFtd|||f��d}}||}||d	k�sv||dd
k�r�t|�Vq(||dk�r�|�r�d}}d}t|�Vnd}q(|�r�d}td�Vd}||}||d	k�s�||dd
kr(t|�Vq(|�rtd�VdS)a�
    Parses a regex character subset, generating a sequence of code points
    and code points ranges. An unescaped hyphen (-) that is not at the
    start or at the and is interpreted as range specifier.

    :param s: a string representing the character subset.
    :param expand_ranges: if set to `True` then expands character ranges.
    :return: yields integers or couples of integers.
    F�r�\Tz[]rzbad character %r at position 0��-z
-|.^?*+{}()[]ZsSdDiIcCwWpPz/bad character range '%s-\%s' at position %d: %rz.bad character range '%s-%s' at position %d: %rNz
|.^?*+{}()zbad character %r at position %d)�len�iter�ranger�ord�next)
rZ
expand_rangesZescapedZon_range�charZlengthZsubset_index_iterator�kZend_char�msgrrr�iterparse_character_subsets�




 " 
r#c@s�eZdZUdZdZeeed<d9dd�Ze	dd��Z
d	d
�Zdd�Zd
d�Z
dd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�ZeZd1d2�Z d3d4�Z!d5d6�Z"d7d8�Z#dS):�
UnicodeSubseta�
    Represents a subset of Unicode code points, implemented with an ordered list of
    integer values and ranges. Codepoints can be added or discarded using sequences
    of integer values and ranges or with strings equivalent to regex character set.

    :param codepoints: a sequence of integer values and ranges, another UnicodeSubset     instance ora a string equivalent of a regex character set.
    ��_codepointsr&NcCsV|st�|_nDt|t�r(t|td�|_n*t|t�r@|j��|_nt�|_|�|�dS)N)�key)	�listr&�
isinstance�sortedr
r$�
codepoints�copy�update)�selfr+rrr�__init__�s


zUnicodeSubset.__init__cCs|jS�Nr%�r.rrrr+�szUnicodeSubset.codepointscCsd|jjt|�fS)Nz%s(%r))�	__class__r�strr1rrr�__repr__�szUnicodeSubset.__repr__cCsd�dd�|jD��S)Nrcss|]}t|�VqdSr0)r)�.0�cprrr�	<genexpr>��z(UnicodeSubset.__str__.<locals>.<genexpr>)�joinr&r1rrr�__str__�szUnicodeSubset.__str__cCs|��Sr0)�__copy__r1rrrr,�szUnicodeSubset.copycCs
t|j�Sr0)r$r&r1rrrr;�szUnicodeSubset.__copy__ccsBt|j�D]2}t|t�r |Vq
tt|d|d��EdHq
dS�Nrr)�reversedr&r)�intr)r.�itemrrr�__reversed__�s
zUnicodeSubset.__reversed__ccs�d}|jD]�}t|t�r$||df}|d|}|dkrH||dfVn<|dkrb|V|dVn"|dkrr|Vn|r�td�|���|d}q
|tkr�|tdfVn|tkr�tVdS)Nrrrz#unordered code points found in {!r})r&r)r>�
ValueError�formatr)r.Zlast_cpr6�diffrrr�
complement�s&


zUnicodeSubset.complementcCstt|���Sr0)�map�chr�__iter__r1rrr�iter_characters�szUnicodeSubset.iter_characterscCs�t|t�s,zt|�}Wnty*YdS0|jD]T}t|t�sj|d|krRdS|d|krbq2q�dSq2||krxdS||kr2dSq2dS)NFrrT)r)r>r�	TypeErrorr&)r.�valuer6rrr�__contains__�s"


zUnicodeSubset.__contains__ccs0|jD]$}t|t�r|Vqt|�EdHqdSr0)r&r)r>r)r.r6rrrrG�s

zUnicodeSubset.__iter__cCsd}|D]}|d7}q|Sr<r)r.r!�_rrr�__len__�s
zUnicodeSubset.__len__cGsV|D]L}t|t�r4tt|�dd�D]}|�|�q"qt|dd�D]}|�|�q@qdS�NT)�reverse)r)r3rr#�add�r.ZothersrJr6rrrr-�s
zUnicodeSubset.updatec
Cs�zt|�\}}Wn ty0td�|���Yn0|j}t|�d}t|�D�]\}}t|t�rl||df}||dkr�|�	|t|t�r�|nt
|��n�||dkr�qLn�||dk�r8||kr�t|d|�|f||<n`||d}t|t�r�|n|d}	||	k�rt|d|�|f||<nt|d|�|	f||<|	}qLn||dk�rV||df||<�q~qL|j�t|t
��rxt
|�n|�dS�Nz,{!r} is not a Unicode code point value/rangerr)r
rIrArBr&r�	enumerater)r>�insert�tuple�min�appendr()
r.rJZstart_valueZ	end_value�code_pointsZ
last_indexr!r6Znext_cpZhigher_boundrrrrP�s6
 
zUnicodeSubset.addcGsV|D]L}t|t�r4tt|�dd�D]}|�|�q"qt|dd�D]}|�|�q@qdSrN)r)r3rr#�discardrQrrr�difference_update
s
zUnicodeSubset.difference_updatecCs�zt|�\}}Wn ty0td�|���Yn0|j}ttt|���D�]J}||}t|t	�rl||df}||dkr��q�qH||dkr�||dkr�||=n.||ddkr�|d|f||<n|d||<qH||dkrH||dk�r |d|dk�r||df||<n|dd||<qH|d|dk�rL|�
|d||df�n|�
|d|dd�||ddk�r�|d|f||<qH|d||<qHdSrR)r
rIrArBr&r=rrr)r>rT)r.rJZstart_cpZend_cprXr!r6rrrrYs8
zUnicodeSubset.discardcCs|jdd�=dSr0r%r1rrr�clear=szUnicodeSubset.clearcCs2t|t�stSt|t�r$|j|jkS|j|kSdSr0)r)r�NotImplementedr$r&)r.�otherrrr�__eq__@s


zUnicodeSubset.__eq__cCsbt|t�stSt|t�r$t|j�}n&t|t�r>tt|�j�}nt|dd�}|D]}|�|�qN|SrN)	r)rr\r$r=r&r3rrP�r.r]r6rrr�__ior__Hs


zUnicodeSubset.__ior__cCs|��}|�|�Sr0)r,r`�r.r]�objrrr�__or__VszUnicodeSubset.__or__cCsbt|t�stSt|t�r$t|j�}n&t|t�r>tt|�j�}nt|dd�}|D]}|�|�qN|SrN)	r)rr\r$r=r&r3rrYr_rrr�__isub__Zs


zUnicodeSubset.__isub__cCs|��}|�|�Sr0)r,rdrarrr�__sub__hszUnicodeSubset.__sub__cCs||D]}|�|�q|Sr0)rY�r.r]rJrrr�__iand__nszUnicodeSubset.__iand__cCs|��}|�|�Sr0)r,rgrarrr�__and__sszUnicodeSubset.__and__cCs`||ur|��|St|t�s"tSt|t�s4t|�}|D]"}||vrP|�|�q8|�|�q8|Sr0)r[r)rr\r$rYrPrfrrr�__ixor__ws

zUnicodeSubset.__ixor__cCs|��}|�|�Sr0)r,rirarrr�__xor__�szUnicodeSubset.__xor__)N)$rrrr�	__slots__rr	�__annotations__r/�propertyr+r4r:r,r;r@rDrHrKrGrMr-rPrZrYr[r^r`rcrdre�__rsub__rgrhrirjrrrrr$vs>


	"	'r$cCsi|]\}}|t|��qSr)r$)r5r!�vrrr�
<dictcomp>�r8rpz-u€-ÿuĀ-ſuƀ-ɏuɐ-ʯuʰ-˿ù-ͯuͰ-ϿuЀ-ӿu԰-֏u֐-׿u؀-ۿu܀-ݏuހ-޿uऀ-ॿuঀ-৿u਀-੿u઀-૿u଀-୿u஀-௿uఀ-౿uಀ-೿uഀ-ൿu඀-෿u฀-๿u຀-໿uༀ-࿿uက-႟uႠ-ჿuᄀ-ᇿuሀ-፿uᎠ-᏿u᐀-ᙿu -᚟uᚠ-᛿uក-៿u᠀-᢯uḀ-ỿuἀ-῿u -u⁰-₟u₠-⃏u⃐-⃿u℀-⅏u⅐-↏u←-⇿u∀-⋿u⌀-⏿u␀-␿u⑀-⑟u①-⓿u─-╿u▀-▟u■-◿u☀-⛿u✀-➿u⠀-⣿u⺀-⻿u⼀-⿟u⿰-⿿u -〿u぀-ゟu゠-ヿu㄀-ㄯu㄰-㆏u㆐-㆟uㆠ-ㆿu㈀-㋿u㌀-㏿u㐀-䶵u一-鿿uꀀ-꒏u꒐-꓏u가-힣u�-�u�-�u�-�u-󰀀-󿿿􀀀-􏿿u豈-﫿uff-ﭏuﭐ-﷿u︠-︯u︰-﹏u﹐-﹯uﹰ-﻾u
￰-�u＀-￯u	𐌀-𐌯u	𐌰-𐍏u	𐐀-𐑏u	𝀀-𝃿u	𝄀-𝇿u	𝐀-𝟿u	𠀀-𪛖u	丽-𯨟u	󠀀-󠁿)`ZIsBasicLatinzIsLatin-1SupplementzIsLatinExtended-AzIsLatinExtended-BZIsIPAExtensionsZIsSpacingModifierLettersZIsCombiningDiacriticalMarksZIsGreekZ
IsCyrillicZ
IsArmenianZIsHebrewZIsArabicZIsSyriacZIsThaanaZIsDevanagariZ	IsBengaliZ
IsGurmukhiZ
IsGujaratiZIsOriyaZIsTamilZIsTeluguZ	IsKannadaZIsMalayalamZ	IsSinhalaZIsThaiZIsLaoZ	IsTibetanZ	IsMyanmarZ
IsGeorgianZIsHangulJamoZ
IsEthiopicZ
IsCherokeeZ$IsUnifiedCanadianAboriginalSyllabicsZIsOghamZIsRunicZIsKhmerZIsMongolianZIsLatinExtendedAdditionalZIsGreekExtendedZIsGeneralPunctuationZIsSuperscriptsandSubscriptsZIsCurrencySymbolsZIsCombiningMarksforSymbolsZIsLetterlikeSymbolsZ
IsNumberFormsZIsArrowsZIsMathematicalOperatorsZIsMiscellaneousTechnicalZIsControlPicturesZIsOpticalCharacterRecognitionZIsEnclosedAlphanumericsZIsBoxDrawingZIsBlockElementsZIsGeometricShapesZIsMiscellaneousSymbolsZ
IsDingbatsZIsBraillePatternsZIsCJKRadicalsSupplementZIsKangxiRadicalsZ"IsIdeographicDescriptionCharactersZIsCJKSymbolsandPunctuationZ
IsHiraganaZ
IsKatakanaZ
IsBopomofoZIsHangulCompatibilityJamoZIsKanbunZIsBopomofoExtendedZIsEnclosedCJKLettersandMonthsZIsCJKCompatibilityZ IsCJKUnifiedIdeographsExtensionAZIsCJKUnifiedIdeographsZ
IsYiSyllablesZIsYiRadicalsZIsHangulSyllablesZIsHighSurrogatesZIsHighPrivateUseSurrogatesZIsLowSurrogates�IsPrivateUseZIsCJKCompatibilityIdeographsZIsAlphabeticPresentationFormszIsArabicPresentationForms-AZIsCombiningHalfMarksZIsCJKCompatibilityFormsZIsSmallFormVariantszIsArabicPresentationForms-BZ
IsSpecialsZIsHalfwidthandFullwidthFormsZIsOldItalicZIsGothicZ	IsDeseretZIsByzantineMusicalSymbolsZIsMusicalSymbolsZ!IsMathematicalAlphanumericSymbolsZ IsCJKUnifiedIdeographsExtensionBZ&IsCJKCompatibilityIdeographsSupplementZIsTagsrqu	󰀀-􏿽cCsd|�d�r6z
t|WSty2td|��Yq`0n*z
t|WSty^td|��Yn0dS)NZIsz&%r doesn't match to any Unicode block.z)%r doesn't match to any Unicode category.)�
startswith�UNICODE_BLOCKS�KeyErrorr�UNICODE_CATEGORIES)�namerrr�unicode_subset�s


rwN)F)r�sysr�collections.abcrr�typingrrZunicode_categoriesrr+r	r
rrr
�	Exceptionrr3r#r$�itemsrursr-rwrrrr�<module>
s�X�c

Youez - 2016 - github.com/yon3zu
LinuXploit