
    2~h              	          U d dl Z d dlZd dlmZ  e j                  de j
                        Zeed<    e j                  de j
                        Zeed<    e j                  de j
                        Z	eed	<   dd
e
dedede
fdZy)    N)Patternz[^\w\s-])flags_re_patternz
[^\.\w\s-]_re_pattern_allow_dotsz[-\s]+
_re_spacesvalue
allow_dotsallow_unicodereturnc                    |rt         nt        }t        |       } |rZt        j                  d|       } |j                  d|       j                         j                         } t        j                  d|       S t        j                  d|       j                  dd      j                  d      } |j                  d|       j                         j                         } t        j                  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 -NFKDasciiignore)r   r   strunicodedata	normalizesubstriplowerr   encodedecode)r   r	   r
   patterns       Y/var/www/peopleoo.sandbox-dev.co.uk/venv/lib/python3.12/site-packages/faker/utils/text.pyslugifyr      s     2<-GJE%%fe4B&,,.446~~c5))!!&%077JQQRYZEKKE"((*002E>>#u%%    )FF)rer   typingr   compileUr   __annotations__r   r   r   boolr    r   r   <module>r&      s    	  !rzz+RTT:W :","**]"$$"G  G bjj"$$7
G 7&3 &D & &RU &r   