U
     Wh                     @   s   U d dl Z d dlZd dlmZ e jde jdZeed< e jde jdZeed< e jde jdZ	eed	< de
eee
dddZdS )    N)Patternz[^\w\s-])flags_re_patternz
[^\.\w\s-]_re_pattern_allow_dotsz[-\s]+
_re_spacesF)value
allow_dotsallow_unicodereturnc                 C   s~   |rt nt}t| } |rDtd| } |d|   } td| S td| 	dd
d} |d|   } td| S )z
    Converts to lowercase, removes non-word characters (alphanumerics and
    underscores) and converts spaces to hyphens. Also strips leading and
    trailing whitespace. Modified to optionally allow dots.

    Adapted from Django 1.9
    NFKC -ZNFKDasciiignore)r   r   strunicodedata	normalizesubstriplowerr   encodedecode)r   r   r	   pattern r   R/var/www/html/arya_register/venvv2/lib/python3.8/site-packages/faker/utils/text.pyslugify   s    r   )FF)rer   typingr   compileUr   __annotations__r   r   r   boolr   r   r   r   r   <module>   s    