File: //usr/local/CyberCP/lib64/python3.10/site-packages/soupsieve/__pycache__/css_match.cpython-310.pyc
o
�hz� � @ s� d Z ddlmZ ddlmZ ddlmZ ddlZddlmZ ddl Z ddl
Z
ddlmZm
Z
mZmZmZmZmZ e�d �Ze�d
�ZdZdZd
ZdZdZdZdZdZdZdZejej B Z!ej"ej#B Z$ejej dd�Z%e�d�Z&e�d�Z'e�d�Z(e�d�Z)e�d�Z*e�d�Z+e�d�Z,dZ-dZ.dZ/d Z0d!Z1d"Z2d#Z3G d$d%� d%�Z4G d&d'� d'�Z5G d(d)� d)�Z6G d*d+� d+e5�Z7G d,d-� d-ej8�Z9e�:e9� dS ).zCSS matcher.� )�annotations)�datetime� )�utilN)� css_types)�Iterator�Iterable�Any�Callable�Sequencer �castz[^
]z [^
]+� �>�~�+z: z:>z:~z:+zhttp://www.w3.org/1999/xhtmlz$http://www.w3.org/XML/1998/namespace)�ltr�rtl�autoz0^(?P<value>-?(?:[0-9]{1,}(\.[0-9]+)?|\.[0-9]+))$z*^(?P<hour>[0-9]{2}):(?P<minutes>[0-9]{2})$z)^(?P<year>[0-9]{4,})-(?P<month>[0-9]{2})$z)^(?P<year>[0-9]{4,})-W(?P<week>[0-9]{2})$z;^(?P<year>[0-9]{4,})-(?P<month>[0-9]{2})-(?P<day>[0-9]{2})$zd^(?P<year>[0-9]{4,})-(?P<month>[0-9]{2})-(?P<day>[0-9]{2})T(?P<hour>[0-9]{2}):(?P<minutes>[0-9]{2})$z(?:(?:-\*-)(?:\*(?:-|$))*|-\*$))� � � � � � � � � � c @ s$ e Zd ZdZddd�Zd
d d
�ZdS )�_FakeParentz�
Fake parent class.
When we have a fragment with no `BeautifulSoup` document object,
we can't evaluate `nth` selectors properly. Create a temporary
fake parent so we can traverse the root element as a child.
�element�bs4.Tag�return�Nonec C s |g| _ dS )�Initialize.N)�contents)�selfr � r&