o
    LDi                     @   s   h d Z dedefddZdS )>   *.{}$()+?[\]^|globreturnc           	      C   s  dg}d}d}|t | k r| | }|dkr5|d t | k r5| |d  }||tv r-d| n| |d7 }n|dkr|dkrC| |d  nd }d}|d t | k ro| |d  dkro|d7 }|d7 }|d t | k ro| |d  dksW|dkr|d t | k r| |d  nd }|dkr|dkr|d n|d	 |d7 }nE|d
 n?|d n9|dkrd}|d n-|dkrd}|d n!|dkr|r|d n|d|  n||tv rd| n| |d7 }|t | k s|d d|S )Nr   F    r      r   /z((.+/)|)z(.*/)z(.*)z([^/]*)r   Tr   r   r   ,r   r    )lenappendescaped_charsjoin)	r   tokensin_groupiccharchar_before
star_count
char_after r"   b/var/www/www-root/data/www/77.83.87.30/venv/lib/python3.10/site-packages/playwright/_impl/_glob.pyglob_to_regex_pattern   sP   
   


(
r$   N)r   strr$   r"   r"   r"   r#   <module>   s   