@scrypted/arlo 0.11.24 → 0.11.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/plugin.zip +0 -0
- package/package.json +9 -1
- package/venv/bin/Activate.ps1 +247 -0
- package/venv/bin/activate +69 -0
- package/venv/bin/activate.csh +26 -0
- package/venv/bin/activate.fish +69 -0
- package/venv/bin/normalizer +8 -0
- package/venv/bin/pip +8 -0
- package/venv/bin/pip3 +8 -0
- package/venv/bin/pip3.10 +8 -0
- package/venv/lib/python3.10/site-packages/_cffi_backend.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/_distutils_hack/__init__.py +132 -0
- package/venv/lib/python3.10/site-packages/_distutils_hack/override.py +1 -0
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/__init__.py +13 -0
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/_staggered.py +202 -0
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/impl.py +210 -0
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/types.py +12 -0
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/utils.py +97 -0
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/LICENSE +279 -0
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/METADATA +123 -0
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/RECORD +16 -0
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/WHEEL +4 -0
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/_cparser.pxd.hash +1 -0
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/_find_header.pxd.hash +1 -0
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/_http_parser.pyx.hash +1 -0
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/_http_writer.pyx.hash +1 -0
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/hdrs.py.hash +1 -0
- package/venv/lib/python3.10/site-packages/aiohttp/__init__.py +264 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_cparser.pxd +158 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_find_header.pxd +2 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_headers.pxi +83 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_http_parser.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_http_parser.pyx +837 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_http_writer.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_http_writer.pyx +162 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/.hash/mask.pxd.hash +1 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/.hash/mask.pyx.hash +1 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/.hash/reader_c.pxd.hash +1 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/__init__.py +1 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/helpers.py +147 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/mask.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/mask.pxd +3 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/mask.pyx +48 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/models.py +84 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader.py +31 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_c.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_c.pxd +102 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_c.py +468 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_py.py +468 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/writer.py +177 -0
- package/venv/lib/python3.10/site-packages/aiohttp/abc.py +253 -0
- package/venv/lib/python3.10/site-packages/aiohttp/base_protocol.py +100 -0
- package/venv/lib/python3.10/site-packages/aiohttp/client.py +1550 -0
- package/venv/lib/python3.10/site-packages/aiohttp/client_exceptions.py +421 -0
- package/venv/lib/python3.10/site-packages/aiohttp/client_proto.py +307 -0
- package/venv/lib/python3.10/site-packages/aiohttp/client_reqrep.py +1315 -0
- package/venv/lib/python3.10/site-packages/aiohttp/client_ws.py +426 -0
- package/venv/lib/python3.10/site-packages/aiohttp/compression_utils.py +173 -0
- package/venv/lib/python3.10/site-packages/aiohttp/connector.py +1652 -0
- package/venv/lib/python3.10/site-packages/aiohttp/cookiejar.py +495 -0
- package/venv/lib/python3.10/site-packages/aiohttp/formdata.py +182 -0
- package/venv/lib/python3.10/site-packages/aiohttp/hdrs.py +121 -0
- package/venv/lib/python3.10/site-packages/aiohttp/helpers.py +944 -0
- package/venv/lib/python3.10/site-packages/aiohttp/http.py +72 -0
- package/venv/lib/python3.10/site-packages/aiohttp/http_exceptions.py +112 -0
- package/venv/lib/python3.10/site-packages/aiohttp/http_parser.py +1046 -0
- package/venv/lib/python3.10/site-packages/aiohttp/http_websocket.py +36 -0
- package/venv/lib/python3.10/site-packages/aiohttp/http_writer.py +249 -0
- package/venv/lib/python3.10/site-packages/aiohttp/log.py +8 -0
- package/venv/lib/python3.10/site-packages/aiohttp/multipart.py +1071 -0
- package/venv/lib/python3.10/site-packages/aiohttp/payload.py +519 -0
- package/venv/lib/python3.10/site-packages/aiohttp/payload_streamer.py +78 -0
- package/venv/lib/python3.10/site-packages/aiohttp/py.typed +1 -0
- package/venv/lib/python3.10/site-packages/aiohttp/pytest_plugin.py +436 -0
- package/venv/lib/python3.10/site-packages/aiohttp/resolver.py +187 -0
- package/venv/lib/python3.10/site-packages/aiohttp/streams.py +727 -0
- package/venv/lib/python3.10/site-packages/aiohttp/tcp_helpers.py +37 -0
- package/venv/lib/python3.10/site-packages/aiohttp/test_utils.py +770 -0
- package/venv/lib/python3.10/site-packages/aiohttp/tracing.py +470 -0
- package/venv/lib/python3.10/site-packages/aiohttp/typedefs.py +69 -0
- package/venv/lib/python3.10/site-packages/aiohttp/web.py +605 -0
- package/venv/lib/python3.10/site-packages/aiohttp/web_app.py +620 -0
- package/venv/lib/python3.10/site-packages/aiohttp/web_exceptions.py +452 -0
- package/venv/lib/python3.10/site-packages/aiohttp/web_fileresponse.py +418 -0
- package/venv/lib/python3.10/site-packages/aiohttp/web_log.py +216 -0
- package/venv/lib/python3.10/site-packages/aiohttp/web_middlewares.py +121 -0
- package/venv/lib/python3.10/site-packages/aiohttp/web_protocol.py +750 -0
- package/venv/lib/python3.10/site-packages/aiohttp/web_request.py +916 -0
- package/venv/lib/python3.10/site-packages/aiohttp/web_response.py +840 -0
- package/venv/lib/python3.10/site-packages/aiohttp/web_routedef.py +214 -0
- package/venv/lib/python3.10/site-packages/aiohttp/web_runner.py +399 -0
- package/venv/lib/python3.10/site-packages/aiohttp/web_server.py +84 -0
- package/venv/lib/python3.10/site-packages/aiohttp/web_urldispatcher.py +1301 -0
- package/venv/lib/python3.10/site-packages/aiohttp/web_ws.py +622 -0
- package/venv/lib/python3.10/site-packages/aiohttp/worker.py +252 -0
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/LICENSE.txt +13 -0
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/METADATA +250 -0
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/RECORD +132 -0
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/WHEEL +6 -0
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/aiosignal/__init__.py +36 -0
- package/venv/lib/python3.10/site-packages/aiosignal/__init__.pyi +12 -0
- package/venv/lib/python3.10/site-packages/aiosignal/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/LICENSE +201 -0
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/METADATA +123 -0
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/RECORD +10 -0
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/WHEEL +6 -0
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/async_timeout/__init__.py +276 -0
- package/venv/lib/python3.10/site-packages/async_timeout/py.typed +1 -0
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/LICENSE +13 -0
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/METADATA +163 -0
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/RECORD +11 -0
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/WHEEL +5 -0
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/zip-safe +1 -0
- package/venv/lib/python3.10/site-packages/attr/__init__.py +104 -0
- package/venv/lib/python3.10/site-packages/attr/__init__.pyi +389 -0
- package/venv/lib/python3.10/site-packages/attr/_cmp.py +160 -0
- package/venv/lib/python3.10/site-packages/attr/_cmp.pyi +13 -0
- package/venv/lib/python3.10/site-packages/attr/_compat.py +94 -0
- package/venv/lib/python3.10/site-packages/attr/_config.py +31 -0
- package/venv/lib/python3.10/site-packages/attr/_funcs.py +468 -0
- package/venv/lib/python3.10/site-packages/attr/_make.py +3055 -0
- package/venv/lib/python3.10/site-packages/attr/_next_gen.py +623 -0
- package/venv/lib/python3.10/site-packages/attr/_typing_compat.pyi +15 -0
- package/venv/lib/python3.10/site-packages/attr/_version_info.py +86 -0
- package/venv/lib/python3.10/site-packages/attr/_version_info.pyi +9 -0
- package/venv/lib/python3.10/site-packages/attr/converters.py +162 -0
- package/venv/lib/python3.10/site-packages/attr/converters.pyi +19 -0
- package/venv/lib/python3.10/site-packages/attr/exceptions.py +95 -0
- package/venv/lib/python3.10/site-packages/attr/exceptions.pyi +17 -0
- package/venv/lib/python3.10/site-packages/attr/filters.py +72 -0
- package/venv/lib/python3.10/site-packages/attr/filters.pyi +6 -0
- package/venv/lib/python3.10/site-packages/attr/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/attr/setters.py +79 -0
- package/venv/lib/python3.10/site-packages/attr/setters.pyi +20 -0
- package/venv/lib/python3.10/site-packages/attr/validators.py +710 -0
- package/venv/lib/python3.10/site-packages/attr/validators.pyi +86 -0
- package/venv/lib/python3.10/site-packages/attrs/__init__.py +69 -0
- package/venv/lib/python3.10/site-packages/attrs/__init__.pyi +263 -0
- package/venv/lib/python3.10/site-packages/attrs/converters.py +3 -0
- package/venv/lib/python3.10/site-packages/attrs/exceptions.py +3 -0
- package/venv/lib/python3.10/site-packages/attrs/filters.py +3 -0
- package/venv/lib/python3.10/site-packages/attrs/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/attrs/setters.py +3 -0
- package/venv/lib/python3.10/site-packages/attrs/validators.py +3 -0
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/METADATA +232 -0
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/RECORD +55 -0
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/WHEEL +4 -0
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/licenses/LICENSE +21 -0
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/METADATA +123 -0
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/RECORD +90 -0
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/WHEEL +4 -0
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/licenses/AUTHORS +49 -0
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/licenses/LICENSE +31 -0
- package/venv/lib/python3.10/site-packages/bs4/__init__.py +1170 -0
- package/venv/lib/python3.10/site-packages/bs4/_deprecation.py +80 -0
- package/venv/lib/python3.10/site-packages/bs4/_typing.py +196 -0
- package/venv/lib/python3.10/site-packages/bs4/_warnings.py +98 -0
- package/venv/lib/python3.10/site-packages/bs4/builder/__init__.py +848 -0
- package/venv/lib/python3.10/site-packages/bs4/builder/_html5lib.py +594 -0
- package/venv/lib/python3.10/site-packages/bs4/builder/_htmlparser.py +474 -0
- package/venv/lib/python3.10/site-packages/bs4/builder/_lxml.py +490 -0
- package/venv/lib/python3.10/site-packages/bs4/css.py +338 -0
- package/venv/lib/python3.10/site-packages/bs4/dammit.py +1408 -0
- package/venv/lib/python3.10/site-packages/bs4/diagnose.py +268 -0
- package/venv/lib/python3.10/site-packages/bs4/element.py +2886 -0
- package/venv/lib/python3.10/site-packages/bs4/exceptions.py +28 -0
- package/venv/lib/python3.10/site-packages/bs4/filter.py +755 -0
- package/venv/lib/python3.10/site-packages/bs4/formatter.py +276 -0
- package/venv/lib/python3.10/site-packages/bs4/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/__init__.py +1305 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4670634698080256.testcase +1 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4818336571064320.testcase +1 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4999465949331456.testcase +1 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5000587759190016.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5167584867909632.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5270998950477824.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5375146639360000.testcase +1 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5492400320282624.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5703933063462912.testcase +2 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5843991618256896.testcase +1 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5984173902397440.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6124268085182464.testcase +1 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6241471367348224.testcase +1 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6306874195312640.testcase +1 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6450958476902400.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6600557255327744.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/crash-0d306a50c8ed8bcd0785b67000fcd5dea1d33f08.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/crash-ffbdfa8a2b26f13537b68d3794b0478a4090ee4a.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_builder.py +28 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_builder_registry.py +139 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_css.py +536 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_dammit.py +433 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_element.py +138 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_filter.py +674 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_formatter.py +170 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_fuzz.py +181 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_html5lib.py +264 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_htmlparser.py +161 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_lxml.py +196 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_navigablestring.py +144 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_pageelement.py +437 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_soup.py +602 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_tag.py +241 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_tree.py +1452 -0
- package/venv/lib/python3.10/site-packages/cachetools/__init__.py +859 -0
- package/venv/lib/python3.10/site-packages/cachetools/func.py +121 -0
- package/venv/lib/python3.10/site-packages/cachetools/keys.py +62 -0
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/LICENSE +20 -0
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/METADATA +151 -0
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/RECORD +13 -0
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/WHEEL +5 -0
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/certifi/__init__.py +4 -0
- package/venv/lib/python3.10/site-packages/certifi/__main__.py +12 -0
- package/venv/lib/python3.10/site-packages/certifi/cacert.pem +4897 -0
- package/venv/lib/python3.10/site-packages/certifi/core.py +114 -0
- package/venv/lib/python3.10/site-packages/certifi/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/LICENSE +20 -0
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/METADATA +77 -0
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/RECORD +14 -0
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/WHEEL +5 -0
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/cffi/__init__.py +14 -0
- package/venv/lib/python3.10/site-packages/cffi/_cffi_errors.h +149 -0
- package/venv/lib/python3.10/site-packages/cffi/_cffi_include.h +389 -0
- package/venv/lib/python3.10/site-packages/cffi/_embedding.h +550 -0
- package/venv/lib/python3.10/site-packages/cffi/_imp_emulation.py +83 -0
- package/venv/lib/python3.10/site-packages/cffi/_shimmed_dist_utils.py +45 -0
- package/venv/lib/python3.10/site-packages/cffi/api.py +967 -0
- package/venv/lib/python3.10/site-packages/cffi/backend_ctypes.py +1121 -0
- package/venv/lib/python3.10/site-packages/cffi/cffi_opcode.py +187 -0
- package/venv/lib/python3.10/site-packages/cffi/commontypes.py +82 -0
- package/venv/lib/python3.10/site-packages/cffi/cparser.py +1015 -0
- package/venv/lib/python3.10/site-packages/cffi/error.py +31 -0
- package/venv/lib/python3.10/site-packages/cffi/ffiplatform.py +113 -0
- package/venv/lib/python3.10/site-packages/cffi/lock.py +30 -0
- package/venv/lib/python3.10/site-packages/cffi/model.py +618 -0
- package/venv/lib/python3.10/site-packages/cffi/parse_c_type.h +181 -0
- package/venv/lib/python3.10/site-packages/cffi/pkgconfig.py +121 -0
- package/venv/lib/python3.10/site-packages/cffi/recompiler.py +1598 -0
- package/venv/lib/python3.10/site-packages/cffi/setuptools_ext.py +216 -0
- package/venv/lib/python3.10/site-packages/cffi/vengine_cpy.py +1084 -0
- package/venv/lib/python3.10/site-packages/cffi/vengine_gen.py +679 -0
- package/venv/lib/python3.10/site-packages/cffi/verifier.py +306 -0
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/LICENSE +26 -0
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/METADATA +40 -0
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/RECORD +48 -0
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/WHEEL +6 -0
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/entry_points.txt +2 -0
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/top_level.txt +2 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/__init__.py +48 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/__main__.py +6 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/api.py +668 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/cd.py +395 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/cli/__init__.py +8 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/cli/__main__.py +321 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/constant.py +1998 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/legacy.py +66 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/md.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/md.py +630 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/md__mypyc.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/models.py +360 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/utils.py +408 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/version.py +8 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/LICENSE +21 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/METADATA +721 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/RECORD +35 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/WHEEL +6 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/entry_points.txt +2 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/__init__.py +407 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/2captcha.py +258 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/9kw.py +214 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/__init__.py +47 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/anticaptcha.py +199 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/capmonster.py +199 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/capsolver.py +188 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/deathbycaptcha.py +276 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/cloudflare.py +490 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/exceptions.py +111 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/help.py +72 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/__init__.py +56 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/chakracore.py +103 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/encapsulated.py +62 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/js2py.py +44 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/jsunfuck.py +97 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/native.py +233 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/nodejs.py +49 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/v8.py +33 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/user_agent/__init__.py +124 -0
- package/venv/lib/python3.10/site-packages/cloudscraper/user_agent/browsers.json +7913 -0
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/LICENSE +22 -0
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/METADATA +674 -0
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/RECORD +48 -0
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/WHEEL +6 -0
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/__init__.py +37 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/__version__.py +8 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/_asyncio_selector.py +344 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/_wrapper.abi3.so +0 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/aio.py +257 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/const.py +581 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/curl.py +548 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/py.typed +1 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/__init__.py +146 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/cookies.py +355 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/errors.py +7 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/exceptions.py +219 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/headers.py +348 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/impersonate.py +360 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/models.py +292 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/session.py +1021 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/utils.py +663 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/websockets.py +711 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/utils.py +13 -0
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/LICENSE +21 -0
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/METADATA +333 -0
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/RECORD +43 -0
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/WHEEL +6 -0
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/distutils-precedence.pth +1 -0
- package/venv/lib/python3.10/site-packages/frozenlist/__init__.py +98 -0
- package/venv/lib/python3.10/site-packages/frozenlist/__init__.pyi +47 -0
- package/venv/lib/python3.10/site-packages/frozenlist/_frozenlist.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/frozenlist/_frozenlist.pyx +123 -0
- package/venv/lib/python3.10/site-packages/frozenlist/py.typed +1 -0
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/LICENSE +201 -0
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/METADATA +477 -0
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/RECORD +12 -0
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/WHEEL +8 -0
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/idna/__init__.py +45 -0
- package/venv/lib/python3.10/site-packages/idna/codec.py +122 -0
- package/venv/lib/python3.10/site-packages/idna/compat.py +15 -0
- package/venv/lib/python3.10/site-packages/idna/core.py +437 -0
- package/venv/lib/python3.10/site-packages/idna/idnadata.py +4243 -0
- package/venv/lib/python3.10/site-packages/idna/intranges.py +57 -0
- package/venv/lib/python3.10/site-packages/idna/package_data.py +1 -0
- package/venv/lib/python3.10/site-packages/idna/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/idna/uts46data.py +8681 -0
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/LICENSE.md +31 -0
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/METADATA +250 -0
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/RECORD +22 -0
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/WHEEL +4 -0
- package/venv/lib/python3.10/site-packages/multidict/__init__.py +48 -0
- package/venv/lib/python3.10/site-packages/multidict/__init__.pyi +152 -0
- package/venv/lib/python3.10/site-packages/multidict/_abc.py +48 -0
- package/venv/lib/python3.10/site-packages/multidict/_compat.py +14 -0
- package/venv/lib/python3.10/site-packages/multidict/_multidict.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/multidict/_multidict_base.py +152 -0
- package/venv/lib/python3.10/site-packages/multidict/_multidict_py.py +527 -0
- package/venv/lib/python3.10/site-packages/multidict/py.typed +1 -0
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/LICENSE +13 -0
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/METADATA +140 -0
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/RECORD +19 -0
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/WHEEL +6 -0
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/paho/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/__init__.py +5 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/client.py +5004 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/enums.py +113 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/matcher.py +78 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/packettypes.py +43 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/properties.py +421 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/publish.py +306 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/reasoncodes.py +223 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/subscribe.py +281 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/subscribeoptions.py +113 -0
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/METADATA +635 -0
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/RECORD +29 -0
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/WHEEL +4 -0
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/licenses/LICENSE.txt +3 -0
- package/venv/lib/python3.10/site-packages/pip/__init__.py +13 -0
- package/venv/lib/python3.10/site-packages/pip/__main__.py +31 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/__init__.py +19 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/build_env.py +296 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/cache.py +264 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/__init__.py +4 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/autocompletion.py +171 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/base_command.py +220 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/cmdoptions.py +1018 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/command_context.py +27 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/main.py +70 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/main_parser.py +87 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/parser.py +292 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/progress_bars.py +321 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/req_command.py +506 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/spinners.py +157 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/status_codes.py +6 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/__init__.py +127 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/cache.py +223 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/check.py +53 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/completion.py +96 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/configuration.py +266 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/debug.py +202 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/download.py +140 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/freeze.py +97 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/hash.py +59 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/help.py +41 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/index.py +139 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/install.py +771 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/list.py +363 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/search.py +174 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/show.py +178 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/uninstall.py +105 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/wheel.py +178 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/configuration.py +366 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/__init__.py +21 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/base.py +36 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/installed.py +20 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py +127 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/wheel.py +31 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/exceptions.py +658 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/index/__init__.py +2 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/index/collector.py +648 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/index/package_finder.py +1004 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/index/sources.py +224 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/locations/__init__.py +520 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/locations/_distutils.py +169 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/locations/_sysconfig.py +219 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/locations/base.py +52 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/main.py +12 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/metadata/__init__.py +62 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/metadata/base.py +546 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/metadata/pkg_resources.py +256 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/models/__init__.py +2 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/models/candidate.py +34 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/models/direct_url.py +220 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/models/format_control.py +80 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/models/index.py +28 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/models/link.py +288 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/models/scheme.py +31 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/models/search_scope.py +129 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/models/selection_prefs.py +51 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/models/target_python.py +110 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/models/wheel.py +89 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/network/__init__.py +2 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/network/auth.py +323 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/network/cache.py +69 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/network/download.py +185 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/network/lazy_wheel.py +210 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/network/session.py +454 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/network/utils.py +96 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/network/xmlrpc.py +60 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/metadata.py +39 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_editable.py +41 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_legacy.py +74 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/wheel.py +37 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_editable.py +46 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_legacy.py +102 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/check.py +149 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/freeze.py +254 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/__init__.py +2 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/editable_legacy.py +47 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/legacy.py +120 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/wheel.py +738 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/prepare.py +642 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/pyproject.py +168 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/req/__init__.py +94 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/req/constructors.py +490 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_file.py +536 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_install.py +858 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_set.py +189 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_tracker.py +124 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_uninstall.py +633 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/base.py +20 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/legacy/resolver.py +467 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/base.py +141 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py +547 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py +739 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +155 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/provider.py +248 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/reporter.py +68 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/requirements.py +166 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py +292 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/self_outdated_check.py +189 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/_log.py +38 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/appdirs.py +52 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/compat.py +63 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/compatibility_tags.py +165 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/datetime.py +11 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/deprecation.py +120 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/direct_url_helpers.py +87 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/distutils_args.py +42 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/egg_link.py +75 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/encoding.py +36 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/entrypoints.py +27 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/filesystem.py +182 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/filetypes.py +27 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/glibc.py +88 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/hashes.py +144 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/inject_securetransport.py +35 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/logging.py +343 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/misc.py +653 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/models.py +39 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/packaging.py +57 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/setuptools_build.py +195 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/subprocess.py +260 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/temp_dir.py +246 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/unpacking.py +258 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/urls.py +62 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/virtualenv.py +104 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/wheel.py +136 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/__init__.py +15 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/bazaar.py +101 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/git.py +526 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/mercurial.py +163 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/subversion.py +324 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/versioncontrol.py +705 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/wheel_builder.py +377 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/__init__.py +111 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/__init__.py +18 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/_cmd.py +61 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/adapter.py +137 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/cache.py +43 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +6 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +150 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +37 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/compat.py +32 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/controller.py +415 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/filewrapper.py +111 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/heuristics.py +139 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/serialize.py +186 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/wrapper.py +33 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/__init__.py +3 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/__main__.py +12 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/cacert.pem +4362 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/core.py +76 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/__init__.py +83 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/big5freq.py +386 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/big5prober.py +47 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/chardistribution.py +233 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/charsetgroupprober.py +107 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/charsetprober.py +145 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/cli/__init__.py +1 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/cli/chardetect.py +84 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/codingstatemachine.py +88 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/compat.py +36 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/cp949prober.py +49 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/enums.py +76 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/escprober.py +101 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/escsm.py +246 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/eucjpprober.py +92 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euckrfreq.py +195 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euckrprober.py +47 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euctwfreq.py +387 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euctwprober.py +46 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/gb2312freq.py +283 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/gb2312prober.py +46 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/hebrewprober.py +292 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/jisfreq.py +325 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/jpcntx.py +233 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langbulgarianmodel.py +4650 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langgreekmodel.py +4398 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langhebrewmodel.py +4383 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langhungarianmodel.py +4650 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langrussianmodel.py +5718 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langthaimodel.py +4383 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langturkishmodel.py +4383 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/latin1prober.py +145 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/mbcharsetprober.py +91 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/mbcsgroupprober.py +54 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/mbcssm.py +572 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/metadata/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/metadata/languages.py +310 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/sbcharsetprober.py +145 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/sbcsgroupprober.py +83 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/sjisprober.py +92 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/universaldetector.py +286 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/utf8prober.py +82 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/version.py +9 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/__init__.py +6 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/ansi.py +102 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/ansitowin32.py +258 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/initialise.py +80 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/win32.py +152 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/winterm.py +169 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/__init__.py +23 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/compat.py +1116 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/database.py +1345 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/index.py +509 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/locators.py +1300 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/manifest.py +393 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/markers.py +152 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/metadata.py +1058 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/resources.py +358 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/scripts.py +429 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/util.py +1932 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/version.py +739 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/wheel.py +1053 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/distro.py +1386 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/__init__.py +35 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_ihatexml.py +289 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_inputstream.py +918 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_tokenizer.py +1735 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_trie/__init__.py +5 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_trie/_base.py +40 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_trie/py.py +67 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_utils.py +159 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/constants.py +2946 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py +29 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/base.py +12 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py +73 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/lint.py +93 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/optionaltags.py +207 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/sanitizer.py +916 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/whitespace.py +38 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/html5parser.py +2795 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/serializer.py +409 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py +30 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py +54 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treeadapters/sax.py +50 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py +88 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/base.py +417 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/dom.py +239 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/etree.py +343 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py +392 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py +154 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/base.py +252 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/dom.py +43 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/etree.py +131 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/etree_lxml.py +215 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/genshi.py +69 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/__init__.py +44 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/codec.py +112 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/compat.py +13 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/core.py +397 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/idnadata.py +2137 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/intranges.py +54 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/package_data.py +2 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/uts46data.py +8512 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/__init__.py +54 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/_version.py +1 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/exceptions.py +48 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/ext.py +193 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/fallback.py +1012 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/__about__.py +26 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/__init__.py +25 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/_manylinux.py +301 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/_musllinux.py +136 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/_structures.py +61 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/markers.py +304 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/requirements.py +146 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/specifiers.py +802 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/tags.py +487 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/utils.py +136 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/version.py +504 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/__init__.py +6 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/build.py +127 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/check.py +207 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/colorlog.py +115 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/compat.py +51 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/dirtools.py +44 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/envbuild.py +171 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/__init__.py +17 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py +363 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/meta.py +92 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/wrappers.py +375 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pkg_resources/__init__.py +3296 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pkg_resources/py31compat.py +23 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/__init__.py +331 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/__main__.py +46 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/android.py +119 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/api.py +156 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/macos.py +64 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/unix.py +181 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/version.py +4 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/windows.py +182 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/__init__.py +189 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/bar.py +93 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/colors.py +79 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/counter.py +47 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/spinner.py +45 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/__init__.py +83 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/__main__.py +17 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/cmdline.py +663 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/console.py +70 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/filter.py +71 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/filters/__init__.py +937 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatter.py +94 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/__init__.py +153 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/_mapping.py +84 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/bbcode.py +108 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/groff.py +168 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/html.py +983 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/img.py +641 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/irc.py +179 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/latex.py +511 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/other.py +161 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/pangomarkup.py +83 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/rtf.py +146 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/svg.py +188 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/terminal.py +127 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/terminal256.py +338 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexer.py +879 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexers/__init__.py +341 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexers/_mapping.py +580 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexers/python.py +1188 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/modeline.py +43 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/plugin.py +69 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/regexopt.py +91 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/scanner.py +104 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/sphinxext.py +155 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/style.py +197 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/styles/__init__.py +93 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/token.py +212 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/unistring.py +153 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/util.py +308 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/__init__.py +328 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/actions.py +207 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/common.py +424 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/core.py +5789 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/diagram/__init__.py +593 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/exceptions.py +267 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/helpers.py +1069 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/results.py +760 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/testing.py +331 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/unicode.py +332 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/util.py +235 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/__init__.py +154 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/__version__.py +14 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/_internal_utils.py +42 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/adapters.py +538 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/api.py +159 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/auth.py +305 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/certs.py +18 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/compat.py +77 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/cookies.py +549 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/exceptions.py +133 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/help.py +132 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/hooks.py +34 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/models.py +973 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/packages.py +16 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/sessions.py +771 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/status_codes.py +123 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/structures.py +105 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/utils.py +1060 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/__init__.py +26 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/compat/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/compat/collections_abc.py +6 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/providers.py +133 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/reporters.py +43 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py +482 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/structs.py +165 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/__init__.py +172 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/__main__.py +280 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_cell_widths.py +451 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_emoji_codes.py +3610 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_emoji_replace.py +32 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_extension.py +10 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_inspect.py +210 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_log_render.py +94 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_loop.py +43 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_lru_cache.py +34 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_palettes.py +309 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_pick.py +17 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_ratio.py +160 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_spinners.py +848 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_stack.py +16 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_timer.py +19 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_windows.py +72 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_wrap.py +55 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/abc.py +33 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/align.py +312 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/ansi.py +228 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/bar.py +94 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/box.py +483 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/cells.py +147 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/color.py +581 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/color_triplet.py +38 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/columns.py +187 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/console.py +2211 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/constrain.py +37 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/containers.py +167 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/control.py +175 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/default_styles.py +183 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/diagnose.py +6 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/emoji.py +96 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/errors.py +34 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/file_proxy.py +54 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/filesize.py +89 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/highlighter.py +147 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/json.py +140 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/jupyter.py +92 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/layout.py +444 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/live.py +365 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/live_render.py +113 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/logging.py +268 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/markup.py +244 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/measure.py +149 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/padding.py +141 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/pager.py +34 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/palette.py +100 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/panel.py +250 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/pretty.py +903 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/progress.py +1036 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/progress_bar.py +216 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/prompt.py +376 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/protocol.py +42 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/region.py +10 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/repr.py +151 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/rule.py +115 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/scope.py +86 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/screen.py +54 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/segment.py +720 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/spinner.py +134 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/status.py +132 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/style.py +785 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/styled.py +42 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/syntax.py +735 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/table.py +968 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/tabulate.py +51 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/terminal_theme.py +55 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/text.py +1282 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/theme.py +112 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/themes.py +5 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/traceback.py +678 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/tree.py +249 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/six.py +998 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/__init__.py +517 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/_asyncio.py +92 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/_utils.py +68 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/after.py +46 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/before.py +41 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/before_sleep.py +58 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/nap.py +43 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/retry.py +213 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/stop.py +96 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/tornadoweb.py +59 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/wait.py +191 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/tomli/__init__.py +6 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/tomli/_parser.py +703 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/tomli/_re.py +83 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/typing_extensions.py +2296 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/__init__.py +85 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/_collections.py +355 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/_version.py +2 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/connection.py +569 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/connectionpool.py +1113 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +36 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +519 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +397 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/appengine.py +314 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +130 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +511 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +922 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/socks.py +216 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/exceptions.py +323 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/fields.py +274 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/filepost.py +98 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +51 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/six.py +1077 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/poolmanager.py +539 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/request.py +170 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py +821 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/__init__.py +49 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/connection.py +149 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/proxy.py +57 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/queue.py +22 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/request.py +143 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/response.py +107 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/retry.py +622 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/ssl_.py +495 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py +161 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/ssltransport.py +221 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/timeout.py +268 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/url.py +432 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/wait.py +153 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/vendor.txt +25 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/__init__.py +342 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/labels.py +231 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/mklabels.py +59 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/tests.py +153 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/x_user_defined.py +325 -0
- package/venv/lib/python3.10/site-packages/pip/py.typed +4 -0
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/LICENSE.txt +20 -0
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/METADATA +92 -0
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/RECORD +1037 -0
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/WHEEL +5 -0
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/entry_points.txt +5 -0
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/__init__.py +3303 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/appdirs.py +608 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__about__.py +26 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__init__.py +25 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/_manylinux.py +301 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/_musllinux.py +136 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/_structures.py +67 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/markers.py +304 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/requirements.py +146 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/specifiers.py +828 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/tags.py +484 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/utils.py +136 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/version.py +504 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/pyparsing.py +5742 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/extern/__init__.py +73 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/tests/data/my-test-package-source/setup.py +6 -0
- package/venv/lib/python3.10/site-packages/propcache/__init__.py +32 -0
- package/venv/lib/python3.10/site-packages/propcache/_helpers.py +39 -0
- package/venv/lib/python3.10/site-packages/propcache/_helpers_c.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/propcache/_helpers_c.pyx +84 -0
- package/venv/lib/python3.10/site-packages/propcache/_helpers_py.py +56 -0
- package/venv/lib/python3.10/site-packages/propcache/api.py +8 -0
- package/venv/lib/python3.10/site-packages/propcache/py.typed +1 -0
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/LICENSE +202 -0
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/METADATA +275 -0
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/NOTICE +13 -0
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/RECORD +18 -0
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/WHEEL +6 -0
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/pycparser/__init__.py +93 -0
- package/venv/lib/python3.10/site-packages/pycparser/_ast_gen.py +336 -0
- package/venv/lib/python3.10/site-packages/pycparser/_build_tables.py +40 -0
- package/venv/lib/python3.10/site-packages/pycparser/_c_ast.cfg +195 -0
- package/venv/lib/python3.10/site-packages/pycparser/ast_transforms.py +164 -0
- package/venv/lib/python3.10/site-packages/pycparser/c_ast.py +1125 -0
- package/venv/lib/python3.10/site-packages/pycparser/c_generator.py +502 -0
- package/venv/lib/python3.10/site-packages/pycparser/c_lexer.py +555 -0
- package/venv/lib/python3.10/site-packages/pycparser/c_parser.py +1950 -0
- package/venv/lib/python3.10/site-packages/pycparser/lextab.py +10 -0
- package/venv/lib/python3.10/site-packages/pycparser/ply/__init__.py +5 -0
- package/venv/lib/python3.10/site-packages/pycparser/ply/cpp.py +905 -0
- package/venv/lib/python3.10/site-packages/pycparser/ply/ctokens.py +133 -0
- package/venv/lib/python3.10/site-packages/pycparser/ply/lex.py +1099 -0
- package/venv/lib/python3.10/site-packages/pycparser/ply/yacc.py +3494 -0
- package/venv/lib/python3.10/site-packages/pycparser/ply/ygen.py +74 -0
- package/venv/lib/python3.10/site-packages/pycparser/plyparser.py +133 -0
- package/venv/lib/python3.10/site-packages/pycparser/yacctab.py +369 -0
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/LICENSE +27 -0
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/METADATA +28 -0
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/RECORD +41 -0
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/WHEEL +5 -0
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/pyparsing/__init__.py +326 -0
- package/venv/lib/python3.10/site-packages/pyparsing/actions.py +219 -0
- package/venv/lib/python3.10/site-packages/pyparsing/common.py +434 -0
- package/venv/lib/python3.10/site-packages/pyparsing/core.py +6226 -0
- package/venv/lib/python3.10/site-packages/pyparsing/diagram/__init__.py +744 -0
- package/venv/lib/python3.10/site-packages/pyparsing/exceptions.py +314 -0
- package/venv/lib/python3.10/site-packages/pyparsing/helpers.py +1102 -0
- package/venv/lib/python3.10/site-packages/pyparsing/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/pyparsing/results.py +816 -0
- package/venv/lib/python3.10/site-packages/pyparsing/testing.py +362 -0
- package/venv/lib/python3.10/site-packages/pyparsing/unicode.py +356 -0
- package/venv/lib/python3.10/site-packages/pyparsing/util.py +398 -0
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/LICENSE +18 -0
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/METADATA +124 -0
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/RECORD +28 -0
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/WHEEL +4 -0
- package/venv/lib/python3.10/site-packages/requests/__init__.py +184 -0
- package/venv/lib/python3.10/site-packages/requests/__version__.py +14 -0
- package/venv/lib/python3.10/site-packages/requests/_internal_utils.py +50 -0
- package/venv/lib/python3.10/site-packages/requests/adapters.py +719 -0
- package/venv/lib/python3.10/site-packages/requests/api.py +157 -0
- package/venv/lib/python3.10/site-packages/requests/auth.py +314 -0
- package/venv/lib/python3.10/site-packages/requests/certs.py +17 -0
- package/venv/lib/python3.10/site-packages/requests/compat.py +94 -0
- package/venv/lib/python3.10/site-packages/requests/cookies.py +561 -0
- package/venv/lib/python3.10/site-packages/requests/exceptions.py +151 -0
- package/venv/lib/python3.10/site-packages/requests/help.py +134 -0
- package/venv/lib/python3.10/site-packages/requests/hooks.py +33 -0
- package/venv/lib/python3.10/site-packages/requests/models.py +1037 -0
- package/venv/lib/python3.10/site-packages/requests/packages.py +23 -0
- package/venv/lib/python3.10/site-packages/requests/sessions.py +831 -0
- package/venv/lib/python3.10/site-packages/requests/status_codes.py +128 -0
- package/venv/lib/python3.10/site-packages/requests/structures.py +99 -0
- package/venv/lib/python3.10/site-packages/requests/utils.py +1096 -0
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/LICENSE +175 -0
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/METADATA +119 -0
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/RECORD +43 -0
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/WHEEL +5 -0
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/__init__.py +34 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/_compat.py +302 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/__init__.py +15 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/appengine.py +206 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/fingerprint.py +48 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/host_header_ssl.py +43 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/socket_options.py +129 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/source.py +67 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/ssl.py +66 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/x509.py +196 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/_digest_auth_compat.py +29 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/guess.py +146 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/handler.py +142 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/http_proxy_digest.py +103 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/cookies/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/cookies/forgetful.py +7 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/downloadutils/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/downloadutils/stream.py +176 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/downloadutils/tee.py +123 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/exceptions.py +25 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/multipart/__init__.py +31 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/multipart/decoder.py +156 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/multipart/encoder.py +655 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/sessions.py +89 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/streaming_iterator.py +116 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/threaded/__init__.py +97 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/threaded/pool.py +211 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/threaded/thread.py +53 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/deprecated.py +91 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/dump.py +198 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/formdata.py +108 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/user_agent.py +143 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/AUTHORS.rst +57 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/LICENSE +13 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/METADATA +521 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/RECORD +75 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/WHEEL +6 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/__init__.py +1 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/_scrypted_arlo_go.cpython-310-x86_64-linux-gnu.h +555 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/_scrypted_arlo_go.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/build.py +344 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/go.py +2215 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go.c +6019 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go.go +3612 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go.py +1910 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go_go.h +555 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/METADATA +11 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/RECORD +19 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/WHEEL +8 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/setuptools/__init__.py +242 -0
- package/venv/lib/python3.10/site-packages/setuptools/_deprecation_warning.py +7 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/__init__.py +24 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/_msvccompiler.py +561 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/archive_util.py +256 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/bcppcompiler.py +393 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/ccompiler.py +1123 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/cmd.py +403 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/__init__.py +31 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist.py +143 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_dumb.py +123 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_msi.py +749 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_rpm.py +579 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_wininst.py +377 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build.py +157 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_clib.py +209 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py +755 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_py.py +392 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_scripts.py +152 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/check.py +148 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/clean.py +76 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/config.py +344 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install.py +721 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_data.py +79 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_egg_info.py +84 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_headers.py +47 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_lib.py +217 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_scripts.py +60 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/py37compat.py +30 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/register.py +304 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py +494 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/upload.py +214 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/config.py +130 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/core.py +249 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/cygwinccompiler.py +425 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/debug.py +5 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/dep_util.py +92 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/dir_util.py +210 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/dist.py +1257 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/errors.py +97 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/extension.py +240 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/fancy_getopt.py +457 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/file_util.py +238 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/filelist.py +355 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/log.py +77 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/msvc9compiler.py +788 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/msvccompiler.py +643 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/py35compat.py +19 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/py38compat.py +7 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/spawn.py +106 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/sysconfig.py +601 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/text_file.py +286 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py +325 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/util.py +548 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/version.py +363 -0
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/versionpredicate.py +169 -0
- package/venv/lib/python3.10/site-packages/setuptools/_imp.py +82 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/more_itertools/__init__.py +4 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/more_itertools/more.py +3825 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/more_itertools/recipes.py +620 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/ordered_set.py +488 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/__about__.py +26 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/__init__.py +25 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/_manylinux.py +301 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/_musllinux.py +136 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/_structures.py +67 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/markers.py +304 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/requirements.py +146 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/specifiers.py +828 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/tags.py +484 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/utils.py +136 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/version.py +504 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/pyparsing.py +5742 -0
- package/venv/lib/python3.10/site-packages/setuptools/archive_util.py +205 -0
- package/venv/lib/python3.10/site-packages/setuptools/build_meta.py +290 -0
- package/venv/lib/python3.10/site-packages/setuptools/cli-32.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/cli-64.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/cli-arm64.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/cli.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/__init__.py +8 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/alias.py +78 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/bdist_egg.py +456 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/bdist_rpm.py +40 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/build_clib.py +101 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/build_ext.py +328 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/build_py.py +242 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/develop.py +193 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/dist_info.py +36 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/easy_install.py +2354 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/egg_info.py +755 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/install.py +132 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/install_egg_info.py +82 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/install_lib.py +148 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/install_scripts.py +69 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/launcher manifest.xml +15 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/py36compat.py +134 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/register.py +18 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/rotate.py +64 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/saveopts.py +22 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/sdist.py +196 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/setopt.py +149 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/test.py +252 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/upload.py +17 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/upload_docs.py +202 -0
- package/venv/lib/python3.10/site-packages/setuptools/config.py +751 -0
- package/venv/lib/python3.10/site-packages/setuptools/dep_util.py +25 -0
- package/venv/lib/python3.10/site-packages/setuptools/depends.py +176 -0
- package/venv/lib/python3.10/site-packages/setuptools/dist.py +1156 -0
- package/venv/lib/python3.10/site-packages/setuptools/errors.py +40 -0
- package/venv/lib/python3.10/site-packages/setuptools/extension.py +55 -0
- package/venv/lib/python3.10/site-packages/setuptools/extern/__init__.py +73 -0
- package/venv/lib/python3.10/site-packages/setuptools/glob.py +167 -0
- package/venv/lib/python3.10/site-packages/setuptools/gui-32.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/gui-64.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/gui-arm64.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/gui.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/installer.py +104 -0
- package/venv/lib/python3.10/site-packages/setuptools/launch.py +36 -0
- package/venv/lib/python3.10/site-packages/setuptools/monkey.py +177 -0
- package/venv/lib/python3.10/site-packages/setuptools/msvc.py +1805 -0
- package/venv/lib/python3.10/site-packages/setuptools/namespaces.py +107 -0
- package/venv/lib/python3.10/site-packages/setuptools/package_index.py +1150 -0
- package/venv/lib/python3.10/site-packages/setuptools/py34compat.py +13 -0
- package/venv/lib/python3.10/site-packages/setuptools/sandbox.py +530 -0
- package/venv/lib/python3.10/site-packages/setuptools/script (dev).tmpl +6 -0
- package/venv/lib/python3.10/site-packages/setuptools/script.tmpl +3 -0
- package/venv/lib/python3.10/site-packages/setuptools/unicode_utils.py +42 -0
- package/venv/lib/python3.10/site-packages/setuptools/version.py +6 -0
- package/venv/lib/python3.10/site-packages/setuptools/wheel.py +213 -0
- package/venv/lib/python3.10/site-packages/setuptools/windows_support.py +29 -0
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/LICENSE +19 -0
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/METADATA +125 -0
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/RECORD +298 -0
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/WHEEL +5 -0
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/entry_points.txt +56 -0
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/top_level.txt +4 -0
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/LICENSE +18 -0
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/METADATA +43 -0
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/RECORD +8 -0
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/WHEEL +6 -0
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/six.py +1003 -0
- package/venv/lib/python3.10/site-packages/soupsieve/__init__.py +168 -0
- package/venv/lib/python3.10/site-packages/soupsieve/__meta__.py +197 -0
- package/venv/lib/python3.10/site-packages/soupsieve/css_match.py +1582 -0
- package/venv/lib/python3.10/site-packages/soupsieve/css_parser.py +1289 -0
- package/venv/lib/python3.10/site-packages/soupsieve/css_types.py +407 -0
- package/venv/lib/python3.10/site-packages/soupsieve/pretty.py +139 -0
- package/venv/lib/python3.10/site-packages/soupsieve/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/soupsieve/util.py +117 -0
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/METADATA +114 -0
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/RECORD +20 -0
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/WHEEL +4 -0
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/licenses/LICENSE.md +21 -0
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/PKG-INFO +98 -0
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/SOURCES.txt +12 -0
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/dependency_links.txt +1 -0
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/installed-files.txt +7 -0
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/requires.txt +2 -0
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/top_level.txt +1 -0
- package/venv/lib/python3.10/site-packages/sseclient.py +165 -0
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/LICENSE +279 -0
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/METADATA +67 -0
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/RECORD +7 -0
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/WHEEL +4 -0
- package/venv/lib/python3.10/site-packages/typing_extensions.py +3641 -0
- package/venv/lib/python3.10/site-packages/urllib3/__init__.py +211 -0
- package/venv/lib/python3.10/site-packages/urllib3/_base_connection.py +165 -0
- package/venv/lib/python3.10/site-packages/urllib3/_collections.py +479 -0
- package/venv/lib/python3.10/site-packages/urllib3/_request_methods.py +278 -0
- package/venv/lib/python3.10/site-packages/urllib3/_version.py +16 -0
- package/venv/lib/python3.10/site-packages/urllib3/connection.py +1044 -0
- package/venv/lib/python3.10/site-packages/urllib3/connectionpool.py +1178 -0
- package/venv/lib/python3.10/site-packages/urllib3/contrib/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/__init__.py +16 -0
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/connection.py +255 -0
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/emscripten_fetch_worker.js +110 -0
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/fetch.py +708 -0
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/request.py +22 -0
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/response.py +285 -0
- package/venv/lib/python3.10/site-packages/urllib3/contrib/pyopenssl.py +554 -0
- package/venv/lib/python3.10/site-packages/urllib3/contrib/socks.py +228 -0
- package/venv/lib/python3.10/site-packages/urllib3/exceptions.py +327 -0
- package/venv/lib/python3.10/site-packages/urllib3/fields.py +341 -0
- package/venv/lib/python3.10/site-packages/urllib3/filepost.py +89 -0
- package/venv/lib/python3.10/site-packages/urllib3/http2/__init__.py +53 -0
- package/venv/lib/python3.10/site-packages/urllib3/http2/connection.py +356 -0
- package/venv/lib/python3.10/site-packages/urllib3/http2/probe.py +87 -0
- package/venv/lib/python3.10/site-packages/urllib3/poolmanager.py +637 -0
- package/venv/lib/python3.10/site-packages/urllib3/py.typed +2 -0
- package/venv/lib/python3.10/site-packages/urllib3/response.py +1278 -0
- package/venv/lib/python3.10/site-packages/urllib3/util/__init__.py +42 -0
- package/venv/lib/python3.10/site-packages/urllib3/util/connection.py +137 -0
- package/venv/lib/python3.10/site-packages/urllib3/util/proxy.py +43 -0
- package/venv/lib/python3.10/site-packages/urllib3/util/request.py +258 -0
- package/venv/lib/python3.10/site-packages/urllib3/util/response.py +101 -0
- package/venv/lib/python3.10/site-packages/urllib3/util/retry.py +533 -0
- package/venv/lib/python3.10/site-packages/urllib3/util/ssl_.py +504 -0
- package/venv/lib/python3.10/site-packages/urllib3/util/ssl_match_hostname.py +159 -0
- package/venv/lib/python3.10/site-packages/urllib3/util/ssltransport.py +271 -0
- package/venv/lib/python3.10/site-packages/urllib3/util/timeout.py +275 -0
- package/venv/lib/python3.10/site-packages/urllib3/util/url.py +469 -0
- package/venv/lib/python3.10/site-packages/urllib3/util/util.py +42 -0
- package/venv/lib/python3.10/site-packages/urllib3/util/wait.py +124 -0
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/METADATA +154 -0
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/RECORD +80 -0
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/WHEEL +4 -0
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/licenses/LICENSE.txt +21 -0
- package/venv/lib/python3.10/site-packages/yarl/__init__.py +14 -0
- package/venv/lib/python3.10/site-packages/yarl/_parse.py +189 -0
- package/venv/lib/python3.10/site-packages/yarl/_path.py +41 -0
- package/venv/lib/python3.10/site-packages/yarl/_query.py +118 -0
- package/venv/lib/python3.10/site-packages/yarl/_quoters.py +32 -0
- package/venv/lib/python3.10/site-packages/yarl/_quoting.py +18 -0
- package/venv/lib/python3.10/site-packages/yarl/_quoting_c.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/yarl/_quoting_c.pyi +16 -0
- package/venv/lib/python3.10/site-packages/yarl/_quoting_c.pyx +423 -0
- package/venv/lib/python3.10/site-packages/yarl/_quoting_py.py +197 -0
- package/venv/lib/python3.10/site-packages/yarl/_url.py +1584 -0
- package/venv/lib/python3.10/site-packages/yarl/py.typed +1 -0
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/INSTALLER +1 -0
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/LICENSE +202 -0
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/METADATA +2279 -0
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/NOTICE +13 -0
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/RECORD +27 -0
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/WHEEL +6 -0
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/top_level.txt +1 -0
- package/venv/pyvenv.cfg +3 -0
|
@@ -0,0 +1,1289 @@
|
|
|
1
|
+
"""CSS selector parser."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
import re
|
|
4
|
+
from functools import lru_cache
|
|
5
|
+
from . import util
|
|
6
|
+
from . import css_match as cm
|
|
7
|
+
from . import css_types as ct
|
|
8
|
+
from .util import SelectorSyntaxError
|
|
9
|
+
import warnings
|
|
10
|
+
from typing import Match, Any, Iterator, cast
|
|
11
|
+
|
|
12
|
+
UNICODE_REPLACEMENT_CHAR = 0xFFFD
|
|
13
|
+
|
|
14
|
+
# Simple pseudo classes that take no parameters
|
|
15
|
+
PSEUDO_SIMPLE = {
|
|
16
|
+
":any-link",
|
|
17
|
+
":empty",
|
|
18
|
+
":first-child",
|
|
19
|
+
":first-of-type",
|
|
20
|
+
":in-range",
|
|
21
|
+
":out-of-range",
|
|
22
|
+
":last-child",
|
|
23
|
+
":last-of-type",
|
|
24
|
+
":link",
|
|
25
|
+
":only-child",
|
|
26
|
+
":only-of-type",
|
|
27
|
+
":root",
|
|
28
|
+
':checked',
|
|
29
|
+
':default',
|
|
30
|
+
':disabled',
|
|
31
|
+
':enabled',
|
|
32
|
+
':indeterminate',
|
|
33
|
+
':optional',
|
|
34
|
+
':placeholder-shown',
|
|
35
|
+
':read-only',
|
|
36
|
+
':read-write',
|
|
37
|
+
':required',
|
|
38
|
+
':scope',
|
|
39
|
+
':defined'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
# Supported, simple pseudo classes that match nothing in the Soup Sieve environment
|
|
43
|
+
PSEUDO_SIMPLE_NO_MATCH = {
|
|
44
|
+
':active',
|
|
45
|
+
':current',
|
|
46
|
+
':focus',
|
|
47
|
+
':focus-visible',
|
|
48
|
+
':focus-within',
|
|
49
|
+
':future',
|
|
50
|
+
':host',
|
|
51
|
+
':hover',
|
|
52
|
+
':local-link',
|
|
53
|
+
':past',
|
|
54
|
+
':paused',
|
|
55
|
+
':playing',
|
|
56
|
+
':target',
|
|
57
|
+
':target-within',
|
|
58
|
+
':user-invalid',
|
|
59
|
+
':visited'
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
# Complex pseudo classes that take selector lists
|
|
63
|
+
PSEUDO_COMPLEX = {
|
|
64
|
+
':contains',
|
|
65
|
+
':-soup-contains',
|
|
66
|
+
':-soup-contains-own',
|
|
67
|
+
':has',
|
|
68
|
+
':is',
|
|
69
|
+
':matches',
|
|
70
|
+
':not',
|
|
71
|
+
':where'
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
PSEUDO_COMPLEX_NO_MATCH = {
|
|
75
|
+
':current',
|
|
76
|
+
':host',
|
|
77
|
+
':host-context'
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
# Complex pseudo classes that take very specific parameters and are handled special
|
|
81
|
+
PSEUDO_SPECIAL = {
|
|
82
|
+
':dir',
|
|
83
|
+
':lang',
|
|
84
|
+
':nth-child',
|
|
85
|
+
':nth-last-child',
|
|
86
|
+
':nth-last-of-type',
|
|
87
|
+
':nth-of-type'
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
PSEUDO_SUPPORTED = PSEUDO_SIMPLE | PSEUDO_SIMPLE_NO_MATCH | PSEUDO_COMPLEX | PSEUDO_COMPLEX_NO_MATCH | PSEUDO_SPECIAL
|
|
91
|
+
|
|
92
|
+
# Sub-patterns parts
|
|
93
|
+
# Whitespace
|
|
94
|
+
NEWLINE = r'(?:\r\n|(?!\r\n)[\n\f\r])'
|
|
95
|
+
WS = fr'(?:[ \t]|{NEWLINE})'
|
|
96
|
+
# Comments
|
|
97
|
+
COMMENTS = r'(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/)'
|
|
98
|
+
# Whitespace with comments included
|
|
99
|
+
WSC = fr'(?:{WS}|{COMMENTS})'
|
|
100
|
+
# CSS escapes
|
|
101
|
+
CSS_ESCAPES = fr'(?:\\(?:[a-f0-9]{{1,6}}{WS}?|[^\r\n\f]|$))'
|
|
102
|
+
CSS_STRING_ESCAPES = fr'(?:\\(?:[a-f0-9]{{1,6}}{WS}?|[^\r\n\f]|$|{NEWLINE}))'
|
|
103
|
+
# CSS Identifier
|
|
104
|
+
IDENTIFIER = fr'''
|
|
105
|
+
(?:(?:-?(?:[^\x00-\x2f\x30-\x40\x5B-\x5E\x60\x7B-\x9f]|{CSS_ESCAPES})+|--)
|
|
106
|
+
(?:[^\x00-\x2c\x2e\x2f\x3A-\x40\x5B-\x5E\x60\x7B-\x9f]|{CSS_ESCAPES})*)
|
|
107
|
+
'''
|
|
108
|
+
# `nth` content
|
|
109
|
+
NTH = fr'(?:[-+])?(?:[0-9]+n?|n)(?:(?<=n){WSC}*(?:[-+]){WSC}*(?:[0-9]+))?'
|
|
110
|
+
# Value: quoted string or identifier
|
|
111
|
+
VALUE = fr'''(?:"(?:\\(?:.|{NEWLINE})|[^\\"\r\n\f]+)*?"|'(?:\\(?:.|{NEWLINE})|[^\\'\r\n\f]+)*?'|{IDENTIFIER}+)'''
|
|
112
|
+
# Attribute value comparison. `!=` is handled special as it is non-standard.
|
|
113
|
+
ATTR = fr'(?:{WSC}*(?P<cmp>[!~^|*$]?=){WSC}*(?P<value>{VALUE})(?:{WSC}*(?P<case>[is]))?)?{WSC}*\]'
|
|
114
|
+
|
|
115
|
+
# Selector patterns
|
|
116
|
+
# IDs (`#id`)
|
|
117
|
+
PAT_ID = fr'\#{IDENTIFIER}'
|
|
118
|
+
# Classes (`.class`)
|
|
119
|
+
PAT_CLASS = fr'\.{IDENTIFIER}'
|
|
120
|
+
# Prefix:Tag (`prefix|tag`)
|
|
121
|
+
PAT_TAG = fr'(?P<tag_ns>(?:{IDENTIFIER}|\*)?\|)?(?P<tag_name>{IDENTIFIER}|\*)'
|
|
122
|
+
# Attributes (`[attr]`, `[attr=value]`, etc.)
|
|
123
|
+
PAT_ATTR = fr'\[{WSC}*(?P<attr_ns>(?:{IDENTIFIER}|\*)?\|)?(?P<attr_name>{IDENTIFIER}){ATTR}'
|
|
124
|
+
# Pseudo class (`:pseudo-class`, `:pseudo-class(`)
|
|
125
|
+
PAT_PSEUDO_CLASS = fr'(?P<name>:{IDENTIFIER})(?P<open>\({WSC}*)?'
|
|
126
|
+
# Pseudo class special patterns. Matches `:pseudo-class(` for special case pseudo classes.
|
|
127
|
+
PAT_PSEUDO_CLASS_SPECIAL = fr'(?P<name>:{IDENTIFIER})(?P<open>\({WSC}*)'
|
|
128
|
+
# Custom pseudo class (`:--custom-pseudo`)
|
|
129
|
+
PAT_PSEUDO_CLASS_CUSTOM = fr'(?P<name>:(?=--){IDENTIFIER})'
|
|
130
|
+
# Nesting ampersand selector. Matches `&`
|
|
131
|
+
PAT_AMP = r'&'
|
|
132
|
+
# Closing pseudo group (`)`)
|
|
133
|
+
PAT_PSEUDO_CLOSE = fr'{WSC}*\)'
|
|
134
|
+
# Pseudo element (`::pseudo-element`)
|
|
135
|
+
PAT_PSEUDO_ELEMENT = fr':{PAT_PSEUDO_CLASS}'
|
|
136
|
+
# At rule (`@page`, etc.) (not supported)
|
|
137
|
+
PAT_AT_RULE = fr'@P{IDENTIFIER}'
|
|
138
|
+
# Pseudo class `nth-child` (`:nth-child(an+b [of S]?)`, `:first-child`, etc.)
|
|
139
|
+
PAT_PSEUDO_NTH_CHILD = fr'''
|
|
140
|
+
(?P<pseudo_nth_child>{PAT_PSEUDO_CLASS_SPECIAL}
|
|
141
|
+
(?P<nth_child>{NTH}|even|odd))(?:{WSC}*\)|(?P<of>{COMMENTS}*{WS}{WSC}*of{COMMENTS}*{WS}{WSC}*))
|
|
142
|
+
'''
|
|
143
|
+
# Pseudo class `nth-of-type` (`:nth-of-type(an+b)`, `:first-of-type`, etc.)
|
|
144
|
+
PAT_PSEUDO_NTH_TYPE = fr'''
|
|
145
|
+
(?P<pseudo_nth_type>{PAT_PSEUDO_CLASS_SPECIAL}
|
|
146
|
+
(?P<nth_type>{NTH}|even|odd)){WSC}*\)
|
|
147
|
+
'''
|
|
148
|
+
# Pseudo class language (`:lang("*-de", en)`)
|
|
149
|
+
PAT_PSEUDO_LANG = fr'{PAT_PSEUDO_CLASS_SPECIAL}(?P<values>{VALUE}(?:{WSC}*,{WSC}*{VALUE})*){WSC}*\)'
|
|
150
|
+
# Pseudo class direction (`:dir(ltr)`)
|
|
151
|
+
PAT_PSEUDO_DIR = fr'{PAT_PSEUDO_CLASS_SPECIAL}(?P<dir>ltr|rtl){WSC}*\)'
|
|
152
|
+
# Combining characters (`>`, `~`, ` `, `+`, `,`)
|
|
153
|
+
PAT_COMBINE = fr'{WSC}*?(?P<relation>[,+>~]|{WS}(?![,+>~])){WSC}*'
|
|
154
|
+
# Extra: Contains (`:contains(text)`)
|
|
155
|
+
PAT_PSEUDO_CONTAINS = fr'{PAT_PSEUDO_CLASS_SPECIAL}(?P<values>{VALUE}(?:{WSC}*,{WSC}*{VALUE})*){WSC}*\)'
|
|
156
|
+
|
|
157
|
+
# Regular expressions
|
|
158
|
+
# CSS escape pattern
|
|
159
|
+
RE_CSS_ESC = re.compile(fr'(?:(\\[a-f0-9]{{1,6}}{WSC}?)|(\\[^\r\n\f])|(\\$))', re.I)
|
|
160
|
+
RE_CSS_STR_ESC = re.compile(fr'(?:(\\[a-f0-9]{{1,6}}{WS}?)|(\\[^\r\n\f])|(\\$)|(\\{NEWLINE}))', re.I)
|
|
161
|
+
# Pattern to break up `nth` specifiers
|
|
162
|
+
RE_NTH = re.compile(fr'(?P<s1>[-+])?(?P<a>[0-9]+n?|n)(?:(?<=n){WSC}*(?P<s2>[-+]){WSC}*(?P<b>[0-9]+))?', re.I)
|
|
163
|
+
# Pattern to iterate multiple values.
|
|
164
|
+
RE_VALUES = re.compile(fr'(?:(?P<value>{VALUE})|(?P<split>{WSC}*,{WSC}*))', re.X)
|
|
165
|
+
# Whitespace checks
|
|
166
|
+
RE_WS = re.compile(WS)
|
|
167
|
+
RE_WS_BEGIN = re.compile(fr'^{WSC}*')
|
|
168
|
+
RE_WS_END = re.compile(fr'{WSC}*$')
|
|
169
|
+
RE_CUSTOM = re.compile(fr'^{PAT_PSEUDO_CLASS_CUSTOM}$', re.X)
|
|
170
|
+
|
|
171
|
+
# Constants
|
|
172
|
+
# List split token
|
|
173
|
+
COMMA_COMBINATOR = ','
|
|
174
|
+
# Relation token for descendant
|
|
175
|
+
WS_COMBINATOR = " "
|
|
176
|
+
|
|
177
|
+
# Parse flags
|
|
178
|
+
FLG_PSEUDO = 0x01
|
|
179
|
+
FLG_NOT = 0x02
|
|
180
|
+
FLG_RELATIVE = 0x04
|
|
181
|
+
FLG_DEFAULT = 0x08
|
|
182
|
+
FLG_HTML = 0x10
|
|
183
|
+
FLG_INDETERMINATE = 0x20
|
|
184
|
+
FLG_OPEN = 0x40
|
|
185
|
+
FLG_IN_RANGE = 0x80
|
|
186
|
+
FLG_OUT_OF_RANGE = 0x100
|
|
187
|
+
FLG_PLACEHOLDER_SHOWN = 0x200
|
|
188
|
+
FLG_FORGIVE = 0x400
|
|
189
|
+
|
|
190
|
+
# Maximum cached patterns to store
|
|
191
|
+
_MAXCACHE = 500
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
@lru_cache(maxsize=_MAXCACHE)
|
|
195
|
+
def _cached_css_compile(
|
|
196
|
+
pattern: str,
|
|
197
|
+
namespaces: ct.Namespaces | None,
|
|
198
|
+
custom: ct.CustomSelectors | None,
|
|
199
|
+
flags: int
|
|
200
|
+
) -> cm.SoupSieve:
|
|
201
|
+
"""Cached CSS compile."""
|
|
202
|
+
|
|
203
|
+
custom_selectors = process_custom(custom)
|
|
204
|
+
return cm.SoupSieve(
|
|
205
|
+
pattern,
|
|
206
|
+
CSSParser(
|
|
207
|
+
pattern,
|
|
208
|
+
custom=custom_selectors,
|
|
209
|
+
flags=flags
|
|
210
|
+
).process_selectors(),
|
|
211
|
+
namespaces,
|
|
212
|
+
custom,
|
|
213
|
+
flags
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
def _purge_cache() -> None:
|
|
218
|
+
"""Purge the cache."""
|
|
219
|
+
|
|
220
|
+
_cached_css_compile.cache_clear()
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
def process_custom(custom: ct.CustomSelectors | None) -> dict[str, str | ct.SelectorList]:
|
|
224
|
+
"""Process custom."""
|
|
225
|
+
|
|
226
|
+
custom_selectors = {}
|
|
227
|
+
if custom is not None:
|
|
228
|
+
for key, value in custom.items():
|
|
229
|
+
name = util.lower(key)
|
|
230
|
+
if RE_CUSTOM.match(name) is None:
|
|
231
|
+
raise SelectorSyntaxError(f"The name '{name}' is not a valid custom pseudo-class name")
|
|
232
|
+
if name in custom_selectors:
|
|
233
|
+
raise KeyError(f"The custom selector '{name}' has already been registered")
|
|
234
|
+
custom_selectors[css_unescape(name)] = value
|
|
235
|
+
return custom_selectors
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
def css_unescape(content: str, string: bool = False) -> str:
|
|
239
|
+
"""
|
|
240
|
+
Unescape CSS value.
|
|
241
|
+
|
|
242
|
+
Strings allow for spanning the value on multiple strings by escaping a new line.
|
|
243
|
+
"""
|
|
244
|
+
|
|
245
|
+
def replace(m: Match[str]) -> str:
|
|
246
|
+
"""Replace with the appropriate substitute."""
|
|
247
|
+
|
|
248
|
+
if m.group(1):
|
|
249
|
+
codepoint = int(m.group(1)[1:], 16)
|
|
250
|
+
if codepoint == 0:
|
|
251
|
+
codepoint = UNICODE_REPLACEMENT_CHAR
|
|
252
|
+
value = chr(codepoint)
|
|
253
|
+
elif m.group(2):
|
|
254
|
+
value = m.group(2)[1:]
|
|
255
|
+
elif m.group(3):
|
|
256
|
+
value = '\ufffd'
|
|
257
|
+
else:
|
|
258
|
+
value = ''
|
|
259
|
+
|
|
260
|
+
return value
|
|
261
|
+
|
|
262
|
+
return (RE_CSS_ESC if not string else RE_CSS_STR_ESC).sub(replace, content)
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
def escape(ident: str) -> str:
|
|
266
|
+
"""Escape identifier."""
|
|
267
|
+
|
|
268
|
+
string = []
|
|
269
|
+
length = len(ident)
|
|
270
|
+
start_dash = length > 0 and ident[0] == '-'
|
|
271
|
+
if length == 1 and start_dash:
|
|
272
|
+
# Need to escape identifier that is a single `-` with no other characters
|
|
273
|
+
string.append(f'\\{ident}')
|
|
274
|
+
else:
|
|
275
|
+
for index, c in enumerate(ident):
|
|
276
|
+
codepoint = ord(c)
|
|
277
|
+
if codepoint == 0x00:
|
|
278
|
+
string.append('\ufffd')
|
|
279
|
+
elif (0x01 <= codepoint <= 0x1F) or codepoint == 0x7F:
|
|
280
|
+
string.append(f'\\{codepoint:x} ')
|
|
281
|
+
elif (index == 0 or (start_dash and index == 1)) and (0x30 <= codepoint <= 0x39):
|
|
282
|
+
string.append(f'\\{codepoint:x} ')
|
|
283
|
+
elif (
|
|
284
|
+
codepoint in (0x2D, 0x5F) or codepoint >= 0x80 or (0x30 <= codepoint <= 0x39) or
|
|
285
|
+
(0x30 <= codepoint <= 0x39) or (0x41 <= codepoint <= 0x5A) or (0x61 <= codepoint <= 0x7A)
|
|
286
|
+
):
|
|
287
|
+
string.append(c)
|
|
288
|
+
else:
|
|
289
|
+
string.append(f'\\{c}')
|
|
290
|
+
return ''.join(string)
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
class SelectorPattern:
|
|
294
|
+
"""Selector pattern."""
|
|
295
|
+
|
|
296
|
+
def __init__(self, name: str, pattern: str) -> None:
|
|
297
|
+
"""Initialize."""
|
|
298
|
+
|
|
299
|
+
self.name = name
|
|
300
|
+
self.re_pattern = re.compile(pattern, re.I | re.X | re.U)
|
|
301
|
+
|
|
302
|
+
def get_name(self) -> str:
|
|
303
|
+
"""Get name."""
|
|
304
|
+
|
|
305
|
+
return self.name
|
|
306
|
+
|
|
307
|
+
def match(self, selector: str, index: int, flags: int) -> Match[str] | None:
|
|
308
|
+
"""Match the selector."""
|
|
309
|
+
|
|
310
|
+
return self.re_pattern.match(selector, index)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
class SpecialPseudoPattern(SelectorPattern):
|
|
314
|
+
"""Selector pattern."""
|
|
315
|
+
|
|
316
|
+
def __init__(self, patterns: tuple[tuple[str, tuple[str, ...], str, type[SelectorPattern]], ...]) -> None:
|
|
317
|
+
"""Initialize."""
|
|
318
|
+
|
|
319
|
+
self.patterns = {}
|
|
320
|
+
for p in patterns:
|
|
321
|
+
name = p[0]
|
|
322
|
+
pattern = p[3](name, p[2])
|
|
323
|
+
for pseudo in p[1]:
|
|
324
|
+
self.patterns[pseudo] = pattern
|
|
325
|
+
|
|
326
|
+
self.matched_name = None # type: SelectorPattern | None
|
|
327
|
+
self.re_pseudo_name = re.compile(PAT_PSEUDO_CLASS_SPECIAL, re.I | re.X | re.U)
|
|
328
|
+
|
|
329
|
+
def get_name(self) -> str:
|
|
330
|
+
"""Get name."""
|
|
331
|
+
|
|
332
|
+
return '' if self.matched_name is None else self.matched_name.get_name()
|
|
333
|
+
|
|
334
|
+
def match(self, selector: str, index: int, flags: int) -> Match[str] | None:
|
|
335
|
+
"""Match the selector."""
|
|
336
|
+
|
|
337
|
+
pseudo = None
|
|
338
|
+
m = self.re_pseudo_name.match(selector, index)
|
|
339
|
+
if m:
|
|
340
|
+
name = util.lower(css_unescape(m.group('name')))
|
|
341
|
+
pattern = self.patterns.get(name)
|
|
342
|
+
if pattern:
|
|
343
|
+
pseudo = pattern.match(selector, index, flags)
|
|
344
|
+
if pseudo:
|
|
345
|
+
self.matched_name = pattern
|
|
346
|
+
|
|
347
|
+
return pseudo
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
class _Selector:
|
|
351
|
+
"""
|
|
352
|
+
Intermediate selector class.
|
|
353
|
+
|
|
354
|
+
This stores selector data for a compound selector as we are acquiring them.
|
|
355
|
+
Once we are done collecting the data for a compound selector, we freeze
|
|
356
|
+
the data in an object that can be pickled and hashed.
|
|
357
|
+
"""
|
|
358
|
+
|
|
359
|
+
def __init__(self, **kwargs: Any) -> None:
|
|
360
|
+
"""Initialize."""
|
|
361
|
+
|
|
362
|
+
self.tag = kwargs.get('tag', None) # type: ct.SelectorTag | None
|
|
363
|
+
self.ids = kwargs.get('ids', []) # type: list[str]
|
|
364
|
+
self.classes = kwargs.get('classes', []) # type: list[str]
|
|
365
|
+
self.attributes = kwargs.get('attributes', []) # type: list[ct.SelectorAttribute]
|
|
366
|
+
self.nth = kwargs.get('nth', []) # type: list[ct.SelectorNth]
|
|
367
|
+
self.selectors = kwargs.get('selectors', []) # type: list[ct.SelectorList]
|
|
368
|
+
self.relations = kwargs.get('relations', []) # type: list[_Selector]
|
|
369
|
+
self.rel_type = kwargs.get('rel_type', None) # type: str | None
|
|
370
|
+
self.contains = kwargs.get('contains', []) # type: list[ct.SelectorContains]
|
|
371
|
+
self.lang = kwargs.get('lang', []) # type: list[ct.SelectorLang]
|
|
372
|
+
self.flags = kwargs.get('flags', 0) # type: int
|
|
373
|
+
self.no_match = kwargs.get('no_match', False) # type: bool
|
|
374
|
+
|
|
375
|
+
def _freeze_relations(self, relations: list[_Selector]) -> ct.SelectorList:
|
|
376
|
+
"""Freeze relation."""
|
|
377
|
+
|
|
378
|
+
if relations:
|
|
379
|
+
sel = relations[0]
|
|
380
|
+
sel.relations.extend(relations[1:])
|
|
381
|
+
return ct.SelectorList([sel.freeze()])
|
|
382
|
+
else:
|
|
383
|
+
return ct.SelectorList()
|
|
384
|
+
|
|
385
|
+
def freeze(self) -> ct.Selector | ct.SelectorNull:
|
|
386
|
+
"""Freeze self."""
|
|
387
|
+
|
|
388
|
+
if self.no_match:
|
|
389
|
+
return ct.SelectorNull()
|
|
390
|
+
else:
|
|
391
|
+
return ct.Selector(
|
|
392
|
+
self.tag,
|
|
393
|
+
tuple(self.ids),
|
|
394
|
+
tuple(self.classes),
|
|
395
|
+
tuple(self.attributes),
|
|
396
|
+
tuple(self.nth),
|
|
397
|
+
tuple(self.selectors),
|
|
398
|
+
self._freeze_relations(self.relations),
|
|
399
|
+
self.rel_type,
|
|
400
|
+
tuple(self.contains),
|
|
401
|
+
tuple(self.lang),
|
|
402
|
+
self.flags
|
|
403
|
+
)
|
|
404
|
+
|
|
405
|
+
def __str__(self) -> str: # pragma: no cover
|
|
406
|
+
"""String representation."""
|
|
407
|
+
|
|
408
|
+
return (
|
|
409
|
+
f'_Selector(tag={self.tag!r}, ids={self.ids!r}, classes={self.classes!r}, attributes={self.attributes!r}, '
|
|
410
|
+
f'nth={self.nth!r}, selectors={self.selectors!r}, relations={self.relations!r}, '
|
|
411
|
+
f'rel_type={self.rel_type!r}, contains={self.contains!r}, lang={self.lang!r}, flags={self.flags!r}, '
|
|
412
|
+
f'no_match={self.no_match!r})'
|
|
413
|
+
)
|
|
414
|
+
|
|
415
|
+
__repr__ = __str__
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
class CSSParser:
|
|
419
|
+
"""Parse CSS selectors."""
|
|
420
|
+
|
|
421
|
+
css_tokens = (
|
|
422
|
+
SelectorPattern("pseudo_close", PAT_PSEUDO_CLOSE),
|
|
423
|
+
SpecialPseudoPattern(
|
|
424
|
+
(
|
|
425
|
+
(
|
|
426
|
+
"pseudo_contains",
|
|
427
|
+
(':contains', ':-soup-contains', ':-soup-contains-own'),
|
|
428
|
+
PAT_PSEUDO_CONTAINS,
|
|
429
|
+
SelectorPattern
|
|
430
|
+
),
|
|
431
|
+
("pseudo_nth_child", (':nth-child', ':nth-last-child'), PAT_PSEUDO_NTH_CHILD, SelectorPattern),
|
|
432
|
+
("pseudo_nth_type", (':nth-of-type', ':nth-last-of-type'), PAT_PSEUDO_NTH_TYPE, SelectorPattern),
|
|
433
|
+
("pseudo_lang", (':lang',), PAT_PSEUDO_LANG, SelectorPattern),
|
|
434
|
+
("pseudo_dir", (':dir',), PAT_PSEUDO_DIR, SelectorPattern)
|
|
435
|
+
)
|
|
436
|
+
),
|
|
437
|
+
SelectorPattern("pseudo_class_custom", PAT_PSEUDO_CLASS_CUSTOM),
|
|
438
|
+
SelectorPattern("pseudo_class", PAT_PSEUDO_CLASS),
|
|
439
|
+
SelectorPattern("pseudo_element", PAT_PSEUDO_ELEMENT),
|
|
440
|
+
SelectorPattern("amp", PAT_AMP),
|
|
441
|
+
SelectorPattern("at_rule", PAT_AT_RULE),
|
|
442
|
+
SelectorPattern("id", PAT_ID),
|
|
443
|
+
SelectorPattern("class", PAT_CLASS),
|
|
444
|
+
SelectorPattern("tag", PAT_TAG),
|
|
445
|
+
SelectorPattern("attribute", PAT_ATTR),
|
|
446
|
+
SelectorPattern("combine", PAT_COMBINE)
|
|
447
|
+
)
|
|
448
|
+
|
|
449
|
+
def __init__(
|
|
450
|
+
self,
|
|
451
|
+
selector: str,
|
|
452
|
+
custom: dict[str, str | ct.SelectorList] | None = None,
|
|
453
|
+
flags: int = 0
|
|
454
|
+
) -> None:
|
|
455
|
+
"""Initialize."""
|
|
456
|
+
|
|
457
|
+
self.pattern = selector.replace('\x00', '\ufffd')
|
|
458
|
+
self.flags = flags
|
|
459
|
+
self.debug = self.flags & util.DEBUG
|
|
460
|
+
self.custom = {} if custom is None else custom
|
|
461
|
+
|
|
462
|
+
def parse_attribute_selector(self, sel: _Selector, m: Match[str], has_selector: bool) -> bool:
|
|
463
|
+
"""Create attribute selector from the returned regex match."""
|
|
464
|
+
|
|
465
|
+
inverse = False
|
|
466
|
+
op = m.group('cmp')
|
|
467
|
+
case = util.lower(m.group('case')) if m.group('case') else None
|
|
468
|
+
ns = css_unescape(m.group('attr_ns')[:-1]) if m.group('attr_ns') else ''
|
|
469
|
+
attr = css_unescape(m.group('attr_name'))
|
|
470
|
+
is_type = False
|
|
471
|
+
pattern2 = None
|
|
472
|
+
value = ''
|
|
473
|
+
|
|
474
|
+
if case:
|
|
475
|
+
flags = (re.I if case == 'i' else 0) | re.DOTALL
|
|
476
|
+
elif util.lower(attr) == 'type':
|
|
477
|
+
flags = re.I | re.DOTALL
|
|
478
|
+
is_type = True
|
|
479
|
+
else:
|
|
480
|
+
flags = re.DOTALL
|
|
481
|
+
|
|
482
|
+
if op:
|
|
483
|
+
if m.group('value').startswith(('"', "'")):
|
|
484
|
+
value = css_unescape(m.group('value')[1:-1], True)
|
|
485
|
+
else:
|
|
486
|
+
value = css_unescape(m.group('value'))
|
|
487
|
+
|
|
488
|
+
if not op:
|
|
489
|
+
# Attribute name
|
|
490
|
+
pattern = None
|
|
491
|
+
elif op.startswith('^'):
|
|
492
|
+
# Value start with
|
|
493
|
+
pattern = re.compile(r'^%s.*' % re.escape(value), flags)
|
|
494
|
+
elif op.startswith('$'):
|
|
495
|
+
# Value ends with
|
|
496
|
+
pattern = re.compile(r'.*?%s$' % re.escape(value), flags)
|
|
497
|
+
elif op.startswith('*'):
|
|
498
|
+
# Value contains
|
|
499
|
+
pattern = re.compile(r'.*?%s.*' % re.escape(value), flags)
|
|
500
|
+
elif op.startswith('~'):
|
|
501
|
+
# Value contains word within space separated list
|
|
502
|
+
# `~=` should match nothing if it is empty or contains whitespace,
|
|
503
|
+
# so if either of these cases is present, use `[^\s\S]` which cannot be matched.
|
|
504
|
+
value = r'[^\s\S]' if not value or RE_WS.search(value) else re.escape(value)
|
|
505
|
+
pattern = re.compile(r'.*?(?:(?<=^)|(?<=[ \t\r\n\f]))%s(?=(?:[ \t\r\n\f]|$)).*' % value, flags)
|
|
506
|
+
elif op.startswith('|'):
|
|
507
|
+
# Value starts with word in dash separated list
|
|
508
|
+
pattern = re.compile(r'^%s(?:-.*)?$' % re.escape(value), flags)
|
|
509
|
+
else:
|
|
510
|
+
# Value matches
|
|
511
|
+
pattern = re.compile(r'^%s$' % re.escape(value), flags)
|
|
512
|
+
if op.startswith('!'):
|
|
513
|
+
# Equivalent to `:not([attr=value])`
|
|
514
|
+
inverse = True
|
|
515
|
+
if is_type and pattern:
|
|
516
|
+
pattern2 = re.compile(pattern.pattern)
|
|
517
|
+
|
|
518
|
+
# Append the attribute selector
|
|
519
|
+
sel_attr = ct.SelectorAttribute(attr, ns, pattern, pattern2)
|
|
520
|
+
if inverse:
|
|
521
|
+
# If we are using `!=`, we need to nest the pattern under a `:not()`.
|
|
522
|
+
sub_sel = _Selector()
|
|
523
|
+
sub_sel.attributes.append(sel_attr)
|
|
524
|
+
not_list = ct.SelectorList([sub_sel.freeze()], True, False)
|
|
525
|
+
sel.selectors.append(not_list)
|
|
526
|
+
else:
|
|
527
|
+
sel.attributes.append(sel_attr)
|
|
528
|
+
|
|
529
|
+
has_selector = True
|
|
530
|
+
return has_selector
|
|
531
|
+
|
|
532
|
+
def parse_tag_pattern(self, sel: _Selector, m: Match[str], has_selector: bool) -> bool:
|
|
533
|
+
"""Parse tag pattern from regex match."""
|
|
534
|
+
|
|
535
|
+
prefix = css_unescape(m.group('tag_ns')[:-1]) if m.group('tag_ns') else None
|
|
536
|
+
tag = css_unescape(m.group('tag_name'))
|
|
537
|
+
sel.tag = ct.SelectorTag(tag, prefix)
|
|
538
|
+
has_selector = True
|
|
539
|
+
return has_selector
|
|
540
|
+
|
|
541
|
+
def parse_pseudo_class_custom(self, sel: _Selector, m: Match[str], has_selector: bool) -> bool:
|
|
542
|
+
"""
|
|
543
|
+
Parse custom pseudo class alias.
|
|
544
|
+
|
|
545
|
+
Compile custom selectors as we need them. When compiling a custom selector,
|
|
546
|
+
set it to `None` in the dictionary so we can avoid an infinite loop.
|
|
547
|
+
"""
|
|
548
|
+
|
|
549
|
+
pseudo = util.lower(css_unescape(m.group('name')))
|
|
550
|
+
selector = self.custom.get(pseudo)
|
|
551
|
+
if selector is None:
|
|
552
|
+
raise SelectorSyntaxError(
|
|
553
|
+
f"Undefined custom selector '{pseudo}' found at position {m.end(0)}",
|
|
554
|
+
self.pattern,
|
|
555
|
+
m.end(0)
|
|
556
|
+
)
|
|
557
|
+
|
|
558
|
+
if not isinstance(selector, ct.SelectorList):
|
|
559
|
+
del self.custom[pseudo]
|
|
560
|
+
selector = CSSParser(
|
|
561
|
+
selector, custom=self.custom, flags=self.flags
|
|
562
|
+
).process_selectors(flags=FLG_PSEUDO)
|
|
563
|
+
self.custom[pseudo] = selector
|
|
564
|
+
|
|
565
|
+
sel.selectors.append(selector)
|
|
566
|
+
has_selector = True
|
|
567
|
+
return has_selector
|
|
568
|
+
|
|
569
|
+
def parse_pseudo_class(
|
|
570
|
+
self,
|
|
571
|
+
sel: _Selector,
|
|
572
|
+
m: Match[str],
|
|
573
|
+
has_selector: bool,
|
|
574
|
+
iselector: Iterator[tuple[str, Match[str]]],
|
|
575
|
+
is_html: bool
|
|
576
|
+
) -> tuple[bool, bool]:
|
|
577
|
+
"""Parse pseudo class."""
|
|
578
|
+
|
|
579
|
+
complex_pseudo = False
|
|
580
|
+
pseudo = util.lower(css_unescape(m.group('name')))
|
|
581
|
+
if m.group('open'):
|
|
582
|
+
complex_pseudo = True
|
|
583
|
+
if complex_pseudo and pseudo in PSEUDO_COMPLEX:
|
|
584
|
+
has_selector = self.parse_pseudo_open(sel, pseudo, has_selector, iselector, m.end(0))
|
|
585
|
+
elif not complex_pseudo and pseudo in PSEUDO_SIMPLE:
|
|
586
|
+
if pseudo == ':root':
|
|
587
|
+
sel.flags |= ct.SEL_ROOT
|
|
588
|
+
elif pseudo == ':defined':
|
|
589
|
+
sel.flags |= ct.SEL_DEFINED
|
|
590
|
+
is_html = True
|
|
591
|
+
elif pseudo == ':scope':
|
|
592
|
+
sel.flags |= ct.SEL_SCOPE
|
|
593
|
+
elif pseudo == ':empty':
|
|
594
|
+
sel.flags |= ct.SEL_EMPTY
|
|
595
|
+
elif pseudo in (':link', ':any-link'):
|
|
596
|
+
sel.selectors.append(CSS_LINK)
|
|
597
|
+
elif pseudo == ':checked':
|
|
598
|
+
sel.selectors.append(CSS_CHECKED)
|
|
599
|
+
elif pseudo == ':default':
|
|
600
|
+
sel.selectors.append(CSS_DEFAULT)
|
|
601
|
+
elif pseudo == ':indeterminate':
|
|
602
|
+
sel.selectors.append(CSS_INDETERMINATE)
|
|
603
|
+
elif pseudo == ":disabled":
|
|
604
|
+
sel.selectors.append(CSS_DISABLED)
|
|
605
|
+
elif pseudo == ":enabled":
|
|
606
|
+
sel.selectors.append(CSS_ENABLED)
|
|
607
|
+
elif pseudo == ":required":
|
|
608
|
+
sel.selectors.append(CSS_REQUIRED)
|
|
609
|
+
elif pseudo == ":optional":
|
|
610
|
+
sel.selectors.append(CSS_OPTIONAL)
|
|
611
|
+
elif pseudo == ":read-only":
|
|
612
|
+
sel.selectors.append(CSS_READ_ONLY)
|
|
613
|
+
elif pseudo == ":read-write":
|
|
614
|
+
sel.selectors.append(CSS_READ_WRITE)
|
|
615
|
+
elif pseudo == ":in-range":
|
|
616
|
+
sel.selectors.append(CSS_IN_RANGE)
|
|
617
|
+
elif pseudo == ":out-of-range":
|
|
618
|
+
sel.selectors.append(CSS_OUT_OF_RANGE)
|
|
619
|
+
elif pseudo == ":placeholder-shown":
|
|
620
|
+
sel.selectors.append(CSS_PLACEHOLDER_SHOWN)
|
|
621
|
+
elif pseudo == ':first-child':
|
|
622
|
+
sel.nth.append(ct.SelectorNth(1, False, 0, False, False, ct.SelectorList()))
|
|
623
|
+
elif pseudo == ':last-child':
|
|
624
|
+
sel.nth.append(ct.SelectorNth(1, False, 0, False, True, ct.SelectorList()))
|
|
625
|
+
elif pseudo == ':first-of-type':
|
|
626
|
+
sel.nth.append(ct.SelectorNth(1, False, 0, True, False, ct.SelectorList()))
|
|
627
|
+
elif pseudo == ':last-of-type':
|
|
628
|
+
sel.nth.append(ct.SelectorNth(1, False, 0, True, True, ct.SelectorList()))
|
|
629
|
+
elif pseudo == ':only-child':
|
|
630
|
+
sel.nth.extend(
|
|
631
|
+
[
|
|
632
|
+
ct.SelectorNth(1, False, 0, False, False, ct.SelectorList()),
|
|
633
|
+
ct.SelectorNth(1, False, 0, False, True, ct.SelectorList())
|
|
634
|
+
]
|
|
635
|
+
)
|
|
636
|
+
elif pseudo == ':only-of-type':
|
|
637
|
+
sel.nth.extend(
|
|
638
|
+
[
|
|
639
|
+
ct.SelectorNth(1, False, 0, True, False, ct.SelectorList()),
|
|
640
|
+
ct.SelectorNth(1, False, 0, True, True, ct.SelectorList())
|
|
641
|
+
]
|
|
642
|
+
)
|
|
643
|
+
has_selector = True
|
|
644
|
+
elif complex_pseudo and pseudo in PSEUDO_COMPLEX_NO_MATCH:
|
|
645
|
+
self.parse_selectors(iselector, m.end(0), FLG_PSEUDO | FLG_OPEN)
|
|
646
|
+
sel.no_match = True
|
|
647
|
+
has_selector = True
|
|
648
|
+
elif not complex_pseudo and pseudo in PSEUDO_SIMPLE_NO_MATCH:
|
|
649
|
+
sel.no_match = True
|
|
650
|
+
has_selector = True
|
|
651
|
+
elif pseudo in PSEUDO_SUPPORTED:
|
|
652
|
+
raise SelectorSyntaxError(
|
|
653
|
+
f"Invalid syntax for pseudo class '{pseudo}'",
|
|
654
|
+
self.pattern,
|
|
655
|
+
m.start(0)
|
|
656
|
+
)
|
|
657
|
+
else:
|
|
658
|
+
raise SelectorSyntaxError(
|
|
659
|
+
f"'{pseudo}' was detected as a pseudo-class and is either unsupported or invalid. "
|
|
660
|
+
"If the syntax was not intended to be recognized as a pseudo-class, please escape the colon.",
|
|
661
|
+
self.pattern,
|
|
662
|
+
m.start(0)
|
|
663
|
+
)
|
|
664
|
+
|
|
665
|
+
return has_selector, is_html
|
|
666
|
+
|
|
667
|
+
def parse_pseudo_nth(
|
|
668
|
+
self,
|
|
669
|
+
sel: _Selector,
|
|
670
|
+
m: Match[str],
|
|
671
|
+
has_selector: bool,
|
|
672
|
+
iselector: Iterator[tuple[str, Match[str]]]
|
|
673
|
+
) -> bool:
|
|
674
|
+
"""Parse `nth` pseudo."""
|
|
675
|
+
|
|
676
|
+
mdict = m.groupdict()
|
|
677
|
+
if mdict.get('pseudo_nth_child'):
|
|
678
|
+
postfix = '_child'
|
|
679
|
+
else:
|
|
680
|
+
postfix = '_type'
|
|
681
|
+
mdict['name'] = util.lower(css_unescape(mdict['name']))
|
|
682
|
+
content = util.lower(mdict.get('nth' + postfix))
|
|
683
|
+
if content == 'even':
|
|
684
|
+
# 2n
|
|
685
|
+
s1 = 2
|
|
686
|
+
s2 = 0
|
|
687
|
+
var = True
|
|
688
|
+
elif content == 'odd':
|
|
689
|
+
# 2n+1
|
|
690
|
+
s1 = 2
|
|
691
|
+
s2 = 1
|
|
692
|
+
var = True
|
|
693
|
+
else:
|
|
694
|
+
nth_parts = cast(Match[str], RE_NTH.match(content))
|
|
695
|
+
_s1 = '-' if nth_parts.group('s1') and nth_parts.group('s1') == '-' else ''
|
|
696
|
+
a = nth_parts.group('a')
|
|
697
|
+
var = a.endswith('n')
|
|
698
|
+
if a.startswith('n'):
|
|
699
|
+
_s1 += '1'
|
|
700
|
+
elif var:
|
|
701
|
+
_s1 += a[:-1]
|
|
702
|
+
else:
|
|
703
|
+
_s1 += a
|
|
704
|
+
_s2 = '-' if nth_parts.group('s2') and nth_parts.group('s2') == '-' else ''
|
|
705
|
+
if nth_parts.group('b'):
|
|
706
|
+
_s2 += nth_parts.group('b')
|
|
707
|
+
else:
|
|
708
|
+
_s2 = '0'
|
|
709
|
+
s1 = int(_s1, 10)
|
|
710
|
+
s2 = int(_s2, 10)
|
|
711
|
+
|
|
712
|
+
pseudo_sel = mdict['name']
|
|
713
|
+
if postfix == '_child':
|
|
714
|
+
if m.group('of'):
|
|
715
|
+
# Parse the rest of `of S`.
|
|
716
|
+
nth_sel = self.parse_selectors(iselector, m.end(0), FLG_PSEUDO | FLG_OPEN)
|
|
717
|
+
else:
|
|
718
|
+
# Use default `*|*` for `of S`.
|
|
719
|
+
nth_sel = CSS_NTH_OF_S_DEFAULT
|
|
720
|
+
if pseudo_sel == ':nth-child':
|
|
721
|
+
sel.nth.append(ct.SelectorNth(s1, var, s2, False, False, nth_sel))
|
|
722
|
+
elif pseudo_sel == ':nth-last-child':
|
|
723
|
+
sel.nth.append(ct.SelectorNth(s1, var, s2, False, True, nth_sel))
|
|
724
|
+
else:
|
|
725
|
+
if pseudo_sel == ':nth-of-type':
|
|
726
|
+
sel.nth.append(ct.SelectorNth(s1, var, s2, True, False, ct.SelectorList()))
|
|
727
|
+
elif pseudo_sel == ':nth-last-of-type':
|
|
728
|
+
sel.nth.append(ct.SelectorNth(s1, var, s2, True, True, ct.SelectorList()))
|
|
729
|
+
has_selector = True
|
|
730
|
+
return has_selector
|
|
731
|
+
|
|
732
|
+
def parse_pseudo_open(
|
|
733
|
+
self,
|
|
734
|
+
sel: _Selector,
|
|
735
|
+
name: str,
|
|
736
|
+
has_selector: bool,
|
|
737
|
+
iselector: Iterator[tuple[str, Match[str]]],
|
|
738
|
+
index: int
|
|
739
|
+
) -> bool:
|
|
740
|
+
"""Parse pseudo with opening bracket."""
|
|
741
|
+
|
|
742
|
+
flags = FLG_PSEUDO | FLG_OPEN
|
|
743
|
+
if name == ':not':
|
|
744
|
+
flags |= FLG_NOT
|
|
745
|
+
elif name == ':has':
|
|
746
|
+
flags |= FLG_RELATIVE
|
|
747
|
+
elif name in (':where', ':is'):
|
|
748
|
+
flags |= FLG_FORGIVE
|
|
749
|
+
|
|
750
|
+
sel.selectors.append(self.parse_selectors(iselector, index, flags))
|
|
751
|
+
has_selector = True
|
|
752
|
+
|
|
753
|
+
return has_selector
|
|
754
|
+
|
|
755
|
+
def parse_has_combinator(
|
|
756
|
+
self,
|
|
757
|
+
sel: _Selector,
|
|
758
|
+
m: Match[str],
|
|
759
|
+
has_selector: bool,
|
|
760
|
+
selectors: list[_Selector],
|
|
761
|
+
rel_type: str,
|
|
762
|
+
index: int
|
|
763
|
+
) -> tuple[bool, _Selector, str]:
|
|
764
|
+
"""Parse combinator tokens."""
|
|
765
|
+
|
|
766
|
+
combinator = m.group('relation').strip()
|
|
767
|
+
if not combinator:
|
|
768
|
+
combinator = WS_COMBINATOR
|
|
769
|
+
if combinator == COMMA_COMBINATOR:
|
|
770
|
+
sel.rel_type = rel_type
|
|
771
|
+
selectors[-1].relations.append(sel)
|
|
772
|
+
rel_type = ":" + WS_COMBINATOR
|
|
773
|
+
selectors.append(_Selector())
|
|
774
|
+
else:
|
|
775
|
+
if has_selector:
|
|
776
|
+
# End the current selector and associate the leading combinator with this selector.
|
|
777
|
+
sel.rel_type = rel_type
|
|
778
|
+
selectors[-1].relations.append(sel)
|
|
779
|
+
elif rel_type[1:] != WS_COMBINATOR:
|
|
780
|
+
# It's impossible to have two whitespace combinators after each other as the patterns
|
|
781
|
+
# will gobble up trailing whitespace. It is also impossible to have a whitespace
|
|
782
|
+
# combinator after any other kind for the same reason. But we could have
|
|
783
|
+
# multiple non-whitespace combinators. So if the current combinator is not a whitespace,
|
|
784
|
+
# then we've hit the multiple combinator case, so we should fail.
|
|
785
|
+
raise SelectorSyntaxError(
|
|
786
|
+
f'The multiple combinators at position {index}',
|
|
787
|
+
self.pattern,
|
|
788
|
+
index
|
|
789
|
+
)
|
|
790
|
+
|
|
791
|
+
# Set the leading combinator for the next selector.
|
|
792
|
+
rel_type = ':' + combinator
|
|
793
|
+
|
|
794
|
+
sel = _Selector()
|
|
795
|
+
has_selector = False
|
|
796
|
+
return has_selector, sel, rel_type
|
|
797
|
+
|
|
798
|
+
def parse_combinator(
|
|
799
|
+
self,
|
|
800
|
+
sel: _Selector,
|
|
801
|
+
m: Match[str],
|
|
802
|
+
has_selector: bool,
|
|
803
|
+
selectors: list[_Selector],
|
|
804
|
+
relations: list[_Selector],
|
|
805
|
+
is_pseudo: bool,
|
|
806
|
+
is_forgive: bool,
|
|
807
|
+
index: int
|
|
808
|
+
) -> tuple[bool, _Selector]:
|
|
809
|
+
"""Parse combinator tokens."""
|
|
810
|
+
|
|
811
|
+
combinator = m.group('relation').strip()
|
|
812
|
+
if not combinator:
|
|
813
|
+
combinator = WS_COMBINATOR
|
|
814
|
+
if not has_selector:
|
|
815
|
+
if not is_forgive or combinator != COMMA_COMBINATOR:
|
|
816
|
+
raise SelectorSyntaxError(
|
|
817
|
+
f"The combinator '{combinator}' at position {index}, must have a selector before it",
|
|
818
|
+
self.pattern,
|
|
819
|
+
index
|
|
820
|
+
)
|
|
821
|
+
|
|
822
|
+
# If we are in a forgiving pseudo class, just make the selector a "no match"
|
|
823
|
+
if combinator == COMMA_COMBINATOR:
|
|
824
|
+
sel.no_match = True
|
|
825
|
+
del relations[:]
|
|
826
|
+
selectors.append(sel)
|
|
827
|
+
else:
|
|
828
|
+
if combinator == COMMA_COMBINATOR:
|
|
829
|
+
if not sel.tag and not is_pseudo:
|
|
830
|
+
# Implied `*`
|
|
831
|
+
sel.tag = ct.SelectorTag('*', None)
|
|
832
|
+
sel.relations.extend(relations)
|
|
833
|
+
selectors.append(sel)
|
|
834
|
+
del relations[:]
|
|
835
|
+
else:
|
|
836
|
+
sel.relations.extend(relations)
|
|
837
|
+
sel.rel_type = combinator
|
|
838
|
+
del relations[:]
|
|
839
|
+
relations.append(sel)
|
|
840
|
+
|
|
841
|
+
sel = _Selector()
|
|
842
|
+
has_selector = False
|
|
843
|
+
|
|
844
|
+
return has_selector, sel
|
|
845
|
+
|
|
846
|
+
def parse_class_id(self, sel: _Selector, m: Match[str], has_selector: bool) -> bool:
|
|
847
|
+
"""Parse HTML classes and ids."""
|
|
848
|
+
|
|
849
|
+
selector = m.group(0)
|
|
850
|
+
if selector.startswith('.'):
|
|
851
|
+
sel.classes.append(css_unescape(selector[1:]))
|
|
852
|
+
else:
|
|
853
|
+
sel.ids.append(css_unescape(selector[1:]))
|
|
854
|
+
has_selector = True
|
|
855
|
+
return has_selector
|
|
856
|
+
|
|
857
|
+
def parse_pseudo_contains(self, sel: _Selector, m: Match[str], has_selector: bool) -> bool:
|
|
858
|
+
"""Parse contains."""
|
|
859
|
+
|
|
860
|
+
pseudo = util.lower(css_unescape(m.group('name')))
|
|
861
|
+
if pseudo == ":contains":
|
|
862
|
+
warnings.warn( # noqa: B028
|
|
863
|
+
"The pseudo class ':contains' is deprecated, ':-soup-contains' should be used moving forward.",
|
|
864
|
+
FutureWarning
|
|
865
|
+
)
|
|
866
|
+
contains_own = pseudo == ":-soup-contains-own"
|
|
867
|
+
values = css_unescape(m.group('values'))
|
|
868
|
+
patterns = []
|
|
869
|
+
for token in RE_VALUES.finditer(values):
|
|
870
|
+
if token.group('split'):
|
|
871
|
+
continue
|
|
872
|
+
value = token.group('value')
|
|
873
|
+
if value.startswith(("'", '"')):
|
|
874
|
+
value = css_unescape(value[1:-1], True)
|
|
875
|
+
else:
|
|
876
|
+
value = css_unescape(value)
|
|
877
|
+
patterns.append(value)
|
|
878
|
+
sel.contains.append(ct.SelectorContains(patterns, contains_own))
|
|
879
|
+
has_selector = True
|
|
880
|
+
return has_selector
|
|
881
|
+
|
|
882
|
+
def parse_pseudo_lang(self, sel: _Selector, m: Match[str], has_selector: bool) -> bool:
|
|
883
|
+
"""Parse pseudo language."""
|
|
884
|
+
|
|
885
|
+
values = m.group('values')
|
|
886
|
+
patterns = []
|
|
887
|
+
for token in RE_VALUES.finditer(values):
|
|
888
|
+
if token.group('split'):
|
|
889
|
+
continue
|
|
890
|
+
value = token.group('value')
|
|
891
|
+
if value.startswith(('"', "'")):
|
|
892
|
+
value = css_unescape(value[1:-1], True)
|
|
893
|
+
else:
|
|
894
|
+
value = css_unescape(value)
|
|
895
|
+
|
|
896
|
+
patterns.append(value)
|
|
897
|
+
|
|
898
|
+
sel.lang.append(ct.SelectorLang(patterns))
|
|
899
|
+
has_selector = True
|
|
900
|
+
|
|
901
|
+
return has_selector
|
|
902
|
+
|
|
903
|
+
def parse_pseudo_dir(self, sel: _Selector, m: Match[str], has_selector: bool) -> bool:
|
|
904
|
+
"""Parse pseudo direction."""
|
|
905
|
+
|
|
906
|
+
value = ct.SEL_DIR_LTR if util.lower(m.group('dir')) == 'ltr' else ct.SEL_DIR_RTL
|
|
907
|
+
sel.flags |= value
|
|
908
|
+
has_selector = True
|
|
909
|
+
return has_selector
|
|
910
|
+
|
|
911
|
+
def parse_selectors(
|
|
912
|
+
self,
|
|
913
|
+
iselector: Iterator[tuple[str, Match[str]]],
|
|
914
|
+
index: int = 0,
|
|
915
|
+
flags: int = 0
|
|
916
|
+
) -> ct.SelectorList:
|
|
917
|
+
"""Parse selectors."""
|
|
918
|
+
|
|
919
|
+
# Initialize important variables
|
|
920
|
+
sel = _Selector()
|
|
921
|
+
selectors = []
|
|
922
|
+
has_selector = False
|
|
923
|
+
closed = False
|
|
924
|
+
relations = [] # type: list[_Selector]
|
|
925
|
+
rel_type = ":" + WS_COMBINATOR
|
|
926
|
+
|
|
927
|
+
# Setup various flags
|
|
928
|
+
is_open = bool(flags & FLG_OPEN)
|
|
929
|
+
is_pseudo = bool(flags & FLG_PSEUDO)
|
|
930
|
+
is_relative = bool(flags & FLG_RELATIVE)
|
|
931
|
+
is_not = bool(flags & FLG_NOT)
|
|
932
|
+
is_html = bool(flags & FLG_HTML)
|
|
933
|
+
is_default = bool(flags & FLG_DEFAULT)
|
|
934
|
+
is_indeterminate = bool(flags & FLG_INDETERMINATE)
|
|
935
|
+
is_in_range = bool(flags & FLG_IN_RANGE)
|
|
936
|
+
is_out_of_range = bool(flags & FLG_OUT_OF_RANGE)
|
|
937
|
+
is_placeholder_shown = bool(flags & FLG_PLACEHOLDER_SHOWN)
|
|
938
|
+
is_forgive = bool(flags & FLG_FORGIVE)
|
|
939
|
+
|
|
940
|
+
# Print out useful debug stuff
|
|
941
|
+
if self.debug: # pragma: no cover
|
|
942
|
+
if is_pseudo:
|
|
943
|
+
print(' is_pseudo: True')
|
|
944
|
+
if is_open:
|
|
945
|
+
print(' is_open: True')
|
|
946
|
+
if is_relative:
|
|
947
|
+
print(' is_relative: True')
|
|
948
|
+
if is_not:
|
|
949
|
+
print(' is_not: True')
|
|
950
|
+
if is_html:
|
|
951
|
+
print(' is_html: True')
|
|
952
|
+
if is_default:
|
|
953
|
+
print(' is_default: True')
|
|
954
|
+
if is_indeterminate:
|
|
955
|
+
print(' is_indeterminate: True')
|
|
956
|
+
if is_in_range:
|
|
957
|
+
print(' is_in_range: True')
|
|
958
|
+
if is_out_of_range:
|
|
959
|
+
print(' is_out_of_range: True')
|
|
960
|
+
if is_placeholder_shown:
|
|
961
|
+
print(' is_placeholder_shown: True')
|
|
962
|
+
if is_forgive:
|
|
963
|
+
print(' is_forgive: True')
|
|
964
|
+
|
|
965
|
+
# The algorithm for relative selectors require an initial selector in the selector list
|
|
966
|
+
if is_relative:
|
|
967
|
+
selectors.append(_Selector())
|
|
968
|
+
|
|
969
|
+
try:
|
|
970
|
+
while True:
|
|
971
|
+
key, m = next(iselector)
|
|
972
|
+
|
|
973
|
+
# Handle parts
|
|
974
|
+
if key == "at_rule":
|
|
975
|
+
raise NotImplementedError(f"At-rules found at position {m.start(0)}")
|
|
976
|
+
elif key == "amp":
|
|
977
|
+
sel.flags |= ct.SEL_SCOPE
|
|
978
|
+
has_selector = True
|
|
979
|
+
elif key == 'pseudo_class_custom':
|
|
980
|
+
has_selector = self.parse_pseudo_class_custom(sel, m, has_selector)
|
|
981
|
+
elif key == 'pseudo_class':
|
|
982
|
+
has_selector, is_html = self.parse_pseudo_class(sel, m, has_selector, iselector, is_html)
|
|
983
|
+
elif key == 'pseudo_element':
|
|
984
|
+
raise NotImplementedError(f"Pseudo-element found at position {m.start(0)}")
|
|
985
|
+
elif key == 'pseudo_contains':
|
|
986
|
+
has_selector = self.parse_pseudo_contains(sel, m, has_selector)
|
|
987
|
+
elif key in ('pseudo_nth_type', 'pseudo_nth_child'):
|
|
988
|
+
has_selector = self.parse_pseudo_nth(sel, m, has_selector, iselector)
|
|
989
|
+
elif key == 'pseudo_lang':
|
|
990
|
+
has_selector = self.parse_pseudo_lang(sel, m, has_selector)
|
|
991
|
+
elif key == 'pseudo_dir':
|
|
992
|
+
has_selector = self.parse_pseudo_dir(sel, m, has_selector)
|
|
993
|
+
# Currently only supports HTML
|
|
994
|
+
is_html = True
|
|
995
|
+
elif key == 'pseudo_close':
|
|
996
|
+
if not has_selector:
|
|
997
|
+
if not is_forgive:
|
|
998
|
+
raise SelectorSyntaxError(
|
|
999
|
+
f"Expected a selector at position {m.start(0)}",
|
|
1000
|
+
self.pattern,
|
|
1001
|
+
m.start(0)
|
|
1002
|
+
)
|
|
1003
|
+
sel.no_match = True
|
|
1004
|
+
if is_open:
|
|
1005
|
+
closed = True
|
|
1006
|
+
break
|
|
1007
|
+
else:
|
|
1008
|
+
raise SelectorSyntaxError(
|
|
1009
|
+
f"Unmatched pseudo-class close at position {m.start(0)}",
|
|
1010
|
+
self.pattern,
|
|
1011
|
+
m.start(0)
|
|
1012
|
+
)
|
|
1013
|
+
elif key == 'combine':
|
|
1014
|
+
if is_relative:
|
|
1015
|
+
has_selector, sel, rel_type = self.parse_has_combinator(
|
|
1016
|
+
sel, m, has_selector, selectors, rel_type, index
|
|
1017
|
+
)
|
|
1018
|
+
else:
|
|
1019
|
+
has_selector, sel = self.parse_combinator(
|
|
1020
|
+
sel, m, has_selector, selectors, relations, is_pseudo, is_forgive, index
|
|
1021
|
+
)
|
|
1022
|
+
elif key == 'attribute':
|
|
1023
|
+
has_selector = self.parse_attribute_selector(sel, m, has_selector)
|
|
1024
|
+
elif key == 'tag':
|
|
1025
|
+
if has_selector:
|
|
1026
|
+
raise SelectorSyntaxError(
|
|
1027
|
+
f"Tag name found at position {m.start(0)} instead of at the start",
|
|
1028
|
+
self.pattern,
|
|
1029
|
+
m.start(0)
|
|
1030
|
+
)
|
|
1031
|
+
has_selector = self.parse_tag_pattern(sel, m, has_selector)
|
|
1032
|
+
elif key in ('class', 'id'):
|
|
1033
|
+
has_selector = self.parse_class_id(sel, m, has_selector)
|
|
1034
|
+
|
|
1035
|
+
index = m.end(0)
|
|
1036
|
+
except StopIteration:
|
|
1037
|
+
pass
|
|
1038
|
+
|
|
1039
|
+
# Handle selectors that are not closed
|
|
1040
|
+
if is_open and not closed:
|
|
1041
|
+
raise SelectorSyntaxError(
|
|
1042
|
+
f"Unclosed pseudo-class at position {index}",
|
|
1043
|
+
self.pattern,
|
|
1044
|
+
index
|
|
1045
|
+
)
|
|
1046
|
+
|
|
1047
|
+
# Cleanup completed selector piece
|
|
1048
|
+
if has_selector:
|
|
1049
|
+
if not sel.tag and not is_pseudo:
|
|
1050
|
+
# Implied `*`
|
|
1051
|
+
sel.tag = ct.SelectorTag('*', None)
|
|
1052
|
+
if is_relative:
|
|
1053
|
+
sel.rel_type = rel_type
|
|
1054
|
+
selectors[-1].relations.append(sel)
|
|
1055
|
+
else:
|
|
1056
|
+
sel.relations.extend(relations)
|
|
1057
|
+
del relations[:]
|
|
1058
|
+
selectors.append(sel)
|
|
1059
|
+
|
|
1060
|
+
# Forgive empty slots in pseudo-classes that have lists (and are forgiving)
|
|
1061
|
+
elif is_forgive and (not selectors or not relations):
|
|
1062
|
+
# Handle normal pseudo-classes with empty slots like `:is()` etc.
|
|
1063
|
+
sel.no_match = True
|
|
1064
|
+
del relations[:]
|
|
1065
|
+
selectors.append(sel)
|
|
1066
|
+
has_selector = True
|
|
1067
|
+
|
|
1068
|
+
if not has_selector:
|
|
1069
|
+
# We will always need to finish a selector when `:has()` is used as it leads with combining.
|
|
1070
|
+
# May apply to others as well.
|
|
1071
|
+
raise SelectorSyntaxError(
|
|
1072
|
+
f'Expected a selector at position {index}',
|
|
1073
|
+
self.pattern,
|
|
1074
|
+
index
|
|
1075
|
+
)
|
|
1076
|
+
|
|
1077
|
+
# Some patterns require additional logic, such as default. We try to make these the
|
|
1078
|
+
# last pattern, and append the appropriate flag to that selector which communicates
|
|
1079
|
+
# to the matcher what additional logic is required.
|
|
1080
|
+
if is_default:
|
|
1081
|
+
selectors[-1].flags = ct.SEL_DEFAULT
|
|
1082
|
+
if is_indeterminate:
|
|
1083
|
+
selectors[-1].flags = ct.SEL_INDETERMINATE
|
|
1084
|
+
if is_in_range:
|
|
1085
|
+
selectors[-1].flags = ct.SEL_IN_RANGE
|
|
1086
|
+
if is_out_of_range:
|
|
1087
|
+
selectors[-1].flags = ct.SEL_OUT_OF_RANGE
|
|
1088
|
+
if is_placeholder_shown:
|
|
1089
|
+
selectors[-1].flags = ct.SEL_PLACEHOLDER_SHOWN
|
|
1090
|
+
|
|
1091
|
+
# Return selector list
|
|
1092
|
+
return ct.SelectorList([s.freeze() for s in selectors], is_not, is_html)
|
|
1093
|
+
|
|
1094
|
+
def selector_iter(self, pattern: str) -> Iterator[tuple[str, Match[str]]]:
|
|
1095
|
+
"""Iterate selector tokens."""
|
|
1096
|
+
|
|
1097
|
+
# Ignore whitespace and comments at start and end of pattern
|
|
1098
|
+
m = RE_WS_BEGIN.search(pattern)
|
|
1099
|
+
index = m.end(0) if m else 0
|
|
1100
|
+
m = RE_WS_END.search(pattern)
|
|
1101
|
+
end = (m.start(0) - 1) if m else (len(pattern) - 1)
|
|
1102
|
+
|
|
1103
|
+
if self.debug: # pragma: no cover
|
|
1104
|
+
print(f'## PARSING: {pattern!r}')
|
|
1105
|
+
while index <= end:
|
|
1106
|
+
m = None
|
|
1107
|
+
for v in self.css_tokens:
|
|
1108
|
+
m = v.match(pattern, index, self.flags)
|
|
1109
|
+
if m:
|
|
1110
|
+
name = v.get_name()
|
|
1111
|
+
if self.debug: # pragma: no cover
|
|
1112
|
+
print(f"TOKEN: '{name}' --> {m.group(0)!r} at position {m.start(0)}")
|
|
1113
|
+
index = m.end(0)
|
|
1114
|
+
yield name, m
|
|
1115
|
+
break
|
|
1116
|
+
if m is None:
|
|
1117
|
+
c = pattern[index]
|
|
1118
|
+
# If the character represents the start of one of the known selector types,
|
|
1119
|
+
# throw an exception mentioning that the known selector type is in error;
|
|
1120
|
+
# otherwise, report the invalid character.
|
|
1121
|
+
if c == '[':
|
|
1122
|
+
msg = f"Malformed attribute selector at position {index}"
|
|
1123
|
+
elif c == '.':
|
|
1124
|
+
msg = f"Malformed class selector at position {index}"
|
|
1125
|
+
elif c == '#':
|
|
1126
|
+
msg = f"Malformed id selector at position {index}"
|
|
1127
|
+
elif c == ':':
|
|
1128
|
+
msg = f"Malformed pseudo-class selector at position {index}"
|
|
1129
|
+
else:
|
|
1130
|
+
msg = f"Invalid character {c!r} position {index}"
|
|
1131
|
+
raise SelectorSyntaxError(msg, self.pattern, index)
|
|
1132
|
+
if self.debug: # pragma: no cover
|
|
1133
|
+
print('## END PARSING')
|
|
1134
|
+
|
|
1135
|
+
def process_selectors(self, index: int = 0, flags: int = 0) -> ct.SelectorList:
|
|
1136
|
+
"""Process selectors."""
|
|
1137
|
+
|
|
1138
|
+
return self.parse_selectors(self.selector_iter(self.pattern), index, flags)
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
# Precompile CSS selector lists for pseudo-classes (additional logic may be required beyond the pattern)
|
|
1142
|
+
# A few patterns are order dependent as they use patterns previous compiled.
|
|
1143
|
+
|
|
1144
|
+
# CSS pattern for `:link` and `:any-link`
|
|
1145
|
+
CSS_LINK = CSSParser(
|
|
1146
|
+
'html|*:is(a, area)[href]'
|
|
1147
|
+
).process_selectors(flags=FLG_PSEUDO | FLG_HTML)
|
|
1148
|
+
# CSS pattern for `:checked`
|
|
1149
|
+
CSS_CHECKED = CSSParser(
|
|
1150
|
+
'''
|
|
1151
|
+
html|*:is(input[type=checkbox], input[type=radio])[checked], html|option[selected]
|
|
1152
|
+
'''
|
|
1153
|
+
).process_selectors(flags=FLG_PSEUDO | FLG_HTML)
|
|
1154
|
+
# CSS pattern for `:default` (must compile CSS_CHECKED first)
|
|
1155
|
+
CSS_DEFAULT = CSSParser(
|
|
1156
|
+
'''
|
|
1157
|
+
:checked,
|
|
1158
|
+
|
|
1159
|
+
/*
|
|
1160
|
+
This pattern must be at the end.
|
|
1161
|
+
Special logic is applied to the last selector.
|
|
1162
|
+
*/
|
|
1163
|
+
html|form html|*:is(button, input)[type="submit"]
|
|
1164
|
+
'''
|
|
1165
|
+
).process_selectors(flags=FLG_PSEUDO | FLG_HTML | FLG_DEFAULT)
|
|
1166
|
+
# CSS pattern for `:indeterminate`
|
|
1167
|
+
CSS_INDETERMINATE = CSSParser(
|
|
1168
|
+
'''
|
|
1169
|
+
html|input[type="checkbox"][indeterminate],
|
|
1170
|
+
html|input[type="radio"]:is(:not([name]), [name=""]):not([checked]),
|
|
1171
|
+
html|progress:not([value]),
|
|
1172
|
+
|
|
1173
|
+
/*
|
|
1174
|
+
This pattern must be at the end.
|
|
1175
|
+
Special logic is applied to the last selector.
|
|
1176
|
+
*/
|
|
1177
|
+
html|input[type="radio"][name]:not([name='']):not([checked])
|
|
1178
|
+
'''
|
|
1179
|
+
).process_selectors(flags=FLG_PSEUDO | FLG_HTML | FLG_INDETERMINATE)
|
|
1180
|
+
# CSS pattern for `:disabled`
|
|
1181
|
+
CSS_DISABLED = CSSParser(
|
|
1182
|
+
'''
|
|
1183
|
+
html|*:is(input:not([type=hidden]), button, select, textarea, fieldset, optgroup, option, fieldset)[disabled],
|
|
1184
|
+
html|optgroup[disabled] > html|option,
|
|
1185
|
+
html|fieldset[disabled] > html|*:is(input:not([type=hidden]), button, select, textarea, fieldset),
|
|
1186
|
+
html|fieldset[disabled] >
|
|
1187
|
+
html|*:not(legend:nth-of-type(1)) html|*:is(input:not([type=hidden]), button, select, textarea, fieldset)
|
|
1188
|
+
'''
|
|
1189
|
+
).process_selectors(flags=FLG_PSEUDO | FLG_HTML)
|
|
1190
|
+
# CSS pattern for `:enabled`
|
|
1191
|
+
CSS_ENABLED = CSSParser(
|
|
1192
|
+
'''
|
|
1193
|
+
html|*:is(input:not([type=hidden]), button, select, textarea, fieldset, optgroup, option, fieldset):not(:disabled)
|
|
1194
|
+
'''
|
|
1195
|
+
).process_selectors(flags=FLG_PSEUDO | FLG_HTML)
|
|
1196
|
+
# CSS pattern for `:required`
|
|
1197
|
+
CSS_REQUIRED = CSSParser(
|
|
1198
|
+
'html|*:is(input, textarea, select)[required]'
|
|
1199
|
+
).process_selectors(flags=FLG_PSEUDO | FLG_HTML)
|
|
1200
|
+
# CSS pattern for `:optional`
|
|
1201
|
+
CSS_OPTIONAL = CSSParser(
|
|
1202
|
+
'html|*:is(input, textarea, select):not([required])'
|
|
1203
|
+
).process_selectors(flags=FLG_PSEUDO | FLG_HTML)
|
|
1204
|
+
# CSS pattern for `:placeholder-shown`
|
|
1205
|
+
CSS_PLACEHOLDER_SHOWN = CSSParser(
|
|
1206
|
+
'''
|
|
1207
|
+
html|input:is(
|
|
1208
|
+
:not([type]),
|
|
1209
|
+
[type=""],
|
|
1210
|
+
[type=text],
|
|
1211
|
+
[type=search],
|
|
1212
|
+
[type=url],
|
|
1213
|
+
[type=tel],
|
|
1214
|
+
[type=email],
|
|
1215
|
+
[type=password],
|
|
1216
|
+
[type=number]
|
|
1217
|
+
)[placeholder]:not([placeholder='']):is(:not([value]), [value=""]),
|
|
1218
|
+
html|textarea[placeholder]:not([placeholder=''])
|
|
1219
|
+
'''
|
|
1220
|
+
).process_selectors(flags=FLG_PSEUDO | FLG_HTML | FLG_PLACEHOLDER_SHOWN)
|
|
1221
|
+
# CSS pattern default for `:nth-child` "of S" feature
|
|
1222
|
+
CSS_NTH_OF_S_DEFAULT = CSSParser(
|
|
1223
|
+
'*|*'
|
|
1224
|
+
).process_selectors(flags=FLG_PSEUDO)
|
|
1225
|
+
# CSS pattern for `:read-write` (CSS_DISABLED must be compiled first)
|
|
1226
|
+
CSS_READ_WRITE = CSSParser(
|
|
1227
|
+
'''
|
|
1228
|
+
html|*:is(
|
|
1229
|
+
textarea,
|
|
1230
|
+
input:is(
|
|
1231
|
+
:not([type]),
|
|
1232
|
+
[type=""],
|
|
1233
|
+
[type=text],
|
|
1234
|
+
[type=search],
|
|
1235
|
+
[type=url],
|
|
1236
|
+
[type=tel],
|
|
1237
|
+
[type=email],
|
|
1238
|
+
[type=number],
|
|
1239
|
+
[type=password],
|
|
1240
|
+
[type=date],
|
|
1241
|
+
[type=datetime-local],
|
|
1242
|
+
[type=month],
|
|
1243
|
+
[type=time],
|
|
1244
|
+
[type=week]
|
|
1245
|
+
)
|
|
1246
|
+
):not([readonly], :disabled),
|
|
1247
|
+
html|*:is([contenteditable=""], [contenteditable="true" i])
|
|
1248
|
+
'''
|
|
1249
|
+
).process_selectors(flags=FLG_PSEUDO | FLG_HTML)
|
|
1250
|
+
# CSS pattern for `:read-only`
|
|
1251
|
+
CSS_READ_ONLY = CSSParser(
|
|
1252
|
+
'''
|
|
1253
|
+
html|*:not(:read-write)
|
|
1254
|
+
'''
|
|
1255
|
+
).process_selectors(flags=FLG_PSEUDO | FLG_HTML)
|
|
1256
|
+
# CSS pattern for `:in-range`
|
|
1257
|
+
CSS_IN_RANGE = CSSParser(
|
|
1258
|
+
'''
|
|
1259
|
+
html|input:is(
|
|
1260
|
+
[type="date"],
|
|
1261
|
+
[type="month"],
|
|
1262
|
+
[type="week"],
|
|
1263
|
+
[type="time"],
|
|
1264
|
+
[type="datetime-local"],
|
|
1265
|
+
[type="number"],
|
|
1266
|
+
[type="range"]
|
|
1267
|
+
):is(
|
|
1268
|
+
[min],
|
|
1269
|
+
[max]
|
|
1270
|
+
)
|
|
1271
|
+
'''
|
|
1272
|
+
).process_selectors(flags=FLG_PSEUDO | FLG_IN_RANGE | FLG_HTML)
|
|
1273
|
+
# CSS pattern for `:out-of-range`
|
|
1274
|
+
CSS_OUT_OF_RANGE = CSSParser(
|
|
1275
|
+
'''
|
|
1276
|
+
html|input:is(
|
|
1277
|
+
[type="date"],
|
|
1278
|
+
[type="month"],
|
|
1279
|
+
[type="week"],
|
|
1280
|
+
[type="time"],
|
|
1281
|
+
[type="datetime-local"],
|
|
1282
|
+
[type="number"],
|
|
1283
|
+
[type="range"]
|
|
1284
|
+
):is(
|
|
1285
|
+
[min],
|
|
1286
|
+
[max]
|
|
1287
|
+
)
|
|
1288
|
+
'''
|
|
1289
|
+
).process_selectors(flags=FLG_PSEUDO | FLG_OUT_OF_RANGE | FLG_HTML)
|