diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich-15.0.0.dist-info/METADATA b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich-15.0.0.dist-info/METADATA
new file mode 100644
index 0000000000000000000000000000000000000000..574ddfb0ed75fea2532f0c08ad5a00059414ce6d
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich-15.0.0.dist-info/METADATA
@@ -0,0 +1,479 @@
+Metadata-Version: 2.4
+Name: rich
+Version: 15.0.0
+Summary: Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal
+License: MIT
+License-File: LICENSE
+Author: Will McGugan
+Author-email: willmcgugan@gmail.com
+Requires-Python: >=3.9.0
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: Environment :: Console
+Classifier: Framework :: IPython
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Operating System :: MacOS
+Classifier: Operating System :: Microsoft :: Windows
+Classifier: Operating System :: POSIX :: Linux
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
+Classifier: Programming Language :: Python :: 3.12
+Classifier: Programming Language :: Python :: 3.13
+Classifier: Programming Language :: Python :: 3.14
+Classifier: Typing :: Typed
+Provides-Extra: jupyter
+Requires-Dist: ipywidgets (>=7.5.1,<9) ; extra == "jupyter"
+Requires-Dist: markdown-it-py (>=2.2.0)
+Requires-Dist: pygments (>=2.13.0,<3.0.0)
+Project-URL: Documentation, https://rich.readthedocs.io/en/latest/
+Project-URL: Homepage, https://github.com/Textualize/rich
+Description-Content-Type: text/markdown
+
+[](https://pypi.org/project/rich/) [](https://badge.fury.io/py/rich)
+
+[](https://pepy.tech/project/rich)
+[](https://codecov.io/gh/Textualize/rich)
+[](https://www.willmcgugan.com/tag/rich/)
+[](https://twitter.com/willmcgugan)
+
+
+
+[English readme](https://github.com/textualize/rich/blob/master/README.md)
+ • [简体中文 readme](https://github.com/textualize/rich/blob/master/README.cn.md)
+ • [正體中文 readme](https://github.com/textualize/rich/blob/master/README.zh-tw.md)
+ • [Lengua española readme](https://github.com/textualize/rich/blob/master/README.es.md)
+ • [Deutsche readme](https://github.com/textualize/rich/blob/master/README.de.md)
+ • [Läs på svenska](https://github.com/textualize/rich/blob/master/README.sv.md)
+ • [日本語 readme](https://github.com/textualize/rich/blob/master/README.ja.md)
+ • [한국어 readme](https://github.com/textualize/rich/blob/master/README.kr.md)
+ • [Français readme](https://github.com/textualize/rich/blob/master/README.fr.md)
+ • [Schwizerdütsch readme](https://github.com/textualize/rich/blob/master/README.de-ch.md)
+ • [हिन्दी readme](https://github.com/textualize/rich/blob/master/README.hi.md)
+ • [Português brasileiro readme](https://github.com/textualize/rich/blob/master/README.pt-br.md)
+ • [Italian readme](https://github.com/textualize/rich/blob/master/README.it.md)
+ • [Русский readme](https://github.com/textualize/rich/blob/master/README.ru.md)
+ • [Indonesian readme](https://github.com/textualize/rich/blob/master/README.id.md)
+ • [فارسی readme](https://github.com/textualize/rich/blob/master/README.fa.md)
+ • [Türkçe readme](https://github.com/textualize/rich/blob/master/README.tr.md)
+ • [Polskie readme](https://github.com/textualize/rich/blob/master/README.pl.md)
+
+
+Rich is a Python library for _rich_ text and beautiful formatting in the terminal.
+
+The [Rich API](https://rich.readthedocs.io/en/latest/) makes it easy to add color and style to terminal output. Rich can also render pretty tables, progress bars, markdown, syntax highlighted source code, tracebacks, and more — out of the box.
+
+
+
+For a video introduction to Rich see [calmcode.io](https://calmcode.io/rich/introduction.html) by [@fishnets88](https://twitter.com/fishnets88).
+
+See what [people are saying about Rich](https://www.willmcgugan.com/blog/pages/post/rich-tweets/).
+
+## Compatibility
+
+Rich works with Linux, macOS and Windows. True color / emoji works with new Windows Terminal, classic terminal is limited to 16 colors. Rich requires Python 3.8 or later.
+
+Rich works with [Jupyter notebooks](https://jupyter.org/) with no additional configuration required.
+
+## Installing
+
+Install with `pip` or your favorite PyPI package manager.
+
+```sh
+python -m pip install rich
+```
+
+Run the following to test Rich output on your terminal:
+
+```sh
+python -m rich
+```
+
+## Rich Print
+
+To effortlessly add rich output to your application, you can import the [rich print](https://rich.readthedocs.io/en/latest/introduction.html#quick-start) method, which has the same signature as the builtin Python function. Try this:
+
+```python
+from rich import print
+
+print("Hello, [bold magenta]World[/bold magenta]!", ":vampire:", locals())
+```
+
+
+
+## Rich REPL
+
+Rich can be installed in the Python REPL, so that any data structures will be pretty printed and highlighted.
+
+```python
+>>> from rich import pretty
+>>> pretty.install()
+```
+
+
+
+## Using the Console
+
+For more control over rich terminal content, import and construct a [Console](https://rich.readthedocs.io/en/latest/reference/console.html#rich.console.Console) object.
+
+```python
+from rich.console import Console
+
+console = Console()
+```
+
+The Console object has a `print` method which has an intentionally similar interface to the builtin `print` function. Here's an example of use:
+
+```python
+console.print("Hello", "World!")
+```
+
+As you might expect, this will print `"Hello World!"` to the terminal. Note that unlike the builtin `print` function, Rich will word-wrap your text to fit within the terminal width.
+
+There are a few ways of adding color and style to your output. You can set a style for the entire output by adding a `style` keyword argument. Here's an example:
+
+```python
+console.print("Hello", "World!", style="bold red")
+```
+
+The output will be something like the following:
+
+
+
+That's fine for styling a line of text at a time. For more finely grained styling, Rich renders a special markup which is similar in syntax to [bbcode](https://en.wikipedia.org/wiki/BBCode). Here's an example:
+
+```python
+console.print("Where there is a [bold cyan]Will[/bold cyan] there [u]is[/u] a [i]way[/i].")
+```
+
+
+
+You can use a Console object to generate sophisticated output with minimal effort. See the [Console API](https://rich.readthedocs.io/en/latest/console.html) docs for details.
+
+## Rich Inspect
+
+Rich has an [inspect](https://rich.readthedocs.io/en/latest/reference/init.html?highlight=inspect#rich.inspect) function which can produce a report on any Python object, such as class, instance, or builtin.
+
+```python
+>>> my_list = ["foo", "bar"]
+>>> from rich import inspect
+>>> inspect(my_list, methods=True)
+```
+
+
+
+See the [inspect docs](https://rich.readthedocs.io/en/latest/reference/init.html#rich.inspect) for details.
+
+# Rich Library
+
+Rich contains a number of builtin _renderables_ you can use to create elegant output in your CLI and help you debug your code.
+
+Click the following headings for details:
+
+
+Log
+
+The Console object has a `log()` method which has a similar interface to `print()`, but also renders a column for the current time and the file and line which made the call. By default Rich will do syntax highlighting for Python structures and for repr strings. If you log a collection (i.e. a dict or a list) Rich will pretty print it so that it fits in the available space. Here's an example of some of these features.
+
+```python
+from rich.console import Console
+console = Console()
+
+test_data = [
+ {"jsonrpc": "2.0", "method": "sum", "params": [None, 1, 2, 4, False, True], "id": "1",},
+ {"jsonrpc": "2.0", "method": "notify_hello", "params": [7]},
+ {"jsonrpc": "2.0", "method": "subtract", "params": [42, 23], "id": "2"},
+]
+
+def test_log():
+ enabled = False
+ context = {
+ "foo": "bar",
+ }
+ movies = ["Deadpool", "Rise of the Skywalker"]
+ console.log("Hello from", console, "!")
+ console.log(test_data, log_locals=True)
+
+
+test_log()
+```
+
+The above produces the following output:
+
+
+
+Note the `log_locals` argument, which outputs a table containing the local variables where the log method was called.
+
+The log method could be used for logging to the terminal for long running applications such as servers, but is also a very nice debugging aid.
+
+
+
+Logging Handler
+
+You can also use the builtin [Handler class](https://rich.readthedocs.io/en/latest/logging.html) to format and colorize output from Python's logging module. Here's an example of the output:
+
+
+
+
+
+
+Emoji
+
+To insert an emoji in to console output place the name between two colons. Here's an example:
+
+```python
+>>> console.print(":smiley: :vampire: :pile_of_poo: :thumbs_up: :raccoon:")
+😃 🧛 💩 👍 🦝
+```
+
+Please use this feature wisely.
+
+
+
+
+Tables
+
+Rich can render flexible [tables](https://rich.readthedocs.io/en/latest/tables.html) with unicode box characters. There is a large variety of formatting options for borders, styles, cell alignment etc.
+
+
+
+The animation above was generated with [table_movie.py](https://github.com/textualize/rich/blob/master/examples/table_movie.py) in the examples directory.
+
+Here's a simpler table example:
+
+```python
+from rich.console import Console
+from rich.table import Table
+
+console = Console()
+
+table = Table(show_header=True, header_style="bold magenta")
+table.add_column("Date", style="dim", width=12)
+table.add_column("Title")
+table.add_column("Production Budget", justify="right")
+table.add_column("Box Office", justify="right")
+table.add_row(
+ "Dec 20, 2019", "Star Wars: The Rise of Skywalker", "$275,000,000", "$375,126,118"
+)
+table.add_row(
+ "May 25, 2018",
+ "[red]Solo[/red]: A Star Wars Story",
+ "$275,000,000",
+ "$393,151,347",
+)
+table.add_row(
+ "Dec 15, 2017",
+ "Star Wars Ep. VIII: The Last Jedi",
+ "$262,000,000",
+ "[bold]$1,332,539,889[/bold]",
+)
+
+console.print(table)
+```
+
+This produces the following output:
+
+
+
+Note that console markup is rendered in the same way as `print()` and `log()`. In fact, anything that is renderable by Rich may be included in the headers / rows (even other tables).
+
+The `Table` class is smart enough to resize columns to fit the available width of the terminal, wrapping text as required. Here's the same example, with the terminal made smaller than the table above:
+
+
+
+
+
+
+Progress Bars
+
+Rich can render multiple flicker-free [progress](https://rich.readthedocs.io/en/latest/progress.html) bars to track long-running tasks.
+
+For basic usage, wrap any sequence in the `track` function and iterate over the result. Here's an example:
+
+```python
+from rich.progress import track
+
+for step in track(range(100)):
+ do_step(step)
+```
+
+It's not much harder to add multiple progress bars. Here's an example taken from the docs:
+
+
+
+The columns may be configured to show any details you want. Built-in columns include percentage complete, file size, file speed, and time remaining. Here's another example showing a download in progress:
+
+
+
+To try this out yourself, see [examples/downloader.py](https://github.com/textualize/rich/blob/master/examples/downloader.py) which can download multiple URLs simultaneously while displaying progress.
+
+
+
+
+Status
+
+For situations where it is hard to calculate progress, you can use the [status](https://rich.readthedocs.io/en/latest/reference/console.html#rich.console.Console.status) method which will display a 'spinner' animation and message. The animation won't prevent you from using the console as normal. Here's an example:
+
+```python
+from time import sleep
+from rich.console import Console
+
+console = Console()
+tasks = [f"task {n}" for n in range(1, 11)]
+
+with console.status("[bold green]Working on tasks...") as status:
+ while tasks:
+ task = tasks.pop(0)
+ sleep(1)
+ console.log(f"{task} complete")
+```
+
+This generates the following output in the terminal.
+
+
+
+The spinner animations were borrowed from [cli-spinners](https://www.npmjs.com/package/cli-spinners). You can select a spinner by specifying the `spinner` parameter. Run the following command to see the available values:
+
+```
+python -m rich.spinner
+```
+
+The above command generates the following output in the terminal:
+
+
+
+
+
+
+Tree
+
+Rich can render a [tree](https://rich.readthedocs.io/en/latest/tree.html) with guide lines. A tree is ideal for displaying a file structure, or any other hierarchical data.
+
+The labels of the tree can be simple text or anything else Rich can render. Run the following for a demonstration:
+
+```
+python -m rich.tree
+```
+
+This generates the following output:
+
+
+
+See the [tree.py](https://github.com/textualize/rich/blob/master/examples/tree.py) example for a script that displays a tree view of any directory, similar to the linux `tree` command.
+
+
+
+
+Columns
+
+Rich can render content in neat [columns](https://rich.readthedocs.io/en/latest/columns.html) with equal or optimal width. Here's a very basic clone of the (MacOS / Linux) `ls` command which displays a directory listing in columns:
+
+```python
+import os
+import sys
+
+from rich import print
+from rich.columns import Columns
+
+directory = os.listdir(sys.argv[1])
+print(Columns(directory))
+```
+
+The following screenshot is the output from the [columns example](https://github.com/textualize/rich/blob/master/examples/columns.py) which displays data pulled from an API in columns:
+
+
+
+
+
+
+Markdown
+
+Rich can render [markdown](https://rich.readthedocs.io/en/latest/markdown.html) and does a reasonable job of translating the formatting to the terminal.
+
+To render markdown import the `Markdown` class and construct it with a string containing markdown code. Then print it to the console. Here's an example:
+
+```python
+from rich.console import Console
+from rich.markdown import Markdown
+
+console = Console()
+with open("README.md") as readme:
+ markdown = Markdown(readme.read())
+console.print(markdown)
+```
+
+This will produce output something like the following:
+
+
+
+
+
+
+Syntax Highlighting
+
+Rich uses the [pygments](https://pygments.org/) library to implement [syntax highlighting](https://rich.readthedocs.io/en/latest/syntax.html). Usage is similar to rendering markdown; construct a `Syntax` object and print it to the console. Here's an example:
+
+```python
+from rich.console import Console
+from rich.syntax import Syntax
+
+my_code = '''
+def iter_first_last(values: Iterable[T]) -> Iterable[Tuple[bool, bool, T]]:
+ """Iterate and generate a tuple with a flag for first and last value."""
+ iter_values = iter(values)
+ try:
+ previous_value = next(iter_values)
+ except StopIteration:
+ return
+ first = True
+ for value in iter_values:
+ yield first, False, previous_value
+ first = False
+ previous_value = value
+ yield first, True, previous_value
+'''
+syntax = Syntax(my_code, "python", theme="monokai", line_numbers=True)
+console = Console()
+console.print(syntax)
+```
+
+This will produce the following output:
+
+
+
+
+
+
+Tracebacks
+
+Rich can render [beautiful tracebacks](https://rich.readthedocs.io/en/latest/traceback.html) which are easier to read and show more code than standard Python tracebacks. You can set Rich as the default traceback handler so all uncaught exceptions will be rendered by Rich.
+
+Here's what it looks like on OSX (similar on Linux):
+
+
+
+
+
+All Rich renderables make use of the [Console Protocol](https://rich.readthedocs.io/en/latest/protocol.html), which you can also use to implement your own Rich content.
+
+# Rich CLI
+
+
+See also [Rich CLI](https://github.com/textualize/rich-cli) for a command line application powered by Rich. Syntax highlight code, render markdown, display CSVs in tables, and more, directly from the command prompt.
+
+
+
+
+# Textual
+
+See also Rich's sister project, [Textual](https://github.com/Textualize/textual), which you can use to build sophisticated User Interfaces in the terminal.
+
+
+
+# Toad
+
+[Toad](https://github.com/batrachianai/toad) is a unified interface for agentic coding. Built with Rich and Textual.
+
+
+
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich-15.0.0.dist-info/RECORD b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich-15.0.0.dist-info/RECORD
new file mode 100644
index 0000000000000000000000000000000000000000..131bc9b6b1ea83da2151756cbb7cabd39ba71e87
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich-15.0.0.dist-info/RECORD
@@ -0,0 +1,105 @@
+rich/__init__.py,sha256=j7AA9_z_PANQbmRTwTkWZc_DVdqtBBHxBqGrMsz21CI,6131
+rich/__main__.py,sha256=kcy8BtBEUkYLCogRkwhCdJs0VNx6KF1n8kFU2g-7plg,7725
+rich/_emoji_codes.py,sha256=hu1VL9nbVdppJrVoijVshRlcRRe_v3dju3Mmd2sKZdY,140235
+rich/_emoji_replace.py,sha256=ysSn8smSqQW22XEfCH0lJ80vogUYZKr9dPImfUG2e6Y,1067
+rich/_export_format.py,sha256=RI08pSrm5tBSzPMvnbTqbD9WIalaOoN5d4M1RTmLq1Y,2128
+rich/_extension.py,sha256=G66PkbH_QdTJh6jD-J228O76CmAnr2hLQv72CgPPuzE,241
+rich/_fileno.py,sha256=HWZxP5C2ajMbHryvAQZseflVfQoGzsKOHzKGsLD8ynQ,799
+rich/_inspect.py,sha256=5pUYCqveN4ekb_mgHOYCipyZCrMGEJZYZs3y5QqmCf0,9894
+rich/_log_render.py,sha256=xBKCxqiO4FZk8eG56f8crFdrmJxFrJsQE3V3F-fFekc,3213
+rich/_loop.py,sha256=hV_6CLdoPm0va22Wpw4zKqM0RYsz3TZxXj0PoS-9eDQ,1236
+rich/_null_file.py,sha256=ADGKp1yt-k70FMKV6tnqCqecB-rSJzp-WQsD7LPL-kg,1394
+rich/_palettes.py,sha256=cdev1JQKZ0JvlguV9ipHgznTdnvlIzUFDBb0It2PzjI,7063
+rich/_pick.py,sha256=evDt8QN4lF5CiwrUIXlOJCntitBCOsI3ZLPEIAVRLJU,423
+rich/_ratio.py,sha256=IOtl78sQCYZsmHyxhe45krkb68u9xVz7zFsXVJD-b2Y,5325
+rich/_spinners.py,sha256=U2r1_g_1zSjsjiUdAESc2iAMc3i4ri_S8PYP6kQ5z1I,19919
+rich/_stack.py,sha256=-C8OK7rxn3sIUdVwxZBBpeHhIzX0eI-VM3MemYfaXm0,351
+rich/_timer.py,sha256=zelxbT6oPFZnNrwWPpc1ktUeAT-Vc4fuFcRZLQGLtMI,417
+rich/_unicode_data/__init__.py,sha256=40PhAFp3b88yPnRtTG6i9g5xj-5w98CET3C4Ip1LJAI,2631
+rich/_unicode_data/_versions.py,sha256=ftILR3G5dqmlQmCJYNovuyXfFneJY2eH2RvpV19tyYE,298
+rich/_unicode_data/unicode10-0-0.py,sha256=FUstYPZwDF15BEuAERqXHqIPvC1KY1SL20qLj999Fzo,14496
+rich/_unicode_data/unicode11-0-0.py,sha256=jp8SRKFBlIaHMafxAfhLiU7FizwdcgPVvytR3kSFtZo,14874
+rich/_unicode_data/unicode12-0-0.py,sha256=0XHXSjW5EXue6Qfgl_u0bK7NstiSdmqrR_F_Wqhs5bE,15216
+rich/_unicode_data/unicode12-1-0.py,sha256=kWcRGh1UVwsmK9qflfGsO_aM8AuNhLthJcsyXAOQryI,15189
+rich/_unicode_data/unicode13-0-0.py,sha256=DokduALtgaB-WvapW7X7PmM3kZFbgnCo9ifINWZtuDs,15519
+rich/_unicode_data/unicode14-0-0.py,sha256=Ni-3JnGf5sB4kGl8ip-Iyqoum-awJjZV0RoSNuo0yu8,15884
+rich/_unicode_data/unicode15-0-0.py,sha256=DBHkV5Si9vmtv_MiW6NmPQb8yUeP4N-9hNt2juZr4ZE,16156
+rich/_unicode_data/unicode15-1-0.py,sha256=uyCZLYrg0q7wGt3-uBdsF0Ay_x8MTMvFqK6aMOkl9rA,16129
+rich/_unicode_data/unicode16-0-0.py,sha256=5iGpbczVQ7BD2QGYb6k1h_OdILQXXuhcvI6dQFLKbMc,16480
+rich/_unicode_data/unicode17-0-0.py,sha256=NXbjFsAaTYdj6TYgk5Q9disv40LZHbedFGRl_48_9Y0,16704
+rich/_unicode_data/unicode4-1-0.py,sha256=yIApQGEG7VOFYY2FFfvOdPprE6VpDusjLlTlCy4G_Rw,9488
+rich/_unicode_data/unicode5-0-0.py,sha256=PkEI1x4RGwXSmgqHiu88jyz14VQT8bWiOtBDrECaVZg,9613
+rich/_unicode_data/unicode5-1-0.py,sha256=C0-PWziqpkVkf3PkPz2GWNwidCrjef5AHQGBpqTPkuY,9650
+rich/_unicode_data/unicode5-2-0.py,sha256=gM88qri3_9b0I37DGK1-ah-0SUed2VmvxUddB5UZLto,10390
+rich/_unicode_data/unicode6-0-0.py,sha256=hhcAipqKU81dZ4YbDXIlT7KEK9yNG_Lx-5GLgNTF75g,10604
+rich/_unicode_data/unicode6-1-0.py,sha256=PtUJYxwtU5S2A44YY_69Ka_wTkq-c7QCa-yibmkHvJs,10899
+rich/_unicode_data/unicode6-2-0.py,sha256=TdTOctGwO-OYVGif1DoRJvsaQISHw5EXHPt58fjB55g,10899
+rich/_unicode_data/unicode6-3-0.py,sha256=G9l8chu2MJTwZ_d_0tmH7PBg8KYYHaeuJCJNCHGHkDc,10924
+rich/_unicode_data/unicode7-0-0.py,sha256=po9GGYW7ilGU9MwGE6fny-OofqbDwelQrnOIm-IusjI,11630
+rich/_unicode_data/unicode8-0-0.py,sha256=4PjyI-w2Uj9xtanNlZm1d_2khcetMQlIefaoU2joGkY,11864
+rich/_unicode_data/unicode9-0-0.py,sha256=A-pQjvkTICUGXEDOiWNMqa6z6vv1E__HJffzu7zLi9c,14148
+rich/_win32_console.py,sha256=o2QN_IRx10biGP3Ap1neaqX8FBGlUKSmWM6Kw4OSg-U,22719
+rich/_windows.py,sha256=is3WpbHMj8WaTHYB11hc6lP2t4hlvt4TViTlHSmjsi0,1901
+rich/_windows_renderer.py,sha256=d799xOnxLbCCCzGu9-U7YLmIQkxtxQIBFQQ6iu4veSc,2759
+rich/_wrap.py,sha256=FlSsom5EX0LVkA3KWy34yHnCfLtqX-ZIepXKh-70rpc,3404
+rich/abc.py,sha256=dALMOGfKVNeAbvqq66IpTQxQUerxD7AE4FKwqd0eQKk,878
+rich/align.py,sha256=a8MbP-iJjoOFonxqgoP3YketKMWU3WFZaxjqAv2Qc5E,10726
+rich/ansi.py,sha256=TQ7pdksq0b3XPcw_tSGvL_QthPxNLKOYQImPQYWp6pM,6947
+rich/bar.py,sha256=ldbVHOzKJOnflVNuv1xS7g6dLX2E3wMnXkdPbpzJTcs,3263
+rich/box.py,sha256=SSolg8_pzHzY9QvJQo-qp0tbPsnj8O_2W4hmi1l-Zo0,10650
+rich/cells.py,sha256=fPRSnquYlCO4THgmUokOJOhNlcx8C4NZ2Xv9JM_7GbE,12335
+rich/color.py,sha256=3HSULVDj7qQkXUdFWv78JOiSZzfy5y1nkcYhna296V0,18211
+rich/color_triplet.py,sha256=3lhQkdJbvWPoLDO-AnYImAWmJvV5dlgYNCVZ97ORaN4,1054
+rich/columns.py,sha256=HUX0KcMm9dsKNi11fTbiM_h2iDtl8ySCaVcxlalEzq8,7131
+rich/console.py,sha256=RTP8ZpY2I6KiFEe1Adb1H4z-5-FHdReAk6Xm62HcE1o,101361
+rich/constrain.py,sha256=1VIPuC8AgtKWrcncQrjBdYqA3JVWysu6jZo1rrh7c7Q,1288
+rich/containers.py,sha256=c_56TxcedGYqDepHBMTuZdUIijitAQgnox-Qde0Z1qo,5502
+rich/control.py,sha256=HnsraFTzBaUQDzKJWXsfPv-PPmgGypSgSv7oANackqs,6475
+rich/default_styles.py,sha256=DqEUiGrj4N0eAcgDwjGeUSe8BLMxZw57L9RXnTCroTs,8401
+rich/diagnose.py,sha256=1RWnQoppPXjC_49AB4vtV048DK3ksQSq671C83Y6f-g,977
+rich/emoji.py,sha256=z7ABu0_61WJPWOM_dxhUHNaA0B6RQuZX3reljs1iWE8,2388
+rich/errors.py,sha256=5pP3Kc5d4QJ_c0KFsxrfyhjiPVe7J1zOqSFbFAzcV-Y,642
+rich/file_proxy.py,sha256=MvlB3tSsuVmH4qCWXK9SK3S_OohVRIczUw_Fufmsdt8,1750
+rich/filesize.py,sha256=_iz9lIpRgvW7MNSeCZnLg-HwzbP4GETg543WqD8SFs0,2484
+rich/highlighter.py,sha256=MIapWwjR8ahUcsDicgN4xLRbanbh5x_Qzh5kfdDrKKk,9729
+rich/json.py,sha256=omC2WHTgURxEosna1ftoSJCne2EX7MDuQtCdswS3qsk,5019
+rich/jupyter.py,sha256=G9pOJmR4ESIFYSd4MKGqmHqCtstx0oRWpyeTgv54-Xc,3228
+rich/layout.py,sha256=WR8PCSroYnteIT3zawxQ3k3ad1sQO5wGG1SZOoeBuBM,13944
+rich/live.py,sha256=UKvqLSuSzNHIBz5pxRrU7SPsnG48vJJx2TMHiaHlmnI,15317
+rich/live_render.py,sha256=jQO3X_p2wemGI2bdCAY_e5j9xXNTwDxuujbpoSRsH6c,3803
+rich/logging.py,sha256=7vhk7r_LhWTcwteyjLLM5Nfc839fwBuIiISvBZcGwzo,12622
+rich/markdown.py,sha256=MmbNh8IhWgdGNQkeNTHWNR470KQVACt_9aJu6TMourA,26549
+rich/markup.py,sha256=btpr271BLhiCR1jNglRnv2BpIzVcNefYwSMeW9teDbc,8427
+rich/measure.py,sha256=HmrIJX8sWRTHbgh8MxEay_83VkqNW_70s8aKP5ZcYI8,5305
+rich/padding.py,sha256=h8XnIivLrNtlxI3vQPKHXh4hAwjOJqZx0slM0z3g1_M,4896
+rich/pager.py,sha256=SO_ETBFKbg3n_AgOzXm41Sv36YxXAyI3_R-KOY2_uSc,828
+rich/palette.py,sha256=Ar6ZUrYHiFt6-Rr2k-k9F8V7hxgJYHNdqjk2vVXsLgc,3288
+rich/panel.py,sha256=9sQl00hPIqH5G2gALQo4NepFwpP0k9wT-s_gOms5pIc,11157
+rich/pretty.py,sha256=lxW_bhBfDTKe-grtzP1KQhQsqPZxfZN14th4JRVoLzQ,36349
+rich/progress.py,sha256=Z6Yz6pYO26LFXx24cXKvk2bEX6FkjK2Z5e2fy0Bt78s,60393
+rich/progress_bar.py,sha256=mZTPpJUwcfcdgQCTTz3kyY-fc79ddLwtx6Ghhxfo064,8162
+rich/prompt.py,sha256=1SIuBEelovvwCG2wp22PZwskA3IkmAsOxf0ruFkOhOk,12448
+rich/protocol.py,sha256=9OHzfZXAnidZqaZgSFsX5KsJg8JHHNUc8jk9dsxa1ik,1348
+rich/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
+rich/region.py,sha256=rNT9xZrVZTYIXZC0NYn41CJQwYNbR-KecPOxTgQvB8Y,166
+rich/repr.py,sha256=mFexGTVledesZiMD3jBBBBoICoWh-XPFAUq3Hu7iX4U,4436
+rich/rule.py,sha256=umO21Wjw0FcYAeTB3UumNLCsDWhejzxnjlf2VwiXiDI,4590
+rich/scope.py,sha256=x-jkKIE-j7ZxA9I07lya5iVAuDAyUKM58HWtNZQUzRc,3239
+rich/screen.py,sha256=rL_j2wX-4SeuIOI2oOlc418QP9EAvD59GInUmEAE6jQ,1579
+rich/segment.py,sha256=17JAw4bmsV_LrJ8PnhI9XH2DaN-fOEPF-8mgx7joLDM,25740
+rich/spinner.py,sha256=onIhpKlljRHppTZasxO8kXgtYyCHUkpSgKglRJ3o51g,4214
+rich/status.py,sha256=kkPph3YeAZBo-X-4wPp8gTqZyU466NLwZBA4PZTTewo,4424
+rich/style.py,sha256=yp4TsNKNPUxBytoFWfy7kzE2Gh_9TYA7fs2ULXfbm00,27068
+rich/styled.py,sha256=wljVsVTXbABMMZvkzkO43ZEk_-irzEtvUiQ-sNnikQ8,1234
+rich/syntax.py,sha256=ytgeGUt91fdr8LaHKOdkaNMewrPRxgoci5mMd3MPE4I,36305
+rich/table.py,sha256=6yv7wMLXZgOsGgzEDpKXpecXQOwcLBHNOn-MYcbo1Zk,40033
+rich/terminal_theme.py,sha256=1j5-ufJfnvlAo5Qsi_ACZiXDmwMXzqgmFByObT9-yJY,3370
+rich/text.py,sha256=t2J8iMquwR0BUUggm-cVNp30Wxw5M8fIF_p0jioYRV0,47655
+rich/theme.py,sha256=biYZWd_Wu1KW8VtT7UsTQDrDU89RxAK5_Vz1y3ztGYI,3780
+rich/themes.py,sha256=0xgTLozfabebYtcJtDdC5QkX5IVUEaviqDUJJh4YVFk,102
+rich/traceback.py,sha256=TT03eLKEj5XapXFp9kgf0bBwNupIFrHquKxZtwBhz_8,37535
+rich/tree.py,sha256=QoOwg424FkdwGfR8K0tZ6Q7qtzWNAUP_m4sFaYuG6nw,9391
+rich-15.0.0.dist-info/METADATA,sha256=-tNPxgP6xEgb-B-N1ilJL8MCwOwxkJyGZEdRUSr7Ljs,18445
+rich-15.0.0.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
+rich-15.0.0.dist-info/licenses/LICENSE,sha256=3u18F6QxgVgZCj6iOcyHmlpQJxzruYrnAl9I--WNyhU,1056
+rich-15.0.0.dist-info/RECORD,,
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich-15.0.0.dist-info/WHEEL b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich-15.0.0.dist-info/WHEEL
new file mode 100644
index 0000000000000000000000000000000000000000..7894e88612ce5ce2c8502e9eeee7ede5b88c9b9e
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich-15.0.0.dist-info/WHEEL
@@ -0,0 +1,4 @@
+Wheel-Version: 1.0
+Generator: poetry-core 2.3.1
+Root-Is-Purelib: true
+Tag: py3-none-any
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich-15.0.0.dist-info/licenses/LICENSE b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich-15.0.0.dist-info/licenses/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..4415505566f261c802b671426be529a31f914137
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich-15.0.0.dist-info/licenses/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2020 Will McGugan
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/__init__.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..3edd12e0167e159890655f985299759792b71dd0
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/__init__.py
@@ -0,0 +1,177 @@
+"""Rich text and beautiful formatting in the terminal."""
+
+import os
+from typing import IO, TYPE_CHECKING, Any, Callable, Optional, Union
+
+from ._extension import load_ipython_extension # noqa: F401
+
+__all__ = ["get_console", "reconfigure", "print", "inspect", "print_json"]
+
+if TYPE_CHECKING:
+ from .console import Console
+
+# Global console used by alternative print
+_console: Optional["Console"] = None
+
+try:
+ _IMPORT_CWD = os.path.abspath(os.getcwd())
+except FileNotFoundError:
+ # Can happen if the cwd has been deleted
+ _IMPORT_CWD = ""
+
+
+def get_console() -> "Console":
+ """Get a global :class:`~rich.console.Console` instance. This function is used when Rich requires a Console,
+ and hasn't been explicitly given one.
+
+ Returns:
+ Console: A console instance.
+ """
+ global _console
+ if _console is None:
+ from .console import Console
+
+ _console = Console()
+
+ return _console
+
+
+def reconfigure(*args: Any, **kwargs: Any) -> None:
+ """Reconfigures the global console by replacing it with another.
+
+ Args:
+ *args (Any): Positional arguments for the replacement :class:`~rich.console.Console`.
+ **kwargs (Any): Keyword arguments for the replacement :class:`~rich.console.Console`.
+ """
+ from rich.console import Console
+
+ new_console = Console(*args, **kwargs)
+ _console = get_console()
+ _console.__dict__ = new_console.__dict__
+
+
+def print(
+ *objects: Any,
+ sep: str = " ",
+ end: str = "\n",
+ file: Optional[IO[str]] = None,
+ flush: bool = False,
+) -> None:
+ r"""Print object(s) supplied via positional arguments.
+ This function has an identical signature to the built-in print.
+ For more advanced features, see the :class:`~rich.console.Console` class.
+
+ Args:
+ sep (str, optional): Separator between printed objects. Defaults to " ".
+ end (str, optional): Character to write at end of output. Defaults to "\\n".
+ file (IO[str], optional): File to write to, or None for stdout. Defaults to None.
+ flush (bool, optional): Has no effect as Rich always flushes output. Defaults to False.
+
+ """
+ from .console import Console
+
+ write_console = get_console() if file is None else Console(file=file)
+ return write_console.print(*objects, sep=sep, end=end)
+
+
+def print_json(
+ json: Optional[str] = None,
+ *,
+ data: Any = None,
+ indent: Union[None, int, str] = 2,
+ highlight: bool = True,
+ skip_keys: bool = False,
+ ensure_ascii: bool = False,
+ check_circular: bool = True,
+ allow_nan: bool = True,
+ default: Optional[Callable[[Any], Any]] = None,
+ sort_keys: bool = False,
+) -> None:
+ """Pretty prints JSON. Output will be valid JSON.
+
+ Args:
+ json (str): A string containing JSON.
+ data (Any): If json is not supplied, then encode this data.
+ indent (int, optional): Number of spaces to indent. Defaults to 2.
+ highlight (bool, optional): Enable highlighting of output: Defaults to True.
+ skip_keys (bool, optional): Skip keys not of a basic type. Defaults to False.
+ ensure_ascii (bool, optional): Escape all non-ascii characters. Defaults to False.
+ check_circular (bool, optional): Check for circular references. Defaults to True.
+ allow_nan (bool, optional): Allow NaN and Infinity values. Defaults to True.
+ default (Callable, optional): A callable that converts values that can not be encoded
+ in to something that can be JSON encoded. Defaults to None.
+ sort_keys (bool, optional): Sort dictionary keys. Defaults to False.
+ """
+
+ get_console().print_json(
+ json,
+ data=data,
+ indent=indent,
+ highlight=highlight,
+ skip_keys=skip_keys,
+ ensure_ascii=ensure_ascii,
+ check_circular=check_circular,
+ allow_nan=allow_nan,
+ default=default,
+ sort_keys=sort_keys,
+ )
+
+
+def inspect(
+ obj: Any,
+ *,
+ console: Optional["Console"] = None,
+ title: Optional[str] = None,
+ help: bool = False,
+ methods: bool = False,
+ docs: bool = True,
+ private: bool = False,
+ dunder: bool = False,
+ sort: bool = True,
+ all: bool = False,
+ value: bool = True,
+) -> None:
+ """Inspect any Python object.
+
+ * inspect() to see summarized info.
+ * inspect(, methods=True) to see methods.
+ * inspect(, help=True) to see full (non-abbreviated) help.
+ * inspect(, private=True) to see private attributes (single underscore).
+ * inspect(, dunder=True) to see attributes beginning with double underscore.
+ * inspect(, all=True) to see all attributes.
+
+ Args:
+ obj (Any): An object to inspect.
+ title (str, optional): Title to display over inspect result, or None use type. Defaults to None.
+ help (bool, optional): Show full help text rather than just first paragraph. Defaults to False.
+ methods (bool, optional): Enable inspection of callables. Defaults to False.
+ docs (bool, optional): Also render doc strings. Defaults to True.
+ private (bool, optional): Show private attributes (beginning with underscore). Defaults to False.
+ dunder (bool, optional): Show attributes starting with double underscore. Defaults to False.
+ sort (bool, optional): Sort attributes alphabetically, callables at the top, leading and trailing underscores ignored. Defaults to True.
+ all (bool, optional): Show all attributes. Defaults to False.
+ value (bool, optional): Pretty print value. Defaults to True.
+ """
+ _console = console or get_console()
+ from rich._inspect import Inspect
+
+ # Special case for inspect(inspect)
+ is_inspect = obj is inspect
+
+ _inspect = Inspect(
+ obj,
+ title=title,
+ help=is_inspect or help,
+ methods=is_inspect or methods,
+ docs=is_inspect or docs,
+ private=private,
+ dunder=dunder,
+ sort=sort,
+ all=all,
+ value=value,
+ )
+ _console.print(_inspect)
+
+
+if __name__ == "__main__": # pragma: no cover
+ print("Hello, **World**")
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/__main__.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/__main__.py
new file mode 100644
index 0000000000000000000000000000000000000000..864b3aed6fbaec83d20404dfc329359b6e2aeb9d
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/__main__.py
@@ -0,0 +1,245 @@
+import colorsys
+import io
+from time import process_time
+
+from rich import box
+from rich.color import Color
+from rich.console import Console, ConsoleOptions, Group, RenderableType, RenderResult
+from rich.markdown import Markdown
+from rich.measure import Measurement
+from rich.pretty import Pretty
+from rich.segment import Segment
+from rich.style import Style
+from rich.syntax import Syntax
+from rich.table import Table
+from rich.text import Text
+
+
+class ColorBox:
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ for y in range(0, 5):
+ for x in range(options.max_width):
+ h = x / options.max_width
+ l = 0.1 + ((y / 5) * 0.7)
+ r1, g1, b1 = colorsys.hls_to_rgb(h, l, 1.0)
+ r2, g2, b2 = colorsys.hls_to_rgb(h, l + 0.7 / 10, 1.0)
+ bgcolor = Color.from_rgb(r1 * 255, g1 * 255, b1 * 255)
+ color = Color.from_rgb(r2 * 255, g2 * 255, b2 * 255)
+ yield Segment("▄", Style(color=color, bgcolor=bgcolor))
+ yield Segment.line()
+
+ def __rich_measure__(
+ self, console: "Console", options: ConsoleOptions
+ ) -> Measurement:
+ return Measurement(1, options.max_width)
+
+
+def make_test_card() -> Table:
+ """Get a renderable that demonstrates a number of features."""
+ table = Table.grid(padding=1, pad_edge=True)
+ table.title = "Rich features"
+ table.add_column("Feature", no_wrap=True, justify="center", style="bold red")
+ table.add_column("Demonstration")
+
+ color_table = Table(
+ box=None,
+ expand=False,
+ show_header=False,
+ show_edge=False,
+ pad_edge=False,
+ )
+ color_table.add_row(
+ (
+ "✓ [bold green]4-bit color[/]\n"
+ "✓ [bold blue]8-bit color[/]\n"
+ "✓ [bold magenta]Truecolor (16.7 million)[/]\n"
+ "✓ [bold yellow]Dumb terminals[/]\n"
+ "✓ [bold cyan]Automatic color conversion"
+ ),
+ ColorBox(),
+ )
+
+ table.add_row("Colors", color_table)
+
+ table.add_row(
+ "Styles",
+ "All ansi styles: [bold]bold[/], [dim]dim[/], [italic]italic[/italic], [underline]underline[/], [strike]strikethrough[/], [reverse]reverse[/], and even [blink]blink[/].",
+ )
+
+ lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque in metus sed sapien ultricies pretium a at justo. Maecenas luctus velit et auctor maximus."
+ lorem_table = Table.grid(padding=1, collapse_padding=True)
+ lorem_table.pad_edge = False
+ lorem_table.add_row(
+ Text(lorem, justify="left", style="green"),
+ Text(lorem, justify="center", style="yellow"),
+ Text(lorem, justify="right", style="blue"),
+ Text(lorem, justify="full", style="red"),
+ )
+ table.add_row(
+ "Text",
+ Group(
+ Text.from_markup(
+ """Word wrap text. Justify [green]left[/], [yellow]center[/], [blue]right[/] or [red]full[/].\n"""
+ ),
+ lorem_table,
+ ),
+ )
+
+ def comparison(renderable1: RenderableType, renderable2: RenderableType) -> Table:
+ table = Table(show_header=False, pad_edge=False, box=None, expand=True)
+ table.add_column("1", ratio=1)
+ table.add_column("2", ratio=1)
+ table.add_row(renderable1, renderable2)
+ return table
+
+ table.add_row(
+ "Asian\nlanguage\nsupport",
+ ":flag_for_china: 该库支持中文,日文和韩文文本!\n:flag_for_japan: ライブラリは中国語、日本語、韓国語のテキストをサポートしています\n:flag_for_south_korea: 이 라이브러리는 중국어, 일본어 및 한국어 텍스트를 지원합니다",
+ )
+
+ markup_example = (
+ "[bold magenta]Rich[/] supports a simple [i]bbcode[/i]-like [b]markup[/b] for [yellow]color[/], [underline]style[/], and emoji! "
+ ":+1: :apple: :ant: :bear: :baguette_bread: :bus: "
+ )
+ table.add_row("Markup", markup_example)
+
+ example_table = Table(
+ show_edge=False,
+ show_header=True,
+ expand=False,
+ row_styles=["none", "dim"],
+ box=box.SIMPLE,
+ )
+ example_table.add_column("[green]Date", style="green", no_wrap=True)
+ example_table.add_column("[blue]Title", style="blue")
+ example_table.add_column(
+ "[cyan]Production Budget",
+ style="cyan",
+ justify="right",
+ no_wrap=True,
+ )
+ example_table.add_column(
+ "[magenta]Box Office",
+ style="magenta",
+ justify="right",
+ no_wrap=True,
+ )
+ example_table.add_row(
+ "Dec 20, 2019",
+ "Star Wars: The Rise of Skywalker",
+ "$275,000,000",
+ "$375,126,118",
+ )
+ example_table.add_row(
+ "May 25, 2018",
+ "[b]Solo[/]: A Star Wars Story",
+ "$275,000,000",
+ "$393,151,347",
+ )
+ example_table.add_row(
+ "Dec 15, 2017",
+ "Star Wars Ep. VIII: The Last Jedi",
+ "$262,000,000",
+ "[bold]$1,332,539,889[/bold]",
+ )
+ example_table.add_row(
+ "May 19, 1999",
+ "Star Wars Ep. [b]I[/b]: [i]The phantom Menace",
+ "$115,000,000",
+ "$1,027,044,677",
+ )
+
+ table.add_row("Tables", example_table)
+
+ code = '''\
+def iter_last(values: Iterable[T]) -> Iterable[Tuple[bool, T]]:
+ """Iterate and generate a tuple with a flag for last value."""
+ iter_values = iter(values)
+ try:
+ previous_value = next(iter_values)
+ except StopIteration:
+ return
+ for value in iter_values:
+ yield False, previous_value
+ previous_value = value
+ yield True, previous_value'''
+
+ pretty_data = {
+ "foo": [
+ 3.1427,
+ (
+ "Paul Atreides",
+ "Vladimir Harkonnen",
+ "Thufir Hawat",
+ ),
+ ],
+ "atomic": (False, True, None),
+ }
+ table.add_row(
+ "Syntax\nhighlighting\n&\npretty\nprinting",
+ comparison(
+ Syntax(code, "python3", line_numbers=True, indent_guides=True),
+ Pretty(pretty_data, indent_guides=True),
+ ),
+ )
+
+ markdown_example = """\
+# Markdown
+
+Supports much of the *markdown* __syntax__!
+
+- Headers
+- Basic formatting: **bold**, *italic*, `code`
+- Block quotes
+- Lists, and more...
+ """
+ table.add_row(
+ "Markdown", comparison("[cyan]" + markdown_example, Markdown(markdown_example))
+ )
+
+ table.add_row(
+ "+more!",
+ """Progress bars, columns, styled logging handler, tracebacks, etc...""",
+ )
+ return table
+
+
+if __name__ == "__main__": # pragma: no cover
+ from rich.panel import Panel
+
+ console = Console(
+ file=io.StringIO(),
+ force_terminal=True,
+ )
+ test_card = make_test_card()
+
+ # Print once to warm cache
+ start = process_time()
+ console.print(test_card)
+ pre_cache_taken = round((process_time() - start) * 1000.0, 1)
+
+ console.file = io.StringIO()
+
+ start = process_time()
+ console.print(test_card)
+ taken = round((process_time() - start) * 1000.0, 1)
+
+ c = Console(record=True)
+ c.print(test_card)
+
+ console = Console()
+ console.print(f"[dim]rendered in [not dim]{pre_cache_taken}ms[/] (cold cache)")
+ console.print(f"[dim]rendered in [not dim]{taken}ms[/] (warm cache)")
+ console.print()
+ console.print(
+ Panel(
+ "[b magenta]Hope you enjoy using Rich![/]\n\n"
+ "Consider sponsoring to ensure this project is maintained.\n\n"
+ "[cyan]https://github.com/sponsors/willmcgugan[/cyan]",
+ border_style="green",
+ title="Help ensure Rich is maintained",
+ padding=(1, 2),
+ )
+ )
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_emoji_codes.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_emoji_codes.py
new file mode 100644
index 0000000000000000000000000000000000000000..1f2877bb2bd520253502b1c05bb811bb0d7ef64c
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_emoji_codes.py
@@ -0,0 +1,3610 @@
+EMOJI = {
+ "1st_place_medal": "🥇",
+ "2nd_place_medal": "🥈",
+ "3rd_place_medal": "🥉",
+ "ab_button_(blood_type)": "🆎",
+ "atm_sign": "🏧",
+ "a_button_(blood_type)": "🅰",
+ "afghanistan": "🇦🇫",
+ "albania": "🇦🇱",
+ "algeria": "🇩🇿",
+ "american_samoa": "🇦🇸",
+ "andorra": "🇦🇩",
+ "angola": "🇦🇴",
+ "anguilla": "🇦🇮",
+ "antarctica": "🇦🇶",
+ "antigua_&_barbuda": "🇦🇬",
+ "aquarius": "♒",
+ "argentina": "🇦🇷",
+ "aries": "♈",
+ "armenia": "🇦🇲",
+ "aruba": "🇦🇼",
+ "ascension_island": "🇦🇨",
+ "australia": "🇦🇺",
+ "austria": "🇦🇹",
+ "azerbaijan": "🇦🇿",
+ "back_arrow": "🔙",
+ "b_button_(blood_type)": "🅱",
+ "bahamas": "🇧🇸",
+ "bahrain": "🇧🇭",
+ "bangladesh": "🇧🇩",
+ "barbados": "🇧🇧",
+ "belarus": "🇧🇾",
+ "belgium": "🇧🇪",
+ "belize": "🇧🇿",
+ "benin": "🇧🇯",
+ "bermuda": "🇧🇲",
+ "bhutan": "🇧🇹",
+ "bolivia": "🇧🇴",
+ "bosnia_&_herzegovina": "🇧🇦",
+ "botswana": "🇧🇼",
+ "bouvet_island": "🇧🇻",
+ "brazil": "🇧🇷",
+ "british_indian_ocean_territory": "🇮🇴",
+ "british_virgin_islands": "🇻🇬",
+ "brunei": "🇧🇳",
+ "bulgaria": "🇧🇬",
+ "burkina_faso": "🇧🇫",
+ "burundi": "🇧🇮",
+ "cl_button": "🆑",
+ "cool_button": "🆒",
+ "cambodia": "🇰🇭",
+ "cameroon": "🇨🇲",
+ "canada": "🇨🇦",
+ "canary_islands": "🇮🇨",
+ "cancer": "♋",
+ "cape_verde": "🇨🇻",
+ "capricorn": "♑",
+ "caribbean_netherlands": "🇧🇶",
+ "cayman_islands": "🇰🇾",
+ "central_african_republic": "🇨🇫",
+ "ceuta_&_melilla": "🇪🇦",
+ "chad": "🇹🇩",
+ "chile": "🇨🇱",
+ "china": "🇨🇳",
+ "christmas_island": "🇨🇽",
+ "christmas_tree": "🎄",
+ "clipperton_island": "🇨🇵",
+ "cocos_(keeling)_islands": "🇨🇨",
+ "colombia": "🇨🇴",
+ "comoros": "🇰🇲",
+ "congo_-_brazzaville": "🇨🇬",
+ "congo_-_kinshasa": "🇨🇩",
+ "cook_islands": "🇨🇰",
+ "costa_rica": "🇨🇷",
+ "croatia": "🇭🇷",
+ "cuba": "🇨🇺",
+ "curaçao": "🇨🇼",
+ "cyprus": "🇨🇾",
+ "czechia": "🇨🇿",
+ "côte_d’ivoire": "🇨🇮",
+ "denmark": "🇩🇰",
+ "diego_garcia": "🇩🇬",
+ "djibouti": "🇩🇯",
+ "dominica": "🇩🇲",
+ "dominican_republic": "🇩🇴",
+ "end_arrow": "🔚",
+ "ecuador": "🇪🇨",
+ "egypt": "🇪🇬",
+ "el_salvador": "🇸🇻",
+ "england": "🏴\U000e0067\U000e0062\U000e0065\U000e006e\U000e0067\U000e007f",
+ "equatorial_guinea": "🇬🇶",
+ "eritrea": "🇪🇷",
+ "estonia": "🇪🇪",
+ "ethiopia": "🇪🇹",
+ "european_union": "🇪🇺",
+ "free_button": "🆓",
+ "falkland_islands": "🇫🇰",
+ "faroe_islands": "🇫🇴",
+ "fiji": "🇫🇯",
+ "finland": "🇫🇮",
+ "france": "🇫🇷",
+ "french_guiana": "🇬🇫",
+ "french_polynesia": "🇵🇫",
+ "french_southern_territories": "🇹🇫",
+ "gabon": "🇬🇦",
+ "gambia": "🇬🇲",
+ "gemini": "♊",
+ "georgia": "🇬🇪",
+ "germany": "🇩🇪",
+ "ghana": "🇬🇭",
+ "gibraltar": "🇬🇮",
+ "greece": "🇬🇷",
+ "greenland": "🇬🇱",
+ "grenada": "🇬🇩",
+ "guadeloupe": "🇬🇵",
+ "guam": "🇬🇺",
+ "guatemala": "🇬🇹",
+ "guernsey": "🇬🇬",
+ "guinea": "🇬🇳",
+ "guinea-bissau": "🇬🇼",
+ "guyana": "🇬🇾",
+ "haiti": "🇭🇹",
+ "heard_&_mcdonald_islands": "🇭🇲",
+ "honduras": "🇭🇳",
+ "hong_kong_sar_china": "🇭🇰",
+ "hungary": "🇭🇺",
+ "id_button": "🆔",
+ "iceland": "🇮🇸",
+ "india": "🇮🇳",
+ "indonesia": "🇮🇩",
+ "iran": "🇮🇷",
+ "iraq": "🇮🇶",
+ "ireland": "🇮🇪",
+ "isle_of_man": "🇮🇲",
+ "israel": "🇮🇱",
+ "italy": "🇮🇹",
+ "jamaica": "🇯🇲",
+ "japan": "🗾",
+ "japanese_acceptable_button": "🉑",
+ "japanese_application_button": "🈸",
+ "japanese_bargain_button": "🉐",
+ "japanese_castle": "🏯",
+ "japanese_congratulations_button": "㊗",
+ "japanese_discount_button": "🈹",
+ "japanese_dolls": "🎎",
+ "japanese_free_of_charge_button": "🈚",
+ "japanese_here_button": "🈁",
+ "japanese_monthly_amount_button": "🈷",
+ "japanese_no_vacancy_button": "🈵",
+ "japanese_not_free_of_charge_button": "🈶",
+ "japanese_open_for_business_button": "🈺",
+ "japanese_passing_grade_button": "🈴",
+ "japanese_post_office": "🏣",
+ "japanese_prohibited_button": "🈲",
+ "japanese_reserved_button": "🈯",
+ "japanese_secret_button": "㊙",
+ "japanese_service_charge_button": "🈂",
+ "japanese_symbol_for_beginner": "🔰",
+ "japanese_vacancy_button": "🈳",
+ "jersey": "🇯🇪",
+ "jordan": "🇯🇴",
+ "kazakhstan": "🇰🇿",
+ "kenya": "🇰🇪",
+ "kiribati": "🇰🇮",
+ "kosovo": "🇽🇰",
+ "kuwait": "🇰🇼",
+ "kyrgyzstan": "🇰🇬",
+ "laos": "🇱🇦",
+ "latvia": "🇱🇻",
+ "lebanon": "🇱🇧",
+ "leo": "♌",
+ "lesotho": "🇱🇸",
+ "liberia": "🇱🇷",
+ "libra": "♎",
+ "libya": "🇱🇾",
+ "liechtenstein": "🇱🇮",
+ "lithuania": "🇱🇹",
+ "luxembourg": "🇱🇺",
+ "macau_sar_china": "🇲🇴",
+ "macedonia": "🇲🇰",
+ "madagascar": "🇲🇬",
+ "malawi": "🇲🇼",
+ "malaysia": "🇲🇾",
+ "maldives": "🇲🇻",
+ "mali": "🇲🇱",
+ "malta": "🇲🇹",
+ "marshall_islands": "🇲🇭",
+ "martinique": "🇲🇶",
+ "mauritania": "🇲🇷",
+ "mauritius": "🇲🇺",
+ "mayotte": "🇾🇹",
+ "mexico": "🇲🇽",
+ "micronesia": "🇫🇲",
+ "moldova": "🇲🇩",
+ "monaco": "🇲🇨",
+ "mongolia": "🇲🇳",
+ "montenegro": "🇲🇪",
+ "montserrat": "🇲🇸",
+ "morocco": "🇲🇦",
+ "mozambique": "🇲🇿",
+ "mrs._claus": "🤶",
+ "mrs._claus_dark_skin_tone": "🤶🏿",
+ "mrs._claus_light_skin_tone": "🤶🏻",
+ "mrs._claus_medium-dark_skin_tone": "🤶🏾",
+ "mrs._claus_medium-light_skin_tone": "🤶🏼",
+ "mrs._claus_medium_skin_tone": "🤶🏽",
+ "myanmar_(burma)": "🇲🇲",
+ "new_button": "🆕",
+ "ng_button": "🆖",
+ "namibia": "🇳🇦",
+ "nauru": "🇳🇷",
+ "nepal": "🇳🇵",
+ "netherlands": "🇳🇱",
+ "new_caledonia": "🇳🇨",
+ "new_zealand": "🇳🇿",
+ "nicaragua": "🇳🇮",
+ "niger": "🇳🇪",
+ "nigeria": "🇳🇬",
+ "niue": "🇳🇺",
+ "norfolk_island": "🇳🇫",
+ "north_korea": "🇰🇵",
+ "northern_mariana_islands": "🇲🇵",
+ "norway": "🇳🇴",
+ "ok_button": "🆗",
+ "ok_hand": "👌",
+ "ok_hand_dark_skin_tone": "👌🏿",
+ "ok_hand_light_skin_tone": "👌🏻",
+ "ok_hand_medium-dark_skin_tone": "👌🏾",
+ "ok_hand_medium-light_skin_tone": "👌🏼",
+ "ok_hand_medium_skin_tone": "👌🏽",
+ "on!_arrow": "🔛",
+ "o_button_(blood_type)": "🅾",
+ "oman": "🇴🇲",
+ "ophiuchus": "⛎",
+ "p_button": "🅿",
+ "pakistan": "🇵🇰",
+ "palau": "🇵🇼",
+ "palestinian_territories": "🇵🇸",
+ "panama": "🇵🇦",
+ "papua_new_guinea": "🇵🇬",
+ "paraguay": "🇵🇾",
+ "peru": "🇵🇪",
+ "philippines": "🇵🇭",
+ "pisces": "♓",
+ "pitcairn_islands": "🇵🇳",
+ "poland": "🇵🇱",
+ "portugal": "🇵🇹",
+ "puerto_rico": "🇵🇷",
+ "qatar": "🇶🇦",
+ "romania": "🇷🇴",
+ "russia": "🇷🇺",
+ "rwanda": "🇷🇼",
+ "réunion": "🇷🇪",
+ "soon_arrow": "🔜",
+ "sos_button": "🆘",
+ "sagittarius": "♐",
+ "samoa": "🇼🇸",
+ "san_marino": "🇸🇲",
+ "santa_claus": "🎅",
+ "santa_claus_dark_skin_tone": "🎅🏿",
+ "santa_claus_light_skin_tone": "🎅🏻",
+ "santa_claus_medium-dark_skin_tone": "🎅🏾",
+ "santa_claus_medium-light_skin_tone": "🎅🏼",
+ "santa_claus_medium_skin_tone": "🎅🏽",
+ "saudi_arabia": "🇸🇦",
+ "scorpio": "♏",
+ "scotland": "🏴\U000e0067\U000e0062\U000e0073\U000e0063\U000e0074\U000e007f",
+ "senegal": "🇸🇳",
+ "serbia": "🇷🇸",
+ "seychelles": "🇸🇨",
+ "sierra_leone": "🇸🇱",
+ "singapore": "🇸🇬",
+ "sint_maarten": "🇸🇽",
+ "slovakia": "🇸🇰",
+ "slovenia": "🇸🇮",
+ "solomon_islands": "🇸🇧",
+ "somalia": "🇸🇴",
+ "south_africa": "🇿🇦",
+ "south_georgia_&_south_sandwich_islands": "🇬🇸",
+ "south_korea": "🇰🇷",
+ "south_sudan": "🇸🇸",
+ "spain": "🇪🇸",
+ "sri_lanka": "🇱🇰",
+ "st._barthélemy": "🇧🇱",
+ "st._helena": "🇸🇭",
+ "st._kitts_&_nevis": "🇰🇳",
+ "st._lucia": "🇱🇨",
+ "st._martin": "🇲🇫",
+ "st._pierre_&_miquelon": "🇵🇲",
+ "st._vincent_&_grenadines": "🇻🇨",
+ "statue_of_liberty": "🗽",
+ "sudan": "🇸🇩",
+ "suriname": "🇸🇷",
+ "svalbard_&_jan_mayen": "🇸🇯",
+ "swaziland": "🇸🇿",
+ "sweden": "🇸🇪",
+ "switzerland": "🇨🇭",
+ "syria": "🇸🇾",
+ "são_tomé_&_príncipe": "🇸🇹",
+ "t-rex": "🦖",
+ "top_arrow": "🔝",
+ "taiwan": "🇹🇼",
+ "tajikistan": "🇹🇯",
+ "tanzania": "🇹🇿",
+ "taurus": "♉",
+ "thailand": "🇹🇭",
+ "timor-leste": "🇹🇱",
+ "togo": "🇹🇬",
+ "tokelau": "🇹🇰",
+ "tokyo_tower": "🗼",
+ "tonga": "🇹🇴",
+ "trinidad_&_tobago": "🇹🇹",
+ "tristan_da_cunha": "🇹🇦",
+ "tunisia": "🇹🇳",
+ "turkey": "🦃",
+ "turkmenistan": "🇹🇲",
+ "turks_&_caicos_islands": "🇹🇨",
+ "tuvalu": "🇹🇻",
+ "u.s._outlying_islands": "🇺🇲",
+ "u.s._virgin_islands": "🇻🇮",
+ "up!_button": "🆙",
+ "uganda": "🇺🇬",
+ "ukraine": "🇺🇦",
+ "united_arab_emirates": "🇦🇪",
+ "united_kingdom": "🇬🇧",
+ "united_nations": "🇺🇳",
+ "united_states": "🇺🇸",
+ "uruguay": "🇺🇾",
+ "uzbekistan": "🇺🇿",
+ "vs_button": "🆚",
+ "vanuatu": "🇻🇺",
+ "vatican_city": "🇻🇦",
+ "venezuela": "🇻🇪",
+ "vietnam": "🇻🇳",
+ "virgo": "♍",
+ "wales": "🏴\U000e0067\U000e0062\U000e0077\U000e006c\U000e0073\U000e007f",
+ "wallis_&_futuna": "🇼🇫",
+ "western_sahara": "🇪🇭",
+ "yemen": "🇾🇪",
+ "zambia": "🇿🇲",
+ "zimbabwe": "🇿🇼",
+ "abacus": "🧮",
+ "adhesive_bandage": "🩹",
+ "admission_tickets": "🎟",
+ "adult": "🧑",
+ "adult_dark_skin_tone": "🧑🏿",
+ "adult_light_skin_tone": "🧑🏻",
+ "adult_medium-dark_skin_tone": "🧑🏾",
+ "adult_medium-light_skin_tone": "🧑🏼",
+ "adult_medium_skin_tone": "🧑🏽",
+ "aerial_tramway": "🚡",
+ "airplane": "✈",
+ "airplane_arrival": "🛬",
+ "airplane_departure": "🛫",
+ "alarm_clock": "⏰",
+ "alembic": "⚗",
+ "alien": "👽",
+ "alien_monster": "👾",
+ "ambulance": "🚑",
+ "american_football": "🏈",
+ "amphora": "🏺",
+ "anchor": "⚓",
+ "anger_symbol": "💢",
+ "angry_face": "😠",
+ "angry_face_with_horns": "👿",
+ "anguished_face": "😧",
+ "ant": "🐜",
+ "antenna_bars": "📶",
+ "anxious_face_with_sweat": "😰",
+ "articulated_lorry": "🚛",
+ "artist_palette": "🎨",
+ "astonished_face": "😲",
+ "atom_symbol": "⚛",
+ "auto_rickshaw": "🛺",
+ "automobile": "🚗",
+ "avocado": "🥑",
+ "axe": "🪓",
+ "baby": "👶",
+ "baby_angel": "👼",
+ "baby_angel_dark_skin_tone": "👼🏿",
+ "baby_angel_light_skin_tone": "👼🏻",
+ "baby_angel_medium-dark_skin_tone": "👼🏾",
+ "baby_angel_medium-light_skin_tone": "👼🏼",
+ "baby_angel_medium_skin_tone": "👼🏽",
+ "baby_bottle": "🍼",
+ "baby_chick": "🐤",
+ "baby_dark_skin_tone": "👶🏿",
+ "baby_light_skin_tone": "👶🏻",
+ "baby_medium-dark_skin_tone": "👶🏾",
+ "baby_medium-light_skin_tone": "👶🏼",
+ "baby_medium_skin_tone": "👶🏽",
+ "baby_symbol": "🚼",
+ "backhand_index_pointing_down": "👇",
+ "backhand_index_pointing_down_dark_skin_tone": "👇🏿",
+ "backhand_index_pointing_down_light_skin_tone": "👇🏻",
+ "backhand_index_pointing_down_medium-dark_skin_tone": "👇🏾",
+ "backhand_index_pointing_down_medium-light_skin_tone": "👇🏼",
+ "backhand_index_pointing_down_medium_skin_tone": "👇🏽",
+ "backhand_index_pointing_left": "👈",
+ "backhand_index_pointing_left_dark_skin_tone": "👈🏿",
+ "backhand_index_pointing_left_light_skin_tone": "👈🏻",
+ "backhand_index_pointing_left_medium-dark_skin_tone": "👈🏾",
+ "backhand_index_pointing_left_medium-light_skin_tone": "👈🏼",
+ "backhand_index_pointing_left_medium_skin_tone": "👈🏽",
+ "backhand_index_pointing_right": "👉",
+ "backhand_index_pointing_right_dark_skin_tone": "👉🏿",
+ "backhand_index_pointing_right_light_skin_tone": "👉🏻",
+ "backhand_index_pointing_right_medium-dark_skin_tone": "👉🏾",
+ "backhand_index_pointing_right_medium-light_skin_tone": "👉🏼",
+ "backhand_index_pointing_right_medium_skin_tone": "👉🏽",
+ "backhand_index_pointing_up": "👆",
+ "backhand_index_pointing_up_dark_skin_tone": "👆🏿",
+ "backhand_index_pointing_up_light_skin_tone": "👆🏻",
+ "backhand_index_pointing_up_medium-dark_skin_tone": "👆🏾",
+ "backhand_index_pointing_up_medium-light_skin_tone": "👆🏼",
+ "backhand_index_pointing_up_medium_skin_tone": "👆🏽",
+ "bacon": "🥓",
+ "badger": "🦡",
+ "badminton": "🏸",
+ "bagel": "🥯",
+ "baggage_claim": "🛄",
+ "baguette_bread": "🥖",
+ "balance_scale": "⚖",
+ "bald": "🦲",
+ "bald_man": "👨\u200d🦲",
+ "bald_woman": "👩\u200d🦲",
+ "ballet_shoes": "🩰",
+ "balloon": "🎈",
+ "ballot_box_with_ballot": "🗳",
+ "ballot_box_with_check": "☑",
+ "banana": "🍌",
+ "banjo": "🪕",
+ "bank": "🏦",
+ "bar_chart": "📊",
+ "barber_pole": "💈",
+ "baseball": "⚾",
+ "basket": "🧺",
+ "basketball": "🏀",
+ "bat": "🦇",
+ "bathtub": "🛁",
+ "battery": "🔋",
+ "beach_with_umbrella": "🏖",
+ "beaming_face_with_smiling_eyes": "😁",
+ "bear_face": "🐻",
+ "bearded_person": "🧔",
+ "bearded_person_dark_skin_tone": "🧔🏿",
+ "bearded_person_light_skin_tone": "🧔🏻",
+ "bearded_person_medium-dark_skin_tone": "🧔🏾",
+ "bearded_person_medium-light_skin_tone": "🧔🏼",
+ "bearded_person_medium_skin_tone": "🧔🏽",
+ "beating_heart": "💓",
+ "bed": "🛏",
+ "beer_mug": "🍺",
+ "bell": "🔔",
+ "bell_with_slash": "🔕",
+ "bellhop_bell": "🛎",
+ "bento_box": "🍱",
+ "beverage_box": "🧃",
+ "bicycle": "🚲",
+ "bikini": "👙",
+ "billed_cap": "🧢",
+ "biohazard": "☣",
+ "bird": "🐦",
+ "birthday_cake": "🎂",
+ "black_circle": "⚫",
+ "black_flag": "🏴",
+ "black_heart": "🖤",
+ "black_large_square": "⬛",
+ "black_medium-small_square": "◾",
+ "black_medium_square": "◼",
+ "black_nib": "✒",
+ "black_small_square": "▪",
+ "black_square_button": "🔲",
+ "blond-haired_man": "👱\u200d♂️",
+ "blond-haired_man_dark_skin_tone": "👱🏿\u200d♂️",
+ "blond-haired_man_light_skin_tone": "👱🏻\u200d♂️",
+ "blond-haired_man_medium-dark_skin_tone": "👱🏾\u200d♂️",
+ "blond-haired_man_medium-light_skin_tone": "👱🏼\u200d♂️",
+ "blond-haired_man_medium_skin_tone": "👱🏽\u200d♂️",
+ "blond-haired_person": "👱",
+ "blond-haired_person_dark_skin_tone": "👱🏿",
+ "blond-haired_person_light_skin_tone": "👱🏻",
+ "blond-haired_person_medium-dark_skin_tone": "👱🏾",
+ "blond-haired_person_medium-light_skin_tone": "👱🏼",
+ "blond-haired_person_medium_skin_tone": "👱🏽",
+ "blond-haired_woman": "👱\u200d♀️",
+ "blond-haired_woman_dark_skin_tone": "👱🏿\u200d♀️",
+ "blond-haired_woman_light_skin_tone": "👱🏻\u200d♀️",
+ "blond-haired_woman_medium-dark_skin_tone": "👱🏾\u200d♀️",
+ "blond-haired_woman_medium-light_skin_tone": "👱🏼\u200d♀️",
+ "blond-haired_woman_medium_skin_tone": "👱🏽\u200d♀️",
+ "blossom": "🌼",
+ "blowfish": "🐡",
+ "blue_book": "📘",
+ "blue_circle": "🔵",
+ "blue_heart": "💙",
+ "blue_square": "🟦",
+ "boar": "🐗",
+ "bomb": "💣",
+ "bone": "🦴",
+ "bookmark": "🔖",
+ "bookmark_tabs": "📑",
+ "books": "📚",
+ "bottle_with_popping_cork": "🍾",
+ "bouquet": "💐",
+ "bow_and_arrow": "🏹",
+ "bowl_with_spoon": "🥣",
+ "bowling": "🎳",
+ "boxing_glove": "🥊",
+ "boy": "👦",
+ "boy_dark_skin_tone": "👦🏿",
+ "boy_light_skin_tone": "👦🏻",
+ "boy_medium-dark_skin_tone": "👦🏾",
+ "boy_medium-light_skin_tone": "👦🏼",
+ "boy_medium_skin_tone": "👦🏽",
+ "brain": "🧠",
+ "bread": "🍞",
+ "breast-feeding": "🤱",
+ "breast-feeding_dark_skin_tone": "🤱🏿",
+ "breast-feeding_light_skin_tone": "🤱🏻",
+ "breast-feeding_medium-dark_skin_tone": "🤱🏾",
+ "breast-feeding_medium-light_skin_tone": "🤱🏼",
+ "breast-feeding_medium_skin_tone": "🤱🏽",
+ "brick": "🧱",
+ "bride_with_veil": "👰",
+ "bride_with_veil_dark_skin_tone": "👰🏿",
+ "bride_with_veil_light_skin_tone": "👰🏻",
+ "bride_with_veil_medium-dark_skin_tone": "👰🏾",
+ "bride_with_veil_medium-light_skin_tone": "👰🏼",
+ "bride_with_veil_medium_skin_tone": "👰🏽",
+ "bridge_at_night": "🌉",
+ "briefcase": "💼",
+ "briefs": "🩲",
+ "bright_button": "🔆",
+ "broccoli": "🥦",
+ "broken_heart": "💔",
+ "broom": "🧹",
+ "brown_circle": "🟤",
+ "brown_heart": "🤎",
+ "brown_square": "🟫",
+ "bug": "🐛",
+ "building_construction": "🏗",
+ "bullet_train": "🚅",
+ "burrito": "🌯",
+ "bus": "🚌",
+ "bus_stop": "🚏",
+ "bust_in_silhouette": "👤",
+ "busts_in_silhouette": "👥",
+ "butter": "🧈",
+ "butterfly": "🦋",
+ "cactus": "🌵",
+ "calendar": "📆",
+ "call_me_hand": "🤙",
+ "call_me_hand_dark_skin_tone": "🤙🏿",
+ "call_me_hand_light_skin_tone": "🤙🏻",
+ "call_me_hand_medium-dark_skin_tone": "🤙🏾",
+ "call_me_hand_medium-light_skin_tone": "🤙🏼",
+ "call_me_hand_medium_skin_tone": "🤙🏽",
+ "camel": "🐫",
+ "camera": "📷",
+ "camera_with_flash": "📸",
+ "camping": "🏕",
+ "candle": "🕯",
+ "candy": "🍬",
+ "canned_food": "🥫",
+ "canoe": "🛶",
+ "card_file_box": "🗃",
+ "card_index": "📇",
+ "card_index_dividers": "🗂",
+ "carousel_horse": "🎠",
+ "carp_streamer": "🎏",
+ "carrot": "🥕",
+ "castle": "🏰",
+ "cat": "🐱",
+ "cat_face": "🐱",
+ "cat_face_with_tears_of_joy": "😹",
+ "cat_face_with_wry_smile": "😼",
+ "chains": "⛓",
+ "chair": "🪑",
+ "chart_decreasing": "📉",
+ "chart_increasing": "📈",
+ "chart_increasing_with_yen": "💹",
+ "cheese_wedge": "🧀",
+ "chequered_flag": "🏁",
+ "cherries": "🍒",
+ "cherry_blossom": "🌸",
+ "chess_pawn": "♟",
+ "chestnut": "🌰",
+ "chicken": "🐔",
+ "child": "🧒",
+ "child_dark_skin_tone": "🧒🏿",
+ "child_light_skin_tone": "🧒🏻",
+ "child_medium-dark_skin_tone": "🧒🏾",
+ "child_medium-light_skin_tone": "🧒🏼",
+ "child_medium_skin_tone": "🧒🏽",
+ "children_crossing": "🚸",
+ "chipmunk": "🐿",
+ "chocolate_bar": "🍫",
+ "chopsticks": "🥢",
+ "church": "⛪",
+ "cigarette": "🚬",
+ "cinema": "🎦",
+ "circled_m": "Ⓜ",
+ "circus_tent": "🎪",
+ "cityscape": "🏙",
+ "cityscape_at_dusk": "🌆",
+ "clamp": "🗜",
+ "clapper_board": "🎬",
+ "clapping_hands": "👏",
+ "clapping_hands_dark_skin_tone": "👏🏿",
+ "clapping_hands_light_skin_tone": "👏🏻",
+ "clapping_hands_medium-dark_skin_tone": "👏🏾",
+ "clapping_hands_medium-light_skin_tone": "👏🏼",
+ "clapping_hands_medium_skin_tone": "👏🏽",
+ "classical_building": "🏛",
+ "clinking_beer_mugs": "🍻",
+ "clinking_glasses": "🥂",
+ "clipboard": "📋",
+ "clockwise_vertical_arrows": "🔃",
+ "closed_book": "📕",
+ "closed_mailbox_with_lowered_flag": "📪",
+ "closed_mailbox_with_raised_flag": "📫",
+ "closed_umbrella": "🌂",
+ "cloud": "☁",
+ "cloud_with_lightning": "🌩",
+ "cloud_with_lightning_and_rain": "⛈",
+ "cloud_with_rain": "🌧",
+ "cloud_with_snow": "🌨",
+ "clown_face": "🤡",
+ "club_suit": "♣",
+ "clutch_bag": "👝",
+ "coat": "🧥",
+ "cocktail_glass": "🍸",
+ "coconut": "🥥",
+ "coffin": "⚰",
+ "cold_face": "🥶",
+ "collision": "💥",
+ "comet": "☄",
+ "compass": "🧭",
+ "computer_disk": "💽",
+ "computer_mouse": "🖱",
+ "confetti_ball": "🎊",
+ "confounded_face": "😖",
+ "confused_face": "😕",
+ "construction": "🚧",
+ "construction_worker": "👷",
+ "construction_worker_dark_skin_tone": "👷🏿",
+ "construction_worker_light_skin_tone": "👷🏻",
+ "construction_worker_medium-dark_skin_tone": "👷🏾",
+ "construction_worker_medium-light_skin_tone": "👷🏼",
+ "construction_worker_medium_skin_tone": "👷🏽",
+ "control_knobs": "🎛",
+ "convenience_store": "🏪",
+ "cooked_rice": "🍚",
+ "cookie": "🍪",
+ "cooking": "🍳",
+ "copyright": "©",
+ "couch_and_lamp": "🛋",
+ "counterclockwise_arrows_button": "🔄",
+ "couple_with_heart": "💑",
+ "couple_with_heart_man_man": "👨\u200d❤️\u200d👨",
+ "couple_with_heart_woman_man": "👩\u200d❤️\u200d👨",
+ "couple_with_heart_woman_woman": "👩\u200d❤️\u200d👩",
+ "cow": "🐮",
+ "cow_face": "🐮",
+ "cowboy_hat_face": "🤠",
+ "crab": "🦀",
+ "crayon": "🖍",
+ "credit_card": "💳",
+ "crescent_moon": "🌙",
+ "cricket": "🦗",
+ "cricket_game": "🏏",
+ "crocodile": "🐊",
+ "croissant": "🥐",
+ "cross_mark": "❌",
+ "cross_mark_button": "❎",
+ "crossed_fingers": "🤞",
+ "crossed_fingers_dark_skin_tone": "🤞🏿",
+ "crossed_fingers_light_skin_tone": "🤞🏻",
+ "crossed_fingers_medium-dark_skin_tone": "🤞🏾",
+ "crossed_fingers_medium-light_skin_tone": "🤞🏼",
+ "crossed_fingers_medium_skin_tone": "🤞🏽",
+ "crossed_flags": "🎌",
+ "crossed_swords": "⚔",
+ "crown": "👑",
+ "crying_cat_face": "😿",
+ "crying_face": "😢",
+ "crystal_ball": "🔮",
+ "cucumber": "🥒",
+ "cupcake": "🧁",
+ "cup_with_straw": "🥤",
+ "curling_stone": "🥌",
+ "curly_hair": "🦱",
+ "curly-haired_man": "👨\u200d🦱",
+ "curly-haired_woman": "👩\u200d🦱",
+ "curly_loop": "➰",
+ "currency_exchange": "💱",
+ "curry_rice": "🍛",
+ "custard": "🍮",
+ "customs": "🛃",
+ "cut_of_meat": "🥩",
+ "cyclone": "🌀",
+ "dagger": "🗡",
+ "dango": "🍡",
+ "dashing_away": "💨",
+ "deaf_person": "🧏",
+ "deciduous_tree": "🌳",
+ "deer": "🦌",
+ "delivery_truck": "🚚",
+ "department_store": "🏬",
+ "derelict_house": "🏚",
+ "desert": "🏜",
+ "desert_island": "🏝",
+ "desktop_computer": "🖥",
+ "detective": "🕵",
+ "detective_dark_skin_tone": "🕵🏿",
+ "detective_light_skin_tone": "🕵🏻",
+ "detective_medium-dark_skin_tone": "🕵🏾",
+ "detective_medium-light_skin_tone": "🕵🏼",
+ "detective_medium_skin_tone": "🕵🏽",
+ "diamond_suit": "♦",
+ "diamond_with_a_dot": "💠",
+ "dim_button": "🔅",
+ "direct_hit": "🎯",
+ "disappointed_face": "😞",
+ "diving_mask": "🤿",
+ "diya_lamp": "🪔",
+ "dizzy": "💫",
+ "dizzy_face": "😵",
+ "dna": "🧬",
+ "dog": "🐶",
+ "dog_face": "🐶",
+ "dollar_banknote": "💵",
+ "dolphin": "🐬",
+ "door": "🚪",
+ "dotted_six-pointed_star": "🔯",
+ "double_curly_loop": "➿",
+ "double_exclamation_mark": "‼",
+ "doughnut": "🍩",
+ "dove": "🕊",
+ "down-left_arrow": "↙",
+ "down-right_arrow": "↘",
+ "down_arrow": "⬇",
+ "downcast_face_with_sweat": "😓",
+ "downwards_button": "🔽",
+ "dragon": "🐉",
+ "dragon_face": "🐲",
+ "dress": "👗",
+ "drooling_face": "🤤",
+ "drop_of_blood": "🩸",
+ "droplet": "💧",
+ "drum": "🥁",
+ "duck": "🦆",
+ "dumpling": "🥟",
+ "dvd": "📀",
+ "e-mail": "📧",
+ "eagle": "🦅",
+ "ear": "👂",
+ "ear_dark_skin_tone": "👂🏿",
+ "ear_light_skin_tone": "👂🏻",
+ "ear_medium-dark_skin_tone": "👂🏾",
+ "ear_medium-light_skin_tone": "👂🏼",
+ "ear_medium_skin_tone": "👂🏽",
+ "ear_of_corn": "🌽",
+ "ear_with_hearing_aid": "🦻",
+ "egg": "🍳",
+ "eggplant": "🍆",
+ "eight-pointed_star": "✴",
+ "eight-spoked_asterisk": "✳",
+ "eight-thirty": "🕣",
+ "eight_o’clock": "🕗",
+ "eject_button": "⏏",
+ "electric_plug": "🔌",
+ "elephant": "🐘",
+ "eleven-thirty": "🕦",
+ "eleven_o’clock": "🕚",
+ "elf": "🧝",
+ "elf_dark_skin_tone": "🧝🏿",
+ "elf_light_skin_tone": "🧝🏻",
+ "elf_medium-dark_skin_tone": "🧝🏾",
+ "elf_medium-light_skin_tone": "🧝🏼",
+ "elf_medium_skin_tone": "🧝🏽",
+ "envelope": "✉",
+ "envelope_with_arrow": "📩",
+ "euro_banknote": "💶",
+ "evergreen_tree": "🌲",
+ "ewe": "🐑",
+ "exclamation_mark": "❗",
+ "exclamation_question_mark": "⁉",
+ "exploding_head": "🤯",
+ "expressionless_face": "😑",
+ "eye": "👁",
+ "eye_in_speech_bubble": "👁️\u200d🗨️",
+ "eyes": "👀",
+ "face_blowing_a_kiss": "😘",
+ "face_savoring_food": "😋",
+ "face_screaming_in_fear": "😱",
+ "face_vomiting": "🤮",
+ "face_with_hand_over_mouth": "🤭",
+ "face_with_head-bandage": "🤕",
+ "face_with_medical_mask": "😷",
+ "face_with_monocle": "🧐",
+ "face_with_open_mouth": "😮",
+ "face_with_raised_eyebrow": "🤨",
+ "face_with_rolling_eyes": "🙄",
+ "face_with_steam_from_nose": "😤",
+ "face_with_symbols_on_mouth": "🤬",
+ "face_with_tears_of_joy": "😂",
+ "face_with_thermometer": "🤒",
+ "face_with_tongue": "😛",
+ "face_without_mouth": "😶",
+ "factory": "🏭",
+ "fairy": "🧚",
+ "fairy_dark_skin_tone": "🧚🏿",
+ "fairy_light_skin_tone": "🧚🏻",
+ "fairy_medium-dark_skin_tone": "🧚🏾",
+ "fairy_medium-light_skin_tone": "🧚🏼",
+ "fairy_medium_skin_tone": "🧚🏽",
+ "falafel": "🧆",
+ "fallen_leaf": "🍂",
+ "family": "👪",
+ "family_man_boy": "👨\u200d👦",
+ "family_man_boy_boy": "👨\u200d👦\u200d👦",
+ "family_man_girl": "👨\u200d👧",
+ "family_man_girl_boy": "👨\u200d👧\u200d👦",
+ "family_man_girl_girl": "👨\u200d👧\u200d👧",
+ "family_man_man_boy": "👨\u200d👨\u200d👦",
+ "family_man_man_boy_boy": "👨\u200d👨\u200d👦\u200d👦",
+ "family_man_man_girl": "👨\u200d👨\u200d👧",
+ "family_man_man_girl_boy": "👨\u200d👨\u200d👧\u200d👦",
+ "family_man_man_girl_girl": "👨\u200d👨\u200d👧\u200d👧",
+ "family_man_woman_boy": "👨\u200d👩\u200d👦",
+ "family_man_woman_boy_boy": "👨\u200d👩\u200d👦\u200d👦",
+ "family_man_woman_girl": "👨\u200d👩\u200d👧",
+ "family_man_woman_girl_boy": "👨\u200d👩\u200d👧\u200d👦",
+ "family_man_woman_girl_girl": "👨\u200d👩\u200d👧\u200d👧",
+ "family_woman_boy": "👩\u200d👦",
+ "family_woman_boy_boy": "👩\u200d👦\u200d👦",
+ "family_woman_girl": "👩\u200d👧",
+ "family_woman_girl_boy": "👩\u200d👧\u200d👦",
+ "family_woman_girl_girl": "👩\u200d👧\u200d👧",
+ "family_woman_woman_boy": "👩\u200d👩\u200d👦",
+ "family_woman_woman_boy_boy": "👩\u200d👩\u200d👦\u200d👦",
+ "family_woman_woman_girl": "👩\u200d👩\u200d👧",
+ "family_woman_woman_girl_boy": "👩\u200d👩\u200d👧\u200d👦",
+ "family_woman_woman_girl_girl": "👩\u200d👩\u200d👧\u200d👧",
+ "fast-forward_button": "⏩",
+ "fast_down_button": "⏬",
+ "fast_reverse_button": "⏪",
+ "fast_up_button": "⏫",
+ "fax_machine": "📠",
+ "fearful_face": "😨",
+ "female_sign": "♀",
+ "ferris_wheel": "🎡",
+ "ferry": "⛴",
+ "field_hockey": "🏑",
+ "file_cabinet": "🗄",
+ "file_folder": "📁",
+ "film_frames": "🎞",
+ "film_projector": "📽",
+ "fire": "🔥",
+ "fire_extinguisher": "🧯",
+ "firecracker": "🧨",
+ "fire_engine": "🚒",
+ "fireworks": "🎆",
+ "first_quarter_moon": "🌓",
+ "first_quarter_moon_face": "🌛",
+ "fish": "🐟",
+ "fish_cake_with_swirl": "🍥",
+ "fishing_pole": "🎣",
+ "five-thirty": "🕠",
+ "five_o’clock": "🕔",
+ "flag_in_hole": "⛳",
+ "flamingo": "🦩",
+ "flashlight": "🔦",
+ "flat_shoe": "🥿",
+ "fleur-de-lis": "⚜",
+ "flexed_biceps": "💪",
+ "flexed_biceps_dark_skin_tone": "💪🏿",
+ "flexed_biceps_light_skin_tone": "💪🏻",
+ "flexed_biceps_medium-dark_skin_tone": "💪🏾",
+ "flexed_biceps_medium-light_skin_tone": "💪🏼",
+ "flexed_biceps_medium_skin_tone": "💪🏽",
+ "floppy_disk": "💾",
+ "flower_playing_cards": "🎴",
+ "flushed_face": "😳",
+ "flying_disc": "🥏",
+ "flying_saucer": "🛸",
+ "fog": "🌫",
+ "foggy": "🌁",
+ "folded_hands": "🙏",
+ "folded_hands_dark_skin_tone": "🙏🏿",
+ "folded_hands_light_skin_tone": "🙏🏻",
+ "folded_hands_medium-dark_skin_tone": "🙏🏾",
+ "folded_hands_medium-light_skin_tone": "🙏🏼",
+ "folded_hands_medium_skin_tone": "🙏🏽",
+ "foot": "🦶",
+ "footprints": "👣",
+ "fork_and_knife": "🍴",
+ "fork_and_knife_with_plate": "🍽",
+ "fortune_cookie": "🥠",
+ "fountain": "⛲",
+ "fountain_pen": "🖋",
+ "four-thirty": "🕟",
+ "four_leaf_clover": "🍀",
+ "four_o’clock": "🕓",
+ "fox_face": "🦊",
+ "framed_picture": "🖼",
+ "french_fries": "🍟",
+ "fried_shrimp": "🍤",
+ "frog_face": "🐸",
+ "front-facing_baby_chick": "🐥",
+ "frowning_face": "☹",
+ "frowning_face_with_open_mouth": "😦",
+ "fuel_pump": "⛽",
+ "full_moon": "🌕",
+ "full_moon_face": "🌝",
+ "funeral_urn": "⚱",
+ "game_die": "🎲",
+ "garlic": "🧄",
+ "gear": "⚙",
+ "gem_stone": "💎",
+ "genie": "🧞",
+ "ghost": "👻",
+ "giraffe": "🦒",
+ "girl": "👧",
+ "girl_dark_skin_tone": "👧🏿",
+ "girl_light_skin_tone": "👧🏻",
+ "girl_medium-dark_skin_tone": "👧🏾",
+ "girl_medium-light_skin_tone": "👧🏼",
+ "girl_medium_skin_tone": "👧🏽",
+ "glass_of_milk": "🥛",
+ "glasses": "👓",
+ "globe_showing_americas": "🌎",
+ "globe_showing_asia-australia": "🌏",
+ "globe_showing_europe-africa": "🌍",
+ "globe_with_meridians": "🌐",
+ "gloves": "🧤",
+ "glowing_star": "🌟",
+ "goal_net": "🥅",
+ "goat": "🐐",
+ "goblin": "👺",
+ "goggles": "🥽",
+ "gorilla": "🦍",
+ "graduation_cap": "🎓",
+ "grapes": "🍇",
+ "green_apple": "🍏",
+ "green_book": "📗",
+ "green_circle": "🟢",
+ "green_heart": "💚",
+ "green_salad": "🥗",
+ "green_square": "🟩",
+ "grimacing_face": "😬",
+ "grinning_cat_face": "😺",
+ "grinning_cat_face_with_smiling_eyes": "😸",
+ "grinning_face": "😀",
+ "grinning_face_with_big_eyes": "😃",
+ "grinning_face_with_smiling_eyes": "😄",
+ "grinning_face_with_sweat": "😅",
+ "grinning_squinting_face": "😆",
+ "growing_heart": "💗",
+ "guard": "💂",
+ "guard_dark_skin_tone": "💂🏿",
+ "guard_light_skin_tone": "💂🏻",
+ "guard_medium-dark_skin_tone": "💂🏾",
+ "guard_medium-light_skin_tone": "💂🏼",
+ "guard_medium_skin_tone": "💂🏽",
+ "guide_dog": "🦮",
+ "guitar": "🎸",
+ "hamburger": "🍔",
+ "hammer": "🔨",
+ "hammer_and_pick": "⚒",
+ "hammer_and_wrench": "🛠",
+ "hamster_face": "🐹",
+ "hand_with_fingers_splayed": "🖐",
+ "hand_with_fingers_splayed_dark_skin_tone": "🖐🏿",
+ "hand_with_fingers_splayed_light_skin_tone": "🖐🏻",
+ "hand_with_fingers_splayed_medium-dark_skin_tone": "🖐🏾",
+ "hand_with_fingers_splayed_medium-light_skin_tone": "🖐🏼",
+ "hand_with_fingers_splayed_medium_skin_tone": "🖐🏽",
+ "handbag": "👜",
+ "handshake": "🤝",
+ "hatching_chick": "🐣",
+ "headphone": "🎧",
+ "hear-no-evil_monkey": "🙉",
+ "heart_decoration": "💟",
+ "heart_suit": "♥",
+ "heart_with_arrow": "💘",
+ "heart_with_ribbon": "💝",
+ "heavy_check_mark": "✔",
+ "heavy_division_sign": "➗",
+ "heavy_dollar_sign": "💲",
+ "heavy_heart_exclamation": "❣",
+ "heavy_large_circle": "⭕",
+ "heavy_minus_sign": "➖",
+ "heavy_multiplication_x": "✖",
+ "heavy_plus_sign": "➕",
+ "hedgehog": "🦔",
+ "helicopter": "🚁",
+ "herb": "🌿",
+ "hibiscus": "🌺",
+ "high-heeled_shoe": "👠",
+ "high-speed_train": "🚄",
+ "high_voltage": "⚡",
+ "hiking_boot": "🥾",
+ "hindu_temple": "🛕",
+ "hippopotamus": "🦛",
+ "hole": "🕳",
+ "honey_pot": "🍯",
+ "honeybee": "🐝",
+ "horizontal_traffic_light": "🚥",
+ "horse": "🐴",
+ "horse_face": "🐴",
+ "horse_racing": "🏇",
+ "horse_racing_dark_skin_tone": "🏇🏿",
+ "horse_racing_light_skin_tone": "🏇🏻",
+ "horse_racing_medium-dark_skin_tone": "🏇🏾",
+ "horse_racing_medium-light_skin_tone": "🏇🏼",
+ "horse_racing_medium_skin_tone": "🏇🏽",
+ "hospital": "🏥",
+ "hot_beverage": "☕",
+ "hot_dog": "🌭",
+ "hot_face": "🥵",
+ "hot_pepper": "🌶",
+ "hot_springs": "♨",
+ "hotel": "🏨",
+ "hourglass_done": "⌛",
+ "hourglass_not_done": "⏳",
+ "house": "🏠",
+ "house_with_garden": "🏡",
+ "houses": "🏘",
+ "hugging_face": "🤗",
+ "hundred_points": "💯",
+ "hushed_face": "😯",
+ "ice": "🧊",
+ "ice_cream": "🍨",
+ "ice_hockey": "🏒",
+ "ice_skate": "⛸",
+ "inbox_tray": "📥",
+ "incoming_envelope": "📨",
+ "index_pointing_up": "☝",
+ "index_pointing_up_dark_skin_tone": "☝🏿",
+ "index_pointing_up_light_skin_tone": "☝🏻",
+ "index_pointing_up_medium-dark_skin_tone": "☝🏾",
+ "index_pointing_up_medium-light_skin_tone": "☝🏼",
+ "index_pointing_up_medium_skin_tone": "☝🏽",
+ "infinity": "♾",
+ "information": "ℹ",
+ "input_latin_letters": "🔤",
+ "input_latin_lowercase": "🔡",
+ "input_latin_uppercase": "🔠",
+ "input_numbers": "🔢",
+ "input_symbols": "🔣",
+ "jack-o-lantern": "🎃",
+ "jeans": "👖",
+ "jigsaw": "🧩",
+ "joker": "🃏",
+ "joystick": "🕹",
+ "kaaba": "🕋",
+ "kangaroo": "🦘",
+ "key": "🔑",
+ "keyboard": "⌨",
+ "keycap_#": "#️⃣",
+ "keycap_*": "*️⃣",
+ "keycap_0": "0️⃣",
+ "keycap_1": "1️⃣",
+ "keycap_10": "🔟",
+ "keycap_2": "2️⃣",
+ "keycap_3": "3️⃣",
+ "keycap_4": "4️⃣",
+ "keycap_5": "5️⃣",
+ "keycap_6": "6️⃣",
+ "keycap_7": "7️⃣",
+ "keycap_8": "8️⃣",
+ "keycap_9": "9️⃣",
+ "kick_scooter": "🛴",
+ "kimono": "👘",
+ "kiss": "💋",
+ "kiss_man_man": "👨\u200d❤️\u200d💋\u200d👨",
+ "kiss_mark": "💋",
+ "kiss_woman_man": "👩\u200d❤️\u200d💋\u200d👨",
+ "kiss_woman_woman": "👩\u200d❤️\u200d💋\u200d👩",
+ "kissing_cat_face": "😽",
+ "kissing_face": "😗",
+ "kissing_face_with_closed_eyes": "😚",
+ "kissing_face_with_smiling_eyes": "😙",
+ "kitchen_knife": "🔪",
+ "kite": "🪁",
+ "kiwi_fruit": "🥝",
+ "koala": "🐨",
+ "lab_coat": "🥼",
+ "label": "🏷",
+ "lacrosse": "🥍",
+ "lady_beetle": "🐞",
+ "laptop_computer": "💻",
+ "large_blue_diamond": "🔷",
+ "large_orange_diamond": "🔶",
+ "last_quarter_moon": "🌗",
+ "last_quarter_moon_face": "🌜",
+ "last_track_button": "⏮",
+ "latin_cross": "✝",
+ "leaf_fluttering_in_wind": "🍃",
+ "leafy_green": "🥬",
+ "ledger": "📒",
+ "left-facing_fist": "🤛",
+ "left-facing_fist_dark_skin_tone": "🤛🏿",
+ "left-facing_fist_light_skin_tone": "🤛🏻",
+ "left-facing_fist_medium-dark_skin_tone": "🤛🏾",
+ "left-facing_fist_medium-light_skin_tone": "🤛🏼",
+ "left-facing_fist_medium_skin_tone": "🤛🏽",
+ "left-right_arrow": "↔",
+ "left_arrow": "⬅",
+ "left_arrow_curving_right": "↪",
+ "left_luggage": "🛅",
+ "left_speech_bubble": "🗨",
+ "leg": "🦵",
+ "lemon": "🍋",
+ "leopard": "🐆",
+ "level_slider": "🎚",
+ "light_bulb": "💡",
+ "light_rail": "🚈",
+ "link": "🔗",
+ "linked_paperclips": "🖇",
+ "lion_face": "🦁",
+ "lipstick": "💄",
+ "litter_in_bin_sign": "🚮",
+ "lizard": "🦎",
+ "llama": "🦙",
+ "lobster": "🦞",
+ "locked": "🔒",
+ "locked_with_key": "🔐",
+ "locked_with_pen": "🔏",
+ "locomotive": "🚂",
+ "lollipop": "🍭",
+ "lotion_bottle": "🧴",
+ "loudly_crying_face": "😭",
+ "loudspeaker": "📢",
+ "love-you_gesture": "🤟",
+ "love-you_gesture_dark_skin_tone": "🤟🏿",
+ "love-you_gesture_light_skin_tone": "🤟🏻",
+ "love-you_gesture_medium-dark_skin_tone": "🤟🏾",
+ "love-you_gesture_medium-light_skin_tone": "🤟🏼",
+ "love-you_gesture_medium_skin_tone": "🤟🏽",
+ "love_hotel": "🏩",
+ "love_letter": "💌",
+ "luggage": "🧳",
+ "lying_face": "🤥",
+ "mage": "🧙",
+ "mage_dark_skin_tone": "🧙🏿",
+ "mage_light_skin_tone": "🧙🏻",
+ "mage_medium-dark_skin_tone": "🧙🏾",
+ "mage_medium-light_skin_tone": "🧙🏼",
+ "mage_medium_skin_tone": "🧙🏽",
+ "magnet": "🧲",
+ "magnifying_glass_tilted_left": "🔍",
+ "magnifying_glass_tilted_right": "🔎",
+ "mahjong_red_dragon": "🀄",
+ "male_sign": "♂",
+ "man": "👨",
+ "man_and_woman_holding_hands": "👫",
+ "man_artist": "👨\u200d🎨",
+ "man_artist_dark_skin_tone": "👨🏿\u200d🎨",
+ "man_artist_light_skin_tone": "👨🏻\u200d🎨",
+ "man_artist_medium-dark_skin_tone": "👨🏾\u200d🎨",
+ "man_artist_medium-light_skin_tone": "👨🏼\u200d🎨",
+ "man_artist_medium_skin_tone": "👨🏽\u200d🎨",
+ "man_astronaut": "👨\u200d🚀",
+ "man_astronaut_dark_skin_tone": "👨🏿\u200d🚀",
+ "man_astronaut_light_skin_tone": "👨🏻\u200d🚀",
+ "man_astronaut_medium-dark_skin_tone": "👨🏾\u200d🚀",
+ "man_astronaut_medium-light_skin_tone": "👨🏼\u200d🚀",
+ "man_astronaut_medium_skin_tone": "👨🏽\u200d🚀",
+ "man_biking": "🚴\u200d♂️",
+ "man_biking_dark_skin_tone": "🚴🏿\u200d♂️",
+ "man_biking_light_skin_tone": "🚴🏻\u200d♂️",
+ "man_biking_medium-dark_skin_tone": "🚴🏾\u200d♂️",
+ "man_biking_medium-light_skin_tone": "🚴🏼\u200d♂️",
+ "man_biking_medium_skin_tone": "🚴🏽\u200d♂️",
+ "man_bouncing_ball": "⛹️\u200d♂️",
+ "man_bouncing_ball_dark_skin_tone": "⛹🏿\u200d♂️",
+ "man_bouncing_ball_light_skin_tone": "⛹🏻\u200d♂️",
+ "man_bouncing_ball_medium-dark_skin_tone": "⛹🏾\u200d♂️",
+ "man_bouncing_ball_medium-light_skin_tone": "⛹🏼\u200d♂️",
+ "man_bouncing_ball_medium_skin_tone": "⛹🏽\u200d♂️",
+ "man_bowing": "🙇\u200d♂️",
+ "man_bowing_dark_skin_tone": "🙇🏿\u200d♂️",
+ "man_bowing_light_skin_tone": "🙇🏻\u200d♂️",
+ "man_bowing_medium-dark_skin_tone": "🙇🏾\u200d♂️",
+ "man_bowing_medium-light_skin_tone": "🙇🏼\u200d♂️",
+ "man_bowing_medium_skin_tone": "🙇🏽\u200d♂️",
+ "man_cartwheeling": "🤸\u200d♂️",
+ "man_cartwheeling_dark_skin_tone": "🤸🏿\u200d♂️",
+ "man_cartwheeling_light_skin_tone": "🤸🏻\u200d♂️",
+ "man_cartwheeling_medium-dark_skin_tone": "🤸🏾\u200d♂️",
+ "man_cartwheeling_medium-light_skin_tone": "🤸🏼\u200d♂️",
+ "man_cartwheeling_medium_skin_tone": "🤸🏽\u200d♂️",
+ "man_climbing": "🧗\u200d♂️",
+ "man_climbing_dark_skin_tone": "🧗🏿\u200d♂️",
+ "man_climbing_light_skin_tone": "🧗🏻\u200d♂️",
+ "man_climbing_medium-dark_skin_tone": "🧗🏾\u200d♂️",
+ "man_climbing_medium-light_skin_tone": "🧗🏼\u200d♂️",
+ "man_climbing_medium_skin_tone": "🧗🏽\u200d♂️",
+ "man_construction_worker": "👷\u200d♂️",
+ "man_construction_worker_dark_skin_tone": "👷🏿\u200d♂️",
+ "man_construction_worker_light_skin_tone": "👷🏻\u200d♂️",
+ "man_construction_worker_medium-dark_skin_tone": "👷🏾\u200d♂️",
+ "man_construction_worker_medium-light_skin_tone": "👷🏼\u200d♂️",
+ "man_construction_worker_medium_skin_tone": "👷🏽\u200d♂️",
+ "man_cook": "👨\u200d🍳",
+ "man_cook_dark_skin_tone": "👨🏿\u200d🍳",
+ "man_cook_light_skin_tone": "👨🏻\u200d🍳",
+ "man_cook_medium-dark_skin_tone": "👨🏾\u200d🍳",
+ "man_cook_medium-light_skin_tone": "👨🏼\u200d🍳",
+ "man_cook_medium_skin_tone": "👨🏽\u200d🍳",
+ "man_dancing": "🕺",
+ "man_dancing_dark_skin_tone": "🕺🏿",
+ "man_dancing_light_skin_tone": "🕺🏻",
+ "man_dancing_medium-dark_skin_tone": "🕺🏾",
+ "man_dancing_medium-light_skin_tone": "🕺🏼",
+ "man_dancing_medium_skin_tone": "🕺🏽",
+ "man_dark_skin_tone": "👨🏿",
+ "man_detective": "🕵️\u200d♂️",
+ "man_detective_dark_skin_tone": "🕵🏿\u200d♂️",
+ "man_detective_light_skin_tone": "🕵🏻\u200d♂️",
+ "man_detective_medium-dark_skin_tone": "🕵🏾\u200d♂️",
+ "man_detective_medium-light_skin_tone": "🕵🏼\u200d♂️",
+ "man_detective_medium_skin_tone": "🕵🏽\u200d♂️",
+ "man_elf": "🧝\u200d♂️",
+ "man_elf_dark_skin_tone": "🧝🏿\u200d♂️",
+ "man_elf_light_skin_tone": "🧝🏻\u200d♂️",
+ "man_elf_medium-dark_skin_tone": "🧝🏾\u200d♂️",
+ "man_elf_medium-light_skin_tone": "🧝🏼\u200d♂️",
+ "man_elf_medium_skin_tone": "🧝🏽\u200d♂️",
+ "man_facepalming": "🤦\u200d♂️",
+ "man_facepalming_dark_skin_tone": "🤦🏿\u200d♂️",
+ "man_facepalming_light_skin_tone": "🤦🏻\u200d♂️",
+ "man_facepalming_medium-dark_skin_tone": "🤦🏾\u200d♂️",
+ "man_facepalming_medium-light_skin_tone": "🤦🏼\u200d♂️",
+ "man_facepalming_medium_skin_tone": "🤦🏽\u200d♂️",
+ "man_factory_worker": "👨\u200d🏭",
+ "man_factory_worker_dark_skin_tone": "👨🏿\u200d🏭",
+ "man_factory_worker_light_skin_tone": "👨🏻\u200d🏭",
+ "man_factory_worker_medium-dark_skin_tone": "👨🏾\u200d🏭",
+ "man_factory_worker_medium-light_skin_tone": "👨🏼\u200d🏭",
+ "man_factory_worker_medium_skin_tone": "👨🏽\u200d🏭",
+ "man_fairy": "🧚\u200d♂️",
+ "man_fairy_dark_skin_tone": "🧚🏿\u200d♂️",
+ "man_fairy_light_skin_tone": "🧚🏻\u200d♂️",
+ "man_fairy_medium-dark_skin_tone": "🧚🏾\u200d♂️",
+ "man_fairy_medium-light_skin_tone": "🧚🏼\u200d♂️",
+ "man_fairy_medium_skin_tone": "🧚🏽\u200d♂️",
+ "man_farmer": "👨\u200d🌾",
+ "man_farmer_dark_skin_tone": "👨🏿\u200d🌾",
+ "man_farmer_light_skin_tone": "👨🏻\u200d🌾",
+ "man_farmer_medium-dark_skin_tone": "👨🏾\u200d🌾",
+ "man_farmer_medium-light_skin_tone": "👨🏼\u200d🌾",
+ "man_farmer_medium_skin_tone": "👨🏽\u200d🌾",
+ "man_firefighter": "👨\u200d🚒",
+ "man_firefighter_dark_skin_tone": "👨🏿\u200d🚒",
+ "man_firefighter_light_skin_tone": "👨🏻\u200d🚒",
+ "man_firefighter_medium-dark_skin_tone": "👨🏾\u200d🚒",
+ "man_firefighter_medium-light_skin_tone": "👨🏼\u200d🚒",
+ "man_firefighter_medium_skin_tone": "👨🏽\u200d🚒",
+ "man_frowning": "🙍\u200d♂️",
+ "man_frowning_dark_skin_tone": "🙍🏿\u200d♂️",
+ "man_frowning_light_skin_tone": "🙍🏻\u200d♂️",
+ "man_frowning_medium-dark_skin_tone": "🙍🏾\u200d♂️",
+ "man_frowning_medium-light_skin_tone": "🙍🏼\u200d♂️",
+ "man_frowning_medium_skin_tone": "🙍🏽\u200d♂️",
+ "man_genie": "🧞\u200d♂️",
+ "man_gesturing_no": "🙅\u200d♂️",
+ "man_gesturing_no_dark_skin_tone": "🙅🏿\u200d♂️",
+ "man_gesturing_no_light_skin_tone": "🙅🏻\u200d♂️",
+ "man_gesturing_no_medium-dark_skin_tone": "🙅🏾\u200d♂️",
+ "man_gesturing_no_medium-light_skin_tone": "🙅🏼\u200d♂️",
+ "man_gesturing_no_medium_skin_tone": "🙅🏽\u200d♂️",
+ "man_gesturing_ok": "🙆\u200d♂️",
+ "man_gesturing_ok_dark_skin_tone": "🙆🏿\u200d♂️",
+ "man_gesturing_ok_light_skin_tone": "🙆🏻\u200d♂️",
+ "man_gesturing_ok_medium-dark_skin_tone": "🙆🏾\u200d♂️",
+ "man_gesturing_ok_medium-light_skin_tone": "🙆🏼\u200d♂️",
+ "man_gesturing_ok_medium_skin_tone": "🙆🏽\u200d♂️",
+ "man_getting_haircut": "💇\u200d♂️",
+ "man_getting_haircut_dark_skin_tone": "💇🏿\u200d♂️",
+ "man_getting_haircut_light_skin_tone": "💇🏻\u200d♂️",
+ "man_getting_haircut_medium-dark_skin_tone": "💇🏾\u200d♂️",
+ "man_getting_haircut_medium-light_skin_tone": "💇🏼\u200d♂️",
+ "man_getting_haircut_medium_skin_tone": "💇🏽\u200d♂️",
+ "man_getting_massage": "💆\u200d♂️",
+ "man_getting_massage_dark_skin_tone": "💆🏿\u200d♂️",
+ "man_getting_massage_light_skin_tone": "💆🏻\u200d♂️",
+ "man_getting_massage_medium-dark_skin_tone": "💆🏾\u200d♂️",
+ "man_getting_massage_medium-light_skin_tone": "💆🏼\u200d♂️",
+ "man_getting_massage_medium_skin_tone": "💆🏽\u200d♂️",
+ "man_golfing": "🏌️\u200d♂️",
+ "man_golfing_dark_skin_tone": "🏌🏿\u200d♂️",
+ "man_golfing_light_skin_tone": "🏌🏻\u200d♂️",
+ "man_golfing_medium-dark_skin_tone": "🏌🏾\u200d♂️",
+ "man_golfing_medium-light_skin_tone": "🏌🏼\u200d♂️",
+ "man_golfing_medium_skin_tone": "🏌🏽\u200d♂️",
+ "man_guard": "💂\u200d♂️",
+ "man_guard_dark_skin_tone": "💂🏿\u200d♂️",
+ "man_guard_light_skin_tone": "💂🏻\u200d♂️",
+ "man_guard_medium-dark_skin_tone": "💂🏾\u200d♂️",
+ "man_guard_medium-light_skin_tone": "💂🏼\u200d♂️",
+ "man_guard_medium_skin_tone": "💂🏽\u200d♂️",
+ "man_health_worker": "👨\u200d⚕️",
+ "man_health_worker_dark_skin_tone": "👨🏿\u200d⚕️",
+ "man_health_worker_light_skin_tone": "👨🏻\u200d⚕️",
+ "man_health_worker_medium-dark_skin_tone": "👨🏾\u200d⚕️",
+ "man_health_worker_medium-light_skin_tone": "👨🏼\u200d⚕️",
+ "man_health_worker_medium_skin_tone": "👨🏽\u200d⚕️",
+ "man_in_lotus_position": "🧘\u200d♂️",
+ "man_in_lotus_position_dark_skin_tone": "🧘🏿\u200d♂️",
+ "man_in_lotus_position_light_skin_tone": "🧘🏻\u200d♂️",
+ "man_in_lotus_position_medium-dark_skin_tone": "🧘🏾\u200d♂️",
+ "man_in_lotus_position_medium-light_skin_tone": "🧘🏼\u200d♂️",
+ "man_in_lotus_position_medium_skin_tone": "🧘🏽\u200d♂️",
+ "man_in_manual_wheelchair": "👨\u200d🦽",
+ "man_in_motorized_wheelchair": "👨\u200d🦼",
+ "man_in_steamy_room": "🧖\u200d♂️",
+ "man_in_steamy_room_dark_skin_tone": "🧖🏿\u200d♂️",
+ "man_in_steamy_room_light_skin_tone": "🧖🏻\u200d♂️",
+ "man_in_steamy_room_medium-dark_skin_tone": "🧖🏾\u200d♂️",
+ "man_in_steamy_room_medium-light_skin_tone": "🧖🏼\u200d♂️",
+ "man_in_steamy_room_medium_skin_tone": "🧖🏽\u200d♂️",
+ "man_in_suit_levitating": "🕴",
+ "man_in_suit_levitating_dark_skin_tone": "🕴🏿",
+ "man_in_suit_levitating_light_skin_tone": "🕴🏻",
+ "man_in_suit_levitating_medium-dark_skin_tone": "🕴🏾",
+ "man_in_suit_levitating_medium-light_skin_tone": "🕴🏼",
+ "man_in_suit_levitating_medium_skin_tone": "🕴🏽",
+ "man_in_tuxedo": "🤵",
+ "man_in_tuxedo_dark_skin_tone": "🤵🏿",
+ "man_in_tuxedo_light_skin_tone": "🤵🏻",
+ "man_in_tuxedo_medium-dark_skin_tone": "🤵🏾",
+ "man_in_tuxedo_medium-light_skin_tone": "🤵🏼",
+ "man_in_tuxedo_medium_skin_tone": "🤵🏽",
+ "man_judge": "👨\u200d⚖️",
+ "man_judge_dark_skin_tone": "👨🏿\u200d⚖️",
+ "man_judge_light_skin_tone": "👨🏻\u200d⚖️",
+ "man_judge_medium-dark_skin_tone": "👨🏾\u200d⚖️",
+ "man_judge_medium-light_skin_tone": "👨🏼\u200d⚖️",
+ "man_judge_medium_skin_tone": "👨🏽\u200d⚖️",
+ "man_juggling": "🤹\u200d♂️",
+ "man_juggling_dark_skin_tone": "🤹🏿\u200d♂️",
+ "man_juggling_light_skin_tone": "🤹🏻\u200d♂️",
+ "man_juggling_medium-dark_skin_tone": "🤹🏾\u200d♂️",
+ "man_juggling_medium-light_skin_tone": "🤹🏼\u200d♂️",
+ "man_juggling_medium_skin_tone": "🤹🏽\u200d♂️",
+ "man_lifting_weights": "🏋️\u200d♂️",
+ "man_lifting_weights_dark_skin_tone": "🏋🏿\u200d♂️",
+ "man_lifting_weights_light_skin_tone": "🏋🏻\u200d♂️",
+ "man_lifting_weights_medium-dark_skin_tone": "🏋🏾\u200d♂️",
+ "man_lifting_weights_medium-light_skin_tone": "🏋🏼\u200d♂️",
+ "man_lifting_weights_medium_skin_tone": "🏋🏽\u200d♂️",
+ "man_light_skin_tone": "👨🏻",
+ "man_mage": "🧙\u200d♂️",
+ "man_mage_dark_skin_tone": "🧙🏿\u200d♂️",
+ "man_mage_light_skin_tone": "🧙🏻\u200d♂️",
+ "man_mage_medium-dark_skin_tone": "🧙🏾\u200d♂️",
+ "man_mage_medium-light_skin_tone": "🧙🏼\u200d♂️",
+ "man_mage_medium_skin_tone": "🧙🏽\u200d♂️",
+ "man_mechanic": "👨\u200d🔧",
+ "man_mechanic_dark_skin_tone": "👨🏿\u200d🔧",
+ "man_mechanic_light_skin_tone": "👨🏻\u200d🔧",
+ "man_mechanic_medium-dark_skin_tone": "👨🏾\u200d🔧",
+ "man_mechanic_medium-light_skin_tone": "👨🏼\u200d🔧",
+ "man_mechanic_medium_skin_tone": "👨🏽\u200d🔧",
+ "man_medium-dark_skin_tone": "👨🏾",
+ "man_medium-light_skin_tone": "👨🏼",
+ "man_medium_skin_tone": "👨🏽",
+ "man_mountain_biking": "🚵\u200d♂️",
+ "man_mountain_biking_dark_skin_tone": "🚵🏿\u200d♂️",
+ "man_mountain_biking_light_skin_tone": "🚵🏻\u200d♂️",
+ "man_mountain_biking_medium-dark_skin_tone": "🚵🏾\u200d♂️",
+ "man_mountain_biking_medium-light_skin_tone": "🚵🏼\u200d♂️",
+ "man_mountain_biking_medium_skin_tone": "🚵🏽\u200d♂️",
+ "man_office_worker": "👨\u200d💼",
+ "man_office_worker_dark_skin_tone": "👨🏿\u200d💼",
+ "man_office_worker_light_skin_tone": "👨🏻\u200d💼",
+ "man_office_worker_medium-dark_skin_tone": "👨🏾\u200d💼",
+ "man_office_worker_medium-light_skin_tone": "👨🏼\u200d💼",
+ "man_office_worker_medium_skin_tone": "👨🏽\u200d💼",
+ "man_pilot": "👨\u200d✈️",
+ "man_pilot_dark_skin_tone": "👨🏿\u200d✈️",
+ "man_pilot_light_skin_tone": "👨🏻\u200d✈️",
+ "man_pilot_medium-dark_skin_tone": "👨🏾\u200d✈️",
+ "man_pilot_medium-light_skin_tone": "👨🏼\u200d✈️",
+ "man_pilot_medium_skin_tone": "👨🏽\u200d✈️",
+ "man_playing_handball": "🤾\u200d♂️",
+ "man_playing_handball_dark_skin_tone": "🤾🏿\u200d♂️",
+ "man_playing_handball_light_skin_tone": "🤾🏻\u200d♂️",
+ "man_playing_handball_medium-dark_skin_tone": "🤾🏾\u200d♂️",
+ "man_playing_handball_medium-light_skin_tone": "🤾🏼\u200d♂️",
+ "man_playing_handball_medium_skin_tone": "🤾🏽\u200d♂️",
+ "man_playing_water_polo": "🤽\u200d♂️",
+ "man_playing_water_polo_dark_skin_tone": "🤽🏿\u200d♂️",
+ "man_playing_water_polo_light_skin_tone": "🤽🏻\u200d♂️",
+ "man_playing_water_polo_medium-dark_skin_tone": "🤽🏾\u200d♂️",
+ "man_playing_water_polo_medium-light_skin_tone": "🤽🏼\u200d♂️",
+ "man_playing_water_polo_medium_skin_tone": "🤽🏽\u200d♂️",
+ "man_police_officer": "👮\u200d♂️",
+ "man_police_officer_dark_skin_tone": "👮🏿\u200d♂️",
+ "man_police_officer_light_skin_tone": "👮🏻\u200d♂️",
+ "man_police_officer_medium-dark_skin_tone": "👮🏾\u200d♂️",
+ "man_police_officer_medium-light_skin_tone": "👮🏼\u200d♂️",
+ "man_police_officer_medium_skin_tone": "👮🏽\u200d♂️",
+ "man_pouting": "🙎\u200d♂️",
+ "man_pouting_dark_skin_tone": "🙎🏿\u200d♂️",
+ "man_pouting_light_skin_tone": "🙎🏻\u200d♂️",
+ "man_pouting_medium-dark_skin_tone": "🙎🏾\u200d♂️",
+ "man_pouting_medium-light_skin_tone": "🙎🏼\u200d♂️",
+ "man_pouting_medium_skin_tone": "🙎🏽\u200d♂️",
+ "man_raising_hand": "🙋\u200d♂️",
+ "man_raising_hand_dark_skin_tone": "🙋🏿\u200d♂️",
+ "man_raising_hand_light_skin_tone": "🙋🏻\u200d♂️",
+ "man_raising_hand_medium-dark_skin_tone": "🙋🏾\u200d♂️",
+ "man_raising_hand_medium-light_skin_tone": "🙋🏼\u200d♂️",
+ "man_raising_hand_medium_skin_tone": "🙋🏽\u200d♂️",
+ "man_rowing_boat": "🚣\u200d♂️",
+ "man_rowing_boat_dark_skin_tone": "🚣🏿\u200d♂️",
+ "man_rowing_boat_light_skin_tone": "🚣🏻\u200d♂️",
+ "man_rowing_boat_medium-dark_skin_tone": "🚣🏾\u200d♂️",
+ "man_rowing_boat_medium-light_skin_tone": "🚣🏼\u200d♂️",
+ "man_rowing_boat_medium_skin_tone": "🚣🏽\u200d♂️",
+ "man_running": "🏃\u200d♂️",
+ "man_running_dark_skin_tone": "🏃🏿\u200d♂️",
+ "man_running_light_skin_tone": "🏃🏻\u200d♂️",
+ "man_running_medium-dark_skin_tone": "🏃🏾\u200d♂️",
+ "man_running_medium-light_skin_tone": "🏃🏼\u200d♂️",
+ "man_running_medium_skin_tone": "🏃🏽\u200d♂️",
+ "man_scientist": "👨\u200d🔬",
+ "man_scientist_dark_skin_tone": "👨🏿\u200d🔬",
+ "man_scientist_light_skin_tone": "👨🏻\u200d🔬",
+ "man_scientist_medium-dark_skin_tone": "👨🏾\u200d🔬",
+ "man_scientist_medium-light_skin_tone": "👨🏼\u200d🔬",
+ "man_scientist_medium_skin_tone": "👨🏽\u200d🔬",
+ "man_shrugging": "🤷\u200d♂️",
+ "man_shrugging_dark_skin_tone": "🤷🏿\u200d♂️",
+ "man_shrugging_light_skin_tone": "🤷🏻\u200d♂️",
+ "man_shrugging_medium-dark_skin_tone": "🤷🏾\u200d♂️",
+ "man_shrugging_medium-light_skin_tone": "🤷🏼\u200d♂️",
+ "man_shrugging_medium_skin_tone": "🤷🏽\u200d♂️",
+ "man_singer": "👨\u200d🎤",
+ "man_singer_dark_skin_tone": "👨🏿\u200d🎤",
+ "man_singer_light_skin_tone": "👨🏻\u200d🎤",
+ "man_singer_medium-dark_skin_tone": "👨🏾\u200d🎤",
+ "man_singer_medium-light_skin_tone": "👨🏼\u200d🎤",
+ "man_singer_medium_skin_tone": "👨🏽\u200d🎤",
+ "man_student": "👨\u200d🎓",
+ "man_student_dark_skin_tone": "👨🏿\u200d🎓",
+ "man_student_light_skin_tone": "👨🏻\u200d🎓",
+ "man_student_medium-dark_skin_tone": "👨🏾\u200d🎓",
+ "man_student_medium-light_skin_tone": "👨🏼\u200d🎓",
+ "man_student_medium_skin_tone": "👨🏽\u200d🎓",
+ "man_surfing": "🏄\u200d♂️",
+ "man_surfing_dark_skin_tone": "🏄🏿\u200d♂️",
+ "man_surfing_light_skin_tone": "🏄🏻\u200d♂️",
+ "man_surfing_medium-dark_skin_tone": "🏄🏾\u200d♂️",
+ "man_surfing_medium-light_skin_tone": "🏄🏼\u200d♂️",
+ "man_surfing_medium_skin_tone": "🏄🏽\u200d♂️",
+ "man_swimming": "🏊\u200d♂️",
+ "man_swimming_dark_skin_tone": "🏊🏿\u200d♂️",
+ "man_swimming_light_skin_tone": "🏊🏻\u200d♂️",
+ "man_swimming_medium-dark_skin_tone": "🏊🏾\u200d♂️",
+ "man_swimming_medium-light_skin_tone": "🏊🏼\u200d♂️",
+ "man_swimming_medium_skin_tone": "🏊🏽\u200d♂️",
+ "man_teacher": "👨\u200d🏫",
+ "man_teacher_dark_skin_tone": "👨🏿\u200d🏫",
+ "man_teacher_light_skin_tone": "👨🏻\u200d🏫",
+ "man_teacher_medium-dark_skin_tone": "👨🏾\u200d🏫",
+ "man_teacher_medium-light_skin_tone": "👨🏼\u200d🏫",
+ "man_teacher_medium_skin_tone": "👨🏽\u200d🏫",
+ "man_technologist": "👨\u200d💻",
+ "man_technologist_dark_skin_tone": "👨🏿\u200d💻",
+ "man_technologist_light_skin_tone": "👨🏻\u200d💻",
+ "man_technologist_medium-dark_skin_tone": "👨🏾\u200d💻",
+ "man_technologist_medium-light_skin_tone": "👨🏼\u200d💻",
+ "man_technologist_medium_skin_tone": "👨🏽\u200d💻",
+ "man_tipping_hand": "💁\u200d♂️",
+ "man_tipping_hand_dark_skin_tone": "💁🏿\u200d♂️",
+ "man_tipping_hand_light_skin_tone": "💁🏻\u200d♂️",
+ "man_tipping_hand_medium-dark_skin_tone": "💁🏾\u200d♂️",
+ "man_tipping_hand_medium-light_skin_tone": "💁🏼\u200d♂️",
+ "man_tipping_hand_medium_skin_tone": "💁🏽\u200d♂️",
+ "man_vampire": "🧛\u200d♂️",
+ "man_vampire_dark_skin_tone": "🧛🏿\u200d♂️",
+ "man_vampire_light_skin_tone": "🧛🏻\u200d♂️",
+ "man_vampire_medium-dark_skin_tone": "🧛🏾\u200d♂️",
+ "man_vampire_medium-light_skin_tone": "🧛🏼\u200d♂️",
+ "man_vampire_medium_skin_tone": "🧛🏽\u200d♂️",
+ "man_walking": "🚶\u200d♂️",
+ "man_walking_dark_skin_tone": "🚶🏿\u200d♂️",
+ "man_walking_light_skin_tone": "🚶🏻\u200d♂️",
+ "man_walking_medium-dark_skin_tone": "🚶🏾\u200d♂️",
+ "man_walking_medium-light_skin_tone": "🚶🏼\u200d♂️",
+ "man_walking_medium_skin_tone": "🚶🏽\u200d♂️",
+ "man_wearing_turban": "👳\u200d♂️",
+ "man_wearing_turban_dark_skin_tone": "👳🏿\u200d♂️",
+ "man_wearing_turban_light_skin_tone": "👳🏻\u200d♂️",
+ "man_wearing_turban_medium-dark_skin_tone": "👳🏾\u200d♂️",
+ "man_wearing_turban_medium-light_skin_tone": "👳🏼\u200d♂️",
+ "man_wearing_turban_medium_skin_tone": "👳🏽\u200d♂️",
+ "man_with_probing_cane": "👨\u200d🦯",
+ "man_with_chinese_cap": "👲",
+ "man_with_chinese_cap_dark_skin_tone": "👲🏿",
+ "man_with_chinese_cap_light_skin_tone": "👲🏻",
+ "man_with_chinese_cap_medium-dark_skin_tone": "👲🏾",
+ "man_with_chinese_cap_medium-light_skin_tone": "👲🏼",
+ "man_with_chinese_cap_medium_skin_tone": "👲🏽",
+ "man_zombie": "🧟\u200d♂️",
+ "mango": "🥭",
+ "mantelpiece_clock": "🕰",
+ "manual_wheelchair": "🦽",
+ "man’s_shoe": "👞",
+ "map_of_japan": "🗾",
+ "maple_leaf": "🍁",
+ "martial_arts_uniform": "🥋",
+ "mate": "🧉",
+ "meat_on_bone": "🍖",
+ "mechanical_arm": "🦾",
+ "mechanical_leg": "🦿",
+ "medical_symbol": "⚕",
+ "megaphone": "📣",
+ "melon": "🍈",
+ "memo": "📝",
+ "men_with_bunny_ears": "👯\u200d♂️",
+ "men_wrestling": "🤼\u200d♂️",
+ "menorah": "🕎",
+ "men’s_room": "🚹",
+ "mermaid": "🧜\u200d♀️",
+ "mermaid_dark_skin_tone": "🧜🏿\u200d♀️",
+ "mermaid_light_skin_tone": "🧜🏻\u200d♀️",
+ "mermaid_medium-dark_skin_tone": "🧜🏾\u200d♀️",
+ "mermaid_medium-light_skin_tone": "🧜🏼\u200d♀️",
+ "mermaid_medium_skin_tone": "🧜🏽\u200d♀️",
+ "merman": "🧜\u200d♂️",
+ "merman_dark_skin_tone": "🧜🏿\u200d♂️",
+ "merman_light_skin_tone": "🧜🏻\u200d♂️",
+ "merman_medium-dark_skin_tone": "🧜🏾\u200d♂️",
+ "merman_medium-light_skin_tone": "🧜🏼\u200d♂️",
+ "merman_medium_skin_tone": "🧜🏽\u200d♂️",
+ "merperson": "🧜",
+ "merperson_dark_skin_tone": "🧜🏿",
+ "merperson_light_skin_tone": "🧜🏻",
+ "merperson_medium-dark_skin_tone": "🧜🏾",
+ "merperson_medium-light_skin_tone": "🧜🏼",
+ "merperson_medium_skin_tone": "🧜🏽",
+ "metro": "🚇",
+ "microbe": "🦠",
+ "microphone": "🎤",
+ "microscope": "🔬",
+ "middle_finger": "🖕",
+ "middle_finger_dark_skin_tone": "🖕🏿",
+ "middle_finger_light_skin_tone": "🖕🏻",
+ "middle_finger_medium-dark_skin_tone": "🖕🏾",
+ "middle_finger_medium-light_skin_tone": "🖕🏼",
+ "middle_finger_medium_skin_tone": "🖕🏽",
+ "military_medal": "🎖",
+ "milky_way": "🌌",
+ "minibus": "🚐",
+ "moai": "🗿",
+ "mobile_phone": "📱",
+ "mobile_phone_off": "📴",
+ "mobile_phone_with_arrow": "📲",
+ "money-mouth_face": "🤑",
+ "money_bag": "💰",
+ "money_with_wings": "💸",
+ "monkey": "🐒",
+ "monkey_face": "🐵",
+ "monorail": "🚝",
+ "moon_cake": "🥮",
+ "moon_viewing_ceremony": "🎑",
+ "mosque": "🕌",
+ "mosquito": "🦟",
+ "motor_boat": "🛥",
+ "motor_scooter": "🛵",
+ "motorcycle": "🏍",
+ "motorized_wheelchair": "🦼",
+ "motorway": "🛣",
+ "mount_fuji": "🗻",
+ "mountain": "⛰",
+ "mountain_cableway": "🚠",
+ "mountain_railway": "🚞",
+ "mouse": "🐭",
+ "mouse_face": "🐭",
+ "mouth": "👄",
+ "movie_camera": "🎥",
+ "mushroom": "🍄",
+ "musical_keyboard": "🎹",
+ "musical_note": "🎵",
+ "musical_notes": "🎶",
+ "musical_score": "🎼",
+ "muted_speaker": "🔇",
+ "nail_polish": "💅",
+ "nail_polish_dark_skin_tone": "💅🏿",
+ "nail_polish_light_skin_tone": "💅🏻",
+ "nail_polish_medium-dark_skin_tone": "💅🏾",
+ "nail_polish_medium-light_skin_tone": "💅🏼",
+ "nail_polish_medium_skin_tone": "💅🏽",
+ "name_badge": "📛",
+ "national_park": "🏞",
+ "nauseated_face": "🤢",
+ "nazar_amulet": "🧿",
+ "necktie": "👔",
+ "nerd_face": "🤓",
+ "neutral_face": "😐",
+ "new_moon": "🌑",
+ "new_moon_face": "🌚",
+ "newspaper": "📰",
+ "next_track_button": "⏭",
+ "night_with_stars": "🌃",
+ "nine-thirty": "🕤",
+ "nine_o’clock": "🕘",
+ "no_bicycles": "🚳",
+ "no_entry": "⛔",
+ "no_littering": "🚯",
+ "no_mobile_phones": "📵",
+ "no_one_under_eighteen": "🔞",
+ "no_pedestrians": "🚷",
+ "no_smoking": "🚭",
+ "non-potable_water": "🚱",
+ "nose": "👃",
+ "nose_dark_skin_tone": "👃🏿",
+ "nose_light_skin_tone": "👃🏻",
+ "nose_medium-dark_skin_tone": "👃🏾",
+ "nose_medium-light_skin_tone": "👃🏼",
+ "nose_medium_skin_tone": "👃🏽",
+ "notebook": "📓",
+ "notebook_with_decorative_cover": "📔",
+ "nut_and_bolt": "🔩",
+ "octopus": "🐙",
+ "oden": "🍢",
+ "office_building": "🏢",
+ "ogre": "👹",
+ "oil_drum": "🛢",
+ "old_key": "🗝",
+ "old_man": "👴",
+ "old_man_dark_skin_tone": "👴🏿",
+ "old_man_light_skin_tone": "👴🏻",
+ "old_man_medium-dark_skin_tone": "👴🏾",
+ "old_man_medium-light_skin_tone": "👴🏼",
+ "old_man_medium_skin_tone": "👴🏽",
+ "old_woman": "👵",
+ "old_woman_dark_skin_tone": "👵🏿",
+ "old_woman_light_skin_tone": "👵🏻",
+ "old_woman_medium-dark_skin_tone": "👵🏾",
+ "old_woman_medium-light_skin_tone": "👵🏼",
+ "old_woman_medium_skin_tone": "👵🏽",
+ "older_adult": "🧓",
+ "older_adult_dark_skin_tone": "🧓🏿",
+ "older_adult_light_skin_tone": "🧓🏻",
+ "older_adult_medium-dark_skin_tone": "🧓🏾",
+ "older_adult_medium-light_skin_tone": "🧓🏼",
+ "older_adult_medium_skin_tone": "🧓🏽",
+ "om": "🕉",
+ "oncoming_automobile": "🚘",
+ "oncoming_bus": "🚍",
+ "oncoming_fist": "👊",
+ "oncoming_fist_dark_skin_tone": "👊🏿",
+ "oncoming_fist_light_skin_tone": "👊🏻",
+ "oncoming_fist_medium-dark_skin_tone": "👊🏾",
+ "oncoming_fist_medium-light_skin_tone": "👊🏼",
+ "oncoming_fist_medium_skin_tone": "👊🏽",
+ "oncoming_police_car": "🚔",
+ "oncoming_taxi": "🚖",
+ "one-piece_swimsuit": "🩱",
+ "one-thirty": "🕜",
+ "one_o’clock": "🕐",
+ "onion": "🧅",
+ "open_book": "📖",
+ "open_file_folder": "📂",
+ "open_hands": "👐",
+ "open_hands_dark_skin_tone": "👐🏿",
+ "open_hands_light_skin_tone": "👐🏻",
+ "open_hands_medium-dark_skin_tone": "👐🏾",
+ "open_hands_medium-light_skin_tone": "👐🏼",
+ "open_hands_medium_skin_tone": "👐🏽",
+ "open_mailbox_with_lowered_flag": "📭",
+ "open_mailbox_with_raised_flag": "📬",
+ "optical_disk": "💿",
+ "orange_book": "📙",
+ "orange_circle": "🟠",
+ "orange_heart": "🧡",
+ "orange_square": "🟧",
+ "orangutan": "🦧",
+ "orthodox_cross": "☦",
+ "otter": "🦦",
+ "outbox_tray": "📤",
+ "owl": "🦉",
+ "ox": "🐂",
+ "oyster": "🦪",
+ "package": "📦",
+ "page_facing_up": "📄",
+ "page_with_curl": "📃",
+ "pager": "📟",
+ "paintbrush": "🖌",
+ "palm_tree": "🌴",
+ "palms_up_together": "🤲",
+ "palms_up_together_dark_skin_tone": "🤲🏿",
+ "palms_up_together_light_skin_tone": "🤲🏻",
+ "palms_up_together_medium-dark_skin_tone": "🤲🏾",
+ "palms_up_together_medium-light_skin_tone": "🤲🏼",
+ "palms_up_together_medium_skin_tone": "🤲🏽",
+ "pancakes": "🥞",
+ "panda_face": "🐼",
+ "paperclip": "📎",
+ "parrot": "🦜",
+ "part_alternation_mark": "〽",
+ "party_popper": "🎉",
+ "partying_face": "🥳",
+ "passenger_ship": "🛳",
+ "passport_control": "🛂",
+ "pause_button": "⏸",
+ "paw_prints": "🐾",
+ "peace_symbol": "☮",
+ "peach": "🍑",
+ "peacock": "🦚",
+ "peanuts": "🥜",
+ "pear": "🍐",
+ "pen": "🖊",
+ "pencil": "📝",
+ "penguin": "🐧",
+ "pensive_face": "😔",
+ "people_holding_hands": "🧑\u200d🤝\u200d🧑",
+ "people_with_bunny_ears": "👯",
+ "people_wrestling": "🤼",
+ "performing_arts": "🎭",
+ "persevering_face": "😣",
+ "person_biking": "🚴",
+ "person_biking_dark_skin_tone": "🚴🏿",
+ "person_biking_light_skin_tone": "🚴🏻",
+ "person_biking_medium-dark_skin_tone": "🚴🏾",
+ "person_biking_medium-light_skin_tone": "🚴🏼",
+ "person_biking_medium_skin_tone": "🚴🏽",
+ "person_bouncing_ball": "⛹",
+ "person_bouncing_ball_dark_skin_tone": "⛹🏿",
+ "person_bouncing_ball_light_skin_tone": "⛹🏻",
+ "person_bouncing_ball_medium-dark_skin_tone": "⛹🏾",
+ "person_bouncing_ball_medium-light_skin_tone": "⛹🏼",
+ "person_bouncing_ball_medium_skin_tone": "⛹🏽",
+ "person_bowing": "🙇",
+ "person_bowing_dark_skin_tone": "🙇🏿",
+ "person_bowing_light_skin_tone": "🙇🏻",
+ "person_bowing_medium-dark_skin_tone": "🙇🏾",
+ "person_bowing_medium-light_skin_tone": "🙇🏼",
+ "person_bowing_medium_skin_tone": "🙇🏽",
+ "person_cartwheeling": "🤸",
+ "person_cartwheeling_dark_skin_tone": "🤸🏿",
+ "person_cartwheeling_light_skin_tone": "🤸🏻",
+ "person_cartwheeling_medium-dark_skin_tone": "🤸🏾",
+ "person_cartwheeling_medium-light_skin_tone": "🤸🏼",
+ "person_cartwheeling_medium_skin_tone": "🤸🏽",
+ "person_climbing": "🧗",
+ "person_climbing_dark_skin_tone": "🧗🏿",
+ "person_climbing_light_skin_tone": "🧗🏻",
+ "person_climbing_medium-dark_skin_tone": "🧗🏾",
+ "person_climbing_medium-light_skin_tone": "🧗🏼",
+ "person_climbing_medium_skin_tone": "🧗🏽",
+ "person_facepalming": "🤦",
+ "person_facepalming_dark_skin_tone": "🤦🏿",
+ "person_facepalming_light_skin_tone": "🤦🏻",
+ "person_facepalming_medium-dark_skin_tone": "🤦🏾",
+ "person_facepalming_medium-light_skin_tone": "🤦🏼",
+ "person_facepalming_medium_skin_tone": "🤦🏽",
+ "person_fencing": "🤺",
+ "person_frowning": "🙍",
+ "person_frowning_dark_skin_tone": "🙍🏿",
+ "person_frowning_light_skin_tone": "🙍🏻",
+ "person_frowning_medium-dark_skin_tone": "🙍🏾",
+ "person_frowning_medium-light_skin_tone": "🙍🏼",
+ "person_frowning_medium_skin_tone": "🙍🏽",
+ "person_gesturing_no": "🙅",
+ "person_gesturing_no_dark_skin_tone": "🙅🏿",
+ "person_gesturing_no_light_skin_tone": "🙅🏻",
+ "person_gesturing_no_medium-dark_skin_tone": "🙅🏾",
+ "person_gesturing_no_medium-light_skin_tone": "🙅🏼",
+ "person_gesturing_no_medium_skin_tone": "🙅🏽",
+ "person_gesturing_ok": "🙆",
+ "person_gesturing_ok_dark_skin_tone": "🙆🏿",
+ "person_gesturing_ok_light_skin_tone": "🙆🏻",
+ "person_gesturing_ok_medium-dark_skin_tone": "🙆🏾",
+ "person_gesturing_ok_medium-light_skin_tone": "🙆🏼",
+ "person_gesturing_ok_medium_skin_tone": "🙆🏽",
+ "person_getting_haircut": "💇",
+ "person_getting_haircut_dark_skin_tone": "💇🏿",
+ "person_getting_haircut_light_skin_tone": "💇🏻",
+ "person_getting_haircut_medium-dark_skin_tone": "💇🏾",
+ "person_getting_haircut_medium-light_skin_tone": "💇🏼",
+ "person_getting_haircut_medium_skin_tone": "💇🏽",
+ "person_getting_massage": "💆",
+ "person_getting_massage_dark_skin_tone": "💆🏿",
+ "person_getting_massage_light_skin_tone": "💆🏻",
+ "person_getting_massage_medium-dark_skin_tone": "💆🏾",
+ "person_getting_massage_medium-light_skin_tone": "💆🏼",
+ "person_getting_massage_medium_skin_tone": "💆🏽",
+ "person_golfing": "🏌",
+ "person_golfing_dark_skin_tone": "🏌🏿",
+ "person_golfing_light_skin_tone": "🏌🏻",
+ "person_golfing_medium-dark_skin_tone": "🏌🏾",
+ "person_golfing_medium-light_skin_tone": "🏌🏼",
+ "person_golfing_medium_skin_tone": "🏌🏽",
+ "person_in_bed": "🛌",
+ "person_in_bed_dark_skin_tone": "🛌🏿",
+ "person_in_bed_light_skin_tone": "🛌🏻",
+ "person_in_bed_medium-dark_skin_tone": "🛌🏾",
+ "person_in_bed_medium-light_skin_tone": "🛌🏼",
+ "person_in_bed_medium_skin_tone": "🛌🏽",
+ "person_in_lotus_position": "🧘",
+ "person_in_lotus_position_dark_skin_tone": "🧘🏿",
+ "person_in_lotus_position_light_skin_tone": "🧘🏻",
+ "person_in_lotus_position_medium-dark_skin_tone": "🧘🏾",
+ "person_in_lotus_position_medium-light_skin_tone": "🧘🏼",
+ "person_in_lotus_position_medium_skin_tone": "🧘🏽",
+ "person_in_steamy_room": "🧖",
+ "person_in_steamy_room_dark_skin_tone": "🧖🏿",
+ "person_in_steamy_room_light_skin_tone": "🧖🏻",
+ "person_in_steamy_room_medium-dark_skin_tone": "🧖🏾",
+ "person_in_steamy_room_medium-light_skin_tone": "🧖🏼",
+ "person_in_steamy_room_medium_skin_tone": "🧖🏽",
+ "person_juggling": "🤹",
+ "person_juggling_dark_skin_tone": "🤹🏿",
+ "person_juggling_light_skin_tone": "🤹🏻",
+ "person_juggling_medium-dark_skin_tone": "🤹🏾",
+ "person_juggling_medium-light_skin_tone": "🤹🏼",
+ "person_juggling_medium_skin_tone": "🤹🏽",
+ "person_kneeling": "🧎",
+ "person_lifting_weights": "🏋",
+ "person_lifting_weights_dark_skin_tone": "🏋🏿",
+ "person_lifting_weights_light_skin_tone": "🏋🏻",
+ "person_lifting_weights_medium-dark_skin_tone": "🏋🏾",
+ "person_lifting_weights_medium-light_skin_tone": "🏋🏼",
+ "person_lifting_weights_medium_skin_tone": "🏋🏽",
+ "person_mountain_biking": "🚵",
+ "person_mountain_biking_dark_skin_tone": "🚵🏿",
+ "person_mountain_biking_light_skin_tone": "🚵🏻",
+ "person_mountain_biking_medium-dark_skin_tone": "🚵🏾",
+ "person_mountain_biking_medium-light_skin_tone": "🚵🏼",
+ "person_mountain_biking_medium_skin_tone": "🚵🏽",
+ "person_playing_handball": "🤾",
+ "person_playing_handball_dark_skin_tone": "🤾🏿",
+ "person_playing_handball_light_skin_tone": "🤾🏻",
+ "person_playing_handball_medium-dark_skin_tone": "🤾🏾",
+ "person_playing_handball_medium-light_skin_tone": "🤾🏼",
+ "person_playing_handball_medium_skin_tone": "🤾🏽",
+ "person_playing_water_polo": "🤽",
+ "person_playing_water_polo_dark_skin_tone": "🤽🏿",
+ "person_playing_water_polo_light_skin_tone": "🤽🏻",
+ "person_playing_water_polo_medium-dark_skin_tone": "🤽🏾",
+ "person_playing_water_polo_medium-light_skin_tone": "🤽🏼",
+ "person_playing_water_polo_medium_skin_tone": "🤽🏽",
+ "person_pouting": "🙎",
+ "person_pouting_dark_skin_tone": "🙎🏿",
+ "person_pouting_light_skin_tone": "🙎🏻",
+ "person_pouting_medium-dark_skin_tone": "🙎🏾",
+ "person_pouting_medium-light_skin_tone": "🙎🏼",
+ "person_pouting_medium_skin_tone": "🙎🏽",
+ "person_raising_hand": "🙋",
+ "person_raising_hand_dark_skin_tone": "🙋🏿",
+ "person_raising_hand_light_skin_tone": "🙋🏻",
+ "person_raising_hand_medium-dark_skin_tone": "🙋🏾",
+ "person_raising_hand_medium-light_skin_tone": "🙋🏼",
+ "person_raising_hand_medium_skin_tone": "🙋🏽",
+ "person_rowing_boat": "🚣",
+ "person_rowing_boat_dark_skin_tone": "🚣🏿",
+ "person_rowing_boat_light_skin_tone": "🚣🏻",
+ "person_rowing_boat_medium-dark_skin_tone": "🚣🏾",
+ "person_rowing_boat_medium-light_skin_tone": "🚣🏼",
+ "person_rowing_boat_medium_skin_tone": "🚣🏽",
+ "person_running": "🏃",
+ "person_running_dark_skin_tone": "🏃🏿",
+ "person_running_light_skin_tone": "🏃🏻",
+ "person_running_medium-dark_skin_tone": "🏃🏾",
+ "person_running_medium-light_skin_tone": "🏃🏼",
+ "person_running_medium_skin_tone": "🏃🏽",
+ "person_shrugging": "🤷",
+ "person_shrugging_dark_skin_tone": "🤷🏿",
+ "person_shrugging_light_skin_tone": "🤷🏻",
+ "person_shrugging_medium-dark_skin_tone": "🤷🏾",
+ "person_shrugging_medium-light_skin_tone": "🤷🏼",
+ "person_shrugging_medium_skin_tone": "🤷🏽",
+ "person_standing": "🧍",
+ "person_surfing": "🏄",
+ "person_surfing_dark_skin_tone": "🏄🏿",
+ "person_surfing_light_skin_tone": "🏄🏻",
+ "person_surfing_medium-dark_skin_tone": "🏄🏾",
+ "person_surfing_medium-light_skin_tone": "🏄🏼",
+ "person_surfing_medium_skin_tone": "🏄🏽",
+ "person_swimming": "🏊",
+ "person_swimming_dark_skin_tone": "🏊🏿",
+ "person_swimming_light_skin_tone": "🏊🏻",
+ "person_swimming_medium-dark_skin_tone": "🏊🏾",
+ "person_swimming_medium-light_skin_tone": "🏊🏼",
+ "person_swimming_medium_skin_tone": "🏊🏽",
+ "person_taking_bath": "🛀",
+ "person_taking_bath_dark_skin_tone": "🛀🏿",
+ "person_taking_bath_light_skin_tone": "🛀🏻",
+ "person_taking_bath_medium-dark_skin_tone": "🛀🏾",
+ "person_taking_bath_medium-light_skin_tone": "🛀🏼",
+ "person_taking_bath_medium_skin_tone": "🛀🏽",
+ "person_tipping_hand": "💁",
+ "person_tipping_hand_dark_skin_tone": "💁🏿",
+ "person_tipping_hand_light_skin_tone": "💁🏻",
+ "person_tipping_hand_medium-dark_skin_tone": "💁🏾",
+ "person_tipping_hand_medium-light_skin_tone": "💁🏼",
+ "person_tipping_hand_medium_skin_tone": "💁🏽",
+ "person_walking": "🚶",
+ "person_walking_dark_skin_tone": "🚶🏿",
+ "person_walking_light_skin_tone": "🚶🏻",
+ "person_walking_medium-dark_skin_tone": "🚶🏾",
+ "person_walking_medium-light_skin_tone": "🚶🏼",
+ "person_walking_medium_skin_tone": "🚶🏽",
+ "person_wearing_turban": "👳",
+ "person_wearing_turban_dark_skin_tone": "👳🏿",
+ "person_wearing_turban_light_skin_tone": "👳🏻",
+ "person_wearing_turban_medium-dark_skin_tone": "👳🏾",
+ "person_wearing_turban_medium-light_skin_tone": "👳🏼",
+ "person_wearing_turban_medium_skin_tone": "👳🏽",
+ "petri_dish": "🧫",
+ "pick": "⛏",
+ "pie": "🥧",
+ "pig": "🐷",
+ "pig_face": "🐷",
+ "pig_nose": "🐽",
+ "pile_of_poo": "💩",
+ "pill": "💊",
+ "pinching_hand": "🤏",
+ "pine_decoration": "🎍",
+ "pineapple": "🍍",
+ "ping_pong": "🏓",
+ "pirate_flag": "🏴\u200d☠️",
+ "pistol": "🔫",
+ "pizza": "🍕",
+ "place_of_worship": "🛐",
+ "play_button": "▶",
+ "play_or_pause_button": "⏯",
+ "pleading_face": "🥺",
+ "police_car": "🚓",
+ "police_car_light": "🚨",
+ "police_officer": "👮",
+ "police_officer_dark_skin_tone": "👮🏿",
+ "police_officer_light_skin_tone": "👮🏻",
+ "police_officer_medium-dark_skin_tone": "👮🏾",
+ "police_officer_medium-light_skin_tone": "👮🏼",
+ "police_officer_medium_skin_tone": "👮🏽",
+ "poodle": "🐩",
+ "pool_8_ball": "🎱",
+ "popcorn": "🍿",
+ "post_office": "🏣",
+ "postal_horn": "📯",
+ "postbox": "📮",
+ "pot_of_food": "🍲",
+ "potable_water": "🚰",
+ "potato": "🥔",
+ "poultry_leg": "🍗",
+ "pound_banknote": "💷",
+ "pouting_cat_face": "😾",
+ "pouting_face": "😡",
+ "prayer_beads": "📿",
+ "pregnant_woman": "🤰",
+ "pregnant_woman_dark_skin_tone": "🤰🏿",
+ "pregnant_woman_light_skin_tone": "🤰🏻",
+ "pregnant_woman_medium-dark_skin_tone": "🤰🏾",
+ "pregnant_woman_medium-light_skin_tone": "🤰🏼",
+ "pregnant_woman_medium_skin_tone": "🤰🏽",
+ "pretzel": "🥨",
+ "probing_cane": "🦯",
+ "prince": "🤴",
+ "prince_dark_skin_tone": "🤴🏿",
+ "prince_light_skin_tone": "🤴🏻",
+ "prince_medium-dark_skin_tone": "🤴🏾",
+ "prince_medium-light_skin_tone": "🤴🏼",
+ "prince_medium_skin_tone": "🤴🏽",
+ "princess": "👸",
+ "princess_dark_skin_tone": "👸🏿",
+ "princess_light_skin_tone": "👸🏻",
+ "princess_medium-dark_skin_tone": "👸🏾",
+ "princess_medium-light_skin_tone": "👸🏼",
+ "princess_medium_skin_tone": "👸🏽",
+ "printer": "🖨",
+ "prohibited": "🚫",
+ "purple_circle": "🟣",
+ "purple_heart": "💜",
+ "purple_square": "🟪",
+ "purse": "👛",
+ "pushpin": "📌",
+ "question_mark": "❓",
+ "rabbit": "🐰",
+ "rabbit_face": "🐰",
+ "raccoon": "🦝",
+ "racing_car": "🏎",
+ "radio": "📻",
+ "radio_button": "🔘",
+ "radioactive": "☢",
+ "railway_car": "🚃",
+ "railway_track": "🛤",
+ "rainbow": "🌈",
+ "rainbow_flag": "🏳️\u200d🌈",
+ "raised_back_of_hand": "🤚",
+ "raised_back_of_hand_dark_skin_tone": "🤚🏿",
+ "raised_back_of_hand_light_skin_tone": "🤚🏻",
+ "raised_back_of_hand_medium-dark_skin_tone": "🤚🏾",
+ "raised_back_of_hand_medium-light_skin_tone": "🤚🏼",
+ "raised_back_of_hand_medium_skin_tone": "🤚🏽",
+ "raised_fist": "✊",
+ "raised_fist_dark_skin_tone": "✊🏿",
+ "raised_fist_light_skin_tone": "✊🏻",
+ "raised_fist_medium-dark_skin_tone": "✊🏾",
+ "raised_fist_medium-light_skin_tone": "✊🏼",
+ "raised_fist_medium_skin_tone": "✊🏽",
+ "raised_hand": "✋",
+ "raised_hand_dark_skin_tone": "✋🏿",
+ "raised_hand_light_skin_tone": "✋🏻",
+ "raised_hand_medium-dark_skin_tone": "✋🏾",
+ "raised_hand_medium-light_skin_tone": "✋🏼",
+ "raised_hand_medium_skin_tone": "✋🏽",
+ "raising_hands": "🙌",
+ "raising_hands_dark_skin_tone": "🙌🏿",
+ "raising_hands_light_skin_tone": "🙌🏻",
+ "raising_hands_medium-dark_skin_tone": "🙌🏾",
+ "raising_hands_medium-light_skin_tone": "🙌🏼",
+ "raising_hands_medium_skin_tone": "🙌🏽",
+ "ram": "🐏",
+ "rat": "🐀",
+ "razor": "🪒",
+ "ringed_planet": "🪐",
+ "receipt": "🧾",
+ "record_button": "⏺",
+ "recycling_symbol": "♻",
+ "red_apple": "🍎",
+ "red_circle": "🔴",
+ "red_envelope": "🧧",
+ "red_hair": "🦰",
+ "red-haired_man": "👨\u200d🦰",
+ "red-haired_woman": "👩\u200d🦰",
+ "red_heart": "❤",
+ "red_paper_lantern": "🏮",
+ "red_square": "🟥",
+ "red_triangle_pointed_down": "🔻",
+ "red_triangle_pointed_up": "🔺",
+ "registered": "®",
+ "relieved_face": "😌",
+ "reminder_ribbon": "🎗",
+ "repeat_button": "🔁",
+ "repeat_single_button": "🔂",
+ "rescue_worker’s_helmet": "⛑",
+ "restroom": "🚻",
+ "reverse_button": "◀",
+ "revolving_hearts": "💞",
+ "rhinoceros": "🦏",
+ "ribbon": "🎀",
+ "rice_ball": "🍙",
+ "rice_cracker": "🍘",
+ "right-facing_fist": "🤜",
+ "right-facing_fist_dark_skin_tone": "🤜🏿",
+ "right-facing_fist_light_skin_tone": "🤜🏻",
+ "right-facing_fist_medium-dark_skin_tone": "🤜🏾",
+ "right-facing_fist_medium-light_skin_tone": "🤜🏼",
+ "right-facing_fist_medium_skin_tone": "🤜🏽",
+ "right_anger_bubble": "🗯",
+ "right_arrow": "➡",
+ "right_arrow_curving_down": "⤵",
+ "right_arrow_curving_left": "↩",
+ "right_arrow_curving_up": "⤴",
+ "ring": "💍",
+ "roasted_sweet_potato": "🍠",
+ "robot_face": "🤖",
+ "rocket": "🚀",
+ "roll_of_paper": "🧻",
+ "rolled-up_newspaper": "🗞",
+ "roller_coaster": "🎢",
+ "rolling_on_the_floor_laughing": "🤣",
+ "rooster": "🐓",
+ "rose": "🌹",
+ "rosette": "🏵",
+ "round_pushpin": "📍",
+ "rugby_football": "🏉",
+ "running_shirt": "🎽",
+ "running_shoe": "👟",
+ "sad_but_relieved_face": "😥",
+ "safety_pin": "🧷",
+ "safety_vest": "🦺",
+ "salt": "🧂",
+ "sailboat": "⛵",
+ "sake": "🍶",
+ "sandwich": "🥪",
+ "sari": "🥻",
+ "satellite": "📡",
+ "satellite_antenna": "📡",
+ "sauropod": "🦕",
+ "saxophone": "🎷",
+ "scarf": "🧣",
+ "school": "🏫",
+ "school_backpack": "🎒",
+ "scissors": "✂",
+ "scorpion": "🦂",
+ "scroll": "📜",
+ "seat": "💺",
+ "see-no-evil_monkey": "🙈",
+ "seedling": "🌱",
+ "selfie": "🤳",
+ "selfie_dark_skin_tone": "🤳🏿",
+ "selfie_light_skin_tone": "🤳🏻",
+ "selfie_medium-dark_skin_tone": "🤳🏾",
+ "selfie_medium-light_skin_tone": "🤳🏼",
+ "selfie_medium_skin_tone": "🤳🏽",
+ "service_dog": "🐕\u200d🦺",
+ "seven-thirty": "🕢",
+ "seven_o’clock": "🕖",
+ "shallow_pan_of_food": "🥘",
+ "shamrock": "☘",
+ "shark": "🦈",
+ "shaved_ice": "🍧",
+ "sheaf_of_rice": "🌾",
+ "shield": "🛡",
+ "shinto_shrine": "⛩",
+ "ship": "🚢",
+ "shooting_star": "🌠",
+ "shopping_bags": "🛍",
+ "shopping_cart": "🛒",
+ "shortcake": "🍰",
+ "shorts": "🩳",
+ "shower": "🚿",
+ "shrimp": "🦐",
+ "shuffle_tracks_button": "🔀",
+ "shushing_face": "🤫",
+ "sign_of_the_horns": "🤘",
+ "sign_of_the_horns_dark_skin_tone": "🤘🏿",
+ "sign_of_the_horns_light_skin_tone": "🤘🏻",
+ "sign_of_the_horns_medium-dark_skin_tone": "🤘🏾",
+ "sign_of_the_horns_medium-light_skin_tone": "🤘🏼",
+ "sign_of_the_horns_medium_skin_tone": "🤘🏽",
+ "six-thirty": "🕡",
+ "six_o’clock": "🕕",
+ "skateboard": "🛹",
+ "skier": "⛷",
+ "skis": "🎿",
+ "skull": "💀",
+ "skull_and_crossbones": "☠",
+ "skunk": "🦨",
+ "sled": "🛷",
+ "sleeping_face": "😴",
+ "sleepy_face": "😪",
+ "slightly_frowning_face": "🙁",
+ "slightly_smiling_face": "🙂",
+ "slot_machine": "🎰",
+ "sloth": "🦥",
+ "small_airplane": "🛩",
+ "small_blue_diamond": "🔹",
+ "small_orange_diamond": "🔸",
+ "smiling_cat_face_with_heart-eyes": "😻",
+ "smiling_face": "☺",
+ "smiling_face_with_halo": "😇",
+ "smiling_face_with_3_hearts": "🥰",
+ "smiling_face_with_heart-eyes": "😍",
+ "smiling_face_with_horns": "😈",
+ "smiling_face_with_smiling_eyes": "😊",
+ "smiling_face_with_sunglasses": "😎",
+ "smirking_face": "😏",
+ "snail": "🐌",
+ "snake": "🐍",
+ "sneezing_face": "🤧",
+ "snow-capped_mountain": "🏔",
+ "snowboarder": "🏂",
+ "snowboarder_dark_skin_tone": "🏂🏿",
+ "snowboarder_light_skin_tone": "🏂🏻",
+ "snowboarder_medium-dark_skin_tone": "🏂🏾",
+ "snowboarder_medium-light_skin_tone": "🏂🏼",
+ "snowboarder_medium_skin_tone": "🏂🏽",
+ "snowflake": "❄",
+ "snowman": "☃",
+ "snowman_without_snow": "⛄",
+ "soap": "🧼",
+ "soccer_ball": "⚽",
+ "socks": "🧦",
+ "softball": "🥎",
+ "soft_ice_cream": "🍦",
+ "spade_suit": "♠",
+ "spaghetti": "🍝",
+ "sparkle": "❇",
+ "sparkler": "🎇",
+ "sparkles": "✨",
+ "sparkling_heart": "💖",
+ "speak-no-evil_monkey": "🙊",
+ "speaker_high_volume": "🔊",
+ "speaker_low_volume": "🔈",
+ "speaker_medium_volume": "🔉",
+ "speaking_head": "🗣",
+ "speech_balloon": "💬",
+ "speedboat": "🚤",
+ "spider": "🕷",
+ "spider_web": "🕸",
+ "spiral_calendar": "🗓",
+ "spiral_notepad": "🗒",
+ "spiral_shell": "🐚",
+ "spoon": "🥄",
+ "sponge": "🧽",
+ "sport_utility_vehicle": "🚙",
+ "sports_medal": "🏅",
+ "spouting_whale": "🐳",
+ "squid": "🦑",
+ "squinting_face_with_tongue": "😝",
+ "stadium": "🏟",
+ "star-struck": "🤩",
+ "star_and_crescent": "☪",
+ "star_of_david": "✡",
+ "station": "🚉",
+ "steaming_bowl": "🍜",
+ "stethoscope": "🩺",
+ "stop_button": "⏹",
+ "stop_sign": "🛑",
+ "stopwatch": "⏱",
+ "straight_ruler": "📏",
+ "strawberry": "🍓",
+ "studio_microphone": "🎙",
+ "stuffed_flatbread": "🥙",
+ "sun": "☀",
+ "sun_behind_cloud": "⛅",
+ "sun_behind_large_cloud": "🌥",
+ "sun_behind_rain_cloud": "🌦",
+ "sun_behind_small_cloud": "🌤",
+ "sun_with_face": "🌞",
+ "sunflower": "🌻",
+ "sunglasses": "😎",
+ "sunrise": "🌅",
+ "sunrise_over_mountains": "🌄",
+ "sunset": "🌇",
+ "superhero": "🦸",
+ "supervillain": "🦹",
+ "sushi": "🍣",
+ "suspension_railway": "🚟",
+ "swan": "🦢",
+ "sweat_droplets": "💦",
+ "synagogue": "🕍",
+ "syringe": "💉",
+ "t-shirt": "👕",
+ "taco": "🌮",
+ "takeout_box": "🥡",
+ "tanabata_tree": "🎋",
+ "tangerine": "🍊",
+ "taxi": "🚕",
+ "teacup_without_handle": "🍵",
+ "tear-off_calendar": "📆",
+ "teddy_bear": "🧸",
+ "telephone": "☎",
+ "telephone_receiver": "📞",
+ "telescope": "🔭",
+ "television": "📺",
+ "ten-thirty": "🕥",
+ "ten_o’clock": "🕙",
+ "tennis": "🎾",
+ "tent": "⛺",
+ "test_tube": "🧪",
+ "thermometer": "🌡",
+ "thinking_face": "🤔",
+ "thought_balloon": "💭",
+ "thread": "🧵",
+ "three-thirty": "🕞",
+ "three_o’clock": "🕒",
+ "thumbs_down": "👎",
+ "thumbs_down_dark_skin_tone": "👎🏿",
+ "thumbs_down_light_skin_tone": "👎🏻",
+ "thumbs_down_medium-dark_skin_tone": "👎🏾",
+ "thumbs_down_medium-light_skin_tone": "👎🏼",
+ "thumbs_down_medium_skin_tone": "👎🏽",
+ "thumbs_up": "👍",
+ "thumbs_up_dark_skin_tone": "👍🏿",
+ "thumbs_up_light_skin_tone": "👍🏻",
+ "thumbs_up_medium-dark_skin_tone": "👍🏾",
+ "thumbs_up_medium-light_skin_tone": "👍🏼",
+ "thumbs_up_medium_skin_tone": "👍🏽",
+ "ticket": "🎫",
+ "tiger": "🐯",
+ "tiger_face": "🐯",
+ "timer_clock": "⏲",
+ "tired_face": "😫",
+ "toolbox": "🧰",
+ "toilet": "🚽",
+ "tomato": "🍅",
+ "tongue": "👅",
+ "tooth": "🦷",
+ "top_hat": "🎩",
+ "tornado": "🌪",
+ "trackball": "🖲",
+ "tractor": "🚜",
+ "trade_mark": "™",
+ "train": "🚋",
+ "tram": "🚊",
+ "tram_car": "🚋",
+ "triangular_flag": "🚩",
+ "triangular_ruler": "📐",
+ "trident_emblem": "🔱",
+ "trolleybus": "🚎",
+ "trophy": "🏆",
+ "tropical_drink": "🍹",
+ "tropical_fish": "🐠",
+ "trumpet": "🎺",
+ "tulip": "🌷",
+ "tumbler_glass": "🥃",
+ "turtle": "🐢",
+ "twelve-thirty": "🕧",
+ "twelve_o’clock": "🕛",
+ "two-hump_camel": "🐫",
+ "two-thirty": "🕝",
+ "two_hearts": "💕",
+ "two_men_holding_hands": "👬",
+ "two_o’clock": "🕑",
+ "two_women_holding_hands": "👭",
+ "umbrella": "☂",
+ "umbrella_on_ground": "⛱",
+ "umbrella_with_rain_drops": "☔",
+ "unamused_face": "😒",
+ "unicorn_face": "🦄",
+ "unlocked": "🔓",
+ "up-down_arrow": "↕",
+ "up-left_arrow": "↖",
+ "up-right_arrow": "↗",
+ "up_arrow": "⬆",
+ "upside-down_face": "🙃",
+ "upwards_button": "🔼",
+ "vampire": "🧛",
+ "vampire_dark_skin_tone": "🧛🏿",
+ "vampire_light_skin_tone": "🧛🏻",
+ "vampire_medium-dark_skin_tone": "🧛🏾",
+ "vampire_medium-light_skin_tone": "🧛🏼",
+ "vampire_medium_skin_tone": "🧛🏽",
+ "vertical_traffic_light": "🚦",
+ "vibration_mode": "📳",
+ "victory_hand": "✌",
+ "victory_hand_dark_skin_tone": "✌🏿",
+ "victory_hand_light_skin_tone": "✌🏻",
+ "victory_hand_medium-dark_skin_tone": "✌🏾",
+ "victory_hand_medium-light_skin_tone": "✌🏼",
+ "victory_hand_medium_skin_tone": "✌🏽",
+ "video_camera": "📹",
+ "video_game": "🎮",
+ "videocassette": "📼",
+ "violin": "🎻",
+ "volcano": "🌋",
+ "volleyball": "🏐",
+ "vulcan_salute": "🖖",
+ "vulcan_salute_dark_skin_tone": "🖖🏿",
+ "vulcan_salute_light_skin_tone": "🖖🏻",
+ "vulcan_salute_medium-dark_skin_tone": "🖖🏾",
+ "vulcan_salute_medium-light_skin_tone": "🖖🏼",
+ "vulcan_salute_medium_skin_tone": "🖖🏽",
+ "waffle": "🧇",
+ "waning_crescent_moon": "🌘",
+ "waning_gibbous_moon": "🌖",
+ "warning": "⚠",
+ "wastebasket": "🗑",
+ "watch": "⌚",
+ "water_buffalo": "🐃",
+ "water_closet": "🚾",
+ "water_wave": "🌊",
+ "watermelon": "🍉",
+ "waving_hand": "👋",
+ "waving_hand_dark_skin_tone": "👋🏿",
+ "waving_hand_light_skin_tone": "👋🏻",
+ "waving_hand_medium-dark_skin_tone": "👋🏾",
+ "waving_hand_medium-light_skin_tone": "👋🏼",
+ "waving_hand_medium_skin_tone": "👋🏽",
+ "wavy_dash": "〰",
+ "waxing_crescent_moon": "🌒",
+ "waxing_gibbous_moon": "🌔",
+ "weary_cat_face": "🙀",
+ "weary_face": "😩",
+ "wedding": "💒",
+ "whale": "🐳",
+ "wheel_of_dharma": "☸",
+ "wheelchair_symbol": "♿",
+ "white_circle": "⚪",
+ "white_exclamation_mark": "❕",
+ "white_flag": "🏳",
+ "white_flower": "💮",
+ "white_hair": "🦳",
+ "white-haired_man": "👨\u200d🦳",
+ "white-haired_woman": "👩\u200d🦳",
+ "white_heart": "🤍",
+ "white_heavy_check_mark": "✅",
+ "white_large_square": "⬜",
+ "white_medium-small_square": "◽",
+ "white_medium_square": "◻",
+ "white_medium_star": "⭐",
+ "white_question_mark": "❔",
+ "white_small_square": "▫",
+ "white_square_button": "🔳",
+ "wilted_flower": "🥀",
+ "wind_chime": "🎐",
+ "wind_face": "🌬",
+ "wine_glass": "🍷",
+ "winking_face": "😉",
+ "winking_face_with_tongue": "😜",
+ "wolf_face": "🐺",
+ "woman": "👩",
+ "woman_artist": "👩\u200d🎨",
+ "woman_artist_dark_skin_tone": "👩🏿\u200d🎨",
+ "woman_artist_light_skin_tone": "👩🏻\u200d🎨",
+ "woman_artist_medium-dark_skin_tone": "👩🏾\u200d🎨",
+ "woman_artist_medium-light_skin_tone": "👩🏼\u200d🎨",
+ "woman_artist_medium_skin_tone": "👩🏽\u200d🎨",
+ "woman_astronaut": "👩\u200d🚀",
+ "woman_astronaut_dark_skin_tone": "👩🏿\u200d🚀",
+ "woman_astronaut_light_skin_tone": "👩🏻\u200d🚀",
+ "woman_astronaut_medium-dark_skin_tone": "👩🏾\u200d🚀",
+ "woman_astronaut_medium-light_skin_tone": "👩🏼\u200d🚀",
+ "woman_astronaut_medium_skin_tone": "👩🏽\u200d🚀",
+ "woman_biking": "🚴\u200d♀️",
+ "woman_biking_dark_skin_tone": "🚴🏿\u200d♀️",
+ "woman_biking_light_skin_tone": "🚴🏻\u200d♀️",
+ "woman_biking_medium-dark_skin_tone": "🚴🏾\u200d♀️",
+ "woman_biking_medium-light_skin_tone": "🚴🏼\u200d♀️",
+ "woman_biking_medium_skin_tone": "🚴🏽\u200d♀️",
+ "woman_bouncing_ball": "⛹️\u200d♀️",
+ "woman_bouncing_ball_dark_skin_tone": "⛹🏿\u200d♀️",
+ "woman_bouncing_ball_light_skin_tone": "⛹🏻\u200d♀️",
+ "woman_bouncing_ball_medium-dark_skin_tone": "⛹🏾\u200d♀️",
+ "woman_bouncing_ball_medium-light_skin_tone": "⛹🏼\u200d♀️",
+ "woman_bouncing_ball_medium_skin_tone": "⛹🏽\u200d♀️",
+ "woman_bowing": "🙇\u200d♀️",
+ "woman_bowing_dark_skin_tone": "🙇🏿\u200d♀️",
+ "woman_bowing_light_skin_tone": "🙇🏻\u200d♀️",
+ "woman_bowing_medium-dark_skin_tone": "🙇🏾\u200d♀️",
+ "woman_bowing_medium-light_skin_tone": "🙇🏼\u200d♀️",
+ "woman_bowing_medium_skin_tone": "🙇🏽\u200d♀️",
+ "woman_cartwheeling": "🤸\u200d♀️",
+ "woman_cartwheeling_dark_skin_tone": "🤸🏿\u200d♀️",
+ "woman_cartwheeling_light_skin_tone": "🤸🏻\u200d♀️",
+ "woman_cartwheeling_medium-dark_skin_tone": "🤸🏾\u200d♀️",
+ "woman_cartwheeling_medium-light_skin_tone": "🤸🏼\u200d♀️",
+ "woman_cartwheeling_medium_skin_tone": "🤸🏽\u200d♀️",
+ "woman_climbing": "🧗\u200d♀️",
+ "woman_climbing_dark_skin_tone": "🧗🏿\u200d♀️",
+ "woman_climbing_light_skin_tone": "🧗🏻\u200d♀️",
+ "woman_climbing_medium-dark_skin_tone": "🧗🏾\u200d♀️",
+ "woman_climbing_medium-light_skin_tone": "🧗🏼\u200d♀️",
+ "woman_climbing_medium_skin_tone": "🧗🏽\u200d♀️",
+ "woman_construction_worker": "👷\u200d♀️",
+ "woman_construction_worker_dark_skin_tone": "👷🏿\u200d♀️",
+ "woman_construction_worker_light_skin_tone": "👷🏻\u200d♀️",
+ "woman_construction_worker_medium-dark_skin_tone": "👷🏾\u200d♀️",
+ "woman_construction_worker_medium-light_skin_tone": "👷🏼\u200d♀️",
+ "woman_construction_worker_medium_skin_tone": "👷🏽\u200d♀️",
+ "woman_cook": "👩\u200d🍳",
+ "woman_cook_dark_skin_tone": "👩🏿\u200d🍳",
+ "woman_cook_light_skin_tone": "👩🏻\u200d🍳",
+ "woman_cook_medium-dark_skin_tone": "👩🏾\u200d🍳",
+ "woman_cook_medium-light_skin_tone": "👩🏼\u200d🍳",
+ "woman_cook_medium_skin_tone": "👩🏽\u200d🍳",
+ "woman_dancing": "💃",
+ "woman_dancing_dark_skin_tone": "💃🏿",
+ "woman_dancing_light_skin_tone": "💃🏻",
+ "woman_dancing_medium-dark_skin_tone": "💃🏾",
+ "woman_dancing_medium-light_skin_tone": "💃🏼",
+ "woman_dancing_medium_skin_tone": "💃🏽",
+ "woman_dark_skin_tone": "👩🏿",
+ "woman_detective": "🕵️\u200d♀️",
+ "woman_detective_dark_skin_tone": "🕵🏿\u200d♀️",
+ "woman_detective_light_skin_tone": "🕵🏻\u200d♀️",
+ "woman_detective_medium-dark_skin_tone": "🕵🏾\u200d♀️",
+ "woman_detective_medium-light_skin_tone": "🕵🏼\u200d♀️",
+ "woman_detective_medium_skin_tone": "🕵🏽\u200d♀️",
+ "woman_elf": "🧝\u200d♀️",
+ "woman_elf_dark_skin_tone": "🧝🏿\u200d♀️",
+ "woman_elf_light_skin_tone": "🧝🏻\u200d♀️",
+ "woman_elf_medium-dark_skin_tone": "🧝🏾\u200d♀️",
+ "woman_elf_medium-light_skin_tone": "🧝🏼\u200d♀️",
+ "woman_elf_medium_skin_tone": "🧝🏽\u200d♀️",
+ "woman_facepalming": "🤦\u200d♀️",
+ "woman_facepalming_dark_skin_tone": "🤦🏿\u200d♀️",
+ "woman_facepalming_light_skin_tone": "🤦🏻\u200d♀️",
+ "woman_facepalming_medium-dark_skin_tone": "🤦🏾\u200d♀️",
+ "woman_facepalming_medium-light_skin_tone": "🤦🏼\u200d♀️",
+ "woman_facepalming_medium_skin_tone": "🤦🏽\u200d♀️",
+ "woman_factory_worker": "👩\u200d🏭",
+ "woman_factory_worker_dark_skin_tone": "👩🏿\u200d🏭",
+ "woman_factory_worker_light_skin_tone": "👩🏻\u200d🏭",
+ "woman_factory_worker_medium-dark_skin_tone": "👩🏾\u200d🏭",
+ "woman_factory_worker_medium-light_skin_tone": "👩🏼\u200d🏭",
+ "woman_factory_worker_medium_skin_tone": "👩🏽\u200d🏭",
+ "woman_fairy": "🧚\u200d♀️",
+ "woman_fairy_dark_skin_tone": "🧚🏿\u200d♀️",
+ "woman_fairy_light_skin_tone": "🧚🏻\u200d♀️",
+ "woman_fairy_medium-dark_skin_tone": "🧚🏾\u200d♀️",
+ "woman_fairy_medium-light_skin_tone": "🧚🏼\u200d♀️",
+ "woman_fairy_medium_skin_tone": "🧚🏽\u200d♀️",
+ "woman_farmer": "👩\u200d🌾",
+ "woman_farmer_dark_skin_tone": "👩🏿\u200d🌾",
+ "woman_farmer_light_skin_tone": "👩🏻\u200d🌾",
+ "woman_farmer_medium-dark_skin_tone": "👩🏾\u200d🌾",
+ "woman_farmer_medium-light_skin_tone": "👩🏼\u200d🌾",
+ "woman_farmer_medium_skin_tone": "👩🏽\u200d🌾",
+ "woman_firefighter": "👩\u200d🚒",
+ "woman_firefighter_dark_skin_tone": "👩🏿\u200d🚒",
+ "woman_firefighter_light_skin_tone": "👩🏻\u200d🚒",
+ "woman_firefighter_medium-dark_skin_tone": "👩🏾\u200d🚒",
+ "woman_firefighter_medium-light_skin_tone": "👩🏼\u200d🚒",
+ "woman_firefighter_medium_skin_tone": "👩🏽\u200d🚒",
+ "woman_frowning": "🙍\u200d♀️",
+ "woman_frowning_dark_skin_tone": "🙍🏿\u200d♀️",
+ "woman_frowning_light_skin_tone": "🙍🏻\u200d♀️",
+ "woman_frowning_medium-dark_skin_tone": "🙍🏾\u200d♀️",
+ "woman_frowning_medium-light_skin_tone": "🙍🏼\u200d♀️",
+ "woman_frowning_medium_skin_tone": "🙍🏽\u200d♀️",
+ "woman_genie": "🧞\u200d♀️",
+ "woman_gesturing_no": "🙅\u200d♀️",
+ "woman_gesturing_no_dark_skin_tone": "🙅🏿\u200d♀️",
+ "woman_gesturing_no_light_skin_tone": "🙅🏻\u200d♀️",
+ "woman_gesturing_no_medium-dark_skin_tone": "🙅🏾\u200d♀️",
+ "woman_gesturing_no_medium-light_skin_tone": "🙅🏼\u200d♀️",
+ "woman_gesturing_no_medium_skin_tone": "🙅🏽\u200d♀️",
+ "woman_gesturing_ok": "🙆\u200d♀️",
+ "woman_gesturing_ok_dark_skin_tone": "🙆🏿\u200d♀️",
+ "woman_gesturing_ok_light_skin_tone": "🙆🏻\u200d♀️",
+ "woman_gesturing_ok_medium-dark_skin_tone": "🙆🏾\u200d♀️",
+ "woman_gesturing_ok_medium-light_skin_tone": "🙆🏼\u200d♀️",
+ "woman_gesturing_ok_medium_skin_tone": "🙆🏽\u200d♀️",
+ "woman_getting_haircut": "💇\u200d♀️",
+ "woman_getting_haircut_dark_skin_tone": "💇🏿\u200d♀️",
+ "woman_getting_haircut_light_skin_tone": "💇🏻\u200d♀️",
+ "woman_getting_haircut_medium-dark_skin_tone": "💇🏾\u200d♀️",
+ "woman_getting_haircut_medium-light_skin_tone": "💇🏼\u200d♀️",
+ "woman_getting_haircut_medium_skin_tone": "💇🏽\u200d♀️",
+ "woman_getting_massage": "💆\u200d♀️",
+ "woman_getting_massage_dark_skin_tone": "💆🏿\u200d♀️",
+ "woman_getting_massage_light_skin_tone": "💆🏻\u200d♀️",
+ "woman_getting_massage_medium-dark_skin_tone": "💆🏾\u200d♀️",
+ "woman_getting_massage_medium-light_skin_tone": "💆🏼\u200d♀️",
+ "woman_getting_massage_medium_skin_tone": "💆🏽\u200d♀️",
+ "woman_golfing": "🏌️\u200d♀️",
+ "woman_golfing_dark_skin_tone": "🏌🏿\u200d♀️",
+ "woman_golfing_light_skin_tone": "🏌🏻\u200d♀️",
+ "woman_golfing_medium-dark_skin_tone": "🏌🏾\u200d♀️",
+ "woman_golfing_medium-light_skin_tone": "🏌🏼\u200d♀️",
+ "woman_golfing_medium_skin_tone": "🏌🏽\u200d♀️",
+ "woman_guard": "💂\u200d♀️",
+ "woman_guard_dark_skin_tone": "💂🏿\u200d♀️",
+ "woman_guard_light_skin_tone": "💂🏻\u200d♀️",
+ "woman_guard_medium-dark_skin_tone": "💂🏾\u200d♀️",
+ "woman_guard_medium-light_skin_tone": "💂🏼\u200d♀️",
+ "woman_guard_medium_skin_tone": "💂🏽\u200d♀️",
+ "woman_health_worker": "👩\u200d⚕️",
+ "woman_health_worker_dark_skin_tone": "👩🏿\u200d⚕️",
+ "woman_health_worker_light_skin_tone": "👩🏻\u200d⚕️",
+ "woman_health_worker_medium-dark_skin_tone": "👩🏾\u200d⚕️",
+ "woman_health_worker_medium-light_skin_tone": "👩🏼\u200d⚕️",
+ "woman_health_worker_medium_skin_tone": "👩🏽\u200d⚕️",
+ "woman_in_lotus_position": "🧘\u200d♀️",
+ "woman_in_lotus_position_dark_skin_tone": "🧘🏿\u200d♀️",
+ "woman_in_lotus_position_light_skin_tone": "🧘🏻\u200d♀️",
+ "woman_in_lotus_position_medium-dark_skin_tone": "🧘🏾\u200d♀️",
+ "woman_in_lotus_position_medium-light_skin_tone": "🧘🏼\u200d♀️",
+ "woman_in_lotus_position_medium_skin_tone": "🧘🏽\u200d♀️",
+ "woman_in_manual_wheelchair": "👩\u200d🦽",
+ "woman_in_motorized_wheelchair": "👩\u200d🦼",
+ "woman_in_steamy_room": "🧖\u200d♀️",
+ "woman_in_steamy_room_dark_skin_tone": "🧖🏿\u200d♀️",
+ "woman_in_steamy_room_light_skin_tone": "🧖🏻\u200d♀️",
+ "woman_in_steamy_room_medium-dark_skin_tone": "🧖🏾\u200d♀️",
+ "woman_in_steamy_room_medium-light_skin_tone": "🧖🏼\u200d♀️",
+ "woman_in_steamy_room_medium_skin_tone": "🧖🏽\u200d♀️",
+ "woman_judge": "👩\u200d⚖️",
+ "woman_judge_dark_skin_tone": "👩🏿\u200d⚖️",
+ "woman_judge_light_skin_tone": "👩🏻\u200d⚖️",
+ "woman_judge_medium-dark_skin_tone": "👩🏾\u200d⚖️",
+ "woman_judge_medium-light_skin_tone": "👩🏼\u200d⚖️",
+ "woman_judge_medium_skin_tone": "👩🏽\u200d⚖️",
+ "woman_juggling": "🤹\u200d♀️",
+ "woman_juggling_dark_skin_tone": "🤹🏿\u200d♀️",
+ "woman_juggling_light_skin_tone": "🤹🏻\u200d♀️",
+ "woman_juggling_medium-dark_skin_tone": "🤹🏾\u200d♀️",
+ "woman_juggling_medium-light_skin_tone": "🤹🏼\u200d♀️",
+ "woman_juggling_medium_skin_tone": "🤹🏽\u200d♀️",
+ "woman_lifting_weights": "🏋️\u200d♀️",
+ "woman_lifting_weights_dark_skin_tone": "🏋🏿\u200d♀️",
+ "woman_lifting_weights_light_skin_tone": "🏋🏻\u200d♀️",
+ "woman_lifting_weights_medium-dark_skin_tone": "🏋🏾\u200d♀️",
+ "woman_lifting_weights_medium-light_skin_tone": "🏋🏼\u200d♀️",
+ "woman_lifting_weights_medium_skin_tone": "🏋🏽\u200d♀️",
+ "woman_light_skin_tone": "👩🏻",
+ "woman_mage": "🧙\u200d♀️",
+ "woman_mage_dark_skin_tone": "🧙🏿\u200d♀️",
+ "woman_mage_light_skin_tone": "🧙🏻\u200d♀️",
+ "woman_mage_medium-dark_skin_tone": "🧙🏾\u200d♀️",
+ "woman_mage_medium-light_skin_tone": "🧙🏼\u200d♀️",
+ "woman_mage_medium_skin_tone": "🧙🏽\u200d♀️",
+ "woman_mechanic": "👩\u200d🔧",
+ "woman_mechanic_dark_skin_tone": "👩🏿\u200d🔧",
+ "woman_mechanic_light_skin_tone": "👩🏻\u200d🔧",
+ "woman_mechanic_medium-dark_skin_tone": "👩🏾\u200d🔧",
+ "woman_mechanic_medium-light_skin_tone": "👩🏼\u200d🔧",
+ "woman_mechanic_medium_skin_tone": "👩🏽\u200d🔧",
+ "woman_medium-dark_skin_tone": "👩🏾",
+ "woman_medium-light_skin_tone": "👩🏼",
+ "woman_medium_skin_tone": "👩🏽",
+ "woman_mountain_biking": "🚵\u200d♀️",
+ "woman_mountain_biking_dark_skin_tone": "🚵🏿\u200d♀️",
+ "woman_mountain_biking_light_skin_tone": "🚵🏻\u200d♀️",
+ "woman_mountain_biking_medium-dark_skin_tone": "🚵🏾\u200d♀️",
+ "woman_mountain_biking_medium-light_skin_tone": "🚵🏼\u200d♀️",
+ "woman_mountain_biking_medium_skin_tone": "🚵🏽\u200d♀️",
+ "woman_office_worker": "👩\u200d💼",
+ "woman_office_worker_dark_skin_tone": "👩🏿\u200d💼",
+ "woman_office_worker_light_skin_tone": "👩🏻\u200d💼",
+ "woman_office_worker_medium-dark_skin_tone": "👩🏾\u200d💼",
+ "woman_office_worker_medium-light_skin_tone": "👩🏼\u200d💼",
+ "woman_office_worker_medium_skin_tone": "👩🏽\u200d💼",
+ "woman_pilot": "👩\u200d✈️",
+ "woman_pilot_dark_skin_tone": "👩🏿\u200d✈️",
+ "woman_pilot_light_skin_tone": "👩🏻\u200d✈️",
+ "woman_pilot_medium-dark_skin_tone": "👩🏾\u200d✈️",
+ "woman_pilot_medium-light_skin_tone": "👩🏼\u200d✈️",
+ "woman_pilot_medium_skin_tone": "👩🏽\u200d✈️",
+ "woman_playing_handball": "🤾\u200d♀️",
+ "woman_playing_handball_dark_skin_tone": "🤾🏿\u200d♀️",
+ "woman_playing_handball_light_skin_tone": "🤾🏻\u200d♀️",
+ "woman_playing_handball_medium-dark_skin_tone": "🤾🏾\u200d♀️",
+ "woman_playing_handball_medium-light_skin_tone": "🤾🏼\u200d♀️",
+ "woman_playing_handball_medium_skin_tone": "🤾🏽\u200d♀️",
+ "woman_playing_water_polo": "🤽\u200d♀️",
+ "woman_playing_water_polo_dark_skin_tone": "🤽🏿\u200d♀️",
+ "woman_playing_water_polo_light_skin_tone": "🤽🏻\u200d♀️",
+ "woman_playing_water_polo_medium-dark_skin_tone": "🤽🏾\u200d♀️",
+ "woman_playing_water_polo_medium-light_skin_tone": "🤽🏼\u200d♀️",
+ "woman_playing_water_polo_medium_skin_tone": "🤽🏽\u200d♀️",
+ "woman_police_officer": "👮\u200d♀️",
+ "woman_police_officer_dark_skin_tone": "👮🏿\u200d♀️",
+ "woman_police_officer_light_skin_tone": "👮🏻\u200d♀️",
+ "woman_police_officer_medium-dark_skin_tone": "👮🏾\u200d♀️",
+ "woman_police_officer_medium-light_skin_tone": "👮🏼\u200d♀️",
+ "woman_police_officer_medium_skin_tone": "👮🏽\u200d♀️",
+ "woman_pouting": "🙎\u200d♀️",
+ "woman_pouting_dark_skin_tone": "🙎🏿\u200d♀️",
+ "woman_pouting_light_skin_tone": "🙎🏻\u200d♀️",
+ "woman_pouting_medium-dark_skin_tone": "🙎🏾\u200d♀️",
+ "woman_pouting_medium-light_skin_tone": "🙎🏼\u200d♀️",
+ "woman_pouting_medium_skin_tone": "🙎🏽\u200d♀️",
+ "woman_raising_hand": "🙋\u200d♀️",
+ "woman_raising_hand_dark_skin_tone": "🙋🏿\u200d♀️",
+ "woman_raising_hand_light_skin_tone": "🙋🏻\u200d♀️",
+ "woman_raising_hand_medium-dark_skin_tone": "🙋🏾\u200d♀️",
+ "woman_raising_hand_medium-light_skin_tone": "🙋🏼\u200d♀️",
+ "woman_raising_hand_medium_skin_tone": "🙋🏽\u200d♀️",
+ "woman_rowing_boat": "🚣\u200d♀️",
+ "woman_rowing_boat_dark_skin_tone": "🚣🏿\u200d♀️",
+ "woman_rowing_boat_light_skin_tone": "🚣🏻\u200d♀️",
+ "woman_rowing_boat_medium-dark_skin_tone": "🚣🏾\u200d♀️",
+ "woman_rowing_boat_medium-light_skin_tone": "🚣🏼\u200d♀️",
+ "woman_rowing_boat_medium_skin_tone": "🚣🏽\u200d♀️",
+ "woman_running": "🏃\u200d♀️",
+ "woman_running_dark_skin_tone": "🏃🏿\u200d♀️",
+ "woman_running_light_skin_tone": "🏃🏻\u200d♀️",
+ "woman_running_medium-dark_skin_tone": "🏃🏾\u200d♀️",
+ "woman_running_medium-light_skin_tone": "🏃🏼\u200d♀️",
+ "woman_running_medium_skin_tone": "🏃🏽\u200d♀️",
+ "woman_scientist": "👩\u200d🔬",
+ "woman_scientist_dark_skin_tone": "👩🏿\u200d🔬",
+ "woman_scientist_light_skin_tone": "👩🏻\u200d🔬",
+ "woman_scientist_medium-dark_skin_tone": "👩🏾\u200d🔬",
+ "woman_scientist_medium-light_skin_tone": "👩🏼\u200d🔬",
+ "woman_scientist_medium_skin_tone": "👩🏽\u200d🔬",
+ "woman_shrugging": "🤷\u200d♀️",
+ "woman_shrugging_dark_skin_tone": "🤷🏿\u200d♀️",
+ "woman_shrugging_light_skin_tone": "🤷🏻\u200d♀️",
+ "woman_shrugging_medium-dark_skin_tone": "🤷🏾\u200d♀️",
+ "woman_shrugging_medium-light_skin_tone": "🤷🏼\u200d♀️",
+ "woman_shrugging_medium_skin_tone": "🤷🏽\u200d♀️",
+ "woman_singer": "👩\u200d🎤",
+ "woman_singer_dark_skin_tone": "👩🏿\u200d🎤",
+ "woman_singer_light_skin_tone": "👩🏻\u200d🎤",
+ "woman_singer_medium-dark_skin_tone": "👩🏾\u200d🎤",
+ "woman_singer_medium-light_skin_tone": "👩🏼\u200d🎤",
+ "woman_singer_medium_skin_tone": "👩🏽\u200d🎤",
+ "woman_student": "👩\u200d🎓",
+ "woman_student_dark_skin_tone": "👩🏿\u200d🎓",
+ "woman_student_light_skin_tone": "👩🏻\u200d🎓",
+ "woman_student_medium-dark_skin_tone": "👩🏾\u200d🎓",
+ "woman_student_medium-light_skin_tone": "👩🏼\u200d🎓",
+ "woman_student_medium_skin_tone": "👩🏽\u200d🎓",
+ "woman_surfing": "🏄\u200d♀️",
+ "woman_surfing_dark_skin_tone": "🏄🏿\u200d♀️",
+ "woman_surfing_light_skin_tone": "🏄🏻\u200d♀️",
+ "woman_surfing_medium-dark_skin_tone": "🏄🏾\u200d♀️",
+ "woman_surfing_medium-light_skin_tone": "🏄🏼\u200d♀️",
+ "woman_surfing_medium_skin_tone": "🏄🏽\u200d♀️",
+ "woman_swimming": "🏊\u200d♀️",
+ "woman_swimming_dark_skin_tone": "🏊🏿\u200d♀️",
+ "woman_swimming_light_skin_tone": "🏊🏻\u200d♀️",
+ "woman_swimming_medium-dark_skin_tone": "🏊🏾\u200d♀️",
+ "woman_swimming_medium-light_skin_tone": "🏊🏼\u200d♀️",
+ "woman_swimming_medium_skin_tone": "🏊🏽\u200d♀️",
+ "woman_teacher": "👩\u200d🏫",
+ "woman_teacher_dark_skin_tone": "👩🏿\u200d🏫",
+ "woman_teacher_light_skin_tone": "👩🏻\u200d🏫",
+ "woman_teacher_medium-dark_skin_tone": "👩🏾\u200d🏫",
+ "woman_teacher_medium-light_skin_tone": "👩🏼\u200d🏫",
+ "woman_teacher_medium_skin_tone": "👩🏽\u200d🏫",
+ "woman_technologist": "👩\u200d💻",
+ "woman_technologist_dark_skin_tone": "👩🏿\u200d💻",
+ "woman_technologist_light_skin_tone": "👩🏻\u200d💻",
+ "woman_technologist_medium-dark_skin_tone": "👩🏾\u200d💻",
+ "woman_technologist_medium-light_skin_tone": "👩🏼\u200d💻",
+ "woman_technologist_medium_skin_tone": "👩🏽\u200d💻",
+ "woman_tipping_hand": "💁\u200d♀️",
+ "woman_tipping_hand_dark_skin_tone": "💁🏿\u200d♀️",
+ "woman_tipping_hand_light_skin_tone": "💁🏻\u200d♀️",
+ "woman_tipping_hand_medium-dark_skin_tone": "💁🏾\u200d♀️",
+ "woman_tipping_hand_medium-light_skin_tone": "💁🏼\u200d♀️",
+ "woman_tipping_hand_medium_skin_tone": "💁🏽\u200d♀️",
+ "woman_vampire": "🧛\u200d♀️",
+ "woman_vampire_dark_skin_tone": "🧛🏿\u200d♀️",
+ "woman_vampire_light_skin_tone": "🧛🏻\u200d♀️",
+ "woman_vampire_medium-dark_skin_tone": "🧛🏾\u200d♀️",
+ "woman_vampire_medium-light_skin_tone": "🧛🏼\u200d♀️",
+ "woman_vampire_medium_skin_tone": "🧛🏽\u200d♀️",
+ "woman_walking": "🚶\u200d♀️",
+ "woman_walking_dark_skin_tone": "🚶🏿\u200d♀️",
+ "woman_walking_light_skin_tone": "🚶🏻\u200d♀️",
+ "woman_walking_medium-dark_skin_tone": "🚶🏾\u200d♀️",
+ "woman_walking_medium-light_skin_tone": "🚶🏼\u200d♀️",
+ "woman_walking_medium_skin_tone": "🚶🏽\u200d♀️",
+ "woman_wearing_turban": "👳\u200d♀️",
+ "woman_wearing_turban_dark_skin_tone": "👳🏿\u200d♀️",
+ "woman_wearing_turban_light_skin_tone": "👳🏻\u200d♀️",
+ "woman_wearing_turban_medium-dark_skin_tone": "👳🏾\u200d♀️",
+ "woman_wearing_turban_medium-light_skin_tone": "👳🏼\u200d♀️",
+ "woman_wearing_turban_medium_skin_tone": "👳🏽\u200d♀️",
+ "woman_with_headscarf": "🧕",
+ "woman_with_headscarf_dark_skin_tone": "🧕🏿",
+ "woman_with_headscarf_light_skin_tone": "🧕🏻",
+ "woman_with_headscarf_medium-dark_skin_tone": "🧕🏾",
+ "woman_with_headscarf_medium-light_skin_tone": "🧕🏼",
+ "woman_with_headscarf_medium_skin_tone": "🧕🏽",
+ "woman_with_probing_cane": "👩\u200d🦯",
+ "woman_zombie": "🧟\u200d♀️",
+ "woman’s_boot": "👢",
+ "woman’s_clothes": "👚",
+ "woman’s_hat": "👒",
+ "woman’s_sandal": "👡",
+ "women_with_bunny_ears": "👯\u200d♀️",
+ "women_wrestling": "🤼\u200d♀️",
+ "women’s_room": "🚺",
+ "woozy_face": "🥴",
+ "world_map": "🗺",
+ "worried_face": "😟",
+ "wrapped_gift": "🎁",
+ "wrench": "🔧",
+ "writing_hand": "✍",
+ "writing_hand_dark_skin_tone": "✍🏿",
+ "writing_hand_light_skin_tone": "✍🏻",
+ "writing_hand_medium-dark_skin_tone": "✍🏾",
+ "writing_hand_medium-light_skin_tone": "✍🏼",
+ "writing_hand_medium_skin_tone": "✍🏽",
+ "yarn": "🧶",
+ "yawning_face": "🥱",
+ "yellow_circle": "🟡",
+ "yellow_heart": "💛",
+ "yellow_square": "🟨",
+ "yen_banknote": "💴",
+ "yo-yo": "🪀",
+ "yin_yang": "☯",
+ "zany_face": "🤪",
+ "zebra": "🦓",
+ "zipper-mouth_face": "🤐",
+ "zombie": "🧟",
+ "zzz": "💤",
+ "åland_islands": "🇦🇽",
+ "keycap_asterisk": "*⃣",
+ "keycap_digit_eight": "8⃣",
+ "keycap_digit_five": "5⃣",
+ "keycap_digit_four": "4⃣",
+ "keycap_digit_nine": "9⃣",
+ "keycap_digit_one": "1⃣",
+ "keycap_digit_seven": "7⃣",
+ "keycap_digit_six": "6⃣",
+ "keycap_digit_three": "3⃣",
+ "keycap_digit_two": "2⃣",
+ "keycap_digit_zero": "0⃣",
+ "keycap_number_sign": "#⃣",
+ "light_skin_tone": "🏻",
+ "medium_light_skin_tone": "🏼",
+ "medium_skin_tone": "🏽",
+ "medium_dark_skin_tone": "🏾",
+ "dark_skin_tone": "🏿",
+ "regional_indicator_symbol_letter_a": "🇦",
+ "regional_indicator_symbol_letter_b": "🇧",
+ "regional_indicator_symbol_letter_c": "🇨",
+ "regional_indicator_symbol_letter_d": "🇩",
+ "regional_indicator_symbol_letter_e": "🇪",
+ "regional_indicator_symbol_letter_f": "🇫",
+ "regional_indicator_symbol_letter_g": "🇬",
+ "regional_indicator_symbol_letter_h": "🇭",
+ "regional_indicator_symbol_letter_i": "🇮",
+ "regional_indicator_symbol_letter_j": "🇯",
+ "regional_indicator_symbol_letter_k": "🇰",
+ "regional_indicator_symbol_letter_l": "🇱",
+ "regional_indicator_symbol_letter_m": "🇲",
+ "regional_indicator_symbol_letter_n": "🇳",
+ "regional_indicator_symbol_letter_o": "🇴",
+ "regional_indicator_symbol_letter_p": "🇵",
+ "regional_indicator_symbol_letter_q": "🇶",
+ "regional_indicator_symbol_letter_r": "🇷",
+ "regional_indicator_symbol_letter_s": "🇸",
+ "regional_indicator_symbol_letter_t": "🇹",
+ "regional_indicator_symbol_letter_u": "🇺",
+ "regional_indicator_symbol_letter_v": "🇻",
+ "regional_indicator_symbol_letter_w": "🇼",
+ "regional_indicator_symbol_letter_x": "🇽",
+ "regional_indicator_symbol_letter_y": "🇾",
+ "regional_indicator_symbol_letter_z": "🇿",
+ "airplane_arriving": "🛬",
+ "space_invader": "👾",
+ "football": "🏈",
+ "anger": "💢",
+ "angry": "😠",
+ "anguished": "😧",
+ "signal_strength": "📶",
+ "arrows_counterclockwise": "🔄",
+ "arrow_heading_down": "⤵",
+ "arrow_heading_up": "⤴",
+ "art": "🎨",
+ "astonished": "😲",
+ "athletic_shoe": "👟",
+ "atm": "🏧",
+ "car": "🚗",
+ "red_car": "🚗",
+ "angel": "👼",
+ "back": "🔙",
+ "badminton_racquet_and_shuttlecock": "🏸",
+ "dollar": "💵",
+ "euro": "💶",
+ "pound": "💷",
+ "yen": "💴",
+ "barber": "💈",
+ "bath": "🛀",
+ "bear": "🐻",
+ "heartbeat": "💓",
+ "beer": "🍺",
+ "no_bell": "🔕",
+ "bento": "🍱",
+ "bike": "🚲",
+ "bicyclist": "🚴",
+ "8ball": "🎱",
+ "biohazard_sign": "☣",
+ "birthday": "🎂",
+ "black_circle_for_record": "⏺",
+ "clubs": "♣",
+ "diamonds": "♦",
+ "arrow_double_down": "⏬",
+ "hearts": "♥",
+ "rewind": "⏪",
+ "black_left__pointing_double_triangle_with_vertical_bar": "⏮",
+ "arrow_backward": "◀",
+ "black_medium_small_square": "◾",
+ "question": "❓",
+ "fast_forward": "⏩",
+ "black_right__pointing_double_triangle_with_vertical_bar": "⏭",
+ "arrow_forward": "▶",
+ "black_right__pointing_triangle_with_double_vertical_bar": "⏯",
+ "arrow_right": "➡",
+ "spades": "♠",
+ "black_square_for_stop": "⏹",
+ "sunny": "☀",
+ "phone": "☎",
+ "recycle": "♻",
+ "arrow_double_up": "⏫",
+ "busstop": "🚏",
+ "date": "📅",
+ "flags": "🎏",
+ "cat2": "🐈",
+ "joy_cat": "😹",
+ "smirk_cat": "😼",
+ "chart_with_downwards_trend": "📉",
+ "chart_with_upwards_trend": "📈",
+ "chart": "💹",
+ "mega": "📣",
+ "checkered_flag": "🏁",
+ "accept": "🉑",
+ "ideograph_advantage": "🉐",
+ "congratulations": "㊗",
+ "secret": "㊙",
+ "m": "Ⓜ",
+ "city_sunset": "🌆",
+ "clapper": "🎬",
+ "clap": "👏",
+ "beers": "🍻",
+ "clock830": "🕣",
+ "clock8": "🕗",
+ "clock1130": "🕦",
+ "clock11": "🕚",
+ "clock530": "🕠",
+ "clock5": "🕔",
+ "clock430": "🕟",
+ "clock4": "🕓",
+ "clock930": "🕤",
+ "clock9": "🕘",
+ "clock130": "🕜",
+ "clock1": "🕐",
+ "clock730": "🕢",
+ "clock7": "🕖",
+ "clock630": "🕡",
+ "clock6": "🕕",
+ "clock1030": "🕥",
+ "clock10": "🕙",
+ "clock330": "🕞",
+ "clock3": "🕒",
+ "clock1230": "🕧",
+ "clock12": "🕛",
+ "clock230": "🕝",
+ "clock2": "🕑",
+ "arrows_clockwise": "🔃",
+ "repeat": "🔁",
+ "repeat_one": "🔂",
+ "closed_lock_with_key": "🔐",
+ "mailbox_closed": "📪",
+ "mailbox": "📫",
+ "cloud_with_tornado": "🌪",
+ "cocktail": "🍸",
+ "boom": "💥",
+ "compression": "🗜",
+ "confounded": "😖",
+ "confused": "😕",
+ "rice": "🍚",
+ "cow2": "🐄",
+ "cricket_bat_and_ball": "🏏",
+ "x": "❌",
+ "cry": "😢",
+ "curry": "🍛",
+ "dagger_knife": "🗡",
+ "dancer": "💃",
+ "dark_sunglasses": "🕶",
+ "dash": "💨",
+ "truck": "🚚",
+ "derelict_house_building": "🏚",
+ "diamond_shape_with_a_dot_inside": "💠",
+ "dart": "🎯",
+ "disappointed_relieved": "😥",
+ "disappointed": "😞",
+ "do_not_litter": "🚯",
+ "dog2": "🐕",
+ "flipper": "🐬",
+ "loop": "➿",
+ "bangbang": "‼",
+ "double_vertical_bar": "⏸",
+ "dove_of_peace": "🕊",
+ "small_red_triangle_down": "🔻",
+ "arrow_down_small": "🔽",
+ "arrow_down": "⬇",
+ "dromedary_camel": "🐪",
+ "e__mail": "📧",
+ "corn": "🌽",
+ "ear_of_rice": "🌾",
+ "earth_americas": "🌎",
+ "earth_asia": "🌏",
+ "earth_africa": "🌍",
+ "eight_pointed_black_star": "✴",
+ "eight_spoked_asterisk": "✳",
+ "eject_symbol": "⏏",
+ "bulb": "💡",
+ "emoji_modifier_fitzpatrick_type__1__2": "🏻",
+ "emoji_modifier_fitzpatrick_type__3": "🏼",
+ "emoji_modifier_fitzpatrick_type__4": "🏽",
+ "emoji_modifier_fitzpatrick_type__5": "🏾",
+ "emoji_modifier_fitzpatrick_type__6": "🏿",
+ "end": "🔚",
+ "email": "✉",
+ "european_castle": "🏰",
+ "european_post_office": "🏤",
+ "interrobang": "⁉",
+ "expressionless": "😑",
+ "eyeglasses": "👓",
+ "massage": "💆",
+ "yum": "😋",
+ "scream": "😱",
+ "kissing_heart": "😘",
+ "sweat": "😓",
+ "face_with_head__bandage": "🤕",
+ "triumph": "😤",
+ "mask": "😷",
+ "no_good": "🙅",
+ "ok_woman": "🙆",
+ "open_mouth": "😮",
+ "cold_sweat": "😰",
+ "stuck_out_tongue": "😛",
+ "stuck_out_tongue_closed_eyes": "😝",
+ "stuck_out_tongue_winking_eye": "😜",
+ "joy": "😂",
+ "no_mouth": "😶",
+ "santa": "🎅",
+ "fax": "📠",
+ "fearful": "😨",
+ "field_hockey_stick_and_ball": "🏑",
+ "first_quarter_moon_with_face": "🌛",
+ "fish_cake": "🍥",
+ "fishing_pole_and_fish": "🎣",
+ "facepunch": "👊",
+ "punch": "👊",
+ "flag_for_afghanistan": "🇦🇫",
+ "flag_for_albania": "🇦🇱",
+ "flag_for_algeria": "🇩🇿",
+ "flag_for_american_samoa": "🇦🇸",
+ "flag_for_andorra": "🇦🇩",
+ "flag_for_angola": "🇦🇴",
+ "flag_for_anguilla": "🇦🇮",
+ "flag_for_antarctica": "🇦🇶",
+ "flag_for_antigua_&_barbuda": "🇦🇬",
+ "flag_for_argentina": "🇦🇷",
+ "flag_for_armenia": "🇦🇲",
+ "flag_for_aruba": "🇦🇼",
+ "flag_for_ascension_island": "🇦🇨",
+ "flag_for_australia": "🇦🇺",
+ "flag_for_austria": "🇦🇹",
+ "flag_for_azerbaijan": "🇦🇿",
+ "flag_for_bahamas": "🇧🇸",
+ "flag_for_bahrain": "🇧🇭",
+ "flag_for_bangladesh": "🇧🇩",
+ "flag_for_barbados": "🇧🇧",
+ "flag_for_belarus": "🇧🇾",
+ "flag_for_belgium": "🇧🇪",
+ "flag_for_belize": "🇧🇿",
+ "flag_for_benin": "🇧🇯",
+ "flag_for_bermuda": "🇧🇲",
+ "flag_for_bhutan": "🇧🇹",
+ "flag_for_bolivia": "🇧🇴",
+ "flag_for_bosnia_&_herzegovina": "🇧🇦",
+ "flag_for_botswana": "🇧🇼",
+ "flag_for_bouvet_island": "🇧🇻",
+ "flag_for_brazil": "🇧🇷",
+ "flag_for_british_indian_ocean_territory": "🇮🇴",
+ "flag_for_british_virgin_islands": "🇻🇬",
+ "flag_for_brunei": "🇧🇳",
+ "flag_for_bulgaria": "🇧🇬",
+ "flag_for_burkina_faso": "🇧🇫",
+ "flag_for_burundi": "🇧🇮",
+ "flag_for_cambodia": "🇰🇭",
+ "flag_for_cameroon": "🇨🇲",
+ "flag_for_canada": "🇨🇦",
+ "flag_for_canary_islands": "🇮🇨",
+ "flag_for_cape_verde": "🇨🇻",
+ "flag_for_caribbean_netherlands": "🇧🇶",
+ "flag_for_cayman_islands": "🇰🇾",
+ "flag_for_central_african_republic": "🇨🇫",
+ "flag_for_ceuta_&_melilla": "🇪🇦",
+ "flag_for_chad": "🇹🇩",
+ "flag_for_chile": "🇨🇱",
+ "flag_for_china": "🇨🇳",
+ "flag_for_christmas_island": "🇨🇽",
+ "flag_for_clipperton_island": "🇨🇵",
+ "flag_for_cocos__islands": "🇨🇨",
+ "flag_for_colombia": "🇨🇴",
+ "flag_for_comoros": "🇰🇲",
+ "flag_for_congo____brazzaville": "🇨🇬",
+ "flag_for_congo____kinshasa": "🇨🇩",
+ "flag_for_cook_islands": "🇨🇰",
+ "flag_for_costa_rica": "🇨🇷",
+ "flag_for_croatia": "🇭🇷",
+ "flag_for_cuba": "🇨🇺",
+ "flag_for_curaçao": "🇨🇼",
+ "flag_for_cyprus": "🇨🇾",
+ "flag_for_czech_republic": "🇨🇿",
+ "flag_for_côte_d’ivoire": "🇨🇮",
+ "flag_for_denmark": "🇩🇰",
+ "flag_for_diego_garcia": "🇩🇬",
+ "flag_for_djibouti": "🇩🇯",
+ "flag_for_dominica": "🇩🇲",
+ "flag_for_dominican_republic": "🇩🇴",
+ "flag_for_ecuador": "🇪🇨",
+ "flag_for_egypt": "🇪🇬",
+ "flag_for_el_salvador": "🇸🇻",
+ "flag_for_equatorial_guinea": "🇬🇶",
+ "flag_for_eritrea": "🇪🇷",
+ "flag_for_estonia": "🇪🇪",
+ "flag_for_ethiopia": "🇪🇹",
+ "flag_for_european_union": "🇪🇺",
+ "flag_for_falkland_islands": "🇫🇰",
+ "flag_for_faroe_islands": "🇫🇴",
+ "flag_for_fiji": "🇫🇯",
+ "flag_for_finland": "🇫🇮",
+ "flag_for_france": "🇫🇷",
+ "flag_for_french_guiana": "🇬🇫",
+ "flag_for_french_polynesia": "🇵🇫",
+ "flag_for_french_southern_territories": "🇹🇫",
+ "flag_for_gabon": "🇬🇦",
+ "flag_for_gambia": "🇬🇲",
+ "flag_for_georgia": "🇬🇪",
+ "flag_for_germany": "🇩🇪",
+ "flag_for_ghana": "🇬🇭",
+ "flag_for_gibraltar": "🇬🇮",
+ "flag_for_greece": "🇬🇷",
+ "flag_for_greenland": "🇬🇱",
+ "flag_for_grenada": "🇬🇩",
+ "flag_for_guadeloupe": "🇬🇵",
+ "flag_for_guam": "🇬🇺",
+ "flag_for_guatemala": "🇬🇹",
+ "flag_for_guernsey": "🇬🇬",
+ "flag_for_guinea": "🇬🇳",
+ "flag_for_guinea__bissau": "🇬🇼",
+ "flag_for_guyana": "🇬🇾",
+ "flag_for_haiti": "🇭🇹",
+ "flag_for_heard_&_mcdonald_islands": "🇭🇲",
+ "flag_for_honduras": "🇭🇳",
+ "flag_for_hong_kong": "🇭🇰",
+ "flag_for_hungary": "🇭🇺",
+ "flag_for_iceland": "🇮🇸",
+ "flag_for_india": "🇮🇳",
+ "flag_for_indonesia": "🇮🇩",
+ "flag_for_iran": "🇮🇷",
+ "flag_for_iraq": "🇮🇶",
+ "flag_for_ireland": "🇮🇪",
+ "flag_for_isle_of_man": "🇮🇲",
+ "flag_for_israel": "🇮🇱",
+ "flag_for_italy": "🇮🇹",
+ "flag_for_jamaica": "🇯🇲",
+ "flag_for_japan": "🇯🇵",
+ "flag_for_jersey": "🇯🇪",
+ "flag_for_jordan": "🇯🇴",
+ "flag_for_kazakhstan": "🇰🇿",
+ "flag_for_kenya": "🇰🇪",
+ "flag_for_kiribati": "🇰🇮",
+ "flag_for_kosovo": "🇽🇰",
+ "flag_for_kuwait": "🇰🇼",
+ "flag_for_kyrgyzstan": "🇰🇬",
+ "flag_for_laos": "🇱🇦",
+ "flag_for_latvia": "🇱🇻",
+ "flag_for_lebanon": "🇱🇧",
+ "flag_for_lesotho": "🇱🇸",
+ "flag_for_liberia": "🇱🇷",
+ "flag_for_libya": "🇱🇾",
+ "flag_for_liechtenstein": "🇱🇮",
+ "flag_for_lithuania": "🇱🇹",
+ "flag_for_luxembourg": "🇱🇺",
+ "flag_for_macau": "🇲🇴",
+ "flag_for_macedonia": "🇲🇰",
+ "flag_for_madagascar": "🇲🇬",
+ "flag_for_malawi": "🇲🇼",
+ "flag_for_malaysia": "🇲🇾",
+ "flag_for_maldives": "🇲🇻",
+ "flag_for_mali": "🇲🇱",
+ "flag_for_malta": "🇲🇹",
+ "flag_for_marshall_islands": "🇲🇭",
+ "flag_for_martinique": "🇲🇶",
+ "flag_for_mauritania": "🇲🇷",
+ "flag_for_mauritius": "🇲🇺",
+ "flag_for_mayotte": "🇾🇹",
+ "flag_for_mexico": "🇲🇽",
+ "flag_for_micronesia": "🇫🇲",
+ "flag_for_moldova": "🇲🇩",
+ "flag_for_monaco": "🇲🇨",
+ "flag_for_mongolia": "🇲🇳",
+ "flag_for_montenegro": "🇲🇪",
+ "flag_for_montserrat": "🇲🇸",
+ "flag_for_morocco": "🇲🇦",
+ "flag_for_mozambique": "🇲🇿",
+ "flag_for_myanmar": "🇲🇲",
+ "flag_for_namibia": "🇳🇦",
+ "flag_for_nauru": "🇳🇷",
+ "flag_for_nepal": "🇳🇵",
+ "flag_for_netherlands": "🇳🇱",
+ "flag_for_new_caledonia": "🇳🇨",
+ "flag_for_new_zealand": "🇳🇿",
+ "flag_for_nicaragua": "🇳🇮",
+ "flag_for_niger": "🇳🇪",
+ "flag_for_nigeria": "🇳🇬",
+ "flag_for_niue": "🇳🇺",
+ "flag_for_norfolk_island": "🇳🇫",
+ "flag_for_north_korea": "🇰🇵",
+ "flag_for_northern_mariana_islands": "🇲🇵",
+ "flag_for_norway": "🇳🇴",
+ "flag_for_oman": "🇴🇲",
+ "flag_for_pakistan": "🇵🇰",
+ "flag_for_palau": "🇵🇼",
+ "flag_for_palestinian_territories": "🇵🇸",
+ "flag_for_panama": "🇵🇦",
+ "flag_for_papua_new_guinea": "🇵🇬",
+ "flag_for_paraguay": "🇵🇾",
+ "flag_for_peru": "🇵🇪",
+ "flag_for_philippines": "🇵🇭",
+ "flag_for_pitcairn_islands": "🇵🇳",
+ "flag_for_poland": "🇵🇱",
+ "flag_for_portugal": "🇵🇹",
+ "flag_for_puerto_rico": "🇵🇷",
+ "flag_for_qatar": "🇶🇦",
+ "flag_for_romania": "🇷🇴",
+ "flag_for_russia": "🇷🇺",
+ "flag_for_rwanda": "🇷🇼",
+ "flag_for_réunion": "🇷🇪",
+ "flag_for_samoa": "🇼🇸",
+ "flag_for_san_marino": "🇸🇲",
+ "flag_for_saudi_arabia": "🇸🇦",
+ "flag_for_senegal": "🇸🇳",
+ "flag_for_serbia": "🇷🇸",
+ "flag_for_seychelles": "🇸🇨",
+ "flag_for_sierra_leone": "🇸🇱",
+ "flag_for_singapore": "🇸🇬",
+ "flag_for_sint_maarten": "🇸🇽",
+ "flag_for_slovakia": "🇸🇰",
+ "flag_for_slovenia": "🇸🇮",
+ "flag_for_solomon_islands": "🇸🇧",
+ "flag_for_somalia": "🇸🇴",
+ "flag_for_south_africa": "🇿🇦",
+ "flag_for_south_georgia_&_south_sandwich_islands": "🇬🇸",
+ "flag_for_south_korea": "🇰🇷",
+ "flag_for_south_sudan": "🇸🇸",
+ "flag_for_spain": "🇪🇸",
+ "flag_for_sri_lanka": "🇱🇰",
+ "flag_for_st._barthélemy": "🇧🇱",
+ "flag_for_st._helena": "🇸🇭",
+ "flag_for_st._kitts_&_nevis": "🇰🇳",
+ "flag_for_st._lucia": "🇱🇨",
+ "flag_for_st._martin": "🇲🇫",
+ "flag_for_st._pierre_&_miquelon": "🇵🇲",
+ "flag_for_st._vincent_&_grenadines": "🇻🇨",
+ "flag_for_sudan": "🇸🇩",
+ "flag_for_suriname": "🇸🇷",
+ "flag_for_svalbard_&_jan_mayen": "🇸🇯",
+ "flag_for_swaziland": "🇸🇿",
+ "flag_for_sweden": "🇸🇪",
+ "flag_for_switzerland": "🇨🇭",
+ "flag_for_syria": "🇸🇾",
+ "flag_for_são_tomé_&_príncipe": "🇸🇹",
+ "flag_for_taiwan": "🇹🇼",
+ "flag_for_tajikistan": "🇹🇯",
+ "flag_for_tanzania": "🇹🇿",
+ "flag_for_thailand": "🇹🇭",
+ "flag_for_timor__leste": "🇹🇱",
+ "flag_for_togo": "🇹🇬",
+ "flag_for_tokelau": "🇹🇰",
+ "flag_for_tonga": "🇹🇴",
+ "flag_for_trinidad_&_tobago": "🇹🇹",
+ "flag_for_tristan_da_cunha": "🇹🇦",
+ "flag_for_tunisia": "🇹🇳",
+ "flag_for_turkey": "🇹🇷",
+ "flag_for_turkmenistan": "🇹🇲",
+ "flag_for_turks_&_caicos_islands": "🇹🇨",
+ "flag_for_tuvalu": "🇹🇻",
+ "flag_for_u.s._outlying_islands": "🇺🇲",
+ "flag_for_u.s._virgin_islands": "🇻🇮",
+ "flag_for_uganda": "🇺🇬",
+ "flag_for_ukraine": "🇺🇦",
+ "flag_for_united_arab_emirates": "🇦🇪",
+ "flag_for_united_kingdom": "🇬🇧",
+ "flag_for_united_states": "🇺🇸",
+ "flag_for_uruguay": "🇺🇾",
+ "flag_for_uzbekistan": "🇺🇿",
+ "flag_for_vanuatu": "🇻🇺",
+ "flag_for_vatican_city": "🇻🇦",
+ "flag_for_venezuela": "🇻🇪",
+ "flag_for_vietnam": "🇻🇳",
+ "flag_for_wallis_&_futuna": "🇼🇫",
+ "flag_for_western_sahara": "🇪🇭",
+ "flag_for_yemen": "🇾🇪",
+ "flag_for_zambia": "🇿🇲",
+ "flag_for_zimbabwe": "🇿🇼",
+ "flag_for_åland_islands": "🇦🇽",
+ "golf": "⛳",
+ "fleur__de__lis": "⚜",
+ "muscle": "💪",
+ "flushed": "😳",
+ "frame_with_picture": "🖼",
+ "fries": "🍟",
+ "frog": "🐸",
+ "hatched_chick": "🐥",
+ "frowning": "😦",
+ "fuelpump": "⛽",
+ "full_moon_with_face": "🌝",
+ "gem": "💎",
+ "star2": "🌟",
+ "golfer": "🏌",
+ "mortar_board": "🎓",
+ "grimacing": "😬",
+ "smile_cat": "😸",
+ "grinning": "😀",
+ "grin": "😁",
+ "heartpulse": "💗",
+ "guardsman": "💂",
+ "haircut": "💇",
+ "hamster": "🐹",
+ "raising_hand": "🙋",
+ "headphones": "🎧",
+ "hear_no_evil": "🙉",
+ "cupid": "💘",
+ "gift_heart": "💝",
+ "heart": "❤",
+ "exclamation": "❗",
+ "heavy_exclamation_mark": "❗",
+ "heavy_heart_exclamation_mark_ornament": "❣",
+ "o": "⭕",
+ "helm_symbol": "⎈",
+ "helmet_with_white_cross": "⛑",
+ "high_heel": "👠",
+ "bullettrain_side": "🚄",
+ "bullettrain_front": "🚅",
+ "high_brightness": "🔆",
+ "zap": "⚡",
+ "hocho": "🔪",
+ "knife": "🔪",
+ "bee": "🐝",
+ "traffic_light": "🚥",
+ "racehorse": "🐎",
+ "coffee": "☕",
+ "hotsprings": "♨",
+ "hourglass": "⌛",
+ "hourglass_flowing_sand": "⏳",
+ "house_buildings": "🏘",
+ "100": "💯",
+ "hushed": "😯",
+ "ice_hockey_stick_and_puck": "🏒",
+ "imp": "👿",
+ "information_desk_person": "💁",
+ "information_source": "ℹ",
+ "capital_abcd": "🔠",
+ "abc": "🔤",
+ "abcd": "🔡",
+ "1234": "🔢",
+ "symbols": "🔣",
+ "izakaya_lantern": "🏮",
+ "lantern": "🏮",
+ "jack_o_lantern": "🎃",
+ "dolls": "🎎",
+ "japanese_goblin": "👺",
+ "japanese_ogre": "👹",
+ "beginner": "🔰",
+ "zero": "0️⃣",
+ "one": "1️⃣",
+ "ten": "🔟",
+ "two": "2️⃣",
+ "three": "3️⃣",
+ "four": "4️⃣",
+ "five": "5️⃣",
+ "six": "6️⃣",
+ "seven": "7️⃣",
+ "eight": "8️⃣",
+ "nine": "9️⃣",
+ "couplekiss": "💏",
+ "kissing_cat": "😽",
+ "kissing": "😗",
+ "kissing_closed_eyes": "😚",
+ "kissing_smiling_eyes": "😙",
+ "beetle": "🐞",
+ "large_blue_circle": "🔵",
+ "last_quarter_moon_with_face": "🌜",
+ "leaves": "🍃",
+ "mag": "🔍",
+ "left_right_arrow": "↔",
+ "leftwards_arrow_with_hook": "↩",
+ "arrow_left": "⬅",
+ "lock": "🔒",
+ "lock_with_ink_pen": "🔏",
+ "sob": "😭",
+ "low_brightness": "🔅",
+ "lower_left_ballpoint_pen": "🖊",
+ "lower_left_crayon": "🖍",
+ "lower_left_fountain_pen": "🖋",
+ "lower_left_paintbrush": "🖌",
+ "mahjong": "🀄",
+ "couple": "👫",
+ "man_in_business_suit_levitating": "🕴",
+ "man_with_gua_pi_mao": "👲",
+ "man_with_turban": "👳",
+ "mans_shoe": "👞",
+ "shoe": "👞",
+ "menorah_with_nine_branches": "🕎",
+ "mens": "🚹",
+ "minidisc": "💽",
+ "iphone": "📱",
+ "calling": "📲",
+ "money__mouth_face": "🤑",
+ "moneybag": "💰",
+ "rice_scene": "🎑",
+ "mountain_bicyclist": "🚵",
+ "mouse2": "🐁",
+ "lips": "👄",
+ "moyai": "🗿",
+ "notes": "🎶",
+ "nail_care": "💅",
+ "ab": "🆎",
+ "negative_squared_cross_mark": "❎",
+ "a": "🅰",
+ "b": "🅱",
+ "o2": "🅾",
+ "parking": "🅿",
+ "new_moon_with_face": "🌚",
+ "no_entry_sign": "🚫",
+ "underage": "🔞",
+ "non__potable_water": "🚱",
+ "arrow_upper_right": "↗",
+ "arrow_upper_left": "↖",
+ "office": "🏢",
+ "older_man": "👴",
+ "older_woman": "👵",
+ "om_symbol": "🕉",
+ "on": "🔛",
+ "book": "📖",
+ "unlock": "🔓",
+ "mailbox_with_no_mail": "📭",
+ "mailbox_with_mail": "📬",
+ "cd": "💿",
+ "tada": "🎉",
+ "feet": "🐾",
+ "walking": "🚶",
+ "pencil2": "✏",
+ "pensive": "😔",
+ "persevere": "😣",
+ "bow": "🙇",
+ "raised_hands": "🙌",
+ "person_with_ball": "⛹",
+ "person_with_blond_hair": "👱",
+ "pray": "🙏",
+ "person_with_pouting_face": "🙎",
+ "computer": "💻",
+ "pig2": "🐖",
+ "hankey": "💩",
+ "poop": "💩",
+ "shit": "💩",
+ "bamboo": "🎍",
+ "gun": "🔫",
+ "black_joker": "🃏",
+ "rotating_light": "🚨",
+ "cop": "👮",
+ "stew": "🍲",
+ "pouch": "👝",
+ "pouting_cat": "😾",
+ "rage": "😡",
+ "put_litter_in_its_place": "🚮",
+ "rabbit2": "🐇",
+ "racing_motorcycle": "🏍",
+ "radioactive_sign": "☢",
+ "fist": "✊",
+ "hand": "✋",
+ "raised_hand_with_fingers_splayed": "🖐",
+ "raised_hand_with_part_between_middle_and_ring_fingers": "🖖",
+ "blue_car": "🚙",
+ "apple": "🍎",
+ "relieved": "😌",
+ "reversed_hand_with_middle_finger_extended": "🖕",
+ "mag_right": "🔎",
+ "arrow_right_hook": "↪",
+ "sweet_potato": "🍠",
+ "robot": "🤖",
+ "rolled__up_newspaper": "🗞",
+ "rowboat": "🚣",
+ "runner": "🏃",
+ "running": "🏃",
+ "running_shirt_with_sash": "🎽",
+ "boat": "⛵",
+ "scales": "⚖",
+ "school_satchel": "🎒",
+ "scorpius": "♏",
+ "see_no_evil": "🙈",
+ "sheep": "🐑",
+ "stars": "🌠",
+ "cake": "🍰",
+ "six_pointed_star": "🔯",
+ "ski": "🎿",
+ "sleeping_accommodation": "🛌",
+ "sleeping": "😴",
+ "sleepy": "😪",
+ "sleuth_or_spy": "🕵",
+ "heart_eyes_cat": "😻",
+ "smiley_cat": "😺",
+ "innocent": "😇",
+ "heart_eyes": "😍",
+ "smiling_imp": "😈",
+ "smiley": "😃",
+ "sweat_smile": "😅",
+ "smile": "😄",
+ "laughing": "😆",
+ "satisfied": "😆",
+ "blush": "😊",
+ "smirk": "😏",
+ "smoking": "🚬",
+ "snow_capped_mountain": "🏔",
+ "soccer": "⚽",
+ "icecream": "🍦",
+ "soon": "🔜",
+ "arrow_lower_right": "↘",
+ "arrow_lower_left": "↙",
+ "speak_no_evil": "🙊",
+ "speaker": "🔈",
+ "mute": "🔇",
+ "sound": "🔉",
+ "loud_sound": "🔊",
+ "speaking_head_in_silhouette": "🗣",
+ "spiral_calendar_pad": "🗓",
+ "spiral_note_pad": "🗒",
+ "shell": "🐚",
+ "sweat_drops": "💦",
+ "u5272": "🈹",
+ "u5408": "🈴",
+ "u55b6": "🈺",
+ "u6307": "🈯",
+ "u6708": "🈷",
+ "u6709": "🈶",
+ "u6e80": "🈵",
+ "u7121": "🈚",
+ "u7533": "🈸",
+ "u7981": "🈲",
+ "u7a7a": "🈳",
+ "cl": "🆑",
+ "cool": "🆒",
+ "free": "🆓",
+ "id": "🆔",
+ "koko": "🈁",
+ "sa": "🈂",
+ "new": "🆕",
+ "ng": "🆖",
+ "ok": "🆗",
+ "sos": "🆘",
+ "up": "🆙",
+ "vs": "🆚",
+ "steam_locomotive": "🚂",
+ "ramen": "🍜",
+ "partly_sunny": "⛅",
+ "city_sunrise": "🌇",
+ "surfer": "🏄",
+ "swimmer": "🏊",
+ "shirt": "👕",
+ "tshirt": "👕",
+ "table_tennis_paddle_and_ball": "🏓",
+ "tea": "🍵",
+ "tv": "📺",
+ "three_button_mouse": "🖱",
+ "+1": "👍",
+ "thumbsup": "👍",
+ "__1": "👎",
+ "-1": "👎",
+ "thumbsdown": "👎",
+ "thunder_cloud_and_rain": "⛈",
+ "tiger2": "🐅",
+ "tophat": "🎩",
+ "top": "🔝",
+ "tm": "™",
+ "train2": "🚆",
+ "triangular_flag_on_post": "🚩",
+ "trident": "🔱",
+ "twisted_rightwards_arrows": "🔀",
+ "unamused": "😒",
+ "small_red_triangle": "🔺",
+ "arrow_up_small": "🔼",
+ "arrow_up_down": "↕",
+ "upside__down_face": "🙃",
+ "arrow_up": "⬆",
+ "v": "✌",
+ "vhs": "📼",
+ "wc": "🚾",
+ "ocean": "🌊",
+ "waving_black_flag": "🏴",
+ "wave": "👋",
+ "waving_white_flag": "🏳",
+ "moon": "🌔",
+ "scream_cat": "🙀",
+ "weary": "😩",
+ "weight_lifter": "🏋",
+ "whale2": "🐋",
+ "wheelchair": "♿",
+ "point_down": "👇",
+ "grey_exclamation": "❕",
+ "white_frowning_face": "☹",
+ "white_check_mark": "✅",
+ "point_left": "👈",
+ "white_medium_small_square": "◽",
+ "star": "⭐",
+ "grey_question": "❔",
+ "point_right": "👉",
+ "relaxed": "☺",
+ "white_sun_behind_cloud": "🌥",
+ "white_sun_behind_cloud_with_rain": "🌦",
+ "white_sun_with_small_cloud": "🌤",
+ "point_up_2": "👆",
+ "point_up": "☝",
+ "wind_blowing_face": "🌬",
+ "wink": "😉",
+ "wolf": "🐺",
+ "dancers": "👯",
+ "boot": "👢",
+ "womans_clothes": "👚",
+ "womans_hat": "👒",
+ "sandal": "👡",
+ "womens": "🚺",
+ "worried": "😟",
+ "gift": "🎁",
+ "zipper__mouth_face": "🤐",
+ "regional_indicator_a": "🇦",
+ "regional_indicator_b": "🇧",
+ "regional_indicator_c": "🇨",
+ "regional_indicator_d": "🇩",
+ "regional_indicator_e": "🇪",
+ "regional_indicator_f": "🇫",
+ "regional_indicator_g": "🇬",
+ "regional_indicator_h": "🇭",
+ "regional_indicator_i": "🇮",
+ "regional_indicator_j": "🇯",
+ "regional_indicator_k": "🇰",
+ "regional_indicator_l": "🇱",
+ "regional_indicator_m": "🇲",
+ "regional_indicator_n": "🇳",
+ "regional_indicator_o": "🇴",
+ "regional_indicator_p": "🇵",
+ "regional_indicator_q": "🇶",
+ "regional_indicator_r": "🇷",
+ "regional_indicator_s": "🇸",
+ "regional_indicator_t": "🇹",
+ "regional_indicator_u": "🇺",
+ "regional_indicator_v": "🇻",
+ "regional_indicator_w": "🇼",
+ "regional_indicator_x": "🇽",
+ "regional_indicator_y": "🇾",
+ "regional_indicator_z": "🇿",
+}
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_emoji_replace.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_emoji_replace.py
new file mode 100644
index 0000000000000000000000000000000000000000..fdaff320dfcfa6c76ac18b3ee2e249b7712df805
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_emoji_replace.py
@@ -0,0 +1,31 @@
+import re
+from typing import Callable, Match, Optional
+
+_ReStringMatch = Match[str] # regex match object
+_ReSubCallable = Callable[[_ReStringMatch], str] # Callable invoked by re.sub
+_EmojiSubMethod = Callable[[_ReSubCallable, str], str] # Sub method of a compiled re
+
+
+def _emoji_replace(
+ text: str,
+ default_variant: Optional[str] = None,
+ _emoji_sub: _EmojiSubMethod = re.compile(r"(:(\S*?)(?:(?:\-)(emoji|text))?:)").sub,
+) -> str:
+ """Replace emoji code in text."""
+ from ._emoji_codes import EMOJI
+
+ get_emoji = EMOJI.__getitem__
+ variants = {"text": "\ufe0e", "emoji": "\ufe0f"}
+ get_variant = variants.get
+ default_variant_code = variants.get(default_variant, "") if default_variant else ""
+
+ def do_replace(match: Match[str]) -> str:
+ emoji_code, emoji_name, variant = match.groups()
+ try:
+ return get_emoji(emoji_name.lower()) + get_variant(
+ variant, default_variant_code
+ )
+ except KeyError:
+ return emoji_code
+
+ return _emoji_sub(do_replace, text)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_export_format.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_export_format.py
new file mode 100644
index 0000000000000000000000000000000000000000..e7527e52f6613328630fc6305f957d9ea58027d8
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_export_format.py
@@ -0,0 +1,76 @@
+CONSOLE_HTML_FORMAT = """\
+
+
+
+
+
+
+
+ {code}
+
+
+"""
+
+CONSOLE_SVG_FORMAT = """\
+
+
+
+
+
+
+
+
+ {lines}
+
+
+ {chrome}
+
+ {backgrounds}
+
+ {matrix}
+
+
+
+"""
+
+_SVG_FONT_FAMILY = "Rich Fira Code"
+_SVG_CLASSES_PREFIX = "rich-svg"
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_extension.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_extension.py
new file mode 100644
index 0000000000000000000000000000000000000000..38658864eb1e9b9839e953e070af11c8bc0d1836
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_extension.py
@@ -0,0 +1,10 @@
+from typing import Any
+
+
+def load_ipython_extension(ip: Any) -> None: # pragma: no cover
+ # prevent circular import
+ from rich.pretty import install
+ from rich.traceback import install as tr_install
+
+ install()
+ tr_install()
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_fileno.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_fileno.py
new file mode 100644
index 0000000000000000000000000000000000000000..b17ee6511742d7a8d5950bf0ee57ced4d5fd45c2
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_fileno.py
@@ -0,0 +1,24 @@
+from __future__ import annotations
+
+from typing import IO, Callable
+
+
+def get_fileno(file_like: IO[str]) -> int | None:
+ """Get fileno() from a file, accounting for poorly implemented file-like objects.
+
+ Args:
+ file_like (IO): A file-like object.
+
+ Returns:
+ int | None: The result of fileno if available, or None if operation failed.
+ """
+ fileno: Callable[[], int] | None = getattr(file_like, "fileno", None)
+ if fileno is not None:
+ try:
+ return fileno()
+ except Exception:
+ # `fileno` is documented as potentially raising a OSError
+ # Alas, from the issues, there are so many poorly implemented file-like objects,
+ # that `fileno()` can raise just about anything.
+ return None
+ return None
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_inspect.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_inspect.py
new file mode 100644
index 0000000000000000000000000000000000000000..ac78ffe296a22d7683a2add354399460b87d5064
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_inspect.py
@@ -0,0 +1,272 @@
+import inspect
+from inspect import cleandoc, getdoc, getfile, isclass, ismodule, signature
+from typing import Any, Collection, Iterable, Optional, Tuple, Type, Union
+
+from .console import Group, RenderableType
+from .control import escape_control_codes
+from .highlighter import ReprHighlighter
+from .jupyter import JupyterMixin
+from .panel import Panel
+from .pretty import Pretty
+from .table import Table
+from .text import Text, TextType
+
+
+def _first_paragraph(doc: str) -> str:
+ """Get the first paragraph from a docstring."""
+ paragraph, _, _ = doc.partition("\n\n")
+ return paragraph
+
+
+class Inspect(JupyterMixin):
+ """A renderable to inspect any Python Object.
+
+ Args:
+ obj (Any): An object to inspect.
+ title (str, optional): Title to display over inspect result, or None use type. Defaults to None.
+ help (bool, optional): Show full help text rather than just first paragraph. Defaults to False.
+ methods (bool, optional): Enable inspection of callables. Defaults to False.
+ docs (bool, optional): Also render doc strings. Defaults to True.
+ private (bool, optional): Show private attributes (beginning with underscore). Defaults to False.
+ dunder (bool, optional): Show attributes starting with double underscore. Defaults to False.
+ sort (bool, optional): Sort attributes alphabetically, callables at the top, leading and trailing underscores ignored. Defaults to True.
+ all (bool, optional): Show all attributes. Defaults to False.
+ value (bool, optional): Pretty print value of object. Defaults to True.
+ """
+
+ def __init__(
+ self,
+ obj: Any,
+ *,
+ title: Optional[TextType] = None,
+ help: bool = False,
+ methods: bool = False,
+ docs: bool = True,
+ private: bool = False,
+ dunder: bool = False,
+ sort: bool = True,
+ all: bool = True,
+ value: bool = True,
+ ) -> None:
+ self.highlighter = ReprHighlighter()
+ self.obj = obj
+ self.title = title or self._make_title(obj)
+ if all:
+ methods = private = dunder = True
+ self.help = help
+ self.methods = methods
+ self.docs = docs or help
+ self.private = private or dunder
+ self.dunder = dunder
+ self.sort = sort
+ self.value = value
+
+ def _make_title(self, obj: Any) -> Text:
+ """Make a default title."""
+ title_str = (
+ str(obj)
+ if (isclass(obj) or callable(obj) or ismodule(obj))
+ else str(type(obj))
+ )
+ title_text = self.highlighter(title_str)
+ return title_text
+
+ def __rich__(self) -> Panel:
+ return Panel.fit(
+ Group(*self._render()),
+ title=self.title,
+ border_style="scope.border",
+ padding=(0, 1),
+ )
+
+ def _get_signature(self, name: str, obj: Any) -> Optional[Text]:
+ """Get a signature for a callable."""
+ try:
+ _signature = str(signature(obj)) + ":"
+ except ValueError:
+ _signature = "(...)"
+ except TypeError:
+ return None
+
+ source_filename: Optional[str] = None
+ try:
+ source_filename = getfile(obj)
+ except (OSError, TypeError):
+ # OSError is raised if obj has no source file, e.g. when defined in REPL.
+ pass
+
+ callable_name = Text(name, style="inspect.callable")
+ if source_filename:
+ callable_name.stylize(f"link file://{source_filename}")
+ signature_text = self.highlighter(_signature)
+
+ qualname = name or getattr(obj, "__qualname__", name)
+ if not isinstance(qualname, str):
+ qualname = getattr(obj, "__name__", name)
+ if not isinstance(qualname, str):
+ qualname = name
+
+ # If obj is a module, there may be classes (which are callable) to display
+ if inspect.isclass(obj):
+ prefix = "class"
+ elif inspect.iscoroutinefunction(obj):
+ prefix = "async def"
+ else:
+ prefix = "def"
+
+ qual_signature = Text.assemble(
+ (f"{prefix} ", f"inspect.{prefix.replace(' ', '_')}"),
+ (qualname, "inspect.callable"),
+ signature_text,
+ )
+
+ return qual_signature
+
+ def _render(self) -> Iterable[RenderableType]:
+ """Render object."""
+
+ def sort_items(item: Tuple[str, Any]) -> Tuple[bool, str]:
+ key, (_error, value) = item
+ return (callable(value), key.strip("_").lower())
+
+ def safe_getattr(attr_name: str) -> Tuple[Any, Any]:
+ """Get attribute or any exception."""
+ try:
+ return (None, getattr(obj, attr_name))
+ except Exception as error:
+ return (error, None)
+
+ obj = self.obj
+ keys = dir(obj)
+ total_items = len(keys)
+ if not self.dunder:
+ keys = [key for key in keys if not key.startswith("__")]
+ if not self.private:
+ keys = [key for key in keys if not key.startswith("_")]
+ not_shown_count = total_items - len(keys)
+ items = [(key, safe_getattr(key)) for key in keys]
+ if self.sort:
+ items.sort(key=sort_items)
+
+ items_table = Table.grid(padding=(0, 1), expand=False)
+ items_table.add_column(justify="right")
+ add_row = items_table.add_row
+ highlighter = self.highlighter
+
+ if callable(obj):
+ signature = self._get_signature("", obj)
+ if signature is not None:
+ yield signature
+ yield ""
+
+ if self.docs:
+ _doc = self._get_formatted_doc(obj)
+ if _doc is not None:
+ doc_text = Text(_doc, style="inspect.help")
+ doc_text = highlighter(doc_text)
+ yield doc_text
+ yield ""
+
+ if self.value and not (isclass(obj) or callable(obj) or ismodule(obj)):
+ yield Panel(
+ Pretty(obj, indent_guides=True, max_length=10, max_string=60),
+ border_style="inspect.value.border",
+ )
+ yield ""
+
+ for key, (error, value) in items:
+ key_text = Text.assemble(
+ (
+ key,
+ "inspect.attr.dunder" if key.startswith("__") else "inspect.attr",
+ ),
+ (" =", "inspect.equals"),
+ )
+ if error is not None:
+ warning = key_text.copy()
+ warning.stylize("inspect.error")
+ add_row(warning, highlighter(repr(error)))
+ continue
+
+ if callable(value):
+ if not self.methods:
+ continue
+
+ _signature_text = self._get_signature(key, value)
+ if _signature_text is None:
+ add_row(key_text, Pretty(value, highlighter=highlighter))
+ else:
+ if self.docs:
+ docs = self._get_formatted_doc(value)
+ if docs is not None:
+ _signature_text.append("\n" if "\n" in docs else " ")
+ doc = highlighter(docs)
+ doc.stylize("inspect.doc")
+ _signature_text.append(doc)
+
+ add_row(key_text, _signature_text)
+ else:
+ add_row(key_text, Pretty(value, highlighter=highlighter))
+ if items_table.row_count:
+ yield items_table
+ elif not_shown_count:
+ yield Text.from_markup(
+ f"[b cyan]{not_shown_count}[/][i] attribute(s) not shown.[/i] "
+ f"Run [b][magenta]inspect[/]([not b]inspect[/])[/b] for options."
+ )
+
+ def _get_formatted_doc(self, object_: Any) -> Optional[str]:
+ """
+ Extract the docstring of an object, process it and returns it.
+ The processing consists in cleaning up the docstring's indentation,
+ taking only its 1st paragraph if `self.help` is not True,
+ and escape its control codes.
+
+ Args:
+ object_ (Any): the object to get the docstring from.
+
+ Returns:
+ Optional[str]: the processed docstring, or None if no docstring was found.
+ """
+ docs = getdoc(object_)
+ if docs is None:
+ return None
+ docs = cleandoc(docs).strip()
+ if not self.help:
+ docs = _first_paragraph(docs)
+ return escape_control_codes(docs)
+
+
+def get_object_types_mro(obj: Union[object, Type[Any]]) -> Tuple[type, ...]:
+ """Returns the MRO of an object's class, or of the object itself if it's a class."""
+ if not hasattr(obj, "__mro__"):
+ # N.B. we cannot use `if type(obj) is type` here because it doesn't work with
+ # some types of classes, such as the ones that use abc.ABCMeta.
+ obj = type(obj)
+ return getattr(obj, "__mro__", ())
+
+
+def get_object_types_mro_as_strings(obj: object) -> Collection[str]:
+ """
+ Returns the MRO of an object's class as full qualified names, or of the object itself if it's a class.
+
+ Examples:
+ `object_types_mro_as_strings(JSONDecoder)` will return `['json.decoder.JSONDecoder', 'builtins.object']`
+ """
+ return [
+ f'{getattr(type_, "__module__", "")}.{getattr(type_, "__qualname__", "")}'
+ for type_ in get_object_types_mro(obj)
+ ]
+
+
+def is_object_one_of_types(
+ obj: object, fully_qualified_types_names: Collection[str]
+) -> bool:
+ """
+ Returns `True` if the given object's class (or the object itself, if it's a class) has one of the
+ fully qualified names in its MRO.
+ """
+ for type_name in get_object_types_mro_as_strings(obj):
+ if type_name in fully_qualified_types_names:
+ return True
+ return False
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_log_render.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_log_render.py
new file mode 100644
index 0000000000000000000000000000000000000000..e8810100b323450c63507e16629a09bb2e9dc97f
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_log_render.py
@@ -0,0 +1,94 @@
+from datetime import datetime
+from typing import Iterable, List, Optional, TYPE_CHECKING, Union, Callable
+
+
+from .text import Text, TextType
+
+if TYPE_CHECKING:
+ from .console import Console, ConsoleRenderable, RenderableType
+ from .table import Table
+
+FormatTimeCallable = Callable[[datetime], Text]
+
+
+class LogRender:
+ def __init__(
+ self,
+ show_time: bool = True,
+ show_level: bool = False,
+ show_path: bool = True,
+ time_format: Union[str, FormatTimeCallable] = "[%x %X]",
+ omit_repeated_times: bool = True,
+ level_width: Optional[int] = 8,
+ ) -> None:
+ self.show_time = show_time
+ self.show_level = show_level
+ self.show_path = show_path
+ self.time_format = time_format
+ self.omit_repeated_times = omit_repeated_times
+ self.level_width = level_width
+ self._last_time: Optional[Text] = None
+
+ def __call__(
+ self,
+ console: "Console",
+ renderables: Iterable["ConsoleRenderable"],
+ log_time: Optional[datetime] = None,
+ time_format: Optional[Union[str, FormatTimeCallable]] = None,
+ level: TextType = "",
+ path: Optional[str] = None,
+ line_no: Optional[int] = None,
+ link_path: Optional[str] = None,
+ ) -> "Table":
+ from .containers import Renderables
+ from .table import Table
+
+ output = Table.grid(padding=(0, 1))
+ output.expand = True
+ if self.show_time:
+ output.add_column(style="log.time")
+ if self.show_level:
+ output.add_column(style="log.level", width=self.level_width)
+ output.add_column(ratio=1, style="log.message", overflow="fold")
+ if self.show_path and path:
+ output.add_column(style="log.path")
+ row: List["RenderableType"] = []
+ if self.show_time:
+ log_time = log_time or console.get_datetime()
+ time_format = time_format or self.time_format
+ if callable(time_format):
+ log_time_display = time_format(log_time)
+ else:
+ log_time_display = Text(log_time.strftime(time_format))
+ if log_time_display == self._last_time and self.omit_repeated_times:
+ row.append(Text(" " * len(log_time_display)))
+ else:
+ row.append(log_time_display)
+ self._last_time = log_time_display
+ if self.show_level:
+ row.append(level)
+
+ row.append(Renderables(renderables))
+ if self.show_path and path:
+ path_text = Text()
+ path_text.append(
+ path, style=f"link file://{link_path}" if link_path else ""
+ )
+ if line_no:
+ path_text.append(":")
+ path_text.append(
+ f"{line_no}",
+ style=f"link file://{link_path}#{line_no}" if link_path else "",
+ )
+ row.append(path_text)
+
+ output.add_row(*row)
+ return output
+
+
+if __name__ == "__main__": # pragma: no cover
+ from rich.console import Console
+
+ c = Console()
+ c.print("[on blue]Hello", justify="right")
+ c.log("[on blue]hello", justify="right")
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_loop.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_loop.py
new file mode 100644
index 0000000000000000000000000000000000000000..01c6cafbe53f1fcb12f7b382b2b35e2fd2c69933
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_loop.py
@@ -0,0 +1,43 @@
+from typing import Iterable, Tuple, TypeVar
+
+T = TypeVar("T")
+
+
+def loop_first(values: Iterable[T]) -> Iterable[Tuple[bool, T]]:
+ """Iterate and generate a tuple with a flag for first value."""
+ iter_values = iter(values)
+ try:
+ value = next(iter_values)
+ except StopIteration:
+ return
+ yield True, value
+ for value in iter_values:
+ yield False, value
+
+
+def loop_last(values: Iterable[T]) -> Iterable[Tuple[bool, T]]:
+ """Iterate and generate a tuple with a flag for last value."""
+ iter_values = iter(values)
+ try:
+ previous_value = next(iter_values)
+ except StopIteration:
+ return
+ for value in iter_values:
+ yield False, previous_value
+ previous_value = value
+ yield True, previous_value
+
+
+def loop_first_last(values: Iterable[T]) -> Iterable[Tuple[bool, bool, T]]:
+ """Iterate and generate a tuple with a flag for first and last value."""
+ iter_values = iter(values)
+ try:
+ previous_value = next(iter_values)
+ except StopIteration:
+ return
+ first = True
+ for value in iter_values:
+ yield first, False, previous_value
+ first = False
+ previous_value = value
+ yield first, True, previous_value
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_null_file.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_null_file.py
new file mode 100644
index 0000000000000000000000000000000000000000..6ae05d3e2a901af754b1626d911ebc3c45e22a40
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_null_file.py
@@ -0,0 +1,69 @@
+from types import TracebackType
+from typing import IO, Iterable, Iterator, List, Optional, Type
+
+
+class NullFile(IO[str]):
+ def close(self) -> None:
+ pass
+
+ def isatty(self) -> bool:
+ return False
+
+ def read(self, __n: int = 1) -> str:
+ return ""
+
+ def readable(self) -> bool:
+ return False
+
+ def readline(self, __limit: int = 1) -> str:
+ return ""
+
+ def readlines(self, __hint: int = 1) -> List[str]:
+ return []
+
+ def seek(self, __offset: int, __whence: int = 1) -> int:
+ return 0
+
+ def seekable(self) -> bool:
+ return False
+
+ def tell(self) -> int:
+ return 0
+
+ def truncate(self, __size: Optional[int] = 1) -> int:
+ return 0
+
+ def writable(self) -> bool:
+ return False
+
+ def writelines(self, __lines: Iterable[str]) -> None:
+ pass
+
+ def __next__(self) -> str:
+ return ""
+
+ def __iter__(self) -> Iterator[str]:
+ return iter([""])
+
+ def __enter__(self) -> IO[str]:
+ return self
+
+ def __exit__(
+ self,
+ __t: Optional[Type[BaseException]],
+ __value: Optional[BaseException],
+ __traceback: Optional[TracebackType],
+ ) -> None:
+ pass
+
+ def write(self, text: str) -> int:
+ return 0
+
+ def flush(self) -> None:
+ pass
+
+ def fileno(self) -> int:
+ return -1
+
+
+NULL_FILE = NullFile()
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_palettes.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_palettes.py
new file mode 100644
index 0000000000000000000000000000000000000000..3c748d33e45bfcdc690ceee490cbb50b516cd2b3
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_palettes.py
@@ -0,0 +1,309 @@
+from .palette import Palette
+
+
+# Taken from https://en.wikipedia.org/wiki/ANSI_escape_code (Windows 10 column)
+WINDOWS_PALETTE = Palette(
+ [
+ (12, 12, 12),
+ (197, 15, 31),
+ (19, 161, 14),
+ (193, 156, 0),
+ (0, 55, 218),
+ (136, 23, 152),
+ (58, 150, 221),
+ (204, 204, 204),
+ (118, 118, 118),
+ (231, 72, 86),
+ (22, 198, 12),
+ (249, 241, 165),
+ (59, 120, 255),
+ (180, 0, 158),
+ (97, 214, 214),
+ (242, 242, 242),
+ ]
+)
+
+# # The standard ansi colors (including bright variants)
+STANDARD_PALETTE = Palette(
+ [
+ (0, 0, 0),
+ (170, 0, 0),
+ (0, 170, 0),
+ (170, 85, 0),
+ (0, 0, 170),
+ (170, 0, 170),
+ (0, 170, 170),
+ (170, 170, 170),
+ (85, 85, 85),
+ (255, 85, 85),
+ (85, 255, 85),
+ (255, 255, 85),
+ (85, 85, 255),
+ (255, 85, 255),
+ (85, 255, 255),
+ (255, 255, 255),
+ ]
+)
+
+
+# The 256 color palette
+EIGHT_BIT_PALETTE = Palette(
+ [
+ (0, 0, 0),
+ (128, 0, 0),
+ (0, 128, 0),
+ (128, 128, 0),
+ (0, 0, 128),
+ (128, 0, 128),
+ (0, 128, 128),
+ (192, 192, 192),
+ (128, 128, 128),
+ (255, 0, 0),
+ (0, 255, 0),
+ (255, 255, 0),
+ (0, 0, 255),
+ (255, 0, 255),
+ (0, 255, 255),
+ (255, 255, 255),
+ (0, 0, 0),
+ (0, 0, 95),
+ (0, 0, 135),
+ (0, 0, 175),
+ (0, 0, 215),
+ (0, 0, 255),
+ (0, 95, 0),
+ (0, 95, 95),
+ (0, 95, 135),
+ (0, 95, 175),
+ (0, 95, 215),
+ (0, 95, 255),
+ (0, 135, 0),
+ (0, 135, 95),
+ (0, 135, 135),
+ (0, 135, 175),
+ (0, 135, 215),
+ (0, 135, 255),
+ (0, 175, 0),
+ (0, 175, 95),
+ (0, 175, 135),
+ (0, 175, 175),
+ (0, 175, 215),
+ (0, 175, 255),
+ (0, 215, 0),
+ (0, 215, 95),
+ (0, 215, 135),
+ (0, 215, 175),
+ (0, 215, 215),
+ (0, 215, 255),
+ (0, 255, 0),
+ (0, 255, 95),
+ (0, 255, 135),
+ (0, 255, 175),
+ (0, 255, 215),
+ (0, 255, 255),
+ (95, 0, 0),
+ (95, 0, 95),
+ (95, 0, 135),
+ (95, 0, 175),
+ (95, 0, 215),
+ (95, 0, 255),
+ (95, 95, 0),
+ (95, 95, 95),
+ (95, 95, 135),
+ (95, 95, 175),
+ (95, 95, 215),
+ (95, 95, 255),
+ (95, 135, 0),
+ (95, 135, 95),
+ (95, 135, 135),
+ (95, 135, 175),
+ (95, 135, 215),
+ (95, 135, 255),
+ (95, 175, 0),
+ (95, 175, 95),
+ (95, 175, 135),
+ (95, 175, 175),
+ (95, 175, 215),
+ (95, 175, 255),
+ (95, 215, 0),
+ (95, 215, 95),
+ (95, 215, 135),
+ (95, 215, 175),
+ (95, 215, 215),
+ (95, 215, 255),
+ (95, 255, 0),
+ (95, 255, 95),
+ (95, 255, 135),
+ (95, 255, 175),
+ (95, 255, 215),
+ (95, 255, 255),
+ (135, 0, 0),
+ (135, 0, 95),
+ (135, 0, 135),
+ (135, 0, 175),
+ (135, 0, 215),
+ (135, 0, 255),
+ (135, 95, 0),
+ (135, 95, 95),
+ (135, 95, 135),
+ (135, 95, 175),
+ (135, 95, 215),
+ (135, 95, 255),
+ (135, 135, 0),
+ (135, 135, 95),
+ (135, 135, 135),
+ (135, 135, 175),
+ (135, 135, 215),
+ (135, 135, 255),
+ (135, 175, 0),
+ (135, 175, 95),
+ (135, 175, 135),
+ (135, 175, 175),
+ (135, 175, 215),
+ (135, 175, 255),
+ (135, 215, 0),
+ (135, 215, 95),
+ (135, 215, 135),
+ (135, 215, 175),
+ (135, 215, 215),
+ (135, 215, 255),
+ (135, 255, 0),
+ (135, 255, 95),
+ (135, 255, 135),
+ (135, 255, 175),
+ (135, 255, 215),
+ (135, 255, 255),
+ (175, 0, 0),
+ (175, 0, 95),
+ (175, 0, 135),
+ (175, 0, 175),
+ (175, 0, 215),
+ (175, 0, 255),
+ (175, 95, 0),
+ (175, 95, 95),
+ (175, 95, 135),
+ (175, 95, 175),
+ (175, 95, 215),
+ (175, 95, 255),
+ (175, 135, 0),
+ (175, 135, 95),
+ (175, 135, 135),
+ (175, 135, 175),
+ (175, 135, 215),
+ (175, 135, 255),
+ (175, 175, 0),
+ (175, 175, 95),
+ (175, 175, 135),
+ (175, 175, 175),
+ (175, 175, 215),
+ (175, 175, 255),
+ (175, 215, 0),
+ (175, 215, 95),
+ (175, 215, 135),
+ (175, 215, 175),
+ (175, 215, 215),
+ (175, 215, 255),
+ (175, 255, 0),
+ (175, 255, 95),
+ (175, 255, 135),
+ (175, 255, 175),
+ (175, 255, 215),
+ (175, 255, 255),
+ (215, 0, 0),
+ (215, 0, 95),
+ (215, 0, 135),
+ (215, 0, 175),
+ (215, 0, 215),
+ (215, 0, 255),
+ (215, 95, 0),
+ (215, 95, 95),
+ (215, 95, 135),
+ (215, 95, 175),
+ (215, 95, 215),
+ (215, 95, 255),
+ (215, 135, 0),
+ (215, 135, 95),
+ (215, 135, 135),
+ (215, 135, 175),
+ (215, 135, 215),
+ (215, 135, 255),
+ (215, 175, 0),
+ (215, 175, 95),
+ (215, 175, 135),
+ (215, 175, 175),
+ (215, 175, 215),
+ (215, 175, 255),
+ (215, 215, 0),
+ (215, 215, 95),
+ (215, 215, 135),
+ (215, 215, 175),
+ (215, 215, 215),
+ (215, 215, 255),
+ (215, 255, 0),
+ (215, 255, 95),
+ (215, 255, 135),
+ (215, 255, 175),
+ (215, 255, 215),
+ (215, 255, 255),
+ (255, 0, 0),
+ (255, 0, 95),
+ (255, 0, 135),
+ (255, 0, 175),
+ (255, 0, 215),
+ (255, 0, 255),
+ (255, 95, 0),
+ (255, 95, 95),
+ (255, 95, 135),
+ (255, 95, 175),
+ (255, 95, 215),
+ (255, 95, 255),
+ (255, 135, 0),
+ (255, 135, 95),
+ (255, 135, 135),
+ (255, 135, 175),
+ (255, 135, 215),
+ (255, 135, 255),
+ (255, 175, 0),
+ (255, 175, 95),
+ (255, 175, 135),
+ (255, 175, 175),
+ (255, 175, 215),
+ (255, 175, 255),
+ (255, 215, 0),
+ (255, 215, 95),
+ (255, 215, 135),
+ (255, 215, 175),
+ (255, 215, 215),
+ (255, 215, 255),
+ (255, 255, 0),
+ (255, 255, 95),
+ (255, 255, 135),
+ (255, 255, 175),
+ (255, 255, 215),
+ (255, 255, 255),
+ (8, 8, 8),
+ (18, 18, 18),
+ (28, 28, 28),
+ (38, 38, 38),
+ (48, 48, 48),
+ (58, 58, 58),
+ (68, 68, 68),
+ (78, 78, 78),
+ (88, 88, 88),
+ (98, 98, 98),
+ (108, 108, 108),
+ (118, 118, 118),
+ (128, 128, 128),
+ (138, 138, 138),
+ (148, 148, 148),
+ (158, 158, 158),
+ (168, 168, 168),
+ (178, 178, 178),
+ (188, 188, 188),
+ (198, 198, 198),
+ (208, 208, 208),
+ (218, 218, 218),
+ (228, 228, 228),
+ (238, 238, 238),
+ ]
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_pick.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_pick.py
new file mode 100644
index 0000000000000000000000000000000000000000..4f6d8b2d79406012c5f8bae9c289ed5bf4d179cc
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_pick.py
@@ -0,0 +1,17 @@
+from typing import Optional
+
+
+def pick_bool(*values: Optional[bool]) -> bool:
+ """Pick the first non-none bool or return the last value.
+
+ Args:
+ *values (bool): Any number of boolean or None values.
+
+ Returns:
+ bool: First non-none boolean.
+ """
+ assert values, "1 or more values required"
+ for value in values:
+ if value is not None:
+ return value
+ return bool(value)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_ratio.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_ratio.py
new file mode 100644
index 0000000000000000000000000000000000000000..5fd5a383d22367f4167731465a12a74a20a8cda4
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_ratio.py
@@ -0,0 +1,153 @@
+from fractions import Fraction
+from math import ceil
+from typing import cast, List, Optional, Sequence, Protocol
+
+
+class Edge(Protocol):
+ """Any object that defines an edge (such as Layout)."""
+
+ size: Optional[int] = None
+ ratio: int = 1
+ minimum_size: int = 1
+
+
+def ratio_resolve(total: int, edges: Sequence[Edge]) -> List[int]:
+ """Divide total space to satisfy size, ratio, and minimum_size, constraints.
+
+ The returned list of integers should add up to total in most cases, unless it is
+ impossible to satisfy all the constraints. For instance, if there are two edges
+ with a minimum size of 20 each and `total` is 30 then the returned list will be
+ greater than total. In practice, this would mean that a Layout object would
+ clip the rows that would overflow the screen height.
+
+ Args:
+ total (int): Total number of characters.
+ edges (List[Edge]): Edges within total space.
+
+ Returns:
+ List[int]: Number of characters for each edge.
+ """
+ # Size of edge or None for yet to be determined
+ sizes = [(edge.size or None) for edge in edges]
+
+ _Fraction = Fraction
+
+ # While any edges haven't been calculated
+ while None in sizes:
+ # Get flexible edges and index to map these back on to sizes list
+ flexible_edges = [
+ (index, edge)
+ for index, (size, edge) in enumerate(zip(sizes, edges))
+ if size is None
+ ]
+ # Remaining space in total
+ remaining = total - sum(size or 0 for size in sizes)
+ if remaining <= 0:
+ # No room for flexible edges
+ return [
+ ((edge.minimum_size or 1) if size is None else size)
+ for size, edge in zip(sizes, edges)
+ ]
+ # Calculate number of characters in a ratio portion
+ portion = _Fraction(
+ remaining, sum((edge.ratio or 1) for _, edge in flexible_edges)
+ )
+
+ # If any edges will be less than their minimum, replace size with the minimum
+ for index, edge in flexible_edges:
+ if portion * edge.ratio <= edge.minimum_size:
+ sizes[index] = edge.minimum_size
+ # New fixed size will invalidate calculations, so we need to repeat the process
+ break
+ else:
+ # Distribute flexible space and compensate for rounding error
+ # Since edge sizes can only be integers we need to add the remainder
+ # to the following line
+ remainder = _Fraction(0)
+ for index, edge in flexible_edges:
+ size, remainder = divmod(portion * edge.ratio + remainder, 1)
+ sizes[index] = size
+ break
+ # Sizes now contains integers only
+ return cast(List[int], sizes)
+
+
+def ratio_reduce(
+ total: int, ratios: List[int], maximums: List[int], values: List[int]
+) -> List[int]:
+ """Divide an integer total in to parts based on ratios.
+
+ Args:
+ total (int): The total to divide.
+ ratios (List[int]): A list of integer ratios.
+ maximums (List[int]): List of maximums values for each slot.
+ values (List[int]): List of values
+
+ Returns:
+ List[int]: A list of integers guaranteed to sum to total.
+ """
+ ratios = [ratio if _max else 0 for ratio, _max in zip(ratios, maximums)]
+ total_ratio = sum(ratios)
+ if not total_ratio:
+ return values[:]
+ total_remaining = total
+ result: List[int] = []
+ append = result.append
+ for ratio, maximum, value in zip(ratios, maximums, values):
+ if ratio and total_ratio > 0:
+ distributed = min(maximum, round(ratio * total_remaining / total_ratio))
+ append(value - distributed)
+ total_remaining -= distributed
+ total_ratio -= ratio
+ else:
+ append(value)
+ return result
+
+
+def ratio_distribute(
+ total: int, ratios: List[int], minimums: Optional[List[int]] = None
+) -> List[int]:
+ """Distribute an integer total in to parts based on ratios.
+
+ Args:
+ total (int): The total to divide.
+ ratios (List[int]): A list of integer ratios.
+ minimums (List[int]): List of minimum values for each slot.
+
+ Returns:
+ List[int]: A list of integers guaranteed to sum to total.
+ """
+ if minimums:
+ ratios = [ratio if _min else 0 for ratio, _min in zip(ratios, minimums)]
+ total_ratio = sum(ratios)
+ assert total_ratio > 0, "Sum of ratios must be > 0"
+
+ total_remaining = total
+ distributed_total: List[int] = []
+ append = distributed_total.append
+ if minimums is None:
+ _minimums = [0] * len(ratios)
+ else:
+ _minimums = minimums
+ for ratio, minimum in zip(ratios, _minimums):
+ if total_ratio > 0:
+ distributed = max(minimum, ceil(ratio * total_remaining / total_ratio))
+ else:
+ distributed = total_remaining
+ append(distributed)
+ total_ratio -= ratio
+ total_remaining -= distributed
+ return distributed_total
+
+
+if __name__ == "__main__":
+ from dataclasses import dataclass
+
+ @dataclass
+ class E:
+ size: Optional[int] = None
+ ratio: int = 1
+ minimum_size: int = 1
+
+ resolved = ratio_resolve(110, [E(None, 1, 1), E(None, 1, 1), E(None, 1, 1)])
+ print(sum(resolved))
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_spinners.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_spinners.py
new file mode 100644
index 0000000000000000000000000000000000000000..d0bb1fe751677f0ee83fc6bb876ed72443fdcde7
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_spinners.py
@@ -0,0 +1,482 @@
+"""
+Spinners are from:
+* cli-spinners:
+ MIT License
+ Copyright (c) Sindre Sorhus (sindresorhus.com)
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights to
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+ the Software, and to permit persons to whom the Software is furnished to do so,
+ subject to the following conditions:
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+ FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ IN THE SOFTWARE.
+"""
+
+SPINNERS = {
+ "dots": {
+ "interval": 80,
+ "frames": "⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏",
+ },
+ "dots2": {"interval": 80, "frames": "⣾⣽⣻⢿⡿⣟⣯⣷"},
+ "dots3": {
+ "interval": 80,
+ "frames": "⠋⠙⠚⠞⠖⠦⠴⠲⠳⠓",
+ },
+ "dots4": {
+ "interval": 80,
+ "frames": "⠄⠆⠇⠋⠙⠸⠰⠠⠰⠸⠙⠋⠇⠆",
+ },
+ "dots5": {
+ "interval": 80,
+ "frames": "⠋⠙⠚⠒⠂⠂⠒⠲⠴⠦⠖⠒⠐⠐⠒⠓⠋",
+ },
+ "dots6": {
+ "interval": 80,
+ "frames": "⠁⠉⠙⠚⠒⠂⠂⠒⠲⠴⠤⠄⠄⠤⠴⠲⠒⠂⠂⠒⠚⠙⠉⠁",
+ },
+ "dots7": {
+ "interval": 80,
+ "frames": "⠈⠉⠋⠓⠒⠐⠐⠒⠖⠦⠤⠠⠠⠤⠦⠖⠒⠐⠐⠒⠓⠋⠉⠈",
+ },
+ "dots8": {
+ "interval": 80,
+ "frames": "⠁⠁⠉⠙⠚⠒⠂⠂⠒⠲⠴⠤⠄⠄⠤⠠⠠⠤⠦⠖⠒⠐⠐⠒⠓⠋⠉⠈⠈",
+ },
+ "dots9": {"interval": 80, "frames": "⢹⢺⢼⣸⣇⡧⡗⡏"},
+ "dots10": {"interval": 80, "frames": "⢄⢂⢁⡁⡈⡐⡠"},
+ "dots11": {"interval": 100, "frames": "⠁⠂⠄⡀⢀⠠⠐⠈"},
+ "dots12": {
+ "interval": 80,
+ "frames": [
+ "⢀⠀",
+ "⡀⠀",
+ "⠄⠀",
+ "⢂⠀",
+ "⡂⠀",
+ "⠅⠀",
+ "⢃⠀",
+ "⡃⠀",
+ "⠍⠀",
+ "⢋⠀",
+ "⡋⠀",
+ "⠍⠁",
+ "⢋⠁",
+ "⡋⠁",
+ "⠍⠉",
+ "⠋⠉",
+ "⠋⠉",
+ "⠉⠙",
+ "⠉⠙",
+ "⠉⠩",
+ "⠈⢙",
+ "⠈⡙",
+ "⢈⠩",
+ "⡀⢙",
+ "⠄⡙",
+ "⢂⠩",
+ "⡂⢘",
+ "⠅⡘",
+ "⢃⠨",
+ "⡃⢐",
+ "⠍⡐",
+ "⢋⠠",
+ "⡋⢀",
+ "⠍⡁",
+ "⢋⠁",
+ "⡋⠁",
+ "⠍⠉",
+ "⠋⠉",
+ "⠋⠉",
+ "⠉⠙",
+ "⠉⠙",
+ "⠉⠩",
+ "⠈⢙",
+ "⠈⡙",
+ "⠈⠩",
+ "⠀⢙",
+ "⠀⡙",
+ "⠀⠩",
+ "⠀⢘",
+ "⠀⡘",
+ "⠀⠨",
+ "⠀⢐",
+ "⠀⡐",
+ "⠀⠠",
+ "⠀⢀",
+ "⠀⡀",
+ ],
+ },
+ "dots8Bit": {
+ "interval": 80,
+ "frames": "⠀⠁⠂⠃⠄⠅⠆⠇⡀⡁⡂⡃⡄⡅⡆⡇⠈⠉⠊⠋⠌⠍⠎⠏⡈⡉⡊⡋⡌⡍⡎⡏⠐⠑⠒⠓⠔⠕⠖⠗⡐⡑⡒⡓⡔⡕⡖⡗⠘⠙⠚⠛⠜⠝⠞⠟⡘⡙"
+ "⡚⡛⡜⡝⡞⡟⠠⠡⠢⠣⠤⠥⠦⠧⡠⡡⡢⡣⡤⡥⡦⡧⠨⠩⠪⠫⠬⠭⠮⠯⡨⡩⡪⡫⡬⡭⡮⡯⠰⠱⠲⠳⠴⠵⠶⠷⡰⡱⡲⡳⡴⡵⡶⡷⠸⠹⠺⠻"
+ "⠼⠽⠾⠿⡸⡹⡺⡻⡼⡽⡾⡿⢀⢁⢂⢃⢄⢅⢆⢇⣀⣁⣂⣃⣄⣅⣆⣇⢈⢉⢊⢋⢌⢍⢎⢏⣈⣉⣊⣋⣌⣍⣎⣏⢐⢑⢒⢓⢔⢕⢖⢗⣐⣑⣒⣓⣔⣕"
+ "⣖⣗⢘⢙⢚⢛⢜⢝⢞⢟⣘⣙⣚⣛⣜⣝⣞⣟⢠⢡⢢⢣⢤⢥⢦⢧⣠⣡⣢⣣⣤⣥⣦⣧⢨⢩⢪⢫⢬⢭⢮⢯⣨⣩⣪⣫⣬⣭⣮⣯⢰⢱⢲⢳⢴⢵⢶⢷"
+ "⣰⣱⣲⣳⣴⣵⣶⣷⢸⢹⢺⢻⢼⢽⢾⢿⣸⣹⣺⣻⣼⣽⣾⣿",
+ },
+ "line": {"interval": 130, "frames": ["-", "\\", "|", "/"]},
+ "line2": {"interval": 100, "frames": "⠂-–—–-"},
+ "pipe": {"interval": 100, "frames": "┤┘┴└├┌┬┐"},
+ "simpleDots": {"interval": 400, "frames": [". ", ".. ", "...", " "]},
+ "simpleDotsScrolling": {
+ "interval": 200,
+ "frames": [". ", ".. ", "...", " ..", " .", " "],
+ },
+ "star": {"interval": 70, "frames": "✶✸✹✺✹✷"},
+ "star2": {"interval": 80, "frames": "+x*"},
+ "flip": {
+ "interval": 70,
+ "frames": "___-``'´-___",
+ },
+ "hamburger": {"interval": 100, "frames": "☱☲☴"},
+ "growVertical": {
+ "interval": 120,
+ "frames": "▁▃▄▅▆▇▆▅▄▃",
+ },
+ "growHorizontal": {
+ "interval": 120,
+ "frames": "▏▎▍▌▋▊▉▊▋▌▍▎",
+ },
+ "balloon": {"interval": 140, "frames": " .oO@* "},
+ "balloon2": {"interval": 120, "frames": ".oO°Oo."},
+ "noise": {"interval": 100, "frames": "▓▒░"},
+ "bounce": {"interval": 120, "frames": "⠁⠂⠄⠂"},
+ "boxBounce": {"interval": 120, "frames": "▖▘▝▗"},
+ "boxBounce2": {"interval": 100, "frames": "▌▀▐▄"},
+ "triangle": {"interval": 50, "frames": "◢◣◤◥"},
+ "arc": {"interval": 100, "frames": "◜◠◝◞◡◟"},
+ "circle": {"interval": 120, "frames": "◡⊙◠"},
+ "squareCorners": {"interval": 180, "frames": "◰◳◲◱"},
+ "circleQuarters": {"interval": 120, "frames": "◴◷◶◵"},
+ "circleHalves": {"interval": 50, "frames": "◐◓◑◒"},
+ "squish": {"interval": 100, "frames": "╫╪"},
+ "toggle": {"interval": 250, "frames": "⊶⊷"},
+ "toggle2": {"interval": 80, "frames": "▫▪"},
+ "toggle3": {"interval": 120, "frames": "□■"},
+ "toggle4": {"interval": 100, "frames": "■□▪▫"},
+ "toggle5": {"interval": 100, "frames": "▮▯"},
+ "toggle6": {"interval": 300, "frames": "ဝ၀"},
+ "toggle7": {"interval": 80, "frames": "⦾⦿"},
+ "toggle8": {"interval": 100, "frames": "◍◌"},
+ "toggle9": {"interval": 100, "frames": "◉◎"},
+ "toggle10": {"interval": 100, "frames": "㊂㊀㊁"},
+ "toggle11": {"interval": 50, "frames": "⧇⧆"},
+ "toggle12": {"interval": 120, "frames": "☗☖"},
+ "toggle13": {"interval": 80, "frames": "=*-"},
+ "arrow": {"interval": 100, "frames": "←↖↑↗→↘↓↙"},
+ "arrow2": {
+ "interval": 80,
+ "frames": ["⬆️ ", "↗️ ", "➡️ ", "↘️ ", "⬇️ ", "↙️ ", "⬅️ ", "↖️ "],
+ },
+ "arrow3": {
+ "interval": 120,
+ "frames": ["▹▹▹▹▹", "▸▹▹▹▹", "▹▸▹▹▹", "▹▹▸▹▹", "▹▹▹▸▹", "▹▹▹▹▸"],
+ },
+ "bouncingBar": {
+ "interval": 80,
+ "frames": [
+ "[ ]",
+ "[= ]",
+ "[== ]",
+ "[=== ]",
+ "[ ===]",
+ "[ ==]",
+ "[ =]",
+ "[ ]",
+ "[ =]",
+ "[ ==]",
+ "[ ===]",
+ "[====]",
+ "[=== ]",
+ "[== ]",
+ "[= ]",
+ ],
+ },
+ "bouncingBall": {
+ "interval": 80,
+ "frames": [
+ "( ● )",
+ "( ● )",
+ "( ● )",
+ "( ● )",
+ "( ●)",
+ "( ● )",
+ "( ● )",
+ "( ● )",
+ "( ● )",
+ "(● )",
+ ],
+ },
+ "smiley": {"interval": 200, "frames": ["😄 ", "😝 "]},
+ "monkey": {"interval": 300, "frames": ["🙈 ", "🙈 ", "🙉 ", "🙊 "]},
+ "hearts": {"interval": 100, "frames": ["💛 ", "💙 ", "💜 ", "💚 ", "❤️ "]},
+ "clock": {
+ "interval": 100,
+ "frames": [
+ "🕛 ",
+ "🕐 ",
+ "🕑 ",
+ "🕒 ",
+ "🕓 ",
+ "🕔 ",
+ "🕕 ",
+ "🕖 ",
+ "🕗 ",
+ "🕘 ",
+ "🕙 ",
+ "🕚 ",
+ ],
+ },
+ "earth": {"interval": 180, "frames": ["🌍 ", "🌎 ", "🌏 "]},
+ "material": {
+ "interval": 17,
+ "frames": [
+ "█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
+ "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
+ "███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
+ "████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
+ "██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
+ "██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
+ "███████▁▁▁▁▁▁▁▁▁▁▁▁▁",
+ "████████▁▁▁▁▁▁▁▁▁▁▁▁",
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
+ "██████████▁▁▁▁▁▁▁▁▁▁",
+ "███████████▁▁▁▁▁▁▁▁▁",
+ "█████████████▁▁▁▁▁▁▁",
+ "██████████████▁▁▁▁▁▁",
+ "██████████████▁▁▁▁▁▁",
+ "▁██████████████▁▁▁▁▁",
+ "▁██████████████▁▁▁▁▁",
+ "▁██████████████▁▁▁▁▁",
+ "▁▁██████████████▁▁▁▁",
+ "▁▁▁██████████████▁▁▁",
+ "▁▁▁▁█████████████▁▁▁",
+ "▁▁▁▁██████████████▁▁",
+ "▁▁▁▁██████████████▁▁",
+ "▁▁▁▁▁██████████████▁",
+ "▁▁▁▁▁██████████████▁",
+ "▁▁▁▁▁██████████████▁",
+ "▁▁▁▁▁▁██████████████",
+ "▁▁▁▁▁▁██████████████",
+ "▁▁▁▁▁▁▁█████████████",
+ "▁▁▁▁▁▁▁█████████████",
+ "▁▁▁▁▁▁▁▁████████████",
+ "▁▁▁▁▁▁▁▁████████████",
+ "▁▁▁▁▁▁▁▁▁███████████",
+ "▁▁▁▁▁▁▁▁▁███████████",
+ "▁▁▁▁▁▁▁▁▁▁██████████",
+ "▁▁▁▁▁▁▁▁▁▁██████████",
+ "▁▁▁▁▁▁▁▁▁▁▁▁████████",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁███████",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████",
+ "█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
+ "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
+ "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
+ "███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
+ "████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
+ "█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
+ "█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
+ "██████▁▁▁▁▁▁▁▁▁▁▁▁▁█",
+ "████████▁▁▁▁▁▁▁▁▁▁▁▁",
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
+ "███████████▁▁▁▁▁▁▁▁▁",
+ "████████████▁▁▁▁▁▁▁▁",
+ "████████████▁▁▁▁▁▁▁▁",
+ "██████████████▁▁▁▁▁▁",
+ "██████████████▁▁▁▁▁▁",
+ "▁██████████████▁▁▁▁▁",
+ "▁██████████████▁▁▁▁▁",
+ "▁▁▁█████████████▁▁▁▁",
+ "▁▁▁▁▁████████████▁▁▁",
+ "▁▁▁▁▁████████████▁▁▁",
+ "▁▁▁▁▁▁███████████▁▁▁",
+ "▁▁▁▁▁▁▁▁█████████▁▁▁",
+ "▁▁▁▁▁▁▁▁█████████▁▁▁",
+ "▁▁▁▁▁▁▁▁▁█████████▁▁",
+ "▁▁▁▁▁▁▁▁▁█████████▁▁",
+ "▁▁▁▁▁▁▁▁▁▁█████████▁",
+ "▁▁▁▁▁▁▁▁▁▁▁████████▁",
+ "▁▁▁▁▁▁▁▁▁▁▁████████▁",
+ "▁▁▁▁▁▁▁▁▁▁▁▁███████▁",
+ "▁▁▁▁▁▁▁▁▁▁▁▁███████▁",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁███████",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁███████",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
+ ],
+ },
+ "moon": {
+ "interval": 80,
+ "frames": ["🌑 ", "🌒 ", "🌓 ", "🌔 ", "🌕 ", "🌖 ", "🌗 ", "🌘 "],
+ },
+ "runner": {"interval": 140, "frames": ["🚶 ", "🏃 "]},
+ "pong": {
+ "interval": 80,
+ "frames": [
+ "▐⠂ ▌",
+ "▐⠈ ▌",
+ "▐ ⠂ ▌",
+ "▐ ⠠ ▌",
+ "▐ ⡀ ▌",
+ "▐ ⠠ ▌",
+ "▐ ⠂ ▌",
+ "▐ ⠈ ▌",
+ "▐ ⠂ ▌",
+ "▐ ⠠ ▌",
+ "▐ ⡀ ▌",
+ "▐ ⠠ ▌",
+ "▐ ⠂ ▌",
+ "▐ ⠈ ▌",
+ "▐ ⠂▌",
+ "▐ ⠠▌",
+ "▐ ⡀▌",
+ "▐ ⠠ ▌",
+ "▐ ⠂ ▌",
+ "▐ ⠈ ▌",
+ "▐ ⠂ ▌",
+ "▐ ⠠ ▌",
+ "▐ ⡀ ▌",
+ "▐ ⠠ ▌",
+ "▐ ⠂ ▌",
+ "▐ ⠈ ▌",
+ "▐ ⠂ ▌",
+ "▐ ⠠ ▌",
+ "▐ ⡀ ▌",
+ "▐⠠ ▌",
+ ],
+ },
+ "shark": {
+ "interval": 120,
+ "frames": [
+ "▐|\\____________▌",
+ "▐_|\\___________▌",
+ "▐__|\\__________▌",
+ "▐___|\\_________▌",
+ "▐____|\\________▌",
+ "▐_____|\\_______▌",
+ "▐______|\\______▌",
+ "▐_______|\\_____▌",
+ "▐________|\\____▌",
+ "▐_________|\\___▌",
+ "▐__________|\\__▌",
+ "▐___________|\\_▌",
+ "▐____________|\\▌",
+ "▐____________/|▌",
+ "▐___________/|_▌",
+ "▐__________/|__▌",
+ "▐_________/|___▌",
+ "▐________/|____▌",
+ "▐_______/|_____▌",
+ "▐______/|______▌",
+ "▐_____/|_______▌",
+ "▐____/|________▌",
+ "▐___/|_________▌",
+ "▐__/|__________▌",
+ "▐_/|___________▌",
+ "▐/|____________▌",
+ ],
+ },
+ "dqpb": {"interval": 100, "frames": "dqpb"},
+ "weather": {
+ "interval": 100,
+ "frames": [
+ "☀️ ",
+ "☀️ ",
+ "☀️ ",
+ "🌤 ",
+ "⛅️ ",
+ "🌥 ",
+ "☁️ ",
+ "🌧 ",
+ "🌨 ",
+ "🌧 ",
+ "🌨 ",
+ "🌧 ",
+ "🌨 ",
+ "⛈ ",
+ "🌨 ",
+ "🌧 ",
+ "🌨 ",
+ "☁️ ",
+ "🌥 ",
+ "⛅️ ",
+ "🌤 ",
+ "☀️ ",
+ "☀️ ",
+ ],
+ },
+ "christmas": {"interval": 400, "frames": "🌲🎄"},
+ "grenade": {
+ "interval": 80,
+ "frames": [
+ "، ",
+ "′ ",
+ " ´ ",
+ " ‾ ",
+ " ⸌",
+ " ⸊",
+ " |",
+ " ⁎",
+ " ⁕",
+ " ෴ ",
+ " ⁓",
+ " ",
+ " ",
+ " ",
+ ],
+ },
+ "point": {"interval": 125, "frames": ["∙∙∙", "●∙∙", "∙●∙", "∙∙●", "∙∙∙"]},
+ "layer": {"interval": 150, "frames": "-=≡"},
+ "betaWave": {
+ "interval": 80,
+ "frames": [
+ "ρββββββ",
+ "βρβββββ",
+ "ββρββββ",
+ "βββρβββ",
+ "ββββρββ",
+ "βββββρβ",
+ "ββββββρ",
+ ],
+ },
+ "aesthetic": {
+ "interval": 80,
+ "frames": [
+ "▰▱▱▱▱▱▱",
+ "▰▰▱▱▱▱▱",
+ "▰▰▰▱▱▱▱",
+ "▰▰▰▰▱▱▱",
+ "▰▰▰▰▰▱▱",
+ "▰▰▰▰▰▰▱",
+ "▰▰▰▰▰▰▰",
+ "▰▱▱▱▱▱▱",
+ ],
+ },
+}
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_stack.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_stack.py
new file mode 100644
index 0000000000000000000000000000000000000000..194564e761ddae165b39ef6598877e2e3820af0a
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_stack.py
@@ -0,0 +1,16 @@
+from typing import List, TypeVar
+
+T = TypeVar("T")
+
+
+class Stack(List[T]):
+ """A small shim over builtin list."""
+
+ @property
+ def top(self) -> T:
+ """Get top of stack."""
+ return self[-1]
+
+ def push(self, item: T) -> None:
+ """Push an item on to the stack (append in stack nomenclature)."""
+ self.append(item)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_timer.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_timer.py
new file mode 100644
index 0000000000000000000000000000000000000000..a2ca6be03c43054caaa3660998273ebf704345dd
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_timer.py
@@ -0,0 +1,19 @@
+"""
+Timer context manager, only used in debug.
+
+"""
+
+from time import time
+
+import contextlib
+from typing import Generator
+
+
+@contextlib.contextmanager
+def timer(subject: str = "time") -> Generator[None, None, None]:
+ """print the elapsed time. (only used in debugging)"""
+ start = time()
+ yield
+ elapsed = time() - start
+ elapsed_ms = elapsed * 1000
+ print(f"{subject} elapsed {elapsed_ms:.1f}ms")
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/__init__.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..ce54baef4e5124dd7c9e711604d00dcb001749c9
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/__init__.py
@@ -0,0 +1,93 @@
+from __future__ import annotations
+
+import bisect
+import os
+import sys
+
+if sys.version_info[:2] >= (3, 9):
+ from functools import cache
+else:
+ from functools import lru_cache as cache # pragma: no cover
+
+from importlib import import_module
+from typing import TYPE_CHECKING, cast
+
+from rich._unicode_data._versions import VERSIONS
+
+if TYPE_CHECKING:
+ from rich.cells import CellTable
+
+VERSION_ORDER = sorted(
+ [
+ tuple(
+ map(int, version.split(".")),
+ )
+ for version in VERSIONS
+ ]
+)
+VERSION_SET = frozenset(VERSIONS)
+
+
+def _parse_version(version: str) -> tuple[int, int, int]:
+ """Parse a version string into a tuple of 3 integers.
+
+ Args:
+ version: A version string.
+
+ Raises:
+ ValueError: If the version string is invalid.
+
+ Returns:
+ A tuple of 3 integers.
+ """
+ version_integers: tuple[int, ...]
+ try:
+ version_integers = tuple(
+ map(int, version.split(".")),
+ )
+ except ValueError:
+ raise ValueError(
+ f"unicode version string {version!r} is badly formatted"
+ ) from None
+ while len(version_integers) < 3:
+ version_integers = version_integers + (0,)
+ triple = cast("tuple[int, int, int]", version_integers[:3])
+ return triple
+
+
+@cache
+def load(unicode_version: str = "auto") -> CellTable:
+ """Load a cell table for the given unicode version.
+
+ Args:
+ unicode_version: Unicode version, or `None` to auto-detect.
+
+ """
+ if unicode_version == "auto":
+ unicode_version = os.environ.get("UNICODE_VERSION", "latest")
+ try:
+ _parse_version(unicode_version)
+ except ValueError:
+ # The environment variable is invalid
+ # Fallback to using the latest version seems reasonable
+ unicode_version = "latest"
+
+ if unicode_version == "latest":
+ version = VERSIONS[-1]
+ else:
+ try:
+ version_numbers = _parse_version(unicode_version)
+ except ValueError:
+ version_numbers = _parse_version(VERSIONS[-1])
+ major, minor, patch = version_numbers
+ version = f"{major}.{minor}.{patch}"
+ if version not in VERSION_SET:
+ insert_position = bisect.bisect_left(VERSION_ORDER, version_numbers)
+ version = VERSIONS[max(0, insert_position - 1)]
+
+ version_path_component = version.replace(".", "-")
+ module_name = f".unicode{version_path_component}"
+ module = import_module(module_name, "rich._unicode_data")
+ if TYPE_CHECKING:
+ assert isinstance(module.cell_table, CellTable)
+ return module.cell_table
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/_versions.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/_versions.py
new file mode 100644
index 0000000000000000000000000000000000000000..be98418d13d224ccd94f97f0ce8e31fe43f63540
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/_versions.py
@@ -0,0 +1,23 @@
+VERSIONS = (
+ "4.1.0",
+ "5.0.0",
+ "5.1.0",
+ "5.2.0",
+ "6.0.0",
+ "6.1.0",
+ "6.2.0",
+ "6.3.0",
+ "7.0.0",
+ "8.0.0",
+ "9.0.0",
+ "10.0.0",
+ "11.0.0",
+ "12.0.0",
+ "12.1.0",
+ "13.0.0",
+ "14.0.0",
+ "15.0.0",
+ "15.1.0",
+ "16.0.0",
+ "17.0.0",
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode10-0-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode10-0-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..f318087837c2cfb464c7bb9979f7ed067bc71bea
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode10-0-0.py
@@ -0,0 +1,611 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "10.0.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1552, 1562, 0),
+ (1564, 1564, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1756, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2260, 2273, 0),
+ (2275, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2810, 2815, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3072, 3075, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3201, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3328, 3331, 0),
+ (3387, 3388, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3769, 0),
+ (3771, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6158, 0),
+ (6277, 6278, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6832, 6846, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7410, 7412, 0),
+ (7415, 7417, 0),
+ (7616, 7673, 0),
+ (7675, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (8986, 8987, 2),
+ (9001, 9002, 2),
+ (9193, 9196, 2),
+ (9200, 9200, 2),
+ (9203, 9203, 2),
+ (9725, 9726, 2),
+ (9748, 9749, 2),
+ (9800, 9811, 2),
+ (9855, 9855, 2),
+ (9875, 9875, 2),
+ (9889, 9889, 2),
+ (9898, 9899, 2),
+ (9917, 9918, 2),
+ (9924, 9925, 2),
+ (9934, 9934, 2),
+ (9940, 9940, 2),
+ (9962, 9962, 2),
+ (9970, 9971, 2),
+ (9973, 9973, 2),
+ (9978, 9978, 2),
+ (9981, 9981, 2),
+ (9989, 9989, 2),
+ (9994, 9995, 2),
+ (10024, 10024, 2),
+ (10060, 10060, 2),
+ (10062, 10062, 2),
+ (10067, 10069, 2),
+ (10071, 10071, 2),
+ (10133, 10135, 2),
+ (10160, 10160, 2),
+ (10175, 10175, 2),
+ (11035, 11036, 2),
+ (11088, 11088, 2),
+ (11093, 11093, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12590, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12730, 2),
+ (12736, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 13054, 2),
+ (13056, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42654, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43136, 43137, 0),
+ (43188, 43205, 0),
+ (43232, 43249, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43493, 43493, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43645, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65071, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (66272, 66272, 0),
+ (66422, 66426, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (68325, 68326, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69759, 69762, 0),
+ (69808, 69818, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (70003, 70003, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (70090, 70092, 0),
+ (70188, 70199, 0),
+ (70206, 70206, 0),
+ (70367, 70378, 0),
+ (70400, 70403, 0),
+ (70460, 70460, 0),
+ (70462, 70468, 0),
+ (70471, 70472, 0),
+ (70475, 70477, 0),
+ (70487, 70487, 0),
+ (70498, 70499, 0),
+ (70502, 70508, 0),
+ (70512, 70516, 0),
+ (70709, 70726, 0),
+ (70832, 70851, 0),
+ (71087, 71093, 0),
+ (71096, 71104, 0),
+ (71132, 71133, 0),
+ (71216, 71232, 0),
+ (71339, 71351, 0),
+ (71453, 71467, 0),
+ (72193, 72202, 0),
+ (72243, 72249, 0),
+ (72251, 72254, 0),
+ (72263, 72263, 0),
+ (72273, 72283, 0),
+ (72330, 72345, 0),
+ (72751, 72758, 0),
+ (72760, 72767, 0),
+ (72850, 72871, 0),
+ (72873, 72886, 0),
+ (73009, 73014, 0),
+ (73018, 73018, 0),
+ (73020, 73021, 0),
+ (73023, 73029, 0),
+ (73031, 73031, 0),
+ (92912, 92916, 0),
+ (92976, 92982, 0),
+ (94033, 94078, 0),
+ (94095, 94098, 0),
+ (94176, 94177, 2),
+ (94208, 100332, 2),
+ (100352, 101106, 2),
+ (110592, 110878, 2),
+ (110960, 111355, 2),
+ (113821, 113822, 0),
+ (113824, 113827, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (121344, 121398, 0),
+ (121403, 121452, 0),
+ (121461, 121461, 0),
+ (121476, 121476, 0),
+ (121499, 121503, 0),
+ (121505, 121519, 0),
+ (122880, 122886, 0),
+ (122888, 122904, 0),
+ (122907, 122913, 0),
+ (122915, 122916, 0),
+ (122918, 122922, 0),
+ (125136, 125142, 0),
+ (125252, 125258, 0),
+ (126980, 126980, 2),
+ (127183, 127183, 2),
+ (127374, 127374, 2),
+ (127377, 127386, 2),
+ (127488, 127490, 2),
+ (127504, 127547, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (127584, 127589, 2),
+ (127744, 127776, 2),
+ (127789, 127797, 2),
+ (127799, 127868, 2),
+ (127870, 127891, 2),
+ (127904, 127946, 2),
+ (127951, 127955, 2),
+ (127968, 127984, 2),
+ (127988, 127988, 2),
+ (127992, 127994, 2),
+ (127995, 127999, 0),
+ (128000, 128062, 2),
+ (128064, 128064, 2),
+ (128066, 128252, 2),
+ (128255, 128317, 2),
+ (128331, 128334, 2),
+ (128336, 128359, 2),
+ (128378, 128378, 2),
+ (128405, 128406, 2),
+ (128420, 128420, 2),
+ (128507, 128591, 2),
+ (128640, 128709, 2),
+ (128716, 128716, 2),
+ (128720, 128722, 2),
+ (128747, 128748, 2),
+ (128756, 128760, 2),
+ (129296, 129342, 2),
+ (129344, 129356, 2),
+ (129360, 129387, 2),
+ (129408, 129431, 2),
+ (129472, 129472, 2),
+ (129488, 129510, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode11-0-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode11-0-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..058bb342cac0eb3cae529a0a1933c89dabaa5fbd
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode11-0-0.py
@@ -0,0 +1,625 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "11.0.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1552, 1562, 0),
+ (1564, 1564, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1756, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2045, 2045, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2259, 2273, 0),
+ (2275, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2558, 2558, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2810, 2815, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3072, 3076, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3201, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3328, 3331, 0),
+ (3387, 3388, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3769, 0),
+ (3771, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6158, 0),
+ (6277, 6278, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6832, 6846, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7410, 7412, 0),
+ (7415, 7417, 0),
+ (7616, 7673, 0),
+ (7675, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (8986, 8987, 2),
+ (9001, 9002, 2),
+ (9193, 9196, 2),
+ (9200, 9200, 2),
+ (9203, 9203, 2),
+ (9725, 9726, 2),
+ (9748, 9749, 2),
+ (9800, 9811, 2),
+ (9855, 9855, 2),
+ (9875, 9875, 2),
+ (9889, 9889, 2),
+ (9898, 9899, 2),
+ (9917, 9918, 2),
+ (9924, 9925, 2),
+ (9934, 9934, 2),
+ (9940, 9940, 2),
+ (9962, 9962, 2),
+ (9970, 9971, 2),
+ (9973, 9973, 2),
+ (9978, 9978, 2),
+ (9981, 9981, 2),
+ (9989, 9989, 2),
+ (9994, 9995, 2),
+ (10024, 10024, 2),
+ (10060, 10060, 2),
+ (10062, 10062, 2),
+ (10067, 10069, 2),
+ (10071, 10071, 2),
+ (10133, 10135, 2),
+ (10160, 10160, 2),
+ (10175, 10175, 2),
+ (11035, 11036, 2),
+ (11088, 11088, 2),
+ (11093, 11093, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12591, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12730, 2),
+ (12736, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 13054, 2),
+ (13056, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42654, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43136, 43137, 0),
+ (43188, 43205, 0),
+ (43232, 43249, 0),
+ (43263, 43263, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43493, 43493, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43645, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65071, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (66272, 66272, 0),
+ (66422, 66426, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (68325, 68326, 0),
+ (68900, 68903, 0),
+ (69446, 69456, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69759, 69762, 0),
+ (69808, 69818, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (69957, 69958, 0),
+ (70003, 70003, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (70089, 70092, 0),
+ (70188, 70199, 0),
+ (70206, 70206, 0),
+ (70367, 70378, 0),
+ (70400, 70403, 0),
+ (70459, 70460, 0),
+ (70462, 70468, 0),
+ (70471, 70472, 0),
+ (70475, 70477, 0),
+ (70487, 70487, 0),
+ (70498, 70499, 0),
+ (70502, 70508, 0),
+ (70512, 70516, 0),
+ (70709, 70726, 0),
+ (70750, 70750, 0),
+ (70832, 70851, 0),
+ (71087, 71093, 0),
+ (71096, 71104, 0),
+ (71132, 71133, 0),
+ (71216, 71232, 0),
+ (71339, 71351, 0),
+ (71453, 71467, 0),
+ (71724, 71738, 0),
+ (72193, 72202, 0),
+ (72243, 72249, 0),
+ (72251, 72254, 0),
+ (72263, 72263, 0),
+ (72273, 72283, 0),
+ (72330, 72345, 0),
+ (72751, 72758, 0),
+ (72760, 72767, 0),
+ (72850, 72871, 0),
+ (72873, 72886, 0),
+ (73009, 73014, 0),
+ (73018, 73018, 0),
+ (73020, 73021, 0),
+ (73023, 73029, 0),
+ (73031, 73031, 0),
+ (73098, 73102, 0),
+ (73104, 73105, 0),
+ (73107, 73111, 0),
+ (73459, 73462, 0),
+ (92912, 92916, 0),
+ (92976, 92982, 0),
+ (94033, 94078, 0),
+ (94095, 94098, 0),
+ (94176, 94177, 2),
+ (94208, 100337, 2),
+ (100352, 101106, 2),
+ (110592, 110878, 2),
+ (110960, 111355, 2),
+ (113821, 113822, 0),
+ (113824, 113827, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (121344, 121398, 0),
+ (121403, 121452, 0),
+ (121461, 121461, 0),
+ (121476, 121476, 0),
+ (121499, 121503, 0),
+ (121505, 121519, 0),
+ (122880, 122886, 0),
+ (122888, 122904, 0),
+ (122907, 122913, 0),
+ (122915, 122916, 0),
+ (122918, 122922, 0),
+ (125136, 125142, 0),
+ (125252, 125258, 0),
+ (126980, 126980, 2),
+ (127183, 127183, 2),
+ (127374, 127374, 2),
+ (127377, 127386, 2),
+ (127488, 127490, 2),
+ (127504, 127547, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (127584, 127589, 2),
+ (127744, 127776, 2),
+ (127789, 127797, 2),
+ (127799, 127868, 2),
+ (127870, 127891, 2),
+ (127904, 127946, 2),
+ (127951, 127955, 2),
+ (127968, 127984, 2),
+ (127988, 127988, 2),
+ (127992, 127994, 2),
+ (127995, 127999, 0),
+ (128000, 128062, 2),
+ (128064, 128064, 2),
+ (128066, 128252, 2),
+ (128255, 128317, 2),
+ (128331, 128334, 2),
+ (128336, 128359, 2),
+ (128378, 128378, 2),
+ (128405, 128406, 2),
+ (128420, 128420, 2),
+ (128507, 128591, 2),
+ (128640, 128709, 2),
+ (128716, 128716, 2),
+ (128720, 128722, 2),
+ (128747, 128748, 2),
+ (128756, 128761, 2),
+ (129296, 129342, 2),
+ (129344, 129392, 2),
+ (129395, 129398, 2),
+ (129402, 129402, 2),
+ (129404, 129442, 2),
+ (129456, 129465, 2),
+ (129472, 129474, 2),
+ (129488, 129535, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode12-0-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode12-0-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..7b0022513d4517f1704e3f54c3dcc7a4f8816773
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode12-0-0.py
@@ -0,0 +1,637 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "12.0.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1552, 1562, 0),
+ (1564, 1564, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1756, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2045, 2045, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2259, 2273, 0),
+ (2275, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2558, 2558, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2810, 2815, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3072, 3076, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3201, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3328, 3331, 0),
+ (3387, 3388, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6158, 0),
+ (6277, 6278, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6832, 6846, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7412, 7412, 0),
+ (7415, 7417, 0),
+ (7616, 7673, 0),
+ (7675, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (8986, 8987, 2),
+ (9001, 9002, 2),
+ (9193, 9196, 2),
+ (9200, 9200, 2),
+ (9203, 9203, 2),
+ (9725, 9726, 2),
+ (9748, 9749, 2),
+ (9800, 9811, 2),
+ (9855, 9855, 2),
+ (9875, 9875, 2),
+ (9889, 9889, 2),
+ (9898, 9899, 2),
+ (9917, 9918, 2),
+ (9924, 9925, 2),
+ (9934, 9934, 2),
+ (9940, 9940, 2),
+ (9962, 9962, 2),
+ (9970, 9971, 2),
+ (9973, 9973, 2),
+ (9978, 9978, 2),
+ (9981, 9981, 2),
+ (9989, 9989, 2),
+ (9994, 9995, 2),
+ (10024, 10024, 2),
+ (10060, 10060, 2),
+ (10062, 10062, 2),
+ (10067, 10069, 2),
+ (10071, 10071, 2),
+ (10133, 10135, 2),
+ (10160, 10160, 2),
+ (10175, 10175, 2),
+ (11035, 11036, 2),
+ (11088, 11088, 2),
+ (11093, 11093, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12591, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12730, 2),
+ (12736, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 13054, 2),
+ (13056, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42654, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43136, 43137, 0),
+ (43188, 43205, 0),
+ (43232, 43249, 0),
+ (43263, 43263, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43493, 43493, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43645, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65071, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (66272, 66272, 0),
+ (66422, 66426, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (68325, 68326, 0),
+ (68900, 68903, 0),
+ (69446, 69456, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69759, 69762, 0),
+ (69808, 69818, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (69957, 69958, 0),
+ (70003, 70003, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (70089, 70092, 0),
+ (70188, 70199, 0),
+ (70206, 70206, 0),
+ (70367, 70378, 0),
+ (70400, 70403, 0),
+ (70459, 70460, 0),
+ (70462, 70468, 0),
+ (70471, 70472, 0),
+ (70475, 70477, 0),
+ (70487, 70487, 0),
+ (70498, 70499, 0),
+ (70502, 70508, 0),
+ (70512, 70516, 0),
+ (70709, 70726, 0),
+ (70750, 70750, 0),
+ (70832, 70851, 0),
+ (71087, 71093, 0),
+ (71096, 71104, 0),
+ (71132, 71133, 0),
+ (71216, 71232, 0),
+ (71339, 71351, 0),
+ (71453, 71467, 0),
+ (71724, 71738, 0),
+ (72145, 72151, 0),
+ (72154, 72160, 0),
+ (72164, 72164, 0),
+ (72193, 72202, 0),
+ (72243, 72249, 0),
+ (72251, 72254, 0),
+ (72263, 72263, 0),
+ (72273, 72283, 0),
+ (72330, 72345, 0),
+ (72751, 72758, 0),
+ (72760, 72767, 0),
+ (72850, 72871, 0),
+ (72873, 72886, 0),
+ (73009, 73014, 0),
+ (73018, 73018, 0),
+ (73020, 73021, 0),
+ (73023, 73029, 0),
+ (73031, 73031, 0),
+ (73098, 73102, 0),
+ (73104, 73105, 0),
+ (73107, 73111, 0),
+ (73459, 73462, 0),
+ (78896, 78904, 0),
+ (92912, 92916, 0),
+ (92976, 92982, 0),
+ (94031, 94031, 0),
+ (94033, 94087, 0),
+ (94095, 94098, 0),
+ (94176, 94179, 2),
+ (94208, 100343, 2),
+ (100352, 101106, 2),
+ (110592, 110878, 2),
+ (110928, 110930, 2),
+ (110948, 110951, 2),
+ (110960, 111355, 2),
+ (113821, 113822, 0),
+ (113824, 113827, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (121344, 121398, 0),
+ (121403, 121452, 0),
+ (121461, 121461, 0),
+ (121476, 121476, 0),
+ (121499, 121503, 0),
+ (121505, 121519, 0),
+ (122880, 122886, 0),
+ (122888, 122904, 0),
+ (122907, 122913, 0),
+ (122915, 122916, 0),
+ (122918, 122922, 0),
+ (123184, 123190, 0),
+ (123628, 123631, 0),
+ (125136, 125142, 0),
+ (125252, 125258, 0),
+ (126980, 126980, 2),
+ (127183, 127183, 2),
+ (127374, 127374, 2),
+ (127377, 127386, 2),
+ (127488, 127490, 2),
+ (127504, 127547, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (127584, 127589, 2),
+ (127744, 127776, 2),
+ (127789, 127797, 2),
+ (127799, 127868, 2),
+ (127870, 127891, 2),
+ (127904, 127946, 2),
+ (127951, 127955, 2),
+ (127968, 127984, 2),
+ (127988, 127988, 2),
+ (127992, 127994, 2),
+ (127995, 127999, 0),
+ (128000, 128062, 2),
+ (128064, 128064, 2),
+ (128066, 128252, 2),
+ (128255, 128317, 2),
+ (128331, 128334, 2),
+ (128336, 128359, 2),
+ (128378, 128378, 2),
+ (128405, 128406, 2),
+ (128420, 128420, 2),
+ (128507, 128591, 2),
+ (128640, 128709, 2),
+ (128716, 128716, 2),
+ (128720, 128722, 2),
+ (128725, 128725, 2),
+ (128747, 128748, 2),
+ (128756, 128762, 2),
+ (128992, 129003, 2),
+ (129293, 129393, 2),
+ (129395, 129398, 2),
+ (129402, 129442, 2),
+ (129445, 129450, 2),
+ (129454, 129482, 2),
+ (129485, 129535, 2),
+ (129648, 129651, 2),
+ (129656, 129658, 2),
+ (129664, 129666, 2),
+ (129680, 129685, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode12-1-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode12-1-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..2dbcf3794e45d16f46ce68d81f5eea63e39aa42d
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode12-1-0.py
@@ -0,0 +1,636 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "12.1.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1552, 1562, 0),
+ (1564, 1564, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1756, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2045, 2045, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2259, 2273, 0),
+ (2275, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2558, 2558, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2810, 2815, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3072, 3076, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3201, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3328, 3331, 0),
+ (3387, 3388, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6158, 0),
+ (6277, 6278, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6832, 6846, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7412, 7412, 0),
+ (7415, 7417, 0),
+ (7616, 7673, 0),
+ (7675, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (8986, 8987, 2),
+ (9001, 9002, 2),
+ (9193, 9196, 2),
+ (9200, 9200, 2),
+ (9203, 9203, 2),
+ (9725, 9726, 2),
+ (9748, 9749, 2),
+ (9800, 9811, 2),
+ (9855, 9855, 2),
+ (9875, 9875, 2),
+ (9889, 9889, 2),
+ (9898, 9899, 2),
+ (9917, 9918, 2),
+ (9924, 9925, 2),
+ (9934, 9934, 2),
+ (9940, 9940, 2),
+ (9962, 9962, 2),
+ (9970, 9971, 2),
+ (9973, 9973, 2),
+ (9978, 9978, 2),
+ (9981, 9981, 2),
+ (9989, 9989, 2),
+ (9994, 9995, 2),
+ (10024, 10024, 2),
+ (10060, 10060, 2),
+ (10062, 10062, 2),
+ (10067, 10069, 2),
+ (10071, 10071, 2),
+ (10133, 10135, 2),
+ (10160, 10160, 2),
+ (10175, 10175, 2),
+ (11035, 11036, 2),
+ (11088, 11088, 2),
+ (11093, 11093, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12591, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12730, 2),
+ (12736, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42654, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43136, 43137, 0),
+ (43188, 43205, 0),
+ (43232, 43249, 0),
+ (43263, 43263, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43493, 43493, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43645, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65071, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (66272, 66272, 0),
+ (66422, 66426, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (68325, 68326, 0),
+ (68900, 68903, 0),
+ (69446, 69456, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69759, 69762, 0),
+ (69808, 69818, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (69957, 69958, 0),
+ (70003, 70003, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (70089, 70092, 0),
+ (70188, 70199, 0),
+ (70206, 70206, 0),
+ (70367, 70378, 0),
+ (70400, 70403, 0),
+ (70459, 70460, 0),
+ (70462, 70468, 0),
+ (70471, 70472, 0),
+ (70475, 70477, 0),
+ (70487, 70487, 0),
+ (70498, 70499, 0),
+ (70502, 70508, 0),
+ (70512, 70516, 0),
+ (70709, 70726, 0),
+ (70750, 70750, 0),
+ (70832, 70851, 0),
+ (71087, 71093, 0),
+ (71096, 71104, 0),
+ (71132, 71133, 0),
+ (71216, 71232, 0),
+ (71339, 71351, 0),
+ (71453, 71467, 0),
+ (71724, 71738, 0),
+ (72145, 72151, 0),
+ (72154, 72160, 0),
+ (72164, 72164, 0),
+ (72193, 72202, 0),
+ (72243, 72249, 0),
+ (72251, 72254, 0),
+ (72263, 72263, 0),
+ (72273, 72283, 0),
+ (72330, 72345, 0),
+ (72751, 72758, 0),
+ (72760, 72767, 0),
+ (72850, 72871, 0),
+ (72873, 72886, 0),
+ (73009, 73014, 0),
+ (73018, 73018, 0),
+ (73020, 73021, 0),
+ (73023, 73029, 0),
+ (73031, 73031, 0),
+ (73098, 73102, 0),
+ (73104, 73105, 0),
+ (73107, 73111, 0),
+ (73459, 73462, 0),
+ (78896, 78904, 0),
+ (92912, 92916, 0),
+ (92976, 92982, 0),
+ (94031, 94031, 0),
+ (94033, 94087, 0),
+ (94095, 94098, 0),
+ (94176, 94179, 2),
+ (94208, 100343, 2),
+ (100352, 101106, 2),
+ (110592, 110878, 2),
+ (110928, 110930, 2),
+ (110948, 110951, 2),
+ (110960, 111355, 2),
+ (113821, 113822, 0),
+ (113824, 113827, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (121344, 121398, 0),
+ (121403, 121452, 0),
+ (121461, 121461, 0),
+ (121476, 121476, 0),
+ (121499, 121503, 0),
+ (121505, 121519, 0),
+ (122880, 122886, 0),
+ (122888, 122904, 0),
+ (122907, 122913, 0),
+ (122915, 122916, 0),
+ (122918, 122922, 0),
+ (123184, 123190, 0),
+ (123628, 123631, 0),
+ (125136, 125142, 0),
+ (125252, 125258, 0),
+ (126980, 126980, 2),
+ (127183, 127183, 2),
+ (127374, 127374, 2),
+ (127377, 127386, 2),
+ (127488, 127490, 2),
+ (127504, 127547, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (127584, 127589, 2),
+ (127744, 127776, 2),
+ (127789, 127797, 2),
+ (127799, 127868, 2),
+ (127870, 127891, 2),
+ (127904, 127946, 2),
+ (127951, 127955, 2),
+ (127968, 127984, 2),
+ (127988, 127988, 2),
+ (127992, 127994, 2),
+ (127995, 127999, 0),
+ (128000, 128062, 2),
+ (128064, 128064, 2),
+ (128066, 128252, 2),
+ (128255, 128317, 2),
+ (128331, 128334, 2),
+ (128336, 128359, 2),
+ (128378, 128378, 2),
+ (128405, 128406, 2),
+ (128420, 128420, 2),
+ (128507, 128591, 2),
+ (128640, 128709, 2),
+ (128716, 128716, 2),
+ (128720, 128722, 2),
+ (128725, 128725, 2),
+ (128747, 128748, 2),
+ (128756, 128762, 2),
+ (128992, 129003, 2),
+ (129293, 129393, 2),
+ (129395, 129398, 2),
+ (129402, 129442, 2),
+ (129445, 129450, 2),
+ (129454, 129482, 2),
+ (129485, 129535, 2),
+ (129648, 129651, 2),
+ (129656, 129658, 2),
+ (129664, 129666, 2),
+ (129680, 129685, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode13-0-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode13-0-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..13fbc74b0ac34d1c28f5ee77359a520512bf7e8a
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode13-0-0.py
@@ -0,0 +1,648 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "13.0.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1552, 1562, 0),
+ (1564, 1564, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1756, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2045, 2045, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2259, 2273, 0),
+ (2275, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2558, 2558, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2810, 2815, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2901, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3072, 3076, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3201, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3328, 3331, 0),
+ (3387, 3388, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3457, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6158, 0),
+ (6277, 6278, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6832, 6848, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7412, 7412, 0),
+ (7415, 7417, 0),
+ (7616, 7673, 0),
+ (7675, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (8986, 8987, 2),
+ (9001, 9002, 2),
+ (9193, 9196, 2),
+ (9200, 9200, 2),
+ (9203, 9203, 2),
+ (9725, 9726, 2),
+ (9748, 9749, 2),
+ (9800, 9811, 2),
+ (9855, 9855, 2),
+ (9875, 9875, 2),
+ (9889, 9889, 2),
+ (9898, 9899, 2),
+ (9917, 9918, 2),
+ (9924, 9925, 2),
+ (9934, 9934, 2),
+ (9940, 9940, 2),
+ (9962, 9962, 2),
+ (9970, 9971, 2),
+ (9973, 9973, 2),
+ (9978, 9978, 2),
+ (9981, 9981, 2),
+ (9989, 9989, 2),
+ (9994, 9995, 2),
+ (10024, 10024, 2),
+ (10060, 10060, 2),
+ (10062, 10062, 2),
+ (10067, 10069, 2),
+ (10071, 10071, 2),
+ (10133, 10135, 2),
+ (10160, 10160, 2),
+ (10175, 10175, 2),
+ (11035, 11036, 2),
+ (11088, 11088, 2),
+ (11093, 11093, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12591, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42654, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43052, 43052, 0),
+ (43136, 43137, 0),
+ (43188, 43205, 0),
+ (43232, 43249, 0),
+ (43263, 43263, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43493, 43493, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43645, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65071, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (66272, 66272, 0),
+ (66422, 66426, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (68325, 68326, 0),
+ (68900, 68903, 0),
+ (69291, 69292, 0),
+ (69446, 69456, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69759, 69762, 0),
+ (69808, 69818, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (69957, 69958, 0),
+ (70003, 70003, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (70089, 70092, 0),
+ (70094, 70095, 0),
+ (70188, 70199, 0),
+ (70206, 70206, 0),
+ (70367, 70378, 0),
+ (70400, 70403, 0),
+ (70459, 70460, 0),
+ (70462, 70468, 0),
+ (70471, 70472, 0),
+ (70475, 70477, 0),
+ (70487, 70487, 0),
+ (70498, 70499, 0),
+ (70502, 70508, 0),
+ (70512, 70516, 0),
+ (70709, 70726, 0),
+ (70750, 70750, 0),
+ (70832, 70851, 0),
+ (71087, 71093, 0),
+ (71096, 71104, 0),
+ (71132, 71133, 0),
+ (71216, 71232, 0),
+ (71339, 71351, 0),
+ (71453, 71467, 0),
+ (71724, 71738, 0),
+ (71984, 71989, 0),
+ (71991, 71992, 0),
+ (71995, 71998, 0),
+ (72000, 72000, 0),
+ (72002, 72003, 0),
+ (72145, 72151, 0),
+ (72154, 72160, 0),
+ (72164, 72164, 0),
+ (72193, 72202, 0),
+ (72243, 72249, 0),
+ (72251, 72254, 0),
+ (72263, 72263, 0),
+ (72273, 72283, 0),
+ (72330, 72345, 0),
+ (72751, 72758, 0),
+ (72760, 72767, 0),
+ (72850, 72871, 0),
+ (72873, 72886, 0),
+ (73009, 73014, 0),
+ (73018, 73018, 0),
+ (73020, 73021, 0),
+ (73023, 73029, 0),
+ (73031, 73031, 0),
+ (73098, 73102, 0),
+ (73104, 73105, 0),
+ (73107, 73111, 0),
+ (73459, 73462, 0),
+ (78896, 78904, 0),
+ (92912, 92916, 0),
+ (92976, 92982, 0),
+ (94031, 94031, 0),
+ (94033, 94087, 0),
+ (94095, 94098, 0),
+ (94176, 94179, 2),
+ (94180, 94180, 0),
+ (94192, 94193, 0),
+ (94208, 100343, 2),
+ (100352, 101589, 2),
+ (101632, 101640, 2),
+ (110592, 110878, 2),
+ (110928, 110930, 2),
+ (110948, 110951, 2),
+ (110960, 111355, 2),
+ (113821, 113822, 0),
+ (113824, 113827, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (121344, 121398, 0),
+ (121403, 121452, 0),
+ (121461, 121461, 0),
+ (121476, 121476, 0),
+ (121499, 121503, 0),
+ (121505, 121519, 0),
+ (122880, 122886, 0),
+ (122888, 122904, 0),
+ (122907, 122913, 0),
+ (122915, 122916, 0),
+ (122918, 122922, 0),
+ (123184, 123190, 0),
+ (123628, 123631, 0),
+ (125136, 125142, 0),
+ (125252, 125258, 0),
+ (126980, 126980, 2),
+ (127183, 127183, 2),
+ (127374, 127374, 2),
+ (127377, 127386, 2),
+ (127488, 127490, 2),
+ (127504, 127547, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (127584, 127589, 2),
+ (127744, 127776, 2),
+ (127789, 127797, 2),
+ (127799, 127868, 2),
+ (127870, 127891, 2),
+ (127904, 127946, 2),
+ (127951, 127955, 2),
+ (127968, 127984, 2),
+ (127988, 127988, 2),
+ (127992, 127994, 2),
+ (127995, 127999, 0),
+ (128000, 128062, 2),
+ (128064, 128064, 2),
+ (128066, 128252, 2),
+ (128255, 128317, 2),
+ (128331, 128334, 2),
+ (128336, 128359, 2),
+ (128378, 128378, 2),
+ (128405, 128406, 2),
+ (128420, 128420, 2),
+ (128507, 128591, 2),
+ (128640, 128709, 2),
+ (128716, 128716, 2),
+ (128720, 128722, 2),
+ (128725, 128727, 2),
+ (128747, 128748, 2),
+ (128756, 128764, 2),
+ (128992, 129003, 2),
+ (129292, 129338, 2),
+ (129340, 129349, 2),
+ (129351, 129400, 2),
+ (129402, 129483, 2),
+ (129485, 129535, 2),
+ (129648, 129652, 2),
+ (129656, 129658, 2),
+ (129664, 129670, 2),
+ (129680, 129704, 2),
+ (129712, 129718, 2),
+ (129728, 129730, 2),
+ (129744, 129750, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode14-0-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode14-0-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..9fa9e29e7f3027b8aafbd59731fab0d70bd05c5d
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode14-0-0.py
@@ -0,0 +1,661 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "14.0.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1552, 1562, 0),
+ (1564, 1564, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1756, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2045, 2045, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2200, 2207, 0),
+ (2250, 2273, 0),
+ (2275, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2558, 2558, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2810, 2815, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2901, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3072, 3076, 0),
+ (3132, 3132, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3201, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3328, 3331, 0),
+ (3387, 3388, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3457, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5909, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6159, 0),
+ (6277, 6278, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6832, 6862, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7412, 7412, 0),
+ (7415, 7417, 0),
+ (7616, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (8986, 8987, 2),
+ (9001, 9002, 2),
+ (9193, 9196, 2),
+ (9200, 9200, 2),
+ (9203, 9203, 2),
+ (9725, 9726, 2),
+ (9748, 9749, 2),
+ (9800, 9811, 2),
+ (9855, 9855, 2),
+ (9875, 9875, 2),
+ (9889, 9889, 2),
+ (9898, 9899, 2),
+ (9917, 9918, 2),
+ (9924, 9925, 2),
+ (9934, 9934, 2),
+ (9940, 9940, 2),
+ (9962, 9962, 2),
+ (9970, 9971, 2),
+ (9973, 9973, 2),
+ (9978, 9978, 2),
+ (9981, 9981, 2),
+ (9989, 9989, 2),
+ (9994, 9995, 2),
+ (10024, 10024, 2),
+ (10060, 10060, 2),
+ (10062, 10062, 2),
+ (10067, 10069, 2),
+ (10071, 10071, 2),
+ (10133, 10135, 2),
+ (10160, 10160, 2),
+ (10175, 10175, 2),
+ (11035, 11036, 2),
+ (11088, 11088, 2),
+ (11093, 11093, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12591, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42654, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43052, 43052, 0),
+ (43136, 43137, 0),
+ (43188, 43205, 0),
+ (43232, 43249, 0),
+ (43263, 43263, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43493, 43493, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43645, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65071, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (66272, 66272, 0),
+ (66422, 66426, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (68325, 68326, 0),
+ (68900, 68903, 0),
+ (69291, 69292, 0),
+ (69446, 69456, 0),
+ (69506, 69509, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69744, 69744, 0),
+ (69747, 69748, 0),
+ (69759, 69762, 0),
+ (69808, 69818, 0),
+ (69826, 69826, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (69957, 69958, 0),
+ (70003, 70003, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (70089, 70092, 0),
+ (70094, 70095, 0),
+ (70188, 70199, 0),
+ (70206, 70206, 0),
+ (70367, 70378, 0),
+ (70400, 70403, 0),
+ (70459, 70460, 0),
+ (70462, 70468, 0),
+ (70471, 70472, 0),
+ (70475, 70477, 0),
+ (70487, 70487, 0),
+ (70498, 70499, 0),
+ (70502, 70508, 0),
+ (70512, 70516, 0),
+ (70709, 70726, 0),
+ (70750, 70750, 0),
+ (70832, 70851, 0),
+ (71087, 71093, 0),
+ (71096, 71104, 0),
+ (71132, 71133, 0),
+ (71216, 71232, 0),
+ (71339, 71351, 0),
+ (71453, 71467, 0),
+ (71724, 71738, 0),
+ (71984, 71989, 0),
+ (71991, 71992, 0),
+ (71995, 71998, 0),
+ (72000, 72000, 0),
+ (72002, 72003, 0),
+ (72145, 72151, 0),
+ (72154, 72160, 0),
+ (72164, 72164, 0),
+ (72193, 72202, 0),
+ (72243, 72249, 0),
+ (72251, 72254, 0),
+ (72263, 72263, 0),
+ (72273, 72283, 0),
+ (72330, 72345, 0),
+ (72751, 72758, 0),
+ (72760, 72767, 0),
+ (72850, 72871, 0),
+ (72873, 72886, 0),
+ (73009, 73014, 0),
+ (73018, 73018, 0),
+ (73020, 73021, 0),
+ (73023, 73029, 0),
+ (73031, 73031, 0),
+ (73098, 73102, 0),
+ (73104, 73105, 0),
+ (73107, 73111, 0),
+ (73459, 73462, 0),
+ (78896, 78904, 0),
+ (92912, 92916, 0),
+ (92976, 92982, 0),
+ (94031, 94031, 0),
+ (94033, 94087, 0),
+ (94095, 94098, 0),
+ (94176, 94179, 2),
+ (94180, 94180, 0),
+ (94192, 94193, 0),
+ (94208, 100343, 2),
+ (100352, 101589, 2),
+ (101632, 101640, 2),
+ (110576, 110579, 2),
+ (110581, 110587, 2),
+ (110589, 110590, 2),
+ (110592, 110882, 2),
+ (110928, 110930, 2),
+ (110948, 110951, 2),
+ (110960, 111355, 2),
+ (113821, 113822, 0),
+ (113824, 113827, 0),
+ (118528, 118573, 0),
+ (118576, 118598, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (121344, 121398, 0),
+ (121403, 121452, 0),
+ (121461, 121461, 0),
+ (121476, 121476, 0),
+ (121499, 121503, 0),
+ (121505, 121519, 0),
+ (122880, 122886, 0),
+ (122888, 122904, 0),
+ (122907, 122913, 0),
+ (122915, 122916, 0),
+ (122918, 122922, 0),
+ (123184, 123190, 0),
+ (123566, 123566, 0),
+ (123628, 123631, 0),
+ (125136, 125142, 0),
+ (125252, 125258, 0),
+ (126980, 126980, 2),
+ (127183, 127183, 2),
+ (127374, 127374, 2),
+ (127377, 127386, 2),
+ (127488, 127490, 2),
+ (127504, 127547, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (127584, 127589, 2),
+ (127744, 127776, 2),
+ (127789, 127797, 2),
+ (127799, 127868, 2),
+ (127870, 127891, 2),
+ (127904, 127946, 2),
+ (127951, 127955, 2),
+ (127968, 127984, 2),
+ (127988, 127988, 2),
+ (127992, 127994, 2),
+ (127995, 127999, 0),
+ (128000, 128062, 2),
+ (128064, 128064, 2),
+ (128066, 128252, 2),
+ (128255, 128317, 2),
+ (128331, 128334, 2),
+ (128336, 128359, 2),
+ (128378, 128378, 2),
+ (128405, 128406, 2),
+ (128420, 128420, 2),
+ (128507, 128591, 2),
+ (128640, 128709, 2),
+ (128716, 128716, 2),
+ (128720, 128722, 2),
+ (128725, 128727, 2),
+ (128733, 128735, 2),
+ (128747, 128748, 2),
+ (128756, 128764, 2),
+ (128992, 129003, 2),
+ (129008, 129008, 2),
+ (129292, 129338, 2),
+ (129340, 129349, 2),
+ (129351, 129535, 2),
+ (129648, 129652, 2),
+ (129656, 129660, 2),
+ (129664, 129670, 2),
+ (129680, 129708, 2),
+ (129712, 129722, 2),
+ (129728, 129733, 2),
+ (129744, 129753, 2),
+ (129760, 129767, 2),
+ (129776, 129782, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode15-0-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode15-0-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..84dd5be9365bb226620059b80353dd1ce26f8064
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode15-0-0.py
@@ -0,0 +1,671 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "15.0.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1552, 1562, 0),
+ (1564, 1564, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1756, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2045, 2045, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2200, 2207, 0),
+ (2250, 2273, 0),
+ (2275, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2558, 2558, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2810, 2815, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2901, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3072, 3076, 0),
+ (3132, 3132, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3201, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3315, 3315, 0),
+ (3328, 3331, 0),
+ (3387, 3388, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3457, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3772, 0),
+ (3784, 3790, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5909, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6159, 0),
+ (6277, 6278, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6832, 6862, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7412, 7412, 0),
+ (7415, 7417, 0),
+ (7616, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (8986, 8987, 2),
+ (9001, 9002, 2),
+ (9193, 9196, 2),
+ (9200, 9200, 2),
+ (9203, 9203, 2),
+ (9725, 9726, 2),
+ (9748, 9749, 2),
+ (9800, 9811, 2),
+ (9855, 9855, 2),
+ (9875, 9875, 2),
+ (9889, 9889, 2),
+ (9898, 9899, 2),
+ (9917, 9918, 2),
+ (9924, 9925, 2),
+ (9934, 9934, 2),
+ (9940, 9940, 2),
+ (9962, 9962, 2),
+ (9970, 9971, 2),
+ (9973, 9973, 2),
+ (9978, 9978, 2),
+ (9981, 9981, 2),
+ (9989, 9989, 2),
+ (9994, 9995, 2),
+ (10024, 10024, 2),
+ (10060, 10060, 2),
+ (10062, 10062, 2),
+ (10067, 10069, 2),
+ (10071, 10071, 2),
+ (10133, 10135, 2),
+ (10160, 10160, 2),
+ (10175, 10175, 2),
+ (11035, 11036, 2),
+ (11088, 11088, 2),
+ (11093, 11093, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12591, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42654, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43052, 43052, 0),
+ (43136, 43137, 0),
+ (43188, 43205, 0),
+ (43232, 43249, 0),
+ (43263, 43263, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43493, 43493, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43645, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65071, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (66272, 66272, 0),
+ (66422, 66426, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (68325, 68326, 0),
+ (68900, 68903, 0),
+ (69291, 69292, 0),
+ (69373, 69375, 0),
+ (69446, 69456, 0),
+ (69506, 69509, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69744, 69744, 0),
+ (69747, 69748, 0),
+ (69759, 69762, 0),
+ (69808, 69818, 0),
+ (69826, 69826, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (69957, 69958, 0),
+ (70003, 70003, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (70089, 70092, 0),
+ (70094, 70095, 0),
+ (70188, 70199, 0),
+ (70206, 70206, 0),
+ (70209, 70209, 0),
+ (70367, 70378, 0),
+ (70400, 70403, 0),
+ (70459, 70460, 0),
+ (70462, 70468, 0),
+ (70471, 70472, 0),
+ (70475, 70477, 0),
+ (70487, 70487, 0),
+ (70498, 70499, 0),
+ (70502, 70508, 0),
+ (70512, 70516, 0),
+ (70709, 70726, 0),
+ (70750, 70750, 0),
+ (70832, 70851, 0),
+ (71087, 71093, 0),
+ (71096, 71104, 0),
+ (71132, 71133, 0),
+ (71216, 71232, 0),
+ (71339, 71351, 0),
+ (71453, 71467, 0),
+ (71724, 71738, 0),
+ (71984, 71989, 0),
+ (71991, 71992, 0),
+ (71995, 71998, 0),
+ (72000, 72000, 0),
+ (72002, 72003, 0),
+ (72145, 72151, 0),
+ (72154, 72160, 0),
+ (72164, 72164, 0),
+ (72193, 72202, 0),
+ (72243, 72249, 0),
+ (72251, 72254, 0),
+ (72263, 72263, 0),
+ (72273, 72283, 0),
+ (72330, 72345, 0),
+ (72751, 72758, 0),
+ (72760, 72767, 0),
+ (72850, 72871, 0),
+ (72873, 72886, 0),
+ (73009, 73014, 0),
+ (73018, 73018, 0),
+ (73020, 73021, 0),
+ (73023, 73029, 0),
+ (73031, 73031, 0),
+ (73098, 73102, 0),
+ (73104, 73105, 0),
+ (73107, 73111, 0),
+ (73459, 73462, 0),
+ (73472, 73473, 0),
+ (73475, 73475, 0),
+ (73524, 73530, 0),
+ (73534, 73538, 0),
+ (78896, 78912, 0),
+ (78919, 78933, 0),
+ (92912, 92916, 0),
+ (92976, 92982, 0),
+ (94031, 94031, 0),
+ (94033, 94087, 0),
+ (94095, 94098, 0),
+ (94176, 94179, 2),
+ (94180, 94180, 0),
+ (94192, 94193, 0),
+ (94208, 100343, 2),
+ (100352, 101589, 2),
+ (101632, 101640, 2),
+ (110576, 110579, 2),
+ (110581, 110587, 2),
+ (110589, 110590, 2),
+ (110592, 110882, 2),
+ (110898, 110898, 2),
+ (110928, 110930, 2),
+ (110933, 110933, 2),
+ (110948, 110951, 2),
+ (110960, 111355, 2),
+ (113821, 113822, 0),
+ (113824, 113827, 0),
+ (118528, 118573, 0),
+ (118576, 118598, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (121344, 121398, 0),
+ (121403, 121452, 0),
+ (121461, 121461, 0),
+ (121476, 121476, 0),
+ (121499, 121503, 0),
+ (121505, 121519, 0),
+ (122880, 122886, 0),
+ (122888, 122904, 0),
+ (122907, 122913, 0),
+ (122915, 122916, 0),
+ (122918, 122922, 0),
+ (123023, 123023, 0),
+ (123184, 123190, 0),
+ (123566, 123566, 0),
+ (123628, 123631, 0),
+ (124140, 124143, 0),
+ (125136, 125142, 0),
+ (125252, 125258, 0),
+ (126980, 126980, 2),
+ (127183, 127183, 2),
+ (127374, 127374, 2),
+ (127377, 127386, 2),
+ (127488, 127490, 2),
+ (127504, 127547, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (127584, 127589, 2),
+ (127744, 127776, 2),
+ (127789, 127797, 2),
+ (127799, 127868, 2),
+ (127870, 127891, 2),
+ (127904, 127946, 2),
+ (127951, 127955, 2),
+ (127968, 127984, 2),
+ (127988, 127988, 2),
+ (127992, 127994, 2),
+ (127995, 127999, 0),
+ (128000, 128062, 2),
+ (128064, 128064, 2),
+ (128066, 128252, 2),
+ (128255, 128317, 2),
+ (128331, 128334, 2),
+ (128336, 128359, 2),
+ (128378, 128378, 2),
+ (128405, 128406, 2),
+ (128420, 128420, 2),
+ (128507, 128591, 2),
+ (128640, 128709, 2),
+ (128716, 128716, 2),
+ (128720, 128722, 2),
+ (128725, 128727, 2),
+ (128732, 128735, 2),
+ (128747, 128748, 2),
+ (128756, 128764, 2),
+ (128992, 129003, 2),
+ (129008, 129008, 2),
+ (129292, 129338, 2),
+ (129340, 129349, 2),
+ (129351, 129535, 2),
+ (129648, 129660, 2),
+ (129664, 129672, 2),
+ (129680, 129725, 2),
+ (129727, 129733, 2),
+ (129742, 129755, 2),
+ (129760, 129768, 2),
+ (129776, 129784, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode15-1-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode15-1-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..aa9f2c3e3170538c22fda8d0df91d488c232131f
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode15-1-0.py
@@ -0,0 +1,670 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "15.1.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1552, 1562, 0),
+ (1564, 1564, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1756, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2045, 2045, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2200, 2207, 0),
+ (2250, 2273, 0),
+ (2275, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2558, 2558, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2810, 2815, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2901, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3072, 3076, 0),
+ (3132, 3132, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3201, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3315, 3315, 0),
+ (3328, 3331, 0),
+ (3387, 3388, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3457, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3772, 0),
+ (3784, 3790, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5909, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6159, 0),
+ (6277, 6278, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6832, 6862, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7412, 7412, 0),
+ (7415, 7417, 0),
+ (7616, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (8986, 8987, 2),
+ (9001, 9002, 2),
+ (9193, 9196, 2),
+ (9200, 9200, 2),
+ (9203, 9203, 2),
+ (9725, 9726, 2),
+ (9748, 9749, 2),
+ (9800, 9811, 2),
+ (9855, 9855, 2),
+ (9875, 9875, 2),
+ (9889, 9889, 2),
+ (9898, 9899, 2),
+ (9917, 9918, 2),
+ (9924, 9925, 2),
+ (9934, 9934, 2),
+ (9940, 9940, 2),
+ (9962, 9962, 2),
+ (9970, 9971, 2),
+ (9973, 9973, 2),
+ (9978, 9978, 2),
+ (9981, 9981, 2),
+ (9989, 9989, 2),
+ (9994, 9995, 2),
+ (10024, 10024, 2),
+ (10060, 10060, 2),
+ (10062, 10062, 2),
+ (10067, 10069, 2),
+ (10071, 10071, 2),
+ (10133, 10135, 2),
+ (10160, 10160, 2),
+ (10175, 10175, 2),
+ (11035, 11036, 2),
+ (11088, 11088, 2),
+ (11093, 11093, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12591, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12771, 2),
+ (12783, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42654, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43052, 43052, 0),
+ (43136, 43137, 0),
+ (43188, 43205, 0),
+ (43232, 43249, 0),
+ (43263, 43263, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43493, 43493, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43645, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65071, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (66272, 66272, 0),
+ (66422, 66426, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (68325, 68326, 0),
+ (68900, 68903, 0),
+ (69291, 69292, 0),
+ (69373, 69375, 0),
+ (69446, 69456, 0),
+ (69506, 69509, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69744, 69744, 0),
+ (69747, 69748, 0),
+ (69759, 69762, 0),
+ (69808, 69818, 0),
+ (69826, 69826, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (69957, 69958, 0),
+ (70003, 70003, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (70089, 70092, 0),
+ (70094, 70095, 0),
+ (70188, 70199, 0),
+ (70206, 70206, 0),
+ (70209, 70209, 0),
+ (70367, 70378, 0),
+ (70400, 70403, 0),
+ (70459, 70460, 0),
+ (70462, 70468, 0),
+ (70471, 70472, 0),
+ (70475, 70477, 0),
+ (70487, 70487, 0),
+ (70498, 70499, 0),
+ (70502, 70508, 0),
+ (70512, 70516, 0),
+ (70709, 70726, 0),
+ (70750, 70750, 0),
+ (70832, 70851, 0),
+ (71087, 71093, 0),
+ (71096, 71104, 0),
+ (71132, 71133, 0),
+ (71216, 71232, 0),
+ (71339, 71351, 0),
+ (71453, 71467, 0),
+ (71724, 71738, 0),
+ (71984, 71989, 0),
+ (71991, 71992, 0),
+ (71995, 71998, 0),
+ (72000, 72000, 0),
+ (72002, 72003, 0),
+ (72145, 72151, 0),
+ (72154, 72160, 0),
+ (72164, 72164, 0),
+ (72193, 72202, 0),
+ (72243, 72249, 0),
+ (72251, 72254, 0),
+ (72263, 72263, 0),
+ (72273, 72283, 0),
+ (72330, 72345, 0),
+ (72751, 72758, 0),
+ (72760, 72767, 0),
+ (72850, 72871, 0),
+ (72873, 72886, 0),
+ (73009, 73014, 0),
+ (73018, 73018, 0),
+ (73020, 73021, 0),
+ (73023, 73029, 0),
+ (73031, 73031, 0),
+ (73098, 73102, 0),
+ (73104, 73105, 0),
+ (73107, 73111, 0),
+ (73459, 73462, 0),
+ (73472, 73473, 0),
+ (73475, 73475, 0),
+ (73524, 73530, 0),
+ (73534, 73538, 0),
+ (78896, 78912, 0),
+ (78919, 78933, 0),
+ (92912, 92916, 0),
+ (92976, 92982, 0),
+ (94031, 94031, 0),
+ (94033, 94087, 0),
+ (94095, 94098, 0),
+ (94176, 94179, 2),
+ (94180, 94180, 0),
+ (94192, 94193, 0),
+ (94208, 100343, 2),
+ (100352, 101589, 2),
+ (101632, 101640, 2),
+ (110576, 110579, 2),
+ (110581, 110587, 2),
+ (110589, 110590, 2),
+ (110592, 110882, 2),
+ (110898, 110898, 2),
+ (110928, 110930, 2),
+ (110933, 110933, 2),
+ (110948, 110951, 2),
+ (110960, 111355, 2),
+ (113821, 113822, 0),
+ (113824, 113827, 0),
+ (118528, 118573, 0),
+ (118576, 118598, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (121344, 121398, 0),
+ (121403, 121452, 0),
+ (121461, 121461, 0),
+ (121476, 121476, 0),
+ (121499, 121503, 0),
+ (121505, 121519, 0),
+ (122880, 122886, 0),
+ (122888, 122904, 0),
+ (122907, 122913, 0),
+ (122915, 122916, 0),
+ (122918, 122922, 0),
+ (123023, 123023, 0),
+ (123184, 123190, 0),
+ (123566, 123566, 0),
+ (123628, 123631, 0),
+ (124140, 124143, 0),
+ (125136, 125142, 0),
+ (125252, 125258, 0),
+ (126980, 126980, 2),
+ (127183, 127183, 2),
+ (127374, 127374, 2),
+ (127377, 127386, 2),
+ (127488, 127490, 2),
+ (127504, 127547, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (127584, 127589, 2),
+ (127744, 127776, 2),
+ (127789, 127797, 2),
+ (127799, 127868, 2),
+ (127870, 127891, 2),
+ (127904, 127946, 2),
+ (127951, 127955, 2),
+ (127968, 127984, 2),
+ (127988, 127988, 2),
+ (127992, 127994, 2),
+ (127995, 127999, 0),
+ (128000, 128062, 2),
+ (128064, 128064, 2),
+ (128066, 128252, 2),
+ (128255, 128317, 2),
+ (128331, 128334, 2),
+ (128336, 128359, 2),
+ (128378, 128378, 2),
+ (128405, 128406, 2),
+ (128420, 128420, 2),
+ (128507, 128591, 2),
+ (128640, 128709, 2),
+ (128716, 128716, 2),
+ (128720, 128722, 2),
+ (128725, 128727, 2),
+ (128732, 128735, 2),
+ (128747, 128748, 2),
+ (128756, 128764, 2),
+ (128992, 129003, 2),
+ (129008, 129008, 2),
+ (129292, 129338, 2),
+ (129340, 129349, 2),
+ (129351, 129535, 2),
+ (129648, 129660, 2),
+ (129664, 129672, 2),
+ (129680, 129725, 2),
+ (129727, 129733, 2),
+ (129742, 129755, 2),
+ (129760, 129768, 2),
+ (129776, 129784, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode16-0-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode16-0-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..b3fe2359dfc70e6c8e13be5c6e74887ba581338e
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode16-0-0.py
@@ -0,0 +1,683 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "16.0.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1552, 1562, 0),
+ (1564, 1564, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1756, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2045, 2045, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2199, 2207, 0),
+ (2250, 2273, 0),
+ (2275, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2558, 2558, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2810, 2815, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2901, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3072, 3076, 0),
+ (3132, 3132, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3201, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3315, 3315, 0),
+ (3328, 3331, 0),
+ (3387, 3388, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3457, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3772, 0),
+ (3784, 3790, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5909, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6159, 0),
+ (6277, 6278, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6832, 6862, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7412, 7412, 0),
+ (7415, 7417, 0),
+ (7616, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (8986, 8987, 2),
+ (9001, 9002, 2),
+ (9193, 9196, 2),
+ (9200, 9200, 2),
+ (9203, 9203, 2),
+ (9725, 9726, 2),
+ (9748, 9749, 2),
+ (9776, 9783, 2),
+ (9800, 9811, 2),
+ (9855, 9855, 2),
+ (9866, 9871, 2),
+ (9875, 9875, 2),
+ (9889, 9889, 2),
+ (9898, 9899, 2),
+ (9917, 9918, 2),
+ (9924, 9925, 2),
+ (9934, 9934, 2),
+ (9940, 9940, 2),
+ (9962, 9962, 2),
+ (9970, 9971, 2),
+ (9973, 9973, 2),
+ (9978, 9978, 2),
+ (9981, 9981, 2),
+ (9989, 9989, 2),
+ (9994, 9995, 2),
+ (10024, 10024, 2),
+ (10060, 10060, 2),
+ (10062, 10062, 2),
+ (10067, 10069, 2),
+ (10071, 10071, 2),
+ (10133, 10135, 2),
+ (10160, 10160, 2),
+ (10175, 10175, 2),
+ (11035, 11036, 2),
+ (11088, 11088, 2),
+ (11093, 11093, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12591, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12773, 2),
+ (12783, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42654, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43052, 43052, 0),
+ (43136, 43137, 0),
+ (43188, 43205, 0),
+ (43232, 43249, 0),
+ (43263, 43263, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43493, 43493, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43645, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65071, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (66272, 66272, 0),
+ (66422, 66426, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (68325, 68326, 0),
+ (68900, 68903, 0),
+ (68969, 68973, 0),
+ (69291, 69292, 0),
+ (69372, 69375, 0),
+ (69446, 69456, 0),
+ (69506, 69509, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69744, 69744, 0),
+ (69747, 69748, 0),
+ (69759, 69762, 0),
+ (69808, 69818, 0),
+ (69826, 69826, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (69957, 69958, 0),
+ (70003, 70003, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (70089, 70092, 0),
+ (70094, 70095, 0),
+ (70188, 70199, 0),
+ (70206, 70206, 0),
+ (70209, 70209, 0),
+ (70367, 70378, 0),
+ (70400, 70403, 0),
+ (70459, 70460, 0),
+ (70462, 70468, 0),
+ (70471, 70472, 0),
+ (70475, 70477, 0),
+ (70487, 70487, 0),
+ (70498, 70499, 0),
+ (70502, 70508, 0),
+ (70512, 70516, 0),
+ (70584, 70592, 0),
+ (70594, 70594, 0),
+ (70597, 70597, 0),
+ (70599, 70602, 0),
+ (70604, 70608, 0),
+ (70610, 70610, 0),
+ (70625, 70626, 0),
+ (70709, 70726, 0),
+ (70750, 70750, 0),
+ (70832, 70851, 0),
+ (71087, 71093, 0),
+ (71096, 71104, 0),
+ (71132, 71133, 0),
+ (71216, 71232, 0),
+ (71339, 71351, 0),
+ (71453, 71467, 0),
+ (71724, 71738, 0),
+ (71984, 71989, 0),
+ (71991, 71992, 0),
+ (71995, 71998, 0),
+ (72000, 72000, 0),
+ (72002, 72003, 0),
+ (72145, 72151, 0),
+ (72154, 72160, 0),
+ (72164, 72164, 0),
+ (72193, 72202, 0),
+ (72243, 72249, 0),
+ (72251, 72254, 0),
+ (72263, 72263, 0),
+ (72273, 72283, 0),
+ (72330, 72345, 0),
+ (72751, 72758, 0),
+ (72760, 72767, 0),
+ (72850, 72871, 0),
+ (72873, 72886, 0),
+ (73009, 73014, 0),
+ (73018, 73018, 0),
+ (73020, 73021, 0),
+ (73023, 73029, 0),
+ (73031, 73031, 0),
+ (73098, 73102, 0),
+ (73104, 73105, 0),
+ (73107, 73111, 0),
+ (73459, 73462, 0),
+ (73472, 73473, 0),
+ (73475, 73475, 0),
+ (73524, 73530, 0),
+ (73534, 73538, 0),
+ (73562, 73562, 0),
+ (78896, 78912, 0),
+ (78919, 78933, 0),
+ (90398, 90415, 0),
+ (92912, 92916, 0),
+ (92976, 92982, 0),
+ (94031, 94031, 0),
+ (94033, 94087, 0),
+ (94095, 94098, 0),
+ (94176, 94179, 2),
+ (94180, 94180, 0),
+ (94192, 94193, 0),
+ (94208, 100343, 2),
+ (100352, 101589, 2),
+ (101631, 101640, 2),
+ (110576, 110579, 2),
+ (110581, 110587, 2),
+ (110589, 110590, 2),
+ (110592, 110882, 2),
+ (110898, 110898, 2),
+ (110928, 110930, 2),
+ (110933, 110933, 2),
+ (110948, 110951, 2),
+ (110960, 111355, 2),
+ (113821, 113822, 0),
+ (113824, 113827, 0),
+ (118528, 118573, 0),
+ (118576, 118598, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (119552, 119638, 2),
+ (119648, 119670, 2),
+ (121344, 121398, 0),
+ (121403, 121452, 0),
+ (121461, 121461, 0),
+ (121476, 121476, 0),
+ (121499, 121503, 0),
+ (121505, 121519, 0),
+ (122880, 122886, 0),
+ (122888, 122904, 0),
+ (122907, 122913, 0),
+ (122915, 122916, 0),
+ (122918, 122922, 0),
+ (123023, 123023, 0),
+ (123184, 123190, 0),
+ (123566, 123566, 0),
+ (123628, 123631, 0),
+ (124140, 124143, 0),
+ (124398, 124399, 0),
+ (125136, 125142, 0),
+ (125252, 125258, 0),
+ (126980, 126980, 2),
+ (127183, 127183, 2),
+ (127374, 127374, 2),
+ (127377, 127386, 2),
+ (127488, 127490, 2),
+ (127504, 127547, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (127584, 127589, 2),
+ (127744, 127776, 2),
+ (127789, 127797, 2),
+ (127799, 127868, 2),
+ (127870, 127891, 2),
+ (127904, 127946, 2),
+ (127951, 127955, 2),
+ (127968, 127984, 2),
+ (127988, 127988, 2),
+ (127992, 127994, 2),
+ (127995, 127999, 0),
+ (128000, 128062, 2),
+ (128064, 128064, 2),
+ (128066, 128252, 2),
+ (128255, 128317, 2),
+ (128331, 128334, 2),
+ (128336, 128359, 2),
+ (128378, 128378, 2),
+ (128405, 128406, 2),
+ (128420, 128420, 2),
+ (128507, 128591, 2),
+ (128640, 128709, 2),
+ (128716, 128716, 2),
+ (128720, 128722, 2),
+ (128725, 128727, 2),
+ (128732, 128735, 2),
+ (128747, 128748, 2),
+ (128756, 128764, 2),
+ (128992, 129003, 2),
+ (129008, 129008, 2),
+ (129292, 129338, 2),
+ (129340, 129349, 2),
+ (129351, 129535, 2),
+ (129648, 129660, 2),
+ (129664, 129673, 2),
+ (129679, 129734, 2),
+ (129742, 129756, 2),
+ (129759, 129769, 2),
+ (129776, 129784, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode17-0-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode17-0-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..4108bb44de77d023d5b9dadf3601ad1141f7aeae
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode17-0-0.py
@@ -0,0 +1,691 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "17.0.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1552, 1562, 0),
+ (1564, 1564, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1756, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2045, 2045, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2199, 2207, 0),
+ (2250, 2273, 0),
+ (2275, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2558, 2558, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2810, 2815, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2901, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3072, 3076, 0),
+ (3132, 3132, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3201, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3315, 3315, 0),
+ (3328, 3331, 0),
+ (3387, 3388, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3457, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3772, 0),
+ (3784, 3790, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5909, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6159, 0),
+ (6277, 6278, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6832, 6877, 0),
+ (6880, 6891, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7412, 7412, 0),
+ (7415, 7417, 0),
+ (7616, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (8986, 8987, 2),
+ (9001, 9002, 2),
+ (9193, 9196, 2),
+ (9200, 9200, 2),
+ (9203, 9203, 2),
+ (9725, 9726, 2),
+ (9748, 9749, 2),
+ (9776, 9783, 2),
+ (9800, 9811, 2),
+ (9855, 9855, 2),
+ (9866, 9871, 2),
+ (9875, 9875, 2),
+ (9889, 9889, 2),
+ (9898, 9899, 2),
+ (9917, 9918, 2),
+ (9924, 9925, 2),
+ (9934, 9934, 2),
+ (9940, 9940, 2),
+ (9962, 9962, 2),
+ (9970, 9971, 2),
+ (9973, 9973, 2),
+ (9978, 9978, 2),
+ (9981, 9981, 2),
+ (9989, 9989, 2),
+ (9994, 9995, 2),
+ (10024, 10024, 2),
+ (10060, 10060, 2),
+ (10062, 10062, 2),
+ (10067, 10069, 2),
+ (10071, 10071, 2),
+ (10133, 10135, 2),
+ (10160, 10160, 2),
+ (10175, 10175, 2),
+ (11035, 11036, 2),
+ (11088, 11088, 2),
+ (11093, 11093, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12591, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12773, 2),
+ (12783, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42654, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43052, 43052, 0),
+ (43136, 43137, 0),
+ (43188, 43205, 0),
+ (43232, 43249, 0),
+ (43263, 43263, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43493, 43493, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43645, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65071, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (66272, 66272, 0),
+ (66422, 66426, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (68325, 68326, 0),
+ (68900, 68903, 0),
+ (68969, 68973, 0),
+ (69291, 69292, 0),
+ (69370, 69375, 0),
+ (69446, 69456, 0),
+ (69506, 69509, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69744, 69744, 0),
+ (69747, 69748, 0),
+ (69759, 69762, 0),
+ (69808, 69818, 0),
+ (69826, 69826, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (69957, 69958, 0),
+ (70003, 70003, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (70089, 70092, 0),
+ (70094, 70095, 0),
+ (70188, 70199, 0),
+ (70206, 70206, 0),
+ (70209, 70209, 0),
+ (70367, 70378, 0),
+ (70400, 70403, 0),
+ (70459, 70460, 0),
+ (70462, 70468, 0),
+ (70471, 70472, 0),
+ (70475, 70477, 0),
+ (70487, 70487, 0),
+ (70498, 70499, 0),
+ (70502, 70508, 0),
+ (70512, 70516, 0),
+ (70584, 70592, 0),
+ (70594, 70594, 0),
+ (70597, 70597, 0),
+ (70599, 70602, 0),
+ (70604, 70608, 0),
+ (70610, 70610, 0),
+ (70625, 70626, 0),
+ (70709, 70726, 0),
+ (70750, 70750, 0),
+ (70832, 70851, 0),
+ (71087, 71093, 0),
+ (71096, 71104, 0),
+ (71132, 71133, 0),
+ (71216, 71232, 0),
+ (71339, 71351, 0),
+ (71453, 71467, 0),
+ (71724, 71738, 0),
+ (71984, 71989, 0),
+ (71991, 71992, 0),
+ (71995, 71998, 0),
+ (72000, 72000, 0),
+ (72002, 72003, 0),
+ (72145, 72151, 0),
+ (72154, 72160, 0),
+ (72164, 72164, 0),
+ (72193, 72202, 0),
+ (72243, 72249, 0),
+ (72251, 72254, 0),
+ (72263, 72263, 0),
+ (72273, 72283, 0),
+ (72330, 72345, 0),
+ (72544, 72551, 0),
+ (72751, 72758, 0),
+ (72760, 72767, 0),
+ (72850, 72871, 0),
+ (72873, 72886, 0),
+ (73009, 73014, 0),
+ (73018, 73018, 0),
+ (73020, 73021, 0),
+ (73023, 73029, 0),
+ (73031, 73031, 0),
+ (73098, 73102, 0),
+ (73104, 73105, 0),
+ (73107, 73111, 0),
+ (73459, 73462, 0),
+ (73472, 73473, 0),
+ (73475, 73475, 0),
+ (73524, 73530, 0),
+ (73534, 73538, 0),
+ (73562, 73562, 0),
+ (78896, 78912, 0),
+ (78919, 78933, 0),
+ (90398, 90415, 0),
+ (92912, 92916, 0),
+ (92976, 92982, 0),
+ (94031, 94031, 0),
+ (94033, 94087, 0),
+ (94095, 94098, 0),
+ (94176, 94179, 2),
+ (94180, 94180, 0),
+ (94192, 94193, 0),
+ (94194, 94198, 2),
+ (94208, 101589, 2),
+ (101631, 101662, 2),
+ (101760, 101874, 2),
+ (110576, 110579, 2),
+ (110581, 110587, 2),
+ (110589, 110590, 2),
+ (110592, 110882, 2),
+ (110898, 110898, 2),
+ (110928, 110930, 2),
+ (110933, 110933, 2),
+ (110948, 110951, 2),
+ (110960, 111355, 2),
+ (113821, 113822, 0),
+ (113824, 113827, 0),
+ (118528, 118573, 0),
+ (118576, 118598, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (119552, 119638, 2),
+ (119648, 119670, 2),
+ (121344, 121398, 0),
+ (121403, 121452, 0),
+ (121461, 121461, 0),
+ (121476, 121476, 0),
+ (121499, 121503, 0),
+ (121505, 121519, 0),
+ (122880, 122886, 0),
+ (122888, 122904, 0),
+ (122907, 122913, 0),
+ (122915, 122916, 0),
+ (122918, 122922, 0),
+ (123023, 123023, 0),
+ (123184, 123190, 0),
+ (123566, 123566, 0),
+ (123628, 123631, 0),
+ (124140, 124143, 0),
+ (124398, 124399, 0),
+ (124643, 124643, 0),
+ (124646, 124646, 0),
+ (124654, 124655, 0),
+ (124661, 124661, 0),
+ (125136, 125142, 0),
+ (125252, 125258, 0),
+ (126980, 126980, 2),
+ (127183, 127183, 2),
+ (127374, 127374, 2),
+ (127377, 127386, 2),
+ (127488, 127490, 2),
+ (127504, 127547, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (127584, 127589, 2),
+ (127744, 127776, 2),
+ (127789, 127797, 2),
+ (127799, 127868, 2),
+ (127870, 127891, 2),
+ (127904, 127946, 2),
+ (127951, 127955, 2),
+ (127968, 127984, 2),
+ (127988, 127988, 2),
+ (127992, 127994, 2),
+ (127995, 127999, 0),
+ (128000, 128062, 2),
+ (128064, 128064, 2),
+ (128066, 128252, 2),
+ (128255, 128317, 2),
+ (128331, 128334, 2),
+ (128336, 128359, 2),
+ (128378, 128378, 2),
+ (128405, 128406, 2),
+ (128420, 128420, 2),
+ (128507, 128591, 2),
+ (128640, 128709, 2),
+ (128716, 128716, 2),
+ (128720, 128722, 2),
+ (128725, 128728, 2),
+ (128732, 128735, 2),
+ (128747, 128748, 2),
+ (128756, 128764, 2),
+ (128992, 129003, 2),
+ (129008, 129008, 2),
+ (129292, 129338, 2),
+ (129340, 129349, 2),
+ (129351, 129535, 2),
+ (129648, 129660, 2),
+ (129664, 129674, 2),
+ (129678, 129734, 2),
+ (129736, 129736, 2),
+ (129741, 129756, 2),
+ (129759, 129770, 2),
+ (129775, 129784, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode4-1-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode4-1-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..23ff5cf1d0cccdc6fe6503c410e900c4d83eb49a
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode4-1-0.py
@@ -0,0 +1,425 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "4.1.0",
+ [
+ (0, 8, 0),
+ (14, 31, 0),
+ (127, 132, 0),
+ (134, 159, 0),
+ (768, 879, 0),
+ (1155, 1158, 0),
+ (1160, 1161, 0),
+ (1425, 1465, 0),
+ (1467, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1536, 1539, 0),
+ (1552, 1557, 0),
+ (1611, 1630, 0),
+ (1648, 1648, 0),
+ (1750, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1807, 1807, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2305, 2307, 0),
+ (2364, 2364, 0),
+ (2366, 2381, 0),
+ (2385, 2388, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2672, 2673, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2883, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3073, 3075, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3202, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3330, 3331, 0),
+ (3390, 3395, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3769, 0),
+ (3771, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3984, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4140, 4146, 0),
+ (4150, 4153, 0),
+ (4182, 4185, 0),
+ (4352, 4441, 2),
+ (4447, 4447, 2),
+ (4448, 4607, 0),
+ (4959, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6157, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6576, 6592, 0),
+ (6600, 6601, 0),
+ (6679, 6683, 0),
+ (7616, 7619, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8427, 0),
+ (9001, 9002, 2),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12588, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12727, 2),
+ (12736, 12751, 2),
+ (12784, 12830, 2),
+ (12832, 12867, 2),
+ (12880, 13054, 2),
+ (13056, 19893, 2),
+ (19968, 40891, 2),
+ (40960, 42124, 2),
+ (42128, 42182, 2),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (44032, 55203, 2),
+ (55216, 57343, 0),
+ (63744, 64045, 2),
+ (64048, 64106, 2),
+ (64112, 64217, 2),
+ (64286, 64286, 0),
+ (64976, 65007, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65059, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (65534, 65535, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (131070, 131071, 0),
+ (131072, 196605, 2),
+ (196606, 196607, 0),
+ (196608, 262141, 2),
+ (262142, 262143, 0),
+ (327678, 327679, 0),
+ (393214, 393215, 0),
+ (458750, 458751, 0),
+ (524286, 524287, 0),
+ (589822, 589823, 0),
+ (655358, 655359, 0),
+ (720894, 720895, 0),
+ (786430, 786431, 0),
+ (851966, 851967, 0),
+ (917502, 921599, 0),
+ (983038, 983039, 0),
+ (1048574, 1048575, 0),
+ (1114110, 1114111, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode5-0-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode5-0-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..599fb785709d40ca23eee7e8e9cbededc8ad389b
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode5-0-0.py
@@ -0,0 +1,430 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "5.0.0",
+ [
+ (0, 8, 0),
+ (14, 31, 0),
+ (127, 132, 0),
+ (134, 159, 0),
+ (768, 879, 0),
+ (1155, 1158, 0),
+ (1160, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1536, 1539, 0),
+ (1552, 1557, 0),
+ (1611, 1630, 0),
+ (1648, 1648, 0),
+ (1750, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1807, 1807, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2305, 2307, 0),
+ (2364, 2364, 0),
+ (2366, 2381, 0),
+ (2385, 2388, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2672, 2673, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2883, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3073, 3075, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3202, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3330, 3331, 0),
+ (3390, 3395, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3769, 0),
+ (3771, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3984, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4140, 4146, 0),
+ (4150, 4153, 0),
+ (4182, 4185, 0),
+ (4352, 4441, 2),
+ (4447, 4447, 2),
+ (4448, 4607, 0),
+ (4959, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6157, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6576, 6592, 0),
+ (6600, 6601, 0),
+ (6679, 6683, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7616, 7626, 0),
+ (7678, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8431, 0),
+ (9001, 9002, 2),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12588, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12727, 2),
+ (12736, 12751, 2),
+ (12784, 12830, 2),
+ (12832, 12867, 2),
+ (12880, 13054, 2),
+ (13056, 19893, 2),
+ (19968, 40891, 2),
+ (40960, 42124, 2),
+ (42128, 42182, 2),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (44032, 55203, 2),
+ (55216, 57343, 0),
+ (63744, 64045, 2),
+ (64048, 64106, 2),
+ (64112, 64217, 2),
+ (64286, 64286, 0),
+ (64976, 65007, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65059, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (65534, 65535, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (131070, 131071, 0),
+ (131072, 196605, 2),
+ (196606, 196607, 0),
+ (196608, 262141, 2),
+ (262142, 262143, 0),
+ (327678, 327679, 0),
+ (393214, 393215, 0),
+ (458750, 458751, 0),
+ (524286, 524287, 0),
+ (589822, 589823, 0),
+ (655358, 655359, 0),
+ (720894, 720895, 0),
+ (786430, 786431, 0),
+ (851966, 851967, 0),
+ (917502, 921599, 0),
+ (983038, 983039, 0),
+ (1048574, 1048575, 0),
+ (1114110, 1114111, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode5-1-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode5-1-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..016e7825eccd6b87410741db79948bb0b99ea921
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode5-1-0.py
@@ -0,0 +1,433 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "5.1.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1536, 1539, 0),
+ (1552, 1562, 0),
+ (1611, 1630, 0),
+ (1648, 1648, 0),
+ (1750, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1807, 1807, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2305, 2307, 0),
+ (2364, 2364, 0),
+ (2366, 2381, 0),
+ (2385, 2388, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3073, 3075, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3202, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3330, 3331, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3769, 0),
+ (3771, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3984, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4352, 4441, 2),
+ (4447, 4447, 2),
+ (4448, 4607, 0),
+ (4959, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6157, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6576, 6592, 0),
+ (6600, 6601, 0),
+ (6679, 6683, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7082, 0),
+ (7204, 7223, 0),
+ (7616, 7654, 0),
+ (7678, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (9001, 9002, 2),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12589, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12727, 2),
+ (12736, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12867, 2),
+ (12880, 13054, 2),
+ (13056, 19893, 2),
+ (19968, 40899, 2),
+ (40960, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42620, 42621, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43136, 43137, 0),
+ (43188, 43204, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64045, 2),
+ (64048, 64106, 2),
+ (64112, 64217, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65062, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode5-2-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode5-2-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..e984f12e95eed5eb67cedad1d3b92f5f23c718ed
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode5-2-0.py
@@ -0,0 +1,461 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "5.2.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1536, 1539, 0),
+ (1552, 1562, 0),
+ (1611, 1630, 0),
+ (1648, 1648, 0),
+ (1750, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1807, 1807, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2304, 2307, 0),
+ (2364, 2364, 0),
+ (2366, 2382, 0),
+ (2385, 2389, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3073, 3075, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3202, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3330, 3331, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3769, 0),
+ (3771, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3984, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4959, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6157, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6576, 6592, 0),
+ (6600, 6601, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7082, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7410, 7410, 0),
+ (7616, 7654, 0),
+ (7677, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (9001, 9002, 2),
+ (11503, 11505, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12589, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12727, 2),
+ (12736, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 13054, 2),
+ (13056, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42620, 42621, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43136, 43137, 0),
+ (43188, 43204, 0),
+ (43232, 43249, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43643, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65062, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (69760, 69762, 0),
+ (69808, 69818, 0),
+ (69821, 69821, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (127488, 127488, 2),
+ (127504, 127537, 2),
+ (127552, 127560, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode6-0-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode6-0-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..8d5abb455c390f585f67ed844e3fa18510d92a28
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode6-0-0.py
@@ -0,0 +1,469 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "6.0.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1536, 1539, 0),
+ (1552, 1562, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1757, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1807, 1807, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2304, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3073, 3075, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3202, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3330, 3331, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3769, 0),
+ (3771, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6157, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6576, 6592, 0),
+ (6600, 6601, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7082, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7410, 7410, 0),
+ (7616, 7654, 0),
+ (7676, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (9001, 9002, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12589, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12730, 2),
+ (12736, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 13054, 2),
+ (13056, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42620, 42621, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43136, 43137, 0),
+ (43188, 43204, 0),
+ (43232, 43249, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43643, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65062, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69760, 69762, 0),
+ (69808, 69818, 0),
+ (69821, 69821, 0),
+ (110592, 110593, 2),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (127488, 127490, 2),
+ (127504, 127546, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode6-1-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode6-1-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..29d3e9298806c875b8969195a1cb6a39c9918cb9
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode6-1-0.py
@@ -0,0 +1,480 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "6.1.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1536, 1540, 0),
+ (1552, 1562, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1757, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1807, 1807, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2276, 2302, 0),
+ (2304, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3073, 3075, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3202, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3330, 3331, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3769, 0),
+ (3771, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6157, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6576, 6592, 0),
+ (6600, 6601, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7410, 7412, 0),
+ (7616, 7654, 0),
+ (7676, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (9001, 9002, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12589, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12730, 2),
+ (12736, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 13054, 2),
+ (13056, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42655, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43136, 43137, 0),
+ (43188, 43204, 0),
+ (43232, 43249, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43643, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65062, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69760, 69762, 0),
+ (69808, 69818, 0),
+ (69821, 69821, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (71339, 71351, 0),
+ (94033, 94078, 0),
+ (94095, 94098, 0),
+ (110592, 110593, 2),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (127488, 127490, 2),
+ (127504, 127546, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode6-2-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode6-2-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..d0cda351a493664500d0179ab6dac7b2f978c69d
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode6-2-0.py
@@ -0,0 +1,480 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "6.2.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1536, 1540, 0),
+ (1552, 1562, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1757, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1807, 1807, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2276, 2302, 0),
+ (2304, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3073, 3075, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3202, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3330, 3331, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3769, 0),
+ (3771, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6157, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6576, 6592, 0),
+ (6600, 6601, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7410, 7412, 0),
+ (7616, 7654, 0),
+ (7676, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (9001, 9002, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12589, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12730, 2),
+ (12736, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 13054, 2),
+ (13056, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42655, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43136, 43137, 0),
+ (43188, 43204, 0),
+ (43232, 43249, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43643, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65062, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69760, 69762, 0),
+ (69808, 69818, 0),
+ (69821, 69821, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (71339, 71351, 0),
+ (94033, 94078, 0),
+ (94095, 94098, 0),
+ (110592, 110593, 2),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (127488, 127490, 2),
+ (127504, 127546, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode6-3-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode6-3-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..cffb7ee942eb8f175e182d0105c4e356ad8519fb
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode6-3-0.py
@@ -0,0 +1,481 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "6.3.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1536, 1540, 0),
+ (1552, 1562, 0),
+ (1564, 1564, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1757, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1807, 1807, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2276, 2302, 0),
+ (2304, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3073, 3075, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3202, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3330, 3331, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3769, 0),
+ (3771, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6158, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6576, 6592, 0),
+ (6600, 6601, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7410, 7412, 0),
+ (7616, 7654, 0),
+ (7676, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (9001, 9002, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12589, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12730, 2),
+ (12736, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 13054, 2),
+ (13056, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42655, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43136, 43137, 0),
+ (43188, 43204, 0),
+ (43232, 43249, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43643, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65062, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69760, 69762, 0),
+ (69808, 69818, 0),
+ (69821, 69821, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (71339, 71351, 0),
+ (94033, 94078, 0),
+ (94095, 94098, 0),
+ (110592, 110593, 2),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (127488, 127490, 2),
+ (127504, 127546, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode7-0-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode7-0-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..996478ac24a54b844beb0d209fe43db9a7a2a014
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode7-0-0.py
@@ -0,0 +1,507 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "7.0.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1536, 1541, 0),
+ (1552, 1562, 0),
+ (1564, 1564, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1757, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1807, 1807, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2276, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3072, 3075, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3201, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3329, 3331, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3769, 0),
+ (3771, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6158, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6576, 6592, 0),
+ (6600, 6601, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6832, 6846, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7410, 7412, 0),
+ (7416, 7417, 0),
+ (7616, 7669, 0),
+ (7676, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (9001, 9002, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12589, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12730, 2),
+ (12736, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 13054, 2),
+ (13056, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42655, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43136, 43137, 0),
+ (43188, 43204, 0),
+ (43232, 43249, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43493, 43493, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43645, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65069, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (66272, 66272, 0),
+ (66422, 66426, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (68325, 68326, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69759, 69762, 0),
+ (69808, 69818, 0),
+ (69821, 69821, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (70003, 70003, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (70188, 70199, 0),
+ (70367, 70378, 0),
+ (70401, 70403, 0),
+ (70460, 70460, 0),
+ (70462, 70468, 0),
+ (70471, 70472, 0),
+ (70475, 70477, 0),
+ (70487, 70487, 0),
+ (70498, 70499, 0),
+ (70502, 70508, 0),
+ (70512, 70516, 0),
+ (70832, 70851, 0),
+ (71087, 71093, 0),
+ (71096, 71104, 0),
+ (71216, 71232, 0),
+ (71339, 71351, 0),
+ (92912, 92916, 0),
+ (92976, 92982, 0),
+ (94033, 94078, 0),
+ (94095, 94098, 0),
+ (110592, 110593, 2),
+ (113821, 113822, 0),
+ (113824, 113827, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (125136, 125142, 0),
+ (127488, 127490, 2),
+ (127504, 127546, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode8-0-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode8-0-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..ae34a382a6a8b486c5fc2d4c6491cd6c3ab56d77
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode8-0-0.py
@@ -0,0 +1,515 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "8.0.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1536, 1541, 0),
+ (1552, 1562, 0),
+ (1564, 1564, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1757, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1807, 1807, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2275, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3072, 3075, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3201, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3329, 3331, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3769, 0),
+ (3771, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6158, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6832, 6846, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7410, 7412, 0),
+ (7416, 7417, 0),
+ (7616, 7669, 0),
+ (7676, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (9001, 9002, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12589, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12730, 2),
+ (12736, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 13054, 2),
+ (13056, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42654, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43136, 43137, 0),
+ (43188, 43204, 0),
+ (43232, 43249, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43493, 43493, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43645, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65071, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (66272, 66272, 0),
+ (66422, 66426, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (68325, 68326, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69759, 69762, 0),
+ (69808, 69818, 0),
+ (69821, 69821, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (70003, 70003, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (70090, 70092, 0),
+ (70188, 70199, 0),
+ (70367, 70378, 0),
+ (70400, 70403, 0),
+ (70460, 70460, 0),
+ (70462, 70468, 0),
+ (70471, 70472, 0),
+ (70475, 70477, 0),
+ (70487, 70487, 0),
+ (70498, 70499, 0),
+ (70502, 70508, 0),
+ (70512, 70516, 0),
+ (70832, 70851, 0),
+ (71087, 71093, 0),
+ (71096, 71104, 0),
+ (71132, 71133, 0),
+ (71216, 71232, 0),
+ (71339, 71351, 0),
+ (71453, 71467, 0),
+ (92912, 92916, 0),
+ (92976, 92982, 0),
+ (94033, 94078, 0),
+ (94095, 94098, 0),
+ (110592, 110593, 2),
+ (113821, 113822, 0),
+ (113824, 113827, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (121344, 121398, 0),
+ (121403, 121452, 0),
+ (121461, 121461, 0),
+ (121476, 121476, 0),
+ (121499, 121503, 0),
+ (121505, 121519, 0),
+ (125136, 125142, 0),
+ (127488, 127490, 2),
+ (127504, 127546, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (127995, 127999, 0),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode9-0-0.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode9-0-0.py
new file mode 100644
index 0000000000000000000000000000000000000000..b15f67d44eb15e2388aa52089922eaf77916d578
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_unicode_data/unicode9-0-0.py
@@ -0,0 +1,598 @@
+# Auto generated by tools/make_width_tables.py
+# Data from wcwidth project (https://github.com/jquast/wcwidth)
+
+from rich.cells import CellTable
+
+cell_table = CellTable(
+ "9.0.0",
+ [
+ (0, 0, 0),
+ (768, 879, 0),
+ (1155, 1161, 0),
+ (1425, 1469, 0),
+ (1471, 1471, 0),
+ (1473, 1474, 0),
+ (1476, 1477, 0),
+ (1479, 1479, 0),
+ (1552, 1562, 0),
+ (1564, 1564, 0),
+ (1611, 1631, 0),
+ (1648, 1648, 0),
+ (1750, 1756, 0),
+ (1759, 1764, 0),
+ (1767, 1768, 0),
+ (1770, 1773, 0),
+ (1809, 1809, 0),
+ (1840, 1866, 0),
+ (1958, 1968, 0),
+ (2027, 2035, 0),
+ (2070, 2073, 0),
+ (2075, 2083, 0),
+ (2085, 2087, 0),
+ (2089, 2093, 0),
+ (2137, 2139, 0),
+ (2260, 2273, 0),
+ (2275, 2307, 0),
+ (2362, 2364, 0),
+ (2366, 2383, 0),
+ (2385, 2391, 0),
+ (2402, 2403, 0),
+ (2433, 2435, 0),
+ (2492, 2492, 0),
+ (2494, 2500, 0),
+ (2503, 2504, 0),
+ (2507, 2509, 0),
+ (2519, 2519, 0),
+ (2530, 2531, 0),
+ (2561, 2563, 0),
+ (2620, 2620, 0),
+ (2622, 2626, 0),
+ (2631, 2632, 0),
+ (2635, 2637, 0),
+ (2641, 2641, 0),
+ (2672, 2673, 0),
+ (2677, 2677, 0),
+ (2689, 2691, 0),
+ (2748, 2748, 0),
+ (2750, 2757, 0),
+ (2759, 2761, 0),
+ (2763, 2765, 0),
+ (2786, 2787, 0),
+ (2817, 2819, 0),
+ (2876, 2876, 0),
+ (2878, 2884, 0),
+ (2887, 2888, 0),
+ (2891, 2893, 0),
+ (2902, 2903, 0),
+ (2914, 2915, 0),
+ (2946, 2946, 0),
+ (3006, 3010, 0),
+ (3014, 3016, 0),
+ (3018, 3021, 0),
+ (3031, 3031, 0),
+ (3072, 3075, 0),
+ (3134, 3140, 0),
+ (3142, 3144, 0),
+ (3146, 3149, 0),
+ (3157, 3158, 0),
+ (3170, 3171, 0),
+ (3201, 3203, 0),
+ (3260, 3260, 0),
+ (3262, 3268, 0),
+ (3270, 3272, 0),
+ (3274, 3277, 0),
+ (3285, 3286, 0),
+ (3298, 3299, 0),
+ (3329, 3331, 0),
+ (3390, 3396, 0),
+ (3398, 3400, 0),
+ (3402, 3405, 0),
+ (3415, 3415, 0),
+ (3426, 3427, 0),
+ (3458, 3459, 0),
+ (3530, 3530, 0),
+ (3535, 3540, 0),
+ (3542, 3542, 0),
+ (3544, 3551, 0),
+ (3570, 3571, 0),
+ (3633, 3633, 0),
+ (3636, 3642, 0),
+ (3655, 3662, 0),
+ (3761, 3761, 0),
+ (3764, 3769, 0),
+ (3771, 3772, 0),
+ (3784, 3789, 0),
+ (3864, 3865, 0),
+ (3893, 3893, 0),
+ (3895, 3895, 0),
+ (3897, 3897, 0),
+ (3902, 3903, 0),
+ (3953, 3972, 0),
+ (3974, 3975, 0),
+ (3981, 3991, 0),
+ (3993, 4028, 0),
+ (4038, 4038, 0),
+ (4139, 4158, 0),
+ (4182, 4185, 0),
+ (4190, 4192, 0),
+ (4194, 4196, 0),
+ (4199, 4205, 0),
+ (4209, 4212, 0),
+ (4226, 4237, 0),
+ (4239, 4239, 0),
+ (4250, 4253, 0),
+ (4352, 4447, 2),
+ (4448, 4607, 0),
+ (4957, 4959, 0),
+ (5906, 5908, 0),
+ (5938, 5940, 0),
+ (5970, 5971, 0),
+ (6002, 6003, 0),
+ (6068, 6099, 0),
+ (6109, 6109, 0),
+ (6155, 6158, 0),
+ (6277, 6278, 0),
+ (6313, 6313, 0),
+ (6432, 6443, 0),
+ (6448, 6459, 0),
+ (6679, 6683, 0),
+ (6741, 6750, 0),
+ (6752, 6780, 0),
+ (6783, 6783, 0),
+ (6832, 6846, 0),
+ (6912, 6916, 0),
+ (6964, 6980, 0),
+ (7019, 7027, 0),
+ (7040, 7042, 0),
+ (7073, 7085, 0),
+ (7142, 7155, 0),
+ (7204, 7223, 0),
+ (7376, 7378, 0),
+ (7380, 7400, 0),
+ (7405, 7405, 0),
+ (7410, 7412, 0),
+ (7416, 7417, 0),
+ (7616, 7669, 0),
+ (7675, 7679, 0),
+ (8203, 8207, 0),
+ (8232, 8238, 0),
+ (8288, 8303, 0),
+ (8400, 8432, 0),
+ (8986, 8987, 2),
+ (9001, 9002, 2),
+ (9193, 9196, 2),
+ (9200, 9200, 2),
+ (9203, 9203, 2),
+ (9725, 9726, 2),
+ (9748, 9749, 2),
+ (9800, 9811, 2),
+ (9855, 9855, 2),
+ (9875, 9875, 2),
+ (9889, 9889, 2),
+ (9898, 9899, 2),
+ (9917, 9918, 2),
+ (9924, 9925, 2),
+ (9934, 9934, 2),
+ (9940, 9940, 2),
+ (9962, 9962, 2),
+ (9970, 9971, 2),
+ (9973, 9973, 2),
+ (9978, 9978, 2),
+ (9981, 9981, 2),
+ (9989, 9989, 2),
+ (9994, 9995, 2),
+ (10024, 10024, 2),
+ (10060, 10060, 2),
+ (10062, 10062, 2),
+ (10067, 10069, 2),
+ (10071, 10071, 2),
+ (10133, 10135, 2),
+ (10160, 10160, 2),
+ (10175, 10175, 2),
+ (11035, 11036, 2),
+ (11088, 11088, 2),
+ (11093, 11093, 2),
+ (11503, 11505, 0),
+ (11647, 11647, 0),
+ (11744, 11775, 0),
+ (11904, 11929, 2),
+ (11931, 12019, 2),
+ (12032, 12245, 2),
+ (12272, 12283, 2),
+ (12288, 12329, 2),
+ (12330, 12335, 0),
+ (12336, 12350, 2),
+ (12353, 12438, 2),
+ (12441, 12442, 0),
+ (12443, 12543, 2),
+ (12549, 12589, 2),
+ (12593, 12643, 2),
+ (12644, 12644, 0),
+ (12645, 12686, 2),
+ (12688, 12730, 2),
+ (12736, 12771, 2),
+ (12784, 12830, 2),
+ (12832, 12871, 2),
+ (12880, 13054, 2),
+ (13056, 19903, 2),
+ (19968, 42124, 2),
+ (42128, 42182, 2),
+ (42607, 42610, 0),
+ (42612, 42621, 0),
+ (42654, 42655, 0),
+ (42736, 42737, 0),
+ (43010, 43010, 0),
+ (43014, 43014, 0),
+ (43019, 43019, 0),
+ (43043, 43047, 0),
+ (43136, 43137, 0),
+ (43188, 43205, 0),
+ (43232, 43249, 0),
+ (43302, 43309, 0),
+ (43335, 43347, 0),
+ (43360, 43388, 2),
+ (43392, 43395, 0),
+ (43443, 43456, 0),
+ (43493, 43493, 0),
+ (43561, 43574, 0),
+ (43587, 43587, 0),
+ (43596, 43597, 0),
+ (43643, 43645, 0),
+ (43696, 43696, 0),
+ (43698, 43700, 0),
+ (43703, 43704, 0),
+ (43710, 43711, 0),
+ (43713, 43713, 0),
+ (43755, 43759, 0),
+ (43765, 43766, 0),
+ (44003, 44010, 0),
+ (44012, 44013, 0),
+ (44032, 55203, 2),
+ (55216, 55295, 0),
+ (63744, 64255, 2),
+ (64286, 64286, 0),
+ (65024, 65039, 0),
+ (65040, 65049, 2),
+ (65056, 65071, 0),
+ (65072, 65106, 2),
+ (65108, 65126, 2),
+ (65128, 65131, 2),
+ (65279, 65279, 0),
+ (65281, 65376, 2),
+ (65440, 65440, 0),
+ (65504, 65510, 2),
+ (65520, 65531, 0),
+ (66045, 66045, 0),
+ (66272, 66272, 0),
+ (66422, 66426, 0),
+ (68097, 68099, 0),
+ (68101, 68102, 0),
+ (68108, 68111, 0),
+ (68152, 68154, 0),
+ (68159, 68159, 0),
+ (68325, 68326, 0),
+ (69632, 69634, 0),
+ (69688, 69702, 0),
+ (69759, 69762, 0),
+ (69808, 69818, 0),
+ (69888, 69890, 0),
+ (69927, 69940, 0),
+ (70003, 70003, 0),
+ (70016, 70018, 0),
+ (70067, 70080, 0),
+ (70090, 70092, 0),
+ (70188, 70199, 0),
+ (70206, 70206, 0),
+ (70367, 70378, 0),
+ (70400, 70403, 0),
+ (70460, 70460, 0),
+ (70462, 70468, 0),
+ (70471, 70472, 0),
+ (70475, 70477, 0),
+ (70487, 70487, 0),
+ (70498, 70499, 0),
+ (70502, 70508, 0),
+ (70512, 70516, 0),
+ (70709, 70726, 0),
+ (70832, 70851, 0),
+ (71087, 71093, 0),
+ (71096, 71104, 0),
+ (71132, 71133, 0),
+ (71216, 71232, 0),
+ (71339, 71351, 0),
+ (71453, 71467, 0),
+ (72751, 72758, 0),
+ (72760, 72767, 0),
+ (72850, 72871, 0),
+ (72873, 72886, 0),
+ (92912, 92916, 0),
+ (92976, 92982, 0),
+ (94033, 94078, 0),
+ (94095, 94098, 0),
+ (94176, 94176, 2),
+ (94208, 100332, 2),
+ (100352, 101106, 2),
+ (110592, 110593, 2),
+ (113821, 113822, 0),
+ (113824, 113827, 0),
+ (119141, 119145, 0),
+ (119149, 119170, 0),
+ (119173, 119179, 0),
+ (119210, 119213, 0),
+ (119362, 119364, 0),
+ (121344, 121398, 0),
+ (121403, 121452, 0),
+ (121461, 121461, 0),
+ (121476, 121476, 0),
+ (121499, 121503, 0),
+ (121505, 121519, 0),
+ (122880, 122886, 0),
+ (122888, 122904, 0),
+ (122907, 122913, 0),
+ (122915, 122916, 0),
+ (122918, 122922, 0),
+ (125136, 125142, 0),
+ (125252, 125258, 0),
+ (126980, 126980, 2),
+ (127183, 127183, 2),
+ (127374, 127374, 2),
+ (127377, 127386, 2),
+ (127488, 127490, 2),
+ (127504, 127547, 2),
+ (127552, 127560, 2),
+ (127568, 127569, 2),
+ (127744, 127776, 2),
+ (127789, 127797, 2),
+ (127799, 127868, 2),
+ (127870, 127891, 2),
+ (127904, 127946, 2),
+ (127951, 127955, 2),
+ (127968, 127984, 2),
+ (127988, 127988, 2),
+ (127992, 127994, 2),
+ (127995, 127999, 0),
+ (128000, 128062, 2),
+ (128064, 128064, 2),
+ (128066, 128252, 2),
+ (128255, 128317, 2),
+ (128331, 128334, 2),
+ (128336, 128359, 2),
+ (128378, 128378, 2),
+ (128405, 128406, 2),
+ (128420, 128420, 2),
+ (128507, 128591, 2),
+ (128640, 128709, 2),
+ (128716, 128716, 2),
+ (128720, 128722, 2),
+ (128747, 128748, 2),
+ (128756, 128758, 2),
+ (129296, 129310, 2),
+ (129312, 129319, 2),
+ (129328, 129328, 2),
+ (129331, 129342, 2),
+ (129344, 129355, 2),
+ (129360, 129374, 2),
+ (129408, 129425, 2),
+ (129472, 129472, 2),
+ (131072, 196605, 2),
+ (196608, 262141, 2),
+ (917504, 921599, 0),
+ ],
+ frozenset(
+ [
+ "#",
+ "*",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "©",
+ "®",
+ "‼",
+ "⁉",
+ "™",
+ "ℹ",
+ "↔",
+ "↕",
+ "↖",
+ "↗",
+ "↘",
+ "↙",
+ "↩",
+ "↪",
+ "⌨",
+ "⏏",
+ "⏭",
+ "⏮",
+ "⏯",
+ "⏱",
+ "⏲",
+ "⏸",
+ "⏹",
+ "⏺",
+ "Ⓜ",
+ "▪",
+ "▫",
+ "▶",
+ "◀",
+ "◻",
+ "◼",
+ "☀",
+ "☁",
+ "☂",
+ "☃",
+ "☄",
+ "☎",
+ "☑",
+ "☘",
+ "☝",
+ "☠",
+ "☢",
+ "☣",
+ "☦",
+ "☪",
+ "☮",
+ "☯",
+ "☸",
+ "☹",
+ "☺",
+ "♀",
+ "♂",
+ "♟",
+ "♠",
+ "♣",
+ "♥",
+ "♦",
+ "♨",
+ "♻",
+ "♾",
+ "⚒",
+ "⚔",
+ "⚕",
+ "⚖",
+ "⚗",
+ "⚙",
+ "⚛",
+ "⚜",
+ "⚠",
+ "⚧",
+ "⚰",
+ "⚱",
+ "⛈",
+ "⛏",
+ "⛑",
+ "⛓",
+ "⛩",
+ "⛰",
+ "⛱",
+ "⛴",
+ "⛷",
+ "⛸",
+ "⛹",
+ "✂",
+ "✈",
+ "✉",
+ "✌",
+ "✍",
+ "✏",
+ "✒",
+ "✔",
+ "✖",
+ "✝",
+ "✡",
+ "✳",
+ "✴",
+ "❄",
+ "❇",
+ "❣",
+ "❤",
+ "➡",
+ "⤴",
+ "⤵",
+ "⬅",
+ "⬆",
+ "⬇",
+ "🅰",
+ "🅱",
+ "🅾",
+ "🅿",
+ "🌡",
+ "🌤",
+ "🌥",
+ "🌦",
+ "🌧",
+ "🌨",
+ "🌩",
+ "🌪",
+ "🌫",
+ "🌬",
+ "🌶",
+ "🍽",
+ "🎖",
+ "🎗",
+ "🎙",
+ "🎚",
+ "🎛",
+ "🎞",
+ "🎟",
+ "🏋",
+ "🏌",
+ "🏍",
+ "🏎",
+ "🏔",
+ "🏕",
+ "🏖",
+ "🏗",
+ "🏘",
+ "🏙",
+ "🏚",
+ "🏛",
+ "🏜",
+ "🏝",
+ "🏞",
+ "🏟",
+ "🏳",
+ "🏵",
+ "🏷",
+ "🐿",
+ "👁",
+ "📽",
+ "🕉",
+ "🕊",
+ "🕯",
+ "🕰",
+ "🕳",
+ "🕴",
+ "🕵",
+ "🕶",
+ "🕷",
+ "🕸",
+ "🕹",
+ "🖇",
+ "🖊",
+ "🖋",
+ "🖌",
+ "🖍",
+ "🖐",
+ "🖥",
+ "🖨",
+ "🖱",
+ "🖲",
+ "🖼",
+ "🗂",
+ "🗃",
+ "🗄",
+ "🗑",
+ "🗒",
+ "🗓",
+ "🗜",
+ "🗝",
+ "🗞",
+ "🗡",
+ "🗣",
+ "🗨",
+ "🗯",
+ "🗳",
+ "🗺",
+ "🛋",
+ "🛍",
+ "🛎",
+ "🛏",
+ "🛠",
+ "🛡",
+ "🛢",
+ "🛣",
+ "🛤",
+ "🛥",
+ "🛩",
+ "🛰",
+ "🛳",
+ ]
+ ),
+)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_win32_console.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_win32_console.py
new file mode 100644
index 0000000000000000000000000000000000000000..371ec09fac6954e5fc2473543db4225f760450cb
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_win32_console.py
@@ -0,0 +1,661 @@
+"""Light wrapper around the Win32 Console API - this module should only be imported on Windows
+
+The API that this module wraps is documented at https://docs.microsoft.com/en-us/windows/console/console-functions
+"""
+
+import ctypes
+import sys
+from typing import Any
+
+windll: Any = None
+if sys.platform == "win32":
+ windll = ctypes.LibraryLoader(ctypes.WinDLL)
+else:
+ raise ImportError(f"{__name__} can only be imported on Windows")
+
+import time
+from ctypes import Structure, byref, wintypes
+from typing import IO, NamedTuple, Type, cast
+
+from rich.color import ColorSystem
+from rich.style import Style
+
+STDOUT = -11
+ENABLE_VIRTUAL_TERMINAL_PROCESSING = 4
+
+COORD = wintypes._COORD
+
+
+class LegacyWindowsError(Exception):
+ pass
+
+
+class WindowsCoordinates(NamedTuple):
+ """Coordinates in the Windows Console API are (y, x), not (x, y).
+ This class is intended to prevent that confusion.
+ Rows and columns are indexed from 0.
+ This class can be used in place of wintypes._COORD in arguments and argtypes.
+ """
+
+ row: int
+ col: int
+
+ @classmethod
+ def from_param(cls, value: "WindowsCoordinates") -> COORD:
+ """Converts a WindowsCoordinates into a wintypes _COORD structure.
+ This classmethod is internally called by ctypes to perform the conversion.
+
+ Args:
+ value (WindowsCoordinates): The input coordinates to convert.
+
+ Returns:
+ wintypes._COORD: The converted coordinates struct.
+ """
+ return COORD(value.col, value.row)
+
+
+class CONSOLE_SCREEN_BUFFER_INFO(Structure):
+ _fields_ = [
+ ("dwSize", COORD),
+ ("dwCursorPosition", COORD),
+ ("wAttributes", wintypes.WORD),
+ ("srWindow", wintypes.SMALL_RECT),
+ ("dwMaximumWindowSize", COORD),
+ ]
+
+
+class CONSOLE_CURSOR_INFO(ctypes.Structure):
+ _fields_ = [("dwSize", wintypes.DWORD), ("bVisible", wintypes.BOOL)]
+
+
+_GetStdHandle = windll.kernel32.GetStdHandle
+_GetStdHandle.argtypes = [
+ wintypes.DWORD,
+]
+_GetStdHandle.restype = wintypes.HANDLE
+
+
+def GetStdHandle(handle: int = STDOUT) -> wintypes.HANDLE:
+ """Retrieves a handle to the specified standard device (standard input, standard output, or standard error).
+
+ Args:
+ handle (int): Integer identifier for the handle. Defaults to -11 (stdout).
+
+ Returns:
+ wintypes.HANDLE: The handle
+ """
+ return cast(wintypes.HANDLE, _GetStdHandle(handle))
+
+
+_GetConsoleMode = windll.kernel32.GetConsoleMode
+_GetConsoleMode.argtypes = [wintypes.HANDLE, wintypes.LPDWORD]
+_GetConsoleMode.restype = wintypes.BOOL
+
+
+def GetConsoleMode(std_handle: wintypes.HANDLE) -> int:
+ """Retrieves the current input mode of a console's input buffer
+ or the current output mode of a console screen buffer.
+
+ Args:
+ std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
+
+ Raises:
+ LegacyWindowsError: If any error occurs while calling the Windows console API.
+
+ Returns:
+ int: Value representing the current console mode as documented at
+ https://docs.microsoft.com/en-us/windows/console/getconsolemode#parameters
+ """
+
+ console_mode = wintypes.DWORD()
+ success = bool(_GetConsoleMode(std_handle, console_mode))
+ if not success:
+ raise LegacyWindowsError("Unable to get legacy Windows Console Mode")
+ return console_mode.value
+
+
+_FillConsoleOutputCharacterW = windll.kernel32.FillConsoleOutputCharacterW
+_FillConsoleOutputCharacterW.argtypes = [
+ wintypes.HANDLE,
+ ctypes.c_char,
+ wintypes.DWORD,
+ cast(Type[COORD], WindowsCoordinates),
+ ctypes.POINTER(wintypes.DWORD),
+]
+_FillConsoleOutputCharacterW.restype = wintypes.BOOL
+
+
+def FillConsoleOutputCharacter(
+ std_handle: wintypes.HANDLE,
+ char: str,
+ length: int,
+ start: WindowsCoordinates,
+) -> int:
+ """Writes a character to the console screen buffer a specified number of times, beginning at the specified coordinates.
+
+ Args:
+ std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
+ char (str): The character to write. Must be a string of length 1.
+ length (int): The number of times to write the character.
+ start (WindowsCoordinates): The coordinates to start writing at.
+
+ Returns:
+ int: The number of characters written.
+ """
+ character = ctypes.c_char(char.encode())
+ num_characters = wintypes.DWORD(length)
+ num_written = wintypes.DWORD(0)
+ _FillConsoleOutputCharacterW(
+ std_handle,
+ character,
+ num_characters,
+ start,
+ byref(num_written),
+ )
+ return num_written.value
+
+
+_FillConsoleOutputAttribute = windll.kernel32.FillConsoleOutputAttribute
+_FillConsoleOutputAttribute.argtypes = [
+ wintypes.HANDLE,
+ wintypes.WORD,
+ wintypes.DWORD,
+ cast(Type[COORD], WindowsCoordinates),
+ ctypes.POINTER(wintypes.DWORD),
+]
+_FillConsoleOutputAttribute.restype = wintypes.BOOL
+
+
+def FillConsoleOutputAttribute(
+ std_handle: wintypes.HANDLE,
+ attributes: int,
+ length: int,
+ start: WindowsCoordinates,
+) -> int:
+ """Sets the character attributes for a specified number of character cells,
+ beginning at the specified coordinates in a screen buffer.
+
+ Args:
+ std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
+ attributes (int): Integer value representing the foreground and background colours of the cells.
+ length (int): The number of cells to set the output attribute of.
+ start (WindowsCoordinates): The coordinates of the first cell whose attributes are to be set.
+
+ Returns:
+ int: The number of cells whose attributes were actually set.
+ """
+ num_cells = wintypes.DWORD(length)
+ style_attrs = wintypes.WORD(attributes)
+ num_written = wintypes.DWORD(0)
+ _FillConsoleOutputAttribute(
+ std_handle, style_attrs, num_cells, start, byref(num_written)
+ )
+ return num_written.value
+
+
+_SetConsoleTextAttribute = windll.kernel32.SetConsoleTextAttribute
+_SetConsoleTextAttribute.argtypes = [
+ wintypes.HANDLE,
+ wintypes.WORD,
+]
+_SetConsoleTextAttribute.restype = wintypes.BOOL
+
+
+def SetConsoleTextAttribute(
+ std_handle: wintypes.HANDLE, attributes: wintypes.WORD
+) -> bool:
+ """Set the colour attributes for all text written after this function is called.
+
+ Args:
+ std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
+ attributes (int): Integer value representing the foreground and background colours.
+
+
+ Returns:
+ bool: True if the attribute was set successfully, otherwise False.
+ """
+ return bool(_SetConsoleTextAttribute(std_handle, attributes))
+
+
+_GetConsoleScreenBufferInfo = windll.kernel32.GetConsoleScreenBufferInfo
+_GetConsoleScreenBufferInfo.argtypes = [
+ wintypes.HANDLE,
+ ctypes.POINTER(CONSOLE_SCREEN_BUFFER_INFO),
+]
+_GetConsoleScreenBufferInfo.restype = wintypes.BOOL
+
+
+def GetConsoleScreenBufferInfo(
+ std_handle: wintypes.HANDLE,
+) -> CONSOLE_SCREEN_BUFFER_INFO:
+ """Retrieves information about the specified console screen buffer.
+
+ Args:
+ std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
+
+ Returns:
+ CONSOLE_SCREEN_BUFFER_INFO: A CONSOLE_SCREEN_BUFFER_INFO ctype struct contain information about
+ screen size, cursor position, colour attributes, and more."""
+ console_screen_buffer_info = CONSOLE_SCREEN_BUFFER_INFO()
+ _GetConsoleScreenBufferInfo(std_handle, byref(console_screen_buffer_info))
+ return console_screen_buffer_info
+
+
+_SetConsoleCursorPosition = windll.kernel32.SetConsoleCursorPosition
+_SetConsoleCursorPosition.argtypes = [
+ wintypes.HANDLE,
+ cast(Type[COORD], WindowsCoordinates),
+]
+_SetConsoleCursorPosition.restype = wintypes.BOOL
+
+
+def SetConsoleCursorPosition(
+ std_handle: wintypes.HANDLE, coords: WindowsCoordinates
+) -> bool:
+ """Set the position of the cursor in the console screen
+
+ Args:
+ std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
+ coords (WindowsCoordinates): The coordinates to move the cursor to.
+
+ Returns:
+ bool: True if the function succeeds, otherwise False.
+ """
+ return bool(_SetConsoleCursorPosition(std_handle, coords))
+
+
+_GetConsoleCursorInfo = windll.kernel32.GetConsoleCursorInfo
+_GetConsoleCursorInfo.argtypes = [
+ wintypes.HANDLE,
+ ctypes.POINTER(CONSOLE_CURSOR_INFO),
+]
+_GetConsoleCursorInfo.restype = wintypes.BOOL
+
+
+def GetConsoleCursorInfo(
+ std_handle: wintypes.HANDLE, cursor_info: CONSOLE_CURSOR_INFO
+) -> bool:
+ """Get the cursor info - used to get cursor visibility and width
+
+ Args:
+ std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
+ cursor_info (CONSOLE_CURSOR_INFO): CONSOLE_CURSOR_INFO ctype struct that receives information
+ about the console's cursor.
+
+ Returns:
+ bool: True if the function succeeds, otherwise False.
+ """
+ return bool(_GetConsoleCursorInfo(std_handle, byref(cursor_info)))
+
+
+_SetConsoleCursorInfo = windll.kernel32.SetConsoleCursorInfo
+_SetConsoleCursorInfo.argtypes = [
+ wintypes.HANDLE,
+ ctypes.POINTER(CONSOLE_CURSOR_INFO),
+]
+_SetConsoleCursorInfo.restype = wintypes.BOOL
+
+
+def SetConsoleCursorInfo(
+ std_handle: wintypes.HANDLE, cursor_info: CONSOLE_CURSOR_INFO
+) -> bool:
+ """Set the cursor info - used for adjusting cursor visibility and width
+
+ Args:
+ std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
+ cursor_info (CONSOLE_CURSOR_INFO): CONSOLE_CURSOR_INFO ctype struct containing the new cursor info.
+
+ Returns:
+ bool: True if the function succeeds, otherwise False.
+ """
+ return bool(_SetConsoleCursorInfo(std_handle, byref(cursor_info)))
+
+
+_SetConsoleTitle = windll.kernel32.SetConsoleTitleW
+_SetConsoleTitle.argtypes = [wintypes.LPCWSTR]
+_SetConsoleTitle.restype = wintypes.BOOL
+
+
+def SetConsoleTitle(title: str) -> bool:
+ """Sets the title of the current console window
+
+ Args:
+ title (str): The new title of the console window.
+
+ Returns:
+ bool: True if the function succeeds, otherwise False.
+ """
+ return bool(_SetConsoleTitle(title))
+
+
+class LegacyWindowsTerm:
+ """This class allows interaction with the legacy Windows Console API. It should only be used in the context
+ of environments where virtual terminal processing is not available. However, if it is used in a Windows environment,
+ the entire API should work.
+
+ Args:
+ file (IO[str]): The file which the Windows Console API HANDLE is retrieved from, defaults to sys.stdout.
+ """
+
+ BRIGHT_BIT = 8
+
+ # Indices are ANSI color numbers, values are the corresponding Windows Console API color numbers
+ ANSI_TO_WINDOWS = [
+ 0, # black The Windows colours are defined in wincon.h as follows:
+ 4, # red define FOREGROUND_BLUE 0x0001 -- 0000 0001
+ 2, # green define FOREGROUND_GREEN 0x0002 -- 0000 0010
+ 6, # yellow define FOREGROUND_RED 0x0004 -- 0000 0100
+ 1, # blue define FOREGROUND_INTENSITY 0x0008 -- 0000 1000
+ 5, # magenta define BACKGROUND_BLUE 0x0010 -- 0001 0000
+ 3, # cyan define BACKGROUND_GREEN 0x0020 -- 0010 0000
+ 7, # white define BACKGROUND_RED 0x0040 -- 0100 0000
+ 8, # bright black (grey) define BACKGROUND_INTENSITY 0x0080 -- 1000 0000
+ 12, # bright red
+ 10, # bright green
+ 14, # bright yellow
+ 9, # bright blue
+ 13, # bright magenta
+ 11, # bright cyan
+ 15, # bright white
+ ]
+
+ def __init__(self, file: "IO[str]") -> None:
+ handle = GetStdHandle(STDOUT)
+ self._handle = handle
+ default_text = GetConsoleScreenBufferInfo(handle).wAttributes
+ self._default_text = default_text
+
+ self._default_fore = default_text & 7
+ self._default_back = (default_text >> 4) & 7
+ self._default_attrs = self._default_fore | (self._default_back << 4)
+
+ self._file = file
+ self.write = file.write
+ self.flush = file.flush
+
+ @property
+ def cursor_position(self) -> WindowsCoordinates:
+ """Returns the current position of the cursor (0-based)
+
+ Returns:
+ WindowsCoordinates: The current cursor position.
+ """
+ coord: COORD = GetConsoleScreenBufferInfo(self._handle).dwCursorPosition
+ return WindowsCoordinates(row=coord.Y, col=coord.X)
+
+ @property
+ def screen_size(self) -> WindowsCoordinates:
+ """Returns the current size of the console screen buffer, in character columns and rows
+
+ Returns:
+ WindowsCoordinates: The width and height of the screen as WindowsCoordinates.
+ """
+ screen_size: COORD = GetConsoleScreenBufferInfo(self._handle).dwSize
+ return WindowsCoordinates(row=screen_size.Y, col=screen_size.X)
+
+ def write_text(self, text: str) -> None:
+ """Write text directly to the terminal without any modification of styles
+
+ Args:
+ text (str): The text to write to the console
+ """
+ self.write(text)
+ self.flush()
+
+ def write_styled(self, text: str, style: Style) -> None:
+ """Write styled text to the terminal.
+
+ Args:
+ text (str): The text to write
+ style (Style): The style of the text
+ """
+ color = style.color
+ bgcolor = style.bgcolor
+ if style.reverse:
+ color, bgcolor = bgcolor, color
+
+ if color:
+ fore = color.downgrade(ColorSystem.WINDOWS).number
+ fore = fore if fore is not None else 7 # Default to ANSI 7: White
+ if style.bold:
+ fore = fore | self.BRIGHT_BIT
+ if style.dim:
+ fore = fore & ~self.BRIGHT_BIT
+ fore = self.ANSI_TO_WINDOWS[fore]
+ else:
+ fore = self._default_fore
+
+ if bgcolor:
+ back = bgcolor.downgrade(ColorSystem.WINDOWS).number
+ back = back if back is not None else 0 # Default to ANSI 0: Black
+ back = self.ANSI_TO_WINDOWS[back]
+ else:
+ back = self._default_back
+
+ assert fore is not None
+ assert back is not None
+
+ SetConsoleTextAttribute(
+ self._handle, attributes=ctypes.c_ushort(fore | (back << 4))
+ )
+ self.write_text(text)
+ SetConsoleTextAttribute(self._handle, attributes=self._default_text)
+
+ def move_cursor_to(self, new_position: WindowsCoordinates) -> None:
+ """Set the position of the cursor
+
+ Args:
+ new_position (WindowsCoordinates): The WindowsCoordinates representing the new position of the cursor.
+ """
+ if new_position.col < 0 or new_position.row < 0:
+ return
+ SetConsoleCursorPosition(self._handle, coords=new_position)
+
+ def erase_line(self) -> None:
+ """Erase all content on the line the cursor is currently located at"""
+ screen_size = self.screen_size
+ cursor_position = self.cursor_position
+ cells_to_erase = screen_size.col
+ start_coordinates = WindowsCoordinates(row=cursor_position.row, col=0)
+ FillConsoleOutputCharacter(
+ self._handle, " ", length=cells_to_erase, start=start_coordinates
+ )
+ FillConsoleOutputAttribute(
+ self._handle,
+ self._default_attrs,
+ length=cells_to_erase,
+ start=start_coordinates,
+ )
+
+ def erase_end_of_line(self) -> None:
+ """Erase all content from the cursor position to the end of that line"""
+ cursor_position = self.cursor_position
+ cells_to_erase = self.screen_size.col - cursor_position.col
+ FillConsoleOutputCharacter(
+ self._handle, " ", length=cells_to_erase, start=cursor_position
+ )
+ FillConsoleOutputAttribute(
+ self._handle,
+ self._default_attrs,
+ length=cells_to_erase,
+ start=cursor_position,
+ )
+
+ def erase_start_of_line(self) -> None:
+ """Erase all content from the cursor position to the start of that line"""
+ row, col = self.cursor_position
+ start = WindowsCoordinates(row, 0)
+ FillConsoleOutputCharacter(self._handle, " ", length=col, start=start)
+ FillConsoleOutputAttribute(
+ self._handle, self._default_attrs, length=col, start=start
+ )
+
+ def move_cursor_up(self) -> None:
+ """Move the cursor up a single cell"""
+ cursor_position = self.cursor_position
+ SetConsoleCursorPosition(
+ self._handle,
+ coords=WindowsCoordinates(
+ row=cursor_position.row - 1, col=cursor_position.col
+ ),
+ )
+
+ def move_cursor_down(self) -> None:
+ """Move the cursor down a single cell"""
+ cursor_position = self.cursor_position
+ SetConsoleCursorPosition(
+ self._handle,
+ coords=WindowsCoordinates(
+ row=cursor_position.row + 1,
+ col=cursor_position.col,
+ ),
+ )
+
+ def move_cursor_forward(self) -> None:
+ """Move the cursor forward a single cell. Wrap to the next line if required."""
+ row, col = self.cursor_position
+ if col == self.screen_size.col - 1:
+ row += 1
+ col = 0
+ else:
+ col += 1
+ SetConsoleCursorPosition(
+ self._handle, coords=WindowsCoordinates(row=row, col=col)
+ )
+
+ def move_cursor_to_column(self, column: int) -> None:
+ """Move cursor to the column specified by the zero-based column index, staying on the same row
+
+ Args:
+ column (int): The zero-based column index to move the cursor to.
+ """
+ row, _ = self.cursor_position
+ SetConsoleCursorPosition(self._handle, coords=WindowsCoordinates(row, column))
+
+ def move_cursor_backward(self) -> None:
+ """Move the cursor backward a single cell. Wrap to the previous line if required."""
+ row, col = self.cursor_position
+ if col == 0:
+ row -= 1
+ col = self.screen_size.col - 1
+ else:
+ col -= 1
+ SetConsoleCursorPosition(
+ self._handle, coords=WindowsCoordinates(row=row, col=col)
+ )
+
+ def hide_cursor(self) -> None:
+ """Hide the cursor"""
+ current_cursor_size = self._get_cursor_size()
+ invisible_cursor = CONSOLE_CURSOR_INFO(dwSize=current_cursor_size, bVisible=0)
+ SetConsoleCursorInfo(self._handle, cursor_info=invisible_cursor)
+
+ def show_cursor(self) -> None:
+ """Show the cursor"""
+ current_cursor_size = self._get_cursor_size()
+ visible_cursor = CONSOLE_CURSOR_INFO(dwSize=current_cursor_size, bVisible=1)
+ SetConsoleCursorInfo(self._handle, cursor_info=visible_cursor)
+
+ def set_title(self, title: str) -> None:
+ """Set the title of the terminal window
+
+ Args:
+ title (str): The new title of the console window
+ """
+ assert len(title) < 255, "Console title must be less than 255 characters"
+ SetConsoleTitle(title)
+
+ def _get_cursor_size(self) -> int:
+ """Get the percentage of the character cell that is filled by the cursor"""
+ cursor_info = CONSOLE_CURSOR_INFO()
+ GetConsoleCursorInfo(self._handle, cursor_info=cursor_info)
+ return int(cursor_info.dwSize)
+
+
+if __name__ == "__main__":
+ handle = GetStdHandle()
+
+ from rich.console import Console
+
+ console = Console()
+
+ term = LegacyWindowsTerm(sys.stdout)
+ term.set_title("Win32 Console Examples")
+
+ style = Style(color="black", bgcolor="red")
+
+ heading = Style.parse("black on green")
+
+ # Check colour output
+ console.rule("Checking colour output")
+ console.print("[on red]on red!")
+ console.print("[blue]blue!")
+ console.print("[yellow]yellow!")
+ console.print("[bold yellow]bold yellow!")
+ console.print("[bright_yellow]bright_yellow!")
+ console.print("[dim bright_yellow]dim bright_yellow!")
+ console.print("[italic cyan]italic cyan!")
+ console.print("[bold white on blue]bold white on blue!")
+ console.print("[reverse bold white on blue]reverse bold white on blue!")
+ console.print("[bold black on cyan]bold black on cyan!")
+ console.print("[black on green]black on green!")
+ console.print("[blue on green]blue on green!")
+ console.print("[white on black]white on black!")
+ console.print("[black on white]black on white!")
+ console.print("[#1BB152 on #DA812D]#1BB152 on #DA812D!")
+
+ # Check cursor movement
+ console.rule("Checking cursor movement")
+ console.print()
+ term.move_cursor_backward()
+ term.move_cursor_backward()
+ term.write_text("went back and wrapped to prev line")
+ time.sleep(1)
+ term.move_cursor_up()
+ term.write_text("we go up")
+ time.sleep(1)
+ term.move_cursor_down()
+ term.write_text("and down")
+ time.sleep(1)
+ term.move_cursor_up()
+ term.move_cursor_backward()
+ term.move_cursor_backward()
+ term.write_text("we went up and back 2")
+ time.sleep(1)
+ term.move_cursor_down()
+ term.move_cursor_backward()
+ term.move_cursor_backward()
+ term.write_text("we went down and back 2")
+ time.sleep(1)
+
+ # Check erasing of lines
+ term.hide_cursor()
+ console.print()
+ console.rule("Checking line erasing")
+ console.print("\n...Deleting to the start of the line...")
+ term.write_text("The red arrow shows the cursor location, and direction of erase")
+ time.sleep(1)
+ term.move_cursor_to_column(16)
+ term.write_styled("<", Style.parse("black on red"))
+ term.move_cursor_backward()
+ time.sleep(1)
+ term.erase_start_of_line()
+ time.sleep(1)
+
+ console.print("\n\n...And to the end of the line...")
+ term.write_text("The red arrow shows the cursor location, and direction of erase")
+ time.sleep(1)
+
+ term.move_cursor_to_column(16)
+ term.write_styled(">", Style.parse("black on red"))
+ time.sleep(1)
+ term.erase_end_of_line()
+ time.sleep(1)
+
+ console.print("\n\n...Now the whole line will be erased...")
+ term.write_styled("I'm going to disappear!", style=Style.parse("black on cyan"))
+ time.sleep(1)
+ term.erase_line()
+
+ term.show_cursor()
+ print("\n")
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_windows.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_windows.py
new file mode 100644
index 0000000000000000000000000000000000000000..e17c5c0fdcaeec4b2b0c007733970ae4ffa9c641
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_windows.py
@@ -0,0 +1,71 @@
+import sys
+from dataclasses import dataclass
+
+
+@dataclass
+class WindowsConsoleFeatures:
+ """Windows features available."""
+
+ vt: bool = False
+ """The console supports VT codes."""
+ truecolor: bool = False
+ """The console supports truecolor."""
+
+
+try:
+ import ctypes
+ from ctypes import LibraryLoader
+
+ if sys.platform == "win32":
+ windll = LibraryLoader(ctypes.WinDLL)
+ else:
+ windll = None
+ raise ImportError("Not windows")
+
+ from rich._win32_console import (
+ ENABLE_VIRTUAL_TERMINAL_PROCESSING,
+ GetConsoleMode,
+ GetStdHandle,
+ LegacyWindowsError,
+ )
+
+except (AttributeError, ImportError, ValueError):
+ # Fallback if we can't load the Windows DLL
+ def get_windows_console_features() -> WindowsConsoleFeatures:
+ features = WindowsConsoleFeatures()
+ return features
+
+else:
+
+ def get_windows_console_features() -> WindowsConsoleFeatures:
+ """Get windows console features.
+
+ Returns:
+ WindowsConsoleFeatures: An instance of WindowsConsoleFeatures.
+ """
+ handle = GetStdHandle()
+ try:
+ console_mode = GetConsoleMode(handle)
+ success = True
+ except LegacyWindowsError:
+ console_mode = 0
+ success = False
+ vt = bool(success and console_mode & ENABLE_VIRTUAL_TERMINAL_PROCESSING)
+ truecolor = False
+ if vt:
+ win_version = sys.getwindowsversion()
+ truecolor = win_version.major > 10 or (
+ win_version.major == 10 and win_version.build >= 15063
+ )
+ features = WindowsConsoleFeatures(vt=vt, truecolor=truecolor)
+ return features
+
+
+if __name__ == "__main__":
+ import platform
+
+ features = get_windows_console_features()
+ from rich import print
+
+ print(f'platform="{platform.system()}"')
+ print(repr(features))
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_windows_renderer.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_windows_renderer.py
new file mode 100644
index 0000000000000000000000000000000000000000..0fc2ba852a92a45ef510d27ca6ce5e5348bec8a1
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_windows_renderer.py
@@ -0,0 +1,56 @@
+from typing import Iterable, Sequence, Tuple, cast
+
+from rich._win32_console import LegacyWindowsTerm, WindowsCoordinates
+from rich.segment import ControlCode, ControlType, Segment
+
+
+def legacy_windows_render(buffer: Iterable[Segment], term: LegacyWindowsTerm) -> None:
+ """Makes appropriate Windows Console API calls based on the segments in the buffer.
+
+ Args:
+ buffer (Iterable[Segment]): Iterable of Segments to convert to Win32 API calls.
+ term (LegacyWindowsTerm): Used to call the Windows Console API.
+ """
+ for text, style, control in buffer:
+ if not control:
+ if style:
+ term.write_styled(text, style)
+ else:
+ term.write_text(text)
+ else:
+ control_codes: Sequence[ControlCode] = control
+ for control_code in control_codes:
+ control_type = control_code[0]
+ if control_type == ControlType.CURSOR_MOVE_TO:
+ _, x, y = cast(Tuple[ControlType, int, int], control_code)
+ term.move_cursor_to(WindowsCoordinates(row=y - 1, col=x - 1))
+ elif control_type == ControlType.CARRIAGE_RETURN:
+ term.write_text("\r")
+ elif control_type == ControlType.HOME:
+ term.move_cursor_to(WindowsCoordinates(0, 0))
+ elif control_type == ControlType.CURSOR_UP:
+ term.move_cursor_up()
+ elif control_type == ControlType.CURSOR_DOWN:
+ term.move_cursor_down()
+ elif control_type == ControlType.CURSOR_FORWARD:
+ term.move_cursor_forward()
+ elif control_type == ControlType.CURSOR_BACKWARD:
+ term.move_cursor_backward()
+ elif control_type == ControlType.CURSOR_MOVE_TO_COLUMN:
+ _, column = cast(Tuple[ControlType, int], control_code)
+ term.move_cursor_to_column(column - 1)
+ elif control_type == ControlType.HIDE_CURSOR:
+ term.hide_cursor()
+ elif control_type == ControlType.SHOW_CURSOR:
+ term.show_cursor()
+ elif control_type == ControlType.ERASE_IN_LINE:
+ _, mode = cast(Tuple[ControlType, int], control_code)
+ if mode == 0:
+ term.erase_end_of_line()
+ elif mode == 1:
+ term.erase_start_of_line()
+ elif mode == 2:
+ term.erase_line()
+ elif control_type == ControlType.SET_WINDOW_TITLE:
+ _, title = cast(Tuple[ControlType, str], control_code)
+ term.set_title(title)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_wrap.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_wrap.py
new file mode 100644
index 0000000000000000000000000000000000000000..2e94ff6f43adfb6a6900a3a2147781e91220b189
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/_wrap.py
@@ -0,0 +1,93 @@
+from __future__ import annotations
+
+import re
+from typing import Iterable
+
+from ._loop import loop_last
+from .cells import cell_len, chop_cells
+
+re_word = re.compile(r"\s*\S+\s*")
+
+
+def words(text: str) -> Iterable[tuple[int, int, str]]:
+ """Yields each word from the text as a tuple
+ containing (start_index, end_index, word). A "word" in this context may
+ include the actual word and any whitespace to the right.
+ """
+ position = 0
+ word_match = re_word.match(text, position)
+ while word_match is not None:
+ start, end = word_match.span()
+ word = word_match.group(0)
+ yield start, end, word
+ word_match = re_word.match(text, end)
+
+
+def divide_line(text: str, width: int, fold: bool = True) -> list[int]:
+ """Given a string of text, and a width (measured in cells), return a list
+ of cell offsets which the string should be split at in order for it to fit
+ within the given width.
+
+ Args:
+ text: The text to examine.
+ width: The available cell width.
+ fold: If True, words longer than `width` will be folded onto a new line.
+
+ Returns:
+ A list of indices to break the line at.
+ """
+ break_positions: list[int] = [] # offsets to insert the breaks at
+ append = break_positions.append
+ cell_offset = 0
+ _cell_len = cell_len
+
+ for start, _end, word in words(text):
+ word_length = _cell_len(word.rstrip())
+ remaining_space = width - cell_offset
+ word_fits_remaining_space = remaining_space >= word_length
+
+ if word_fits_remaining_space:
+ # Simplest case - the word fits within the remaining width for this line.
+ cell_offset += _cell_len(word)
+ else:
+ # Not enough space remaining for this word on the current line.
+ if word_length > width:
+ # The word doesn't fit on any line, so we can't simply
+ # place it on the next line...
+ if fold:
+ # Fold the word across multiple lines.
+ folded_word = chop_cells(word, width=width)
+ for last, line in loop_last(folded_word):
+ if start:
+ append(start)
+ if last:
+ cell_offset = _cell_len(line)
+ else:
+ start += len(line)
+ else:
+ # Folding isn't allowed, so crop the word.
+ if start:
+ append(start)
+ cell_offset = _cell_len(word)
+ elif cell_offset and start:
+ # The word doesn't fit within the remaining space on the current
+ # line, but it *can* fit on to the next (empty) line.
+ append(start)
+ cell_offset = _cell_len(word)
+
+ return break_positions
+
+
+if __name__ == "__main__": # pragma: no cover
+ from .console import Console
+
+ console = Console(width=10)
+ console.print("12345 abcdefghijklmnopqrstuvwyxzABCDEFGHIJKLMNOPQRSTUVWXYZ 12345")
+ print(chop_cells("abcdefghijklmnopqrstuvwxyz", 10))
+
+ console = Console(width=20)
+ console.rule()
+ console.print("TextualはPythonの高速アプリケーション開発フレームワークです")
+
+ console.rule()
+ console.print("アプリケーションは1670万色を使用でき")
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/abc.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/abc.py
new file mode 100644
index 0000000000000000000000000000000000000000..42db7c00202962561f5dfdb295b2cab54d4868c7
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/abc.py
@@ -0,0 +1,33 @@
+from abc import ABC
+
+
+class RichRenderable(ABC):
+ """An abstract base class for Rich renderables.
+
+ Note that there is no need to extend this class, the intended use is to check if an
+ object supports the Rich renderable protocol. For example::
+
+ if isinstance(my_object, RichRenderable):
+ console.print(my_object)
+
+ """
+
+ @classmethod
+ def __subclasshook__(cls, other: type) -> bool:
+ """Check if this class supports the rich render protocol."""
+ return hasattr(other, "__rich_console__") or hasattr(other, "__rich__")
+
+
+if __name__ == "__main__": # pragma: no cover
+ from rich.text import Text
+
+ t = Text()
+ print(isinstance(Text, RichRenderable))
+ print(isinstance(t, RichRenderable))
+
+ class Foo:
+ pass
+
+ f = Foo()
+ print(isinstance(f, RichRenderable))
+ print(isinstance("", RichRenderable))
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/align.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/align.py
new file mode 100644
index 0000000000000000000000000000000000000000..2fa66b1ad3ceb923892aed0d43dcb141b3e3e7e7
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/align.py
@@ -0,0 +1,320 @@
+from itertools import chain
+from typing import TYPE_CHECKING, Iterable, Optional, Literal
+
+from .constrain import Constrain
+from .jupyter import JupyterMixin
+from .measure import Measurement
+from .segment import Segment
+from .style import StyleType
+
+if TYPE_CHECKING:
+ from .console import Console, ConsoleOptions, RenderableType, RenderResult
+
+AlignMethod = Literal["left", "center", "right"]
+VerticalAlignMethod = Literal["top", "middle", "bottom"]
+
+
+class Align(JupyterMixin):
+ """Align a renderable by adding spaces if necessary.
+
+ Args:
+ renderable (RenderableType): A console renderable.
+ align (AlignMethod): One of "left", "center", or "right""
+ style (StyleType, optional): An optional style to apply to the background.
+ vertical (Optional[VerticalAlignMethod], optional): Optional vertical align, one of "top", "middle", or "bottom". Defaults to None.
+ pad (bool, optional): Pad the right with spaces. Defaults to True.
+ width (int, optional): Restrict contents to given width, or None to use default width. Defaults to None.
+ height (int, optional): Set height of align renderable, or None to fit to contents. Defaults to None.
+
+ Raises:
+ ValueError: if ``align`` is not one of the expected values.
+
+ Example:
+ .. code-block:: python
+
+ from rich.console import Console
+ from rich.align import Align
+ from rich.panel import Panel
+
+ console = Console()
+ # Create a panel 20 characters wide
+ p = Panel("Hello, [b]World[/b]!", style="on green", width=20)
+
+ # Renders the panel centered in the terminal
+ console.print(Align(p, align="center"))
+ """
+
+ def __init__(
+ self,
+ renderable: "RenderableType",
+ align: AlignMethod = "left",
+ style: Optional[StyleType] = None,
+ *,
+ vertical: Optional[VerticalAlignMethod] = None,
+ pad: bool = True,
+ width: Optional[int] = None,
+ height: Optional[int] = None,
+ ) -> None:
+ if align not in ("left", "center", "right"):
+ raise ValueError(
+ f'invalid value for align, expected "left", "center", or "right" (not {align!r})'
+ )
+ if vertical is not None and vertical not in ("top", "middle", "bottom"):
+ raise ValueError(
+ f'invalid value for vertical, expected "top", "middle", or "bottom" (not {vertical!r})'
+ )
+ self.renderable = renderable
+ self.align = align
+ self.style = style
+ self.vertical = vertical
+ self.pad = pad
+ self.width = width
+ self.height = height
+
+ def __repr__(self) -> str:
+ return f"Align({self.renderable!r}, {self.align!r})"
+
+ @classmethod
+ def left(
+ cls,
+ renderable: "RenderableType",
+ style: Optional[StyleType] = None,
+ *,
+ vertical: Optional[VerticalAlignMethod] = None,
+ pad: bool = True,
+ width: Optional[int] = None,
+ height: Optional[int] = None,
+ ) -> "Align":
+ """Align a renderable to the left."""
+ return cls(
+ renderable,
+ "left",
+ style=style,
+ vertical=vertical,
+ pad=pad,
+ width=width,
+ height=height,
+ )
+
+ @classmethod
+ def center(
+ cls,
+ renderable: "RenderableType",
+ style: Optional[StyleType] = None,
+ *,
+ vertical: Optional[VerticalAlignMethod] = None,
+ pad: bool = True,
+ width: Optional[int] = None,
+ height: Optional[int] = None,
+ ) -> "Align":
+ """Align a renderable to the center."""
+ return cls(
+ renderable,
+ "center",
+ style=style,
+ vertical=vertical,
+ pad=pad,
+ width=width,
+ height=height,
+ )
+
+ @classmethod
+ def right(
+ cls,
+ renderable: "RenderableType",
+ style: Optional[StyleType] = None,
+ *,
+ vertical: Optional[VerticalAlignMethod] = None,
+ pad: bool = True,
+ width: Optional[int] = None,
+ height: Optional[int] = None,
+ ) -> "Align":
+ """Align a renderable to the right."""
+ return cls(
+ renderable,
+ "right",
+ style=style,
+ vertical=vertical,
+ pad=pad,
+ width=width,
+ height=height,
+ )
+
+ def __rich_console__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "RenderResult":
+ align = self.align
+ width = console.measure(self.renderable, options=options).maximum
+ rendered = console.render(
+ Constrain(
+ self.renderable, width if self.width is None else min(width, self.width)
+ ),
+ options.update(height=None),
+ )
+ lines = list(Segment.split_lines(rendered))
+ width, height = Segment.get_shape(lines)
+ lines = Segment.set_shape(lines, width, height)
+ new_line = Segment.line()
+ excess_space = options.max_width - width
+ style = console.get_style(self.style) if self.style is not None else None
+
+ def generate_segments() -> Iterable[Segment]:
+ if excess_space <= 0:
+ # Exact fit
+ for line in lines:
+ yield from line
+ yield new_line
+
+ elif align == "left":
+ # Pad on the right
+ pad = Segment(" " * excess_space, style) if self.pad else None
+ for line in lines:
+ yield from line
+ if pad:
+ yield pad
+ yield new_line
+
+ elif align == "center":
+ # Pad left and right
+ left = excess_space // 2
+ pad = Segment(" " * left, style)
+ pad_right = (
+ Segment(" " * (excess_space - left), style) if self.pad else None
+ )
+ for line in lines:
+ if left:
+ yield pad
+ yield from line
+ if pad_right:
+ yield pad_right
+ yield new_line
+
+ elif align == "right":
+ # Padding on left
+ pad = Segment(" " * excess_space, style)
+ for line in lines:
+ yield pad
+ yield from line
+ yield new_line
+
+ blank_line = (
+ Segment(f"{' ' * (self.width or options.max_width)}\n", style)
+ if self.pad
+ else Segment("\n")
+ )
+
+ def blank_lines(count: int) -> Iterable[Segment]:
+ if count > 0:
+ for _ in range(count):
+ yield blank_line
+
+ vertical_height = self.height or options.height
+ iter_segments: Iterable[Segment]
+ if self.vertical and vertical_height is not None:
+ if self.vertical == "top":
+ bottom_space = vertical_height - height
+ iter_segments = chain(generate_segments(), blank_lines(bottom_space))
+ elif self.vertical == "middle":
+ top_space = (vertical_height - height) // 2
+ bottom_space = vertical_height - top_space - height
+ iter_segments = chain(
+ blank_lines(top_space),
+ generate_segments(),
+ blank_lines(bottom_space),
+ )
+ else: # self.vertical == "bottom":
+ top_space = vertical_height - height
+ iter_segments = chain(blank_lines(top_space), generate_segments())
+ else:
+ iter_segments = generate_segments()
+ if self.style:
+ style = console.get_style(self.style)
+ iter_segments = Segment.apply_style(iter_segments, style)
+ yield from iter_segments
+
+ def __rich_measure__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> Measurement:
+ measurement = Measurement.get(console, options, self.renderable)
+ return measurement
+
+
+class VerticalCenter(JupyterMixin):
+ """Vertically aligns a renderable.
+
+ Warn:
+ This class is deprecated and may be removed in a future version. Use Align class with
+ `vertical="middle"`.
+
+ Args:
+ renderable (RenderableType): A renderable object.
+ style (StyleType, optional): An optional style to apply to the background. Defaults to None.
+ """
+
+ def __init__(
+ self,
+ renderable: "RenderableType",
+ style: Optional[StyleType] = None,
+ ) -> None:
+ self.renderable = renderable
+ self.style = style
+
+ def __repr__(self) -> str:
+ return f"VerticalCenter({self.renderable!r})"
+
+ def __rich_console__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "RenderResult":
+ style = console.get_style(self.style) if self.style is not None else None
+ lines = console.render_lines(
+ self.renderable, options.update(height=None), pad=False
+ )
+ width, _height = Segment.get_shape(lines)
+ new_line = Segment.line()
+ height = options.height or options.size.height
+ top_space = (height - len(lines)) // 2
+ bottom_space = height - top_space - len(lines)
+ blank_line = Segment(f"{' ' * width}", style)
+
+ def blank_lines(count: int) -> Iterable[Segment]:
+ for _ in range(count):
+ yield blank_line
+ yield new_line
+
+ if top_space > 0:
+ yield from blank_lines(top_space)
+ for line in lines:
+ yield from line
+ yield new_line
+ if bottom_space > 0:
+ yield from blank_lines(bottom_space)
+
+ def __rich_measure__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> Measurement:
+ measurement = Measurement.get(console, options, self.renderable)
+ return measurement
+
+
+if __name__ == "__main__": # pragma: no cover
+ from rich.console import Console, Group
+ from rich.highlighter import ReprHighlighter
+ from rich.panel import Panel
+
+ highlighter = ReprHighlighter()
+ console = Console()
+
+ panel = Panel(
+ Group(
+ Align.left(highlighter("align='left'")),
+ Align.center(highlighter("align='center'")),
+ Align.right(highlighter("align='right'")),
+ ),
+ width=60,
+ style="on dark_blue",
+ title="Align",
+ )
+
+ console.print(
+ Align.center(panel, vertical="middle", style="on red", height=console.height)
+ )
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/ansi.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/ansi.py
new file mode 100644
index 0000000000000000000000000000000000000000..7bbcb0bfcc656bd219b195c500c657a8bdb838f7
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/ansi.py
@@ -0,0 +1,241 @@
+import re
+import sys
+from contextlib import suppress
+from typing import Iterable, NamedTuple, Optional
+
+from .color import Color
+from .style import Style
+from .text import Text
+
+re_ansi = re.compile(
+ r"""
+(?:\x1b[0-?])|
+(?:\x1b\](.*?)\x1b\\)|
+(?:\x1b([(@-Z\\-_]|\[[0-?]*[ -/]*[@-~]))
+""",
+ re.VERBOSE,
+)
+
+
+class _AnsiToken(NamedTuple):
+ """Result of ansi tokenized string."""
+
+ plain: str = ""
+ sgr: Optional[str] = ""
+ osc: Optional[str] = ""
+
+
+def _ansi_tokenize(ansi_text: str) -> Iterable[_AnsiToken]:
+ """Tokenize a string in to plain text and ANSI codes.
+
+ Args:
+ ansi_text (str): A String containing ANSI codes.
+
+ Yields:
+ AnsiToken: A named tuple of (plain, sgr, osc)
+ """
+
+ position = 0
+ sgr: Optional[str]
+ osc: Optional[str]
+ for match in re_ansi.finditer(ansi_text):
+ start, end = match.span(0)
+ osc, sgr = match.groups()
+ if start > position:
+ yield _AnsiToken(ansi_text[position:start])
+ if sgr:
+ if sgr == "(":
+ position = end + 1
+ continue
+ if sgr.endswith("m"):
+ yield _AnsiToken("", sgr[1:-1], osc)
+ else:
+ yield _AnsiToken("", sgr, osc)
+ position = end
+ if position < len(ansi_text):
+ yield _AnsiToken(ansi_text[position:])
+
+
+SGR_STYLE_MAP = {
+ 1: "bold",
+ 2: "dim",
+ 3: "italic",
+ 4: "underline",
+ 5: "blink",
+ 6: "blink2",
+ 7: "reverse",
+ 8: "conceal",
+ 9: "strike",
+ 21: "underline2",
+ 22: "not dim not bold",
+ 23: "not italic",
+ 24: "not underline",
+ 25: "not blink",
+ 26: "not blink2",
+ 27: "not reverse",
+ 28: "not conceal",
+ 29: "not strike",
+ 30: "color(0)",
+ 31: "color(1)",
+ 32: "color(2)",
+ 33: "color(3)",
+ 34: "color(4)",
+ 35: "color(5)",
+ 36: "color(6)",
+ 37: "color(7)",
+ 39: "default",
+ 40: "on color(0)",
+ 41: "on color(1)",
+ 42: "on color(2)",
+ 43: "on color(3)",
+ 44: "on color(4)",
+ 45: "on color(5)",
+ 46: "on color(6)",
+ 47: "on color(7)",
+ 49: "on default",
+ 51: "frame",
+ 52: "encircle",
+ 53: "overline",
+ 54: "not frame not encircle",
+ 55: "not overline",
+ 90: "color(8)",
+ 91: "color(9)",
+ 92: "color(10)",
+ 93: "color(11)",
+ 94: "color(12)",
+ 95: "color(13)",
+ 96: "color(14)",
+ 97: "color(15)",
+ 100: "on color(8)",
+ 101: "on color(9)",
+ 102: "on color(10)",
+ 103: "on color(11)",
+ 104: "on color(12)",
+ 105: "on color(13)",
+ 106: "on color(14)",
+ 107: "on color(15)",
+}
+
+
+class AnsiDecoder:
+ """Translate ANSI code in to styled Text."""
+
+ def __init__(self) -> None:
+ self.style = Style.null()
+
+ def decode(self, terminal_text: str) -> Iterable[Text]:
+ """Decode ANSI codes in an iterable of lines.
+
+ Args:
+ terminal_text: Output potentially containing ANSI escape sequences.
+
+ Yields:
+ Text: Marked up Text.
+ """
+ for line in re.split(r"(?<=\n)", terminal_text):
+ yield self.decode_line(line.rstrip("\n"))
+
+ def decode_line(self, line: str) -> Text:
+ """Decode a line containing ansi codes.
+
+ Args:
+ line (str): A line of terminal output.
+
+ Returns:
+ Text: A Text instance marked up according to ansi codes.
+ """
+ from_ansi = Color.from_ansi
+ from_rgb = Color.from_rgb
+ _Style = Style
+ text = Text()
+ append = text.append
+ line = line.rsplit("\r", 1)[-1]
+ for plain_text, sgr, osc in _ansi_tokenize(line):
+ if plain_text:
+ append(plain_text, self.style or None)
+ elif osc is not None:
+ if osc.startswith("8;"):
+ _params, semicolon, link = osc[2:].partition(";")
+ if semicolon:
+ self.style = self.style.update_link(link or None)
+ elif sgr is not None:
+ # Translate in to semi-colon separated codes
+ # Ignore invalid codes, because we want to be lenient
+ codes = [
+ min(255, int(_code) if _code else 0)
+ for _code in sgr.split(";")
+ if _code.isdigit() or _code == ""
+ ]
+ iter_codes = iter(codes)
+ for code in iter_codes:
+ if code == 0:
+ # reset
+ self.style = _Style.null()
+ elif code in SGR_STYLE_MAP:
+ # styles
+ self.style += _Style.parse(SGR_STYLE_MAP[code])
+ elif code == 38:
+ # Foreground
+ with suppress(StopIteration):
+ color_type = next(iter_codes)
+ if color_type == 5:
+ self.style += _Style.from_color(
+ from_ansi(next(iter_codes))
+ )
+ elif color_type == 2:
+ self.style += _Style.from_color(
+ from_rgb(
+ next(iter_codes),
+ next(iter_codes),
+ next(iter_codes),
+ )
+ )
+ elif code == 48:
+ # Background
+ with suppress(StopIteration):
+ color_type = next(iter_codes)
+ if color_type == 5:
+ self.style += _Style.from_color(
+ None, from_ansi(next(iter_codes))
+ )
+ elif color_type == 2:
+ self.style += _Style.from_color(
+ None,
+ from_rgb(
+ next(iter_codes),
+ next(iter_codes),
+ next(iter_codes),
+ ),
+ )
+
+ return text
+
+
+if sys.platform != "win32" and __name__ == "__main__": # pragma: no cover
+ import io
+ import os
+ import pty
+ import sys
+
+ decoder = AnsiDecoder()
+
+ stdout = io.BytesIO()
+
+ def read(fd: int) -> bytes:
+ data = os.read(fd, 1024)
+ stdout.write(data)
+ return data
+
+ pty.spawn(sys.argv[1:], read)
+
+ from .console import Console
+
+ console = Console(record=True)
+
+ stdout_result = stdout.getvalue().decode("utf-8")
+ print(stdout_result)
+
+ for line in decoder.decode(stdout_result):
+ console.print(line)
+
+ console.save_html("stdout.html")
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/bar.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/bar.py
new file mode 100644
index 0000000000000000000000000000000000000000..022284b57881d8b133aced5b5a843e6447bb4e0b
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/bar.py
@@ -0,0 +1,93 @@
+from typing import Optional, Union
+
+from .color import Color
+from .console import Console, ConsoleOptions, RenderResult
+from .jupyter import JupyterMixin
+from .measure import Measurement
+from .segment import Segment
+from .style import Style
+
+# There are left-aligned characters for 1/8 to 7/8, but
+# the right-aligned characters exist only for 1/8 and 4/8.
+BEGIN_BLOCK_ELEMENTS = ["█", "█", "█", "▐", "▐", "▐", "▕", "▕"]
+END_BLOCK_ELEMENTS = [" ", "▏", "▎", "▍", "▌", "▋", "▊", "▉"]
+FULL_BLOCK = "█"
+
+
+class Bar(JupyterMixin):
+ """Renders a solid block bar.
+
+ Args:
+ size (float): Value for the end of the bar.
+ begin (float): Begin point (between 0 and size, inclusive).
+ end (float): End point (between 0 and size, inclusive).
+ width (int, optional): Width of the bar, or ``None`` for maximum width. Defaults to None.
+ color (Union[Color, str], optional): Color of the bar. Defaults to "default".
+ bgcolor (Union[Color, str], optional): Color of bar background. Defaults to "default".
+ """
+
+ def __init__(
+ self,
+ size: float,
+ begin: float,
+ end: float,
+ *,
+ width: Optional[int] = None,
+ color: Union[Color, str] = "default",
+ bgcolor: Union[Color, str] = "default",
+ ):
+ self.size = size
+ self.begin = max(begin, 0)
+ self.end = min(end, size)
+ self.width = width
+ self.style = Style(color=color, bgcolor=bgcolor)
+
+ def __repr__(self) -> str:
+ return f"Bar({self.size}, {self.begin}, {self.end})"
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ width = min(
+ self.width if self.width is not None else options.max_width,
+ options.max_width,
+ )
+
+ if self.begin >= self.end:
+ yield Segment(" " * width, self.style)
+ yield Segment.line()
+ return
+
+ prefix_complete_eights = int(width * 8 * self.begin / self.size)
+ prefix_bar_count = prefix_complete_eights // 8
+ prefix_eights_count = prefix_complete_eights % 8
+
+ body_complete_eights = int(width * 8 * self.end / self.size)
+ body_bar_count = body_complete_eights // 8
+ body_eights_count = body_complete_eights % 8
+
+ # When start and end fall into the same cell, we ideally should render
+ # a symbol that's "center-aligned", but there is no good symbol in Unicode.
+ # In this case, we fall back to right-aligned block symbol for simplicity.
+
+ prefix = " " * prefix_bar_count
+ if prefix_eights_count:
+ prefix += BEGIN_BLOCK_ELEMENTS[prefix_eights_count]
+
+ body = FULL_BLOCK * body_bar_count
+ if body_eights_count:
+ body += END_BLOCK_ELEMENTS[body_eights_count]
+
+ suffix = " " * (width - len(body))
+
+ yield Segment(prefix + body[len(prefix) :] + suffix, self.style)
+ yield Segment.line()
+
+ def __rich_measure__(
+ self, console: Console, options: ConsoleOptions
+ ) -> Measurement:
+ return (
+ Measurement(self.width, self.width)
+ if self.width is not None
+ else Measurement(4, options.max_width)
+ )
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/box.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/box.py
new file mode 100644
index 0000000000000000000000000000000000000000..82555b61cd29efab220cf47b9fb3c26b80e8adde
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/box.py
@@ -0,0 +1,474 @@
+from typing import TYPE_CHECKING, Iterable, List, Literal
+
+
+from ._loop import loop_last
+
+if TYPE_CHECKING:
+ from rich.console import ConsoleOptions
+
+
+class Box:
+ """Defines characters to render boxes.
+
+ ┌─┬┐ top
+ │ ││ head
+ ├─┼┤ head_row
+ │ ││ mid
+ ├─┼┤ row
+ ├─┼┤ foot_row
+ │ ││ foot
+ └─┴┘ bottom
+
+ Args:
+ box (str): Characters making up box.
+ ascii (bool, optional): True if this box uses ascii characters only. Default is False.
+ """
+
+ def __init__(self, box: str, *, ascii: bool = False) -> None:
+ self._box = box
+ self.ascii = ascii
+ line1, line2, line3, line4, line5, line6, line7, line8 = box.splitlines()
+ # top
+ self.top_left, self.top, self.top_divider, self.top_right = iter(line1)
+ # head
+ self.head_left, _, self.head_vertical, self.head_right = iter(line2)
+ # head_row
+ (
+ self.head_row_left,
+ self.head_row_horizontal,
+ self.head_row_cross,
+ self.head_row_right,
+ ) = iter(line3)
+
+ # mid
+ self.mid_left, _, self.mid_vertical, self.mid_right = iter(line4)
+ # row
+ self.row_left, self.row_horizontal, self.row_cross, self.row_right = iter(line5)
+ # foot_row
+ (
+ self.foot_row_left,
+ self.foot_row_horizontal,
+ self.foot_row_cross,
+ self.foot_row_right,
+ ) = iter(line6)
+ # foot
+ self.foot_left, _, self.foot_vertical, self.foot_right = iter(line7)
+ # bottom
+ self.bottom_left, self.bottom, self.bottom_divider, self.bottom_right = iter(
+ line8
+ )
+
+ def __repr__(self) -> str:
+ return "Box(...)"
+
+ def __str__(self) -> str:
+ return self._box
+
+ def substitute(self, options: "ConsoleOptions", safe: bool = True) -> "Box":
+ """Substitute this box for another if it won't render due to platform issues.
+
+ Args:
+ options (ConsoleOptions): Console options used in rendering.
+ safe (bool, optional): Substitute this for another Box if there are known problems
+ displaying on the platform (currently only relevant on Windows). Default is True.
+
+ Returns:
+ Box: A different Box or the same Box.
+ """
+ box = self
+ if options.legacy_windows and safe:
+ box = LEGACY_WINDOWS_SUBSTITUTIONS.get(box, box)
+ if options.ascii_only and not box.ascii:
+ box = ASCII
+ return box
+
+ def get_plain_headed_box(self) -> "Box":
+ """If this box uses special characters for the borders of the header, then
+ return the equivalent box that does not.
+
+ Returns:
+ Box: The most similar Box that doesn't use header-specific box characters.
+ If the current Box already satisfies this criterion, then it's returned.
+ """
+ return PLAIN_HEADED_SUBSTITUTIONS.get(self, self)
+
+ def get_top(self, widths: Iterable[int]) -> str:
+ """Get the top of a simple box.
+
+ Args:
+ widths (List[int]): Widths of columns.
+
+ Returns:
+ str: A string of box characters.
+ """
+
+ parts: List[str] = []
+ append = parts.append
+ append(self.top_left)
+ for last, width in loop_last(widths):
+ append(self.top * width)
+ if not last:
+ append(self.top_divider)
+ append(self.top_right)
+ return "".join(parts)
+
+ def get_row(
+ self,
+ widths: Iterable[int],
+ level: Literal["head", "row", "foot", "mid"] = "row",
+ edge: bool = True,
+ ) -> str:
+ """Get the top of a simple box.
+
+ Args:
+ width (List[int]): Widths of columns.
+
+ Returns:
+ str: A string of box characters.
+ """
+ if level == "head":
+ left = self.head_row_left
+ horizontal = self.head_row_horizontal
+ cross = self.head_row_cross
+ right = self.head_row_right
+ elif level == "row":
+ left = self.row_left
+ horizontal = self.row_horizontal
+ cross = self.row_cross
+ right = self.row_right
+ elif level == "mid":
+ left = self.mid_left
+ horizontal = " "
+ cross = self.mid_vertical
+ right = self.mid_right
+ elif level == "foot":
+ left = self.foot_row_left
+ horizontal = self.foot_row_horizontal
+ cross = self.foot_row_cross
+ right = self.foot_row_right
+ else:
+ raise ValueError("level must be 'head', 'row' or 'foot'")
+
+ parts: List[str] = []
+ append = parts.append
+ if edge:
+ append(left)
+ for last, width in loop_last(widths):
+ append(horizontal * width)
+ if not last:
+ append(cross)
+ if edge:
+ append(right)
+ return "".join(parts)
+
+ def get_bottom(self, widths: Iterable[int]) -> str:
+ """Get the bottom of a simple box.
+
+ Args:
+ widths (List[int]): Widths of columns.
+
+ Returns:
+ str: A string of box characters.
+ """
+
+ parts: List[str] = []
+ append = parts.append
+ append(self.bottom_left)
+ for last, width in loop_last(widths):
+ append(self.bottom * width)
+ if not last:
+ append(self.bottom_divider)
+ append(self.bottom_right)
+ return "".join(parts)
+
+
+# fmt: off
+ASCII: Box = Box(
+ "+--+\n"
+ "| ||\n"
+ "|-+|\n"
+ "| ||\n"
+ "|-+|\n"
+ "|-+|\n"
+ "| ||\n"
+ "+--+\n",
+ ascii=True,
+)
+
+ASCII2: Box = Box(
+ "+-++\n"
+ "| ||\n"
+ "+-++\n"
+ "| ||\n"
+ "+-++\n"
+ "+-++\n"
+ "| ||\n"
+ "+-++\n",
+ ascii=True,
+)
+
+ASCII_DOUBLE_HEAD: Box = Box(
+ "+-++\n"
+ "| ||\n"
+ "+=++\n"
+ "| ||\n"
+ "+-++\n"
+ "+-++\n"
+ "| ||\n"
+ "+-++\n",
+ ascii=True,
+)
+
+SQUARE: Box = Box(
+ "┌─┬┐\n"
+ "│ ││\n"
+ "├─┼┤\n"
+ "│ ││\n"
+ "├─┼┤\n"
+ "├─┼┤\n"
+ "│ ││\n"
+ "└─┴┘\n"
+)
+
+SQUARE_DOUBLE_HEAD: Box = Box(
+ "┌─┬┐\n"
+ "│ ││\n"
+ "╞═╪╡\n"
+ "│ ││\n"
+ "├─┼┤\n"
+ "├─┼┤\n"
+ "│ ││\n"
+ "└─┴┘\n"
+)
+
+MINIMAL: Box = Box(
+ " ╷ \n"
+ " │ \n"
+ "╶─┼╴\n"
+ " │ \n"
+ "╶─┼╴\n"
+ "╶─┼╴\n"
+ " │ \n"
+ " ╵ \n"
+)
+
+
+MINIMAL_HEAVY_HEAD: Box = Box(
+ " ╷ \n"
+ " │ \n"
+ "╺━┿╸\n"
+ " │ \n"
+ "╶─┼╴\n"
+ "╶─┼╴\n"
+ " │ \n"
+ " ╵ \n"
+)
+
+MINIMAL_DOUBLE_HEAD: Box = Box(
+ " ╷ \n"
+ " │ \n"
+ " ═╪ \n"
+ " │ \n"
+ " ─┼ \n"
+ " ─┼ \n"
+ " │ \n"
+ " ╵ \n"
+)
+
+
+SIMPLE: Box = Box(
+ " \n"
+ " \n"
+ " ── \n"
+ " \n"
+ " \n"
+ " ── \n"
+ " \n"
+ " \n"
+)
+
+SIMPLE_HEAD: Box = Box(
+ " \n"
+ " \n"
+ " ── \n"
+ " \n"
+ " \n"
+ " \n"
+ " \n"
+ " \n"
+)
+
+
+SIMPLE_HEAVY: Box = Box(
+ " \n"
+ " \n"
+ " ━━ \n"
+ " \n"
+ " \n"
+ " ━━ \n"
+ " \n"
+ " \n"
+)
+
+
+HORIZONTALS: Box = Box(
+ " ── \n"
+ " \n"
+ " ── \n"
+ " \n"
+ " ── \n"
+ " ── \n"
+ " \n"
+ " ── \n"
+)
+
+ROUNDED: Box = Box(
+ "╭─┬╮\n"
+ "│ ││\n"
+ "├─┼┤\n"
+ "│ ││\n"
+ "├─┼┤\n"
+ "├─┼┤\n"
+ "│ ││\n"
+ "╰─┴╯\n"
+)
+
+HEAVY: Box = Box(
+ "┏━┳┓\n"
+ "┃ ┃┃\n"
+ "┣━╋┫\n"
+ "┃ ┃┃\n"
+ "┣━╋┫\n"
+ "┣━╋┫\n"
+ "┃ ┃┃\n"
+ "┗━┻┛\n"
+)
+
+HEAVY_EDGE: Box = Box(
+ "┏━┯┓\n"
+ "┃ │┃\n"
+ "┠─┼┨\n"
+ "┃ │┃\n"
+ "┠─┼┨\n"
+ "┠─┼┨\n"
+ "┃ │┃\n"
+ "┗━┷┛\n"
+)
+
+HEAVY_HEAD: Box = Box(
+ "┏━┳┓\n"
+ "┃ ┃┃\n"
+ "┡━╇┩\n"
+ "│ ││\n"
+ "├─┼┤\n"
+ "├─┼┤\n"
+ "│ ││\n"
+ "└─┴┘\n"
+)
+
+DOUBLE: Box = Box(
+ "╔═╦╗\n"
+ "║ ║║\n"
+ "╠═╬╣\n"
+ "║ ║║\n"
+ "╠═╬╣\n"
+ "╠═╬╣\n"
+ "║ ║║\n"
+ "╚═╩╝\n"
+)
+
+DOUBLE_EDGE: Box = Box(
+ "╔═╤╗\n"
+ "║ │║\n"
+ "╟─┼╢\n"
+ "║ │║\n"
+ "╟─┼╢\n"
+ "╟─┼╢\n"
+ "║ │║\n"
+ "╚═╧╝\n"
+)
+
+MARKDOWN: Box = Box(
+ " \n"
+ "| ||\n"
+ "|-||\n"
+ "| ||\n"
+ "|-||\n"
+ "|-||\n"
+ "| ||\n"
+ " \n",
+ ascii=True,
+)
+# fmt: on
+
+# Map Boxes that don't render with raster fonts on to equivalent that do
+LEGACY_WINDOWS_SUBSTITUTIONS = {
+ ROUNDED: SQUARE,
+ MINIMAL_HEAVY_HEAD: MINIMAL,
+ SIMPLE_HEAVY: SIMPLE,
+ HEAVY: SQUARE,
+ HEAVY_EDGE: SQUARE,
+ HEAVY_HEAD: SQUARE,
+}
+
+# Map headed boxes to their headerless equivalents
+PLAIN_HEADED_SUBSTITUTIONS = {
+ HEAVY_HEAD: SQUARE,
+ SQUARE_DOUBLE_HEAD: SQUARE,
+ MINIMAL_DOUBLE_HEAD: MINIMAL,
+ MINIMAL_HEAVY_HEAD: MINIMAL,
+ ASCII_DOUBLE_HEAD: ASCII2,
+}
+
+
+if __name__ == "__main__": # pragma: no cover
+ from rich.columns import Columns
+ from rich.panel import Panel
+
+ from . import box as box
+ from .console import Console
+ from .table import Table
+ from .text import Text
+
+ console = Console(record=True)
+
+ BOXES = [
+ "ASCII",
+ "ASCII2",
+ "ASCII_DOUBLE_HEAD",
+ "SQUARE",
+ "SQUARE_DOUBLE_HEAD",
+ "MINIMAL",
+ "MINIMAL_HEAVY_HEAD",
+ "MINIMAL_DOUBLE_HEAD",
+ "SIMPLE",
+ "SIMPLE_HEAD",
+ "SIMPLE_HEAVY",
+ "HORIZONTALS",
+ "ROUNDED",
+ "HEAVY",
+ "HEAVY_EDGE",
+ "HEAVY_HEAD",
+ "DOUBLE",
+ "DOUBLE_EDGE",
+ "MARKDOWN",
+ ]
+
+ console.print(Panel("[bold green]Box Constants", style="green"), justify="center")
+ console.print()
+
+ columns = Columns(expand=True, padding=2)
+ for box_name in sorted(BOXES):
+ table = Table(
+ show_footer=True, style="dim", border_style="not dim", expand=True
+ )
+ table.add_column("Header 1", "Footer 1")
+ table.add_column("Header 2", "Footer 2")
+ table.add_row("Cell", "Cell")
+ table.add_row("Cell", "Cell")
+ table.box = getattr(box, box_name)
+ table.title = Text(f"box.{box_name}", style="magenta")
+ columns.add_renderable(table)
+ console.print(columns)
+
+ # console.save_svg("box.svg")
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/cells.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/cells.py
new file mode 100644
index 0000000000000000000000000000000000000000..9d590b04e89b81a592f82ddd64aa5ccd50e36e9c
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/cells.py
@@ -0,0 +1,352 @@
+from __future__ import annotations
+
+from functools import lru_cache
+from operator import itemgetter
+from typing import Callable, NamedTuple, Sequence, Tuple
+
+from rich._unicode_data import load as load_cell_table
+
+CellSpan = Tuple[int, int, int]
+
+_span_get_cell_len = itemgetter(2)
+
+# Ranges of unicode ordinals that produce a 1-cell wide character
+# This is non-exhaustive, but covers most common Western characters
+_SINGLE_CELL_UNICODE_RANGES: list[tuple[int, int]] = [
+ (0x20, 0x7E), # Latin (excluding non-printable)
+ (0xA0, 0xAC),
+ (0xAE, 0x002FF),
+ (0x00370, 0x00482), # Greek / Cyrillic
+ (0x02500, 0x025FC), # Box drawing, box elements, geometric shapes
+ (0x02800, 0x028FF), # Braille
+]
+
+# A frozen set of characters that are a single cell wide
+_SINGLE_CELLS = frozenset(
+ [
+ character
+ for _start, _end in _SINGLE_CELL_UNICODE_RANGES
+ for character in map(chr, range(_start, _end + 1))
+ ]
+)
+
+# When called with a string this will return True if all
+# characters are single-cell, otherwise False
+_is_single_cell_widths: Callable[[str], bool] = _SINGLE_CELLS.issuperset
+
+
+class CellTable(NamedTuple):
+ """Contains unicode data required to measure the cell widths of glyphs."""
+
+ unicode_version: str
+ widths: Sequence[tuple[int, int, int]]
+ narrow_to_wide: frozenset[str]
+
+
+@lru_cache(maxsize=4096)
+def get_character_cell_size(character: str, unicode_version: str = "auto") -> int:
+ """Get the cell size of a character.
+
+ Args:
+ character (str): A single character.
+ unicode_version: Unicode version, `"auto"` to auto detect, `"latest"` for the latest unicode version.
+
+ Returns:
+ int: Number of cells (0, 1 or 2) occupied by that character.
+ """
+ codepoint = ord(character)
+ if codepoint and codepoint < 32 or 0x07F <= codepoint < 0x0A0:
+ return 0
+ table = load_cell_table(unicode_version).widths
+
+ last_entry = table[-1]
+ if codepoint > last_entry[1]:
+ return 1
+
+ lower_bound = 0
+ upper_bound = len(table) - 1
+
+ while lower_bound <= upper_bound:
+ index = (lower_bound + upper_bound) >> 1
+ start, end, width = table[index]
+ if codepoint < start:
+ upper_bound = index - 1
+ elif codepoint > end:
+ lower_bound = index + 1
+ else:
+ return width
+ return 1
+
+
+@lru_cache(4096)
+def cached_cell_len(text: str, unicode_version: str = "auto") -> int:
+ """Get the number of cells required to display text.
+
+ This method always caches, which may use up a lot of memory. It is recommended to use
+ `cell_len` over this method.
+
+ Args:
+ text (str): Text to display.
+ unicode_version: Unicode version, `"auto"` to auto detect, `"latest"` for the latest unicode version.
+
+ Returns:
+ int: Get the number of cells required to display text.
+ """
+ return _cell_len(text, unicode_version)
+
+
+def cell_len(text: str, unicode_version: str = "auto") -> int:
+ """Get the cell length of a string (length as it appears in the terminal).
+
+ Args:
+ text: String to measure.
+ unicode_version: Unicode version, `"auto"` to auto detect, `"latest"` for the latest unicode version.
+
+ Returns:
+ Length of string in terminal cells.
+ """
+ if len(text) < 512:
+ return cached_cell_len(text, unicode_version)
+ return _cell_len(text, unicode_version)
+
+
+def _cell_len(text: str, unicode_version: str) -> int:
+ """Get the cell length of a string (length as it appears in the terminal).
+
+ Args:
+ text: String to measure.
+ unicode_version: Unicode version, `"auto"` to auto detect, `"latest"` for the latest unicode version.
+
+ Returns:
+ Length of string in terminal cells.
+ """
+
+ if _is_single_cell_widths(text):
+ return len(text)
+
+ # "\u200d" is zero width joiner
+ # "\ufe0f" is variation selector 16
+ if "\u200d" not in text and "\ufe0f" not in text:
+ # Simplest case with no unicode stuff that changes the size
+ return sum(
+ get_character_cell_size(character, unicode_version) for character in text
+ )
+
+ cell_table = load_cell_table(unicode_version)
+ total_width = 0
+ last_measured_character: str | None = None
+
+ SPECIAL = {"\u200d", "\ufe0f"}
+
+ index = 0
+ character_count = len(text)
+
+ while index < character_count:
+ character = text[index]
+ if character in SPECIAL:
+ if character == "\u200d":
+ index += 1
+ elif last_measured_character:
+ total_width += last_measured_character in cell_table.narrow_to_wide
+ last_measured_character = None
+ else:
+ if character_width := get_character_cell_size(character, unicode_version):
+ last_measured_character = character
+ total_width += character_width
+ index += 1
+
+ return total_width
+
+
+def split_graphemes(
+ text: str, unicode_version: str = "auto"
+) -> "tuple[list[CellSpan], int]":
+ """Divide text into spans that define a single grapheme, and additionally return the cell length of the whole string.
+
+ The returned spans will cover every index in the string, with no gaps. It is possible for some graphemes to have a cell length of zero.
+ This can occur for nonsense strings like two zero width joiners, or for control codes that don't contribute to the grapheme size.
+
+ Args:
+ text: String to split.
+ unicode_version: Unicode version, `"auto"` to auto detect, `"latest"` for the latest unicode version.
+
+ Returns:
+ A tuple of a list of *spans* and the cell length of the entire string. A span is a list of tuples
+ of three values consisting of (, , ), where START and END are string indices,
+ and CELL LENGTH is the cell length of the single grapheme.
+ """
+
+ cell_table = load_cell_table(unicode_version)
+ codepoint_count = len(text)
+ index = 0
+ last_measured_character: str | None = None
+
+ total_width = 0
+ spans: list[tuple[int, int, int]] = []
+ SPECIAL = {"\u200d", "\ufe0f"}
+ while index < codepoint_count:
+ if (character := text[index]) in SPECIAL:
+ if not spans:
+ # ZWJ or variation selector at the beginning of the string doesn't really make sense.
+ # But handle it, we must.
+ spans.append((index, index := index + 1, 0))
+ continue
+ if character == "\u200d":
+ # zero width joiner
+ # The condition handles the case where a ZWJ is at the end of the string, and has nothing to join
+ index += 2 if index < (codepoint_count - 1) else 1
+ start, _end, cell_length = spans[-1]
+ spans[-1] = (start, index, cell_length)
+ else:
+ # variation selector 16
+ index += 1
+ if last_measured_character:
+ start, _end, cell_length = spans[-1]
+ if last_measured_character in cell_table.narrow_to_wide:
+ last_measured_character = None
+ cell_length += 1
+ total_width += 1
+ spans[-1] = (start, index, cell_length)
+ else:
+ # No previous character to change the size of.
+ # Shouldn't occur in practice.
+ # But handle it, we must.
+ start, _end, cell_length = spans[-1]
+ spans[-1] = (start, index, cell_length)
+ continue
+
+ if character_width := get_character_cell_size(character, unicode_version):
+ last_measured_character = character
+ spans.append((index, index := index + 1, character_width))
+ total_width += character_width
+ else:
+ # Character has zero width
+ if spans:
+ # zero width characters are associated with the previous character
+ start, _end, cell_length = spans[-1]
+ spans[-1] = (start, index := index + 1, cell_length)
+ else:
+ # A zero width character with no prior spans
+ spans.append((index, index := index + 1, 0))
+
+ return (spans, total_width)
+
+
+def _split_text(
+ text: str, cell_position: int, unicode_version: str = "auto"
+) -> tuple[str, str]:
+ """Split text by cell position.
+
+ If the cell position falls within a double width character, it is converted to two spaces.
+
+ Args:
+ text: Text to split.
+ cell_position Offset in cells.
+ unicode_version: Unicode version, `"auto"` to auto detect, `"latest"` for the latest unicode version.
+
+ Returns:
+ Tuple to two split strings.
+ """
+ if cell_position <= 0:
+ return "", text
+
+ spans, cell_length = split_graphemes(text, unicode_version)
+
+ # Guess initial offset
+ offset = int((cell_position / cell_length) * len(spans))
+ left_size = sum(map(_span_get_cell_len, spans[:offset]))
+
+ while True:
+ if left_size == cell_position:
+ if offset >= len(spans):
+ return text, ""
+ split_index = spans[offset][0]
+ return text[:split_index], text[split_index:]
+ if left_size < cell_position:
+ start, end, cell_size = spans[offset]
+ if left_size + cell_size > cell_position:
+ return text[:start] + " ", " " + text[end:]
+ offset += 1
+ left_size += cell_size
+ else: # left_size > cell_position
+ start, end, cell_size = spans[offset - 1]
+ if left_size - cell_size < cell_position:
+ return text[:start] + " ", " " + text[end:]
+ offset -= 1
+ left_size -= cell_size
+
+
+def split_text(
+ text: str, cell_position: int, unicode_version: str = "auto"
+) -> tuple[str, str]:
+ """Split text by cell position.
+
+ If the cell position falls within a double width character, it is converted to two spaces.
+
+ Args:
+ text: Text to split.
+ cell_position Offset in cells.
+ unicode_version: Unicode version, `"auto"` to auto detect, `"latest"` for the latest unicode version.
+
+ Returns:
+ Tuple to two split strings.
+ """
+ if _is_single_cell_widths(text):
+ return text[:cell_position], text[cell_position:]
+ return _split_text(text, cell_position, unicode_version)
+
+
+def set_cell_size(text: str, total: int, unicode_version: str = "auto") -> str:
+ """Adjust a string by cropping or padding with spaces such that it fits within the given number of cells.
+
+ Args:
+ text: String to adjust.
+ total: Desired size in cells.
+ unicode_version: Unicode version.
+
+ Returns:
+ A string with cell size equal to total.
+ """
+ if _is_single_cell_widths(text):
+ size = len(text)
+ if size < total:
+ return text + " " * (total - size)
+ return text[:total]
+ if total <= 0:
+ return ""
+ cell_size = cell_len(text)
+ if cell_size == total:
+ return text
+ if cell_size < total:
+ return text + " " * (total - cell_size)
+ text, _ = _split_text(text, total, unicode_version)
+ return text
+
+
+def chop_cells(text: str, width: int, unicode_version: str = "auto") -> list[str]:
+ """Split text into lines such that each line fits within the available (cell) width.
+
+ Args:
+ text: The text to fold such that it fits in the given width.
+ width: The width available (number of cells).
+
+ Returns:
+ A list of strings such that each string in the list has cell width
+ less than or equal to the available width.
+ """
+ if _is_single_cell_widths(text):
+ return [text[index : index + width] for index in range(0, len(text), width)]
+ spans, _ = split_graphemes(text, unicode_version)
+ line_size = 0 # Size of line in cells
+ lines: list[str] = []
+ line_offset = 0 # Offset (in codepoints) of start of line
+ for start, end, cell_size in spans:
+ if line_size + cell_size > width:
+ lines.append(text[line_offset:start])
+ line_offset = start
+ line_size = 0
+ line_size += cell_size
+ if line_size:
+ lines.append(text[line_offset:])
+
+ return lines
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/color.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/color.py
new file mode 100644
index 0000000000000000000000000000000000000000..e2c23a6a91b833fd9bb20bd5238421a5c0f08df3
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/color.py
@@ -0,0 +1,621 @@
+import re
+import sys
+from colorsys import rgb_to_hls
+from enum import IntEnum
+from functools import lru_cache
+from typing import TYPE_CHECKING, NamedTuple, Optional, Tuple
+
+from ._palettes import EIGHT_BIT_PALETTE, STANDARD_PALETTE, WINDOWS_PALETTE
+from .color_triplet import ColorTriplet
+from .repr import Result, rich_repr
+from .terminal_theme import DEFAULT_TERMINAL_THEME
+
+if TYPE_CHECKING: # pragma: no cover
+ from .terminal_theme import TerminalTheme
+ from .text import Text
+
+
+WINDOWS = sys.platform == "win32"
+
+
+class ColorSystem(IntEnum):
+ """One of the 3 color system supported by terminals."""
+
+ STANDARD = 1
+ EIGHT_BIT = 2
+ TRUECOLOR = 3
+ WINDOWS = 4
+
+ def __repr__(self) -> str:
+ return f"ColorSystem.{self.name}"
+
+ def __str__(self) -> str:
+ return repr(self)
+
+
+class ColorType(IntEnum):
+ """Type of color stored in Color class."""
+
+ DEFAULT = 0
+ STANDARD = 1
+ EIGHT_BIT = 2
+ TRUECOLOR = 3
+ WINDOWS = 4
+
+ def __repr__(self) -> str:
+ return f"ColorType.{self.name}"
+
+
+ANSI_COLOR_NAMES = {
+ "black": 0,
+ "red": 1,
+ "green": 2,
+ "yellow": 3,
+ "blue": 4,
+ "magenta": 5,
+ "cyan": 6,
+ "white": 7,
+ "bright_black": 8,
+ "bright_red": 9,
+ "bright_green": 10,
+ "bright_yellow": 11,
+ "bright_blue": 12,
+ "bright_magenta": 13,
+ "bright_cyan": 14,
+ "bright_white": 15,
+ "grey0": 16,
+ "gray0": 16,
+ "navy_blue": 17,
+ "dark_blue": 18,
+ "blue3": 20,
+ "blue1": 21,
+ "dark_green": 22,
+ "deep_sky_blue4": 25,
+ "dodger_blue3": 26,
+ "dodger_blue2": 27,
+ "green4": 28,
+ "spring_green4": 29,
+ "turquoise4": 30,
+ "deep_sky_blue3": 32,
+ "dodger_blue1": 33,
+ "green3": 40,
+ "spring_green3": 41,
+ "dark_cyan": 36,
+ "light_sea_green": 37,
+ "deep_sky_blue2": 38,
+ "deep_sky_blue1": 39,
+ "spring_green2": 47,
+ "cyan3": 43,
+ "dark_turquoise": 44,
+ "turquoise2": 45,
+ "green1": 46,
+ "spring_green1": 48,
+ "medium_spring_green": 49,
+ "cyan2": 50,
+ "cyan1": 51,
+ "dark_red": 88,
+ "deep_pink4": 125,
+ "purple4": 55,
+ "purple3": 56,
+ "blue_violet": 57,
+ "orange4": 94,
+ "grey37": 59,
+ "gray37": 59,
+ "medium_purple4": 60,
+ "slate_blue3": 62,
+ "royal_blue1": 63,
+ "chartreuse4": 64,
+ "dark_sea_green4": 71,
+ "pale_turquoise4": 66,
+ "steel_blue": 67,
+ "steel_blue3": 68,
+ "cornflower_blue": 69,
+ "chartreuse3": 76,
+ "cadet_blue": 73,
+ "sky_blue3": 74,
+ "steel_blue1": 81,
+ "pale_green3": 114,
+ "sea_green3": 78,
+ "aquamarine3": 79,
+ "medium_turquoise": 80,
+ "chartreuse2": 112,
+ "sea_green2": 83,
+ "sea_green1": 85,
+ "aquamarine1": 122,
+ "dark_slate_gray2": 87,
+ "dark_magenta": 91,
+ "dark_violet": 128,
+ "purple": 129,
+ "light_pink4": 95,
+ "plum4": 96,
+ "medium_purple3": 98,
+ "slate_blue1": 99,
+ "yellow4": 106,
+ "wheat4": 101,
+ "grey53": 102,
+ "gray53": 102,
+ "light_slate_grey": 103,
+ "light_slate_gray": 103,
+ "medium_purple": 104,
+ "light_slate_blue": 105,
+ "dark_olive_green3": 149,
+ "dark_sea_green": 108,
+ "light_sky_blue3": 110,
+ "sky_blue2": 111,
+ "dark_sea_green3": 150,
+ "dark_slate_gray3": 116,
+ "sky_blue1": 117,
+ "chartreuse1": 118,
+ "light_green": 120,
+ "pale_green1": 156,
+ "dark_slate_gray1": 123,
+ "red3": 160,
+ "medium_violet_red": 126,
+ "magenta3": 164,
+ "dark_orange3": 166,
+ "indian_red": 167,
+ "hot_pink3": 168,
+ "medium_orchid3": 133,
+ "medium_orchid": 134,
+ "medium_purple2": 140,
+ "dark_goldenrod": 136,
+ "light_salmon3": 173,
+ "rosy_brown": 138,
+ "grey63": 139,
+ "gray63": 139,
+ "medium_purple1": 141,
+ "gold3": 178,
+ "dark_khaki": 143,
+ "navajo_white3": 144,
+ "grey69": 145,
+ "gray69": 145,
+ "light_steel_blue3": 146,
+ "light_steel_blue": 147,
+ "yellow3": 184,
+ "dark_sea_green2": 157,
+ "light_cyan3": 152,
+ "light_sky_blue1": 153,
+ "green_yellow": 154,
+ "dark_olive_green2": 155,
+ "dark_sea_green1": 193,
+ "pale_turquoise1": 159,
+ "deep_pink3": 162,
+ "magenta2": 200,
+ "hot_pink2": 169,
+ "orchid": 170,
+ "medium_orchid1": 207,
+ "orange3": 172,
+ "light_pink3": 174,
+ "pink3": 175,
+ "plum3": 176,
+ "violet": 177,
+ "light_goldenrod3": 179,
+ "tan": 180,
+ "misty_rose3": 181,
+ "thistle3": 182,
+ "plum2": 183,
+ "khaki3": 185,
+ "light_goldenrod2": 222,
+ "light_yellow3": 187,
+ "grey84": 188,
+ "gray84": 188,
+ "light_steel_blue1": 189,
+ "yellow2": 190,
+ "dark_olive_green1": 192,
+ "honeydew2": 194,
+ "light_cyan1": 195,
+ "red1": 196,
+ "deep_pink2": 197,
+ "deep_pink1": 199,
+ "magenta1": 201,
+ "orange_red1": 202,
+ "indian_red1": 204,
+ "hot_pink": 206,
+ "dark_orange": 208,
+ "salmon1": 209,
+ "light_coral": 210,
+ "pale_violet_red1": 211,
+ "orchid2": 212,
+ "orchid1": 213,
+ "orange1": 214,
+ "sandy_brown": 215,
+ "light_salmon1": 216,
+ "light_pink1": 217,
+ "pink1": 218,
+ "plum1": 219,
+ "gold1": 220,
+ "navajo_white1": 223,
+ "misty_rose1": 224,
+ "thistle1": 225,
+ "yellow1": 226,
+ "light_goldenrod1": 227,
+ "khaki1": 228,
+ "wheat1": 229,
+ "cornsilk1": 230,
+ "grey100": 231,
+ "gray100": 231,
+ "grey3": 232,
+ "gray3": 232,
+ "grey7": 233,
+ "gray7": 233,
+ "grey11": 234,
+ "gray11": 234,
+ "grey15": 235,
+ "gray15": 235,
+ "grey19": 236,
+ "gray19": 236,
+ "grey23": 237,
+ "gray23": 237,
+ "grey27": 238,
+ "gray27": 238,
+ "grey30": 239,
+ "gray30": 239,
+ "grey35": 240,
+ "gray35": 240,
+ "grey39": 241,
+ "gray39": 241,
+ "grey42": 242,
+ "gray42": 242,
+ "grey46": 243,
+ "gray46": 243,
+ "grey50": 244,
+ "gray50": 244,
+ "grey54": 245,
+ "gray54": 245,
+ "grey58": 246,
+ "gray58": 246,
+ "grey62": 247,
+ "gray62": 247,
+ "grey66": 248,
+ "gray66": 248,
+ "grey70": 249,
+ "gray70": 249,
+ "grey74": 250,
+ "gray74": 250,
+ "grey78": 251,
+ "gray78": 251,
+ "grey82": 252,
+ "gray82": 252,
+ "grey85": 253,
+ "gray85": 253,
+ "grey89": 254,
+ "gray89": 254,
+ "grey93": 255,
+ "gray93": 255,
+}
+
+
+class ColorParseError(Exception):
+ """The color could not be parsed."""
+
+
+RE_COLOR = re.compile(
+ r"""^
+\#([0-9a-f]{6})$|
+color\(([0-9]{1,3})\)$|
+rgb\(([\d\s,]+)\)$
+""",
+ re.VERBOSE,
+)
+
+
+@rich_repr
+class Color(NamedTuple):
+ """Terminal color definition."""
+
+ name: str
+ """The name of the color (typically the input to Color.parse)."""
+ type: ColorType
+ """The type of the color."""
+ number: Optional[int] = None
+ """The color number, if a standard color, or None."""
+ triplet: Optional[ColorTriplet] = None
+ """A triplet of color components, if an RGB color."""
+
+ def __rich__(self) -> "Text":
+ """Displays the actual color if Rich printed."""
+ from .style import Style
+ from .text import Text
+
+ return Text.assemble(
+ f"",
+ )
+
+ def __rich_repr__(self) -> Result:
+ yield self.name
+ yield self.type
+ yield "number", self.number, None
+ yield "triplet", self.triplet, None
+
+ @property
+ def system(self) -> ColorSystem:
+ """Get the native color system for this color."""
+ if self.type == ColorType.DEFAULT:
+ return ColorSystem.STANDARD
+ return ColorSystem(int(self.type))
+
+ @property
+ def is_system_defined(self) -> bool:
+ """Check if the color is ultimately defined by the system."""
+ return self.system not in (ColorSystem.EIGHT_BIT, ColorSystem.TRUECOLOR)
+
+ @property
+ def is_default(self) -> bool:
+ """Check if the color is a default color."""
+ return self.type == ColorType.DEFAULT
+
+ def get_truecolor(
+ self, theme: Optional["TerminalTheme"] = None, foreground: bool = True
+ ) -> ColorTriplet:
+ """Get an equivalent color triplet for this color.
+
+ Args:
+ theme (TerminalTheme, optional): Optional terminal theme, or None to use default. Defaults to None.
+ foreground (bool, optional): True for a foreground color, or False for background. Defaults to True.
+
+ Returns:
+ ColorTriplet: A color triplet containing RGB components.
+ """
+
+ if theme is None:
+ theme = DEFAULT_TERMINAL_THEME
+ if self.type == ColorType.TRUECOLOR:
+ assert self.triplet is not None
+ return self.triplet
+ elif self.type == ColorType.EIGHT_BIT:
+ assert self.number is not None
+ return EIGHT_BIT_PALETTE[self.number]
+ elif self.type == ColorType.STANDARD:
+ assert self.number is not None
+ return theme.ansi_colors[self.number]
+ elif self.type == ColorType.WINDOWS:
+ assert self.number is not None
+ return WINDOWS_PALETTE[self.number]
+ else: # self.type == ColorType.DEFAULT:
+ assert self.number is None
+ return theme.foreground_color if foreground else theme.background_color
+
+ @classmethod
+ def from_ansi(cls, number: int) -> "Color":
+ """Create a Color number from it's 8-bit ansi number.
+
+ Args:
+ number (int): A number between 0-255 inclusive.
+
+ Returns:
+ Color: A new Color instance.
+ """
+ return cls(
+ name=f"color({number})",
+ type=(ColorType.STANDARD if number < 16 else ColorType.EIGHT_BIT),
+ number=number,
+ )
+
+ @classmethod
+ def from_triplet(cls, triplet: "ColorTriplet") -> "Color":
+ """Create a truecolor RGB color from a triplet of values.
+
+ Args:
+ triplet (ColorTriplet): A color triplet containing red, green and blue components.
+
+ Returns:
+ Color: A new color object.
+ """
+ return cls(name=triplet.hex, type=ColorType.TRUECOLOR, triplet=triplet)
+
+ @classmethod
+ def from_rgb(cls, red: float, green: float, blue: float) -> "Color":
+ """Create a truecolor from three color components in the range(0->255).
+
+ Args:
+ red (float): Red component in range 0-255.
+ green (float): Green component in range 0-255.
+ blue (float): Blue component in range 0-255.
+
+ Returns:
+ Color: A new color object.
+ """
+ return cls.from_triplet(ColorTriplet(int(red), int(green), int(blue)))
+
+ @classmethod
+ def default(cls) -> "Color":
+ """Get a Color instance representing the default color.
+
+ Returns:
+ Color: Default color.
+ """
+ return cls(name="default", type=ColorType.DEFAULT)
+
+ @classmethod
+ @lru_cache(maxsize=1024)
+ def parse(cls, color: str) -> "Color":
+ """Parse a color definition."""
+ original_color = color
+ color = color.lower().strip()
+
+ if color == "default":
+ return cls(color, type=ColorType.DEFAULT)
+
+ color_number = ANSI_COLOR_NAMES.get(color)
+ if color_number is not None:
+ return cls(
+ color,
+ type=(ColorType.STANDARD if color_number < 16 else ColorType.EIGHT_BIT),
+ number=color_number,
+ )
+
+ color_match = RE_COLOR.match(color)
+ if color_match is None:
+ raise ColorParseError(f"{original_color!r} is not a valid color")
+
+ color_24, color_8, color_rgb = color_match.groups()
+ if color_24:
+ triplet = ColorTriplet(
+ int(color_24[0:2], 16), int(color_24[2:4], 16), int(color_24[4:6], 16)
+ )
+ return cls(color, ColorType.TRUECOLOR, triplet=triplet)
+
+ elif color_8:
+ number = int(color_8)
+ if number > 255:
+ raise ColorParseError(f"color number must be <= 255 in {color!r}")
+ return cls(
+ color,
+ type=(ColorType.STANDARD if number < 16 else ColorType.EIGHT_BIT),
+ number=number,
+ )
+
+ else: # color_rgb:
+ components = color_rgb.split(",")
+ if len(components) != 3:
+ raise ColorParseError(
+ f"expected three components in {original_color!r}"
+ )
+ red, green, blue = components
+ triplet = ColorTriplet(int(red), int(green), int(blue))
+ if not all(component <= 255 for component in triplet):
+ raise ColorParseError(
+ f"color components must be <= 255 in {original_color!r}"
+ )
+ return cls(color, ColorType.TRUECOLOR, triplet=triplet)
+
+ @lru_cache(maxsize=1024)
+ def get_ansi_codes(self, foreground: bool = True) -> Tuple[str, ...]:
+ """Get the ANSI escape codes for this color."""
+ _type = self.type
+ if _type == ColorType.DEFAULT:
+ return ("39" if foreground else "49",)
+
+ elif _type == ColorType.WINDOWS:
+ number = self.number
+ assert number is not None
+ fore, back = (30, 40) if number < 8 else (82, 92)
+ return (str(fore + number if foreground else back + number),)
+
+ elif _type == ColorType.STANDARD:
+ number = self.number
+ assert number is not None
+ fore, back = (30, 40) if number < 8 else (82, 92)
+ return (str(fore + number if foreground else back + number),)
+
+ elif _type == ColorType.EIGHT_BIT:
+ assert self.number is not None
+ return ("38" if foreground else "48", "5", str(self.number))
+
+ else: # self.standard == ColorStandard.TRUECOLOR:
+ assert self.triplet is not None
+ red, green, blue = self.triplet
+ return ("38" if foreground else "48", "2", str(red), str(green), str(blue))
+
+ @lru_cache(maxsize=1024)
+ def downgrade(self, system: ColorSystem) -> "Color":
+ """Downgrade a color system to a system with fewer colors."""
+
+ if self.type in (ColorType.DEFAULT, system):
+ return self
+ # Convert to 8-bit color from truecolor color
+ if system == ColorSystem.EIGHT_BIT and self.system == ColorSystem.TRUECOLOR:
+ assert self.triplet is not None
+ _h, l, s = rgb_to_hls(*self.triplet.normalized)
+ # If saturation is under 15% assume it is grayscale
+ if s < 0.15:
+ gray = round(l * 25.0)
+ if gray == 0:
+ color_number = 16
+ elif gray == 25:
+ color_number = 231
+ else:
+ color_number = 231 + gray
+ return Color(self.name, ColorType.EIGHT_BIT, number=color_number)
+
+ red, green, blue = self.triplet
+ six_red = red / 95 if red < 95 else 1 + (red - 95) / 40
+ six_green = green / 95 if green < 95 else 1 + (green - 95) / 40
+ six_blue = blue / 95 if blue < 95 else 1 + (blue - 95) / 40
+
+ color_number = (
+ 16 + 36 * round(six_red) + 6 * round(six_green) + round(six_blue)
+ )
+ return Color(self.name, ColorType.EIGHT_BIT, number=color_number)
+
+ # Convert to standard from truecolor or 8-bit
+ elif system == ColorSystem.STANDARD:
+ if self.system == ColorSystem.TRUECOLOR:
+ assert self.triplet is not None
+ triplet = self.triplet
+ else: # self.system == ColorSystem.EIGHT_BIT
+ assert self.number is not None
+ triplet = ColorTriplet(*EIGHT_BIT_PALETTE[self.number])
+
+ color_number = STANDARD_PALETTE.match(triplet)
+ return Color(self.name, ColorType.STANDARD, number=color_number)
+
+ elif system == ColorSystem.WINDOWS:
+ if self.system == ColorSystem.TRUECOLOR:
+ assert self.triplet is not None
+ triplet = self.triplet
+ else: # self.system == ColorSystem.EIGHT_BIT
+ assert self.number is not None
+ if self.number < 16:
+ return Color(self.name, ColorType.WINDOWS, number=self.number)
+ triplet = ColorTriplet(*EIGHT_BIT_PALETTE[self.number])
+
+ color_number = WINDOWS_PALETTE.match(triplet)
+ return Color(self.name, ColorType.WINDOWS, number=color_number)
+
+ return self
+
+
+def parse_rgb_hex(hex_color: str) -> ColorTriplet:
+ """Parse six hex characters in to RGB triplet."""
+ assert len(hex_color) == 6, "must be 6 characters"
+ color = ColorTriplet(
+ int(hex_color[0:2], 16), int(hex_color[2:4], 16), int(hex_color[4:6], 16)
+ )
+ return color
+
+
+def blend_rgb(
+ color1: ColorTriplet, color2: ColorTriplet, cross_fade: float = 0.5
+) -> ColorTriplet:
+ """Blend one RGB color in to another."""
+ r1, g1, b1 = color1
+ r2, g2, b2 = color2
+ new_color = ColorTriplet(
+ int(r1 + (r2 - r1) * cross_fade),
+ int(g1 + (g2 - g1) * cross_fade),
+ int(b1 + (b2 - b1) * cross_fade),
+ )
+ return new_color
+
+
+if __name__ == "__main__": # pragma: no cover
+ from .console import Console
+ from .table import Table
+ from .text import Text
+
+ console = Console()
+
+ table = Table(show_footer=False, show_edge=True)
+ table.add_column("Color", width=10, overflow="ellipsis")
+ table.add_column("Number", justify="right", style="yellow")
+ table.add_column("Name", style="green")
+ table.add_column("Hex", style="blue")
+ table.add_column("RGB", style="magenta")
+
+ colors = sorted((v, k) for k, v in ANSI_COLOR_NAMES.items())
+ for color_number, name in colors:
+ if "grey" in name:
+ continue
+ color_cell = Text(" " * 10, style=f"on {name}")
+ if color_number < 16:
+ table.add_row(color_cell, f"{color_number}", Text(f'"{name}"'))
+ else:
+ color = EIGHT_BIT_PALETTE[color_number] # type: ignore[has-type]
+ table.add_row(
+ color_cell, str(color_number), Text(f'"{name}"'), color.hex, color.rgb
+ )
+
+ console.print(table)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/color_triplet.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/color_triplet.py
new file mode 100644
index 0000000000000000000000000000000000000000..02cab328251af9bfa809981aaa44933c407e2cd7
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/color_triplet.py
@@ -0,0 +1,38 @@
+from typing import NamedTuple, Tuple
+
+
+class ColorTriplet(NamedTuple):
+ """The red, green, and blue components of a color."""
+
+ red: int
+ """Red component in 0 to 255 range."""
+ green: int
+ """Green component in 0 to 255 range."""
+ blue: int
+ """Blue component in 0 to 255 range."""
+
+ @property
+ def hex(self) -> str:
+ """get the color triplet in CSS style."""
+ red, green, blue = self
+ return f"#{red:02x}{green:02x}{blue:02x}"
+
+ @property
+ def rgb(self) -> str:
+ """The color in RGB format.
+
+ Returns:
+ str: An rgb color, e.g. ``"rgb(100,23,255)"``.
+ """
+ red, green, blue = self
+ return f"rgb({red},{green},{blue})"
+
+ @property
+ def normalized(self) -> Tuple[float, float, float]:
+ """Convert components into floats between 0 and 1.
+
+ Returns:
+ Tuple[float, float, float]: A tuple of three normalized colour components.
+ """
+ red, green, blue = self
+ return red / 255.0, green / 255.0, blue / 255.0
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/columns.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/columns.py
new file mode 100644
index 0000000000000000000000000000000000000000..669a3a7074f9a9e1af29cb4bc78b05851df67959
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/columns.py
@@ -0,0 +1,187 @@
+from collections import defaultdict
+from itertools import chain
+from operator import itemgetter
+from typing import Dict, Iterable, List, Optional, Tuple
+
+from .align import Align, AlignMethod
+from .console import Console, ConsoleOptions, RenderableType, RenderResult
+from .constrain import Constrain
+from .measure import Measurement
+from .padding import Padding, PaddingDimensions
+from .table import Table
+from .text import TextType
+from .jupyter import JupyterMixin
+
+
+class Columns(JupyterMixin):
+ """Display renderables in neat columns.
+
+ Args:
+ renderables (Iterable[RenderableType]): Any number of Rich renderables (including str).
+ width (int, optional): The desired width of the columns, or None to auto detect. Defaults to None.
+ padding (PaddingDimensions, optional): Optional padding around cells. Defaults to (0, 1).
+ expand (bool, optional): Expand columns to full width. Defaults to False.
+ equal (bool, optional): Arrange in to equal sized columns. Defaults to False.
+ column_first (bool, optional): Align items from top to bottom (rather than left to right). Defaults to False.
+ right_to_left (bool, optional): Start column from right hand side. Defaults to False.
+ align (str, optional): Align value ("left", "right", or "center") or None for default. Defaults to None.
+ title (TextType, optional): Optional title for Columns.
+ """
+
+ def __init__(
+ self,
+ renderables: Optional[Iterable[RenderableType]] = None,
+ padding: PaddingDimensions = (0, 1),
+ *,
+ width: Optional[int] = None,
+ expand: bool = False,
+ equal: bool = False,
+ column_first: bool = False,
+ right_to_left: bool = False,
+ align: Optional[AlignMethod] = None,
+ title: Optional[TextType] = None,
+ ) -> None:
+ self.renderables = list(renderables or [])
+ self.width = width
+ self.padding = padding
+ self.expand = expand
+ self.equal = equal
+ self.column_first = column_first
+ self.right_to_left = right_to_left
+ self.align: Optional[AlignMethod] = align
+ self.title = title
+
+ def add_renderable(self, renderable: RenderableType) -> None:
+ """Add a renderable to the columns.
+
+ Args:
+ renderable (RenderableType): Any renderable object.
+ """
+ self.renderables.append(renderable)
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ render_str = console.render_str
+ renderables = [
+ render_str(renderable) if isinstance(renderable, str) else renderable
+ for renderable in self.renderables
+ ]
+ if not renderables:
+ return
+ _top, right, _bottom, left = Padding.unpack(self.padding)
+ width_padding = max(left, right)
+ max_width = options.max_width
+ widths: Dict[int, int] = defaultdict(int)
+ column_count = len(renderables)
+
+ get_measurement = Measurement.get
+ renderable_widths = [
+ get_measurement(console, options, renderable).maximum
+ for renderable in renderables
+ ]
+ if self.equal:
+ renderable_widths = [max(renderable_widths)] * len(renderable_widths)
+
+ def iter_renderables(
+ column_count: int,
+ ) -> Iterable[Tuple[int, Optional[RenderableType]]]:
+ item_count = len(renderables)
+ if self.column_first:
+ width_renderables = list(zip(renderable_widths, renderables))
+
+ column_lengths: List[int] = [item_count // column_count] * column_count
+ for col_no in range(item_count % column_count):
+ column_lengths[col_no] += 1
+
+ row_count = (item_count + column_count - 1) // column_count
+ cells = [[-1] * column_count for _ in range(row_count)]
+ row = col = 0
+ for index in range(item_count):
+ cells[row][col] = index
+ column_lengths[col] -= 1
+ if column_lengths[col]:
+ row += 1
+ else:
+ col += 1
+ row = 0
+ for index in chain.from_iterable(cells):
+ if index == -1:
+ break
+ yield width_renderables[index]
+ else:
+ yield from zip(renderable_widths, renderables)
+ # Pad odd elements with spaces
+ if item_count % column_count:
+ for _ in range(column_count - (item_count % column_count)):
+ yield 0, None
+
+ table = Table.grid(padding=self.padding, collapse_padding=True, pad_edge=False)
+ table.expand = self.expand
+ table.title = self.title
+
+ if self.width is not None:
+ column_count = (max_width) // (self.width + width_padding)
+ for _ in range(column_count):
+ table.add_column(width=self.width)
+ else:
+ while column_count > 1:
+ widths.clear()
+ column_no = 0
+ for renderable_width, _ in iter_renderables(column_count):
+ widths[column_no] = max(widths[column_no], renderable_width)
+ total_width = sum(widths.values()) + width_padding * (
+ len(widths) - 1
+ )
+ if total_width > max_width:
+ column_count = len(widths) - 1
+ break
+ else:
+ column_no = (column_no + 1) % column_count
+ else:
+ break
+
+ get_renderable = itemgetter(1)
+ _renderables = [
+ get_renderable(_renderable)
+ for _renderable in iter_renderables(column_count)
+ ]
+ if self.equal:
+ _renderables = [
+ None
+ if renderable is None
+ else Constrain(renderable, renderable_widths[0])
+ for renderable in _renderables
+ ]
+ if self.align:
+ align = self.align
+ _Align = Align
+ _renderables = [
+ None if renderable is None else _Align(renderable, align)
+ for renderable in _renderables
+ ]
+
+ right_to_left = self.right_to_left
+ add_row = table.add_row
+ for start in range(0, len(_renderables), column_count):
+ row = _renderables[start : start + column_count]
+ if right_to_left:
+ row = row[::-1]
+ add_row(*row)
+ yield table
+
+
+if __name__ == "__main__": # pragma: no cover
+ import os
+
+ console = Console()
+
+ files = [f"{i} {s}" for i, s in enumerate(sorted(os.listdir()))]
+ columns = Columns(files, padding=(0, 1), expand=False, equal=False)
+ console.print(columns)
+ console.rule()
+ columns.column_first = True
+ console.print(columns)
+ columns.right_to_left = True
+ console.rule()
+ console.print(columns)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/console.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/console.py
new file mode 100644
index 0000000000000000000000000000000000000000..0bdce769874bb787aa204682f3780b46bede90a4
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/console.py
@@ -0,0 +1,2698 @@
+import os
+import sys
+import threading
+from abc import ABC, abstractmethod
+from dataclasses import dataclass, field
+from datetime import datetime
+from functools import wraps
+from itertools import islice
+from math import ceil
+from os import PathLike
+from time import monotonic
+from types import FrameType, ModuleType, TracebackType
+from typing import (
+ IO,
+ TYPE_CHECKING,
+ Any,
+ Callable,
+ Dict,
+ Iterable,
+ List,
+ Literal,
+ Mapping,
+ NamedTuple,
+ Optional,
+ Protocol,
+ TextIO,
+ Tuple,
+ Type,
+ Union,
+ cast,
+ runtime_checkable,
+)
+
+from rich._null_file import NULL_FILE
+
+from . import errors, themes
+from ._emoji_replace import _emoji_replace
+from ._export_format import CONSOLE_HTML_FORMAT, CONSOLE_SVG_FORMAT
+from ._fileno import get_fileno
+from ._log_render import FormatTimeCallable, LogRender
+from .align import Align, AlignMethod
+from .color import ColorSystem, blend_rgb
+from .control import Control
+from .emoji import EmojiVariant
+from .highlighter import NullHighlighter, ReprHighlighter
+from .markup import render as render_markup
+from .measure import Measurement, measure_renderables
+from .pager import Pager, SystemPager
+from .protocol import rich_cast
+from .region import Region
+from .screen import Screen
+from .segment import Segment
+from .style import Style, StyleType
+from .styled import Styled
+from .terminal_theme import DEFAULT_TERMINAL_THEME, SVG_EXPORT_THEME, TerminalTheme
+from .text import Text, TextType
+from .theme import Theme, ThemeStack
+
+if TYPE_CHECKING:
+ from ._windows import WindowsConsoleFeatures
+ from .live import Live
+ from .status import Status
+
+JUPYTER_DEFAULT_COLUMNS = 115
+JUPYTER_DEFAULT_LINES = 100
+WINDOWS = sys.platform == "win32"
+
+HighlighterType = Callable[[Union[str, "Text"]], "Text"]
+JustifyMethod = Literal["default", "left", "center", "right", "full"]
+OverflowMethod = Literal["fold", "crop", "ellipsis", "ignore"]
+
+
+class NoChange:
+ pass
+
+
+NO_CHANGE = NoChange()
+
+try:
+ _STDIN_FILENO = sys.__stdin__.fileno() # type: ignore[union-attr]
+except Exception:
+ _STDIN_FILENO = 0
+try:
+ _STDOUT_FILENO = sys.__stdout__.fileno() # type: ignore[union-attr]
+except Exception:
+ _STDOUT_FILENO = 1
+try:
+ _STDERR_FILENO = sys.__stderr__.fileno() # type: ignore[union-attr]
+except Exception:
+ _STDERR_FILENO = 2
+
+_STD_STREAMS = (_STDIN_FILENO, _STDOUT_FILENO, _STDERR_FILENO)
+_STD_STREAMS_OUTPUT = (_STDOUT_FILENO, _STDERR_FILENO)
+
+
+_TERM_COLORS = {
+ "kitty": ColorSystem.EIGHT_BIT,
+ "256color": ColorSystem.EIGHT_BIT,
+ "16color": ColorSystem.STANDARD,
+}
+
+
+class ConsoleDimensions(NamedTuple):
+ """Size of the terminal."""
+
+ width: int
+ """The width of the console in 'cells'."""
+ height: int
+ """The height of the console in lines."""
+
+
+@dataclass
+class ConsoleOptions:
+ """Options for __rich_console__ method."""
+
+ size: ConsoleDimensions
+ """Size of console."""
+ legacy_windows: bool
+ """legacy_windows: flag for legacy windows."""
+ min_width: int
+ """Minimum width of renderable."""
+ max_width: int
+ """Maximum width of renderable."""
+ is_terminal: bool
+ """True if the target is a terminal, otherwise False."""
+ encoding: str
+ """Encoding of terminal."""
+ max_height: int
+ """Height of container (starts as terminal)"""
+ justify: Optional[JustifyMethod] = None
+ """Justify value override for renderable."""
+ overflow: Optional[OverflowMethod] = None
+ """Overflow value override for renderable."""
+ no_wrap: Optional[bool] = False
+ """Disable wrapping for text."""
+ highlight: Optional[bool] = None
+ """Highlight override for render_str."""
+ markup: Optional[bool] = None
+ """Enable markup when rendering strings."""
+ height: Optional[int] = None
+
+ @property
+ def ascii_only(self) -> bool:
+ """Check if renderables should use ascii only."""
+ return not self.encoding.startswith("utf")
+
+ def copy(self) -> "ConsoleOptions":
+ """Return a copy of the options.
+
+ Returns:
+ ConsoleOptions: a copy of self.
+ """
+ options: ConsoleOptions = ConsoleOptions.__new__(ConsoleOptions)
+ options.__dict__ = self.__dict__.copy()
+ return options
+
+ def update(
+ self,
+ *,
+ width: Union[int, NoChange] = NO_CHANGE,
+ min_width: Union[int, NoChange] = NO_CHANGE,
+ max_width: Union[int, NoChange] = NO_CHANGE,
+ justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
+ overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
+ no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
+ highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
+ markup: Union[Optional[bool], NoChange] = NO_CHANGE,
+ height: Union[Optional[int], NoChange] = NO_CHANGE,
+ ) -> "ConsoleOptions":
+ """Update values, return a copy."""
+ options = self.copy()
+ if not isinstance(width, NoChange):
+ options.min_width = options.max_width = max(0, width)
+ if not isinstance(min_width, NoChange):
+ options.min_width = min_width
+ if not isinstance(max_width, NoChange):
+ options.max_width = max_width
+ if not isinstance(justify, NoChange):
+ options.justify = justify
+ if not isinstance(overflow, NoChange):
+ options.overflow = overflow
+ if not isinstance(no_wrap, NoChange):
+ options.no_wrap = no_wrap
+ if not isinstance(highlight, NoChange):
+ options.highlight = highlight
+ if not isinstance(markup, NoChange):
+ options.markup = markup
+ if not isinstance(height, NoChange):
+ if height is not None:
+ options.max_height = height
+ options.height = None if height is None else max(0, height)
+ return options
+
+ def update_width(self, width: int) -> "ConsoleOptions":
+ """Update just the width, return a copy.
+
+ Args:
+ width (int): New width (sets both min_width and max_width)
+
+ Returns:
+ ~ConsoleOptions: New console options instance.
+ """
+ options = self.copy()
+ options.min_width = options.max_width = max(0, width)
+ return options
+
+ def update_height(self, height: int) -> "ConsoleOptions":
+ """Update the height, and return a copy.
+
+ Args:
+ height (int): New height
+
+ Returns:
+ ~ConsoleOptions: New Console options instance.
+ """
+ options = self.copy()
+ options.max_height = options.height = height
+ return options
+
+ def reset_height(self) -> "ConsoleOptions":
+ """Return a copy of the options with height set to ``None``.
+
+ Returns:
+ ~ConsoleOptions: New console options instance.
+ """
+ options = self.copy()
+ options.height = None
+ return options
+
+ def update_dimensions(self, width: int, height: int) -> "ConsoleOptions":
+ """Update the width and height, and return a copy.
+
+ Args:
+ width (int): New width (sets both min_width and max_width).
+ height (int): New height.
+
+ Returns:
+ ~ConsoleOptions: New console options instance.
+ """
+ options = self.copy()
+ options.min_width = options.max_width = max(0, width)
+ options.height = options.max_height = height
+ return options
+
+
+@runtime_checkable
+class RichCast(Protocol):
+ """An object that may be 'cast' to a console renderable."""
+
+ def __rich__(
+ self,
+ ) -> Union["ConsoleRenderable", "RichCast", str]: # pragma: no cover
+ ...
+
+
+@runtime_checkable
+class ConsoleRenderable(Protocol):
+ """An object that supports the console protocol."""
+
+ def __rich_console__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "RenderResult": # pragma: no cover
+ ...
+
+
+# A type that may be rendered by Console.
+RenderableType = Union[ConsoleRenderable, RichCast, str]
+"""A string or any object that may be rendered by Rich."""
+
+# The result of calling a __rich_console__ method.
+RenderResult = Iterable[Union[RenderableType, Segment]]
+
+_null_highlighter = NullHighlighter()
+
+
+class CaptureError(Exception):
+ """An error in the Capture context manager."""
+
+
+class NewLine:
+ """A renderable to generate new line(s)"""
+
+ def __init__(self, count: int = 1) -> None:
+ self.count = count
+
+ def __rich_console__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> Iterable[Segment]:
+ yield Segment("\n" * self.count)
+
+
+class ScreenUpdate:
+ """Render a list of lines at a given offset."""
+
+ def __init__(self, lines: List[List[Segment]], x: int, y: int) -> None:
+ self._lines = lines
+ self.x = x
+ self.y = y
+
+ def __rich_console__(
+ self, console: "Console", options: ConsoleOptions
+ ) -> RenderResult:
+ x = self.x
+ move_to = Control.move_to
+ for offset, line in enumerate(self._lines, self.y):
+ yield move_to(x, offset)
+ yield from line
+
+
+class Capture:
+ """Context manager to capture the result of printing to the console.
+ See :meth:`~rich.console.Console.capture` for how to use.
+
+ Args:
+ console (Console): A console instance to capture output.
+ """
+
+ def __init__(self, console: "Console") -> None:
+ self._console = console
+ self._result: Optional[str] = None
+
+ def __enter__(self) -> "Capture":
+ self._console.begin_capture()
+ return self
+
+ def __exit__(
+ self,
+ exc_type: Optional[Type[BaseException]],
+ exc_val: Optional[BaseException],
+ exc_tb: Optional[TracebackType],
+ ) -> None:
+ self._result = self._console.end_capture()
+
+ def get(self) -> str:
+ """Get the result of the capture."""
+ if self._result is None:
+ raise CaptureError(
+ "Capture result is not available until context manager exits."
+ )
+ return self._result
+
+
+class ThemeContext:
+ """A context manager to use a temporary theme. See :meth:`~rich.console.Console.use_theme` for usage."""
+
+ def __init__(self, console: "Console", theme: Theme, inherit: bool = True) -> None:
+ self.console = console
+ self.theme = theme
+ self.inherit = inherit
+
+ def __enter__(self) -> "ThemeContext":
+ self.console.push_theme(self.theme)
+ return self
+
+ def __exit__(
+ self,
+ exc_type: Optional[Type[BaseException]],
+ exc_val: Optional[BaseException],
+ exc_tb: Optional[TracebackType],
+ ) -> None:
+ self.console.pop_theme()
+
+
+class PagerContext:
+ """A context manager that 'pages' content. See :meth:`~rich.console.Console.pager` for usage."""
+
+ def __init__(
+ self,
+ console: "Console",
+ pager: Optional[Pager] = None,
+ styles: bool = False,
+ links: bool = False,
+ ) -> None:
+ self._console = console
+ self.pager = SystemPager() if pager is None else pager
+ self.styles = styles
+ self.links = links
+
+ def __enter__(self) -> "PagerContext":
+ self._console._enter_buffer()
+ return self
+
+ def __exit__(
+ self,
+ exc_type: Optional[Type[BaseException]],
+ exc_val: Optional[BaseException],
+ exc_tb: Optional[TracebackType],
+ ) -> None:
+ if exc_type is None:
+ with self._console._lock:
+ buffer: List[Segment] = self._console._buffer[:]
+ del self._console._buffer[:]
+ segments: Iterable[Segment] = buffer
+ if not self.styles:
+ segments = Segment.strip_styles(segments)
+ elif not self.links:
+ segments = Segment.strip_links(segments)
+ content = self._console._render_buffer(segments)
+ self.pager.show(content)
+ self._console._exit_buffer()
+
+
+class ScreenContext:
+ """A context manager that enables an alternative screen. See :meth:`~rich.console.Console.screen` for usage."""
+
+ def __init__(
+ self, console: "Console", hide_cursor: bool, style: StyleType = ""
+ ) -> None:
+ self.console = console
+ self.hide_cursor = hide_cursor
+ self.screen = Screen(style=style)
+ self._changed = False
+
+ def update(
+ self, *renderables: RenderableType, style: Optional[StyleType] = None
+ ) -> None:
+ """Update the screen.
+
+ Args:
+ renderable (RenderableType, optional): Optional renderable to replace current renderable,
+ or None for no change. Defaults to None.
+ style: (Style, optional): Replacement style, or None for no change. Defaults to None.
+ """
+ if renderables:
+ self.screen.renderable = (
+ Group(*renderables) if len(renderables) > 1 else renderables[0]
+ )
+ if style is not None:
+ self.screen.style = style
+ self.console.print(self.screen, end="")
+
+ def __enter__(self) -> "ScreenContext":
+ self._changed = self.console.set_alt_screen(True)
+ if self._changed and self.hide_cursor:
+ self.console.show_cursor(False)
+ return self
+
+ def __exit__(
+ self,
+ exc_type: Optional[Type[BaseException]],
+ exc_val: Optional[BaseException],
+ exc_tb: Optional[TracebackType],
+ ) -> None:
+ if self._changed:
+ self.console.set_alt_screen(False)
+ if self.hide_cursor:
+ self.console.show_cursor(True)
+
+
+class Group:
+ """Takes a group of renderables and returns a renderable object that renders the group.
+
+ Args:
+ renderables (Iterable[RenderableType]): An iterable of renderable objects.
+ fit (bool, optional): Fit dimension of group to contents, or fill available space. Defaults to True.
+ """
+
+ def __init__(self, *renderables: "RenderableType", fit: bool = True) -> None:
+ self._renderables = renderables
+ self.fit = fit
+ self._render: Optional[List[RenderableType]] = None
+
+ @property
+ def renderables(self) -> List["RenderableType"]:
+ if self._render is None:
+ self._render = list(self._renderables)
+ return self._render
+
+ def __rich_measure__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "Measurement":
+ if self.fit:
+ return measure_renderables(console, options, self.renderables)
+ else:
+ return Measurement(options.max_width, options.max_width)
+
+ def __rich_console__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> RenderResult:
+ yield from self.renderables
+
+
+def group(fit: bool = True) -> Callable[..., Callable[..., Group]]:
+ """A decorator that turns an iterable of renderables in to a group.
+
+ Args:
+ fit (bool, optional): Fit dimension of group to contents, or fill available space. Defaults to True.
+ """
+
+ def decorator(
+ method: Callable[..., Iterable[RenderableType]],
+ ) -> Callable[..., Group]:
+ """Convert a method that returns an iterable of renderables in to a Group."""
+
+ @wraps(method)
+ def _replace(*args: Any, **kwargs: Any) -> Group:
+ renderables = method(*args, **kwargs)
+ return Group(*renderables, fit=fit)
+
+ return _replace
+
+ return decorator
+
+
+def _is_jupyter() -> bool: # pragma: no cover
+ """Check if we're running in a Jupyter notebook."""
+ try:
+ get_ipython # type: ignore[name-defined]
+ except NameError:
+ return False
+ ipython = get_ipython() # type: ignore[name-defined]
+ shell = ipython.__class__.__name__
+ if (
+ "google.colab" in str(ipython.__class__)
+ or os.getenv("DATABRICKS_RUNTIME_VERSION")
+ or shell == "ZMQInteractiveShell"
+ ):
+ return True # Jupyter notebook or qtconsole
+ elif shell == "TerminalInteractiveShell":
+ return False # Terminal running IPython
+ else:
+ return False # Other type (?)
+
+
+COLOR_SYSTEMS = {
+ "standard": ColorSystem.STANDARD,
+ "256": ColorSystem.EIGHT_BIT,
+ "truecolor": ColorSystem.TRUECOLOR,
+ "windows": ColorSystem.WINDOWS,
+}
+
+_COLOR_SYSTEMS_NAMES = {system: name for name, system in COLOR_SYSTEMS.items()}
+
+
+@dataclass
+class ConsoleThreadLocals(threading.local):
+ """Thread local values for Console context."""
+
+ theme_stack: ThemeStack
+ buffer: List[Segment] = field(default_factory=list)
+ buffer_index: int = 0
+
+
+class RenderHook(ABC):
+ """Provides hooks in to the render process."""
+
+ @abstractmethod
+ def process_renderables(
+ self, renderables: List[ConsoleRenderable]
+ ) -> List[ConsoleRenderable]:
+ """Called with a list of objects to render.
+
+ This method can return a new list of renderables, or modify and return the same list.
+
+ Args:
+ renderables (List[ConsoleRenderable]): A number of renderable objects.
+
+ Returns:
+ List[ConsoleRenderable]: A replacement list of renderables.
+ """
+
+
+_windows_console_features: Optional["WindowsConsoleFeatures"] = None
+
+
+def get_windows_console_features() -> "WindowsConsoleFeatures": # pragma: no cover
+ global _windows_console_features
+ if _windows_console_features is not None:
+ return _windows_console_features
+ from ._windows import get_windows_console_features
+
+ _windows_console_features = get_windows_console_features()
+ return _windows_console_features
+
+
+def detect_legacy_windows() -> bool:
+ """Detect legacy Windows."""
+ return WINDOWS and not get_windows_console_features().vt
+
+
+class Console:
+ """A high level console interface.
+
+ Args:
+ color_system (str, optional): The color system supported by your terminal,
+ either ``"standard"``, ``"256"`` or ``"truecolor"``. Leave as ``"auto"`` to autodetect.
+ force_terminal (Optional[bool], optional): Enable/disable terminal control codes, or None to auto-detect terminal. Defaults to None.
+ force_jupyter (Optional[bool], optional): Enable/disable Jupyter rendering, or None to auto-detect Jupyter. Defaults to None.
+ force_interactive (Optional[bool], optional): Enable/disable interactive mode, or None to auto detect. Defaults to None.
+ soft_wrap (Optional[bool], optional): Set soft wrap default on print method. Defaults to False.
+ theme (Theme, optional): An optional style theme object, or ``None`` for default theme.
+ stderr (bool, optional): Use stderr rather than stdout if ``file`` is not specified. Defaults to False.
+ file (IO, optional): A file object where the console should write to. Defaults to stdout.
+ quiet (bool, Optional): Boolean to suppress all output. Defaults to False.
+ width (int, optional): The width of the terminal. Leave as default to auto-detect width.
+ height (int, optional): The height of the terminal. Leave as default to auto-detect height.
+ style (StyleType, optional): Style to apply to all output, or None for no style. Defaults to None.
+ no_color (Optional[bool], optional): Enabled no color mode, or None to auto detect. Defaults to None.
+ tab_size (int, optional): Number of spaces used to replace a tab character. Defaults to 8.
+ record (bool, optional): Boolean to enable recording of terminal output,
+ required to call :meth:`export_html`, :meth:`export_svg`, and :meth:`export_text`. Defaults to False.
+ markup (bool, optional): Boolean to enable :ref:`console_markup`. Defaults to True.
+ emoji (bool, optional): Enable emoji code. Defaults to True.
+ emoji_variant (str, optional): Optional emoji variant, either "text" or "emoji". Defaults to None.
+ highlight (bool, optional): Enable automatic highlighting. Defaults to True.
+ log_time (bool, optional): Boolean to enable logging of time by :meth:`log` methods. Defaults to True.
+ log_path (bool, optional): Boolean to enable the logging of the caller by :meth:`log`. Defaults to True.
+ log_time_format (Union[str, TimeFormatterCallable], optional): If ``log_time`` is enabled, either string for strftime or callable that formats the time. Defaults to "[%X] ".
+ highlighter (HighlighterType, optional): Default highlighter.
+ legacy_windows (bool, optional): Enable legacy Windows mode, or ``None`` to auto detect. Defaults to ``None``.
+ safe_box (bool, optional): Restrict box options that don't render on legacy Windows.
+ get_datetime (Callable[[], datetime], optional): Callable that gets the current time as a datetime.datetime object (used by Console.log),
+ or None for datetime.now.
+ get_time (Callable[[], time], optional): Callable that gets the current time in seconds, default uses time.monotonic.
+ """
+
+ _environ: Mapping[str, str] = os.environ
+
+ def __init__(
+ self,
+ *,
+ color_system: Optional[
+ Literal["auto", "standard", "256", "truecolor", "windows"]
+ ] = "auto",
+ force_terminal: Optional[bool] = None,
+ force_jupyter: Optional[bool] = None,
+ force_interactive: Optional[bool] = None,
+ soft_wrap: bool = False,
+ theme: Optional[Theme] = None,
+ stderr: bool = False,
+ file: Optional[IO[str]] = None,
+ quiet: bool = False,
+ width: Optional[int] = None,
+ height: Optional[int] = None,
+ style: Optional[StyleType] = None,
+ no_color: Optional[bool] = None,
+ tab_size: int = 8,
+ record: bool = False,
+ markup: bool = True,
+ emoji: bool = True,
+ emoji_variant: Optional[EmojiVariant] = None,
+ highlight: bool = True,
+ log_time: bool = True,
+ log_path: bool = True,
+ log_time_format: Union[str, FormatTimeCallable] = "[%X]",
+ highlighter: Optional["HighlighterType"] = ReprHighlighter(),
+ legacy_windows: Optional[bool] = None,
+ safe_box: bool = True,
+ get_datetime: Optional[Callable[[], datetime]] = None,
+ get_time: Optional[Callable[[], float]] = None,
+ _environ: Optional[Mapping[str, str]] = None,
+ ):
+ # Copy of os.environ allows us to replace it for testing
+ if _environ is not None:
+ self._environ = _environ
+
+ self.is_jupyter = _is_jupyter() if force_jupyter is None else force_jupyter
+ if self.is_jupyter:
+ if width is None:
+ jupyter_columns = self._environ.get("JUPYTER_COLUMNS")
+ if jupyter_columns is not None and jupyter_columns.isdigit():
+ width = int(jupyter_columns)
+ else:
+ width = JUPYTER_DEFAULT_COLUMNS
+ if height is None:
+ jupyter_lines = self._environ.get("JUPYTER_LINES")
+ if jupyter_lines is not None and jupyter_lines.isdigit():
+ height = int(jupyter_lines)
+ else:
+ height = JUPYTER_DEFAULT_LINES
+
+ self.tab_size = tab_size
+ self.record = record
+ self._markup = markup
+ self._emoji = emoji
+ self._emoji_variant: Optional[EmojiVariant] = emoji_variant
+ self._highlight = highlight
+ self.legacy_windows: bool = (
+ (detect_legacy_windows() and not self.is_jupyter)
+ if legacy_windows is None
+ else legacy_windows
+ )
+
+ if width is None:
+ columns = self._environ.get("COLUMNS")
+ if columns is not None and columns.isdigit():
+ width = int(columns) - self.legacy_windows
+ if height is None:
+ lines = self._environ.get("LINES")
+ if lines is not None and lines.isdigit():
+ height = int(lines)
+
+ self.soft_wrap = soft_wrap
+ self._width = width
+ self._height = height
+
+ self._color_system: Optional[ColorSystem]
+
+ self._force_terminal = None
+ if force_terminal is not None:
+ self._force_terminal = force_terminal
+
+ self._file = file
+ self.quiet = quiet
+ self.stderr = stderr
+
+ if color_system is None:
+ self._color_system = None
+ elif color_system == "auto":
+ self._color_system = self._detect_color_system()
+ else:
+ self._color_system = COLOR_SYSTEMS[color_system]
+
+ self._lock = threading.RLock()
+ self._log_render = LogRender(
+ show_time=log_time,
+ show_path=log_path,
+ time_format=log_time_format,
+ )
+ self.highlighter: HighlighterType = highlighter or _null_highlighter
+ self.safe_box = safe_box
+ self.get_datetime = get_datetime or datetime.now
+ self.get_time = get_time or monotonic
+ self.style = style
+ self.no_color = (
+ no_color
+ if no_color is not None
+ else self._environ.get("NO_COLOR", "") != ""
+ )
+ if force_interactive is None:
+ tty_interactive = self._environ.get("TTY_INTERACTIVE", None)
+ if tty_interactive is not None:
+ if tty_interactive == "0":
+ force_interactive = False
+ elif tty_interactive == "1":
+ force_interactive = True
+
+ self.is_interactive = (
+ (self.is_terminal and not self.is_dumb_terminal)
+ if force_interactive is None
+ else force_interactive
+ )
+
+ self._record_buffer_lock = threading.RLock()
+ self._thread_locals = ConsoleThreadLocals(
+ theme_stack=ThemeStack(themes.DEFAULT if theme is None else theme)
+ )
+ self._record_buffer: List[Segment] = []
+ self._render_hooks: List[RenderHook] = []
+ self._live_stack: List[Live] = []
+ self._is_alt_screen = False
+
+ def __repr__(self) -> str:
+ return f""
+
+ @property
+ def file(self) -> IO[str]:
+ """Get the file object to write to."""
+ file = self._file or (sys.stderr if self.stderr else sys.stdout)
+ file = getattr(file, "rich_proxied_file", file)
+ if file is None:
+ file = NULL_FILE
+ return file
+
+ @file.setter
+ def file(self, new_file: IO[str]) -> None:
+ """Set a new file object."""
+ self._file = new_file
+
+ @property
+ def _buffer(self) -> List[Segment]:
+ """Get a thread local buffer."""
+ return self._thread_locals.buffer
+
+ @property
+ def _buffer_index(self) -> int:
+ """Get a thread local buffer."""
+ return self._thread_locals.buffer_index
+
+ @_buffer_index.setter
+ def _buffer_index(self, value: int) -> None:
+ self._thread_locals.buffer_index = value
+
+ @property
+ def _theme_stack(self) -> ThemeStack:
+ """Get the thread local theme stack."""
+ return self._thread_locals.theme_stack
+
+ def _detect_color_system(self) -> Optional[ColorSystem]:
+ """Detect color system from env vars."""
+ if self.is_jupyter:
+ return ColorSystem.TRUECOLOR
+ if not self.is_terminal or self.is_dumb_terminal:
+ return None
+ if WINDOWS: # pragma: no cover
+ if self.legacy_windows: # pragma: no cover
+ return ColorSystem.WINDOWS
+ windows_console_features = get_windows_console_features()
+ return (
+ ColorSystem.TRUECOLOR
+ if windows_console_features.truecolor
+ else ColorSystem.EIGHT_BIT
+ )
+ else:
+ color_term = self._environ.get("COLORTERM", "").strip().lower()
+ if color_term in ("truecolor", "24bit"):
+ return ColorSystem.TRUECOLOR
+ term = self._environ.get("TERM", "").strip().lower()
+ _term_name, _hyphen, colors = term.rpartition("-")
+ color_system = _TERM_COLORS.get(colors, ColorSystem.STANDARD)
+ return color_system
+
+ def _enter_buffer(self) -> None:
+ """Enter in to a buffer context, and buffer all output."""
+ self._buffer_index += 1
+
+ def _exit_buffer(self) -> None:
+ """Leave buffer context, and render content if required."""
+ self._buffer_index -= 1
+ self._check_buffer()
+
+ def set_live(self, live: "Live") -> bool:
+ """Set Live instance. Used by Live context manager (no need to call directly).
+
+ Args:
+ live (Live): Live instance using this Console.
+
+ Returns:
+ Boolean that indicates if the live is the topmost of the stack.
+
+ Raises:
+ errors.LiveError: If this Console has a Live context currently active.
+ """
+ with self._lock:
+ self._live_stack.append(live)
+ return len(self._live_stack) == 1
+
+ def clear_live(self) -> None:
+ """Clear the Live instance. Used by the Live context manager (no need to call directly)."""
+ with self._lock:
+ self._live_stack.pop()
+
+ def push_render_hook(self, hook: RenderHook) -> None:
+ """Add a new render hook to the stack.
+
+ Args:
+ hook (RenderHook): Render hook instance.
+ """
+ with self._lock:
+ self._render_hooks.append(hook)
+
+ def pop_render_hook(self) -> None:
+ """Pop the last renderhook from the stack."""
+ with self._lock:
+ self._render_hooks.pop()
+
+ def __enter__(self) -> "Console":
+ """Own context manager to enter buffer context."""
+ self._enter_buffer()
+ return self
+
+ def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None:
+ """Exit buffer context."""
+ self._exit_buffer()
+
+ def begin_capture(self) -> None:
+ """Begin capturing console output. Call :meth:`end_capture` to exit capture mode and return output."""
+ self._enter_buffer()
+
+ def end_capture(self) -> str:
+ """End capture mode and return captured string.
+
+ Returns:
+ str: Console output.
+ """
+ render_result = self._render_buffer(self._buffer)
+ del self._buffer[:]
+ self._exit_buffer()
+ return render_result
+
+ def push_theme(self, theme: Theme, *, inherit: bool = True) -> None:
+ """Push a new theme on to the top of the stack, replacing the styles from the previous theme.
+ Generally speaking, you should call :meth:`~rich.console.Console.use_theme` to get a context manager, rather
+ than calling this method directly.
+
+ Args:
+ theme (Theme): A theme instance.
+ inherit (bool, optional): Inherit existing styles. Defaults to True.
+ """
+ self._theme_stack.push_theme(theme, inherit=inherit)
+
+ def pop_theme(self) -> None:
+ """Remove theme from top of stack, restoring previous theme."""
+ self._theme_stack.pop_theme()
+
+ def use_theme(self, theme: Theme, *, inherit: bool = True) -> ThemeContext:
+ """Use a different theme for the duration of the context manager.
+
+ Args:
+ theme (Theme): Theme instance to user.
+ inherit (bool, optional): Inherit existing console styles. Defaults to True.
+
+ Returns:
+ ThemeContext: [description]
+ """
+ return ThemeContext(self, theme, inherit)
+
+ @property
+ def color_system(self) -> Optional[str]:
+ """Get color system string.
+
+ Returns:
+ Optional[str]: "standard", "256" or "truecolor".
+ """
+
+ if self._color_system is not None:
+ return _COLOR_SYSTEMS_NAMES[self._color_system]
+ else:
+ return None
+
+ @property
+ def encoding(self) -> str:
+ """Get the encoding of the console file, e.g. ``"utf-8"``.
+
+ Returns:
+ str: A standard encoding string.
+ """
+ return (getattr(self.file, "encoding", "utf-8") or "utf-8").lower()
+
+ @property
+ def is_terminal(self) -> bool:
+ """Check if the console is writing to a terminal.
+
+ Returns:
+ bool: True if the console writing to a device capable of
+ understanding escape sequences, otherwise False.
+ """
+ # If dev has explicitly set this value, return it
+ if self._force_terminal is not None:
+ return self._force_terminal
+
+ # Fudge for Idle
+ if hasattr(sys.stdin, "__module__") and sys.stdin.__module__.startswith(
+ "idlelib"
+ ):
+ # Return False for Idle which claims to be a tty but can't handle ansi codes
+ return False
+
+ if self.is_jupyter:
+ # return False for Jupyter, which may have FORCE_COLOR set
+ return False
+
+ environ = self._environ
+
+ tty_compatible = environ.get("TTY_COMPATIBLE", "")
+ # 0 indicates device is not tty compatible
+ if tty_compatible == "0":
+ return False
+ # 1 indicates device is tty compatible
+ if tty_compatible == "1":
+ return True
+
+ # https://force-color.org/
+ force_color = environ.get("FORCE_COLOR")
+ if force_color is not None:
+ return force_color != ""
+
+ # Any other value defaults to auto detect
+ isatty: Optional[Callable[[], bool]] = getattr(self.file, "isatty", None)
+ try:
+ return False if isatty is None else isatty()
+ except ValueError:
+ # in some situation (at the end of a pytest run for example) isatty() can raise
+ # ValueError: I/O operation on closed file
+ # return False because we aren't in a terminal anymore
+ return False
+
+ @property
+ def is_dumb_terminal(self) -> bool:
+ """Detect dumb terminal.
+
+ Returns:
+ bool: True if writing to a dumb terminal, otherwise False.
+
+ """
+ _term = self._environ.get("TERM", "")
+ is_dumb = _term.lower() in ("dumb", "unknown")
+ return self.is_terminal and is_dumb
+
+ @property
+ def options(self) -> ConsoleOptions:
+ """Get default console options."""
+ size = self.size
+ return ConsoleOptions(
+ max_height=size.height,
+ size=size,
+ legacy_windows=self.legacy_windows,
+ min_width=1,
+ max_width=size.width,
+ encoding=self.encoding,
+ is_terminal=self.is_terminal,
+ )
+
+ @property
+ def size(self) -> ConsoleDimensions:
+ """Get the size of the console.
+
+ Returns:
+ ConsoleDimensions: A named tuple containing the dimensions.
+ """
+
+ if self._width is not None and self._height is not None:
+ return ConsoleDimensions(self._width - self.legacy_windows, self._height)
+
+ if self.is_dumb_terminal:
+ return ConsoleDimensions(80, 25)
+
+ width: Optional[int] = None
+ height: Optional[int] = None
+
+ streams = _STD_STREAMS_OUTPUT if WINDOWS else _STD_STREAMS
+ for file_descriptor in streams:
+ try:
+ width, height = os.get_terminal_size(file_descriptor)
+ except (AttributeError, ValueError, OSError): # Probably not a terminal
+ pass
+ else:
+ break
+
+ columns = self._environ.get("COLUMNS")
+ if columns is not None and columns.isdigit():
+ width = int(columns)
+ lines = self._environ.get("LINES")
+ if lines is not None and lines.isdigit():
+ height = int(lines)
+
+ # get_terminal_size can report 0, 0 if run from pseudo-terminal
+ width = width or 80
+ height = height or 25
+ return ConsoleDimensions(
+ width - self.legacy_windows if self._width is None else self._width,
+ height if self._height is None else self._height,
+ )
+
+ @size.setter
+ def size(self, new_size: Tuple[int, int]) -> None:
+ """Set a new size for the terminal.
+
+ Args:
+ new_size (Tuple[int, int]): New width and height.
+ """
+ width, height = new_size
+ self._width = width
+ self._height = height
+
+ @property
+ def width(self) -> int:
+ """Get the width of the console.
+
+ Returns:
+ int: The width (in characters) of the console.
+ """
+ return self.size.width
+
+ @width.setter
+ def width(self, width: int) -> None:
+ """Set width.
+
+ Args:
+ width (int): New width.
+ """
+ self._width = width
+
+ @property
+ def height(self) -> int:
+ """Get the height of the console.
+
+ Returns:
+ int: The height (in lines) of the console.
+ """
+ return self.size.height
+
+ @height.setter
+ def height(self, height: int) -> None:
+ """Set height.
+
+ Args:
+ height (int): new height.
+ """
+ self._height = height
+
+ def bell(self) -> None:
+ """Play a 'bell' sound (if supported by the terminal)."""
+ self.control(Control.bell())
+
+ def capture(self) -> Capture:
+ """A context manager to *capture* the result of print() or log() in a string,
+ rather than writing it to the console.
+
+ Example:
+ >>> from rich.console import Console
+ >>> console = Console()
+ >>> with console.capture() as capture:
+ ... console.print("[bold magenta]Hello World[/]")
+ >>> print(capture.get())
+
+ Returns:
+ Capture: Context manager with disables writing to the terminal.
+ """
+ capture = Capture(self)
+ return capture
+
+ def pager(
+ self, pager: Optional[Pager] = None, styles: bool = False, links: bool = False
+ ) -> PagerContext:
+ """A context manager to display anything printed within a "pager". The pager application
+ is defined by the system and will typically support at least pressing a key to scroll.
+
+ Args:
+ pager (Pager, optional): A pager object, or None to use :class:`~rich.pager.SystemPager`. Defaults to None.
+ styles (bool, optional): Show styles in pager. Defaults to False.
+ links (bool, optional): Show links in pager. Defaults to False.
+
+ Example:
+ >>> from rich.console import Console
+ >>> from rich.__main__ import make_test_card
+ >>> console = Console()
+ >>> with console.pager():
+ console.print(make_test_card())
+
+ Returns:
+ PagerContext: A context manager.
+ """
+ return PagerContext(self, pager=pager, styles=styles, links=links)
+
+ def line(self, count: int = 1) -> None:
+ """Write new line(s).
+
+ Args:
+ count (int, optional): Number of new lines. Defaults to 1.
+ """
+
+ assert count >= 0, "count must be >= 0"
+ self.print(NewLine(count))
+
+ def clear(self, home: bool = True) -> None:
+ """Clear the screen.
+
+ Args:
+ home (bool, optional): Also move the cursor to 'home' position. Defaults to True.
+ """
+ if home:
+ self.control(Control.clear(), Control.home())
+ else:
+ self.control(Control.clear())
+
+ def status(
+ self,
+ status: RenderableType,
+ *,
+ spinner: str = "dots",
+ spinner_style: StyleType = "status.spinner",
+ speed: float = 1.0,
+ refresh_per_second: float = 12.5,
+ ) -> "Status":
+ """Display a status and spinner.
+
+ Args:
+ status (RenderableType): A status renderable (str or Text typically).
+ spinner (str, optional): Name of spinner animation (see python -m rich.spinner). Defaults to "dots".
+ spinner_style (StyleType, optional): Style of spinner. Defaults to "status.spinner".
+ speed (float, optional): Speed factor for spinner animation. Defaults to 1.0.
+ refresh_per_second (float, optional): Number of refreshes per second. Defaults to 12.5.
+
+ Returns:
+ Status: A Status object that may be used as a context manager.
+ """
+ from .status import Status
+
+ status_renderable = Status(
+ status,
+ console=self,
+ spinner=spinner,
+ spinner_style=spinner_style,
+ speed=speed,
+ refresh_per_second=refresh_per_second,
+ )
+ return status_renderable
+
+ def show_cursor(self, show: bool = True) -> bool:
+ """Show or hide the cursor.
+
+ Args:
+ show (bool, optional): Set visibility of the cursor.
+ """
+ if self.is_terminal:
+ self.control(Control.show_cursor(show))
+ return True
+ return False
+
+ def set_alt_screen(self, enable: bool = True) -> bool:
+ """Enables alternative screen mode.
+
+ Note, if you enable this mode, you should ensure that is disabled before
+ the application exits. See :meth:`~rich.Console.screen` for a context manager
+ that handles this for you.
+
+ Args:
+ enable (bool, optional): Enable (True) or disable (False) alternate screen. Defaults to True.
+
+ Returns:
+ bool: True if the control codes were written.
+
+ """
+ changed = False
+ if self.is_terminal and not self.legacy_windows:
+ self.control(Control.alt_screen(enable))
+ changed = True
+ self._is_alt_screen = enable
+ return changed
+
+ @property
+ def is_alt_screen(self) -> bool:
+ """Check if the alt screen was enabled.
+
+ Returns:
+ bool: True if the alt screen was enabled, otherwise False.
+ """
+ return self._is_alt_screen
+
+ def set_window_title(self, title: str) -> bool:
+ """Set the title of the console terminal window.
+
+ Warning: There is no means within Rich of "resetting" the window title to its
+ previous value, meaning the title you set will persist even after your application
+ exits.
+
+ ``fish`` shell resets the window title before and after each command by default,
+ negating this issue. Windows Terminal and command prompt will also reset the title for you.
+ Most other shells and terminals, however, do not do this.
+
+ Some terminals may require configuration changes before you can set the title.
+ Some terminals may not support setting the title at all.
+
+ Other software (including the terminal itself, the shell, custom prompts, plugins, etc.)
+ may also set the terminal window title. This could result in whatever value you write
+ using this method being overwritten.
+
+ Args:
+ title (str): The new title of the terminal window.
+
+ Returns:
+ bool: True if the control code to change the terminal title was
+ written, otherwise False. Note that a return value of True
+ does not guarantee that the window title has actually changed,
+ since the feature may be unsupported/disabled in some terminals.
+ """
+ if self.is_terminal:
+ self.control(Control.title(title))
+ return True
+ return False
+
+ def screen(
+ self, hide_cursor: bool = True, style: Optional[StyleType] = None
+ ) -> "ScreenContext":
+ """Context manager to enable and disable 'alternative screen' mode.
+
+ Args:
+ hide_cursor (bool, optional): Also hide the cursor. Defaults to False.
+ style (Style, optional): Optional style for screen. Defaults to None.
+
+ Returns:
+ ~ScreenContext: Context which enables alternate screen on enter, and disables it on exit.
+ """
+ return ScreenContext(self, hide_cursor=hide_cursor, style=style or "")
+
+ def measure(
+ self, renderable: RenderableType, *, options: Optional[ConsoleOptions] = None
+ ) -> Measurement:
+ """Measure a renderable. Returns a :class:`~rich.measure.Measurement` object which contains
+ information regarding the number of characters required to print the renderable.
+
+ Args:
+ renderable (RenderableType): Any renderable or string.
+ options (Optional[ConsoleOptions], optional): Options to use when measuring, or None
+ to use default options. Defaults to None.
+
+ Returns:
+ Measurement: A measurement of the renderable.
+ """
+ measurement = Measurement.get(self, options or self.options, renderable)
+ return measurement
+
+ def render(
+ self, renderable: RenderableType, options: Optional[ConsoleOptions] = None
+ ) -> Iterable[Segment]:
+ """Render an object in to an iterable of `Segment` instances.
+
+ This method contains the logic for rendering objects with the console protocol.
+ You are unlikely to need to use it directly, unless you are extending the library.
+
+ Args:
+ renderable (RenderableType): An object supporting the console protocol, or
+ an object that may be converted to a string.
+ options (ConsoleOptions, optional): An options object, or None to use self.options. Defaults to None.
+
+ Returns:
+ Iterable[Segment]: An iterable of segments that may be rendered.
+ """
+
+ _options = options or self.options
+ if _options.max_width < 1:
+ # No space to render anything. This prevents potential recursion errors.
+ return
+ render_iterable: RenderResult
+
+ renderable = rich_cast(renderable)
+ if hasattr(renderable, "__rich_console__") and not isinstance(renderable, type):
+ render_iterable = renderable.__rich_console__(self, _options)
+ elif isinstance(renderable, str):
+ text_renderable = self.render_str(
+ renderable, highlight=_options.highlight, markup=_options.markup
+ )
+ render_iterable = text_renderable.__rich_console__(self, _options)
+ else:
+ raise errors.NotRenderableError(
+ f"Unable to render {renderable!r}; "
+ "A str, Segment or object with __rich_console__ method is required"
+ )
+
+ try:
+ iter_render = iter(render_iterable)
+ except TypeError:
+ raise errors.NotRenderableError(
+ f"object {render_iterable!r} is not renderable"
+ )
+ _Segment = Segment
+ _options = _options.reset_height()
+ for render_output in iter_render:
+ if isinstance(render_output, _Segment):
+ yield render_output
+ else:
+ yield from self.render(render_output, _options)
+
+ def render_lines(
+ self,
+ renderable: RenderableType,
+ options: Optional[ConsoleOptions] = None,
+ *,
+ style: Optional[Style] = None,
+ pad: bool = True,
+ new_lines: bool = False,
+ ) -> List[List[Segment]]:
+ """Render objects in to a list of lines.
+
+ The output of render_lines is useful when further formatting of rendered console text
+ is required, such as the Panel class which draws a border around any renderable object.
+
+ Args:
+ renderable (RenderableType): Any object renderable in the console.
+ options (Optional[ConsoleOptions], optional): Console options, or None to use self.options. Default to ``None``.
+ style (Style, optional): Optional style to apply to renderables. Defaults to ``None``.
+ pad (bool, optional): Pad lines shorter than render width. Defaults to ``True``.
+ new_lines (bool, optional): Include "\n" characters at end of lines.
+
+ Returns:
+ List[List[Segment]]: A list of lines, where a line is a list of Segment objects.
+ """
+ with self._lock:
+ render_options = options or self.options
+ _rendered = self.render(renderable, render_options)
+ if style:
+ _rendered = Segment.apply_style(_rendered, style)
+
+ render_height = render_options.height
+ if render_height is not None:
+ render_height = max(0, render_height)
+
+ lines = list(
+ islice(
+ Segment.split_and_crop_lines(
+ _rendered,
+ render_options.max_width,
+ include_new_lines=new_lines,
+ pad=pad,
+ style=style,
+ ),
+ None,
+ render_height,
+ )
+ )
+ if render_options.height is not None:
+ extra_lines = render_options.height - len(lines)
+ if extra_lines > 0:
+ pad_line = [
+ (
+ [
+ Segment(" " * render_options.max_width, style),
+ Segment("\n"),
+ ]
+ if new_lines
+ else [Segment(" " * render_options.max_width, style)]
+ )
+ ]
+ lines.extend(pad_line * extra_lines)
+
+ return lines
+
+ def render_str(
+ self,
+ text: str,
+ *,
+ style: Union[str, Style] = "",
+ justify: Optional[JustifyMethod] = None,
+ overflow: Optional[OverflowMethod] = None,
+ emoji: Optional[bool] = None,
+ markup: Optional[bool] = None,
+ highlight: Optional[bool] = None,
+ highlighter: Optional[HighlighterType] = None,
+ ) -> "Text":
+ """Convert a string to a Text instance. This is called automatically if
+ you print or log a string.
+
+ Args:
+ text (str): Text to render.
+ style (Union[str, Style], optional): Style to apply to rendered text.
+ justify (str, optional): Justify method: "default", "left", "center", "full", or "right". Defaults to ``None``.
+ overflow (str, optional): Overflow method: "crop", "fold", or "ellipsis". Defaults to ``None``.
+ emoji (Optional[bool], optional): Enable emoji, or ``None`` to use Console default.
+ markup (Optional[bool], optional): Enable markup, or ``None`` to use Console default.
+ highlight (Optional[bool], optional): Enable highlighting, or ``None`` to use Console default.
+ highlighter (HighlighterType, optional): Optional highlighter to apply.
+ Returns:
+ ConsoleRenderable: Renderable object.
+
+ """
+ emoji_enabled = emoji or (emoji is None and self._emoji)
+ markup_enabled = markup or (markup is None and self._markup)
+ highlight_enabled = highlight or (highlight is None and self._highlight)
+
+ if markup_enabled:
+ rich_text = render_markup(
+ text,
+ style=style,
+ emoji=emoji_enabled,
+ emoji_variant=self._emoji_variant,
+ )
+ rich_text.justify = justify
+ rich_text.overflow = overflow
+ else:
+ rich_text = Text(
+ (
+ _emoji_replace(text, default_variant=self._emoji_variant)
+ if emoji_enabled
+ else text
+ ),
+ justify=justify,
+ overflow=overflow,
+ style=style,
+ )
+
+ _highlighter = (highlighter or self.highlighter) if highlight_enabled else None
+ if _highlighter is not None:
+ highlight_text = _highlighter(str(rich_text))
+ highlight_text.copy_styles(rich_text)
+ return highlight_text
+
+ return rich_text
+
+ def get_style(
+ self, name: Union[str, Style], *, default: Optional[Union[Style, str]] = None
+ ) -> Style:
+ """Get a Style instance by its theme name or parse a definition.
+
+ Args:
+ name (str): The name of a style or a style definition.
+
+ Returns:
+ Style: A Style object.
+
+ Raises:
+ MissingStyle: If no style could be parsed from name.
+
+ """
+ if isinstance(name, Style):
+ return name
+
+ try:
+ style = self._theme_stack.get(name)
+ if style is None:
+ style = Style.parse(name)
+ return style.copy() if style.link else style
+ except errors.StyleSyntaxError as error:
+ if default is not None:
+ return self.get_style(default)
+ raise errors.MissingStyle(
+ f"Failed to get style {name!r}; {error}"
+ ) from None
+
+ def _collect_renderables(
+ self,
+ objects: Iterable[Any],
+ sep: str,
+ end: str,
+ *,
+ justify: Optional[JustifyMethod] = None,
+ emoji: Optional[bool] = None,
+ markup: Optional[bool] = None,
+ highlight: Optional[bool] = None,
+ ) -> List[ConsoleRenderable]:
+ """Combine a number of renderables and text into one renderable.
+
+ Args:
+ objects (Iterable[Any]): Anything that Rich can render.
+ sep (str): String to write between print data.
+ end (str): String to write at end of print data.
+ justify (str, optional): One of "left", "right", "center", or "full". Defaults to ``None``.
+ emoji (Optional[bool], optional): Enable emoji code, or ``None`` to use console default.
+ markup (Optional[bool], optional): Enable markup, or ``None`` to use console default.
+ highlight (Optional[bool], optional): Enable automatic highlighting, or ``None`` to use console default.
+
+ Returns:
+ List[ConsoleRenderable]: A list of things to render.
+ """
+
+ def is_expandable(obj: object) -> bool:
+ """Check if an object is expandable by pretty printer."""
+ # Permit lazy loading
+ from .pretty import is_expandable as _is_expandable
+
+ return _is_expandable(obj)
+
+ renderables: List[ConsoleRenderable] = []
+ _append = renderables.append
+ text: List[Text] = []
+ append_text = text.append
+
+ append = _append
+ if justify in ("left", "center", "right"):
+
+ def align_append(renderable: RenderableType) -> None:
+ _append(Align(renderable, cast(AlignMethod, justify)))
+
+ append = align_append
+
+ _highlighter: HighlighterType = _null_highlighter
+ if highlight or (highlight is None and self._highlight):
+ _highlighter = self.highlighter
+
+ def check_text() -> None:
+ if text:
+ sep_text = Text(sep, justify=justify, end=end)
+ append(sep_text.join(text))
+ text.clear()
+
+ for renderable in objects:
+ renderable = rich_cast(renderable)
+ if isinstance(renderable, str):
+ append_text(
+ self.render_str(
+ renderable,
+ emoji=emoji,
+ markup=markup,
+ highlight=highlight,
+ highlighter=_highlighter,
+ )
+ )
+ elif isinstance(renderable, Text):
+ append_text(renderable)
+ elif isinstance(renderable, ConsoleRenderable):
+ check_text()
+ append(renderable)
+ elif is_expandable(renderable):
+ check_text()
+ from .pretty import Pretty
+
+ append(Pretty(renderable, highlighter=_highlighter))
+ else:
+ append_text(_highlighter(str(renderable)))
+
+ check_text()
+
+ if self.style is not None:
+ style = self.get_style(self.style)
+ renderables = [Styled(renderable, style) for renderable in renderables]
+
+ return renderables
+
+ def rule(
+ self,
+ title: TextType = "",
+ *,
+ characters: str = "─",
+ style: Union[str, Style] = "rule.line",
+ align: AlignMethod = "center",
+ ) -> None:
+ """Draw a line with optional centered title.
+
+ Args:
+ title (str, optional): Text to render over the rule. Defaults to "".
+ characters (str, optional): Character(s) to form the line. Defaults to "─".
+ style (str, optional): Style of line. Defaults to "rule.line".
+ align (str, optional): How to align the title, one of "left", "center", or "right". Defaults to "center".
+ """
+ from .rule import Rule
+
+ rule = Rule(title=title, characters=characters, style=style, align=align)
+ self.print(rule)
+
+ def control(self, *control: Control) -> None:
+ """Insert non-printing control codes.
+
+ Args:
+ control_codes (str): Control codes, such as those that may move the cursor.
+ """
+ if not self.is_dumb_terminal:
+ with self:
+ self._buffer.extend(_control.segment for _control in control)
+
+ def out(
+ self,
+ *objects: Any,
+ sep: str = " ",
+ end: str = "\n",
+ style: Optional[Union[str, Style]] = None,
+ highlight: Optional[bool] = None,
+ ) -> None:
+ """Output to the terminal. This is a low-level way of writing to the terminal which unlike
+ :meth:`~rich.console.Console.print` won't pretty print, wrap text, or apply markup, but will
+ optionally apply highlighting and a basic style.
+
+ Args:
+ sep (str, optional): String to write between print data. Defaults to " ".
+ end (str, optional): String to write at end of print data. Defaults to "\\\\n".
+ style (Union[str, Style], optional): A style to apply to output. Defaults to None.
+ highlight (Optional[bool], optional): Enable automatic highlighting, or ``None`` to use
+ console default. Defaults to ``None``.
+ """
+ raw_output: str = sep.join(str(_object) for _object in objects)
+ self.print(
+ raw_output,
+ style=style,
+ highlight=highlight,
+ emoji=False,
+ markup=False,
+ no_wrap=True,
+ overflow="ignore",
+ crop=False,
+ end=end,
+ )
+
+ def print(
+ self,
+ *objects: Any,
+ sep: str = " ",
+ end: str = "\n",
+ style: Optional[Union[str, Style]] = None,
+ justify: Optional[JustifyMethod] = None,
+ overflow: Optional[OverflowMethod] = None,
+ no_wrap: Optional[bool] = None,
+ emoji: Optional[bool] = None,
+ markup: Optional[bool] = None,
+ highlight: Optional[bool] = None,
+ width: Optional[int] = None,
+ height: Optional[int] = None,
+ crop: bool = True,
+ soft_wrap: Optional[bool] = None,
+ new_line_start: bool = False,
+ ) -> None:
+ """Print to the console.
+
+ Args:
+ objects (positional args): Objects to log to the terminal.
+ sep (str, optional): String to write between print data. Defaults to " ".
+ end (str, optional): String to write at end of print data. Defaults to "\\\\n".
+ style (Union[str, Style], optional): A style to apply to output. Defaults to None.
+ justify (str, optional): Justify method: "default", "left", "right", "center", or "full". Defaults to ``None``.
+ overflow (str, optional): Overflow method: "ignore", "crop", "fold", or "ellipsis". Defaults to None.
+ no_wrap (Optional[bool], optional): Disable word wrapping. Defaults to None.
+ emoji (Optional[bool], optional): Enable emoji code, or ``None`` to use console default. Defaults to ``None``.
+ markup (Optional[bool], optional): Enable markup, or ``None`` to use console default. Defaults to ``None``.
+ highlight (Optional[bool], optional): Enable automatic highlighting, or ``None`` to use console default. Defaults to ``None``.
+ width (Optional[int], optional): Width of output, or ``None`` to auto-detect. Defaults to ``None``.
+ crop (Optional[bool], optional): Crop output to width of terminal. Defaults to True.
+ soft_wrap (bool, optional): Enable soft wrap mode which disables word wrapping and cropping of text or ``None`` for
+ Console default. Defaults to ``None``.
+ new_line_start (bool, False): Insert a new line at the start if the output contains more than one line. Defaults to ``False``.
+ """
+ if not objects:
+ if end == "\n":
+ objects = (NewLine(),)
+ else:
+ objects = ("",)
+
+ if soft_wrap is None:
+ soft_wrap = self.soft_wrap
+ if soft_wrap:
+ if no_wrap is None:
+ no_wrap = True
+ if overflow is None:
+ overflow = "ignore"
+ crop = False
+ render_hooks = self._render_hooks[:]
+ with self:
+ renderables = self._collect_renderables(
+ objects,
+ sep,
+ end,
+ justify=justify,
+ emoji=emoji,
+ markup=markup,
+ highlight=highlight,
+ )
+ for hook in render_hooks:
+ renderables = hook.process_renderables(renderables)
+ render_options = self.options.update(
+ justify=justify,
+ overflow=overflow,
+ width=min(width, self.width) if width is not None else NO_CHANGE,
+ height=height,
+ no_wrap=no_wrap,
+ markup=markup,
+ highlight=highlight,
+ )
+
+ new_segments: List[Segment] = []
+ extend = new_segments.extend
+ render = self.render
+ if style is None:
+ for renderable in renderables:
+ extend(render(renderable, render_options))
+ else:
+ render_style = self.get_style(style)
+ new_line = Segment.line()
+ for renderable in renderables:
+ for line, add_new_line in Segment.split_lines_terminator(
+ render(renderable, render_options)
+ ):
+ extend(Segment.apply_style(line, render_style))
+ if add_new_line:
+ new_segments.append(new_line)
+
+ if new_line_start:
+ if (
+ len("".join(segment.text for segment in new_segments).splitlines())
+ > 1
+ ):
+ new_segments.insert(0, Segment.line())
+ if crop:
+ buffer_extend = self._buffer.extend
+ for line in Segment.split_and_crop_lines(
+ new_segments, self.width, pad=False
+ ):
+ buffer_extend(line)
+ else:
+ self._buffer.extend(new_segments)
+
+ def print_json(
+ self,
+ json: Optional[str] = None,
+ *,
+ data: Any = None,
+ indent: Union[None, int, str] = 2,
+ highlight: bool = True,
+ skip_keys: bool = False,
+ ensure_ascii: bool = False,
+ check_circular: bool = True,
+ allow_nan: bool = True,
+ default: Optional[Callable[[Any], Any]] = None,
+ sort_keys: bool = False,
+ ) -> None:
+ """Pretty prints JSON. Output will be valid JSON.
+
+ Args:
+ json (Optional[str]): A string containing JSON.
+ data (Any): If json is not supplied, then encode this data.
+ indent (Union[None, int, str], optional): Number of spaces to indent. Defaults to 2.
+ highlight (bool, optional): Enable highlighting of output: Defaults to True.
+ skip_keys (bool, optional): Skip keys not of a basic type. Defaults to False.
+ ensure_ascii (bool, optional): Escape all non-ascii characters. Defaults to False.
+ check_circular (bool, optional): Check for circular references. Defaults to True.
+ allow_nan (bool, optional): Allow NaN and Infinity values. Defaults to True.
+ default (Callable, optional): A callable that converts values that can not be encoded
+ in to something that can be JSON encoded. Defaults to None.
+ sort_keys (bool, optional): Sort dictionary keys. Defaults to False.
+ """
+ from rich.json import JSON
+
+ if json is None:
+ json_renderable = JSON.from_data(
+ data,
+ indent=indent,
+ highlight=highlight,
+ skip_keys=skip_keys,
+ ensure_ascii=ensure_ascii,
+ check_circular=check_circular,
+ allow_nan=allow_nan,
+ default=default,
+ sort_keys=sort_keys,
+ )
+ else:
+ if not isinstance(json, str):
+ raise TypeError(
+ f"json must be str. Did you mean print_json(data={json!r}) ?"
+ )
+ json_renderable = JSON(
+ json,
+ indent=indent,
+ highlight=highlight,
+ skip_keys=skip_keys,
+ ensure_ascii=ensure_ascii,
+ check_circular=check_circular,
+ allow_nan=allow_nan,
+ default=default,
+ sort_keys=sort_keys,
+ )
+ self.print(json_renderable, soft_wrap=True)
+
+ def update_screen(
+ self,
+ renderable: RenderableType,
+ *,
+ region: Optional[Region] = None,
+ options: Optional[ConsoleOptions] = None,
+ ) -> None:
+ """Update the screen at a given offset.
+
+ Args:
+ renderable (RenderableType): A Rich renderable.
+ region (Region, optional): Region of screen to update, or None for entire screen. Defaults to None.
+ x (int, optional): x offset. Defaults to 0.
+ y (int, optional): y offset. Defaults to 0.
+
+ Raises:
+ errors.NoAltScreen: If the Console isn't in alt screen mode.
+
+ """
+ if not self.is_alt_screen:
+ raise errors.NoAltScreen("Alt screen must be enabled to call update_screen")
+ render_options = options or self.options
+ if region is None:
+ x = y = 0
+ render_options = render_options.update_dimensions(
+ render_options.max_width, render_options.height or self.height
+ )
+ else:
+ x, y, width, height = region
+ render_options = render_options.update_dimensions(width, height)
+
+ lines = self.render_lines(renderable, options=render_options)
+ self.update_screen_lines(lines, x, y)
+
+ def update_screen_lines(
+ self, lines: List[List[Segment]], x: int = 0, y: int = 0
+ ) -> None:
+ """Update lines of the screen at a given offset.
+
+ Args:
+ lines (List[List[Segment]]): Rendered lines (as produced by :meth:`~rich.Console.render_lines`).
+ x (int, optional): x offset (column no). Defaults to 0.
+ y (int, optional): y offset (column no). Defaults to 0.
+
+ Raises:
+ errors.NoAltScreen: If the Console isn't in alt screen mode.
+ """
+ if not self.is_alt_screen:
+ raise errors.NoAltScreen("Alt screen must be enabled to call update_screen")
+ screen_update = ScreenUpdate(lines, x, y)
+ segments = self.render(screen_update)
+ self._buffer.extend(segments)
+ self._check_buffer()
+
+ def print_exception(
+ self,
+ *,
+ width: Optional[int] = 100,
+ extra_lines: int = 3,
+ theme: Optional[str] = None,
+ word_wrap: bool = False,
+ show_locals: bool = False,
+ suppress: Iterable[Union[str, ModuleType]] = (),
+ max_frames: int = 100,
+ ) -> None:
+ """Prints a rich render of the last exception and traceback.
+
+ Args:
+ width (Optional[int], optional): Number of characters used to render code. Defaults to 100.
+ extra_lines (int, optional): Additional lines of code to render. Defaults to 3.
+ theme (str, optional): Override pygments theme used in traceback
+ word_wrap (bool, optional): Enable word wrapping of long lines. Defaults to False.
+ show_locals (bool, optional): Enable display of local variables. Defaults to False.
+ suppress (Iterable[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.
+ max_frames (int): Maximum number of frames to show in a traceback, 0 for no maximum. Defaults to 100.
+ """
+ from .traceback import Traceback
+
+ traceback = Traceback(
+ width=width,
+ extra_lines=extra_lines,
+ theme=theme,
+ word_wrap=word_wrap,
+ show_locals=show_locals,
+ suppress=suppress,
+ max_frames=max_frames,
+ )
+ self.print(traceback)
+
+ @staticmethod
+ def _caller_frame_info(
+ offset: int, currentframe: Optional[Callable[[], Optional[FrameType]]] = None
+ ) -> Tuple[str, int, Dict[str, Any]]:
+ """Get caller frame information.
+
+ Args:
+ offset (int): the caller offset within the current frame stack.
+ currentframe (Callable[[], Optional[FrameType]], optional): the callable to use to
+ retrieve the current frame. Defaults to None, which will use ``inspect.currentframe()``.
+
+ Returns:
+ Tuple[str, int, Dict[str, Any]]: A tuple containing the filename, the line number and
+ the dictionary of local variables associated with the caller frame.
+
+ Raises:
+ RuntimeError: If the stack offset is invalid.
+ """
+ # Ignore the frame of this local helper
+ offset += 1
+
+ if currentframe is None:
+ import inspect
+
+ frame = inspect.currentframe()
+ else:
+ frame = currentframe()
+ if frame is not None:
+ while offset and frame is not None:
+ frame = frame.f_back
+ offset -= 1
+ assert frame is not None
+ return frame.f_code.co_filename, frame.f_lineno, frame.f_locals
+ else:
+ from inspect import stack
+
+ frame_info = stack()[offset]
+ return frame_info.filename, frame_info.lineno, frame_info.frame.f_locals
+
+ def log(
+ self,
+ *objects: Any,
+ sep: str = " ",
+ end: str = "\n",
+ style: Optional[Union[str, Style]] = None,
+ justify: Optional[JustifyMethod] = None,
+ emoji: Optional[bool] = None,
+ markup: Optional[bool] = None,
+ highlight: Optional[bool] = None,
+ log_locals: bool = False,
+ _stack_offset: int = 1,
+ ) -> None:
+ """Log rich content to the terminal.
+
+ Args:
+ objects (positional args): Objects to log to the terminal.
+ sep (str, optional): String to write between print data. Defaults to " ".
+ end (str, optional): String to write at end of print data. Defaults to "\\\\n".
+ style (Union[str, Style], optional): A style to apply to output. Defaults to None.
+ justify (str, optional): One of "left", "right", "center", or "full". Defaults to ``None``.
+ emoji (Optional[bool], optional): Enable emoji code, or ``None`` to use console default. Defaults to None.
+ markup (Optional[bool], optional): Enable markup, or ``None`` to use console default. Defaults to None.
+ highlight (Optional[bool], optional): Enable automatic highlighting, or ``None`` to use console default. Defaults to None.
+ log_locals (bool, optional): Boolean to enable logging of locals where ``log()``
+ was called. Defaults to False.
+ _stack_offset (int, optional): Offset of caller from end of call stack. Defaults to 1.
+ """
+ if not objects:
+ objects = (NewLine(),)
+
+ render_hooks = self._render_hooks[:]
+
+ with self:
+ renderables = self._collect_renderables(
+ objects,
+ sep,
+ end,
+ justify=justify,
+ emoji=emoji,
+ markup=markup,
+ highlight=highlight,
+ )
+ if style is not None:
+ renderables = [Styled(renderable, style) for renderable in renderables]
+
+ filename, line_no, locals = self._caller_frame_info(_stack_offset)
+ link_path = None if filename.startswith("<") else os.path.abspath(filename)
+ path = filename.rpartition(os.sep)[-1]
+ if log_locals:
+ from .scope import render_scope
+
+ locals_map = {
+ key: value
+ for key, value in locals.items()
+ if not key.startswith("__")
+ }
+ renderables.append(render_scope(locals_map, title="[i]locals"))
+
+ renderables = [
+ self._log_render(
+ self,
+ renderables,
+ log_time=self.get_datetime(),
+ path=path,
+ line_no=line_no,
+ link_path=link_path,
+ )
+ ]
+ for hook in render_hooks:
+ renderables = hook.process_renderables(renderables)
+ new_segments: List[Segment] = []
+ extend = new_segments.extend
+ render = self.render
+ render_options = self.options
+ for renderable in renderables:
+ extend(render(renderable, render_options))
+ buffer_extend = self._buffer.extend
+ for line in Segment.split_and_crop_lines(
+ new_segments, self.width, pad=False
+ ):
+ buffer_extend(line)
+
+ def on_broken_pipe(self) -> None:
+ """This function is called when a `BrokenPipeError` is raised.
+
+ This can occur when piping Textual output in Linux and macOS.
+ The default implementation is to exit the app, but you could implement
+ this method in a subclass to change the behavior.
+
+ See https://docs.python.org/3/library/signal.html#note-on-sigpipe for details.
+ """
+ self.quiet = True
+ devnull = os.open(os.devnull, os.O_WRONLY)
+ os.dup2(devnull, sys.stdout.fileno())
+ raise SystemExit(1)
+
+ def _check_buffer(self) -> None:
+ """Check if the buffer may be rendered. Render it if it can (e.g. Console.quiet is False)
+ Rendering is supported on Windows, Unix and Jupyter environments. For
+ legacy Windows consoles, the win32 API is called directly.
+ This method will also record what it renders if recording is enabled via Console.record.
+ """
+ if self.quiet:
+ del self._buffer[:]
+ return
+
+ try:
+ self._write_buffer()
+ except BrokenPipeError:
+ self.on_broken_pipe()
+
+ def _write_buffer(self) -> None:
+ """Write the buffer to the output file."""
+
+ with self._lock:
+ if self.record and not self._buffer_index:
+ with self._record_buffer_lock:
+ self._record_buffer.extend(self._buffer[:])
+
+ if self._buffer_index == 0:
+ if self.is_jupyter: # pragma: no cover
+ from .jupyter import display
+
+ display(self._buffer, self._render_buffer(self._buffer[:]))
+ del self._buffer[:]
+ else:
+ if WINDOWS:
+ use_legacy_windows_render = False
+ if self.legacy_windows:
+ fileno = get_fileno(self.file)
+ if fileno is not None:
+ use_legacy_windows_render = (
+ fileno in _STD_STREAMS_OUTPUT
+ )
+
+ if use_legacy_windows_render:
+ from rich._win32_console import LegacyWindowsTerm
+ from rich._windows_renderer import legacy_windows_render
+
+ buffer = self._buffer[:]
+ if self.no_color and self._color_system:
+ buffer = list(Segment.remove_color(buffer))
+
+ legacy_windows_render(buffer, LegacyWindowsTerm(self.file))
+ else:
+ # Either a non-std stream on legacy Windows, or modern Windows.
+ text = self._render_buffer(self._buffer[:])
+ # https://bugs.python.org/issue37871
+ # https://github.com/python/cpython/issues/82052
+ # We need to avoid writing more than 32Kb in a single write, due to the above bug
+ write = self.file.write
+ # Worse case scenario, every character is 4 bytes of utf-8
+ MAX_WRITE = 32 * 1024 // 4
+ try:
+ if len(text) <= MAX_WRITE:
+ write(text)
+ else:
+ batch: List[str] = []
+ batch_append = batch.append
+ size = 0
+ for line in text.splitlines(True):
+ if size + len(line) > MAX_WRITE and batch:
+ write("".join(batch))
+ batch.clear()
+ size = 0
+ batch_append(line)
+ size += len(line)
+ if batch:
+ write("".join(batch))
+ batch.clear()
+ except UnicodeEncodeError as error:
+ error.reason = f"{error.reason}\n*** You may need to add PYTHONIOENCODING=utf-8 to your environment ***"
+ raise
+ else:
+ text = self._render_buffer(self._buffer[:])
+ try:
+ self.file.write(text)
+ except UnicodeEncodeError as error:
+ error.reason = f"{error.reason}\n*** You may need to add PYTHONIOENCODING=utf-8 to your environment ***"
+ raise
+
+ self.file.flush()
+ del self._buffer[:]
+
+ def _render_buffer(self, buffer: Iterable[Segment]) -> str:
+ """Render buffered output, and clear buffer."""
+ output: List[str] = []
+ append = output.append
+ color_system = self._color_system
+ legacy_windows = self.legacy_windows
+ not_terminal = not self.is_terminal
+ if self.no_color and color_system:
+ buffer = Segment.remove_color(buffer)
+ for text, style, control in buffer:
+ if style:
+ append(
+ style.render(
+ text,
+ color_system=color_system,
+ legacy_windows=legacy_windows,
+ )
+ )
+ elif not (not_terminal and control):
+ append(text)
+
+ rendered = "".join(output)
+ return rendered
+
+ def input(
+ self,
+ prompt: TextType = "",
+ *,
+ markup: bool = True,
+ emoji: bool = True,
+ password: bool = False,
+ stream: Optional[TextIO] = None,
+ ) -> str:
+ """Displays a prompt and waits for input from the user. The prompt may contain color / style.
+
+ It works in the same way as Python's builtin :func:`input` function and provides elaborate line editing and history features if Python's builtin :mod:`readline` module is previously loaded.
+
+ Args:
+ prompt (Union[str, Text]): Text to render in the prompt.
+ markup (bool, optional): Enable console markup (requires a str prompt). Defaults to True.
+ emoji (bool, optional): Enable emoji (requires a str prompt). Defaults to True.
+ password: (bool, optional): Hide typed text. Defaults to False.
+ stream: (TextIO, optional): Optional file to read input from (rather than stdin). Defaults to None.
+
+ Returns:
+ str: Text read from stdin.
+ """
+ if prompt:
+ self.print(prompt, markup=markup, emoji=emoji, end="")
+ if password:
+ import getpass as _getpass_mod
+
+ result = _getpass_mod.getpass("", stream=stream)
+ else:
+ if stream:
+ result = stream.readline()
+ else:
+ result = input()
+ return result
+
+ def export_text(self, *, clear: bool = True, styles: bool = False) -> str:
+ """Generate text from console contents (requires record=True argument in constructor).
+
+ Args:
+ clear (bool, optional): Clear record buffer after exporting. Defaults to ``True``.
+ styles (bool, optional): If ``True``, ansi escape codes will be included. ``False`` for plain text.
+ Defaults to ``False``.
+
+ Returns:
+ str: String containing console contents.
+
+ """
+ assert (
+ self.record
+ ), "To export console contents set record=True in the constructor or instance"
+
+ with self._record_buffer_lock:
+ if styles:
+ text = "".join(
+ (style.render(text) if style else text)
+ for text, style, _ in self._record_buffer
+ )
+ else:
+ text = "".join(
+ segment.text
+ for segment in self._record_buffer
+ if not segment.control
+ )
+ if clear:
+ del self._record_buffer[:]
+ return text
+
+ def save_text(
+ self,
+ path: Union[str, PathLike[str]],
+ *,
+ clear: bool = True,
+ styles: bool = False,
+ ) -> None:
+ """Generate text from console and save to a given location (requires record=True argument in constructor).
+
+ Args:
+ path (Union[str, PathLike[str]]): Path to write text files.
+ clear (bool, optional): Clear record buffer after exporting. Defaults to ``True``.
+ styles (bool, optional): If ``True``, ansi style codes will be included. ``False`` for plain text.
+ Defaults to ``False``.
+
+ """
+ text = self.export_text(clear=clear, styles=styles)
+ with open(path, "w", encoding="utf-8") as write_file:
+ write_file.write(text)
+
+ def export_html(
+ self,
+ *,
+ theme: Optional[TerminalTheme] = None,
+ clear: bool = True,
+ code_format: Optional[str] = None,
+ inline_styles: bool = False,
+ ) -> str:
+ """Generate HTML from console contents (requires record=True argument in constructor).
+
+ Args:
+ theme (TerminalTheme, optional): TerminalTheme object containing console colors.
+ clear (bool, optional): Clear record buffer after exporting. Defaults to ``True``.
+ code_format (str, optional): Format string to render HTML. In addition to '{foreground}',
+ '{background}', and '{code}', should contain '{stylesheet}' if inline_styles is ``False``.
+ inline_styles (bool, optional): If ``True`` styles will be inlined in to spans, which makes files
+ larger but easier to cut and paste markup. If ``False``, styles will be embedded in a style tag.
+ Defaults to False.
+
+ Returns:
+ str: String containing console contents as HTML.
+ """
+ from html import escape
+
+ assert (
+ self.record
+ ), "To export console contents set record=True in the constructor or instance"
+ fragments: List[str] = []
+ append = fragments.append
+ _theme = theme or DEFAULT_TERMINAL_THEME
+ stylesheet = ""
+
+ render_code_format = CONSOLE_HTML_FORMAT if code_format is None else code_format
+
+ with self._record_buffer_lock:
+ if inline_styles:
+ for text, style, _ in Segment.filter_control(
+ Segment.simplify(self._record_buffer)
+ ):
+ text = escape(text)
+ if style:
+ rule = style.get_html_style(_theme)
+ if style.link:
+ text = f'{text} '
+ text = f'{text} ' if rule else text
+ append(text)
+ else:
+ styles: Dict[str, int] = {}
+ for text, style, _ in Segment.filter_control(
+ Segment.simplify(self._record_buffer)
+ ):
+ text = escape(text)
+ if style:
+ rule = style.get_html_style(_theme)
+ style_number = styles.setdefault(rule, len(styles) + 1)
+ if style.link:
+ text = f'{text} '
+ else:
+ text = f'{text} '
+ append(text)
+ stylesheet_rules: List[str] = []
+ stylesheet_append = stylesheet_rules.append
+ for style_rule, style_number in styles.items():
+ if style_rule:
+ stylesheet_append(f".r{style_number} {{{style_rule}}}")
+ stylesheet = "\n".join(stylesheet_rules)
+
+ rendered_code = render_code_format.format(
+ code="".join(fragments),
+ stylesheet=stylesheet,
+ foreground=_theme.foreground_color.hex,
+ background=_theme.background_color.hex,
+ )
+ if clear:
+ del self._record_buffer[:]
+ return rendered_code
+
+ def save_html(
+ self,
+ path: Union[str, PathLike[str]],
+ *,
+ theme: Optional[TerminalTheme] = None,
+ clear: bool = True,
+ code_format: str = CONSOLE_HTML_FORMAT,
+ inline_styles: bool = False,
+ ) -> None:
+ """Generate HTML from console contents and write to a file (requires record=True argument in constructor).
+
+ Args:
+ path (Union[str, PathLike[str]]): Path to write html file.
+ theme (TerminalTheme, optional): TerminalTheme object containing console colors.
+ clear (bool, optional): Clear record buffer after exporting. Defaults to ``True``.
+ code_format (str, optional): Format string to render HTML. In addition to '{foreground}',
+ '{background}', and '{code}', should contain '{stylesheet}' if inline_styles is ``False``.
+ inline_styles (bool, optional): If ``True`` styles will be inlined in to spans, which makes files
+ larger but easier to cut and paste markup. If ``False``, styles will be embedded in a style tag.
+ Defaults to False.
+
+ """
+ html = self.export_html(
+ theme=theme,
+ clear=clear,
+ code_format=code_format,
+ inline_styles=inline_styles,
+ )
+ with open(path, "w", encoding="utf-8") as write_file:
+ write_file.write(html)
+
+ def export_svg(
+ self,
+ *,
+ title: str = "Rich",
+ theme: Optional[TerminalTheme] = None,
+ clear: bool = True,
+ code_format: str = CONSOLE_SVG_FORMAT,
+ font_aspect_ratio: float = 0.61,
+ unique_id: Optional[str] = None,
+ ) -> str:
+ """
+ Generate an SVG from the console contents (requires record=True in Console constructor).
+
+ Args:
+ title (str, optional): The title of the tab in the output image
+ theme (TerminalTheme, optional): The ``TerminalTheme`` object to use to style the terminal
+ clear (bool, optional): Clear record buffer after exporting. Defaults to ``True``
+ code_format (str, optional): Format string used to generate the SVG. Rich will inject a number of variables
+ into the string in order to form the final SVG output. The default template used and the variables
+ injected by Rich can be found by inspecting the ``console.CONSOLE_SVG_FORMAT`` variable.
+ font_aspect_ratio (float, optional): The width to height ratio of the font used in the ``code_format``
+ string. Defaults to 0.61, which is the width to height ratio of Fira Code (the default font).
+ If you aren't specifying a different font inside ``code_format``, you probably don't need this.
+ unique_id (str, optional): unique id that is used as the prefix for various elements (CSS styles, node
+ ids). If not set, this defaults to a computed value based on the recorded content.
+ """
+
+ import zlib
+ from html import escape
+
+ from rich.cells import cell_len
+
+ style_cache: Dict[Style, str] = {}
+
+ def get_svg_style(style: Style) -> str:
+ """Convert a Style to CSS rules for SVG."""
+ if style in style_cache:
+ return style_cache[style]
+ css_rules = []
+ color = (
+ _theme.foreground_color
+ if (style.color is None or style.color.is_default)
+ else style.color.get_truecolor(_theme)
+ )
+ bgcolor = (
+ _theme.background_color
+ if (style.bgcolor is None or style.bgcolor.is_default)
+ else style.bgcolor.get_truecolor(_theme)
+ )
+ if style.reverse:
+ color, bgcolor = bgcolor, color
+ if style.dim:
+ color = blend_rgb(color, bgcolor, 0.4)
+ css_rules.append(f"fill: {color.hex}")
+ if style.bold:
+ css_rules.append("font-weight: bold")
+ if style.italic:
+ css_rules.append("font-style: italic;")
+ if style.underline:
+ css_rules.append("text-decoration: underline;")
+ if style.strike:
+ css_rules.append("text-decoration: line-through;")
+
+ css = ";".join(css_rules)
+ style_cache[style] = css
+ return css
+
+ _theme = theme or SVG_EXPORT_THEME
+
+ width = self.width
+ char_height = 20
+ char_width = char_height * font_aspect_ratio
+ line_height = char_height * 1.22
+
+ margin_top = 1
+ margin_right = 1
+ margin_bottom = 1
+ margin_left = 1
+
+ padding_top = 40
+ padding_right = 8
+ padding_bottom = 8
+ padding_left = 8
+
+ padding_width = padding_left + padding_right
+ padding_height = padding_top + padding_bottom
+ margin_width = margin_left + margin_right
+ margin_height = margin_top + margin_bottom
+
+ text_backgrounds: List[str] = []
+ text_group: List[str] = []
+ classes: Dict[str, int] = {}
+ style_no = 1
+
+ def escape_text(text: str) -> str:
+ """HTML escape text and replace spaces with nbsp."""
+ return escape(text).replace(" ", " ")
+
+ def make_tag(
+ name: str, content: Optional[str] = None, **attribs: object
+ ) -> str:
+ """Make a tag from name, content, and attributes."""
+
+ def stringify(value: object) -> str:
+ if isinstance(value, (float)):
+ return format(value, "g")
+ return str(value)
+
+ tag_attribs = " ".join(
+ f'{k.lstrip("_").replace("_", "-")}="{stringify(v)}"'
+ for k, v in attribs.items()
+ )
+ return (
+ f"<{name} {tag_attribs}>{content}{name}>"
+ if content
+ else f"<{name} {tag_attribs}/>"
+ )
+
+ with self._record_buffer_lock:
+ segments = list(Segment.filter_control(self._record_buffer))
+ if clear:
+ self._record_buffer.clear()
+
+ if unique_id is None:
+ unique_id = "terminal-" + str(
+ zlib.adler32(
+ ("".join(repr(segment) for segment in segments)).encode(
+ "utf-8",
+ "ignore",
+ )
+ + title.encode("utf-8", "ignore")
+ )
+ )
+ y = 0
+ for y, line in enumerate(Segment.split_and_crop_lines(segments, length=width)):
+ x = 0
+ for text, style, _control in line:
+ style = style or Style()
+ rules = get_svg_style(style)
+ if rules not in classes:
+ classes[rules] = style_no
+ style_no += 1
+ class_name = f"r{classes[rules]}"
+
+ if style.reverse:
+ has_background = True
+ background = (
+ _theme.foreground_color.hex
+ if style.color is None
+ else style.color.get_truecolor(_theme).hex
+ )
+ else:
+ bgcolor = style.bgcolor
+ has_background = bgcolor is not None and not bgcolor.is_default
+ background = (
+ _theme.background_color.hex
+ if style.bgcolor is None
+ else style.bgcolor.get_truecolor(_theme).hex
+ )
+
+ text_length = cell_len(text)
+ if has_background:
+ text_backgrounds.append(
+ make_tag(
+ "rect",
+ fill=background,
+ x=x * char_width,
+ y=y * line_height + 1.5,
+ width=char_width * text_length,
+ height=line_height + 0.25,
+ shape_rendering="crispEdges",
+ )
+ )
+
+ if text != " " * len(text):
+ text_group.append(
+ make_tag(
+ "text",
+ escape_text(text),
+ _class=f"{unique_id}-{class_name}",
+ x=x * char_width,
+ y=y * line_height + char_height,
+ textLength=char_width * len(text),
+ clip_path=f"url(#{unique_id}-line-{y})",
+ )
+ )
+ x += cell_len(text)
+
+ line_offsets = [line_no * line_height + 1.5 for line_no in range(y)]
+ lines = "\n".join(
+ f"""
+ {make_tag("rect", x=0, y=offset, width=char_width * width, height=line_height + 0.25)}
+ """
+ for line_no, offset in enumerate(line_offsets)
+ )
+
+ styles = "\n".join(
+ f".{unique_id}-r{rule_no} {{ {css} }}" for css, rule_no in classes.items()
+ )
+ backgrounds = "".join(text_backgrounds)
+ matrix = "".join(text_group)
+
+ terminal_width = ceil(width * char_width + padding_width)
+ terminal_height = (y + 1) * line_height + padding_height
+ chrome = make_tag(
+ "rect",
+ fill=_theme.background_color.hex,
+ stroke="rgba(255,255,255,0.35)",
+ stroke_width="1",
+ x=margin_left,
+ y=margin_top,
+ width=terminal_width,
+ height=terminal_height,
+ rx=8,
+ )
+
+ title_color = _theme.foreground_color.hex
+ if title:
+ chrome += make_tag(
+ "text",
+ escape_text(title),
+ _class=f"{unique_id}-title",
+ fill=title_color,
+ text_anchor="middle",
+ x=terminal_width // 2,
+ y=margin_top + char_height + 6,
+ )
+ chrome += f"""
+
+
+
+
+
+ """
+
+ svg = code_format.format(
+ unique_id=unique_id,
+ char_width=char_width,
+ char_height=char_height,
+ line_height=line_height,
+ terminal_width=char_width * width - 1,
+ terminal_height=(y + 1) * line_height - 1,
+ width=terminal_width + margin_width,
+ height=terminal_height + margin_height,
+ terminal_x=margin_left + padding_left,
+ terminal_y=margin_top + padding_top,
+ styles=styles,
+ chrome=chrome,
+ backgrounds=backgrounds,
+ matrix=matrix,
+ lines=lines,
+ )
+ return svg
+
+ def save_svg(
+ self,
+ path: Union[str, PathLike[str]],
+ *,
+ title: str = "Rich",
+ theme: Optional[TerminalTheme] = None,
+ clear: bool = True,
+ code_format: str = CONSOLE_SVG_FORMAT,
+ font_aspect_ratio: float = 0.61,
+ unique_id: Optional[str] = None,
+ ) -> None:
+ """Generate an SVG file from the console contents (requires record=True in Console constructor).
+
+ Args:
+ path (Union[str, PathLike[str]]): The path to write the SVG to.
+ title (str, optional): The title of the tab in the output image
+ theme (TerminalTheme, optional): The ``TerminalTheme`` object to use to style the terminal
+ clear (bool, optional): Clear record buffer after exporting. Defaults to ``True``
+ code_format (str, optional): Format string used to generate the SVG. Rich will inject a number of variables
+ into the string in order to form the final SVG output. The default template used and the variables
+ injected by Rich can be found by inspecting the ``console.CONSOLE_SVG_FORMAT`` variable.
+ font_aspect_ratio (float, optional): The width to height ratio of the font used in the ``code_format``
+ string. Defaults to 0.61, which is the width to height ratio of Fira Code (the default font).
+ If you aren't specifying a different font inside ``code_format``, you probably don't need this.
+ unique_id (str, optional): unique id that is used as the prefix for various elements (CSS styles, node
+ ids). If not set, this defaults to a computed value based on the recorded content.
+ """
+ svg = self.export_svg(
+ title=title,
+ theme=theme,
+ clear=clear,
+ code_format=code_format,
+ font_aspect_ratio=font_aspect_ratio,
+ unique_id=unique_id,
+ )
+ with open(path, "w", encoding="utf-8") as write_file:
+ write_file.write(svg)
+
+
+if __name__ == "__main__": # pragma: no cover
+ console = Console(record=True)
+
+ console.log(
+ "JSONRPC [i]request[/i]",
+ 5,
+ 1.3,
+ True,
+ False,
+ None,
+ {
+ "jsonrpc": "2.0",
+ "method": "subtract",
+ "params": {"minuend": 42, "subtrahend": 23},
+ "id": 3,
+ },
+ )
+
+ console.log("Hello, World!", "{'a': 1}", repr(console))
+
+ console.print(
+ {
+ "name": None,
+ "empty": [],
+ "quiz": {
+ "sport": {
+ "answered": True,
+ "q1": {
+ "question": "Which one is correct team name in NBA?",
+ "options": [
+ "New York Bulls",
+ "Los Angeles Kings",
+ "Golden State Warriors",
+ "Huston Rocket",
+ ],
+ "answer": "Huston Rocket",
+ },
+ },
+ "maths": {
+ "answered": False,
+ "q1": {
+ "question": "5 + 7 = ?",
+ "options": [10, 11, 12, 13],
+ "answer": 12,
+ },
+ "q2": {
+ "question": "12 - 8 = ?",
+ "options": [1, 2, 3, 4],
+ "answer": 4,
+ },
+ },
+ },
+ }
+ )
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/constrain.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/constrain.py
new file mode 100644
index 0000000000000000000000000000000000000000..65fdf56342e8b5b8e181914881025231684e1871
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/constrain.py
@@ -0,0 +1,37 @@
+from typing import Optional, TYPE_CHECKING
+
+from .jupyter import JupyterMixin
+from .measure import Measurement
+
+if TYPE_CHECKING:
+ from .console import Console, ConsoleOptions, RenderableType, RenderResult
+
+
+class Constrain(JupyterMixin):
+ """Constrain the width of a renderable to a given number of characters.
+
+ Args:
+ renderable (RenderableType): A renderable object.
+ width (int, optional): The maximum width (in characters) to render. Defaults to 80.
+ """
+
+ def __init__(self, renderable: "RenderableType", width: Optional[int] = 80) -> None:
+ self.renderable = renderable
+ self.width = width
+
+ def __rich_console__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "RenderResult":
+ if self.width is None:
+ yield self.renderable
+ else:
+ child_options = options.update_width(min(self.width, options.max_width))
+ yield from console.render(self.renderable, child_options)
+
+ def __rich_measure__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "Measurement":
+ if self.width is not None:
+ options = options.update_width(self.width)
+ measurement = Measurement.get(console, options, self.renderable)
+ return measurement
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/containers.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/containers.py
new file mode 100644
index 0000000000000000000000000000000000000000..901ff8ba6ea0836481a015ed5c627889cc416c03
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/containers.py
@@ -0,0 +1,167 @@
+from itertools import zip_longest
+from typing import (
+ TYPE_CHECKING,
+ Iterable,
+ Iterator,
+ List,
+ Optional,
+ TypeVar,
+ Union,
+ overload,
+)
+
+if TYPE_CHECKING:
+ from .console import (
+ Console,
+ ConsoleOptions,
+ JustifyMethod,
+ OverflowMethod,
+ RenderResult,
+ RenderableType,
+ )
+ from .text import Text
+
+from .cells import cell_len
+from .measure import Measurement
+
+T = TypeVar("T")
+
+
+class Renderables:
+ """A list subclass which renders its contents to the console."""
+
+ def __init__(
+ self, renderables: Optional[Iterable["RenderableType"]] = None
+ ) -> None:
+ self._renderables: List["RenderableType"] = (
+ list(renderables) if renderables is not None else []
+ )
+
+ def __rich_console__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "RenderResult":
+ """Console render method to insert line-breaks."""
+ yield from self._renderables
+
+ def __rich_measure__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "Measurement":
+ dimensions = [
+ Measurement.get(console, options, renderable)
+ for renderable in self._renderables
+ ]
+ if not dimensions:
+ return Measurement(1, 1)
+ _min = max(dimension.minimum for dimension in dimensions)
+ _max = max(dimension.maximum for dimension in dimensions)
+ return Measurement(_min, _max)
+
+ def append(self, renderable: "RenderableType") -> None:
+ self._renderables.append(renderable)
+
+ def __iter__(self) -> Iterable["RenderableType"]:
+ return iter(self._renderables)
+
+
+class Lines:
+ """A list subclass which can render to the console."""
+
+ def __init__(self, lines: Iterable["Text"] = ()) -> None:
+ self._lines: List["Text"] = list(lines)
+
+ def __repr__(self) -> str:
+ return f"Lines({self._lines!r})"
+
+ def __iter__(self) -> Iterator["Text"]:
+ return iter(self._lines)
+
+ @overload
+ def __getitem__(self, index: int) -> "Text":
+ ...
+
+ @overload
+ def __getitem__(self, index: slice) -> List["Text"]:
+ ...
+
+ def __getitem__(self, index: Union[slice, int]) -> Union["Text", List["Text"]]:
+ return self._lines[index]
+
+ def __setitem__(self, index: int, value: "Text") -> "Lines":
+ self._lines[index] = value
+ return self
+
+ def __len__(self) -> int:
+ return self._lines.__len__()
+
+ def __rich_console__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "RenderResult":
+ """Console render method to insert line-breaks."""
+ yield from self._lines
+
+ def append(self, line: "Text") -> None:
+ self._lines.append(line)
+
+ def extend(self, lines: Iterable["Text"]) -> None:
+ self._lines.extend(lines)
+
+ def pop(self, index: int = -1) -> "Text":
+ return self._lines.pop(index)
+
+ def justify(
+ self,
+ console: "Console",
+ width: int,
+ justify: "JustifyMethod" = "left",
+ overflow: "OverflowMethod" = "fold",
+ ) -> None:
+ """Justify and overflow text to a given width.
+
+ Args:
+ console (Console): Console instance.
+ width (int): Number of cells available per line.
+ justify (str, optional): Default justify method for text: "left", "center", "full" or "right". Defaults to "left".
+ overflow (str, optional): Default overflow for text: "crop", "fold", or "ellipsis". Defaults to "fold".
+
+ """
+ from .text import Text
+
+ if justify == "left":
+ for line in self._lines:
+ line.truncate(width, overflow=overflow, pad=True)
+ elif justify == "center":
+ for line in self._lines:
+ line.rstrip()
+ line.truncate(width, overflow=overflow)
+ line.pad_left((width - cell_len(line.plain)) // 2)
+ line.pad_right(width - cell_len(line.plain))
+ elif justify == "right":
+ for line in self._lines:
+ line.rstrip()
+ line.truncate(width, overflow=overflow)
+ line.pad_left(width - cell_len(line.plain))
+ elif justify == "full":
+ for line_index, line in enumerate(self._lines):
+ if line_index == len(self._lines) - 1:
+ break
+ words = line.split(" ")
+ words_size = sum(cell_len(word.plain) for word in words)
+ num_spaces = len(words) - 1
+ spaces = [1 for _ in range(num_spaces)]
+ index = 0
+ if spaces:
+ while words_size + num_spaces < width:
+ spaces[len(spaces) - index - 1] += 1
+ num_spaces += 1
+ index = (index + 1) % len(spaces)
+ tokens: List[Text] = []
+ for index, (word, next_word) in enumerate(
+ zip_longest(words, words[1:])
+ ):
+ tokens.append(word)
+ if index < len(spaces):
+ style = word.get_style_at_offset(console, -1)
+ next_style = next_word.get_style_at_offset(console, 0)
+ space_style = style if style == next_style else line.style
+ tokens.append(Text(" " * spaces[index], style=space_style))
+ self[line_index] = Text("").join(tokens)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/control.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/control.py
new file mode 100644
index 0000000000000000000000000000000000000000..248b0f595a5f101eb43c62ccc090729271be3c43
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/control.py
@@ -0,0 +1,219 @@
+import time
+from typing import TYPE_CHECKING, Callable, Dict, Iterable, List, Union, Final
+
+from .segment import ControlCode, ControlType, Segment
+
+if TYPE_CHECKING:
+ from .console import Console, ConsoleOptions, RenderResult
+
+STRIP_CONTROL_CODES: Final = [
+ 7, # Bell
+ 8, # Backspace
+ 11, # Vertical tab
+ 12, # Form feed
+ 13, # Carriage return
+]
+_CONTROL_STRIP_TRANSLATE: Final = {
+ _codepoint: None for _codepoint in STRIP_CONTROL_CODES
+}
+
+CONTROL_ESCAPE: Final = {
+ 7: "\\a",
+ 8: "\\b",
+ 11: "\\v",
+ 12: "\\f",
+ 13: "\\r",
+}
+
+CONTROL_CODES_FORMAT: Dict[int, Callable[..., str]] = {
+ ControlType.BELL: lambda: "\x07",
+ ControlType.CARRIAGE_RETURN: lambda: "\r",
+ ControlType.HOME: lambda: "\x1b[H",
+ ControlType.CLEAR: lambda: "\x1b[2J",
+ ControlType.ENABLE_ALT_SCREEN: lambda: "\x1b[?1049h",
+ ControlType.DISABLE_ALT_SCREEN: lambda: "\x1b[?1049l",
+ ControlType.SHOW_CURSOR: lambda: "\x1b[?25h",
+ ControlType.HIDE_CURSOR: lambda: "\x1b[?25l",
+ ControlType.CURSOR_UP: lambda param: f"\x1b[{param}A",
+ ControlType.CURSOR_DOWN: lambda param: f"\x1b[{param}B",
+ ControlType.CURSOR_FORWARD: lambda param: f"\x1b[{param}C",
+ ControlType.CURSOR_BACKWARD: lambda param: f"\x1b[{param}D",
+ ControlType.CURSOR_MOVE_TO_COLUMN: lambda param: f"\x1b[{param+1}G",
+ ControlType.ERASE_IN_LINE: lambda param: f"\x1b[{param}K",
+ ControlType.CURSOR_MOVE_TO: lambda x, y: f"\x1b[{y+1};{x+1}H",
+ ControlType.SET_WINDOW_TITLE: lambda title: f"\x1b]0;{title}\x07",
+}
+
+
+class Control:
+ """A renderable that inserts a control code (non printable but may move cursor).
+
+ Args:
+ *codes (str): Positional arguments are either a :class:`~rich.segment.ControlType` enum or a
+ tuple of ControlType and an integer parameter
+ """
+
+ __slots__ = ["segment"]
+
+ def __init__(self, *codes: Union[ControlType, ControlCode]) -> None:
+ control_codes: List[ControlCode] = [
+ (code,) if isinstance(code, ControlType) else code for code in codes
+ ]
+ _format_map = CONTROL_CODES_FORMAT
+ rendered_codes = "".join(
+ _format_map[code](*parameters) for code, *parameters in control_codes
+ )
+ self.segment = Segment(rendered_codes, None, control_codes)
+
+ @classmethod
+ def bell(cls) -> "Control":
+ """Ring the 'bell'."""
+ return cls(ControlType.BELL)
+
+ @classmethod
+ def home(cls) -> "Control":
+ """Move cursor to 'home' position."""
+ return cls(ControlType.HOME)
+
+ @classmethod
+ def move(cls, x: int = 0, y: int = 0) -> "Control":
+ """Move cursor relative to current position.
+
+ Args:
+ x (int): X offset.
+ y (int): Y offset.
+
+ Returns:
+ ~Control: Control object.
+
+ """
+
+ def get_codes() -> Iterable[ControlCode]:
+ control = ControlType
+ if x:
+ yield (
+ control.CURSOR_FORWARD if x > 0 else control.CURSOR_BACKWARD,
+ abs(x),
+ )
+ if y:
+ yield (
+ control.CURSOR_DOWN if y > 0 else control.CURSOR_UP,
+ abs(y),
+ )
+
+ control = cls(*get_codes())
+ return control
+
+ @classmethod
+ def move_to_column(cls, x: int, y: int = 0) -> "Control":
+ """Move to the given column, optionally add offset to row.
+
+ Returns:
+ x (int): absolute x (column)
+ y (int): optional y offset (row)
+
+ Returns:
+ ~Control: Control object.
+ """
+
+ return (
+ cls(
+ (ControlType.CURSOR_MOVE_TO_COLUMN, x),
+ (
+ ControlType.CURSOR_DOWN if y > 0 else ControlType.CURSOR_UP,
+ abs(y),
+ ),
+ )
+ if y
+ else cls((ControlType.CURSOR_MOVE_TO_COLUMN, x))
+ )
+
+ @classmethod
+ def move_to(cls, x: int, y: int) -> "Control":
+ """Move cursor to absolute position.
+
+ Args:
+ x (int): x offset (column)
+ y (int): y offset (row)
+
+ Returns:
+ ~Control: Control object.
+ """
+ return cls((ControlType.CURSOR_MOVE_TO, x, y))
+
+ @classmethod
+ def clear(cls) -> "Control":
+ """Clear the screen."""
+ return cls(ControlType.CLEAR)
+
+ @classmethod
+ def show_cursor(cls, show: bool) -> "Control":
+ """Show or hide the cursor."""
+ return cls(ControlType.SHOW_CURSOR if show else ControlType.HIDE_CURSOR)
+
+ @classmethod
+ def alt_screen(cls, enable: bool) -> "Control":
+ """Enable or disable alt screen."""
+ if enable:
+ return cls(ControlType.ENABLE_ALT_SCREEN, ControlType.HOME)
+ else:
+ return cls(ControlType.DISABLE_ALT_SCREEN)
+
+ @classmethod
+ def title(cls, title: str) -> "Control":
+ """Set the terminal window title
+
+ Args:
+ title (str): The new terminal window title
+ """
+ return cls((ControlType.SET_WINDOW_TITLE, title))
+
+ def __str__(self) -> str:
+ return self.segment.text
+
+ def __rich_console__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "RenderResult":
+ if self.segment.text:
+ yield self.segment
+
+
+def strip_control_codes(
+ text: str, _translate_table: Dict[int, None] = _CONTROL_STRIP_TRANSLATE
+) -> str:
+ """Remove control codes from text.
+
+ Args:
+ text (str): A string possibly contain control codes.
+
+ Returns:
+ str: String with control codes removed.
+ """
+ return text.translate(_translate_table)
+
+
+def escape_control_codes(
+ text: str,
+ _translate_table: Dict[int, str] = CONTROL_ESCAPE,
+) -> str:
+ """Replace control codes with their "escaped" equivalent in the given text.
+ (e.g. "\b" becomes "\\b")
+
+ Args:
+ text (str): A string possibly containing control codes.
+
+ Returns:
+ str: String with control codes replaced with their escaped version.
+ """
+ return text.translate(_translate_table)
+
+
+if __name__ == "__main__": # pragma: no cover
+ from rich.console import Console
+
+ console = Console()
+ console.print("Look at the title of your terminal window ^")
+ # console.print(Control((ControlType.SET_WINDOW_TITLE, "Hello, world!")))
+ for i in range(10):
+ console.set_window_title("🚀 Loading" + "." * i)
+ time.sleep(0.5)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/default_styles.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/default_styles.py
new file mode 100644
index 0000000000000000000000000000000000000000..f2e4cd1b9a12e77302a520f507d519526d444458
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/default_styles.py
@@ -0,0 +1,196 @@
+from typing import Dict
+
+from .style import Style
+
+DEFAULT_STYLES: Dict[str, Style] = {
+ "none": Style.null(),
+ "reset": Style(
+ color="default",
+ bgcolor="default",
+ dim=False,
+ bold=False,
+ italic=False,
+ underline=False,
+ blink=False,
+ blink2=False,
+ reverse=False,
+ conceal=False,
+ strike=False,
+ ),
+ "dim": Style(dim=True),
+ "bright": Style(dim=False),
+ "bold": Style(bold=True),
+ "strong": Style(bold=True),
+ "code": Style(reverse=True, bold=True),
+ "italic": Style(italic=True),
+ "emphasize": Style(italic=True),
+ "underline": Style(underline=True),
+ "blink": Style(blink=True),
+ "blink2": Style(blink2=True),
+ "reverse": Style(reverse=True),
+ "strike": Style(strike=True),
+ "black": Style(color="black"),
+ "red": Style(color="red"),
+ "green": Style(color="green"),
+ "yellow": Style(color="yellow"),
+ "magenta": Style(color="magenta"),
+ "cyan": Style(color="cyan"),
+ "white": Style(color="white"),
+ "inspect.attr": Style(color="yellow", italic=True),
+ "inspect.attr.dunder": Style(color="yellow", italic=True, dim=True),
+ "inspect.callable": Style(bold=True, color="red"),
+ "inspect.async_def": Style(italic=True, color="bright_cyan"),
+ "inspect.def": Style(italic=True, color="bright_cyan"),
+ "inspect.class": Style(italic=True, color="bright_cyan"),
+ "inspect.error": Style(bold=True, color="red"),
+ "inspect.equals": Style(),
+ "inspect.help": Style(color="cyan"),
+ "inspect.doc": Style(dim=True),
+ "inspect.value.border": Style(color="green"),
+ "live.ellipsis": Style(bold=True, color="red"),
+ "layout.tree.row": Style(dim=False, color="red"),
+ "layout.tree.column": Style(dim=False, color="blue"),
+ "logging.keyword": Style(bold=True, color="yellow"),
+ "logging.level.notset": Style(dim=True),
+ "logging.level.debug": Style(color="green"),
+ "logging.level.info": Style(color="blue"),
+ "logging.level.warning": Style(color="yellow"),
+ "logging.level.error": Style(color="red", bold=True),
+ "logging.level.critical": Style(color="red", bold=True, reverse=True),
+ "log.level": Style.null(),
+ "log.time": Style(color="cyan", dim=True),
+ "log.message": Style.null(),
+ "log.path": Style(dim=True),
+ "repr.ellipsis": Style(color="yellow"),
+ "repr.indent": Style(color="green", dim=True),
+ "repr.error": Style(color="red", bold=True),
+ "repr.str": Style(color="green", italic=False, bold=False),
+ "repr.brace": Style(bold=True),
+ "repr.comma": Style(bold=True),
+ "repr.ipv4": Style(bold=True, color="bright_green"),
+ "repr.ipv6": Style(bold=True, color="bright_green"),
+ "repr.eui48": Style(bold=True, color="bright_green"),
+ "repr.eui64": Style(bold=True, color="bright_green"),
+ "repr.tag_start": Style(bold=True),
+ "repr.tag_name": Style(color="bright_magenta", bold=True),
+ "repr.tag_contents": Style(color="default"),
+ "repr.tag_end": Style(bold=True),
+ "repr.attrib_name": Style(color="yellow", italic=False),
+ "repr.attrib_equal": Style(bold=True),
+ "repr.attrib_value": Style(color="magenta", italic=False),
+ "repr.number": Style(color="cyan", bold=True, italic=False),
+ "repr.number_complex": Style(color="cyan", bold=True, italic=False), # same
+ "repr.bool_true": Style(color="bright_green", italic=True),
+ "repr.bool_false": Style(color="bright_red", italic=True),
+ "repr.none": Style(color="magenta", italic=True),
+ "repr.url": Style(underline=True, color="bright_blue", italic=False, bold=False),
+ "repr.uuid": Style(color="bright_yellow", bold=False),
+ "repr.call": Style(color="magenta", bold=True),
+ "repr.path": Style(color="magenta"),
+ "repr.filename": Style(color="bright_magenta"),
+ "rule.line": Style(color="bright_green"),
+ "rule.text": Style.null(),
+ "json.brace": Style(bold=True),
+ "json.bool_true": Style(color="bright_green", italic=True),
+ "json.bool_false": Style(color="bright_red", italic=True),
+ "json.null": Style(color="magenta", italic=True),
+ "json.number": Style(color="cyan", bold=True, italic=False),
+ "json.str": Style(color="green", italic=False, bold=False),
+ "json.key": Style(color="blue", bold=True),
+ "prompt": Style.null(),
+ "prompt.choices": Style(color="magenta", bold=True),
+ "prompt.default": Style(color="cyan", bold=True),
+ "prompt.invalid": Style(color="red"),
+ "prompt.invalid.choice": Style(color="red"),
+ "pretty": Style.null(),
+ "scope.border": Style(color="blue"),
+ "scope.key": Style(color="yellow", italic=True),
+ "scope.key.special": Style(color="yellow", italic=True, dim=True),
+ "scope.equals": Style(color="red"),
+ "table.header": Style(bold=True),
+ "table.footer": Style(bold=True),
+ "table.cell": Style.null(),
+ "table.title": Style(italic=True),
+ "table.caption": Style(italic=True, dim=True),
+ "traceback.error": Style(color="red", italic=True),
+ "traceback.border.syntax_error": Style(color="bright_red"),
+ "traceback.border": Style(color="red"),
+ "traceback.text": Style.null(),
+ "traceback.title": Style(color="red", bold=True),
+ "traceback.exc_type": Style(color="bright_red", bold=True),
+ "traceback.exc_value": Style.null(),
+ "traceback.offset": Style(color="bright_red", bold=True),
+ "traceback.error_range": Style(underline=True, bold=True),
+ "traceback.note": Style(color="green", bold=True),
+ "traceback.group.border": Style(color="magenta"),
+ "bar.back": Style(color="grey23"),
+ "bar.complete": Style(color="rgb(249,38,114)"),
+ "bar.finished": Style(color="rgb(114,156,31)"),
+ "bar.pulse": Style(color="rgb(249,38,114)"),
+ "progress.description": Style.null(),
+ "progress.filesize": Style(color="green"),
+ "progress.filesize.total": Style(color="green"),
+ "progress.download": Style(color="green"),
+ "progress.elapsed": Style(color="yellow"),
+ "progress.percentage": Style(color="magenta"),
+ "progress.remaining": Style(color="cyan"),
+ "progress.data.speed": Style(color="red"),
+ "progress.spinner": Style(color="green"),
+ "status.spinner": Style(color="green"),
+ "tree": Style(),
+ "tree.line": Style(),
+ "markdown.paragraph": Style(),
+ "markdown.text": Style(),
+ "markdown.em": Style(italic=True),
+ "markdown.emph": Style(italic=True), # For commonmark backwards compatibility
+ "markdown.strong": Style(bold=True),
+ "markdown.code": Style(bold=True, color="cyan", bgcolor="black"),
+ "markdown.code_block": Style(color="cyan", bgcolor="black"),
+ "markdown.block_quote": Style(color="magenta"),
+ "markdown.list": Style(color="cyan"),
+ "markdown.item": Style(),
+ "markdown.item.bullet": Style(bold=True),
+ "markdown.item.number": Style(color="cyan"),
+ "markdown.hr": Style(dim=True),
+ "markdown.h1.border": Style(),
+ "markdown.h1": Style(bold=True, underline=True),
+ "markdown.h2": Style(color="magenta", underline=True),
+ "markdown.h3": Style(color="magenta", bold=True),
+ "markdown.h4": Style(color="magenta", italic=True),
+ "markdown.h5": Style(italic=True),
+ "markdown.h6": Style(dim=True),
+ "markdown.h7": Style(italic=True, dim=True),
+ "markdown.link": Style(color="bright_blue"),
+ "markdown.link_url": Style(color="blue", underline=True),
+ "markdown.s": Style(strike=True),
+ "markdown.table.border": Style(color="cyan"),
+ "markdown.table.header": Style(color="cyan", bold=False),
+ "markdown.kbd": Style(bold=True, color="bright_yellow"),
+ "iso8601.date": Style(color="blue"),
+ "iso8601.time": Style(color="magenta"),
+ "iso8601.timezone": Style(color="yellow"),
+}
+
+
+if __name__ == "__main__": # pragma: no cover
+ import argparse
+ import io
+
+ from rich.console import Console
+ from rich.table import Table
+ from rich.text import Text
+
+ parser = argparse.ArgumentParser()
+ parser.add_argument("--html", action="store_true", help="Export as HTML table")
+ args = parser.parse_args()
+ html: bool = args.html
+ console = Console(record=True, width=70, file=io.StringIO()) if html else Console()
+
+ table = Table("Name", "Styling")
+
+ for style_name, style in DEFAULT_STYLES.items():
+ table.add_row(Text(style_name, style=style), str(style))
+
+ console.print(table)
+ if html:
+ print(console.export_html(inline_styles=True))
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/diagnose.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/diagnose.py
new file mode 100644
index 0000000000000000000000000000000000000000..9d5ff3ec3299994c61171859854c16242468ed8b
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/diagnose.py
@@ -0,0 +1,39 @@
+import os
+import platform
+
+from rich import inspect
+from rich.console import Console, get_windows_console_features
+from rich.panel import Panel
+from rich.pretty import Pretty
+
+
+def report() -> None: # pragma: no cover
+ """Print a report to the terminal with debugging information"""
+ console = Console()
+ inspect(console)
+ features = get_windows_console_features()
+ inspect(features)
+
+ env_names = (
+ "CLICOLOR",
+ "COLORTERM",
+ "COLUMNS",
+ "JPY_PARENT_PID",
+ "JUPYTER_COLUMNS",
+ "JUPYTER_LINES",
+ "LINES",
+ "NO_COLOR",
+ "TERM_PROGRAM",
+ "TERM",
+ "TTY_COMPATIBLE",
+ "TTY_INTERACTIVE",
+ "VSCODE_VERBOSE_LOGGING",
+ )
+ env = {name: os.getenv(name) for name in env_names}
+ console.print(Panel.fit((Pretty(env)), title="[b]Environment Variables"))
+
+ console.print(f'platform="{platform.system()}"')
+
+
+if __name__ == "__main__": # pragma: no cover
+ report()
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/emoji.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/emoji.py
new file mode 100644
index 0000000000000000000000000000000000000000..067f93ce3ae1ceb8c5db9d54c0421728a6ea216c
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/emoji.py
@@ -0,0 +1,93 @@
+import sys
+from typing import TYPE_CHECKING, Literal, Optional, Union
+
+from ._emoji_replace import _emoji_replace
+from .jupyter import JupyterMixin
+from .segment import Segment
+from .style import Style
+
+if TYPE_CHECKING:
+ from .console import Console, ConsoleOptions, RenderResult
+
+
+EmojiVariant = Literal["emoji", "text"]
+
+
+class NoEmoji(Exception):
+ """No emoji by that name."""
+
+
+class Emoji(JupyterMixin):
+ __slots__ = ["name", "style", "_char", "variant"]
+
+ VARIANTS = {"text": "\ufe0e", "emoji": "\ufe0f"}
+
+ def __init__(
+ self,
+ name: str,
+ style: Union[str, Style] = "none",
+ variant: Optional[EmojiVariant] = None,
+ ) -> None:
+ """A single emoji character.
+
+ Args:
+ name (str): Name of emoji.
+ style (Union[str, Style], optional): Optional style. Defaults to None.
+
+ Raises:
+ NoEmoji: If the emoji doesn't exist.
+ """
+ from ._emoji_codes import EMOJI
+
+ self.name = name
+ self.style = style
+ self.variant = variant
+ try:
+ self._char = EMOJI[name]
+ except KeyError:
+ raise NoEmoji(f"No emoji called {name!r}")
+ if variant is not None:
+ self._char += self.VARIANTS.get(variant, "")
+
+ @classmethod
+ def replace(cls, text: str) -> str:
+ """Replace emoji markup with corresponding unicode characters.
+
+ Args:
+ text (str): A string with emojis codes, e.g. "Hello :smiley:!"
+
+ Returns:
+ str: A string with emoji codes replaces with actual emoji.
+ """
+ return _emoji_replace(text)
+
+ def __repr__(self) -> str:
+ return f""
+
+ def __str__(self) -> str:
+ return self._char
+
+ def __rich_console__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "RenderResult":
+ yield Segment(self._char, console.get_style(self.style))
+
+
+if __name__ == "__main__": # pragma: no cover
+ import sys
+
+ from rich.columns import Columns
+ from rich.console import Console
+
+ console = Console(record=True)
+
+ from ._emoji_codes import EMOJI
+
+ columns = Columns(
+ (f":{name}: {name}" for name in sorted(EMOJI.keys()) if "\u200d" not in name),
+ column_first=True,
+ )
+
+ console.print(columns)
+ if len(sys.argv) > 1:
+ console.save_html(sys.argv[1])
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/errors.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/errors.py
new file mode 100644
index 0000000000000000000000000000000000000000..0bcbe53ef59373c608e62ea285536f8b22b47ecb
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/errors.py
@@ -0,0 +1,34 @@
+class ConsoleError(Exception):
+ """An error in console operation."""
+
+
+class StyleError(Exception):
+ """An error in styles."""
+
+
+class StyleSyntaxError(ConsoleError):
+ """Style was badly formatted."""
+
+
+class MissingStyle(StyleError):
+ """No such style."""
+
+
+class StyleStackError(ConsoleError):
+ """Style stack is invalid."""
+
+
+class NotRenderableError(ConsoleError):
+ """Object is not renderable."""
+
+
+class MarkupError(ConsoleError):
+ """Markup was badly formatted."""
+
+
+class LiveError(ConsoleError):
+ """Error related to Live display."""
+
+
+class NoAltScreen(ConsoleError):
+ """Alt screen mode was required."""
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/file_proxy.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/file_proxy.py
new file mode 100644
index 0000000000000000000000000000000000000000..e32523bd6ba366b8e354e602888c6d49532de7a6
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/file_proxy.py
@@ -0,0 +1,60 @@
+import io
+from typing import IO, TYPE_CHECKING, Any, List
+
+from .ansi import AnsiDecoder
+from .text import Text
+
+if TYPE_CHECKING:
+ from .console import Console
+
+
+class FileProxy(io.TextIOBase):
+ """Wraps a file (e.g. sys.stdout) and redirects writes to a console."""
+
+ def __init__(self, console: "Console", file: IO[str]) -> None:
+ self.__console = console
+ self.__file = file
+ self.__buffer: List[str] = []
+ self.__ansi_decoder = AnsiDecoder()
+
+ @property
+ def rich_proxied_file(self) -> IO[str]:
+ """Get proxied file."""
+ return self.__file
+
+ def __getattr__(self, name: str) -> Any:
+ return getattr(self.__file, name)
+
+ def write(self, text: str) -> int:
+ if not isinstance(text, str):
+ raise TypeError(f"write() argument must be str, not {type(text).__name__}")
+ buffer = self.__buffer
+ lines: List[str] = []
+ while text:
+ line, new_line, text = text.partition("\n")
+ if new_line:
+ lines.append("".join(buffer) + line)
+ buffer.clear()
+ else:
+ buffer.append(line)
+ break
+ if lines:
+ console = self.__console
+ with console:
+ output = Text("\n").join(
+ self.__ansi_decoder.decode_line(line) for line in lines
+ )
+ console.print(output)
+ return len(text)
+
+ def flush(self) -> None:
+ output = "".join(self.__buffer)
+ if output:
+ self.__console.print(output)
+ del self.__buffer[:]
+
+ def fileno(self) -> int:
+ return self.__file.fileno()
+
+ def isatty(self) -> bool:
+ return self.__file.isatty()
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/filesize.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/filesize.py
new file mode 100644
index 0000000000000000000000000000000000000000..83bc9118d2bdb8983f863063687c2ea394a9abb1
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/filesize.py
@@ -0,0 +1,88 @@
+"""Functions for reporting filesizes. Borrowed from https://github.com/PyFilesystem/pyfilesystem2
+
+The functions declared in this module should cover the different
+use cases needed to generate a string representation of a file size
+using several different units. Since there are many standards regarding
+file size units, three different functions have been implemented.
+
+See Also:
+ * `Wikipedia: Binary prefix `_
+
+"""
+
+__all__ = ["decimal"]
+
+from typing import Iterable, List, Optional, Tuple
+
+
+def _to_str(
+ size: int,
+ suffixes: Iterable[str],
+ base: int,
+ *,
+ precision: Optional[int] = 1,
+ separator: Optional[str] = " ",
+) -> str:
+ if size == 1:
+ return "1 byte"
+ elif size < base:
+ return f"{size:,} bytes"
+
+ for i, suffix in enumerate(suffixes, 2): # noqa: B007
+ unit = base**i
+ if size < unit:
+ break
+ return "{:,.{precision}f}{separator}{}".format(
+ (base * size / unit),
+ suffix,
+ precision=precision,
+ separator=separator,
+ )
+
+
+def pick_unit_and_suffix(size: int, suffixes: List[str], base: int) -> Tuple[int, str]:
+ """Pick a suffix and base for the given size."""
+ for i, suffix in enumerate(suffixes):
+ unit = base**i
+ if size < unit * base:
+ break
+ return unit, suffix
+
+
+def decimal(
+ size: int,
+ *,
+ precision: Optional[int] = 1,
+ separator: Optional[str] = " ",
+) -> str:
+ """Convert a filesize in to a string (powers of 1000, SI prefixes).
+
+ In this convention, ``1000 B = 1 kB``.
+
+ This is typically the format used to advertise the storage
+ capacity of USB flash drives and the like (*256 MB* meaning
+ actually a storage capacity of more than *256 000 000 B*),
+ or used by **Mac OS X** since v10.6 to report file sizes.
+
+ Arguments:
+ int (size): A file size.
+ int (precision): The number of decimal places to include (default = 1).
+ str (separator): The string to separate the value from the units (default = " ").
+
+ Returns:
+ `str`: A string containing a abbreviated file size and units.
+
+ Example:
+ >>> filesize.decimal(30000)
+ '30.0 kB'
+ >>> filesize.decimal(30000, precision=2, separator="")
+ '30.00kB'
+
+ """
+ return _to_str(
+ size,
+ ("kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"),
+ 1000,
+ precision=precision,
+ separator=separator,
+ )
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/highlighter.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/highlighter.py
new file mode 100644
index 0000000000000000000000000000000000000000..df28048f8842bdab06631189ca474f869ab3d544
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/highlighter.py
@@ -0,0 +1,232 @@
+import re
+from abc import ABC, abstractmethod
+from typing import ClassVar, Sequence, Union
+
+from .text import Span, Text
+
+
+def _combine_regex(*regexes: str) -> str:
+ """Combine a number of regexes in to a single regex.
+
+ Returns:
+ str: New regex with all regexes ORed together.
+ """
+ return "|".join(regexes)
+
+
+class Highlighter(ABC):
+ """Abstract base class for highlighters."""
+
+ def __call__(self, text: Union[str, Text]) -> Text:
+ """Highlight a str or Text instance.
+
+ Args:
+ text (Union[str, ~Text]): Text to highlight.
+
+ Raises:
+ TypeError: If not called with text or str.
+
+ Returns:
+ Text: A test instance with highlighting applied.
+ """
+ if isinstance(text, str):
+ highlight_text = Text(text)
+ elif isinstance(text, Text):
+ highlight_text = text.copy()
+ else:
+ raise TypeError(f"str or Text instance required, not {text!r}")
+ self.highlight(highlight_text)
+ return highlight_text
+
+ @abstractmethod
+ def highlight(self, text: Text) -> None:
+ """Apply highlighting in place to text.
+
+ Args:
+ text (~Text): A text object highlight.
+ """
+
+
+class NullHighlighter(Highlighter):
+ """A highlighter object that doesn't highlight.
+
+ May be used to disable highlighting entirely.
+
+ """
+
+ def highlight(self, text: Text) -> None:
+ """Nothing to do"""
+
+
+class RegexHighlighter(Highlighter):
+ """Applies highlighting from a list of regular expressions."""
+
+ highlights: ClassVar[Sequence[str]] = []
+ base_style: ClassVar[str] = ""
+
+ def highlight(self, text: Text) -> None:
+ """Highlight :class:`rich.text.Text` using regular expressions.
+
+ Args:
+ text (~Text): Text to highlighted.
+
+ """
+
+ highlight_regex = text.highlight_regex
+ for re_highlight in self.highlights:
+ highlight_regex(re_highlight, style_prefix=self.base_style)
+
+
+class ReprHighlighter(RegexHighlighter):
+ """Highlights the text typically produced from ``__repr__`` methods."""
+
+ base_style = "repr."
+ highlights: ClassVar[Sequence[str]] = [
+ r"(?P<)(?P[-\w.:|]*)(?P[\w\W]*)(?P>)",
+ r'(?P[\w_]{1,50})=(?P"?[\w_]+"?)?',
+ r"(?P[][{}()])",
+ _combine_regex(
+ r"(?P[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})",
+ r"(?P([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4})",
+ r"(?P(?:[0-9A-Fa-f]{1,2}-){7}[0-9A-Fa-f]{1,2}|(?:[0-9A-Fa-f]{1,2}:){7}[0-9A-Fa-f]{1,2}|(?:[0-9A-Fa-f]{4}\.){3}[0-9A-Fa-f]{4})",
+ r"(?P(?:[0-9A-Fa-f]{1,2}-){5}[0-9A-Fa-f]{1,2}|(?:[0-9A-Fa-f]{1,2}:){5}[0-9A-Fa-f]{1,2}|(?:[0-9A-Fa-f]{4}\.){2}[0-9A-Fa-f]{4})",
+ r"(?P[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12})",
+ r"(?P[\w.]*?)\(",
+ r"\b(?PTrue)\b|\b(?PFalse)\b|\b(?PNone)\b",
+ r"(?P\.\.\.)",
+ r"(?P(?(?\B(/[-\w._+]+)*\/)(?P[-\w._+]*)?",
+ r"(?b?'''.*?(?(file|https|http|ws|wss)://[-0-9a-zA-Z$_+!`(),.?/;:&=%#~@]*)",
+ ),
+ ]
+
+
+class JSONHighlighter(RegexHighlighter):
+ """Highlights JSON"""
+
+ # Captures the start and end of JSON strings, handling escaped quotes
+ JSON_STR = r"(?b?\".*?(?[\{\[\(\)\]\}])",
+ r"\b(?Ptrue)\b|\b(?Pfalse)\b|\b(?Pnull)\b",
+ r"(?P(? None:
+ super().highlight(text)
+
+ # Additional work to handle highlighting JSON keys
+ plain = text.plain
+ append = text.spans.append
+ whitespace = self.JSON_WHITESPACE
+ for match in re.finditer(self.JSON_STR, plain):
+ start, end = match.span()
+ cursor = end
+ while cursor < len(plain):
+ char = plain[cursor]
+ cursor += 1
+ if char == ":":
+ append(Span(start, end, "json.key"))
+ elif char in whitespace:
+ continue
+ break
+
+
+class ISO8601Highlighter(RegexHighlighter):
+ """Highlights the ISO8601 date time strings.
+ Regex reference: https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s07.html
+ """
+
+ base_style: ClassVar[str] = "iso8601."
+ highlights: ClassVar[Sequence[str]] = [
+ #
+ # Dates
+ #
+ # Calendar month (e.g. 2008-08). The hyphen is required
+ r"^(?P[0-9]{4})-(?P1[0-2]|0[1-9])$",
+ # Calendar date w/o hyphens (e.g. 20080830)
+ r"^(?P(?P[0-9]{4})(?P1[0-2]|0[1-9])(?P3[01]|0[1-9]|[12][0-9]))$",
+ # Ordinal date (e.g. 2008-243). The hyphen is optional
+ r"^(?P(?P[0-9]{4})-?(?P36[0-6]|3[0-5][0-9]|[12][0-9]{2}|0[1-9][0-9]|00[1-9]))$",
+ #
+ # Weeks
+ #
+ # Week of the year (e.g., 2008-W35). The hyphen is optional
+ r"^(?P(?P[0-9]{4})-?W(?P5[0-3]|[1-4][0-9]|0[1-9]))$",
+ # Week date (e.g., 2008-W35-6). The hyphens are optional
+ r"^(?P(?P[0-9]{4})-?W(?P5[0-3]|[1-4][0-9]|0[1-9])-?(?P[1-7]))$",
+ #
+ # Times
+ #
+ # Hours and minutes (e.g., 17:21). The colon is optional
+ r"^(?P(?P2[0-3]|[01][0-9]):?(?P[0-5][0-9]))$",
+ # Hours, minutes, and seconds w/o colons (e.g., 172159)
+ r"^(?P(?P2[0-3]|[01][0-9])(?P[0-5][0-9])(?P[0-5][0-9]))$",
+ # Time zone designator (e.g., Z, +07 or +07:00). The colons and the minutes are optional
+ r"^(?P(Z|[+-](?:2[0-3]|[01][0-9])(?::?(?:[0-5][0-9]))?))$",
+ # Hours, minutes, and seconds with time zone designator (e.g., 17:21:59+07:00).
+ # All the colons are optional. The minutes in the time zone designator are also optional
+ r"^(?P(?P2[0-3]|[01][0-9])(?P[0-5][0-9])(?P[0-5][0-9]))(?PZ|[+-](?:2[0-3]|[01][0-9])(?::?(?:[0-5][0-9]))?)$",
+ #
+ # Date and Time
+ #
+ # Calendar date with hours, minutes, and seconds (e.g., 2008-08-30 17:21:59 or 20080830 172159).
+ # A space is required between the date and the time. The hyphens and colons are optional.
+ # This regex matches dates and times that specify some hyphens or colons but omit others.
+ # This does not follow ISO 8601
+ r"^(?P(?P[0-9]{4})(?P-)?(?P1[0-2]|0[1-9])(?(hyphen)-)(?P3[01]|0[1-9]|[12][0-9])) (?P(?P2[0-3]|[01][0-9])(?(hyphen):)(?P[0-5][0-9])(?(hyphen):)(?P[0-5][0-9]))$",
+ #
+ # XML Schema dates and times
+ #
+ # Date, with optional time zone (e.g., 2008-08-30 or 2008-08-30+07:00).
+ # Hyphens are required. This is the XML Schema 'date' type
+ r"^(?P(?P-?(?:[1-9][0-9]*)?[0-9]{4})-(?P1[0-2]|0[1-9])-(?P3[01]|0[1-9]|[12][0-9]))(?PZ|[+-](?:2[0-3]|[01][0-9]):[0-5][0-9])?$",
+ # Time, with optional fractional seconds and time zone (e.g., 01:45:36 or 01:45:36.123+07:00).
+ # There is no limit on the number of digits for the fractional seconds. This is the XML Schema 'time' type
+ r"^(?P(?P2[0-3]|[01][0-9]):(?P[0-5][0-9]):(?P[0-5][0-9])(?P\.[0-9]+)?)(?PZ|[+-](?:2[0-3]|[01][0-9]):[0-5][0-9])?$",
+ # Date and time, with optional fractional seconds and time zone (e.g., 2008-08-30T01:45:36 or 2008-08-30T01:45:36.123Z).
+ # This is the XML Schema 'dateTime' type
+ r"^(?P(?P-?(?:[1-9][0-9]*)?[0-9]{4})-(?P1[0-2]|0[1-9])-(?P3[01]|0[1-9]|[12][0-9]))T(?P(?P2[0-3]|[01][0-9]):(?P[0-5][0-9]):(?P[0-5][0-9])(?P\.[0-9]+)?)(?PZ|[+-](?:2[0-3]|[01][0-9]):[0-5][0-9])?$",
+ ]
+
+
+if __name__ == "__main__": # pragma: no cover
+ from .console import Console
+
+ console = Console()
+ console.print("[bold green]hello world![/bold green]")
+ console.print("'[bold green]hello world![/bold green]'")
+
+ console.print(" /foo")
+ console.print("/foo/")
+ console.print("/foo/bar")
+ console.print("foo/bar/baz")
+
+ console.print("/foo/bar/baz?foo=bar+egg&egg=baz")
+ console.print("/foo/bar/baz/")
+ console.print("/foo/bar/baz/egg")
+ console.print("/foo/bar/baz/egg.py")
+ console.print("/foo/bar/baz/egg.py word")
+ console.print(" /foo/bar/baz/egg.py word")
+ console.print("foo /foo/bar/baz/egg.py word")
+ console.print("foo /foo/bar/ba._++z/egg+.py word")
+ console.print("https://example.org?foo=bar#header")
+
+ console.print(1234567.34)
+ console.print(1 / 2)
+ console.print(-1 / 123123123123)
+
+ console.print(
+ "127.0.1.1 bar 192.168.1.4 2001:0db8:85a3:0000:0000:8a2e:0370:7334 foo"
+ )
+ import json
+
+ console.print_json(json.dumps(obj={"name": "apple", "count": 1}), indent=None)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/json.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/json.py
new file mode 100644
index 0000000000000000000000000000000000000000..f048902df16d2bc1914b2297eb058e809bb4da8a
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/json.py
@@ -0,0 +1,139 @@
+from pathlib import Path
+from json import loads, dumps
+from typing import Any, Callable, Optional, Union
+
+from .text import Text
+from .highlighter import JSONHighlighter, NullHighlighter
+
+
+class JSON:
+ """A renderable which pretty prints JSON.
+
+ Args:
+ json (str): JSON encoded data.
+ indent (Union[None, int, str], optional): Number of characters to indent by. Defaults to 2.
+ highlight (bool, optional): Enable highlighting. Defaults to True.
+ skip_keys (bool, optional): Skip keys not of a basic type. Defaults to False.
+ ensure_ascii (bool, optional): Escape all non-ascii characters. Defaults to False.
+ check_circular (bool, optional): Check for circular references. Defaults to True.
+ allow_nan (bool, optional): Allow NaN and Infinity values. Defaults to True.
+ default (Callable, optional): A callable that converts values that can not be encoded
+ in to something that can be JSON encoded. Defaults to None.
+ sort_keys (bool, optional): Sort dictionary keys. Defaults to False.
+ """
+
+ def __init__(
+ self,
+ json: str,
+ indent: Union[None, int, str] = 2,
+ highlight: bool = True,
+ skip_keys: bool = False,
+ ensure_ascii: bool = False,
+ check_circular: bool = True,
+ allow_nan: bool = True,
+ default: Optional[Callable[[Any], Any]] = None,
+ sort_keys: bool = False,
+ ) -> None:
+ data = loads(json)
+ json = dumps(
+ data,
+ indent=indent,
+ skipkeys=skip_keys,
+ ensure_ascii=ensure_ascii,
+ check_circular=check_circular,
+ allow_nan=allow_nan,
+ default=default,
+ sort_keys=sort_keys,
+ )
+ highlighter = JSONHighlighter() if highlight else NullHighlighter()
+ self.text = highlighter(json)
+ self.text.no_wrap = True
+ self.text.overflow = None
+
+ @classmethod
+ def from_data(
+ cls,
+ data: Any,
+ indent: Union[None, int, str] = 2,
+ highlight: bool = True,
+ skip_keys: bool = False,
+ ensure_ascii: bool = False,
+ check_circular: bool = True,
+ allow_nan: bool = True,
+ default: Optional[Callable[[Any], Any]] = None,
+ sort_keys: bool = False,
+ ) -> "JSON":
+ """Encodes a JSON object from arbitrary data.
+
+ Args:
+ data (Any): An object that may be encoded in to JSON
+ indent (Union[None, int, str], optional): Number of characters to indent by. Defaults to 2.
+ highlight (bool, optional): Enable highlighting. Defaults to True.
+ default (Callable, optional): Optional callable which will be called for objects that cannot be serialized. Defaults to None.
+ skip_keys (bool, optional): Skip keys not of a basic type. Defaults to False.
+ ensure_ascii (bool, optional): Escape all non-ascii characters. Defaults to False.
+ check_circular (bool, optional): Check for circular references. Defaults to True.
+ allow_nan (bool, optional): Allow NaN and Infinity values. Defaults to True.
+ default (Callable, optional): A callable that converts values that can not be encoded
+ in to something that can be JSON encoded. Defaults to None.
+ sort_keys (bool, optional): Sort dictionary keys. Defaults to False.
+
+ Returns:
+ JSON: New JSON object from the given data.
+ """
+ json_instance: "JSON" = cls.__new__(cls)
+ json = dumps(
+ data,
+ indent=indent,
+ skipkeys=skip_keys,
+ ensure_ascii=ensure_ascii,
+ check_circular=check_circular,
+ allow_nan=allow_nan,
+ default=default,
+ sort_keys=sort_keys,
+ )
+ highlighter = JSONHighlighter() if highlight else NullHighlighter()
+ json_instance.text = highlighter(json)
+ json_instance.text.no_wrap = True
+ json_instance.text.overflow = None
+ return json_instance
+
+ def __rich__(self) -> Text:
+ return self.text
+
+
+if __name__ == "__main__":
+ import argparse
+ import sys
+
+ parser = argparse.ArgumentParser(description="Pretty print json")
+ parser.add_argument(
+ "path",
+ metavar="PATH",
+ help="path to file, or - for stdin",
+ )
+ parser.add_argument(
+ "-i",
+ "--indent",
+ metavar="SPACES",
+ type=int,
+ help="Number of spaces in an indent",
+ default=2,
+ )
+ args = parser.parse_args()
+
+ from rich.console import Console
+
+ console = Console()
+ error_console = Console(stderr=True)
+
+ try:
+ if args.path == "-":
+ json_data = sys.stdin.read()
+ else:
+ json_data = Path(args.path).read_text()
+ except Exception as error:
+ error_console.print(f"Unable to read {args.path!r}; {error}")
+ sys.exit(-1)
+
+ console.print(JSON(json_data, indent=args.indent), soft_wrap=True)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/jupyter.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/jupyter.py
new file mode 100644
index 0000000000000000000000000000000000000000..24135a9f7d0b3c6622a0cb03974e94f1e42ffc11
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/jupyter.py
@@ -0,0 +1,101 @@
+from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Sequence
+
+if TYPE_CHECKING:
+ from rich.console import ConsoleRenderable
+
+from . import get_console
+from .segment import Segment
+from .terminal_theme import DEFAULT_TERMINAL_THEME
+
+if TYPE_CHECKING:
+ from rich.console import ConsoleRenderable
+
+JUPYTER_HTML_FORMAT = """\
+{code}
+"""
+
+
+class JupyterRenderable:
+ """A shim to write html to Jupyter notebook."""
+
+ def __init__(self, html: str, text: str) -> None:
+ self.html = html
+ self.text = text
+
+ def _repr_mimebundle_(
+ self, include: Sequence[str], exclude: Sequence[str], **kwargs: Any
+ ) -> Dict[str, str]:
+ data = {"text/plain": self.text, "text/html": self.html}
+ if include:
+ data = {k: v for (k, v) in data.items() if k in include}
+ if exclude:
+ data = {k: v for (k, v) in data.items() if k not in exclude}
+ return data
+
+
+class JupyterMixin:
+ """Add to an Rich renderable to make it render in Jupyter notebook."""
+
+ __slots__ = ()
+
+ def _repr_mimebundle_(
+ self: "ConsoleRenderable",
+ include: Sequence[str],
+ exclude: Sequence[str],
+ **kwargs: Any,
+ ) -> Dict[str, str]:
+ console = get_console()
+ segments = list(console.render(self, console.options))
+ html = _render_segments(segments)
+ text = console._render_buffer(segments)
+ data = {"text/plain": text, "text/html": html}
+ if include:
+ data = {k: v for (k, v) in data.items() if k in include}
+ if exclude:
+ data = {k: v for (k, v) in data.items() if k not in exclude}
+ return data
+
+
+def _render_segments(segments: Iterable[Segment]) -> str:
+ def escape(text: str) -> str:
+ """Escape html."""
+ return text.replace("&", "&").replace("<", "<").replace(">", ">")
+
+ fragments: List[str] = []
+ append_fragment = fragments.append
+ theme = DEFAULT_TERMINAL_THEME
+ for text, style, control in Segment.simplify(segments):
+ if control:
+ continue
+ text = escape(text)
+ if style:
+ rule = style.get_html_style(theme)
+ text = f'{text} ' if rule else text
+ if style.link:
+ text = f'{text} '
+ append_fragment(text)
+
+ code = "".join(fragments)
+ html = JUPYTER_HTML_FORMAT.format(code=code)
+
+ return html
+
+
+def display(segments: Iterable[Segment], text: str) -> None:
+ """Render segments to Jupyter."""
+ html = _render_segments(segments)
+ jupyter_renderable = JupyterRenderable(html, text)
+ try:
+ from IPython.display import display as ipython_display
+
+ ipython_display(jupyter_renderable)
+ except ModuleNotFoundError:
+ # Handle the case where the Console has force_jupyter=True,
+ # but IPython is not installed.
+ pass
+
+
+def print(*args: Any, **kwargs: Any) -> None:
+ """Proxy for Console print."""
+ console = get_console()
+ return console.print(*args, **kwargs)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/layout.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/layout.py
new file mode 100644
index 0000000000000000000000000000000000000000..7fa2852ea14b4b22c5a9cbc3acdfddc5c55c4200
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/layout.py
@@ -0,0 +1,442 @@
+from abc import ABC, abstractmethod
+from itertools import islice
+from operator import itemgetter
+from threading import RLock
+from typing import (
+ TYPE_CHECKING,
+ Dict,
+ Iterable,
+ List,
+ NamedTuple,
+ Optional,
+ Sequence,
+ Tuple,
+ Union,
+)
+
+from ._ratio import ratio_resolve
+from .align import Align
+from .console import Console, ConsoleOptions, RenderableType, RenderResult
+from .highlighter import ReprHighlighter
+from .panel import Panel
+from .pretty import Pretty
+from .region import Region
+from .repr import Result, rich_repr
+from .segment import Segment
+from .style import StyleType
+
+if TYPE_CHECKING:
+ from rich.tree import Tree
+
+
+class LayoutRender(NamedTuple):
+ """An individual layout render."""
+
+ region: Region
+ render: List[List[Segment]]
+
+
+RegionMap = Dict["Layout", Region]
+RenderMap = Dict["Layout", LayoutRender]
+
+
+class LayoutError(Exception):
+ """Layout related error."""
+
+
+class NoSplitter(LayoutError):
+ """Requested splitter does not exist."""
+
+
+class _Placeholder:
+ """An internal renderable used as a Layout placeholder."""
+
+ highlighter = ReprHighlighter()
+
+ def __init__(self, layout: "Layout", style: StyleType = "") -> None:
+ self.layout = layout
+ self.style = style
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ width = options.max_width
+ height = options.height or options.size.height
+ layout = self.layout
+ title = (
+ f"{layout.name!r} ({width} x {height})"
+ if layout.name
+ else f"({width} x {height})"
+ )
+ yield Panel(
+ Align.center(Pretty(layout), vertical="middle"),
+ style=self.style,
+ title=self.highlighter(title),
+ border_style="blue",
+ height=height,
+ )
+
+
+class Splitter(ABC):
+ """Base class for a splitter."""
+
+ name: str = ""
+
+ @abstractmethod
+ def get_tree_icon(self) -> str:
+ """Get the icon (emoji) used in layout.tree"""
+
+ @abstractmethod
+ def divide(
+ self, children: Sequence["Layout"], region: Region
+ ) -> Iterable[Tuple["Layout", Region]]:
+ """Divide a region amongst several child layouts.
+
+ Args:
+ children (Sequence(Layout)): A number of child layouts.
+ region (Region): A rectangular region to divide.
+ """
+
+
+class RowSplitter(Splitter):
+ """Split a layout region in to rows."""
+
+ name = "row"
+
+ def get_tree_icon(self) -> str:
+ return "[layout.tree.row]⬌"
+
+ def divide(
+ self, children: Sequence["Layout"], region: Region
+ ) -> Iterable[Tuple["Layout", Region]]:
+ x, y, width, height = region
+ render_widths = ratio_resolve(width, children)
+ offset = 0
+ _Region = Region
+ for child, child_width in zip(children, render_widths):
+ yield child, _Region(x + offset, y, child_width, height)
+ offset += child_width
+
+
+class ColumnSplitter(Splitter):
+ """Split a layout region in to columns."""
+
+ name = "column"
+
+ def get_tree_icon(self) -> str:
+ return "[layout.tree.column]⬍"
+
+ def divide(
+ self, children: Sequence["Layout"], region: Region
+ ) -> Iterable[Tuple["Layout", Region]]:
+ x, y, width, height = region
+ render_heights = ratio_resolve(height, children)
+ offset = 0
+ _Region = Region
+ for child, child_height in zip(children, render_heights):
+ yield child, _Region(x, y + offset, width, child_height)
+ offset += child_height
+
+
+@rich_repr
+class Layout:
+ """A renderable to divide a fixed height in to rows or columns.
+
+ Args:
+ renderable (RenderableType, optional): Renderable content, or None for placeholder. Defaults to None.
+ name (str, optional): Optional identifier for Layout. Defaults to None.
+ size (int, optional): Optional fixed size of layout. Defaults to None.
+ minimum_size (int, optional): Minimum size of layout. Defaults to 1.
+ ratio (int, optional): Optional ratio for flexible layout. Defaults to 1.
+ visible (bool, optional): Visibility of layout. Defaults to True.
+ """
+
+ splitters = {"row": RowSplitter, "column": ColumnSplitter}
+
+ def __init__(
+ self,
+ renderable: Optional[RenderableType] = None,
+ *,
+ name: Optional[str] = None,
+ size: Optional[int] = None,
+ minimum_size: int = 1,
+ ratio: int = 1,
+ visible: bool = True,
+ ) -> None:
+ self._renderable = renderable or _Placeholder(self)
+ self.size = size
+ self.minimum_size = minimum_size
+ self.ratio = ratio
+ self.name = name
+ self.visible = visible
+ self.splitter: Splitter = self.splitters["column"]()
+ self._children: List[Layout] = []
+ self._render_map: RenderMap = {}
+ self._lock = RLock()
+
+ def __rich_repr__(self) -> Result:
+ yield "name", self.name, None
+ yield "size", self.size, None
+ yield "minimum_size", self.minimum_size, 1
+ yield "ratio", self.ratio, 1
+
+ @property
+ def renderable(self) -> RenderableType:
+ """Layout renderable."""
+ return self if self._children else self._renderable
+
+ @property
+ def children(self) -> List["Layout"]:
+ """Gets (visible) layout children."""
+ return [child for child in self._children if child.visible]
+
+ @property
+ def map(self) -> RenderMap:
+ """Get a map of the last render."""
+ return self._render_map
+
+ def get(self, name: str) -> Optional["Layout"]:
+ """Get a named layout, or None if it doesn't exist.
+
+ Args:
+ name (str): Name of layout.
+
+ Returns:
+ Optional[Layout]: Layout instance or None if no layout was found.
+ """
+ if self.name == name:
+ return self
+ else:
+ for child in self._children:
+ named_layout = child.get(name)
+ if named_layout is not None:
+ return named_layout
+ return None
+
+ def __getitem__(self, name: str) -> "Layout":
+ layout = self.get(name)
+ if layout is None:
+ raise KeyError(f"No layout with name {name!r}")
+ return layout
+
+ @property
+ def tree(self) -> "Tree":
+ """Get a tree renderable to show layout structure."""
+ from rich.styled import Styled
+ from rich.table import Table
+ from rich.tree import Tree
+
+ def summary(layout: "Layout") -> Table:
+ icon = layout.splitter.get_tree_icon()
+
+ table = Table.grid(padding=(0, 1, 0, 0))
+
+ text: RenderableType = (
+ Pretty(layout) if layout.visible else Styled(Pretty(layout), "dim")
+ )
+ table.add_row(icon, text)
+ _summary = table
+ return _summary
+
+ layout = self
+ tree = Tree(
+ summary(layout),
+ guide_style=f"layout.tree.{layout.splitter.name}",
+ highlight=True,
+ )
+
+ def recurse(tree: "Tree", layout: "Layout") -> None:
+ for child in layout._children:
+ recurse(
+ tree.add(
+ summary(child),
+ guide_style=f"layout.tree.{child.splitter.name}",
+ ),
+ child,
+ )
+
+ recurse(tree, self)
+ return tree
+
+ def split(
+ self,
+ *layouts: Union["Layout", RenderableType],
+ splitter: Union[Splitter, str] = "column",
+ ) -> None:
+ """Split the layout in to multiple sub-layouts.
+
+ Args:
+ *layouts (Layout): Positional arguments should be (sub) Layout instances.
+ splitter (Union[Splitter, str]): Splitter instance or name of splitter.
+ """
+ _layouts = [
+ layout if isinstance(layout, Layout) else Layout(layout)
+ for layout in layouts
+ ]
+ try:
+ self.splitter = (
+ splitter
+ if isinstance(splitter, Splitter)
+ else self.splitters[splitter]()
+ )
+ except KeyError:
+ raise NoSplitter(f"No splitter called {splitter!r}")
+ self._children[:] = _layouts
+
+ def add_split(self, *layouts: Union["Layout", RenderableType]) -> None:
+ """Add a new layout(s) to existing split.
+
+ Args:
+ *layouts (Union[Layout, RenderableType]): Positional arguments should be renderables or (sub) Layout instances.
+
+ """
+ _layouts = (
+ layout if isinstance(layout, Layout) else Layout(layout)
+ for layout in layouts
+ )
+ self._children.extend(_layouts)
+
+ def split_row(self, *layouts: Union["Layout", RenderableType]) -> None:
+ """Split the layout in to a row (layouts side by side).
+
+ Args:
+ *layouts (Layout): Positional arguments should be (sub) Layout instances.
+ """
+ self.split(*layouts, splitter="row")
+
+ def split_column(self, *layouts: Union["Layout", RenderableType]) -> None:
+ """Split the layout in to a column (layouts stacked on top of each other).
+
+ Args:
+ *layouts (Layout): Positional arguments should be (sub) Layout instances.
+ """
+ self.split(*layouts, splitter="column")
+
+ def unsplit(self) -> None:
+ """Reset splits to initial state."""
+ del self._children[:]
+
+ def update(self, renderable: RenderableType) -> None:
+ """Update renderable.
+
+ Args:
+ renderable (RenderableType): New renderable object.
+ """
+ with self._lock:
+ self._renderable = renderable
+
+ def refresh_screen(self, console: "Console", layout_name: str) -> None:
+ """Refresh a sub-layout.
+
+ Args:
+ console (Console): Console instance where Layout is to be rendered.
+ layout_name (str): Name of layout.
+ """
+ with self._lock:
+ layout = self[layout_name]
+ region, _lines = self._render_map[layout]
+ (x, y, width, height) = region
+ lines = console.render_lines(
+ layout, console.options.update_dimensions(width, height)
+ )
+ self._render_map[layout] = LayoutRender(region, lines)
+ console.update_screen_lines(lines, x, y)
+
+ def _make_region_map(self, width: int, height: int) -> RegionMap:
+ """Create a dict that maps layout on to Region."""
+ stack: List[Tuple[Layout, Region]] = [(self, Region(0, 0, width, height))]
+ push = stack.append
+ pop = stack.pop
+ layout_regions: List[Tuple[Layout, Region]] = []
+ append_layout_region = layout_regions.append
+ while stack:
+ append_layout_region(pop())
+ layout, region = layout_regions[-1]
+ children = layout.children
+ if children:
+ for child_and_region in layout.splitter.divide(children, region):
+ push(child_and_region)
+
+ region_map = {
+ layout: region
+ for layout, region in sorted(layout_regions, key=itemgetter(1))
+ }
+ return region_map
+
+ def render(self, console: Console, options: ConsoleOptions) -> RenderMap:
+ """Render the sub_layouts.
+
+ Args:
+ console (Console): Console instance.
+ options (ConsoleOptions): Console options.
+
+ Returns:
+ RenderMap: A dict that maps Layout on to a tuple of Region, lines
+ """
+ render_width = options.max_width
+ render_height = options.height or console.height
+ region_map = self._make_region_map(render_width, render_height)
+ layout_regions = [
+ (layout, region)
+ for layout, region in region_map.items()
+ if not layout.children
+ ]
+ render_map: Dict["Layout", "LayoutRender"] = {}
+ render_lines = console.render_lines
+ update_dimensions = options.update_dimensions
+
+ for layout, region in layout_regions:
+ lines = render_lines(
+ layout.renderable, update_dimensions(region.width, region.height)
+ )
+ render_map[layout] = LayoutRender(region, lines)
+ return render_map
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ with self._lock:
+ width = options.max_width or console.width
+ height = options.height or console.height
+ render_map = self.render(console, options.update_dimensions(width, height))
+ self._render_map = render_map
+ layout_lines: List[List[Segment]] = [[] for _ in range(height)]
+ _islice = islice
+ for region, lines in render_map.values():
+ _x, y, _layout_width, layout_height = region
+ for row, line in zip(
+ _islice(layout_lines, y, y + layout_height), lines
+ ):
+ row.extend(line)
+
+ new_line = Segment.line()
+ for layout_row in layout_lines:
+ yield from layout_row
+ yield new_line
+
+
+if __name__ == "__main__":
+ from rich.console import Console
+
+ console = Console()
+ layout = Layout()
+
+ layout.split_column(
+ Layout(name="header", size=3),
+ Layout(ratio=1, name="main"),
+ Layout(size=10, name="footer"),
+ )
+
+ layout["main"].split_row(Layout(name="side"), Layout(name="body", ratio=2))
+
+ layout["body"].split_row(Layout(name="content", ratio=2), Layout(name="s2"))
+
+ layout["s2"].split_column(
+ Layout(name="top"), Layout(name="middle"), Layout(name="bottom")
+ )
+
+ layout["side"].split_column(Layout(layout.tree, name="left1"), Layout(name="left2"))
+
+ layout["content"].update("foo")
+
+ console.print(layout)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/live.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/live.py
new file mode 100644
index 0000000000000000000000000000000000000000..2fd893b0086ae8fe755cb00c20edb2aac1d322ea
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/live.py
@@ -0,0 +1,404 @@
+from __future__ import annotations
+
+import sys
+from threading import Event, RLock, Thread
+from types import TracebackType
+from typing import IO, TYPE_CHECKING, Any, Callable, List, Optional, TextIO, Type, cast
+
+from . import get_console
+from .console import Console, ConsoleRenderable, Group, RenderableType, RenderHook
+from .control import Control
+from .file_proxy import FileProxy
+from .jupyter import JupyterMixin
+from .live_render import LiveRender, VerticalOverflowMethod
+from .screen import Screen
+from .text import Text
+
+if TYPE_CHECKING:
+ # Can be replaced with `from typing import Self` in Python 3.11+
+ from typing_extensions import Self # pragma: no cover
+
+
+class _RefreshThread(Thread):
+ """A thread that calls refresh() at regular intervals."""
+
+ def __init__(self, live: "Live", refresh_per_second: float) -> None:
+ self.live = live
+ self.refresh_per_second = refresh_per_second
+ self.done = Event()
+ super().__init__(daemon=True)
+
+ def stop(self) -> None:
+ self.done.set()
+
+ def run(self) -> None:
+ while not self.done.wait(1 / self.refresh_per_second):
+ with self.live._lock:
+ if not self.done.is_set():
+ self.live.refresh()
+
+
+class Live(JupyterMixin, RenderHook):
+ """Renders an auto-updating live display of any given renderable.
+
+ Args:
+ renderable (RenderableType, optional): The renderable to live display. Defaults to displaying nothing.
+ console (Console, optional): Optional Console instance. Defaults to an internal Console instance writing to stdout.
+ screen (bool, optional): Enable alternate screen mode. Defaults to False.
+ auto_refresh (bool, optional): Enable auto refresh. If disabled, you will need to call `refresh()` or `update()` with refresh flag. Defaults to True
+ refresh_per_second (float, optional): Number of times per second to refresh the live display. Defaults to 4.
+ transient (bool, optional): Clear the renderable on exit (has no effect when screen=True). Defaults to False.
+ redirect_stdout (bool, optional): Enable redirection of stdout, so ``print`` may be used. Defaults to True.
+ redirect_stderr (bool, optional): Enable redirection of stderr. Defaults to True.
+ vertical_overflow (VerticalOverflowMethod, optional): How to handle renderable when it is too tall for the console. Defaults to "ellipsis".
+ get_renderable (Callable[[], RenderableType], optional): Optional callable to get renderable. Defaults to None.
+ """
+
+ def __init__(
+ self,
+ renderable: Optional[RenderableType] = None,
+ *,
+ console: Optional[Console] = None,
+ screen: bool = False,
+ auto_refresh: bool = True,
+ refresh_per_second: float = 4,
+ transient: bool = False,
+ redirect_stdout: bool = True,
+ redirect_stderr: bool = True,
+ vertical_overflow: VerticalOverflowMethod = "ellipsis",
+ get_renderable: Optional[Callable[[], RenderableType]] = None,
+ ) -> None:
+ assert refresh_per_second > 0, "refresh_per_second must be > 0"
+ self._renderable = renderable
+ self.console = console if console is not None else get_console()
+ self._screen = screen
+ self._alt_screen = False
+
+ self._redirect_stdout = redirect_stdout
+ self._redirect_stderr = redirect_stderr
+ self._restore_stdout: Optional[IO[str]] = None
+ self._restore_stderr: Optional[IO[str]] = None
+
+ self._lock = RLock()
+ self.ipy_widget: Optional[Any] = None
+ self.auto_refresh = auto_refresh
+ self._started: bool = False
+ self.transient = True if screen else transient
+
+ self._refresh_thread: Optional[_RefreshThread] = None
+ self.refresh_per_second = refresh_per_second
+
+ self.vertical_overflow = vertical_overflow
+ self._get_renderable = get_renderable
+ self._live_render = LiveRender(
+ self.get_renderable(), vertical_overflow=vertical_overflow
+ )
+ self._nested = False
+
+ @property
+ def is_started(self) -> bool:
+ """Check if live display has been started."""
+ return self._started
+
+ def get_renderable(self) -> RenderableType:
+ renderable = (
+ self._get_renderable()
+ if self._get_renderable is not None
+ else self._renderable
+ )
+ return renderable or ""
+
+ def start(self, refresh: bool = False) -> None:
+ """Start live rendering display.
+
+ Args:
+ refresh (bool, optional): Also refresh. Defaults to False.
+ """
+ with self._lock:
+ if self._started:
+ return
+ self._started = True
+
+ if not self.console.set_live(self):
+ self._nested = True
+ return
+
+ if self._screen:
+ self._alt_screen = self.console.set_alt_screen(True)
+ self.console.show_cursor(False)
+ self._enable_redirect_io()
+ self.console.push_render_hook(self)
+ if refresh:
+ try:
+ self.refresh()
+ except Exception:
+ # If refresh fails, we want to stop the redirection of sys.stderr,
+ # so the error stacktrace is properly displayed in the terminal.
+ # (or, if the code that calls Rich captures the exception and wants to display something,
+ # let this be displayed in the terminal).
+ self.stop()
+ raise
+ if self.auto_refresh:
+ self._refresh_thread = _RefreshThread(self, self.refresh_per_second)
+ self._refresh_thread.start()
+
+ def stop(self) -> None:
+ """Stop live rendering display."""
+ with self._lock:
+ if not self._started:
+ return
+ self._started = False
+ self.console.clear_live()
+ if self._nested:
+ if not self.transient:
+ self.console.print(self.renderable)
+ return
+
+ if self.auto_refresh and self._refresh_thread is not None:
+ self._refresh_thread.stop()
+ self._refresh_thread = None
+ # allow it to fully render on the last even if overflow
+ self.vertical_overflow = "visible"
+ with self.console:
+ try:
+ if not self._alt_screen and not self.console.is_jupyter:
+ self.refresh()
+ finally:
+ self._disable_redirect_io()
+ self.console.pop_render_hook()
+ if (
+ not self._alt_screen
+ and self.console.is_terminal
+ and self._live_render.last_render_height
+ ):
+ self.console.line()
+ self.console.show_cursor(True)
+ if self._alt_screen:
+ self.console.set_alt_screen(False)
+ if self.transient and not self._alt_screen:
+ self.console.control(self._live_render.restore_cursor())
+ if self.ipy_widget is not None and self.transient:
+ self.ipy_widget.close() # pragma: no cover
+
+ def __enter__(self) -> Self:
+ self.start(refresh=self._renderable is not None)
+ return self
+
+ def __exit__(
+ self,
+ exc_type: Optional[Type[BaseException]],
+ exc_val: Optional[BaseException],
+ exc_tb: Optional[TracebackType],
+ ) -> None:
+ self.stop()
+
+ def _enable_redirect_io(self) -> None:
+ """Enable redirecting of stdout / stderr."""
+ if self.console.is_terminal or self.console.is_jupyter:
+ if self._redirect_stdout and not isinstance(sys.stdout, FileProxy):
+ self._restore_stdout = sys.stdout
+ sys.stdout = cast("TextIO", FileProxy(self.console, sys.stdout))
+ if self._redirect_stderr and not isinstance(sys.stderr, FileProxy):
+ self._restore_stderr = sys.stderr
+ sys.stderr = cast("TextIO", FileProxy(self.console, sys.stderr))
+
+ def _disable_redirect_io(self) -> None:
+ """Disable redirecting of stdout / stderr."""
+ if self._restore_stdout:
+ sys.stdout = cast("TextIO", self._restore_stdout)
+ self._restore_stdout = None
+ if self._restore_stderr:
+ sys.stderr = cast("TextIO", self._restore_stderr)
+ self._restore_stderr = None
+
+ @property
+ def renderable(self) -> RenderableType:
+ """Get the renderable that is being displayed
+
+ Returns:
+ RenderableType: Displayed renderable.
+ """
+ live_stack = self.console._live_stack
+ renderable: RenderableType
+ if live_stack and self is live_stack[0]:
+ # The first Live instance will render everything in the Live stack
+ renderable = Group(*[live.get_renderable() for live in live_stack])
+ else:
+ renderable = self.get_renderable()
+ return Screen(renderable) if self._alt_screen else renderable
+
+ def update(self, renderable: RenderableType, *, refresh: bool = False) -> None:
+ """Update the renderable that is being displayed
+
+ Args:
+ renderable (RenderableType): New renderable to use.
+ refresh (bool, optional): Refresh the display. Defaults to False.
+ """
+ if isinstance(renderable, str):
+ renderable = self.console.render_str(renderable)
+ with self._lock:
+ self._renderable = renderable
+ if refresh:
+ self.refresh()
+
+ def refresh(self) -> None:
+ """Update the display of the Live Render."""
+ with self._lock:
+ self._live_render.set_renderable(self.renderable)
+ if self._nested:
+ if self.console._live_stack:
+ self.console._live_stack[0].refresh()
+ return
+
+ if self.console.is_jupyter: # pragma: no cover
+ try:
+ from IPython.display import display
+ from ipywidgets import Output
+ except ImportError:
+ import warnings
+
+ warnings.warn('install "ipywidgets" for Jupyter support')
+ else:
+ if self.ipy_widget is None:
+ self.ipy_widget = Output()
+ display(self.ipy_widget)
+
+ with self.ipy_widget:
+ self.ipy_widget.clear_output(wait=True)
+ self.console.print(self._live_render.renderable)
+ elif self.console.is_terminal and not self.console.is_dumb_terminal:
+ with self.console:
+ self.console.print(Control())
+ elif (
+ not self._started and not self.transient
+ ): # if it is finished allow files or dumb-terminals to see final result
+ with self.console:
+ self.console.print(Control())
+
+ def process_renderables(
+ self, renderables: List[ConsoleRenderable]
+ ) -> List[ConsoleRenderable]:
+ """Process renderables to restore cursor and display progress."""
+ self._live_render.vertical_overflow = self.vertical_overflow
+ if self.console.is_interactive:
+ # lock needs acquiring as user can modify live_render renderable at any time unlike in Progress.
+ with self._lock:
+ reset = (
+ Control.home()
+ if self._alt_screen
+ else self._live_render.position_cursor()
+ )
+ renderables = [reset, *renderables, self._live_render]
+ elif (
+ not self._started and not self.transient
+ ): # if it is finished render the final output for files or dumb_terminals
+ renderables = [*renderables, self._live_render]
+
+ return renderables
+
+
+if __name__ == "__main__": # pragma: no cover
+ import random
+ import time
+ from itertools import cycle
+ from typing import Dict, List, Tuple
+
+ from .align import Align
+ from .console import Console
+ from .live import Live as Live
+ from .panel import Panel
+ from .rule import Rule
+ from .syntax import Syntax
+ from .table import Table
+
+ console = Console()
+
+ syntax = Syntax(
+ '''def loop_last(values: Iterable[T]) -> Iterable[Tuple[bool, T]]:
+ """Iterate and generate a tuple with a flag for last value."""
+ iter_values = iter(values)
+ try:
+ previous_value = next(iter_values)
+ except StopIteration:
+ return
+ for value in iter_values:
+ yield False, previous_value
+ previous_value = value
+ yield True, previous_value''',
+ "python",
+ line_numbers=True,
+ )
+
+ table = Table("foo", "bar", "baz")
+ table.add_row("1", "2", "3")
+
+ progress_renderables = [
+ "You can make the terminal shorter and taller to see the live table hide"
+ "Text may be printed while the progress bars are rendering.",
+ Panel("In fact, [i]any[/i] renderable will work"),
+ "Such as [magenta]tables[/]...",
+ table,
+ "Pretty printed structures...",
+ {"type": "example", "text": "Pretty printed"},
+ "Syntax...",
+ syntax,
+ Rule("Give it a try!"),
+ ]
+
+ examples = cycle(progress_renderables)
+
+ exchanges = [
+ "SGD",
+ "MYR",
+ "EUR",
+ "USD",
+ "AUD",
+ "JPY",
+ "CNH",
+ "HKD",
+ "CAD",
+ "INR",
+ "DKK",
+ "GBP",
+ "RUB",
+ "NZD",
+ "MXN",
+ "IDR",
+ "TWD",
+ "THB",
+ "VND",
+ ]
+ with Live(console=console) as live_table:
+ exchange_rate_dict: Dict[Tuple[str, str], float] = {}
+
+ for index in range(100):
+ select_exchange = exchanges[index % len(exchanges)]
+
+ for exchange in exchanges:
+ if exchange == select_exchange:
+ continue
+ time.sleep(0.4)
+ if random.randint(0, 10) < 1:
+ console.log(next(examples))
+ exchange_rate_dict[(select_exchange, exchange)] = 200 / (
+ (random.random() * 320) + 1
+ )
+ if len(exchange_rate_dict) > len(exchanges) - 1:
+ exchange_rate_dict.pop(list(exchange_rate_dict.keys())[0])
+ table = Table(title="Exchange Rates")
+
+ table.add_column("Source Currency")
+ table.add_column("Destination Currency")
+ table.add_column("Exchange Rate")
+
+ for (source, dest), exchange_rate in exchange_rate_dict.items():
+ table.add_row(
+ source,
+ dest,
+ Text(
+ f"{exchange_rate:.4f}",
+ style="red" if exchange_rate < 1.0 else "green",
+ ),
+ )
+
+ live_table.update(Align.center(table))
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/live_render.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/live_render.py
new file mode 100644
index 0000000000000000000000000000000000000000..e7ec970a7812919e192d0e8c43fe625ffc30af6e
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/live_render.py
@@ -0,0 +1,116 @@
+from typing import Literal, Optional, Tuple
+
+from ._loop import loop_last
+from .console import Console, ConsoleOptions, RenderableType, RenderResult
+from .control import Control
+from .segment import ControlType, Segment
+from .style import StyleType
+from .text import Text
+
+VerticalOverflowMethod = Literal["crop", "ellipsis", "visible"]
+
+
+class LiveRender:
+ """Creates a renderable that may be updated.
+
+ Args:
+ renderable (RenderableType): Any renderable object.
+ style (StyleType, optional): An optional style to apply to the renderable. Defaults to "".
+ """
+
+ def __init__(
+ self,
+ renderable: RenderableType,
+ style: StyleType = "",
+ vertical_overflow: VerticalOverflowMethod = "ellipsis",
+ ) -> None:
+ self.renderable = renderable
+ self.style = style
+ self.vertical_overflow = vertical_overflow
+ self._shape: Optional[Tuple[int, int]] = None
+
+ @property
+ def last_render_height(self) -> int:
+ """The number of lines in the last render (may be 0 if nothing was rendered).
+
+ Returns:
+ Height in lines
+ """
+ if self._shape is None:
+ return 0
+ return self._shape[1]
+
+ def set_renderable(self, renderable: RenderableType) -> None:
+ """Set a new renderable.
+
+ Args:
+ renderable (RenderableType): Any renderable object, including str.
+ """
+ self.renderable = renderable
+
+ def position_cursor(self) -> Control:
+ """Get control codes to move cursor to beginning of live render.
+
+ Returns:
+ Control: A control instance that may be printed.
+ """
+ if self._shape is not None:
+ _, height = self._shape
+ return Control(
+ ControlType.CARRIAGE_RETURN,
+ (ControlType.ERASE_IN_LINE, 2),
+ *(
+ (
+ (ControlType.CURSOR_UP, 1),
+ (ControlType.ERASE_IN_LINE, 2),
+ )
+ * (height - 1)
+ )
+ )
+ return Control()
+
+ def restore_cursor(self) -> Control:
+ """Get control codes to clear the render and restore the cursor to its previous position.
+
+ Returns:
+ Control: A Control instance that may be printed.
+ """
+ if self._shape is not None:
+ _, height = self._shape
+ return Control(
+ ControlType.CARRIAGE_RETURN,
+ *((ControlType.CURSOR_UP, 1), (ControlType.ERASE_IN_LINE, 2)) * height
+ )
+ return Control()
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ renderable = self.renderable
+ style = console.get_style(self.style)
+ lines = console.render_lines(renderable, options, style=style, pad=False)
+ shape = Segment.get_shape(lines)
+
+ _, height = shape
+ if height > options.size.height:
+ if self.vertical_overflow == "crop":
+ lines = lines[: options.size.height]
+ shape = Segment.get_shape(lines)
+ elif self.vertical_overflow == "ellipsis":
+ lines = lines[: (options.size.height - 1)]
+ overflow_text = Text(
+ "...",
+ overflow="crop",
+ justify="center",
+ end="",
+ style="live.ellipsis",
+ )
+ lines.append(list(console.render(overflow_text)))
+ shape = Segment.get_shape(lines)
+ self._shape = shape
+
+ new_line = Segment.line()
+ for last, line in loop_last(lines):
+ yield from line
+ if not last:
+ yield new_line
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/logging.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/logging.py
new file mode 100644
index 0000000000000000000000000000000000000000..e572f078c4669e769d6cc1dad2fb2161819f4796
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/logging.py
@@ -0,0 +1,305 @@
+from __future__ import annotations
+
+import logging
+import os
+from datetime import datetime
+from logging import Handler, LogRecord
+from types import ModuleType
+from typing import TYPE_CHECKING, ClassVar, Iterable, List, Optional, Type, Union
+
+if TYPE_CHECKING:
+ from ._log_render import FormatTimeCallable
+ from .console import Console, ConsoleRenderable
+ from .highlighter import Highlighter
+ from .traceback import Traceback
+
+from rich._null_file import NullFile
+
+from . import get_console
+from ._log_render import LogRender
+from .highlighter import ReprHighlighter
+from .text import Text
+
+
+class RichHandler(Handler):
+ """A logging handler that renders output with Rich. The time / level / message and file are displayed in columns.
+ The level is color coded, and the message is syntax highlighted.
+
+ Note:
+ Be careful when enabling console markup in log messages if you have configured logging for libraries not
+ under your control. If a dependency writes messages containing square brackets, it may not produce the intended output.
+
+ Args:
+ level (Union[int, str], optional): Log level. Defaults to logging.NOTSET.
+ console (:class:`~rich.console.Console`, optional): Optional console instance to write logs.
+ Default will use a global console instance writing to stdout.
+ show_time (bool, optional): Show a column for the time. Defaults to True.
+ omit_repeated_times (bool, optional): Omit repetition of the same time. Defaults to True.
+ show_level (bool, optional): Show a column for the level. Defaults to True.
+ show_path (bool, optional): Show the path to the original log call. Defaults to True.
+ enable_link_path (bool, optional): Enable terminal link of path column to file. Defaults to True.
+ highlighter (Highlighter, optional): Highlighter to style log messages, or None to use ReprHighlighter. Defaults to None.
+ markup (bool, optional): Enable console markup in log messages. Defaults to False.
+ rich_tracebacks (bool, optional): Enable rich tracebacks with syntax highlighting and formatting. Defaults to False.
+ tracebacks_width (Optional[int], optional): Number of characters used to render tracebacks, or None for full width. Defaults to None.
+ tracebacks_code_width (int, optional): Number of code characters used to render tracebacks, or None for full width. Defaults to 88.
+ tracebacks_extra_lines (int, optional): Additional lines of code to render tracebacks, or None for full width. Defaults to None.
+ tracebacks_theme (str, optional): Override pygments theme used in traceback.
+ tracebacks_word_wrap (bool, optional): Enable word wrapping of long tracebacks lines. Defaults to True.
+ tracebacks_show_locals (bool, optional): Enable display of locals in tracebacks. Defaults to False.
+ tracebacks_suppress (Sequence[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.
+ tracebacks_max_frames (int, optional): Optional maximum number of frames returned by traceback.
+ locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
+ Defaults to 10.
+ locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
+ log_time_format (Union[str, TimeFormatterCallable], optional): If ``log_time`` is enabled, either string for strftime or callable that formats the time. Defaults to "[%x %X] ".
+ keywords (List[str], optional): List of words to highlight instead of ``RichHandler.KEYWORDS``.
+ """
+
+ KEYWORDS: ClassVar[Optional[List[str]]] = [
+ "GET",
+ "POST",
+ "HEAD",
+ "PUT",
+ "DELETE",
+ "OPTIONS",
+ "TRACE",
+ "PATCH",
+ ]
+ HIGHLIGHTER_CLASS: ClassVar[Type[Highlighter]] = ReprHighlighter
+
+ def __init__(
+ self,
+ level: Union[int, str] = logging.NOTSET,
+ console: Optional[Console] = None,
+ *,
+ show_time: bool = True,
+ omit_repeated_times: bool = True,
+ show_level: bool = True,
+ show_path: bool = True,
+ enable_link_path: bool = True,
+ highlighter: Optional[Highlighter] = None,
+ markup: bool = False,
+ rich_tracebacks: bool = False,
+ tracebacks_width: Optional[int] = None,
+ tracebacks_code_width: Optional[int] = 88,
+ tracebacks_extra_lines: int = 3,
+ tracebacks_theme: Optional[str] = None,
+ tracebacks_word_wrap: bool = True,
+ tracebacks_show_locals: bool = False,
+ tracebacks_suppress: Iterable[Union[str, ModuleType]] = (),
+ tracebacks_max_frames: int = 100,
+ locals_max_length: int = 10,
+ locals_max_string: int = 80,
+ log_time_format: Union[str, FormatTimeCallable] = "[%x %X]",
+ keywords: Optional[List[str]] = None,
+ ) -> None:
+ super().__init__(level=level)
+ self.console = console or get_console()
+ self.highlighter = highlighter or self.HIGHLIGHTER_CLASS()
+ self._log_render = LogRender(
+ show_time=show_time,
+ show_level=show_level,
+ show_path=show_path,
+ time_format=log_time_format,
+ omit_repeated_times=omit_repeated_times,
+ level_width=None,
+ )
+ self.enable_link_path = enable_link_path
+ self.markup = markup
+ self.rich_tracebacks = rich_tracebacks
+ self.tracebacks_width = tracebacks_width
+ self.tracebacks_extra_lines = tracebacks_extra_lines
+ self.tracebacks_theme = tracebacks_theme
+ self.tracebacks_word_wrap = tracebacks_word_wrap
+ self.tracebacks_show_locals = tracebacks_show_locals
+ self.tracebacks_suppress = tracebacks_suppress
+ self.tracebacks_max_frames = tracebacks_max_frames
+ self.tracebacks_code_width = tracebacks_code_width
+ self.locals_max_length = locals_max_length
+ self.locals_max_string = locals_max_string
+ self.keywords = keywords
+
+ def get_level_text(self, record: LogRecord) -> Text:
+ """Get the level name from the record.
+
+ Args:
+ record (LogRecord): LogRecord instance.
+
+ Returns:
+ Text: A tuple of the style and level name.
+ """
+ level_name = record.levelname
+ level_text = Text.styled(
+ level_name.ljust(8), f"logging.level.{level_name.lower()}"
+ )
+ return level_text
+
+ def emit(self, record: LogRecord) -> None:
+ """Invoked by logging."""
+ message = self.format(record)
+ traceback = None
+ if (
+ self.rich_tracebacks
+ and record.exc_info
+ and record.exc_info != (None, None, None)
+ ):
+ exc_type, exc_value, exc_traceback = record.exc_info
+ assert exc_type is not None
+ assert exc_value is not None
+ from .traceback import Traceback
+
+ traceback = Traceback.from_exception(
+ exc_type,
+ exc_value,
+ exc_traceback,
+ width=self.tracebacks_width,
+ code_width=self.tracebacks_code_width,
+ extra_lines=self.tracebacks_extra_lines,
+ theme=self.tracebacks_theme,
+ word_wrap=self.tracebacks_word_wrap,
+ show_locals=self.tracebacks_show_locals,
+ locals_max_length=self.locals_max_length,
+ locals_max_string=self.locals_max_string,
+ suppress=self.tracebacks_suppress,
+ max_frames=self.tracebacks_max_frames,
+ )
+ message = record.getMessage()
+ if self.formatter:
+ record.message = record.getMessage()
+ formatter = self.formatter
+ if hasattr(formatter, "usesTime") and formatter.usesTime():
+ record.asctime = formatter.formatTime(record, formatter.datefmt)
+ message = formatter.formatMessage(record)
+
+ message_renderable = self.render_message(record, message)
+ log_renderable = self.render(
+ record=record, traceback=traceback, message_renderable=message_renderable
+ )
+ if isinstance(self.console.file, NullFile):
+ # Handles pythonw, where stdout/stderr are null, and we return NullFile
+ # instance from Console.file. In this case, we still want to make a log record
+ # even though we won't be writing anything to a file.
+ self.handleError(record)
+ else:
+ try:
+ self.console.print(log_renderable)
+ except Exception:
+ self.handleError(record)
+
+ def render_message(self, record: LogRecord, message: str) -> ConsoleRenderable:
+ """Render message text in to Text.
+
+ Args:
+ record (LogRecord): logging Record.
+ message (str): String containing log message.
+
+ Returns:
+ ConsoleRenderable: Renderable to display log message.
+ """
+ use_markup = getattr(record, "markup", self.markup)
+ message_text = Text.from_markup(message) if use_markup else Text(message)
+
+ highlighter = getattr(record, "highlighter", self.highlighter)
+ if highlighter:
+ message_text = highlighter(message_text)
+
+ if self.keywords is None:
+ self.keywords = self.KEYWORDS
+
+ if self.keywords:
+ message_text.highlight_words(self.keywords, "logging.keyword")
+
+ return message_text
+
+ def render(
+ self,
+ *,
+ record: LogRecord,
+ traceback: Optional[Traceback],
+ message_renderable: ConsoleRenderable,
+ ) -> ConsoleRenderable:
+ """Render log for display.
+
+ Args:
+ record (LogRecord): logging Record.
+ traceback (Optional[Traceback]): Traceback instance or None for no Traceback.
+ message_renderable (ConsoleRenderable): Renderable (typically Text) containing log message contents.
+
+ Returns:
+ ConsoleRenderable: Renderable to display log.
+ """
+ path = os.path.basename(record.pathname)
+ level = self.get_level_text(record)
+ time_format = None if self.formatter is None else self.formatter.datefmt
+ log_time = datetime.fromtimestamp(record.created)
+
+ log_renderable = self._log_render(
+ self.console,
+ [message_renderable] if not traceback else [message_renderable, traceback],
+ log_time=log_time,
+ time_format=time_format,
+ level=level,
+ path=path,
+ line_no=record.lineno,
+ link_path=record.pathname if self.enable_link_path else None,
+ )
+ return log_renderable
+
+
+if __name__ == "__main__": # pragma: no cover
+ from time import sleep
+
+ FORMAT = "%(message)s"
+ # FORMAT = "%(asctime)-15s - %(levelname)s - %(message)s"
+ logging.basicConfig(
+ level="NOTSET",
+ format=FORMAT,
+ datefmt="[%X]",
+ handlers=[RichHandler(rich_tracebacks=True, tracebacks_show_locals=True)],
+ )
+ log = logging.getLogger("rich")
+
+ log.info("Server starting...")
+ log.info("Listening on http://127.0.0.1:8080")
+ sleep(1)
+
+ log.info("GET /index.html 200 1298")
+ log.info("GET /imgs/backgrounds/back1.jpg 200 54386")
+ log.info("GET /css/styles.css 200 54386")
+ log.warning("GET /favicon.ico 404 242")
+ sleep(1)
+
+ log.debug(
+ "JSONRPC request\n--> %r\n<-- %r",
+ {
+ "version": "1.1",
+ "method": "confirmFruitPurchase",
+ "params": [["apple", "orange", "mangoes", "pomelo"], 1.123],
+ "id": "194521489",
+ },
+ {"version": "1.1", "result": True, "error": None, "id": "194521489"},
+ )
+ log.debug(
+ "Loading configuration file /adasd/asdasd/qeqwe/qwrqwrqwr/sdgsdgsdg/werwerwer/dfgerert/ertertert/ertetert/werwerwer"
+ )
+ log.error("Unable to find 'pomelo' in database!")
+ log.info("POST /jsonrpc/ 200 65532")
+ log.info("POST /admin/ 401 42234")
+ log.warning("password was rejected for admin site.")
+
+ def divide() -> None:
+ number = 1
+ divisor = 0
+ foos = ["foo"] * 100
+ log.debug("in divide")
+ try:
+ number / divisor
+ except:
+ log.exception("An error of some kind occurred!")
+
+ divide()
+ sleep(1)
+ log.critical("Out of memory!")
+ log.info("Server exited with code=-1")
+ log.info("[bold]EXITING...[/bold]", extra=dict(markup=True))
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/markdown.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/markdown.py
new file mode 100644
index 0000000000000000000000000000000000000000..abbbb07d64e8d6bb16a809218a9d1f6480c0e4f5
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/markdown.py
@@ -0,0 +1,802 @@
+from __future__ import annotations
+
+import sys
+from dataclasses import dataclass
+from typing import ClassVar, Iterable, get_args
+
+from markdown_it import MarkdownIt
+from markdown_it.token import Token
+
+from rich.table import Table
+
+from . import box
+from ._loop import loop_first
+from ._stack import Stack
+from .console import Console, ConsoleOptions, JustifyMethod, RenderResult
+from .containers import Renderables
+from .jupyter import JupyterMixin
+from .rule import Rule
+from .segment import Segment
+from .style import Style, StyleStack
+from .syntax import Syntax
+from .text import Text, TextType
+
+
+class MarkdownElement:
+ new_line: ClassVar[bool] = True
+
+ @classmethod
+ def create(cls, markdown: Markdown, token: Token) -> MarkdownElement:
+ """Factory to create markdown element,
+
+ Args:
+ markdown (Markdown): The parent Markdown object.
+ token (Token): A node from markdown-it.
+
+ Returns:
+ MarkdownElement: A new markdown element
+ """
+ return cls()
+
+ def on_enter(self, context: MarkdownContext) -> None:
+ """Called when the node is entered.
+
+ Args:
+ context (MarkdownContext): The markdown context.
+ """
+
+ def on_text(self, context: MarkdownContext, text: TextType) -> None:
+ """Called when text is parsed.
+
+ Args:
+ context (MarkdownContext): The markdown context.
+ """
+
+ def on_leave(self, context: MarkdownContext) -> None:
+ """Called when the parser leaves the element.
+
+ Args:
+ context (MarkdownContext): [description]
+ """
+
+ def on_child_close(self, context: MarkdownContext, child: MarkdownElement) -> bool:
+ """Called when a child element is closed.
+
+ This method allows a parent element to take over rendering of its children.
+
+ Args:
+ context (MarkdownContext): The markdown context.
+ child (MarkdownElement): The child markdown element.
+
+ Returns:
+ bool: Return True to render the element, or False to not render the element.
+ """
+ return True
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ return ()
+
+
+class UnknownElement(MarkdownElement):
+ """An unknown element.
+
+ Hopefully there will be no unknown elements, and we will have a MarkdownElement for
+ everything in the document.
+
+ """
+
+
+class TextElement(MarkdownElement):
+ """Base class for elements that render text."""
+
+ style_name = "none"
+
+ def on_enter(self, context: MarkdownContext) -> None:
+ self.style = context.enter_style(self.style_name)
+ self.text = Text(justify="left")
+
+ def on_text(self, context: MarkdownContext, text: TextType) -> None:
+ self.text.append(text, context.current_style if isinstance(text, str) else None)
+
+ def on_leave(self, context: MarkdownContext) -> None:
+ context.leave_style()
+
+
+class Paragraph(TextElement):
+ """A Paragraph."""
+
+ style_name = "markdown.paragraph"
+ justify: JustifyMethod
+
+ @classmethod
+ def create(cls, markdown: Markdown, token: Token) -> Paragraph:
+ return cls(justify=markdown.justify or "left")
+
+ def __init__(self, justify: JustifyMethod) -> None:
+ self.justify = justify
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ self.text.justify = self.justify
+ yield self.text
+
+
+@dataclass
+class HeadingFormat:
+ justify: JustifyMethod = "left"
+ style: str = ""
+
+
+class Heading(TextElement):
+ """A heading."""
+
+ LEVEL_ALIGN: ClassVar[dict[str, JustifyMethod]] = {
+ "h1": "center",
+ "h2": "left",
+ "h3": "left",
+ "h4": "left",
+ "h5": "left",
+ "h6": "left",
+ }
+
+ @classmethod
+ def create(cls, markdown: Markdown, token: Token) -> Heading:
+ return cls(token.tag)
+
+ def on_enter(self, context: MarkdownContext) -> None:
+ self.text = Text()
+ context.enter_style(self.style_name)
+
+ def __init__(self, tag: str) -> None:
+ self.tag = tag
+ self.style_name = f"markdown.{tag}"
+ super().__init__()
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ text = self.text.copy()
+ heading_justify = self.LEVEL_ALIGN.get(self.tag, "left")
+ text.justify = heading_justify
+ yield text
+
+
+class CodeBlock(TextElement):
+ """A code block with syntax highlighting."""
+
+ style_name = "markdown.code_block"
+
+ @classmethod
+ def create(cls, markdown: Markdown, token: Token) -> CodeBlock:
+ node_info = token.info or ""
+ lexer_name = node_info.partition(" ")[0]
+ return cls(lexer_name or "text", markdown.code_theme)
+
+ def __init__(self, lexer_name: str, theme: str) -> None:
+ self.lexer_name = lexer_name
+ self.theme = theme
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ code = str(self.text).rstrip()
+ syntax = Syntax(
+ code, self.lexer_name, theme=self.theme, word_wrap=True, padding=1
+ )
+ yield syntax
+
+
+class BlockQuote(TextElement):
+ """A block quote."""
+
+ style_name = "markdown.block_quote"
+
+ def __init__(self) -> None:
+ self.elements: Renderables = Renderables()
+
+ def on_child_close(self, context: MarkdownContext, child: MarkdownElement) -> bool:
+ self.elements.append(child)
+ return False
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ render_options = options.update(width=options.max_width - 4)
+ lines = console.render_lines(self.elements, render_options, style=self.style)
+ style = self.style
+ new_line = Segment("\n")
+ padding = Segment("▌ ", style)
+ for line in lines:
+ yield padding
+ yield from line
+ yield new_line
+
+
+class HorizontalRule(MarkdownElement):
+ """A horizontal rule to divide sections."""
+
+ new_line = False
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ style = console.get_style("markdown.hr", default="none")
+ yield Rule(style=style, characters="-")
+ yield Text()
+
+
+class TableElement(MarkdownElement):
+ """MarkdownElement corresponding to `table_open`."""
+
+ def __init__(self) -> None:
+ self.header: TableHeaderElement | None = None
+ self.body: TableBodyElement | None = None
+
+ def on_child_close(self, context: MarkdownContext, child: MarkdownElement) -> bool:
+ if isinstance(child, TableHeaderElement):
+ self.header = child
+ elif isinstance(child, TableBodyElement):
+ self.body = child
+ else:
+ raise RuntimeError("Couldn't process markdown table.")
+ return False
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ table = Table(
+ box=box.SIMPLE,
+ pad_edge=False,
+ style="markdown.table.border",
+ show_edge=True,
+ collapse_padding=True,
+ )
+
+ if self.header is not None and self.header.row is not None:
+ for column in self.header.row.cells:
+ heading = column.content.copy()
+ heading.stylize("markdown.table.header")
+ table.add_column(heading)
+
+ if self.body is not None:
+ for row in self.body.rows:
+ row_content = [element.content for element in row.cells]
+ table.add_row(*row_content)
+
+ yield table
+
+
+class TableHeaderElement(MarkdownElement):
+ """MarkdownElement corresponding to `thead_open` and `thead_close`."""
+
+ def __init__(self) -> None:
+ self.row: TableRowElement | None = None
+
+ def on_child_close(self, context: MarkdownContext, child: MarkdownElement) -> bool:
+ assert isinstance(child, TableRowElement)
+ self.row = child
+ return False
+
+
+class TableBodyElement(MarkdownElement):
+ """MarkdownElement corresponding to `tbody_open` and `tbody_close`."""
+
+ def __init__(self) -> None:
+ self.rows: list[TableRowElement] = []
+
+ def on_child_close(self, context: MarkdownContext, child: MarkdownElement) -> bool:
+ assert isinstance(child, TableRowElement)
+ self.rows.append(child)
+ return False
+
+
+class TableRowElement(MarkdownElement):
+ """MarkdownElement corresponding to `tr_open` and `tr_close`."""
+
+ def __init__(self) -> None:
+ self.cells: list[TableDataElement] = []
+
+ def on_child_close(self, context: MarkdownContext, child: MarkdownElement) -> bool:
+ assert isinstance(child, TableDataElement)
+ self.cells.append(child)
+ return False
+
+
+class TableDataElement(MarkdownElement):
+ """MarkdownElement corresponding to `td_open` and `td_close`
+ and `th_open` and `th_close`."""
+
+ @classmethod
+ def create(cls, markdown: Markdown, token: Token) -> MarkdownElement:
+ style = str(token.attrs.get("style")) or ""
+
+ justify: JustifyMethod
+ if "text-align:right" in style:
+ justify = "right"
+ elif "text-align:center" in style:
+ justify = "center"
+ elif "text-align:left" in style:
+ justify = "left"
+ else:
+ justify = "default"
+
+ assert justify in get_args(JustifyMethod)
+ return cls(justify=justify)
+
+ def __init__(self, justify: JustifyMethod) -> None:
+ self.content: Text = Text("", justify=justify)
+ self.justify = justify
+
+ def on_text(self, context: MarkdownContext, text: TextType) -> None:
+ if isinstance(text, str):
+ self.content.append(text, context.current_style)
+ else:
+ self.content.append_text(text)
+
+
+class ListElement(MarkdownElement):
+ """A list element."""
+
+ @classmethod
+ def create(cls, markdown: Markdown, token: Token) -> ListElement:
+ return cls(token.type, int(token.attrs.get("start", 1)))
+
+ def __init__(self, list_type: str, list_start: int | None) -> None:
+ self.items: list[ListItem] = []
+ self.list_type = list_type
+ self.list_start = list_start
+
+ def on_child_close(self, context: MarkdownContext, child: MarkdownElement) -> bool:
+ assert isinstance(child, ListItem)
+ self.items.append(child)
+ return False
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ if self.list_type == "bullet_list_open":
+ for item in self.items:
+ yield from item.render_bullet(console, options)
+ else:
+ number = 1 if self.list_start is None else self.list_start
+ last_number = number + len(self.items)
+ for index, item in enumerate(self.items):
+ yield from item.render_number(
+ console, options, number + index, last_number
+ )
+
+
+class ListItem(TextElement):
+ """An item in a list."""
+
+ style_name = "markdown.item"
+
+ def __init__(self) -> None:
+ self.elements: Renderables = Renderables()
+
+ def on_child_close(self, context: MarkdownContext, child: MarkdownElement) -> bool:
+ self.elements.append(child)
+ return False
+
+ def render_bullet(self, console: Console, options: ConsoleOptions) -> RenderResult:
+ render_options = options.update(width=options.max_width - 3)
+ lines = console.render_lines(self.elements, render_options, style=self.style)
+ bullet_style = console.get_style("markdown.item.bullet", default="none")
+
+ bullet = Segment(" • ", bullet_style)
+ padding = Segment(" " * 3, bullet_style)
+ new_line = Segment("\n")
+ for first, line in loop_first(lines):
+ yield bullet if first else padding
+ yield from line
+ yield new_line
+
+ def render_number(
+ self, console: Console, options: ConsoleOptions, number: int, last_number: int
+ ) -> RenderResult:
+ number_width = len(str(last_number)) + 2
+ render_options = options.update(width=options.max_width - number_width)
+ lines = console.render_lines(self.elements, render_options, style=self.style)
+ number_style = console.get_style("markdown.item.number", default="none")
+
+ new_line = Segment("\n")
+ padding = Segment(" " * number_width, number_style)
+ numeral = Segment(f"{number}".rjust(number_width - 1) + " ", number_style)
+ for first, line in loop_first(lines):
+ yield numeral if first else padding
+ yield from line
+ yield new_line
+
+
+class Link(TextElement):
+ @classmethod
+ def create(cls, markdown: Markdown, token: Token) -> MarkdownElement:
+ url = token.attrs.get("href", "#")
+ return cls(token.content, str(url))
+
+ def __init__(self, text: str, href: str):
+ self.text = Text(text)
+ self.href = href
+
+
+class ImageItem(TextElement):
+ """Renders a placeholder for an image."""
+
+ new_line = False
+
+ @classmethod
+ def create(cls, markdown: Markdown, token: Token) -> MarkdownElement:
+ """Factory to create markdown element,
+
+ Args:
+ markdown (Markdown): The parent Markdown object.
+ token (Any): A token from markdown-it.
+
+ Returns:
+ MarkdownElement: A new markdown element
+ """
+ return cls(str(token.attrs.get("src", "")), markdown.hyperlinks)
+
+ def __init__(self, destination: str, hyperlinks: bool) -> None:
+ self.destination = destination
+ self.hyperlinks = hyperlinks
+ self.link: str | None = None
+ super().__init__()
+
+ def on_enter(self, context: MarkdownContext) -> None:
+ self.link = context.current_style.link
+ self.text = Text(justify="left")
+ super().on_enter(context)
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ link_style = Style(link=self.link or self.destination or None)
+ title = self.text or Text(self.destination.strip("/").rsplit("/", 1)[-1])
+ if self.hyperlinks:
+ title.stylize(link_style)
+ text = Text.assemble("🌆 ", title, " ", end="")
+ yield text
+
+
+class MarkdownContext:
+ """Manages the console render state."""
+
+ def __init__(
+ self,
+ console: Console,
+ options: ConsoleOptions,
+ style: Style,
+ inline_code_lexer: str | None = None,
+ inline_code_theme: str = "monokai",
+ ) -> None:
+ self.console = console
+ self.options = options
+ self.style_stack: StyleStack = StyleStack(style)
+ self.stack: Stack[MarkdownElement] = Stack()
+
+ self._syntax: Syntax | None = None
+ if inline_code_lexer is not None:
+ self._syntax = Syntax("", inline_code_lexer, theme=inline_code_theme)
+
+ @property
+ def current_style(self) -> Style:
+ """Current style which is the product of all styles on the stack."""
+ return self.style_stack.current
+
+ def on_text(self, text: str, node_type: str) -> None:
+ """Called when the parser visits text."""
+ if node_type in {"fence", "code_inline"} and self._syntax is not None:
+ highlight_text = self._syntax.highlight(text)
+ highlight_text.rstrip()
+ self.stack.top.on_text(
+ self, Text.assemble(highlight_text, style=self.style_stack.current)
+ )
+ else:
+ self.stack.top.on_text(self, text)
+
+ def enter_style(self, style_name: str | Style) -> Style:
+ """Enter a style context."""
+ style = self.console.get_style(style_name, default="none")
+ self.style_stack.push(style)
+ return self.current_style
+
+ def leave_style(self) -> Style:
+ """Leave a style context."""
+ style = self.style_stack.pop()
+ return style
+
+
+class Markdown(JupyterMixin):
+ """A Markdown renderable.
+
+ Args:
+ markup (str): A string containing markdown.
+ code_theme (str, optional): Pygments theme for code blocks. Defaults to "monokai". See https://pygments.org/styles/ for code themes.
+ justify (JustifyMethod, optional): Justify value for paragraphs. Defaults to None.
+ style (Union[str, Style], optional): Optional style to apply to markdown.
+ hyperlinks (bool, optional): Enable hyperlinks. Defaults to ``True``.
+ inline_code_lexer: (str, optional): Lexer to use if inline code highlighting is
+ enabled. Defaults to None.
+ inline_code_theme: (Optional[str], optional): Pygments theme for inline code
+ highlighting, or None for no highlighting. Defaults to None.
+ """
+
+ elements: ClassVar[dict[str, type[MarkdownElement]]] = {
+ "paragraph_open": Paragraph,
+ "heading_open": Heading,
+ "fence": CodeBlock,
+ "code_block": CodeBlock,
+ "blockquote_open": BlockQuote,
+ "hr": HorizontalRule,
+ "bullet_list_open": ListElement,
+ "ordered_list_open": ListElement,
+ "list_item_open": ListItem,
+ "image": ImageItem,
+ "table_open": TableElement,
+ "tbody_open": TableBodyElement,
+ "thead_open": TableHeaderElement,
+ "tr_open": TableRowElement,
+ "td_open": TableDataElement,
+ "th_open": TableDataElement,
+ }
+
+ inlines = {"em", "strong", "code", "s"}
+
+ def __init__(
+ self,
+ markup: str,
+ code_theme: str = "monokai",
+ justify: JustifyMethod | None = None,
+ style: str | Style = "none",
+ hyperlinks: bool = True,
+ inline_code_lexer: str | None = None,
+ inline_code_theme: str | None = None,
+ ) -> None:
+ parser = MarkdownIt().enable("strikethrough").enable("table")
+ self.markup = markup
+ self.parsed = parser.parse(markup)
+ self.code_theme = code_theme
+ self.justify: JustifyMethod | None = justify
+ self.style = style
+ self.hyperlinks = hyperlinks
+ self.inline_code_lexer = inline_code_lexer
+ self.inline_code_theme = inline_code_theme or code_theme
+
+ def _flatten_tokens(self, tokens: Iterable[Token]) -> Iterable[Token]:
+ """Flattens the token stream."""
+ for token in tokens:
+ is_fence = token.type == "fence"
+ is_image = token.tag == "img"
+ if token.children and not (is_image or is_fence):
+ yield from self._flatten_tokens(token.children)
+ else:
+ yield token
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ """Render markdown to the console."""
+ style = console.get_style(self.style, default="none")
+ options = options.update(height=None)
+ context = MarkdownContext(
+ console,
+ options,
+ style,
+ inline_code_lexer=self.inline_code_lexer,
+ inline_code_theme=self.inline_code_theme,
+ )
+ tokens = self.parsed
+ inline_style_tags = self.inlines
+ new_line = False
+ _new_line_segment = Segment.line()
+
+ for token in self._flatten_tokens(tokens):
+ node_type = token.type
+ tag = token.tag
+
+ entering = token.nesting == 1
+ exiting = token.nesting == -1
+ self_closing = token.nesting == 0
+
+ if node_type == "text":
+ context.on_text(token.content, node_type)
+ elif node_type == "hardbreak":
+ context.on_text("\n", node_type)
+ elif node_type == "softbreak":
+ context.on_text(" ", node_type)
+ elif node_type == "link_open":
+ href = str(token.attrs.get("href", ""))
+ if self.hyperlinks:
+ link_style = console.get_style("markdown.link_url", default="none")
+ link_style += Style(link=href)
+ context.enter_style(link_style)
+ else:
+ context.stack.push(Link.create(self, token))
+ elif node_type == "html_inline":
+ if token.content == "":
+ kbd_style = console.get_style("markdown.kbd", default="bold")
+ context.enter_style(kbd_style)
+ elif token.content == " ":
+ context.leave_style()
+ else:
+ continue
+ elif node_type == "link_close":
+ if self.hyperlinks:
+ context.leave_style()
+ else:
+ element = context.stack.pop()
+ assert isinstance(element, Link)
+ link_style = console.get_style("markdown.link", default="none")
+ context.enter_style(link_style)
+ context.on_text(element.text.plain, node_type)
+ context.leave_style()
+ context.on_text(" (", node_type)
+ link_url_style = console.get_style(
+ "markdown.link_url", default="none"
+ )
+ context.enter_style(link_url_style)
+ context.on_text(element.href, node_type)
+ context.leave_style()
+ context.on_text(")", node_type)
+ elif (
+ tag in inline_style_tags
+ and node_type != "fence"
+ and node_type != "code_block"
+ ):
+ if entering:
+ # If it's an opening inline token e.g. strong, em, etc.
+ # Then we move into a style context i.e. push to stack.
+ context.enter_style(f"markdown.{tag}")
+ elif exiting:
+ # If it's a closing inline style, then we pop the style
+ # off of the stack, to move out of the context of it...
+ context.leave_style()
+ else:
+ # If it's a self-closing inline style e.g. `code_inline`
+ context.enter_style(f"markdown.{tag}")
+ if token.content:
+ context.on_text(token.content, node_type)
+ context.leave_style()
+ else:
+ # Map the markdown tag -> MarkdownElement renderable
+ element_class = self.elements.get(token.type) or UnknownElement
+ element = element_class.create(self, token)
+
+ if entering or self_closing:
+ context.stack.push(element)
+ element.on_enter(context)
+
+ if exiting: # CLOSING tag
+ element = context.stack.pop()
+
+ should_render = not context.stack or (
+ context.stack
+ and context.stack.top.on_child_close(context, element)
+ )
+
+ if should_render:
+ if new_line:
+ yield _new_line_segment
+
+ yield from console.render(element, context.options)
+ elif self_closing: # SELF-CLOSING tags (e.g. text, code, image)
+ context.stack.pop()
+ text = token.content
+ if text is not None:
+ element.on_text(context, text)
+
+ should_render = (
+ not context.stack
+ or context.stack
+ and context.stack.top.on_child_close(context, element)
+ )
+ if should_render:
+ if new_line and node_type != "inline":
+ yield _new_line_segment
+ yield from console.render(element, context.options)
+
+ if exiting or self_closing:
+ element.on_leave(context)
+ new_line = element.new_line
+
+
+if __name__ == "__main__": # pragma: no cover
+ import argparse
+ import sys
+
+ parser = argparse.ArgumentParser(
+ description="Render Markdown to the console with Rich"
+ )
+ parser.add_argument(
+ "path",
+ metavar="PATH",
+ help="path to markdown file, or - for stdin",
+ )
+ parser.add_argument(
+ "-c",
+ "--force-color",
+ dest="force_color",
+ action="store_true",
+ default=None,
+ help="force color for non-terminals",
+ )
+ parser.add_argument(
+ "-t",
+ "--code-theme",
+ dest="code_theme",
+ default="monokai",
+ help="pygments code theme",
+ )
+ parser.add_argument(
+ "-i",
+ "--inline-code-lexer",
+ dest="inline_code_lexer",
+ default=None,
+ help="inline_code_lexer",
+ )
+ parser.add_argument(
+ "-y",
+ "--hyperlinks",
+ dest="hyperlinks",
+ action="store_true",
+ help="enable hyperlinks",
+ )
+ parser.add_argument(
+ "-w",
+ "--width",
+ type=int,
+ dest="width",
+ default=None,
+ help="width of output (default will auto-detect)",
+ )
+ parser.add_argument(
+ "-j",
+ "--justify",
+ dest="justify",
+ action="store_true",
+ help="enable full text justify",
+ )
+ parser.add_argument(
+ "-p",
+ "--page",
+ dest="page",
+ action="store_true",
+ help="use pager to scroll output",
+ )
+ args = parser.parse_args()
+
+ from rich.console import Console
+
+ if args.path == "-":
+ markdown_body = sys.stdin.read()
+ else:
+ with open(args.path, encoding="utf-8") as markdown_file:
+ markdown_body = markdown_file.read()
+
+ markdown = Markdown(
+ markdown_body,
+ justify="full" if args.justify else "left",
+ code_theme=args.code_theme,
+ hyperlinks=args.hyperlinks,
+ inline_code_lexer=args.inline_code_lexer,
+ )
+ if args.page:
+ import io
+ import pydoc
+
+ fileio = io.StringIO()
+ console = Console(
+ file=fileio, force_terminal=args.force_color, width=args.width
+ )
+ console.print(markdown)
+ pydoc.pager(fileio.getvalue())
+
+ else:
+ console = Console(
+ force_terminal=args.force_color, width=args.width, record=True
+ )
+ console.print(markdown)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/markup.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/markup.py
new file mode 100644
index 0000000000000000000000000000000000000000..bd9c05a712a8077098507d6870ddc0b0bf3028b0
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/markup.py
@@ -0,0 +1,251 @@
+import re
+from ast import literal_eval
+from operator import attrgetter
+from typing import Callable, Iterable, List, Match, NamedTuple, Optional, Tuple, Union
+
+from ._emoji_replace import _emoji_replace
+from .emoji import EmojiVariant
+from .errors import MarkupError
+from .style import Style
+from .text import Span, Text
+
+RE_TAGS = re.compile(
+ r"""((\\*)\[([a-z#/@][^[]*?)])""",
+ re.VERBOSE,
+)
+
+RE_HANDLER = re.compile(r"^([\w.]*?)(\(.*?\))?$")
+
+
+class Tag(NamedTuple):
+ """A tag in console markup."""
+
+ name: str
+ """The tag name. e.g. 'bold'."""
+ parameters: Optional[str]
+ """Any additional parameters after the name."""
+
+ def __str__(self) -> str:
+ return (
+ self.name if self.parameters is None else f"{self.name} {self.parameters}"
+ )
+
+ @property
+ def markup(self) -> str:
+ """Get the string representation of this tag."""
+ return (
+ f"[{self.name}]"
+ if self.parameters is None
+ else f"[{self.name}={self.parameters}]"
+ )
+
+
+_ReStringMatch = Match[str] # regex match object
+_ReSubCallable = Callable[[_ReStringMatch], str] # Callable invoked by re.sub
+_EscapeSubMethod = Callable[[_ReSubCallable, str], str] # Sub method of a compiled re
+
+
+def escape(
+ markup: str,
+ _escape: _EscapeSubMethod = re.compile(r"(\\*)(\[[a-z#/@][^[]*?])").sub,
+) -> str:
+ """Escapes text so that it won't be interpreted as markup.
+
+ Args:
+ markup (str): Content to be inserted in to markup.
+
+ Returns:
+ str: Markup with square brackets escaped.
+ """
+
+ def escape_backslashes(match: Match[str]) -> str:
+ """Called by re.sub replace matches."""
+ backslashes, text = match.groups()
+ return f"{backslashes}{backslashes}\\{text}"
+
+ markup = _escape(escape_backslashes, markup)
+ if markup.endswith("\\") and not markup.endswith("\\\\"):
+ return markup + "\\"
+
+ return markup
+
+
+def _parse(markup: str) -> Iterable[Tuple[int, Optional[str], Optional[Tag]]]:
+ """Parse markup in to an iterable of tuples of (position, text, tag).
+
+ Args:
+ markup (str): A string containing console markup
+
+ """
+ position = 0
+ _divmod = divmod
+ _Tag = Tag
+ for match in RE_TAGS.finditer(markup):
+ full_text, escapes, tag_text = match.groups()
+ start, end = match.span()
+ if start > position:
+ yield start, markup[position:start], None
+ if escapes:
+ backslashes, escaped = _divmod(len(escapes), 2)
+ if backslashes:
+ # Literal backslashes
+ yield start, "\\" * backslashes, None
+ start += backslashes * 2
+ if escaped:
+ # Escape of tag
+ yield start, full_text[len(escapes) :], None
+ position = end
+ continue
+ text, equals, parameters = tag_text.partition("=")
+ yield start, None, _Tag(text, parameters if equals else None)
+ position = end
+ if position < len(markup):
+ yield position, markup[position:], None
+
+
+def render(
+ markup: str,
+ style: Union[str, Style] = "",
+ emoji: bool = True,
+ emoji_variant: Optional[EmojiVariant] = None,
+) -> Text:
+ """Render console markup in to a Text instance.
+
+ Args:
+ markup (str): A string containing console markup.
+ style: (Union[str, Style]): The style to use.
+ emoji (bool, optional): Also render emoji code. Defaults to True.
+ emoji_variant (str, optional): Optional emoji variant, either "text" or "emoji". Defaults to None.
+
+
+ Raises:
+ MarkupError: If there is a syntax error in the markup.
+
+ Returns:
+ Text: A test instance.
+ """
+ emoji_replace = _emoji_replace
+ if "[" not in markup:
+ return Text(
+ emoji_replace(markup, default_variant=emoji_variant) if emoji else markup,
+ style=style,
+ )
+ text = Text(style=style)
+ append = text.append
+ normalize = Style.normalize
+
+ style_stack: List[Tuple[int, Tag]] = []
+ pop = style_stack.pop
+
+ spans: List[Span] = []
+ append_span = spans.append
+
+ _Span = Span
+ _Tag = Tag
+
+ def pop_style(style_name: str) -> Tuple[int, Tag]:
+ """Pop tag matching given style name."""
+ for index, (_, tag) in enumerate(reversed(style_stack), 1):
+ if tag.name == style_name:
+ return pop(-index)
+ raise KeyError(style_name)
+
+ for position, plain_text, tag in _parse(markup):
+ if plain_text is not None:
+ # Handle open brace escapes, where the brace is not part of a tag.
+ plain_text = plain_text.replace("\\[", "[")
+ append(emoji_replace(plain_text) if emoji else plain_text)
+ elif tag is not None:
+ if tag.name.startswith("/"): # Closing tag
+ style_name = tag.name[1:].strip()
+
+ if style_name: # explicit close
+ style_name = normalize(style_name)
+ try:
+ start, open_tag = pop_style(style_name)
+ except KeyError:
+ raise MarkupError(
+ f"closing tag '{tag.markup}' at position {position} doesn't match any open tag"
+ ) from None
+ else: # implicit close
+ try:
+ start, open_tag = pop()
+ except IndexError:
+ raise MarkupError(
+ f"closing tag '[/]' at position {position} has nothing to close"
+ ) from None
+
+ if open_tag.name.startswith("@"):
+ if open_tag.parameters:
+ handler_name = ""
+ parameters = open_tag.parameters.strip()
+ handler_match = RE_HANDLER.match(parameters)
+ if handler_match is not None:
+ handler_name, match_parameters = handler_match.groups()
+ parameters = (
+ "()" if match_parameters is None else match_parameters
+ )
+
+ try:
+ meta_params = literal_eval(parameters)
+ except SyntaxError as error:
+ raise MarkupError(
+ f"error parsing {parameters!r} in {open_tag.parameters!r}; {error.msg}"
+ )
+ except Exception as error:
+ raise MarkupError(
+ f"error parsing {open_tag.parameters!r}; {error}"
+ ) from None
+
+ if handler_name:
+ meta_params = (
+ handler_name,
+ meta_params
+ if isinstance(meta_params, tuple)
+ else (meta_params,),
+ )
+
+ else:
+ meta_params = ()
+
+ append_span(
+ _Span(
+ start, len(text), Style(meta={open_tag.name: meta_params})
+ )
+ )
+ else:
+ append_span(_Span(start, len(text), str(open_tag)))
+
+ else: # Opening tag
+ normalized_tag = _Tag(normalize(tag.name), tag.parameters)
+ style_stack.append((len(text), normalized_tag))
+
+ text_length = len(text)
+ while style_stack:
+ start, tag = style_stack.pop()
+ style = str(tag)
+ if style:
+ append_span(_Span(start, text_length, style))
+
+ text.spans = sorted(spans[::-1], key=attrgetter("start"))
+ return text
+
+
+if __name__ == "__main__": # pragma: no cover
+ MARKUP = [
+ "[red]Hello World[/red]",
+ "[magenta]Hello [b]World[/b]",
+ "[bold]Bold[italic] bold and italic [/bold]italic[/italic]",
+ "Click [link=https://www.willmcgugan.com]here[/link] to visit my Blog",
+ ":warning-emoji: [bold red blink] DANGER![/]",
+ ]
+
+ from rich import print
+ from rich.table import Table
+
+ grid = Table("Markup", "Result", padding=(0, 1))
+
+ for markup in MARKUP:
+ grid.add_row(Text(markup), markup)
+
+ print(grid)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/measure.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/measure.py
new file mode 100644
index 0000000000000000000000000000000000000000..a508ffa80bd715b47c190ed9d747dbc388fa5b19
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/measure.py
@@ -0,0 +1,151 @@
+from operator import itemgetter
+from typing import TYPE_CHECKING, Callable, NamedTuple, Optional, Sequence
+
+from . import errors
+from .protocol import is_renderable, rich_cast
+
+if TYPE_CHECKING:
+ from .console import Console, ConsoleOptions, RenderableType
+
+
+class Measurement(NamedTuple):
+ """Stores the minimum and maximum widths (in characters) required to render an object."""
+
+ minimum: int
+ """Minimum number of cells required to render."""
+ maximum: int
+ """Maximum number of cells required to render."""
+
+ @property
+ def span(self) -> int:
+ """Get difference between maximum and minimum."""
+ return self.maximum - self.minimum
+
+ def normalize(self) -> "Measurement":
+ """Get measurement that ensures that minimum <= maximum and minimum >= 0
+
+ Returns:
+ Measurement: A normalized measurement.
+ """
+ minimum, maximum = self
+ minimum = min(max(0, minimum), maximum)
+ return Measurement(max(0, minimum), max(0, max(minimum, maximum)))
+
+ def with_maximum(self, width: int) -> "Measurement":
+ """Get a RenderableWith where the widths are <= width.
+
+ Args:
+ width (int): Maximum desired width.
+
+ Returns:
+ Measurement: New Measurement object.
+ """
+ minimum, maximum = self
+ return Measurement(min(minimum, width), min(maximum, width))
+
+ def with_minimum(self, width: int) -> "Measurement":
+ """Get a RenderableWith where the widths are >= width.
+
+ Args:
+ width (int): Minimum desired width.
+
+ Returns:
+ Measurement: New Measurement object.
+ """
+ minimum, maximum = self
+ width = max(0, width)
+ return Measurement(max(minimum, width), max(maximum, width))
+
+ def clamp(
+ self, min_width: Optional[int] = None, max_width: Optional[int] = None
+ ) -> "Measurement":
+ """Clamp a measurement within the specified range.
+
+ Args:
+ min_width (int): Minimum desired width, or ``None`` for no minimum. Defaults to None.
+ max_width (int): Maximum desired width, or ``None`` for no maximum. Defaults to None.
+
+ Returns:
+ Measurement: New Measurement object.
+ """
+ measurement = self
+ if min_width is not None:
+ measurement = measurement.with_minimum(min_width)
+ if max_width is not None:
+ measurement = measurement.with_maximum(max_width)
+ return measurement
+
+ @classmethod
+ def get(
+ cls, console: "Console", options: "ConsoleOptions", renderable: "RenderableType"
+ ) -> "Measurement":
+ """Get a measurement for a renderable.
+
+ Args:
+ console (~rich.console.Console): Console instance.
+ options (~rich.console.ConsoleOptions): Console options.
+ renderable (RenderableType): An object that may be rendered with Rich.
+
+ Raises:
+ errors.NotRenderableError: If the object is not renderable.
+
+ Returns:
+ Measurement: Measurement object containing range of character widths required to render the object.
+ """
+ _max_width = options.max_width
+ if _max_width < 1:
+ return Measurement(0, 0)
+ if isinstance(renderable, str):
+ renderable = console.render_str(
+ renderable, markup=options.markup, highlight=False
+ )
+ renderable = rich_cast(renderable)
+ if is_renderable(renderable):
+ get_console_width: Optional[
+ Callable[["Console", "ConsoleOptions"], "Measurement"]
+ ] = getattr(renderable, "__rich_measure__", None)
+ if get_console_width is not None:
+ render_width = (
+ get_console_width(console, options)
+ .normalize()
+ .with_maximum(_max_width)
+ )
+ if render_width.maximum < 1:
+ return Measurement(0, 0)
+ return render_width.normalize()
+ else:
+ return Measurement(0, _max_width)
+ else:
+ raise errors.NotRenderableError(
+ f"Unable to get render width for {renderable!r}; "
+ "a str, Segment, or object with __rich_console__ method is required"
+ )
+
+
+def measure_renderables(
+ console: "Console",
+ options: "ConsoleOptions",
+ renderables: Sequence["RenderableType"],
+) -> "Measurement":
+ """Get a measurement that would fit a number of renderables.
+
+ Args:
+ console (~rich.console.Console): Console instance.
+ options (~rich.console.ConsoleOptions): Console options.
+ renderables (Iterable[RenderableType]): One or more renderable objects.
+
+ Returns:
+ Measurement: Measurement object containing range of character widths required to
+ contain all given renderables.
+ """
+ if not renderables:
+ return Measurement(0, 0)
+ get_measurement = Measurement.get
+ measurements = [
+ get_measurement(console, options, renderable) for renderable in renderables
+ ]
+ measured_width = Measurement(
+ max(measurements, key=itemgetter(0)).minimum,
+ max(measurements, key=itemgetter(1)).maximum,
+ )
+ return measured_width
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/padding.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/padding.py
new file mode 100644
index 0000000000000000000000000000000000000000..d1aa01bee541c0b7899f137fe1c355ac19109525
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/padding.py
@@ -0,0 +1,141 @@
+from typing import TYPE_CHECKING, List, Optional, Tuple, Union
+
+if TYPE_CHECKING:
+ from .console import (
+ Console,
+ ConsoleOptions,
+ RenderableType,
+ RenderResult,
+ )
+
+from .jupyter import JupyterMixin
+from .measure import Measurement
+from .segment import Segment
+from .style import Style
+
+PaddingDimensions = Union[int, Tuple[int], Tuple[int, int], Tuple[int, int, int, int]]
+
+
+class Padding(JupyterMixin):
+ """Draw space around content.
+
+ Example:
+ >>> print(Padding("Hello", (2, 4), style="on blue"))
+
+ Args:
+ renderable (RenderableType): String or other renderable.
+ pad (Union[int, Tuple[int]]): Padding for top, right, bottom, and left borders.
+ May be specified with 1, 2, or 4 integers (CSS style).
+ style (Union[str, Style], optional): Style for padding characters. Defaults to "none".
+ expand (bool, optional): Expand padding to fit available width. Defaults to True.
+ """
+
+ def __init__(
+ self,
+ renderable: "RenderableType",
+ pad: "PaddingDimensions" = (0, 0, 0, 0),
+ *,
+ style: Union[str, Style] = "none",
+ expand: bool = True,
+ ):
+ self.renderable = renderable
+ self.top, self.right, self.bottom, self.left = self.unpack(pad)
+ self.style = style
+ self.expand = expand
+
+ @classmethod
+ def indent(cls, renderable: "RenderableType", level: int) -> "Padding":
+ """Make padding instance to render an indent.
+
+ Args:
+ renderable (RenderableType): String or other renderable.
+ level (int): Number of characters to indent.
+
+ Returns:
+ Padding: A Padding instance.
+ """
+
+ return Padding(renderable, pad=(0, 0, 0, level), expand=False)
+
+ @staticmethod
+ def unpack(pad: "PaddingDimensions") -> Tuple[int, int, int, int]:
+ """Unpack padding specified in CSS style."""
+ if isinstance(pad, int):
+ return (pad, pad, pad, pad)
+ if len(pad) == 1:
+ _pad = pad[0]
+ return (_pad, _pad, _pad, _pad)
+ if len(pad) == 2:
+ pad_top, pad_right = pad
+ return (pad_top, pad_right, pad_top, pad_right)
+ if len(pad) == 4:
+ top, right, bottom, left = pad
+ return (top, right, bottom, left)
+ raise ValueError(f"1, 2 or 4 integers required for padding; {len(pad)} given")
+
+ def __repr__(self) -> str:
+ return f"Padding({self.renderable!r}, ({self.top},{self.right},{self.bottom},{self.left}))"
+
+ def __rich_console__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "RenderResult":
+ style = console.get_style(self.style)
+ if self.expand:
+ width = options.max_width
+ else:
+ width = min(
+ Measurement.get(console, options, self.renderable).maximum
+ + self.left
+ + self.right,
+ options.max_width,
+ )
+ render_options = options.update_width(width - self.left - self.right)
+ if render_options.height is not None:
+ render_options = render_options.update_height(
+ height=render_options.height - self.top - self.bottom
+ )
+ lines = console.render_lines(
+ self.renderable, render_options, style=style, pad=True
+ )
+ _Segment = Segment
+
+ left = _Segment(" " * self.left, style) if self.left else None
+ right = (
+ [_Segment(f'{" " * self.right}', style), _Segment.line()]
+ if self.right
+ else [_Segment.line()]
+ )
+ blank_line: Optional[List[Segment]] = None
+ if self.top:
+ blank_line = [_Segment(f'{" " * width}\n', style)]
+ yield from blank_line * self.top
+ if left:
+ for line in lines:
+ yield left
+ yield from line
+ yield from right
+ else:
+ for line in lines:
+ yield from line
+ yield from right
+ if self.bottom:
+ blank_line = blank_line or [_Segment(f'{" " * width}\n', style)]
+ yield from blank_line * self.bottom
+
+ def __rich_measure__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "Measurement":
+ max_width = options.max_width
+ extra_width = self.left + self.right
+ if max_width - extra_width < 1:
+ return Measurement(max_width, max_width)
+ measure_min, measure_max = Measurement.get(console, options, self.renderable)
+ measurement = Measurement(measure_min + extra_width, measure_max + extra_width)
+ measurement = measurement.with_maximum(max_width)
+ return measurement
+
+
+if __name__ == "__main__": # pragma: no cover
+ from rich import print
+
+ print(Padding("Hello, World", (2, 4), style="on blue"))
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/pager.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/pager.py
new file mode 100644
index 0000000000000000000000000000000000000000..a3f7aa62af1ee2690e1e17ee41f3c368953625b8
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/pager.py
@@ -0,0 +1,34 @@
+from abc import ABC, abstractmethod
+from typing import Any
+
+
+class Pager(ABC):
+ """Base class for a pager."""
+
+ @abstractmethod
+ def show(self, content: str) -> None:
+ """Show content in pager.
+
+ Args:
+ content (str): Content to be displayed.
+ """
+
+
+class SystemPager(Pager):
+ """Uses the pager installed on the system."""
+
+ def _pager(self, content: str) -> Any: # pragma: no cover
+ return __import__("pydoc").pager(content)
+
+ def show(self, content: str) -> None:
+ """Use the same pager used by pydoc."""
+ self._pager(content)
+
+
+if __name__ == "__main__": # pragma: no cover
+ from .__main__ import make_test_card
+ from .console import Console
+
+ console = Console()
+ with console.pager(styles=True):
+ console.print(make_test_card())
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/palette.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/palette.py
new file mode 100644
index 0000000000000000000000000000000000000000..f29587945cb2214ab6d92856dac6d11c320a8ca1
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/palette.py
@@ -0,0 +1,100 @@
+from math import sqrt
+from functools import lru_cache
+from typing import Sequence, Tuple, TYPE_CHECKING
+
+from .color_triplet import ColorTriplet
+
+if TYPE_CHECKING:
+ from rich.table import Table
+
+
+class Palette:
+ """A palette of available colors."""
+
+ def __init__(self, colors: Sequence[Tuple[int, int, int]]):
+ self._colors = colors
+
+ def __getitem__(self, number: int) -> ColorTriplet:
+ return ColorTriplet(*self._colors[number])
+
+ def __rich__(self) -> "Table":
+ from rich.color import Color
+ from rich.style import Style
+ from rich.text import Text
+ from rich.table import Table
+
+ table = Table(
+ "index",
+ "RGB",
+ "Color",
+ title="Palette",
+ caption=f"{len(self._colors)} colors",
+ highlight=True,
+ caption_justify="right",
+ )
+ for index, color in enumerate(self._colors):
+ table.add_row(
+ str(index),
+ repr(color),
+ Text(" " * 16, style=Style(bgcolor=Color.from_rgb(*color))),
+ )
+ return table
+
+ # This is somewhat inefficient and needs caching
+ @lru_cache(maxsize=1024)
+ def match(self, color: Tuple[int, int, int]) -> int:
+ """Find a color from a palette that most closely matches a given color.
+
+ Args:
+ color (Tuple[int, int, int]): RGB components in range 0 > 255.
+
+ Returns:
+ int: Index of closes matching color.
+ """
+ red1, green1, blue1 = color
+ _sqrt = sqrt
+ get_color = self._colors.__getitem__
+
+ def get_color_distance(index: int) -> float:
+ """Get the distance to a color."""
+ red2, green2, blue2 = get_color(index)
+ red_mean = (red1 + red2) // 2
+ red = red1 - red2
+ green = green1 - green2
+ blue = blue1 - blue2
+ return _sqrt(
+ (((512 + red_mean) * red * red) >> 8)
+ + 4 * green * green
+ + (((767 - red_mean) * blue * blue) >> 8)
+ )
+
+ min_index = min(range(len(self._colors)), key=get_color_distance)
+ return min_index
+
+
+if __name__ == "__main__": # pragma: no cover
+ import colorsys
+ from typing import Iterable
+ from rich.color import Color
+ from rich.console import Console, ConsoleOptions
+ from rich.segment import Segment
+ from rich.style import Style
+
+ class ColorBox:
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> Iterable[Segment]:
+ height = console.size.height - 3
+ for y in range(0, height):
+ for x in range(options.max_width):
+ h = x / options.max_width
+ l = y / (height + 1)
+ r1, g1, b1 = colorsys.hls_to_rgb(h, l, 1.0)
+ r2, g2, b2 = colorsys.hls_to_rgb(h, l + (1 / height / 2), 1.0)
+ bgcolor = Color.from_rgb(r1 * 255, g1 * 255, b1 * 255)
+ color = Color.from_rgb(r2 * 255, g2 * 255, b2 * 255)
+ yield Segment("▄", Style(color=color, bgcolor=bgcolor))
+ yield Segment.line()
+
+ console = Console()
+ console.print(ColorBox())
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/pretty.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/pretty.py
new file mode 100644
index 0000000000000000000000000000000000000000..00abecab356bcfcec4fc979c71da90a7672843db
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/pretty.py
@@ -0,0 +1,1016 @@
+import builtins
+import collections
+import dataclasses
+import inspect
+import os
+import reprlib
+import sys
+from array import array
+from collections import Counter, UserDict, UserList, defaultdict, deque
+from dataclasses import dataclass, fields, is_dataclass
+from inspect import isclass
+from itertools import islice
+from types import MappingProxyType
+from typing import (
+ TYPE_CHECKING,
+ Any,
+ Callable,
+ DefaultDict,
+ Deque,
+ Dict,
+ Iterable,
+ List,
+ Optional,
+ Sequence,
+ Set,
+ Tuple,
+ Union,
+)
+
+from rich.repr import RichReprResult
+
+try:
+ import attr as _attr_module
+
+ _has_attrs = hasattr(_attr_module, "ib")
+except ImportError: # pragma: no cover
+ _has_attrs = False
+
+from . import get_console
+from ._loop import loop_last
+from ._pick import pick_bool
+from .abc import RichRenderable
+from .cells import cell_len
+from .highlighter import ReprHighlighter
+from .jupyter import JupyterMixin, JupyterRenderable
+from .measure import Measurement
+from .text import Text
+
+if TYPE_CHECKING:
+ from .console import (
+ Console,
+ ConsoleOptions,
+ HighlighterType,
+ JustifyMethod,
+ OverflowMethod,
+ RenderResult,
+ )
+
+
+def _is_attr_object(obj: Any) -> bool:
+ """Check if an object was created with attrs module."""
+ return _has_attrs and _attr_module.has(type(obj))
+
+
+def _get_attr_fields(obj: Any) -> Sequence["_attr_module.Attribute[Any]"]:
+ """Get fields for an attrs object."""
+ return _attr_module.fields(type(obj)) if _has_attrs else []
+
+
+def _is_dataclass_repr(obj: object) -> bool:
+ """Check if an instance of a dataclass contains the default repr.
+
+ Args:
+ obj (object): A dataclass instance.
+
+ Returns:
+ bool: True if the default repr is used, False if there is a custom repr.
+ """
+ # Digging in to a lot of internals here
+ # Catching all exceptions in case something is missing on a non CPython implementation
+ try:
+ return obj.__repr__.__code__.co_filename in (
+ dataclasses.__file__,
+ reprlib.__file__,
+ )
+ except Exception: # pragma: no coverage
+ return False
+
+
+_dummy_namedtuple = collections.namedtuple("_dummy_namedtuple", [])
+
+
+def _has_default_namedtuple_repr(obj: object) -> bool:
+ """Check if an instance of namedtuple contains the default repr
+
+ Args:
+ obj (object): A namedtuple
+
+ Returns:
+ bool: True if the default repr is used, False if there's a custom repr.
+ """
+ obj_file = None
+ try:
+ obj_file = inspect.getfile(obj.__repr__)
+ except (OSError, TypeError):
+ # OSError handles case where object is defined in __main__ scope, e.g. REPL - no filename available.
+ # TypeError trapped defensively, in case of object without filename slips through.
+ pass
+ default_repr_file = inspect.getfile(_dummy_namedtuple.__repr__)
+ return obj_file == default_repr_file
+
+
+def _ipy_display_hook(
+ value: Any,
+ console: Optional["Console"] = None,
+ overflow: "OverflowMethod" = "ignore",
+ crop: bool = False,
+ indent_guides: bool = False,
+ max_length: Optional[int] = None,
+ max_string: Optional[int] = None,
+ max_depth: Optional[int] = None,
+ expand_all: bool = False,
+) -> Union[str, None]:
+ # needed here to prevent circular import:
+ from .console import ConsoleRenderable
+
+ # always skip rich generated jupyter renderables or None values
+ if _safe_isinstance(value, JupyterRenderable) or value is None:
+ return None
+
+ console = console or get_console()
+
+ with console.capture() as capture:
+ # certain renderables should start on a new line
+ if _safe_isinstance(value, ConsoleRenderable):
+ console.line()
+ console.print(
+ (
+ value
+ if _safe_isinstance(value, RichRenderable)
+ else Pretty(
+ value,
+ overflow=overflow,
+ indent_guides=indent_guides,
+ max_length=max_length,
+ max_string=max_string,
+ max_depth=max_depth,
+ expand_all=expand_all,
+ margin=12,
+ )
+ ),
+ crop=crop,
+ new_line_start=True,
+ end="",
+ )
+ # strip trailing newline, not usually part of a text repr
+ # I'm not sure if this should be prevented at a lower level
+ return capture.get().rstrip("\n")
+
+
+def _safe_isinstance(
+ obj: object, class_or_tuple: Union[type, Tuple[type, ...]]
+) -> bool:
+ """isinstance can fail in rare cases, for example types with no __class__"""
+ try:
+ return isinstance(obj, class_or_tuple)
+ except Exception:
+ return False
+
+
+def install(
+ console: Optional["Console"] = None,
+ overflow: "OverflowMethod" = "ignore",
+ crop: bool = False,
+ indent_guides: bool = False,
+ max_length: Optional[int] = None,
+ max_string: Optional[int] = None,
+ max_depth: Optional[int] = None,
+ expand_all: bool = False,
+) -> None:
+ """Install automatic pretty printing in the Python REPL.
+
+ Args:
+ console (Console, optional): Console instance or ``None`` to use global console. Defaults to None.
+ overflow (Optional[OverflowMethod], optional): Overflow method. Defaults to "ignore".
+ crop (Optional[bool], optional): Enable cropping of long lines. Defaults to False.
+ indent_guides (bool, optional): Enable indentation guides. Defaults to False.
+ max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
+ Defaults to None.
+ max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to None.
+ max_depth (int, optional): Maximum depth of nested data structures, or None for no maximum. Defaults to None.
+ expand_all (bool, optional): Expand all containers. Defaults to False.
+ max_frames (int): Maximum number of frames to show in a traceback, 0 for no maximum. Defaults to 100.
+ """
+ from rich import get_console
+
+ console = console or get_console()
+ assert console is not None
+
+ def display_hook(value: Any) -> None:
+ """Replacement sys.displayhook which prettifies objects with Rich."""
+ if value is not None:
+ assert console is not None
+ builtins._ = None # type: ignore[attr-defined]
+ console.print(
+ (
+ value
+ if _safe_isinstance(value, RichRenderable)
+ else Pretty(
+ value,
+ overflow=overflow,
+ indent_guides=indent_guides,
+ max_length=max_length,
+ max_string=max_string,
+ max_depth=max_depth,
+ expand_all=expand_all,
+ )
+ ),
+ crop=crop,
+ )
+ builtins._ = value # type: ignore[attr-defined]
+
+ try:
+ ip = get_ipython() # type: ignore[name-defined]
+ except NameError:
+ sys.displayhook = display_hook
+ else:
+ from IPython.core.formatters import BaseFormatter
+
+ class RichFormatter(BaseFormatter): # type: ignore[misc]
+ pprint: bool = True
+
+ def __call__(self, value: Any) -> Any:
+ if self.pprint:
+ return _ipy_display_hook(
+ value,
+ console=console,
+ overflow=overflow,
+ indent_guides=indent_guides,
+ max_length=max_length,
+ max_string=max_string,
+ max_depth=max_depth,
+ expand_all=expand_all,
+ )
+ else:
+ return repr(value)
+
+ # replace plain text formatter with rich formatter
+ rich_formatter = RichFormatter()
+ ip.display_formatter.formatters["text/plain"] = rich_formatter
+
+
+class Pretty(JupyterMixin):
+ """A rich renderable that pretty prints an object.
+
+ Args:
+ _object (Any): An object to pretty print.
+ highlighter (HighlighterType, optional): Highlighter object to apply to result, or None for ReprHighlighter. Defaults to None.
+ indent_size (int, optional): Number of spaces in indent. Defaults to 4.
+ justify (JustifyMethod, optional): Justify method, or None for default. Defaults to None.
+ overflow (OverflowMethod, optional): Overflow method, or None for default. Defaults to None.
+ no_wrap (Optional[bool], optional): Disable word wrapping. Defaults to False.
+ indent_guides (bool, optional): Enable indentation guides. Defaults to False.
+ max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
+ Defaults to None.
+ max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to None.
+ max_depth (int, optional): Maximum depth of nested data structures, or None for no maximum. Defaults to None.
+ expand_all (bool, optional): Expand all containers. Defaults to False.
+ margin (int, optional): Subtrace a margin from width to force containers to expand earlier. Defaults to 0.
+ insert_line (bool, optional): Insert a new line if the output has multiple new lines. Defaults to False.
+ """
+
+ def __init__(
+ self,
+ _object: Any,
+ highlighter: Optional["HighlighterType"] = None,
+ *,
+ indent_size: int = 4,
+ justify: Optional["JustifyMethod"] = None,
+ overflow: Optional["OverflowMethod"] = None,
+ no_wrap: Optional[bool] = False,
+ indent_guides: bool = False,
+ max_length: Optional[int] = None,
+ max_string: Optional[int] = None,
+ max_depth: Optional[int] = None,
+ expand_all: bool = False,
+ margin: int = 0,
+ insert_line: bool = False,
+ ) -> None:
+ self._object = _object
+ self.highlighter = highlighter or ReprHighlighter()
+ self.indent_size = indent_size
+ self.justify: Optional["JustifyMethod"] = justify
+ self.overflow: Optional["OverflowMethod"] = overflow
+ self.no_wrap = no_wrap
+ self.indent_guides = indent_guides
+ self.max_length = max_length
+ self.max_string = max_string
+ self.max_depth = max_depth
+ self.expand_all = expand_all
+ self.margin = margin
+ self.insert_line = insert_line
+
+ def __rich_console__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "RenderResult":
+ pretty_str = pretty_repr(
+ self._object,
+ max_width=options.max_width - self.margin,
+ indent_size=self.indent_size,
+ max_length=self.max_length,
+ max_string=self.max_string,
+ max_depth=self.max_depth,
+ expand_all=self.expand_all,
+ )
+ pretty_text = Text.from_ansi(
+ pretty_str,
+ justify=self.justify or options.justify,
+ overflow=self.overflow or options.overflow,
+ no_wrap=pick_bool(self.no_wrap, options.no_wrap),
+ style="pretty",
+ )
+ pretty_text = (
+ self.highlighter(pretty_text)
+ if pretty_text
+ else Text(
+ f"{type(self._object)}.__repr__ returned empty string",
+ style="dim italic",
+ )
+ )
+ if self.indent_guides and not options.ascii_only:
+ pretty_text = pretty_text.with_indent_guides(
+ self.indent_size, style="repr.indent"
+ )
+ if self.insert_line and "\n" in pretty_text:
+ yield ""
+ yield pretty_text
+
+ def __rich_measure__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "Measurement":
+ pretty_str = pretty_repr(
+ self._object,
+ max_width=options.max_width,
+ indent_size=self.indent_size,
+ max_length=self.max_length,
+ max_string=self.max_string,
+ max_depth=self.max_depth,
+ expand_all=self.expand_all,
+ )
+ text_width = (
+ max(cell_len(line) for line in pretty_str.splitlines()) if pretty_str else 0
+ )
+ return Measurement(text_width, text_width)
+
+
+def _get_braces_for_defaultdict(_object: DefaultDict[Any, Any]) -> Tuple[str, str, str]:
+ return (
+ f"defaultdict({_object.default_factory!r}, {{",
+ "})",
+ f"defaultdict({_object.default_factory!r}, {{}})",
+ )
+
+
+def _get_braces_for_deque(_object: Deque[Any]) -> Tuple[str, str, str]:
+ if _object.maxlen is None:
+ return ("deque([", "])", "deque()")
+ return (
+ "deque([",
+ f"], maxlen={_object.maxlen})",
+ f"deque(maxlen={_object.maxlen})",
+ )
+
+
+def _get_braces_for_array(_object: "array[Any]") -> Tuple[str, str, str]:
+ return (f"array({_object.typecode!r}, [", "])", f"array({_object.typecode!r})")
+
+
+_BRACES: Dict[type, Callable[[Any], Tuple[str, str, str]]] = {
+ os._Environ: lambda _object: ("environ({", "})", "environ({})"),
+ array: _get_braces_for_array,
+ defaultdict: _get_braces_for_defaultdict,
+ Counter: lambda _object: ("Counter({", "})", "Counter()"),
+ deque: _get_braces_for_deque,
+ dict: lambda _object: ("{", "}", "{}"),
+ UserDict: lambda _object: ("{", "}", "{}"),
+ frozenset: lambda _object: ("frozenset({", "})", "frozenset()"),
+ list: lambda _object: ("[", "]", "[]"),
+ UserList: lambda _object: ("[", "]", "[]"),
+ set: lambda _object: ("{", "}", "set()"),
+ tuple: lambda _object: ("(", ")", "()"),
+ MappingProxyType: lambda _object: ("mappingproxy({", "})", "mappingproxy({})"),
+}
+_CONTAINERS = tuple(_BRACES.keys())
+_MAPPING_CONTAINERS = (dict, os._Environ, MappingProxyType, UserDict)
+
+
+def is_expandable(obj: Any) -> bool:
+ """Check if an object may be expanded by pretty print."""
+ return (
+ _safe_isinstance(obj, _CONTAINERS)
+ or (is_dataclass(obj))
+ or (hasattr(obj, "__rich_repr__"))
+ or _is_attr_object(obj)
+ ) and not isclass(obj)
+
+
+@dataclass
+class Node:
+ """A node in a repr tree. May be atomic or a container."""
+
+ key_repr: str = ""
+ value_repr: str = ""
+ open_brace: str = ""
+ close_brace: str = ""
+ empty: str = ""
+ last: bool = False
+ is_tuple: bool = False
+ is_namedtuple: bool = False
+ children: Optional[List["Node"]] = None
+ key_separator: str = ": "
+ separator: str = ", "
+
+ def iter_tokens(self) -> Iterable[str]:
+ """Generate tokens for this node."""
+ if self.key_repr:
+ yield self.key_repr
+ yield self.key_separator
+ if self.value_repr:
+ yield self.value_repr
+ elif self.children is not None:
+ if self.children:
+ yield self.open_brace
+ if self.is_tuple and not self.is_namedtuple and len(self.children) == 1:
+ yield from self.children[0].iter_tokens()
+ yield ","
+ else:
+ for child in self.children:
+ yield from child.iter_tokens()
+ if not child.last:
+ yield self.separator
+ yield self.close_brace
+ else:
+ yield self.empty
+
+ def check_length(self, start_length: int, max_length: int) -> bool:
+ """Check the length fits within a limit.
+
+ Args:
+ start_length (int): Starting length of the line (indent, prefix, suffix).
+ max_length (int): Maximum length.
+
+ Returns:
+ bool: True if the node can be rendered within max length, otherwise False.
+ """
+ total_length = start_length
+ for token in self.iter_tokens():
+ total_length += cell_len(token)
+ if total_length > max_length:
+ return False
+ return True
+
+ def __str__(self) -> str:
+ repr_text = "".join(self.iter_tokens())
+ return repr_text
+
+ def render(
+ self, max_width: int = 80, indent_size: int = 4, expand_all: bool = False
+ ) -> str:
+ """Render the node to a pretty repr.
+
+ Args:
+ max_width (int, optional): Maximum width of the repr. Defaults to 80.
+ indent_size (int, optional): Size of indents. Defaults to 4.
+ expand_all (bool, optional): Expand all levels. Defaults to False.
+
+ Returns:
+ str: A repr string of the original object.
+ """
+ lines = [_Line(node=self, is_root=True)]
+ line_no = 0
+ while line_no < len(lines):
+ line = lines[line_no]
+ if line.expandable and not line.expanded:
+ if expand_all or not line.check_length(max_width):
+ lines[line_no : line_no + 1] = line.expand(indent_size)
+ line_no += 1
+
+ repr_str = "\n".join(str(line) for line in lines)
+ return repr_str
+
+
+@dataclass
+class _Line:
+ """A line in repr output."""
+
+ parent: Optional["_Line"] = None
+ is_root: bool = False
+ node: Optional[Node] = None
+ text: str = ""
+ suffix: str = ""
+ whitespace: str = ""
+ expanded: bool = False
+ last: bool = False
+
+ @property
+ def expandable(self) -> bool:
+ """Check if the line may be expanded."""
+ return bool(self.node is not None and self.node.children)
+
+ def check_length(self, max_length: int) -> bool:
+ """Check this line fits within a given number of cells."""
+ start_length = (
+ len(self.whitespace) + cell_len(self.text) + cell_len(self.suffix)
+ )
+ assert self.node is not None
+ return self.node.check_length(start_length, max_length)
+
+ def expand(self, indent_size: int) -> Iterable["_Line"]:
+ """Expand this line by adding children on their own line."""
+ node = self.node
+ assert node is not None
+ whitespace = self.whitespace
+ assert node.children
+ if node.key_repr:
+ new_line = yield _Line(
+ text=f"{node.key_repr}{node.key_separator}{node.open_brace}",
+ whitespace=whitespace,
+ )
+ else:
+ new_line = yield _Line(text=node.open_brace, whitespace=whitespace)
+ child_whitespace = self.whitespace + " " * indent_size
+ tuple_of_one = node.is_tuple and len(node.children) == 1
+ for last, child in loop_last(node.children):
+ separator = "," if tuple_of_one else node.separator
+ line = _Line(
+ parent=new_line,
+ node=child,
+ whitespace=child_whitespace,
+ suffix=separator,
+ last=last and not tuple_of_one,
+ )
+ yield line
+
+ yield _Line(
+ text=node.close_brace,
+ whitespace=whitespace,
+ suffix=self.suffix,
+ last=self.last,
+ )
+
+ def __str__(self) -> str:
+ if self.last:
+ return f"{self.whitespace}{self.text}{self.node or ''}"
+ else:
+ return (
+ f"{self.whitespace}{self.text}{self.node or ''}{self.suffix.rstrip()}"
+ )
+
+
+def _is_namedtuple(obj: Any) -> bool:
+ """Checks if an object is most likely a namedtuple. It is possible
+ to craft an object that passes this check and isn't a namedtuple, but
+ there is only a minuscule chance of this happening unintentionally.
+
+ Args:
+ obj (Any): The object to test
+
+ Returns:
+ bool: True if the object is a namedtuple. False otherwise.
+ """
+ try:
+ fields = getattr(obj, "_fields", None)
+ except Exception:
+ # Being very defensive - if we cannot get the attr then its not a namedtuple
+ return False
+ return isinstance(obj, tuple) and isinstance(fields, tuple)
+
+
+def traverse(
+ _object: Any,
+ max_length: Optional[int] = None,
+ max_string: Optional[int] = None,
+ max_depth: Optional[int] = None,
+) -> Node:
+ """Traverse object and generate a tree.
+
+ Args:
+ _object (Any): Object to be traversed.
+ max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
+ Defaults to None.
+ max_string (int, optional): Maximum length of string before truncating, or None to disable truncating.
+ Defaults to None.
+ max_depth (int, optional): Maximum depth of data structures, or None for no maximum.
+ Defaults to None.
+
+ Returns:
+ Node: The root of a tree structure which can be used to render a pretty repr.
+ """
+
+ def to_repr(obj: Any) -> str:
+ """Get repr string for an object, but catch errors."""
+ if (
+ max_string is not None
+ and _safe_isinstance(obj, (bytes, str))
+ and len(obj) > max_string
+ ):
+ truncated = len(obj) - max_string
+ obj_repr = f"{obj[:max_string]!r}+{truncated}"
+ else:
+ try:
+ obj_repr = repr(obj)
+ except Exception as error:
+ obj_repr = f""
+ return obj_repr
+
+ visited_ids: Set[int] = set()
+ push_visited = visited_ids.add
+ pop_visited = visited_ids.remove
+
+ def _traverse(obj: Any, root: bool = False, depth: int = 0) -> Node:
+ """Walk the object depth first."""
+
+ obj_id = id(obj)
+ if obj_id in visited_ids:
+ # Recursion detected
+ return Node(value_repr="...")
+
+ obj_type = type(obj)
+ children: List[Node]
+ reached_max_depth = max_depth is not None and depth >= max_depth
+
+ def iter_rich_args(rich_args: Any) -> Iterable[Union[Any, Tuple[str, Any]]]:
+ for arg in rich_args:
+ if _safe_isinstance(arg, tuple):
+ if len(arg) == 3:
+ key, child, default = arg
+ if default == child:
+ continue
+ yield key, child
+ elif len(arg) == 2:
+ key, child = arg
+ yield key, child
+ elif len(arg) == 1:
+ yield arg[0]
+ else:
+ yield arg
+
+ try:
+ fake_attributes = hasattr(
+ obj, "awehoi234_wdfjwljet234_234wdfoijsdfmmnxpi492"
+ )
+ except Exception:
+ fake_attributes = False
+
+ rich_repr_result: Optional[RichReprResult] = None
+ if not fake_attributes:
+ try:
+ if hasattr(obj, "__rich_repr__") and not isclass(obj):
+ rich_repr_result = obj.__rich_repr__()
+ except Exception:
+ pass
+
+ if rich_repr_result is not None:
+ push_visited(obj_id)
+ angular = getattr(obj.__rich_repr__, "angular", False)
+ args = list(iter_rich_args(rich_repr_result))
+ class_name = obj.__class__.__name__
+
+ if args:
+ children = []
+ append = children.append
+
+ if reached_max_depth:
+ if angular:
+ node = Node(value_repr=f"<{class_name}...>")
+ else:
+ node = Node(value_repr=f"{class_name}(...)")
+ else:
+ if angular:
+ node = Node(
+ open_brace=f"<{class_name} ",
+ close_brace=">",
+ children=children,
+ last=root,
+ separator=" ",
+ )
+ else:
+ node = Node(
+ open_brace=f"{class_name}(",
+ close_brace=")",
+ children=children,
+ last=root,
+ )
+ for last, arg in loop_last(args):
+ if _safe_isinstance(arg, tuple):
+ key, child = arg
+ child_node = _traverse(child, depth=depth + 1)
+ child_node.last = last
+ child_node.key_repr = key
+ child_node.key_separator = "="
+ append(child_node)
+ else:
+ child_node = _traverse(arg, depth=depth + 1)
+ child_node.last = last
+ append(child_node)
+ else:
+ node = Node(
+ value_repr=f"<{class_name}>" if angular else f"{class_name}()",
+ children=[],
+ last=root,
+ )
+ pop_visited(obj_id)
+ elif _is_attr_object(obj) and not fake_attributes:
+ push_visited(obj_id)
+ children = []
+ append = children.append
+
+ attr_fields = _get_attr_fields(obj)
+ if attr_fields:
+ if reached_max_depth:
+ node = Node(value_repr=f"{obj.__class__.__name__}(...)")
+ else:
+ node = Node(
+ open_brace=f"{obj.__class__.__name__}(",
+ close_brace=")",
+ children=children,
+ last=root,
+ )
+
+ def iter_attrs() -> (
+ Iterable[Tuple[str, Any, Optional[Callable[[Any], str]]]]
+ ):
+ """Iterate over attr fields and values."""
+ for attr in attr_fields:
+ if attr.repr:
+ try:
+ value = getattr(obj, attr.name)
+ except Exception as error:
+ # Can happen, albeit rarely
+ yield (attr.name, error, None)
+ else:
+ yield (
+ attr.name,
+ value,
+ attr.repr if callable(attr.repr) else None,
+ )
+
+ for last, (name, value, repr_callable) in loop_last(iter_attrs()):
+ if repr_callable:
+ child_node = Node(value_repr=str(repr_callable(value)))
+ else:
+ child_node = _traverse(value, depth=depth + 1)
+ child_node.last = last
+ child_node.key_repr = name
+ child_node.key_separator = "="
+ append(child_node)
+ else:
+ node = Node(
+ value_repr=f"{obj.__class__.__name__}()", children=[], last=root
+ )
+ pop_visited(obj_id)
+ elif (
+ is_dataclass(obj)
+ and not _safe_isinstance(obj, type)
+ and not fake_attributes
+ and _is_dataclass_repr(obj)
+ ):
+ push_visited(obj_id)
+ children = []
+ append = children.append
+ if reached_max_depth:
+ node = Node(value_repr=f"{obj.__class__.__name__}(...)")
+ else:
+ node = Node(
+ open_brace=f"{obj.__class__.__name__}(",
+ close_brace=")",
+ children=children,
+ last=root,
+ empty=f"{obj.__class__.__name__}()",
+ )
+
+ for last, field in loop_last(
+ field
+ for field in fields(obj)
+ if field.repr and hasattr(obj, field.name)
+ ):
+ child_node = _traverse(getattr(obj, field.name), depth=depth + 1)
+ child_node.key_repr = field.name
+ child_node.last = last
+ child_node.key_separator = "="
+ append(child_node)
+
+ pop_visited(obj_id)
+ elif _is_namedtuple(obj) and _has_default_namedtuple_repr(obj):
+ push_visited(obj_id)
+ class_name = obj.__class__.__name__
+ if reached_max_depth:
+ # If we've reached the max depth, we still show the class name, but not its contents
+ node = Node(
+ value_repr=f"{class_name}(...)",
+ )
+ else:
+ children = []
+ append = children.append
+ node = Node(
+ open_brace=f"{class_name}(",
+ close_brace=")",
+ children=children,
+ empty=f"{class_name}()",
+ )
+ for last, (key, value) in loop_last(obj._asdict().items()):
+ child_node = _traverse(value, depth=depth + 1)
+ child_node.key_repr = key
+ child_node.last = last
+ child_node.key_separator = "="
+ append(child_node)
+ pop_visited(obj_id)
+ elif _safe_isinstance(obj, _CONTAINERS):
+ for container_type in _CONTAINERS:
+ if _safe_isinstance(obj, container_type):
+ obj_type = container_type
+ break
+
+ push_visited(obj_id)
+
+ open_brace, close_brace, empty = _BRACES[obj_type](obj)
+
+ if reached_max_depth:
+ node = Node(value_repr=f"{open_brace}...{close_brace}")
+ elif obj_type.__repr__ != type(obj).__repr__:
+ node = Node(value_repr=to_repr(obj), last=root)
+ elif obj:
+ children = []
+ node = Node(
+ open_brace=open_brace,
+ close_brace=close_brace,
+ children=children,
+ last=root,
+ )
+ append = children.append
+ num_items = len(obj)
+ last_item_index = num_items - 1
+
+ if _safe_isinstance(obj, _MAPPING_CONTAINERS):
+ iter_items = iter(obj.items())
+ if max_length is not None:
+ iter_items = islice(iter_items, max_length)
+ for index, (key, child) in enumerate(iter_items):
+ child_node = _traverse(child, depth=depth + 1)
+ child_node.key_repr = to_repr(key)
+ child_node.last = index == last_item_index
+ append(child_node)
+ else:
+ iter_values = iter(obj)
+ if max_length is not None:
+ iter_values = islice(iter_values, max_length)
+ for index, child in enumerate(iter_values):
+ child_node = _traverse(child, depth=depth + 1)
+ child_node.last = index == last_item_index
+ append(child_node)
+ if max_length is not None and num_items > max_length:
+ append(Node(value_repr=f"... +{num_items - max_length}", last=True))
+ else:
+ node = Node(empty=empty, children=[], last=root)
+
+ pop_visited(obj_id)
+ else:
+ node = Node(value_repr=to_repr(obj), last=root)
+ node.is_tuple = type(obj) == tuple
+ node.is_namedtuple = _is_namedtuple(obj)
+ return node
+
+ node = _traverse(_object, root=True)
+ return node
+
+
+def pretty_repr(
+ _object: Any,
+ *,
+ max_width: int = 80,
+ indent_size: int = 4,
+ max_length: Optional[int] = None,
+ max_string: Optional[int] = None,
+ max_depth: Optional[int] = None,
+ expand_all: bool = False,
+) -> str:
+ """Prettify repr string by expanding on to new lines to fit within a given width.
+
+ Args:
+ _object (Any): Object to repr.
+ max_width (int, optional): Desired maximum width of repr string. Defaults to 80.
+ indent_size (int, optional): Number of spaces to indent. Defaults to 4.
+ max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
+ Defaults to None.
+ max_string (int, optional): Maximum length of string before truncating, or None to disable truncating.
+ Defaults to None.
+ max_depth (int, optional): Maximum depth of nested data structure, or None for no depth.
+ Defaults to None.
+ expand_all (bool, optional): Expand all containers regardless of available width. Defaults to False.
+
+ Returns:
+ str: A possibly multi-line representation of the object.
+ """
+
+ if _safe_isinstance(_object, Node):
+ node = _object
+ else:
+ node = traverse(
+ _object, max_length=max_length, max_string=max_string, max_depth=max_depth
+ )
+ repr_str: str = node.render(
+ max_width=max_width, indent_size=indent_size, expand_all=expand_all
+ )
+ return repr_str
+
+
+def pprint(
+ _object: Any,
+ *,
+ console: Optional["Console"] = None,
+ indent_guides: bool = True,
+ max_length: Optional[int] = None,
+ max_string: Optional[int] = None,
+ max_depth: Optional[int] = None,
+ expand_all: bool = False,
+) -> None:
+ """A convenience function for pretty printing.
+
+ Args:
+ _object (Any): Object to pretty print.
+ console (Console, optional): Console instance, or None to use default. Defaults to None.
+ max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
+ Defaults to None.
+ max_string (int, optional): Maximum length of strings before truncating, or None to disable. Defaults to None.
+ max_depth (int, optional): Maximum depth for nested data structures, or None for unlimited depth. Defaults to None.
+ indent_guides (bool, optional): Enable indentation guides. Defaults to True.
+ expand_all (bool, optional): Expand all containers. Defaults to False.
+ """
+ _console = get_console() if console is None else console
+ _console.print(
+ Pretty(
+ _object,
+ max_length=max_length,
+ max_string=max_string,
+ max_depth=max_depth,
+ indent_guides=indent_guides,
+ expand_all=expand_all,
+ overflow="ignore",
+ ),
+ soft_wrap=True,
+ )
+
+
+if __name__ == "__main__": # pragma: no cover
+
+ class BrokenRepr:
+ def __repr__(self) -> str:
+ 1 / 0
+ return "this will fail"
+
+ from typing import NamedTuple
+
+ class StockKeepingUnit(NamedTuple):
+ name: str
+ description: str
+ price: float
+ category: str
+ reviews: List[str]
+
+ d = defaultdict(int)
+ d["foo"] = 5
+ data = {
+ "foo": [
+ 1,
+ "Hello World!",
+ 100.123,
+ 323.232,
+ 432324.0,
+ {5, 6, 7, (1, 2, 3, 4), 8},
+ ],
+ "bar": frozenset({1, 2, 3}),
+ "defaultdict": defaultdict(
+ list, {"crumble": ["apple", "rhubarb", "butter", "sugar", "flour"]}
+ ),
+ "counter": Counter(
+ [
+ "apple",
+ "orange",
+ "pear",
+ "kumquat",
+ "kumquat",
+ "durian" * 100,
+ ]
+ ),
+ "atomic": (False, True, None),
+ "namedtuple": StockKeepingUnit(
+ "Sparkling British Spring Water",
+ "Carbonated spring water",
+ 0.9,
+ "water",
+ ["its amazing!", "its terrible!"],
+ ),
+ "Broken": BrokenRepr(),
+ }
+ data["foo"].append(data) # type: ignore[attr-defined]
+
+ from rich import print
+
+ print(Pretty(data, indent_guides=True, max_string=20))
+
+ class Thing:
+ def __repr__(self) -> str:
+ return "Hello\x1b[38;5;239m World!"
+
+ print(Pretty(Thing()))
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/progress.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/progress.py
new file mode 100644
index 0000000000000000000000000000000000000000..c2de125aec8cc5ed78441f93c25af7df4db30131
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/progress.py
@@ -0,0 +1,1716 @@
+from __future__ import annotations
+
+import io
+import typing
+import warnings
+from abc import ABC, abstractmethod
+from collections import deque
+from dataclasses import dataclass, field
+from datetime import timedelta
+from io import RawIOBase, UnsupportedOperation
+from math import ceil
+from mmap import mmap
+from operator import length_hint
+from os import PathLike, stat
+from threading import Event, RLock, Thread
+from types import TracebackType
+from typing import (
+ TYPE_CHECKING,
+ Any,
+ BinaryIO,
+ Callable,
+ ContextManager,
+ Deque,
+ Dict,
+ Generic,
+ Iterable,
+ List,
+ Literal,
+ NamedTuple,
+ NewType,
+ Optional,
+ TextIO,
+ Tuple,
+ Type,
+ TypeVar,
+ Union,
+)
+
+if TYPE_CHECKING:
+ # Can be replaced with `from typing import Self` in Python 3.11+
+ from typing_extensions import Self # pragma: no cover
+
+from . import filesize, get_console
+from .console import Console, Group, JustifyMethod, RenderableType
+from .highlighter import Highlighter
+from .jupyter import JupyterMixin
+from .live import Live
+from .progress_bar import ProgressBar
+from .spinner import Spinner
+from .style import StyleType
+from .table import Column, Table
+from .text import Text, TextType
+
+TaskID = NewType("TaskID", int)
+
+ProgressType = TypeVar("ProgressType")
+
+GetTimeCallable = Callable[[], float]
+
+
+_I = typing.TypeVar("_I", TextIO, BinaryIO)
+
+
+class _TrackThread(Thread):
+ """A thread to periodically update progress."""
+
+ def __init__(self, progress: "Progress", task_id: "TaskID", update_period: float):
+ self.progress = progress
+ self.task_id = task_id
+ self.update_period = update_period
+ self.done = Event()
+
+ self.completed = 0
+ super().__init__(daemon=True)
+
+ def run(self) -> None:
+ task_id = self.task_id
+ advance = self.progress.advance
+ update_period = self.update_period
+ last_completed = 0
+ wait = self.done.wait
+ while not wait(update_period) and self.progress.live.is_started:
+ completed = self.completed
+ if last_completed != completed:
+ advance(task_id, completed - last_completed)
+ last_completed = completed
+
+ self.progress.update(self.task_id, completed=self.completed, refresh=True)
+
+ def __enter__(self) -> "_TrackThread":
+ self.start()
+ return self
+
+ def __exit__(
+ self,
+ exc_type: Optional[Type[BaseException]],
+ exc_val: Optional[BaseException],
+ exc_tb: Optional[TracebackType],
+ ) -> None:
+ self.done.set()
+ self.join()
+
+
+def track(
+ sequence: Iterable[ProgressType],
+ description: str = "Working...",
+ total: Optional[float] = None,
+ completed: int = 0,
+ auto_refresh: bool = True,
+ console: Optional[Console] = None,
+ transient: bool = False,
+ get_time: Optional[Callable[[], float]] = None,
+ refresh_per_second: float = 10,
+ style: StyleType = "bar.back",
+ complete_style: StyleType = "bar.complete",
+ finished_style: StyleType = "bar.finished",
+ pulse_style: StyleType = "bar.pulse",
+ update_period: float = 0.1,
+ disable: bool = False,
+ show_speed: bool = True,
+) -> Iterable[ProgressType]:
+ """Track progress by iterating over a sequence.
+
+ You can also track progress of an iterable, which might require that you additionally specify ``total``.
+
+ Args:
+ sequence (Iterable[ProgressType]): Values you wish to iterate over and track progress.
+ description (str, optional): Description of task show next to progress bar. Defaults to "Working".
+ total: (float, optional): Total number of steps. Default is len(sequence).
+ completed (int, optional): Number of steps completed so far. Defaults to 0.
+ auto_refresh (bool, optional): Automatic refresh, disable to force a refresh after each iteration. Default is True.
+ transient: (bool, optional): Clear the progress on exit. Defaults to False.
+ console (Console, optional): Console to write to. Default creates internal Console instance.
+ refresh_per_second (float): Number of times per second to refresh the progress information. Defaults to 10.
+ style (StyleType, optional): Style for the bar background. Defaults to "bar.back".
+ complete_style (StyleType, optional): Style for the completed bar. Defaults to "bar.complete".
+ finished_style (StyleType, optional): Style for a finished bar. Defaults to "bar.finished".
+ pulse_style (StyleType, optional): Style for pulsing bars. Defaults to "bar.pulse".
+ update_period (float, optional): Minimum time (in seconds) between calls to update(). Defaults to 0.1.
+ disable (bool, optional): Disable display of progress.
+ show_speed (bool, optional): Show speed if total isn't known. Defaults to True.
+ Returns:
+ Iterable[ProgressType]: An iterable of the values in the sequence.
+
+ """
+
+ columns: List["ProgressColumn"] = (
+ [TextColumn("[progress.description]{task.description}")] if description else []
+ )
+ columns.extend(
+ (
+ BarColumn(
+ style=style,
+ complete_style=complete_style,
+ finished_style=finished_style,
+ pulse_style=pulse_style,
+ ),
+ TaskProgressColumn(show_speed=show_speed),
+ TimeRemainingColumn(elapsed_when_finished=True),
+ )
+ )
+ progress = Progress(
+ *columns,
+ auto_refresh=auto_refresh,
+ console=console,
+ transient=transient,
+ get_time=get_time,
+ refresh_per_second=refresh_per_second or 10,
+ disable=disable,
+ )
+
+ with progress:
+ yield from progress.track(
+ sequence,
+ total=total,
+ completed=completed,
+ description=description,
+ update_period=update_period,
+ )
+
+
+class _Reader(RawIOBase, BinaryIO):
+ """A reader that tracks progress while it's being read from."""
+
+ def __init__(
+ self,
+ handle: BinaryIO,
+ progress: "Progress",
+ task: TaskID,
+ close_handle: bool = True,
+ ) -> None:
+ self.handle = handle
+ self.progress = progress
+ self.task = task
+ self.close_handle = close_handle
+ self._closed = False
+
+ def __enter__(self) -> "_Reader":
+ self.handle.__enter__()
+ return self
+
+ def __exit__(
+ self,
+ exc_type: Optional[Type[BaseException]],
+ exc_val: Optional[BaseException],
+ exc_tb: Optional[TracebackType],
+ ) -> None:
+ self.close()
+
+ def __iter__(self) -> BinaryIO:
+ return self
+
+ def __next__(self) -> bytes:
+ line = next(self.handle)
+ self.progress.advance(self.task, advance=len(line))
+ return line
+
+ @property
+ def closed(self) -> bool:
+ return self._closed
+
+ def fileno(self) -> int:
+ return self.handle.fileno()
+
+ def isatty(self) -> bool:
+ return self.handle.isatty()
+
+ @property
+ def mode(self) -> str:
+ return self.handle.mode
+
+ @property
+ def name(self) -> str:
+ return self.handle.name
+
+ def readable(self) -> bool:
+ return self.handle.readable()
+
+ def seekable(self) -> bool:
+ return self.handle.seekable()
+
+ def writable(self) -> bool:
+ return False
+
+ def read(self, size: int = -1) -> bytes:
+ block = self.handle.read(size)
+ self.progress.advance(self.task, advance=len(block))
+ return block
+
+ def readinto(self, b: Union[bytearray, memoryview, mmap]): # type: ignore[no-untyped-def, override]
+ n = self.handle.readinto(b) # type: ignore[attr-defined]
+ self.progress.advance(self.task, advance=n)
+ return n
+
+ def readline(self, size: int = -1) -> bytes: # type: ignore[override]
+ line = self.handle.readline(size)
+ self.progress.advance(self.task, advance=len(line))
+ return line
+
+ def readlines(self, hint: int = -1) -> List[bytes]:
+ lines = self.handle.readlines(hint)
+ self.progress.advance(self.task, advance=sum(map(len, lines)))
+ return lines
+
+ def close(self) -> None:
+ if self.close_handle:
+ self.handle.close()
+ self._closed = True
+
+ def seek(self, offset: int, whence: int = 0) -> int:
+ pos = self.handle.seek(offset, whence)
+ self.progress.update(self.task, completed=pos)
+ return pos
+
+ def tell(self) -> int:
+ return self.handle.tell()
+
+ def write(self, s: Any) -> int:
+ raise UnsupportedOperation("write")
+
+ def writelines(self, lines: Iterable[Any]) -> None:
+ raise UnsupportedOperation("writelines")
+
+
+class _ReadContext(ContextManager[_I], Generic[_I]):
+ """A utility class to handle a context for both a reader and a progress."""
+
+ def __init__(self, progress: "Progress", reader: _I) -> None:
+ self.progress = progress
+ self.reader: _I = reader
+
+ def __enter__(self) -> _I:
+ self.progress.start()
+ return self.reader.__enter__()
+
+ def __exit__(
+ self,
+ exc_type: Optional[Type[BaseException]],
+ exc_val: Optional[BaseException],
+ exc_tb: Optional[TracebackType],
+ ) -> None:
+ self.progress.stop()
+ self.reader.__exit__(exc_type, exc_val, exc_tb)
+
+
+def wrap_file(
+ file: BinaryIO,
+ total: int,
+ *,
+ description: str = "Reading...",
+ auto_refresh: bool = True,
+ console: Optional[Console] = None,
+ transient: bool = False,
+ get_time: Optional[Callable[[], float]] = None,
+ refresh_per_second: float = 10,
+ style: StyleType = "bar.back",
+ complete_style: StyleType = "bar.complete",
+ finished_style: StyleType = "bar.finished",
+ pulse_style: StyleType = "bar.pulse",
+ disable: bool = False,
+) -> ContextManager[BinaryIO]:
+ """Read bytes from a file while tracking progress.
+
+ Args:
+ file (Union[str, PathLike[str], BinaryIO]): The path to the file to read, or a file-like object in binary mode.
+ total (int): Total number of bytes to read.
+ description (str, optional): Description of task show next to progress bar. Defaults to "Reading".
+ auto_refresh (bool, optional): Automatic refresh, disable to force a refresh after each iteration. Default is True.
+ transient: (bool, optional): Clear the progress on exit. Defaults to False.
+ console (Console, optional): Console to write to. Default creates internal Console instance.
+ refresh_per_second (float): Number of times per second to refresh the progress information. Defaults to 10.
+ style (StyleType, optional): Style for the bar background. Defaults to "bar.back".
+ complete_style (StyleType, optional): Style for the completed bar. Defaults to "bar.complete".
+ finished_style (StyleType, optional): Style for a finished bar. Defaults to "bar.finished".
+ pulse_style (StyleType, optional): Style for pulsing bars. Defaults to "bar.pulse".
+ disable (bool, optional): Disable display of progress.
+ Returns:
+ ContextManager[BinaryIO]: A context manager yielding a progress reader.
+
+ """
+
+ columns: List["ProgressColumn"] = (
+ [TextColumn("[progress.description]{task.description}")] if description else []
+ )
+ columns.extend(
+ (
+ BarColumn(
+ style=style,
+ complete_style=complete_style,
+ finished_style=finished_style,
+ pulse_style=pulse_style,
+ ),
+ DownloadColumn(),
+ TimeRemainingColumn(),
+ )
+ )
+ progress = Progress(
+ *columns,
+ auto_refresh=auto_refresh,
+ console=console,
+ transient=transient,
+ get_time=get_time,
+ refresh_per_second=refresh_per_second or 10,
+ disable=disable,
+ )
+
+ reader = progress.wrap_file(file, total=total, description=description)
+ return _ReadContext(progress, reader)
+
+
+@typing.overload
+def open(
+ file: Union[str, "PathLike[str]", bytes],
+ mode: Union[Literal["rt"], Literal["r"]],
+ buffering: int = -1,
+ encoding: Optional[str] = None,
+ errors: Optional[str] = None,
+ newline: Optional[str] = None,
+ *,
+ total: Optional[int] = None,
+ description: str = "Reading...",
+ auto_refresh: bool = True,
+ console: Optional[Console] = None,
+ transient: bool = False,
+ get_time: Optional[Callable[[], float]] = None,
+ refresh_per_second: float = 10,
+ style: StyleType = "bar.back",
+ complete_style: StyleType = "bar.complete",
+ finished_style: StyleType = "bar.finished",
+ pulse_style: StyleType = "bar.pulse",
+ disable: bool = False,
+) -> ContextManager[TextIO]:
+ pass
+
+
+@typing.overload
+def open(
+ file: Union[str, "PathLike[str]", bytes],
+ mode: Literal["rb"],
+ buffering: int = -1,
+ encoding: Optional[str] = None,
+ errors: Optional[str] = None,
+ newline: Optional[str] = None,
+ *,
+ total: Optional[int] = None,
+ description: str = "Reading...",
+ auto_refresh: bool = True,
+ console: Optional[Console] = None,
+ transient: bool = False,
+ get_time: Optional[Callable[[], float]] = None,
+ refresh_per_second: float = 10,
+ style: StyleType = "bar.back",
+ complete_style: StyleType = "bar.complete",
+ finished_style: StyleType = "bar.finished",
+ pulse_style: StyleType = "bar.pulse",
+ disable: bool = False,
+) -> ContextManager[BinaryIO]:
+ pass
+
+
+def open(
+ file: Union[str, "PathLike[str]", bytes],
+ mode: Union[Literal["rb"], Literal["rt"], Literal["r"]] = "r",
+ buffering: int = -1,
+ encoding: Optional[str] = None,
+ errors: Optional[str] = None,
+ newline: Optional[str] = None,
+ *,
+ total: Optional[int] = None,
+ description: str = "Reading...",
+ auto_refresh: bool = True,
+ console: Optional[Console] = None,
+ transient: bool = False,
+ get_time: Optional[Callable[[], float]] = None,
+ refresh_per_second: float = 10,
+ style: StyleType = "bar.back",
+ complete_style: StyleType = "bar.complete",
+ finished_style: StyleType = "bar.finished",
+ pulse_style: StyleType = "bar.pulse",
+ disable: bool = False,
+) -> Union[ContextManager[BinaryIO], ContextManager[TextIO]]:
+ """Read bytes from a file while tracking progress.
+
+ Args:
+ path (Union[str, PathLike[str], BinaryIO]): The path to the file to read, or a file-like object in binary mode.
+ mode (str): The mode to use to open the file. Only supports "r", "rb" or "rt".
+ buffering (int): The buffering strategy to use, see :func:`io.open`.
+ encoding (str, optional): The encoding to use when reading in text mode, see :func:`io.open`.
+ errors (str, optional): The error handling strategy for decoding errors, see :func:`io.open`.
+ newline (str, optional): The strategy for handling newlines in text mode, see :func:`io.open`
+ total: (int, optional): Total number of bytes to read. Must be provided if reading from a file handle. Default for a path is os.stat(file).st_size.
+ description (str, optional): Description of task show next to progress bar. Defaults to "Reading".
+ auto_refresh (bool, optional): Automatic refresh, disable to force a refresh after each iteration. Default is True.
+ transient: (bool, optional): Clear the progress on exit. Defaults to False.
+ console (Console, optional): Console to write to. Default creates internal Console instance.
+ refresh_per_second (float): Number of times per second to refresh the progress information. Defaults to 10.
+ style (StyleType, optional): Style for the bar background. Defaults to "bar.back".
+ complete_style (StyleType, optional): Style for the completed bar. Defaults to "bar.complete".
+ finished_style (StyleType, optional): Style for a finished bar. Defaults to "bar.finished".
+ pulse_style (StyleType, optional): Style for pulsing bars. Defaults to "bar.pulse".
+ disable (bool, optional): Disable display of progress.
+ encoding (str, optional): The encoding to use when reading in text mode.
+
+ Returns:
+ ContextManager[BinaryIO]: A context manager yielding a progress reader.
+
+ """
+
+ columns: List["ProgressColumn"] = (
+ [TextColumn("[progress.description]{task.description}")] if description else []
+ )
+ columns.extend(
+ (
+ BarColumn(
+ style=style,
+ complete_style=complete_style,
+ finished_style=finished_style,
+ pulse_style=pulse_style,
+ ),
+ DownloadColumn(),
+ TimeRemainingColumn(),
+ )
+ )
+ progress = Progress(
+ *columns,
+ auto_refresh=auto_refresh,
+ console=console,
+ transient=transient,
+ get_time=get_time,
+ refresh_per_second=refresh_per_second or 10,
+ disable=disable,
+ )
+
+ reader = progress.open(
+ file,
+ mode=mode,
+ buffering=buffering,
+ encoding=encoding,
+ errors=errors,
+ newline=newline,
+ total=total,
+ description=description,
+ )
+ return _ReadContext(progress, reader) # type: ignore[return-value, type-var]
+
+
+class ProgressColumn(ABC):
+ """Base class for a widget to use in progress display."""
+
+ max_refresh: Optional[float] = None
+
+ def __init__(self, table_column: Optional[Column] = None) -> None:
+ self._table_column = table_column
+ self._renderable_cache: Dict[TaskID, Tuple[float, RenderableType]] = {}
+ self._update_time: Optional[float] = None
+
+ def get_table_column(self) -> Column:
+ """Get a table column, used to build tasks table."""
+ return self._table_column or Column()
+
+ def __call__(self, task: "Task") -> RenderableType:
+ """Called by the Progress object to return a renderable for the given task.
+
+ Args:
+ task (Task): An object containing information regarding the task.
+
+ Returns:
+ RenderableType: Anything renderable (including str).
+ """
+ current_time = task.get_time()
+ if self.max_refresh is not None and not task.completed:
+ try:
+ timestamp, renderable = self._renderable_cache[task.id]
+ except KeyError:
+ pass
+ else:
+ if timestamp + self.max_refresh > current_time:
+ return renderable
+
+ renderable = self.render(task)
+ self._renderable_cache[task.id] = (current_time, renderable)
+ return renderable
+
+ @abstractmethod
+ def render(self, task: "Task") -> RenderableType:
+ """Should return a renderable object."""
+
+
+class RenderableColumn(ProgressColumn):
+ """A column to insert an arbitrary column.
+
+ Args:
+ renderable (RenderableType, optional): Any renderable. Defaults to empty string.
+ """
+
+ def __init__(
+ self, renderable: RenderableType = "", *, table_column: Optional[Column] = None
+ ):
+ self.renderable = renderable
+ super().__init__(table_column=table_column)
+
+ def render(self, task: "Task") -> RenderableType:
+ return self.renderable
+
+
+class SpinnerColumn(ProgressColumn):
+ """A column with a 'spinner' animation.
+
+ Args:
+ spinner_name (str, optional): Name of spinner animation. Defaults to "dots".
+ style (StyleType, optional): Style of spinner. Defaults to "progress.spinner".
+ speed (float, optional): Speed factor of spinner. Defaults to 1.0.
+ finished_text (TextType, optional): Text used when task is finished. Defaults to " ".
+ """
+
+ def __init__(
+ self,
+ spinner_name: str = "dots",
+ style: Optional[StyleType] = "progress.spinner",
+ speed: float = 1.0,
+ finished_text: TextType = " ",
+ table_column: Optional[Column] = None,
+ ):
+ self.spinner = Spinner(spinner_name, style=style, speed=speed)
+ self.finished_text = (
+ Text.from_markup(finished_text)
+ if isinstance(finished_text, str)
+ else finished_text
+ )
+ super().__init__(table_column=table_column)
+
+ def set_spinner(
+ self,
+ spinner_name: str,
+ spinner_style: Optional[StyleType] = "progress.spinner",
+ speed: float = 1.0,
+ ) -> None:
+ """Set a new spinner.
+
+ Args:
+ spinner_name (str): Spinner name, see python -m rich.spinner.
+ spinner_style (Optional[StyleType], optional): Spinner style. Defaults to "progress.spinner".
+ speed (float, optional): Speed factor of spinner. Defaults to 1.0.
+ """
+ self.spinner = Spinner(spinner_name, style=spinner_style, speed=speed)
+
+ def render(self, task: "Task") -> RenderableType:
+ text = (
+ self.finished_text
+ if task.finished
+ else self.spinner.render(task.get_time())
+ )
+ return text
+
+
+class TextColumn(ProgressColumn):
+ """A column containing text."""
+
+ def __init__(
+ self,
+ text_format: str,
+ style: StyleType = "none",
+ justify: JustifyMethod = "left",
+ markup: bool = True,
+ highlighter: Optional[Highlighter] = None,
+ table_column: Optional[Column] = None,
+ ) -> None:
+ self.text_format = text_format
+ self.justify: JustifyMethod = justify
+ self.style = style
+ self.markup = markup
+ self.highlighter = highlighter
+ super().__init__(table_column=table_column or Column(no_wrap=True))
+
+ def render(self, task: "Task") -> Text:
+ _text = self.text_format.format(task=task)
+ if self.markup:
+ text = Text.from_markup(_text, style=self.style, justify=self.justify)
+ else:
+ text = Text(_text, style=self.style, justify=self.justify)
+ if self.highlighter:
+ self.highlighter.highlight(text)
+ return text
+
+
+class BarColumn(ProgressColumn):
+ """Renders a visual progress bar.
+
+ Args:
+ bar_width (Optional[int], optional): Width of bar or None for full width. Defaults to 40.
+ style (StyleType, optional): Style for the bar background. Defaults to "bar.back".
+ complete_style (StyleType, optional): Style for the completed bar. Defaults to "bar.complete".
+ finished_style (StyleType, optional): Style for a finished bar. Defaults to "bar.finished".
+ pulse_style (StyleType, optional): Style for pulsing bars. Defaults to "bar.pulse".
+ """
+
+ def __init__(
+ self,
+ bar_width: Optional[int] = 40,
+ style: StyleType = "bar.back",
+ complete_style: StyleType = "bar.complete",
+ finished_style: StyleType = "bar.finished",
+ pulse_style: StyleType = "bar.pulse",
+ table_column: Optional[Column] = None,
+ ) -> None:
+ self.bar_width = bar_width
+ self.style = style
+ self.complete_style = complete_style
+ self.finished_style = finished_style
+ self.pulse_style = pulse_style
+ super().__init__(table_column=table_column)
+
+ def render(self, task: "Task") -> ProgressBar:
+ """Gets a progress bar widget for a task."""
+ return ProgressBar(
+ total=max(0, task.total) if task.total is not None else None,
+ completed=max(0, task.completed),
+ width=None if self.bar_width is None else max(1, self.bar_width),
+ pulse=not task.started,
+ animation_time=task.get_time(),
+ style=self.style,
+ complete_style=self.complete_style,
+ finished_style=self.finished_style,
+ pulse_style=self.pulse_style,
+ )
+
+
+class TimeElapsedColumn(ProgressColumn):
+ """Renders time elapsed."""
+
+ def render(self, task: "Task") -> Text:
+ """Show time elapsed."""
+ elapsed = task.finished_time if task.finished else task.elapsed
+ if elapsed is None:
+ return Text("-:--:--", style="progress.elapsed")
+ delta = timedelta(seconds=max(0, int(elapsed)))
+ return Text(str(delta), style="progress.elapsed")
+
+
+class TaskProgressColumn(TextColumn):
+ """Show task progress as a percentage.
+
+ Args:
+ text_format (str, optional): Format for percentage display. Defaults to "[progress.percentage]{task.percentage:>3.0f}%".
+ text_format_no_percentage (str, optional): Format if percentage is unknown. Defaults to "".
+ style (StyleType, optional): Style of output. Defaults to "none".
+ justify (JustifyMethod, optional): Text justification. Defaults to "left".
+ markup (bool, optional): Enable markup. Defaults to True.
+ highlighter (Optional[Highlighter], optional): Highlighter to apply to output. Defaults to None.
+ table_column (Optional[Column], optional): Table Column to use. Defaults to None.
+ show_speed (bool, optional): Show speed if total is unknown. Defaults to False.
+ """
+
+ def __init__(
+ self,
+ text_format: str = "[progress.percentage]{task.percentage:>3.0f}%",
+ text_format_no_percentage: str = "",
+ style: StyleType = "none",
+ justify: JustifyMethod = "left",
+ markup: bool = True,
+ highlighter: Optional[Highlighter] = None,
+ table_column: Optional[Column] = None,
+ show_speed: bool = False,
+ ) -> None:
+ self.text_format_no_percentage = text_format_no_percentage
+ self.show_speed = show_speed
+ super().__init__(
+ text_format=text_format,
+ style=style,
+ justify=justify,
+ markup=markup,
+ highlighter=highlighter,
+ table_column=table_column,
+ )
+
+ @classmethod
+ def render_speed(cls, speed: Optional[float]) -> Text:
+ """Render the speed in iterations per second.
+
+ Args:
+ task (Task): A Task object.
+
+ Returns:
+ Text: Text object containing the task speed.
+ """
+ if speed is None:
+ return Text("", style="progress.percentage")
+ unit, suffix = filesize.pick_unit_and_suffix(
+ int(speed),
+ ["", "×10³", "×10⁶", "×10⁹", "×10¹²"],
+ 1000,
+ )
+ data_speed = speed / unit
+ return Text(f"{data_speed:.1f}{suffix} it/s", style="progress.percentage")
+
+ def render(self, task: "Task") -> Text:
+ if task.total is None and self.show_speed:
+ return self.render_speed(task.finished_speed or task.speed)
+ text_format = (
+ self.text_format_no_percentage if task.total is None else self.text_format
+ )
+ _text = text_format.format(task=task)
+ if self.markup:
+ text = Text.from_markup(_text, style=self.style, justify=self.justify)
+ else:
+ text = Text(_text, style=self.style, justify=self.justify)
+ if self.highlighter:
+ self.highlighter.highlight(text)
+ return text
+
+
+class TimeRemainingColumn(ProgressColumn):
+ """Renders estimated time remaining.
+
+ Args:
+ compact (bool, optional): Render MM:SS when time remaining is less than an hour. Defaults to False.
+ elapsed_when_finished (bool, optional): Render time elapsed when the task is finished. Defaults to False.
+ """
+
+ # Only refresh twice a second to prevent jitter
+ max_refresh = 0.5
+
+ def __init__(
+ self,
+ compact: bool = False,
+ elapsed_when_finished: bool = False,
+ table_column: Optional[Column] = None,
+ ):
+ self.compact = compact
+ self.elapsed_when_finished = elapsed_when_finished
+ super().__init__(table_column=table_column)
+
+ def render(self, task: "Task") -> Text:
+ """Show time remaining."""
+ if self.elapsed_when_finished and task.finished:
+ task_time = task.finished_time
+ style = "progress.elapsed"
+ else:
+ task_time = task.time_remaining
+ style = "progress.remaining"
+
+ if task.total is None:
+ return Text("", style=style)
+
+ if task_time is None:
+ return Text("--:--" if self.compact else "-:--:--", style=style)
+
+ # Based on https://github.com/tqdm/tqdm/blob/master/tqdm/std.py
+ minutes, seconds = divmod(int(task_time), 60)
+ hours, minutes = divmod(minutes, 60)
+
+ if self.compact and not hours:
+ formatted = f"{minutes:02d}:{seconds:02d}"
+ else:
+ formatted = f"{hours:d}:{minutes:02d}:{seconds:02d}"
+
+ return Text(formatted, style=style)
+
+
+class FileSizeColumn(ProgressColumn):
+ """Renders completed filesize."""
+
+ def render(self, task: "Task") -> Text:
+ """Show data completed."""
+ data_size = filesize.decimal(int(task.completed))
+ return Text(data_size, style="progress.filesize")
+
+
+class TotalFileSizeColumn(ProgressColumn):
+ """Renders total filesize."""
+
+ def render(self, task: "Task") -> Text:
+ """Show data completed."""
+ data_size = filesize.decimal(int(task.total)) if task.total is not None else ""
+ return Text(data_size, style="progress.filesize.total")
+
+
+class MofNCompleteColumn(ProgressColumn):
+ """Renders completed count/total, e.g. ' 10/1000'.
+
+ Best for bounded tasks with int quantities.
+
+ Space pads the completed count so that progress length does not change as task progresses
+ past powers of 10.
+
+ Args:
+ separator (str, optional): Text to separate completed and total values. Defaults to "/".
+ """
+
+ def __init__(self, separator: str = "/", table_column: Optional[Column] = None):
+ self.separator = separator
+ super().__init__(table_column=table_column)
+
+ def render(self, task: "Task") -> Text:
+ """Show completed/total."""
+ completed = int(task.completed)
+ total = int(task.total) if task.total is not None else "?"
+ total_width = len(str(total))
+ return Text(
+ f"{completed:{total_width}d}{self.separator}{total}",
+ style="progress.download",
+ )
+
+
+class DownloadColumn(ProgressColumn):
+ """Renders file size downloaded and total, e.g. '0.5/2.3 GB'.
+
+ Args:
+ binary_units (bool, optional): Use binary units, KiB, MiB etc. Defaults to False.
+ """
+
+ def __init__(
+ self, binary_units: bool = False, table_column: Optional[Column] = None
+ ) -> None:
+ self.binary_units = binary_units
+ super().__init__(table_column=table_column)
+
+ def render(self, task: "Task") -> Text:
+ """Calculate common unit for completed and total."""
+ completed = int(task.completed)
+
+ unit_and_suffix_calculation_base = (
+ int(task.total) if task.total is not None else completed
+ )
+ if self.binary_units:
+ unit, suffix = filesize.pick_unit_and_suffix(
+ unit_and_suffix_calculation_base,
+ ["bytes", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"],
+ 1024,
+ )
+ else:
+ unit, suffix = filesize.pick_unit_and_suffix(
+ unit_and_suffix_calculation_base,
+ ["bytes", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"],
+ 1000,
+ )
+ precision = 0 if unit == 1 else 1
+
+ completed_ratio = completed / unit
+ completed_str = f"{completed_ratio:,.{precision}f}"
+
+ if task.total is not None:
+ total = int(task.total)
+ total_ratio = total / unit
+ total_str = f"{total_ratio:,.{precision}f}"
+ else:
+ total_str = "?"
+
+ download_status = f"{completed_str}/{total_str} {suffix}"
+ download_text = Text(download_status, style="progress.download")
+ return download_text
+
+
+class TransferSpeedColumn(ProgressColumn):
+ """Renders human readable transfer speed."""
+
+ def render(self, task: "Task") -> Text:
+ """Show data transfer speed."""
+ speed = task.finished_speed or task.speed
+ if speed is None:
+ return Text("?", style="progress.data.speed")
+ data_speed = filesize.decimal(int(speed))
+ return Text(f"{data_speed}/s", style="progress.data.speed")
+
+
+class ProgressSample(NamedTuple):
+ """Sample of progress for a given time."""
+
+ timestamp: float
+ """Timestamp of sample."""
+ completed: float
+ """Number of steps completed."""
+
+
+@dataclass
+class Task:
+ """Information regarding a progress task.
+
+ This object should be considered read-only outside of the :class:`~Progress` class.
+
+ """
+
+ id: TaskID
+ """Task ID associated with this task (used in Progress methods)."""
+
+ description: str
+ """str: Description of the task."""
+
+ total: Optional[float]
+ """Optional[float]: Total number of steps in this task."""
+
+ completed: float
+ """float: Number of steps completed"""
+
+ _get_time: GetTimeCallable
+ """Callable to get the current time."""
+
+ finished_time: Optional[float] = None
+ """float: Time task was finished."""
+
+ visible: bool = True
+ """bool: Indicates if this task is visible in the progress display."""
+
+ fields: Dict[str, Any] = field(default_factory=dict)
+ """dict: Arbitrary fields passed in via Progress.update."""
+
+ start_time: Optional[float] = field(default=None, init=False, repr=False)
+ """Optional[float]: Time this task was started, or None if not started."""
+
+ stop_time: Optional[float] = field(default=None, init=False, repr=False)
+ """Optional[float]: Time this task was stopped, or None if not stopped."""
+
+ finished_speed: Optional[float] = None
+ """Optional[float]: The last speed for a finished task."""
+
+ _progress: Deque[ProgressSample] = field(
+ default_factory=lambda: deque(maxlen=1000), init=False, repr=False
+ )
+
+ _lock: RLock = field(repr=False, default_factory=RLock)
+ """Thread lock."""
+
+ def get_time(self) -> float:
+ """float: Get the current time, in seconds."""
+ return self._get_time()
+
+ @property
+ def started(self) -> bool:
+ """bool: Check if the task as started."""
+ return self.start_time is not None
+
+ @property
+ def remaining(self) -> Optional[float]:
+ """Optional[float]: Get the number of steps remaining, if a non-None total was set."""
+ if self.total is None:
+ return None
+ return self.total - self.completed
+
+ @property
+ def elapsed(self) -> Optional[float]:
+ """Optional[float]: Time elapsed since task was started, or ``None`` if the task hasn't started."""
+ if self.start_time is None:
+ return None
+ if self.stop_time is not None:
+ return self.stop_time - self.start_time
+ return self.get_time() - self.start_time
+
+ @property
+ def finished(self) -> bool:
+ """Check if the task has finished."""
+ return self.finished_time is not None
+
+ @property
+ def percentage(self) -> float:
+ """float: Get progress of task as a percentage. If a None total was set, returns 0"""
+ if not self.total:
+ return 0.0
+ completed = (self.completed / self.total) * 100.0
+ completed = min(100.0, max(0.0, completed))
+ return completed
+
+ @property
+ def speed(self) -> Optional[float]:
+ """Optional[float]: Get the estimated speed in steps per second."""
+ if self.start_time is None:
+ return None
+ with self._lock:
+ progress = self._progress
+ if not progress:
+ return None
+ total_time = progress[-1].timestamp - progress[0].timestamp
+ if total_time == 0:
+ return None
+ iter_progress = iter(progress)
+ next(iter_progress)
+ total_completed = sum(sample.completed for sample in iter_progress)
+ speed = total_completed / total_time
+ return speed
+
+ @property
+ def time_remaining(self) -> Optional[float]:
+ """Optional[float]: Get estimated time to completion, or ``None`` if no data."""
+ if self.finished:
+ return 0.0
+ speed = self.speed
+ if not speed:
+ return None
+ remaining = self.remaining
+ if remaining is None:
+ return None
+ estimate = ceil(remaining / speed)
+ return estimate
+
+ def _reset(self) -> None:
+ """Reset progress."""
+ self._progress.clear()
+ self.finished_time = None
+ self.finished_speed = None
+
+
+class Progress(JupyterMixin):
+ """Renders an auto-updating progress bar(s).
+
+ Args:
+ console (Console, optional): Optional Console instance. Defaults to an internal Console instance writing to stdout.
+ auto_refresh (bool, optional): Enable auto refresh. If disabled, you will need to call `refresh()`.
+ refresh_per_second (float, optional): Number of times per second to refresh the progress information. Defaults to 10.
+ speed_estimate_period: (float, optional): Period (in seconds) used to calculate the speed estimate. Defaults to 30.
+ transient: (bool, optional): Clear the progress on exit. Defaults to False.
+ redirect_stdout: (bool, optional): Enable redirection of stdout, so ``print`` may be used. Defaults to True.
+ redirect_stderr: (bool, optional): Enable redirection of stderr. Defaults to True.
+ get_time: (Callable, optional): A callable that gets the current time, or None to use Console.get_time. Defaults to None.
+ disable (bool, optional): Disable progress display. Defaults to False
+ expand (bool, optional): Expand tasks table to fit width. Defaults to False.
+ """
+
+ def __init__(
+ self,
+ *columns: Union[str, ProgressColumn],
+ console: Optional[Console] = None,
+ auto_refresh: bool = True,
+ refresh_per_second: float = 10,
+ speed_estimate_period: float = 30.0,
+ transient: bool = False,
+ redirect_stdout: bool = True,
+ redirect_stderr: bool = True,
+ get_time: Optional[GetTimeCallable] = None,
+ disable: bool = False,
+ expand: bool = False,
+ ) -> None:
+ assert refresh_per_second > 0, "refresh_per_second must be > 0"
+ self._lock = RLock()
+ self.columns = columns or self.get_default_columns()
+ self.speed_estimate_period = speed_estimate_period
+
+ self.disable = disable
+ self.expand = expand
+ self._tasks: Dict[TaskID, Task] = {}
+ self._task_index: TaskID = TaskID(0)
+ self.live = Live(
+ console=console or get_console(),
+ auto_refresh=auto_refresh,
+ refresh_per_second=refresh_per_second,
+ transient=transient,
+ redirect_stdout=redirect_stdout,
+ redirect_stderr=redirect_stderr,
+ get_renderable=self.get_renderable,
+ )
+ self.get_time = get_time or self.console.get_time
+ self.print = self.console.print
+ self.log = self.console.log
+
+ @classmethod
+ def get_default_columns(cls) -> Tuple[ProgressColumn, ...]:
+ """Get the default columns used for a new Progress instance:
+ - a text column for the description (TextColumn)
+ - the bar itself (BarColumn)
+ - a text column showing completion percentage (TextColumn)
+ - an estimated-time-remaining column (TimeRemainingColumn)
+ If the Progress instance is created without passing a columns argument,
+ the default columns defined here will be used.
+
+ You can also create a Progress instance using custom columns before
+ and/or after the defaults, as in this example:
+
+ progress = Progress(
+ SpinnerColumn(),
+ *Progress.get_default_columns(),
+ "Elapsed:",
+ TimeElapsedColumn(),
+ )
+
+ This code shows the creation of a Progress display, containing
+ a spinner to the left, the default columns, and a labeled elapsed
+ time column.
+ """
+ return (
+ TextColumn("[progress.description]{task.description}"),
+ BarColumn(),
+ TaskProgressColumn(),
+ TimeRemainingColumn(),
+ )
+
+ @property
+ def console(self) -> Console:
+ return self.live.console
+
+ @property
+ def tasks(self) -> List[Task]:
+ """Get a list of Task instances."""
+ with self._lock:
+ return list(self._tasks.values())
+
+ @property
+ def task_ids(self) -> List[TaskID]:
+ """A list of task IDs."""
+ with self._lock:
+ return list(self._tasks.keys())
+
+ @property
+ def finished(self) -> bool:
+ """Check if all tasks have been completed."""
+ with self._lock:
+ if not self._tasks:
+ return True
+ return all(task.finished for task in self._tasks.values())
+
+ def start(self) -> None:
+ """Start the progress display."""
+ if not self.disable:
+ self.live.start(refresh=True)
+
+ def stop(self) -> None:
+ """Stop the progress display."""
+ if not self.disable:
+ self.live.stop()
+ if not self.console.is_interactive and not self.console.is_jupyter:
+ self.console.print()
+
+ def __enter__(self) -> Self:
+ self.start()
+ return self
+
+ def __exit__(
+ self,
+ exc_type: Optional[Type[BaseException]],
+ exc_val: Optional[BaseException],
+ exc_tb: Optional[TracebackType],
+ ) -> None:
+ self.stop()
+
+ def track(
+ self,
+ sequence: Iterable[ProgressType],
+ total: Optional[float] = None,
+ completed: int = 0,
+ task_id: Optional[TaskID] = None,
+ description: str = "Working...",
+ update_period: float = 0.1,
+ ) -> Iterable[ProgressType]:
+ """Track progress by iterating over a sequence.
+
+ You can also track progress of an iterable, which might require that you additionally specify ``total``.
+
+ Args:
+ sequence (Iterable[ProgressType]): Values you want to iterate over and track progress.
+ total: (float, optional): Total number of steps. Default is len(sequence).
+ completed (int, optional): Number of steps completed so far. Defaults to 0.
+ task_id: (TaskID): Task to track. Default is new task.
+ description: (str, optional): Description of task, if new task is created.
+ update_period (float, optional): Minimum time (in seconds) between calls to update(). Defaults to 0.1.
+
+ Returns:
+ Iterable[ProgressType]: An iterable of values taken from the provided sequence.
+ """
+ if total is None:
+ total = float(length_hint(sequence)) or None
+
+ if task_id is None:
+ task_id = self.add_task(description, total=total, completed=completed)
+ else:
+ self.update(task_id, total=total, completed=completed)
+
+ if self.live.auto_refresh:
+ with _TrackThread(self, task_id, update_period) as track_thread:
+ for value in sequence:
+ yield value
+ track_thread.completed += 1
+ else:
+ advance = self.advance
+ refresh = self.refresh
+ for value in sequence:
+ yield value
+ advance(task_id, 1)
+ refresh()
+
+ def wrap_file(
+ self,
+ file: BinaryIO,
+ total: Optional[int] = None,
+ *,
+ task_id: Optional[TaskID] = None,
+ description: str = "Reading...",
+ ) -> BinaryIO:
+ """Track progress file reading from a binary file.
+
+ Args:
+ file (BinaryIO): A file-like object opened in binary mode.
+ total (int, optional): Total number of bytes to read. This must be provided unless a task with a total is also given.
+ task_id (TaskID): Task to track. Default is new task.
+ description (str, optional): Description of task, if new task is created.
+
+ Returns:
+ BinaryIO: A readable file-like object in binary mode.
+
+ Raises:
+ ValueError: When no total value can be extracted from the arguments or the task.
+ """
+ # attempt to recover the total from the task
+ total_bytes: Optional[float] = None
+ if total is not None:
+ total_bytes = total
+ elif task_id is not None:
+ with self._lock:
+ total_bytes = self._tasks[task_id].total
+ if total_bytes is None:
+ raise ValueError(
+ f"unable to get the total number of bytes, please specify 'total'"
+ )
+
+ # update total of task or create new task
+ if task_id is None:
+ task_id = self.add_task(description, total=total_bytes)
+ else:
+ self.update(task_id, total=total_bytes)
+
+ return _Reader(file, self, task_id, close_handle=False)
+
+ @typing.overload
+ def open(
+ self,
+ file: Union[str, "PathLike[str]", bytes],
+ mode: Literal["rb"],
+ buffering: int = -1,
+ encoding: Optional[str] = None,
+ errors: Optional[str] = None,
+ newline: Optional[str] = None,
+ *,
+ total: Optional[int] = None,
+ task_id: Optional[TaskID] = None,
+ description: str = "Reading...",
+ ) -> BinaryIO:
+ pass
+
+ @typing.overload
+ def open(
+ self,
+ file: Union[str, "PathLike[str]", bytes],
+ mode: Union[Literal["r"], Literal["rt"]],
+ buffering: int = -1,
+ encoding: Optional[str] = None,
+ errors: Optional[str] = None,
+ newline: Optional[str] = None,
+ *,
+ total: Optional[int] = None,
+ task_id: Optional[TaskID] = None,
+ description: str = "Reading...",
+ ) -> TextIO:
+ pass
+
+ def open(
+ self,
+ file: Union[str, "PathLike[str]", bytes],
+ mode: Union[Literal["rb"], Literal["rt"], Literal["r"]] = "r",
+ buffering: int = -1,
+ encoding: Optional[str] = None,
+ errors: Optional[str] = None,
+ newline: Optional[str] = None,
+ *,
+ total: Optional[int] = None,
+ task_id: Optional[TaskID] = None,
+ description: str = "Reading...",
+ ) -> Union[BinaryIO, TextIO]:
+ """Track progress while reading from a binary file.
+
+ Args:
+ path (Union[str, PathLike[str]]): The path to the file to read.
+ mode (str): The mode to use to open the file. Only supports "r", "rb" or "rt".
+ buffering (int): The buffering strategy to use, see :func:`io.open`.
+ encoding (str, optional): The encoding to use when reading in text mode, see :func:`io.open`.
+ errors (str, optional): The error handling strategy for decoding errors, see :func:`io.open`.
+ newline (str, optional): The strategy for handling newlines in text mode, see :func:`io.open`.
+ total (int, optional): Total number of bytes to read. If none given, os.stat(path).st_size is used.
+ task_id (TaskID): Task to track. Default is new task.
+ description (str, optional): Description of task, if new task is created.
+
+ Returns:
+ BinaryIO: A readable file-like object in binary mode.
+
+ Raises:
+ ValueError: When an invalid mode is given.
+ """
+ # normalize the mode (always rb, rt)
+ _mode = "".join(sorted(mode, reverse=False))
+ if _mode not in ("br", "rt", "r"):
+ raise ValueError(f"invalid mode {mode!r}")
+
+ # patch buffering to provide the same behaviour as the builtin `open`
+ line_buffering = buffering == 1
+ if _mode == "br" and buffering == 1:
+ warnings.warn(
+ "line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used",
+ RuntimeWarning,
+ )
+ buffering = -1
+ elif _mode in ("rt", "r"):
+ if buffering == 0:
+ raise ValueError("can't have unbuffered text I/O")
+ elif buffering == 1:
+ buffering = -1
+
+ # attempt to get the total with `os.stat`
+ if total is None:
+ total = stat(file).st_size
+
+ # update total of task or create new task
+ if task_id is None:
+ task_id = self.add_task(description, total=total)
+ else:
+ self.update(task_id, total=total)
+
+ # open the file in binary mode,
+ handle = io.open(file, "rb", buffering=buffering)
+ reader = _Reader(handle, self, task_id, close_handle=True)
+
+ # wrap the reader in a `TextIOWrapper` if text mode
+ if mode in ("r", "rt"):
+ return io.TextIOWrapper(
+ reader,
+ encoding=encoding,
+ errors=errors,
+ newline=newline,
+ line_buffering=line_buffering,
+ )
+
+ return reader
+
+ def start_task(self, task_id: TaskID) -> None:
+ """Start a task.
+
+ Starts a task (used when calculating elapsed time). You may need to call this manually,
+ if you called ``add_task`` with ``start=False``.
+
+ Args:
+ task_id (TaskID): ID of task.
+ """
+ with self._lock:
+ task = self._tasks[task_id]
+ if task.start_time is None:
+ task.start_time = self.get_time()
+
+ def stop_task(self, task_id: TaskID) -> None:
+ """Stop a task.
+
+ This will freeze the elapsed time on the task.
+
+ Args:
+ task_id (TaskID): ID of task.
+ """
+ with self._lock:
+ task = self._tasks[task_id]
+ current_time = self.get_time()
+ if task.start_time is None:
+ task.start_time = current_time
+ task.stop_time = current_time
+
+ def update(
+ self,
+ task_id: TaskID,
+ *,
+ total: Optional[float] = None,
+ completed: Optional[float] = None,
+ advance: Optional[float] = None,
+ description: Optional[str] = None,
+ visible: Optional[bool] = None,
+ refresh: bool = False,
+ **fields: Any,
+ ) -> None:
+ """Update information associated with a task.
+
+ Args:
+ task_id (TaskID): Task id (returned by add_task).
+ total (float, optional): Updates task.total if not None.
+ completed (float, optional): Updates task.completed if not None.
+ advance (float, optional): Add a value to task.completed if not None.
+ description (str, optional): Change task description if not None.
+ visible (bool, optional): Set visible flag if not None.
+ refresh (bool): Force a refresh of progress information. Default is False.
+ **fields (Any): Additional data fields required for rendering.
+ """
+ with self._lock:
+ task = self._tasks[task_id]
+ completed_start = task.completed
+
+ if total is not None and total != task.total:
+ task.total = total
+ task._reset()
+ if advance is not None:
+ task.completed += advance
+ if completed is not None:
+ task.completed = completed
+ if description is not None:
+ task.description = description
+ if visible is not None:
+ task.visible = visible
+ task.fields.update(fields)
+ update_completed = task.completed - completed_start
+
+ current_time = self.get_time()
+ old_sample_time = current_time - self.speed_estimate_period
+ _progress = task._progress
+
+ popleft = _progress.popleft
+ while _progress and _progress[0].timestamp < old_sample_time:
+ popleft()
+ if update_completed > 0:
+ _progress.append(ProgressSample(current_time, update_completed))
+ if (
+ task.total is not None
+ and task.completed >= task.total
+ and task.finished_time is None
+ ):
+ task.finished_time = task.elapsed
+
+ if refresh:
+ self.refresh()
+
+ def reset(
+ self,
+ task_id: TaskID,
+ *,
+ start: bool = True,
+ total: Optional[float] = None,
+ completed: int = 0,
+ visible: Optional[bool] = None,
+ description: Optional[str] = None,
+ **fields: Any,
+ ) -> None:
+ """Reset a task so completed is 0 and the clock is reset.
+
+ Args:
+ task_id (TaskID): ID of task.
+ start (bool, optional): Start the task after reset. Defaults to True.
+ total (float, optional): New total steps in task, or None to use current total. Defaults to None.
+ completed (int, optional): Number of steps completed. Defaults to 0.
+ visible (bool, optional): Set visible flag if not None.
+ description (str, optional): Change task description if not None. Defaults to None.
+ **fields (str): Additional data fields required for rendering.
+ """
+ current_time = self.get_time()
+ with self._lock:
+ task = self._tasks[task_id]
+ task._reset()
+ task.start_time = current_time if start else None
+ if total is not None:
+ task.total = total
+ task.completed = completed
+ if visible is not None:
+ task.visible = visible
+ if fields:
+ task.fields = fields
+ if description is not None:
+ task.description = description
+ task.finished_time = None
+ self.refresh()
+
+ def advance(self, task_id: TaskID, advance: float = 1) -> None:
+ """Advance task by a number of steps.
+
+ Args:
+ task_id (TaskID): ID of task.
+ advance (float): Number of steps to advance. Default is 1.
+ """
+ current_time = self.get_time()
+ with self._lock:
+ task = self._tasks[task_id]
+ completed_start = task.completed
+ task.completed += advance
+ update_completed = task.completed - completed_start
+ old_sample_time = current_time - self.speed_estimate_period
+ _progress = task._progress
+
+ popleft = _progress.popleft
+ while _progress and _progress[0].timestamp < old_sample_time:
+ popleft()
+ while len(_progress) > 1000:
+ popleft()
+ _progress.append(ProgressSample(current_time, update_completed))
+ if (
+ task.total is not None
+ and task.completed >= task.total
+ and task.finished_time is None
+ ):
+ task.finished_time = task.elapsed
+ task.finished_speed = task.speed
+
+ def refresh(self) -> None:
+ """Refresh (render) the progress information."""
+ if not self.disable and self.live.is_started:
+ self.live.refresh()
+
+ def get_renderable(self) -> RenderableType:
+ """Get a renderable for the progress display."""
+ renderable = Group(*self.get_renderables())
+ return renderable
+
+ def get_renderables(self) -> Iterable[RenderableType]:
+ """Get a number of renderables for the progress display."""
+ table = self.make_tasks_table(self.tasks)
+ yield table
+
+ def make_tasks_table(self, tasks: Iterable[Task]) -> Table:
+ """Get a table to render the Progress display.
+
+ Args:
+ tasks (Iterable[Task]): An iterable of Task instances, one per row of the table.
+
+ Returns:
+ Table: A table instance.
+ """
+ table_columns = (
+ (
+ Column(no_wrap=True)
+ if isinstance(_column, str)
+ else _column.get_table_column().copy()
+ )
+ for _column in self.columns
+ )
+ table = Table.grid(*table_columns, padding=(0, 1), expand=self.expand)
+
+ for task in tasks:
+ if task.visible:
+ table.add_row(
+ *(
+ (
+ column.format(task=task)
+ if isinstance(column, str)
+ else column(task)
+ )
+ for column in self.columns
+ )
+ )
+ return table
+
+ def __rich__(self) -> RenderableType:
+ """Makes the Progress class itself renderable."""
+ with self._lock:
+ return self.get_renderable()
+
+ def add_task(
+ self,
+ description: str,
+ start: bool = True,
+ total: Optional[float] = 100.0,
+ completed: int = 0,
+ visible: bool = True,
+ **fields: Any,
+ ) -> TaskID:
+ """Add a new 'task' to the Progress display.
+
+ Args:
+ description (str): A description of the task.
+ start (bool, optional): Start the task immediately (to calculate elapsed time). If set to False,
+ you will need to call `start` manually. Defaults to True.
+ total (float, optional): Number of total steps in the progress if known.
+ Set to None to render a pulsing animation. Defaults to 100.
+ completed (int, optional): Number of steps completed so far. Defaults to 0.
+ visible (bool, optional): Enable display of the task. Defaults to True.
+ **fields (str): Additional data fields required for rendering.
+
+ Returns:
+ TaskID: An ID you can use when calling `update`.
+ """
+ with self._lock:
+ task = Task(
+ self._task_index,
+ description,
+ total,
+ completed,
+ visible=visible,
+ fields=fields,
+ _get_time=self.get_time,
+ _lock=self._lock,
+ )
+ self._tasks[self._task_index] = task
+ if start:
+ self.start_task(self._task_index)
+ new_task_index = self._task_index
+ self._task_index = TaskID(int(self._task_index) + 1)
+ self.refresh()
+ return new_task_index
+
+ def remove_task(self, task_id: TaskID) -> None:
+ """Delete a task if it exists.
+
+ Args:
+ task_id (TaskID): A task ID.
+
+ """
+ with self._lock:
+ del self._tasks[task_id]
+
+
+if __name__ == "__main__": # pragma: no coverage
+ import random
+ import time
+
+ from .panel import Panel
+ from .rule import Rule
+ from .syntax import Syntax
+ from .table import Table
+
+ syntax = Syntax(
+ '''def loop_last(values: Iterable[T]) -> Iterable[Tuple[bool, T]]:
+ """Iterate and generate a tuple with a flag for last value."""
+ iter_values = iter(values)
+ try:
+ previous_value = next(iter_values)
+ except StopIteration:
+ return
+ for value in iter_values:
+ yield False, previous_value
+ previous_value = value
+ yield True, previous_value''',
+ "python",
+ line_numbers=True,
+ )
+
+ table = Table("foo", "bar", "baz")
+ table.add_row("1", "2", "3")
+
+ progress_renderables = [
+ "Text may be printed while the progress bars are rendering.",
+ Panel("In fact, [i]any[/i] renderable will work"),
+ "Such as [magenta]tables[/]...",
+ table,
+ "Pretty printed structures...",
+ {"type": "example", "text": "Pretty printed"},
+ "Syntax...",
+ syntax,
+ Rule("Give it a try!"),
+ ]
+
+ from itertools import cycle
+
+ examples = cycle(progress_renderables)
+
+ console = Console(record=True)
+
+ with Progress(
+ SpinnerColumn(),
+ *Progress.get_default_columns(),
+ TimeElapsedColumn(),
+ console=console,
+ transient=False,
+ ) as progress:
+ task1 = progress.add_task("[red]Downloading", total=1000)
+ task2 = progress.add_task("[green]Processing", total=1000)
+ task3 = progress.add_task("[yellow]Thinking", total=None)
+
+ while not progress.finished:
+ progress.update(task1, advance=0.5)
+ progress.update(task2, advance=0.3)
+ time.sleep(0.01)
+ if random.randint(0, 100) < 1:
+ progress.log(next(examples))
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/progress_bar.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/progress_bar.py
new file mode 100644
index 0000000000000000000000000000000000000000..41794f767877ad6330541c076801c8e76e324bbe
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/progress_bar.py
@@ -0,0 +1,223 @@
+import math
+from functools import lru_cache
+from time import monotonic
+from typing import Iterable, List, Optional
+
+from .color import Color, blend_rgb
+from .color_triplet import ColorTriplet
+from .console import Console, ConsoleOptions, RenderResult
+from .jupyter import JupyterMixin
+from .measure import Measurement
+from .segment import Segment
+from .style import Style, StyleType
+
+# Number of characters before 'pulse' animation repeats
+PULSE_SIZE = 20
+
+
+class ProgressBar(JupyterMixin):
+ """Renders a (progress) bar. Used by rich.progress.
+
+ Args:
+ total (float, optional): Number of steps in the bar. Defaults to 100. Set to None to render a pulsing animation.
+ completed (float, optional): Number of steps completed. Defaults to 0.
+ width (int, optional): Width of the bar, or ``None`` for maximum width. Defaults to None.
+ pulse (bool, optional): Enable pulse effect. Defaults to False. Will pulse if a None total was passed.
+ style (StyleType, optional): Style for the bar background. Defaults to "bar.back".
+ complete_style (StyleType, optional): Style for the completed bar. Defaults to "bar.complete".
+ finished_style (StyleType, optional): Style for a finished bar. Defaults to "bar.finished".
+ pulse_style (StyleType, optional): Style for pulsing bars. Defaults to "bar.pulse".
+ animation_time (Optional[float], optional): Time in seconds to use for animation, or None to use system time.
+ """
+
+ def __init__(
+ self,
+ total: Optional[float] = 100.0,
+ completed: float = 0,
+ width: Optional[int] = None,
+ pulse: bool = False,
+ style: StyleType = "bar.back",
+ complete_style: StyleType = "bar.complete",
+ finished_style: StyleType = "bar.finished",
+ pulse_style: StyleType = "bar.pulse",
+ animation_time: Optional[float] = None,
+ ):
+ self.total = total
+ self.completed = completed
+ self.width = width
+ self.pulse = pulse
+ self.style = style
+ self.complete_style = complete_style
+ self.finished_style = finished_style
+ self.pulse_style = pulse_style
+ self.animation_time = animation_time
+
+ self._pulse_segments: Optional[List[Segment]] = None
+
+ def __repr__(self) -> str:
+ return f""
+
+ @property
+ def percentage_completed(self) -> Optional[float]:
+ """Calculate percentage complete."""
+ if self.total is None:
+ return None
+ completed = (self.completed / self.total) * 100.0
+ completed = min(100, max(0.0, completed))
+ return completed
+
+ @lru_cache(maxsize=16)
+ def _get_pulse_segments(
+ self,
+ fore_style: Style,
+ back_style: Style,
+ color_system: str,
+ no_color: bool,
+ ascii: bool = False,
+ ) -> List[Segment]:
+ """Get a list of segments to render a pulse animation.
+
+ Returns:
+ List[Segment]: A list of segments, one segment per character.
+ """
+ bar = "-" if ascii else "━"
+ segments: List[Segment] = []
+ if color_system not in ("standard", "eight_bit", "truecolor") or no_color:
+ segments += [Segment(bar, fore_style)] * (PULSE_SIZE // 2)
+ segments += [Segment(" " if no_color else bar, back_style)] * (
+ PULSE_SIZE - (PULSE_SIZE // 2)
+ )
+ return segments
+
+ append = segments.append
+ fore_color = (
+ fore_style.color.get_truecolor()
+ if fore_style.color
+ else ColorTriplet(255, 0, 255)
+ )
+ back_color = (
+ back_style.color.get_truecolor()
+ if back_style.color
+ else ColorTriplet(0, 0, 0)
+ )
+ cos = math.cos
+ pi = math.pi
+ _Segment = Segment
+ _Style = Style
+ from_triplet = Color.from_triplet
+
+ for index in range(PULSE_SIZE):
+ position = index / PULSE_SIZE
+ fade = 0.5 + cos(position * pi * 2) / 2.0
+ color = blend_rgb(fore_color, back_color, cross_fade=fade)
+ append(_Segment(bar, _Style(color=from_triplet(color))))
+ return segments
+
+ def update(self, completed: float, total: Optional[float] = None) -> None:
+ """Update progress with new values.
+
+ Args:
+ completed (float): Number of steps completed.
+ total (float, optional): Total number of steps, or ``None`` to not change. Defaults to None.
+ """
+ self.completed = completed
+ self.total = total if total is not None else self.total
+
+ def _render_pulse(
+ self, console: Console, width: int, ascii: bool = False
+ ) -> Iterable[Segment]:
+ """Renders the pulse animation.
+
+ Args:
+ console (Console): Console instance.
+ width (int): Width in characters of pulse animation.
+
+ Returns:
+ RenderResult: [description]
+
+ Yields:
+ Iterator[Segment]: Segments to render pulse
+ """
+ fore_style = console.get_style(self.pulse_style, default="white")
+ back_style = console.get_style(self.style, default="black")
+
+ pulse_segments = self._get_pulse_segments(
+ fore_style, back_style, console.color_system, console.no_color, ascii=ascii
+ )
+ segment_count = len(pulse_segments)
+ current_time = (
+ monotonic() if self.animation_time is None else self.animation_time
+ )
+ segments = pulse_segments * (int(width / segment_count) + 2)
+ offset = int(-current_time * 15) % segment_count
+ segments = segments[offset : offset + width]
+ yield from segments
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ width = min(self.width or options.max_width, options.max_width)
+ ascii = options.legacy_windows or options.ascii_only
+ should_pulse = self.pulse or self.total is None
+ if should_pulse:
+ yield from self._render_pulse(console, width, ascii=ascii)
+ return
+
+ completed: Optional[float] = (
+ min(self.total, max(0, self.completed)) if self.total is not None else None
+ )
+
+ bar = "-" if ascii else "━"
+ half_bar_right = " " if ascii else "╸"
+ half_bar_left = " " if ascii else "╺"
+ complete_halves = (
+ int(width * 2 * completed / self.total)
+ if self.total and completed is not None
+ else width * 2
+ )
+ bar_count = complete_halves // 2
+ half_bar_count = complete_halves % 2
+ style = console.get_style(self.style)
+ is_finished = self.total is None or self.completed >= self.total
+ complete_style = console.get_style(
+ self.finished_style if is_finished else self.complete_style
+ )
+ _Segment = Segment
+ if bar_count:
+ yield _Segment(bar * bar_count, complete_style)
+ if half_bar_count:
+ yield _Segment(half_bar_right * half_bar_count, complete_style)
+
+ if not console.no_color:
+ remaining_bars = width - bar_count - half_bar_count
+ if remaining_bars and console.color_system is not None:
+ if not half_bar_count and bar_count:
+ yield _Segment(half_bar_left, style)
+ remaining_bars -= 1
+ if remaining_bars:
+ yield _Segment(bar * remaining_bars, style)
+
+ def __rich_measure__(
+ self, console: Console, options: ConsoleOptions
+ ) -> Measurement:
+ return (
+ Measurement(self.width, self.width)
+ if self.width is not None
+ else Measurement(4, options.max_width)
+ )
+
+
+if __name__ == "__main__": # pragma: no cover
+ console = Console()
+ bar = ProgressBar(width=50, total=100)
+
+ import time
+
+ console.show_cursor(False)
+ for n in range(0, 101, 1):
+ bar.update(n)
+ console.print(bar)
+ console.file.write("\r")
+ time.sleep(0.05)
+ console.show_cursor(True)
+ console.print()
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/themes.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/themes.py
new file mode 100644
index 0000000000000000000000000000000000000000..bf6db104a2c4fd4f3dc699e85f2b262c3d31e9a0
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/themes.py
@@ -0,0 +1,5 @@
+from .default_styles import DEFAULT_STYLES
+from .theme import Theme
+
+
+DEFAULT = Theme(DEFAULT_STYLES)
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/traceback.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/traceback.py
new file mode 100644
index 0000000000000000000000000000000000000000..66eaecaae94bd7c41bf2d901187d389e323969dc
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/traceback.py
@@ -0,0 +1,924 @@
+import inspect
+import linecache
+import os
+import sys
+from dataclasses import dataclass, field
+from itertools import islice
+from traceback import walk_tb
+from types import ModuleType, TracebackType
+from typing import (
+ Any,
+ Callable,
+ Dict,
+ Iterable,
+ List,
+ Optional,
+ Sequence,
+ Set,
+ Tuple,
+ Type,
+ Union,
+)
+
+from pygments.lexers import guess_lexer_for_filename
+from pygments.token import Comment, Keyword, Name, Number, Operator, String
+from pygments.token import Text as TextToken
+from pygments.token import Token
+from pygments.util import ClassNotFound
+
+from . import pretty
+from ._loop import loop_first_last, loop_last
+from .columns import Columns
+from .console import (
+ Console,
+ ConsoleOptions,
+ ConsoleRenderable,
+ OverflowMethod,
+ Group,
+ RenderResult,
+ group,
+)
+from .constrain import Constrain
+from .highlighter import RegexHighlighter, ReprHighlighter
+from .panel import Panel
+from .scope import render_scope
+from .style import Style
+from .syntax import Syntax, SyntaxPosition
+from .text import Text
+from .theme import Theme
+
+WINDOWS = sys.platform == "win32"
+
+LOCALS_MAX_LENGTH = 10
+LOCALS_MAX_STRING = 80
+
+
+def _iter_syntax_lines(
+ start: SyntaxPosition, end: SyntaxPosition
+) -> Iterable[Tuple[int, int, int]]:
+ """Yield start and end positions per line.
+
+ Args:
+ start: Start position.
+ end: End position.
+
+ Returns:
+ Iterable of (LINE, COLUMN1, COLUMN2).
+ """
+
+ line1, column1 = start
+ line2, column2 = end
+
+ if line1 == line2:
+ yield line1, column1, column2
+ else:
+ for first, last, line_no in loop_first_last(range(line1, line2 + 1)):
+ if first:
+ yield line_no, column1, -1
+ elif last:
+ yield line_no, 0, column2
+ else:
+ yield line_no, 0, -1
+
+
+def install(
+ *,
+ console: Optional[Console] = None,
+ width: Optional[int] = 100,
+ code_width: Optional[int] = 88,
+ extra_lines: int = 3,
+ theme: Optional[str] = None,
+ word_wrap: bool = False,
+ show_locals: bool = False,
+ locals_max_length: int = LOCALS_MAX_LENGTH,
+ locals_max_string: int = LOCALS_MAX_STRING,
+ locals_max_depth: Optional[int] = None,
+ locals_hide_dunder: bool = True,
+ locals_hide_sunder: Optional[bool] = None,
+ locals_overflow: Optional[OverflowMethod] = None,
+ indent_guides: bool = True,
+ suppress: Iterable[Union[str, ModuleType]] = (),
+ max_frames: int = 100,
+) -> Callable[[Type[BaseException], BaseException, Optional[TracebackType]], Any]:
+ """Install a rich traceback handler.
+
+ Once installed, any tracebacks will be printed with syntax highlighting and rich formatting.
+
+
+ Args:
+ console (Optional[Console], optional): Console to write exception to. Default uses internal Console instance.
+ width (Optional[int], optional): Width (in characters) of traceback. Defaults to 100.
+ code_width (Optional[int], optional): Code width (in characters) of traceback. Defaults to 88.
+ extra_lines (int, optional): Extra lines of code. Defaults to 3.
+ theme (Optional[str], optional): Pygments theme to use in traceback. Defaults to ``None`` which will pick
+ a theme appropriate for the platform.
+ word_wrap (bool, optional): Enable word wrapping of long lines. Defaults to False.
+ show_locals (bool, optional): Enable display of local variables. Defaults to False.
+ locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
+ Defaults to 10.
+ locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
+ locals_max_depth (int, optional): Maximum depths of locals before truncating, or None to disable. Defaults to None.
+ locals_hide_dunder (bool, optional): Hide locals prefixed with double underscore. Defaults to True.
+ locals_hide_sunder (bool, optional): Hide locals prefixed with single underscore. Defaults to False.
+ locals_overflow (OverflowMethod, optional): How to handle overflowing locals, or None to disable. Defaults to None.
+ indent_guides (bool, optional): Enable indent guides in code and locals. Defaults to True.
+ suppress (Sequence[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.
+
+ Returns:
+ Callable: The previous exception handler that was replaced.
+
+ """
+ traceback_console = Console(stderr=True) if console is None else console
+
+ locals_hide_sunder = (
+ True
+ if (traceback_console.is_jupyter and locals_hide_sunder is None)
+ else locals_hide_sunder
+ )
+
+ def excepthook(
+ type_: Type[BaseException],
+ value: BaseException,
+ traceback: Optional[TracebackType],
+ ) -> None:
+ exception_traceback = Traceback.from_exception(
+ type_,
+ value,
+ traceback,
+ width=width,
+ code_width=code_width,
+ extra_lines=extra_lines,
+ theme=theme,
+ word_wrap=word_wrap,
+ show_locals=show_locals,
+ locals_max_length=locals_max_length,
+ locals_max_string=locals_max_string,
+ locals_max_depth=locals_max_depth,
+ locals_hide_dunder=locals_hide_dunder,
+ locals_hide_sunder=bool(locals_hide_sunder),
+ locals_overflow=locals_overflow,
+ indent_guides=indent_guides,
+ suppress=suppress,
+ max_frames=max_frames,
+ )
+ traceback_console.print(exception_traceback)
+
+ def ipy_excepthook_closure(ip: Any) -> None: # pragma: no cover
+ tb_data = {} # store information about showtraceback call
+ default_showtraceback = ip.showtraceback # keep reference of default traceback
+
+ def ipy_show_traceback(*args: Any, **kwargs: Any) -> None:
+ """wrap the default ip.showtraceback to store info for ip._showtraceback"""
+ nonlocal tb_data
+ tb_data = kwargs
+ default_showtraceback(*args, **kwargs)
+
+ def ipy_display_traceback(
+ *args: Any, is_syntax: bool = False, **kwargs: Any
+ ) -> None:
+ """Internally called traceback from ip._showtraceback"""
+ nonlocal tb_data
+ exc_tuple = ip._get_exc_info()
+
+ # do not display trace on syntax error
+ tb: Optional[TracebackType] = None if is_syntax else exc_tuple[2]
+
+ # determine correct tb_offset
+ compiled = tb_data.get("running_compiled_code", False)
+ tb_offset = tb_data.get("tb_offset")
+ if tb_offset is None:
+ tb_offset = 1 if compiled else 0
+ # remove ipython internal frames from trace with tb_offset
+ for _ in range(tb_offset):
+ if tb is None:
+ break
+ tb = tb.tb_next
+
+ excepthook(exc_tuple[0], exc_tuple[1], tb)
+ tb_data = {} # clear data upon usage
+
+ # replace _showtraceback instead of showtraceback to allow ipython features such as debugging to work
+ # this is also what the ipython docs recommends to modify when subclassing InteractiveShell
+ ip._showtraceback = ipy_display_traceback
+ # add wrapper to capture tb_data
+ ip.showtraceback = ipy_show_traceback
+ ip.showsyntaxerror = lambda *args, **kwargs: ipy_display_traceback(
+ *args, is_syntax=True, **kwargs
+ )
+
+ try: # pragma: no cover
+ # if within ipython, use customized traceback
+ ip = get_ipython() # type: ignore[name-defined]
+ ipy_excepthook_closure(ip)
+ return sys.excepthook
+ except Exception:
+ # otherwise use default system hook
+ old_excepthook = sys.excepthook
+ sys.excepthook = excepthook
+ return old_excepthook
+
+
+@dataclass
+class Frame:
+ filename: str
+ lineno: int
+ name: str
+ line: str = ""
+ locals: Optional[Dict[str, pretty.Node]] = None
+ last_instruction: Optional[Tuple[Tuple[int, int], Tuple[int, int]]] = None
+
+
+@dataclass
+class _SyntaxError:
+ offset: int
+ filename: str
+ line: str
+ lineno: int
+ msg: str
+ notes: List[str] = field(default_factory=list)
+
+
+@dataclass
+class Stack:
+ exc_type: str
+ exc_value: str
+ syntax_error: Optional[_SyntaxError] = None
+ is_cause: bool = False
+ frames: List[Frame] = field(default_factory=list)
+ notes: List[str] = field(default_factory=list)
+ is_group: bool = False
+ exceptions: List["Trace"] = field(default_factory=list)
+
+
+@dataclass
+class Trace:
+ stacks: List[Stack]
+
+
+class PathHighlighter(RegexHighlighter):
+ highlights = [r"(?P.*/)(?P.+)"]
+
+
+class Traceback:
+ """A Console renderable that renders a traceback.
+
+ Args:
+ trace (Trace, optional): A `Trace` object produced from `extract`. Defaults to None, which uses
+ the last exception.
+ width (Optional[int], optional): Number of characters used to traceback. Defaults to 100.
+ code_width (Optional[int], optional): Number of code characters used to traceback. Defaults to 88.
+ extra_lines (int, optional): Additional lines of code to render. Defaults to 3.
+ theme (str, optional): Override pygments theme used in traceback.
+ word_wrap (bool, optional): Enable word wrapping of long lines. Defaults to False.
+ show_locals (bool, optional): Enable display of local variables. Defaults to False.
+ indent_guides (bool, optional): Enable indent guides in code and locals. Defaults to True.
+ locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
+ Defaults to 10.
+ locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
+ locals_max_depth (int, optional): Maximum depths of locals before truncating, or None to disable. Defaults to None.
+ locals_hide_dunder (bool, optional): Hide locals prefixed with double underscore. Defaults to True.
+ locals_hide_sunder (bool, optional): Hide locals prefixed with single underscore. Defaults to False.
+ locals_overflow (OverflowMethod, optional): How to handle overflowing locals, or None to disable. Defaults to None.
+ suppress (Sequence[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.
+ max_frames (int): Maximum number of frames to show in a traceback, 0 for no maximum. Defaults to 100.
+
+ """
+
+ LEXERS = {
+ "": "text",
+ ".py": "python",
+ ".pxd": "cython",
+ ".pyx": "cython",
+ ".pxi": "pyrex",
+ }
+
+ def __init__(
+ self,
+ trace: Optional[Trace] = None,
+ *,
+ width: Optional[int] = 100,
+ code_width: Optional[int] = 88,
+ extra_lines: int = 3,
+ theme: Optional[str] = None,
+ word_wrap: bool = False,
+ show_locals: bool = False,
+ locals_max_length: int = LOCALS_MAX_LENGTH,
+ locals_max_string: int = LOCALS_MAX_STRING,
+ locals_max_depth: Optional[int] = None,
+ locals_hide_dunder: bool = True,
+ locals_hide_sunder: bool = False,
+ locals_overlow: Optional[OverflowMethod] = None,
+ indent_guides: bool = True,
+ suppress: Iterable[Union[str, ModuleType]] = (),
+ max_frames: int = 100,
+ ):
+ if trace is None:
+ exc_type, exc_value, traceback = sys.exc_info()
+ if exc_type is None or exc_value is None or traceback is None:
+ raise ValueError(
+ "Value for 'trace' required if not called in except: block"
+ )
+ trace = self.extract(
+ exc_type, exc_value, traceback, show_locals=show_locals
+ )
+ self.trace = trace
+ self.width = width
+ self.code_width = code_width
+ self.extra_lines = extra_lines
+ self.theme = Syntax.get_theme(theme or "ansi_dark")
+ self.word_wrap = word_wrap
+ self.show_locals = show_locals
+ self.indent_guides = indent_guides
+ self.locals_max_length = locals_max_length
+ self.locals_max_string = locals_max_string
+ self.locals_max_depth = locals_max_depth
+ self.locals_hide_dunder = locals_hide_dunder
+ self.locals_hide_sunder = locals_hide_sunder
+ self.locals_overflow = locals_overlow
+
+ self.suppress: Sequence[str] = []
+ for suppress_entity in suppress:
+ if not isinstance(suppress_entity, str):
+ assert (
+ suppress_entity.__file__ is not None
+ ), f"{suppress_entity!r} must be a module with '__file__' attribute"
+ path = os.path.dirname(suppress_entity.__file__)
+ else:
+ path = suppress_entity
+ path = os.path.normpath(os.path.abspath(path))
+ self.suppress.append(path)
+ self.max_frames = max(4, max_frames) if max_frames > 0 else 0
+
+ @classmethod
+ def from_exception(
+ cls,
+ exc_type: Type[Any],
+ exc_value: BaseException,
+ traceback: Optional[TracebackType],
+ *,
+ width: Optional[int] = 100,
+ code_width: Optional[int] = 88,
+ extra_lines: int = 3,
+ theme: Optional[str] = None,
+ word_wrap: bool = False,
+ show_locals: bool = False,
+ locals_max_length: int = LOCALS_MAX_LENGTH,
+ locals_max_string: int = LOCALS_MAX_STRING,
+ locals_max_depth: Optional[int] = None,
+ locals_hide_dunder: bool = True,
+ locals_hide_sunder: bool = False,
+ locals_overflow: Optional[OverflowMethod] = None,
+ indent_guides: bool = True,
+ suppress: Iterable[Union[str, ModuleType]] = (),
+ max_frames: int = 100,
+ ) -> "Traceback":
+ """Create a traceback from exception info
+
+ Args:
+ exc_type (Type[BaseException]): Exception type.
+ exc_value (BaseException): Exception value.
+ traceback (TracebackType): Python Traceback object.
+ width (Optional[int], optional): Number of characters used to traceback. Defaults to 100.
+ code_width (Optional[int], optional): Number of code characters used to traceback. Defaults to 88.
+ extra_lines (int, optional): Additional lines of code to render. Defaults to 3.
+ theme (str, optional): Override pygments theme used in traceback.
+ word_wrap (bool, optional): Enable word wrapping of long lines. Defaults to False.
+ show_locals (bool, optional): Enable display of local variables. Defaults to False.
+ indent_guides (bool, optional): Enable indent guides in code and locals. Defaults to True.
+ locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
+ Defaults to 10.
+ locals_max_depth (int, optional): Maximum depths of locals before truncating, or None to disable. Defaults to None.
+ locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
+ locals_hide_dunder (bool, optional): Hide locals prefixed with double underscore. Defaults to True.
+ locals_hide_sunder (bool, optional): Hide locals prefixed with single underscore. Defaults to False.
+ locals_overflow (OverflowMethod, optional): How to handle overflowing locals, or None to disable. Defaults to None.
+ suppress (Iterable[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.
+ max_frames (int): Maximum number of frames to show in a traceback, 0 for no maximum. Defaults to 100.
+
+ Returns:
+ Traceback: A Traceback instance that may be printed.
+ """
+ rich_traceback = cls.extract(
+ exc_type,
+ exc_value,
+ traceback,
+ show_locals=show_locals,
+ locals_max_length=locals_max_length,
+ locals_max_string=locals_max_string,
+ locals_max_depth=locals_max_depth,
+ locals_hide_dunder=locals_hide_dunder,
+ locals_hide_sunder=locals_hide_sunder,
+ )
+
+ return cls(
+ rich_traceback,
+ width=width,
+ code_width=code_width,
+ extra_lines=extra_lines,
+ theme=theme,
+ word_wrap=word_wrap,
+ show_locals=show_locals,
+ indent_guides=indent_guides,
+ locals_max_length=locals_max_length,
+ locals_max_string=locals_max_string,
+ locals_max_depth=locals_max_depth,
+ locals_hide_dunder=locals_hide_dunder,
+ locals_hide_sunder=locals_hide_sunder,
+ locals_overlow=locals_overflow,
+ suppress=suppress,
+ max_frames=max_frames,
+ )
+
+ @classmethod
+ def extract(
+ cls,
+ exc_type: Type[BaseException],
+ exc_value: BaseException,
+ traceback: Optional[TracebackType],
+ *,
+ show_locals: bool = False,
+ locals_max_length: int = LOCALS_MAX_LENGTH,
+ locals_max_string: int = LOCALS_MAX_STRING,
+ locals_max_depth: Optional[int] = None,
+ locals_hide_dunder: bool = True,
+ locals_hide_sunder: bool = False,
+ _visited_exceptions: Optional[Set[BaseException]] = None,
+ ) -> Trace:
+ """Extract traceback information.
+
+ Args:
+ exc_type (Type[BaseException]): Exception type.
+ exc_value (BaseException): Exception value.
+ traceback (TracebackType): Python Traceback object.
+ show_locals (bool, optional): Enable display of local variables. Defaults to False.
+ locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
+ Defaults to 10.
+ locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
+ locals_max_depth (int, optional): Maximum depths of locals before truncating, or None to disable. Defaults to None.
+ locals_hide_dunder (bool, optional): Hide locals prefixed with double underscore. Defaults to True.
+ locals_hide_sunder (bool, optional): Hide locals prefixed with single underscore. Defaults to False.
+
+ Returns:
+ Trace: A Trace instance which you can use to construct a `Traceback`.
+ """
+
+ stacks: List[Stack] = []
+ is_cause = False
+
+ from rich import _IMPORT_CWD
+
+ notes: List[str] = getattr(exc_value, "__notes__", None) or []
+
+ grouped_exceptions: Set[BaseException] = (
+ set() if _visited_exceptions is None else _visited_exceptions
+ )
+
+ def safe_str(_object: Any) -> str:
+ """Don't allow exceptions from __str__ to propagate."""
+ try:
+ return str(_object)
+ except Exception:
+ return ""
+
+ while True:
+ stack = Stack(
+ exc_type=safe_str(exc_type.__name__),
+ exc_value=safe_str(exc_value),
+ is_cause=is_cause,
+ notes=notes,
+ )
+
+ if sys.version_info >= (3, 11):
+ if isinstance(exc_value, (BaseExceptionGroup, ExceptionGroup)):
+ stack.is_group = True
+ for exception in exc_value.exceptions:
+ if exception in grouped_exceptions:
+ continue
+ grouped_exceptions.add(exception)
+ stack.exceptions.append(
+ Traceback.extract(
+ type(exception),
+ exception,
+ exception.__traceback__,
+ show_locals=show_locals,
+ locals_max_length=locals_max_length,
+ locals_hide_dunder=locals_hide_dunder,
+ locals_hide_sunder=locals_hide_sunder,
+ _visited_exceptions=grouped_exceptions,
+ )
+ )
+
+ if isinstance(exc_value, SyntaxError):
+ stack.syntax_error = _SyntaxError(
+ offset=exc_value.offset or 0,
+ filename=exc_value.filename or "?",
+ lineno=exc_value.lineno or 0,
+ line=exc_value.text or "",
+ msg=exc_value.msg,
+ notes=notes,
+ )
+
+ stacks.append(stack)
+ append = stack.frames.append
+
+ def get_locals(
+ iter_locals: Iterable[Tuple[str, object]],
+ ) -> Iterable[Tuple[str, object]]:
+ """Extract locals from an iterator of key pairs."""
+ if not (locals_hide_dunder or locals_hide_sunder):
+ yield from iter_locals
+ return
+ for key, value in iter_locals:
+ if locals_hide_dunder and key.startswith("__"):
+ continue
+ if locals_hide_sunder and key.startswith("_"):
+ continue
+ yield key, value
+
+ for frame_summary, line_no in walk_tb(traceback):
+ filename = frame_summary.f_code.co_filename
+
+ last_instruction: Optional[Tuple[Tuple[int, int], Tuple[int, int]]]
+ last_instruction = None
+ if sys.version_info >= (3, 11):
+ instruction_index = frame_summary.f_lasti // 2
+ instruction_position = next(
+ islice(
+ frame_summary.f_code.co_positions(),
+ instruction_index,
+ instruction_index + 1,
+ )
+ )
+ (
+ start_line,
+ end_line,
+ start_column,
+ end_column,
+ ) = instruction_position
+ if (
+ start_line is not None
+ and end_line is not None
+ and start_column is not None
+ and end_column is not None
+ ):
+ last_instruction = (
+ (start_line, start_column),
+ (end_line, end_column),
+ )
+
+ if filename and not filename.startswith("<"):
+ if not os.path.isabs(filename):
+ filename = os.path.join(_IMPORT_CWD, filename)
+ if frame_summary.f_locals.get("_rich_traceback_omit", False):
+ continue
+
+ frame = Frame(
+ filename=filename or "?",
+ lineno=line_no,
+ name=frame_summary.f_code.co_name,
+ locals=(
+ {
+ key: pretty.traverse(
+ value,
+ max_length=locals_max_length,
+ max_string=locals_max_string,
+ max_depth=locals_max_depth,
+ )
+ for key, value in get_locals(frame_summary.f_locals.items())
+ if not (inspect.isfunction(value) or inspect.isclass(value))
+ }
+ if show_locals
+ else None
+ ),
+ last_instruction=last_instruction,
+ )
+ append(frame)
+ if frame_summary.f_locals.get("_rich_traceback_guard", False):
+ del stack.frames[:]
+
+ if not grouped_exceptions:
+ cause = getattr(exc_value, "__cause__", None)
+ if cause is not None and cause is not exc_value:
+ exc_type = cause.__class__
+ exc_value = cause
+ # __traceback__ can be None, e.g. for exceptions raised by the
+ # 'multiprocessing' module
+ traceback = cause.__traceback__
+ is_cause = True
+ continue
+
+ cause = exc_value.__context__
+ if cause is not None and not getattr(
+ exc_value, "__suppress_context__", False
+ ):
+ exc_type = cause.__class__
+ exc_value = cause
+ traceback = cause.__traceback__
+ is_cause = False
+ continue
+ # No cover, code is reached but coverage doesn't recognize it.
+ break # pragma: no cover
+
+ trace = Trace(stacks=stacks)
+
+ return trace
+
+ def __rich_console__(
+ self, console: Console, options: ConsoleOptions
+ ) -> RenderResult:
+ theme = self.theme
+ background_style = theme.get_background_style()
+ token_style = theme.get_style_for_token
+
+ traceback_theme = Theme(
+ {
+ "pretty": token_style(TextToken),
+ "pygments.text": token_style(Token),
+ "pygments.string": token_style(String),
+ "pygments.function": token_style(Name.Function),
+ "pygments.number": token_style(Number),
+ "repr.indent": token_style(Comment) + Style(dim=True),
+ "repr.str": token_style(String),
+ "repr.brace": token_style(TextToken) + Style(bold=True),
+ "repr.number": token_style(Number),
+ "repr.bool_true": token_style(Keyword.Constant),
+ "repr.bool_false": token_style(Keyword.Constant),
+ "repr.none": token_style(Keyword.Constant),
+ "scope.border": token_style(String.Delimiter),
+ "scope.equals": token_style(Operator),
+ "scope.key": token_style(Name),
+ "scope.key.special": token_style(Name.Constant) + Style(dim=True),
+ },
+ inherit=False,
+ )
+
+ highlighter = ReprHighlighter()
+
+ @group()
+ def render_stack(stack: Stack, last: bool) -> RenderResult:
+ if stack.frames:
+ stack_renderable: ConsoleRenderable = Panel(
+ self._render_stack(stack),
+ title="[traceback.title]Traceback [dim](most recent call last)",
+ style=background_style,
+ border_style="traceback.border",
+ expand=True,
+ padding=(0, 1),
+ )
+ stack_renderable = Constrain(stack_renderable, self.width)
+ with console.use_theme(traceback_theme):
+ yield stack_renderable
+
+ if stack.syntax_error is not None:
+ with console.use_theme(traceback_theme):
+ yield Constrain(
+ Panel(
+ self._render_syntax_error(stack.syntax_error),
+ style=background_style,
+ border_style="traceback.border.syntax_error",
+ expand=True,
+ padding=(0, 1),
+ width=self.width,
+ ),
+ self.width,
+ )
+ yield Text.assemble(
+ (f"{stack.exc_type}: ", "traceback.exc_type"),
+ highlighter(stack.syntax_error.msg),
+ )
+ elif stack.exc_value:
+ yield Text.assemble(
+ (f"{stack.exc_type}: ", "traceback.exc_type"),
+ highlighter(stack.exc_value),
+ )
+ else:
+ yield Text.assemble((f"{stack.exc_type}", "traceback.exc_type"))
+
+ for note in stack.notes:
+ yield Text.assemble(("[NOTE] ", "traceback.note"), highlighter(note))
+
+ if stack.is_group:
+ for group_no, group_exception in enumerate(stack.exceptions, 1):
+ grouped_exceptions: List[Group] = []
+ for group_last, group_stack in loop_last(group_exception.stacks):
+ grouped_exceptions.append(render_stack(group_stack, group_last))
+ yield ""
+ yield Constrain(
+ Panel(
+ Group(*grouped_exceptions),
+ title=f"Sub-exception #{group_no}",
+ border_style="traceback.group.border",
+ ),
+ self.width,
+ )
+
+ if not last:
+ if stack.is_cause:
+ yield Text.from_markup(
+ "\n[i]The above exception was the direct cause of the following exception:\n",
+ )
+ else:
+ yield Text.from_markup(
+ "\n[i]During handling of the above exception, another exception occurred:\n",
+ )
+
+ for last, stack in loop_last(reversed(self.trace.stacks)):
+ yield render_stack(stack, last)
+
+ @group()
+ def _render_syntax_error(self, syntax_error: _SyntaxError) -> RenderResult:
+ highlighter = ReprHighlighter()
+ path_highlighter = PathHighlighter()
+ if syntax_error.filename != "":
+ if os.path.exists(syntax_error.filename):
+ text = Text.assemble(
+ (f" {syntax_error.filename}", "pygments.string"),
+ (":", "pygments.text"),
+ (str(syntax_error.lineno), "pygments.number"),
+ style="pygments.text",
+ )
+ yield path_highlighter(text)
+ syntax_error_text = highlighter(syntax_error.line.rstrip())
+ syntax_error_text.no_wrap = True
+ offset = min(syntax_error.offset - 1, len(syntax_error_text))
+ syntax_error_text.stylize("bold underline", offset, offset)
+ syntax_error_text += Text.from_markup(
+ "\n" + " " * offset + "[traceback.offset]▲[/]",
+ style="pygments.text",
+ )
+ yield syntax_error_text
+
+ @classmethod
+ def _guess_lexer(cls, filename: str, code: str) -> str:
+ ext = os.path.splitext(filename)[-1]
+ if not ext:
+ # No extension, look at first line to see if it is a hashbang
+ # Note, this is an educated guess and not a guarantee
+ # If it fails, the only downside is that the code is highlighted strangely
+ new_line_index = code.index("\n")
+ first_line = code[:new_line_index] if new_line_index != -1 else code
+ if first_line.startswith("#!") and "python" in first_line.lower():
+ return "python"
+ try:
+ return cls.LEXERS.get(ext) or guess_lexer_for_filename(filename, code).name
+ except ClassNotFound:
+ return "text"
+
+ @group()
+ def _render_stack(self, stack: Stack) -> RenderResult:
+ path_highlighter = PathHighlighter()
+ theme = self.theme
+
+ def render_locals(frame: Frame) -> Iterable[ConsoleRenderable]:
+ if frame.locals:
+ yield render_scope(
+ frame.locals,
+ title="locals",
+ indent_guides=self.indent_guides,
+ max_length=self.locals_max_length,
+ max_string=self.locals_max_string,
+ max_depth=self.locals_max_depth,
+ overflow=self.locals_overflow,
+ )
+
+ exclude_frames: Optional[range] = None
+ if self.max_frames != 0:
+ exclude_frames = range(
+ self.max_frames // 2,
+ len(stack.frames) - self.max_frames // 2,
+ )
+
+ excluded = False
+ for frame_index, frame in enumerate(stack.frames):
+ if exclude_frames and frame_index in exclude_frames:
+ excluded = True
+ continue
+
+ if excluded:
+ assert exclude_frames is not None
+ yield Text(
+ f"\n... {len(exclude_frames)} frames hidden ...",
+ justify="center",
+ style="traceback.error",
+ )
+ excluded = False
+
+ first = frame_index == 0
+ frame_filename = frame.filename
+ suppressed = any(frame_filename.startswith(path) for path in self.suppress)
+
+ if os.path.exists(frame.filename):
+ text = Text.assemble(
+ path_highlighter(Text(frame.filename, style="pygments.string")),
+ (":", "pygments.text"),
+ (str(frame.lineno), "pygments.number"),
+ " in ",
+ (frame.name, "pygments.function"),
+ style="pygments.text",
+ )
+ else:
+ text = Text.assemble(
+ "in ",
+ (frame.name, "pygments.function"),
+ (":", "pygments.text"),
+ (str(frame.lineno), "pygments.number"),
+ style="pygments.text",
+ )
+ if not frame.filename.startswith("<") and not first:
+ yield ""
+ yield text
+ if frame.filename.startswith("<"):
+ yield from render_locals(frame)
+ continue
+ if not suppressed:
+ try:
+ code_lines = linecache.getlines(frame.filename)
+ code = "".join(code_lines)
+ if not code:
+ # code may be an empty string if the file doesn't exist, OR
+ # if the traceback filename is generated dynamically
+ continue
+ lexer_name = self._guess_lexer(frame.filename, code)
+ syntax = Syntax(
+ code,
+ lexer_name,
+ theme=theme,
+ line_numbers=True,
+ line_range=(
+ frame.lineno - self.extra_lines,
+ frame.lineno + self.extra_lines,
+ ),
+ highlight_lines={frame.lineno},
+ word_wrap=self.word_wrap,
+ code_width=self.code_width,
+ indent_guides=self.indent_guides,
+ dedent=False,
+ )
+ yield ""
+ except Exception as error:
+ yield Text.assemble(
+ (f"\n{error}", "traceback.error"),
+ )
+ else:
+ if frame.last_instruction is not None:
+ start, end = frame.last_instruction
+
+ # Stylize a line at a time
+ # So that indentation isn't underlined (which looks bad)
+ for line1, column1, column2 in _iter_syntax_lines(start, end):
+ try:
+ if column1 == 0:
+ line = code_lines[line1 - 1]
+ column1 = len(line) - len(line.lstrip())
+ if column2 == -1:
+ column2 = len(code_lines[line1 - 1])
+ except IndexError:
+ # Being defensive here
+ # If last_instruction reports a line out-of-bounds, we don't want to crash
+ continue
+
+ syntax.stylize_range(
+ style="traceback.error_range",
+ start=(line1, column1),
+ end=(line1, column2),
+ )
+ yield (
+ Columns(
+ [
+ syntax,
+ *render_locals(frame),
+ ],
+ padding=1,
+ )
+ if frame.locals
+ else syntax
+ )
+
+
+if __name__ == "__main__": # pragma: no cover
+ install(show_locals=True)
+ import sys
+
+ def bar(
+ a: Any,
+ ) -> None: # 这是对亚洲语言支持的测试。面对模棱两可的想法,拒绝猜测的诱惑
+ one = 1
+ print(one / a)
+
+ def foo(a: Any) -> None:
+ _rich_traceback_guard = True
+ zed = {
+ "characters": {
+ "Paul Atreides",
+ "Vladimir Harkonnen",
+ "Thufir Hawat",
+ "Duncan Idaho",
+ },
+ "atomic_types": (None, False, True),
+ }
+ bar(a)
+
+ def error() -> None:
+ foo(0)
+
+ error()
diff --git a/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/tree.py b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/tree.py
new file mode 100644
index 0000000000000000000000000000000000000000..9a87d60ded6fc3c8a6e678644dbf2931005dc71f
--- /dev/null
+++ b/.cache/uv/archive-v0/_QxAf0YBiX9_BJEuGlXFM/rich/tree.py
@@ -0,0 +1,257 @@
+from typing import Iterator, List, Optional, Tuple
+
+from ._loop import loop_first, loop_last
+from .console import Console, ConsoleOptions, RenderableType, RenderResult
+from .jupyter import JupyterMixin
+from .measure import Measurement
+from .segment import Segment
+from .style import Style, StyleStack, StyleType
+from .styled import Styled
+
+GuideType = Tuple[str, str, str, str]
+
+
+class Tree(JupyterMixin):
+ """A renderable for a tree structure.
+
+ Attributes:
+ ASCII_GUIDES (GuideType): Guide lines used when Console.ascii_only is True.
+ TREE_GUIDES (List[GuideType, GuideType, GuideType]): Default guide lines.
+
+ Args:
+ label (RenderableType): The renderable or str for the tree label.
+ style (StyleType, optional): Style of this tree. Defaults to "tree".
+ guide_style (StyleType, optional): Style of the guide lines. Defaults to "tree.line".
+ expanded (bool, optional): Also display children. Defaults to True.
+ highlight (bool, optional): Highlight renderable (if str). Defaults to False.
+ hide_root (bool, optional): Hide the root node. Defaults to False.
+ """
+
+ ASCII_GUIDES = (" ", "| ", "+-- ", "`-- ")
+ TREE_GUIDES = [
+ (" ", "│ ", "├── ", "└── "),
+ (" ", "┃ ", "┣━━ ", "┗━━ "),
+ (" ", "║ ", "╠══ ", "╚══ "),
+ ]
+
+ def __init__(
+ self,
+ label: RenderableType,
+ *,
+ style: StyleType = "tree",
+ guide_style: StyleType = "tree.line",
+ expanded: bool = True,
+ highlight: bool = False,
+ hide_root: bool = False,
+ ) -> None:
+ self.label = label
+ self.style = style
+ self.guide_style = guide_style
+ self.children: List[Tree] = []
+ self.expanded = expanded
+ self.highlight = highlight
+ self.hide_root = hide_root
+
+ def add(
+ self,
+ label: RenderableType,
+ *,
+ style: Optional[StyleType] = None,
+ guide_style: Optional[StyleType] = None,
+ expanded: bool = True,
+ highlight: Optional[bool] = False,
+ ) -> "Tree":
+ """Add a child tree.
+
+ Args:
+ label (RenderableType): The renderable or str for the tree label.
+ style (StyleType, optional): Style of this tree. Defaults to "tree".
+ guide_style (StyleType, optional): Style of the guide lines. Defaults to "tree.line".
+ expanded (bool, optional): Also display children. Defaults to True.
+ highlight (Optional[bool], optional): Highlight renderable (if str). Defaults to False.
+
+ Returns:
+ Tree: A new child Tree, which may be further modified.
+ """
+ node = Tree(
+ label,
+ style=self.style if style is None else style,
+ guide_style=self.guide_style if guide_style is None else guide_style,
+ expanded=expanded,
+ highlight=self.highlight if highlight is None else highlight,
+ )
+ self.children.append(node)
+ return node
+
+ def __rich_console__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "RenderResult":
+ stack: List[Iterator[Tuple[bool, Tree]]] = []
+ pop = stack.pop
+ push = stack.append
+ new_line = Segment.line()
+
+ get_style = console.get_style
+ null_style = Style.null()
+ guide_style = get_style(self.guide_style, default="") or null_style
+ SPACE, CONTINUE, FORK, END = range(4)
+
+ _Segment = Segment
+
+ def make_guide(index: int, style: Style) -> Segment:
+ """Make a Segment for a level of the guide lines."""
+ if options.ascii_only:
+ line = self.ASCII_GUIDES[index]
+ else:
+ guide = 1 if style.bold else (2 if style.underline2 else 0)
+ line = self.TREE_GUIDES[0 if options.legacy_windows else guide][index]
+ return _Segment(line, style)
+
+ levels: List[Segment] = [make_guide(CONTINUE, guide_style)]
+ push(iter(loop_last([self])))
+
+ guide_style_stack = StyleStack(get_style(self.guide_style))
+ style_stack = StyleStack(get_style(self.style))
+ remove_guide_styles = Style(bold=False, underline2=False)
+
+ depth = 0
+
+ while stack:
+ stack_node = pop()
+ try:
+ last, node = next(stack_node)
+ except StopIteration:
+ levels.pop()
+ if levels:
+ guide_style = levels[-1].style or null_style
+ levels[-1] = make_guide(FORK, guide_style)
+ guide_style_stack.pop()
+ style_stack.pop()
+ continue
+ push(stack_node)
+ if last:
+ levels[-1] = make_guide(END, levels[-1].style or null_style)
+
+ guide_style = guide_style_stack.current + get_style(node.guide_style)
+ style = style_stack.current + get_style(node.style)
+ prefix = levels[(2 if self.hide_root else 1) :]
+ renderable_lines = console.render_lines(
+ Styled(node.label, style),
+ options.update(
+ width=options.max_width
+ - sum(level.cell_length for level in prefix),
+ highlight=self.highlight,
+ height=None,
+ ),
+ pad=options.justify is not None,
+ )
+
+ if not (depth == 0 and self.hide_root):
+ for first, line in loop_first(renderable_lines):
+ if prefix:
+ yield from _Segment.apply_style(
+ prefix,
+ style.background_style,
+ post_style=remove_guide_styles,
+ )
+ yield from line
+ yield new_line
+ if first and prefix:
+ prefix[-1] = make_guide(
+ SPACE if last else CONTINUE, prefix[-1].style or null_style
+ )
+
+ if node.expanded and node.children:
+ levels[-1] = make_guide(
+ SPACE if last else CONTINUE, levels[-1].style or null_style
+ )
+ levels.append(
+ make_guide(END if len(node.children) == 1 else FORK, guide_style)
+ )
+ style_stack.push(get_style(node.style))
+ guide_style_stack.push(get_style(node.guide_style))
+ push(iter(loop_last(node.children)))
+ depth += 1
+
+ def __rich_measure__(
+ self, console: "Console", options: "ConsoleOptions"
+ ) -> "Measurement":
+ stack: List[Iterator[Tree]] = [iter([self])]
+ pop = stack.pop
+ push = stack.append
+ minimum = 0
+ maximum = 0
+ measure = Measurement.get
+ level = 0
+ while stack:
+ iter_tree = pop()
+ try:
+ tree = next(iter_tree)
+ except StopIteration:
+ level -= 1
+ continue
+ push(iter_tree)
+ min_measure, max_measure = measure(console, options, tree.label)
+ indent = level * 4
+ minimum = max(min_measure + indent, minimum)
+ maximum = max(max_measure + indent, maximum)
+ if tree.expanded and tree.children:
+ push(iter(tree.children))
+ level += 1
+ return Measurement(minimum, maximum)
+
+
+if __name__ == "__main__": # pragma: no cover
+ from rich.console import Group
+ from rich.markdown import Markdown
+ from rich.panel import Panel
+ from rich.syntax import Syntax
+ from rich.table import Table
+
+ table = Table(row_styles=["", "dim"])
+
+ table.add_column("Released", style="cyan", no_wrap=True)
+ table.add_column("Title", style="magenta")
+ table.add_column("Box Office", justify="right", style="green")
+
+ table.add_row("Dec 20, 2019", "Star Wars: The Rise of Skywalker", "$952,110,690")
+ table.add_row("May 25, 2018", "Solo: A Star Wars Story", "$393,151,347")
+ table.add_row("Dec 15, 2017", "Star Wars Ep. V111: The Last Jedi", "$1,332,539,889")
+ table.add_row("Dec 16, 2016", "Rogue One: A Star Wars Story", "$1,332,439,889")
+
+ code = """\
+class Segment(NamedTuple):
+ text: str = ""
+ style: Optional[Style] = None
+ is_control: bool = False
+"""
+ syntax = Syntax(code, "python", theme="monokai", line_numbers=True)
+
+ markdown = Markdown(
+ """\
+### example.md
+> Hello, World!
+>
+> Markdown _all_ the things
+"""
+ )
+
+ root = Tree("🌲 [b green]Rich Tree", highlight=True, hide_root=True)
+
+ node = root.add(":file_folder: Renderables", guide_style="red")
+ simple_node = node.add(":file_folder: [bold yellow]Atomic", guide_style="uu green")
+ simple_node.add(Group("📄 Syntax", syntax))
+ simple_node.add(Group("📄 Markdown", Panel(markdown, border_style="green")))
+
+ containers_node = node.add(
+ ":file_folder: [bold magenta]Containers", guide_style="bold magenta"
+ )
+ containers_node.expanded = True
+ panel = Panel.fit("Just a panel", border_style="red")
+ containers_node.add(Group("📄 Panels", panel))
+
+ containers_node.add(Group("📄 [b magenta]Table", table))
+
+ console = Console()
+
+ console.print(root)
diff --git a/.cache/uv/archive-v0/pOmiAmyns1LMB4Q3lIUhP/fsspec-2026.4.0.dist-info/RECORD b/.cache/uv/archive-v0/pOmiAmyns1LMB4Q3lIUhP/fsspec-2026.4.0.dist-info/RECORD
new file mode 100644
index 0000000000000000000000000000000000000000..e2d73669475d5c887b58c1c72b104dfd8346c1d7
--- /dev/null
+++ b/.cache/uv/archive-v0/pOmiAmyns1LMB4Q3lIUhP/fsspec-2026.4.0.dist-info/RECORD
@@ -0,0 +1,61 @@
+fsspec/__init__.py,sha256=L7qwNBU1iMNQd8Of87HYSNFT9gWlNMSESaJC8fY0AaQ,2053
+fsspec/_version.py,sha256=pmVqnxq2zqVsksIat3OOIfF2Y5tX9d_HhLG4e1wXe80,526
+fsspec/archive.py,sha256=vM6t_lgV6lBWbBYwpm3S4ofBQFQxUPr5KkDQrrQcQro,2411
+fsspec/asyn.py,sha256=8vfpg8iNXerqo9byws0HmMzygZJ_LrMJ_jhS5b3sI10,37585
+fsspec/caching.py,sha256=YJm7SjQTxOgyavKvAE0CST_GR0mpnEjnIIWCdE1QbLk,34024
+fsspec/callbacks.py,sha256=BDIwLzK6rr_0V5ch557fSzsivCElpdqhXr5dZ9Te-EE,9210
+fsspec/compression.py,sha256=3v_Fe39gzRRWfaeXpzNjAGPqgTzmETYRCo3qHVqD3po,5132
+fsspec/config.py,sha256=mHKzAgjXa_LwqtO_VoTJJ568VqwYkbK3gUp4J6JZJp4,4238
+fsspec/conftest.py,sha256=uWfm_Qs5alPRxOhRpDfQ0-1jqSJ54pni4y96IxOREXM,3446
+fsspec/core.py,sha256=lc7XSnZU6_C6xljp7Z_xEGN3V7704hbeQLkxvPP0wds,24173
+fsspec/dircache.py,sha256=YzogWJrhEastHU7vWz-cJiJ7sdtLXFXhEpInGKd4EcM,2717
+fsspec/exceptions.py,sha256=pauSLDMxzTJMOjvX1WEUK0cMyFkrFxpWJsyFywav7A8,331
+fsspec/fuse.py,sha256=Q-3NOOyLqBfYa4Db5E19z_ZY36zzYHtIs1mOUasItBQ,10177
+fsspec/generic.py,sha256=9QHQYMNb-8w8-eYuIqShcTjO_LeHXFoQTyt8J5oEq5Q,13482
+fsspec/gui.py,sha256=CQ7QsrTpaDlWSLNOpwNoJc7khOcYXIZxmrAJN9bHWQU,14002
+fsspec/json.py,sha256=4EBZ-xOmRiyxmIqPIwxmDImosRQ7io7qBM2xjJPsEE4,3768
+fsspec/mapping.py,sha256=m2ndB_gtRBXYmNJg0Ie1-BVR75TFleHmIQBzC-yWhjU,8343
+fsspec/parquet.py,sha256=0SzfswUTc2k5nAj7xZNYPPyvUkFNXznFRXXtBRhr-iE,20506
+fsspec/registry.py,sha256=KeDNL9HOyHX_D4D4qQGAI-Y3DQhiLeUC1VK2I81NZaE,12344
+fsspec/spec.py,sha256=XKhR4bDdhuhaGcMhgKThCmi6sBwv6cSRMr0SSFmCBHE,77766
+fsspec/transaction.py,sha256=xliRG6U2Zf3khG4xcw9WiB-yAoqJSHEGK_VjHOdtgo0,2398
+fsspec/utils.py,sha256=E24ji0XLWC6n3bw2sHA28OYxrGU9Wy_al2XydsRgrRk,23623
+fsspec/implementations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
+fsspec/implementations/arrow.py,sha256=8FhvcvOYLZNMMegCYFFCEHgEqig8AkOU7Ehb8XfcgnA,8890
+fsspec/implementations/asyn_wrapper.py,sha256=3lfJkGs6D_AwRBdxTSYlL-RCVdaXBZ9Itys2P5o5Si0,3738
+fsspec/implementations/cache_mapper.py,sha256=W4wlxyPxZbSp9ItJ0pYRVBMh6bw9eFypgP6kUYuuiI4,2421
+fsspec/implementations/cache_metadata.py,sha256=_AGOfy46vIDseS7eQRk7IgmKMbKhEksOv9PuW7Lo5YA,8502
+fsspec/implementations/cached.py,sha256=38B4qVDDXRh65Zb_JXy2-lJOxtdgUdBgNdy-oBe6jGw,36375
+fsspec/implementations/chained.py,sha256=iGivpNaHUFjB_ea0-HAPhcmm6CL8qnDf270PSj7JwuE,680
+fsspec/implementations/dask.py,sha256=CXZbJzIVOhKV8ILcxuy3bTvcacCueAbyQxmvAkbPkrk,4466
+fsspec/implementations/data.py,sha256=IhOGDkacYp5gkl9jhEu4msQfZPb0gS5Q_ml7Mbr6dgQ,1627
+fsspec/implementations/dbfs.py,sha256=1cvvC6KBWOb8pBVpc01xavVbEPXO1xsgZvPD7H73M9k,16217
+fsspec/implementations/dirfs.py,sha256=5JAp_nn9v1OjKY3MwuRkLrqeZ8gGYlILSQRqkQQdz7k,12624
+fsspec/implementations/ftp.py,sha256=fJhaMIKq2RvzYlLwG3bewy2jq4iRqjVt1aIpwtUIRwI,13235
+fsspec/implementations/gist.py,sha256=Y6jTDrE-wuTwvpPyAQDuuOMBGxlajafKWoB1_yX6jdY,8528
+fsspec/implementations/git.py,sha256=qBDWMz5LNllPqVjr5jf_1FuNha4P5lyQI3IlhYg-wUE,3731
+fsspec/implementations/github.py,sha256=aCsZL8UvXZgdkcB1RUs3DdLeNrjLKcFsFYeQFDWbBFo,11653
+fsspec/implementations/http.py,sha256=1uWwxllOjPe8mQD54IrCYQJHU1YaAXh_cDmXBk-AoQ8,30894
+fsspec/implementations/http_sync.py,sha256=UmBqd938ebwVjYgVtzg-ysG3ZoGhIJw0wFtQAfxV3Aw,30332
+fsspec/implementations/jupyter.py,sha256=q1PlQ66AAswGFyr8MFKWyobaV2YekMWRtqENBDQtD28,4002
+fsspec/implementations/libarchive.py,sha256=SpIA1F-zf7kb2-VYUVuhMrXTBOhBxUXKgEW1RaAdDoA,7098
+fsspec/implementations/local.py,sha256=aVEUnAB2hkxmweXLCiB4XD_KPwDL-gMX4dN9Fz-pk7k,17161
+fsspec/implementations/memory.py,sha256=TDdLtSPWXxZKrrVGwmc3uS3oK_2mlcVTk2BiqR8IeII,10507
+fsspec/implementations/reference.py,sha256=9FDzS7nzxifOnd9azaeBiuSuspSDTQ0YiTYdflJrEFs,49198
+fsspec/implementations/sftp.py,sha256=v7t-LpD4hEycHnw1kbepyoNgrhClshXQXitFuY4mBWE,5951
+fsspec/implementations/smb.py,sha256=5fhu8h06nOLBPh2c48aT7WBRqh9cEcbIwtyu06wTjec,15236
+fsspec/implementations/tar.py,sha256=0gqTHdwmwQI1Ia8rNQjuAVjNgrEFKPbdPkmndR9vpmk,4451
+fsspec/implementations/webhdfs.py,sha256=osF2m0nhDil6sbMzYW_4DZzhxF4ygtb59XDiybd9Fyg,17589
+fsspec/implementations/zip.py,sha256=GPDJh4UtUNJmaqijUQ0eiEZIGpwusQjkIcbhsrmLSi0,6263
+fsspec/tests/abstract/__init__.py,sha256=4xUJrv7gDgc85xAOz1p-V_K1hrsdMWTSa0rviALlJk8,10181
+fsspec/tests/abstract/common.py,sha256=1GQwNo5AONzAnzZj0fWgn8NJPLXALehbsuGxS3FzWVU,4973
+fsspec/tests/abstract/copy.py,sha256=gU5-d97U3RSde35Vp4RxPY4rWwL744HiSrJ8IBOp9-8,19967
+fsspec/tests/abstract/get.py,sha256=vNR4HztvTR7Cj56AMo7_tx7TeYz1Jgr_2Wb8Lv-UiBY,20755
+fsspec/tests/abstract/mv.py,sha256=k8eUEBIrRrGMsBY5OOaDXdGnQUKGwDIfQyduB6YD3Ns,1982
+fsspec/tests/abstract/open.py,sha256=Fi2PBPYLbRqysF8cFm0rwnB41kMdQVYjq8cGyDXp3BU,329
+fsspec/tests/abstract/pipe.py,sha256=LFzIrLCB5GLXf9rzFKJmE8AdG7LQ_h4bJo70r8FLPqM,402
+fsspec/tests/abstract/put.py,sha256=7aih17OKB_IZZh1Mkq1eBDIjobhtMQmI8x-Pw-S_aZk,21201
+fsspec-2026.4.0.dist-info/METADATA,sha256=j0nEQEtQcYKslT39RVFkHfC_Nsz2fgisimjM4yO_HUw,10524
+fsspec-2026.4.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
+fsspec-2026.4.0.dist-info/licenses/LICENSE,sha256=LcNUls5TpzB5FcAIqESq1T53K0mzTN0ARFBnaRQH7JQ,1513
+fsspec-2026.4.0.dist-info/RECORD,,
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/_hot_reload/__init__.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/_hot_reload/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..ef08599ad40fcb6d55fac1c397597f68b8b52084
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/_hot_reload/__init__.py
@@ -0,0 +1,13 @@
+# Copyright 2026 The HuggingFace Team. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/_hot_reload/client.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/_hot_reload/client.py
new file mode 100644
index 0000000000000000000000000000000000000000..1c3dc30938ce81e32886d5e585bdab8a33fe5218
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/_hot_reload/client.py
@@ -0,0 +1,130 @@
+# Copyright 2026 The HuggingFace Team. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+import json
+import time
+from collections import deque
+from collections.abc import Iterator
+from typing import Literal, TypedDict
+
+import httpx
+
+from ..utils._headers import build_hf_headers
+from ..utils._http import hf_raise_for_status
+from .sse_client import SSEClient
+from .types import ApiGetReloadEventSourceData, ApiGetReloadRequest
+
+
+HOT_RELOADING_PORT = 7887
+CLIENT_TIMEOUT = 20
+
+
+class MultiReplicaStreamWarning(TypedDict):
+ kind: Literal["warning"]
+ message: str
+
+
+class MultiReplicaStreamEvent(TypedDict):
+ kind: Literal["event"]
+ event: ApiGetReloadEventSourceData
+
+
+class MultiReplicaStreamReplicaHash(TypedDict):
+ kind: Literal["replicaHash"]
+ hash: str
+
+
+class MultiReplicaStreamFullMatch(TypedDict):
+ kind: Literal["fullMatch"]
+
+
+class ReloadClient:
+ def __init__(
+ self,
+ *,
+ host: str,
+ subdomain: str,
+ replica_hash: str,
+ token: str | None,
+ ):
+ base_host = host.replace(subdomain, f"{subdomain}--{HOT_RELOADING_PORT}")
+ self.replica_hash = replica_hash
+ self.client = httpx.Client(
+ base_url=f"{base_host}/--replicas/+{replica_hash}",
+ headers=build_hf_headers(token=token),
+ timeout=CLIENT_TIMEOUT,
+ )
+
+ def get_reload(self, reload_id: str) -> Iterator[ApiGetReloadEventSourceData] | int:
+ req = ApiGetReloadRequest(reloadId=reload_id)
+ with self.client.stream("POST", "/get-reload", json=req) as res:
+ if res.status_code != 200:
+ return res.status_code
+ hf_raise_for_status(res)
+ for event in SSEClient(res.iter_bytes()).events():
+ if event.event == "message":
+ yield json.loads(event.data)
+ return None
+
+
+def multi_replica_reload_events(
+ commit_sha: str,
+ host: str,
+ subdomain: str,
+ replica_hashes: list[str],
+ token: str | None,
+ max_retries: int = 10,
+) -> Iterator[
+ MultiReplicaStreamWarning | MultiReplicaStreamEvent | MultiReplicaStreamReplicaHash | MultiReplicaStreamFullMatch
+]:
+ clients = [
+ ReloadClient(
+ host=host,
+ subdomain=subdomain,
+ replica_hash=hash,
+ token=token,
+ )
+ for hash in replica_hashes
+ ]
+
+ first_client_events: dict[int, ApiGetReloadEventSourceData] = {}
+ for client_index, client in enumerate(clients):
+ if len(clients) > 1:
+ yield {"kind": "replicaHash", "hash": client.replica_hash}
+
+ retries = 0
+ while isinstance((events := client.get_reload(commit_sha)), int):
+ if (retries := retries + 1) > max_retries:
+ raise Exception("Too many retries reached")
+ if (status_code := events) not in (200, 204):
+ raise Exception(f"Unexpected {status_code=} on `ReloadClient.get_reload`")
+ subject = "reloadId" if status_code == 204 else "replica"
+ yield {"kind": "warning", "message": f"Retrying on unexpected {subject} not found"}
+ time.sleep(2)
+
+ full_match = True
+ replay: deque[ApiGetReloadEventSourceData] = deque()
+ for event_index, event in enumerate(events):
+ if client_index == 0:
+ first_client_events[event_index] = event
+ elif full_match := full_match and first_client_events.get(event_index) == event:
+ replay.append(event)
+ continue
+ while replay:
+ yield {"kind": "event", "event": replay.popleft()}
+ yield {"kind": "event", "event": event}
+
+ if client_index > 0 and full_match:
+ yield {"kind": "fullMatch"}
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/_hot_reload/sse_client.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/_hot_reload/sse_client.py
new file mode 100644
index 0000000000000000000000000000000000000000..2dab959bbd62045adff1d8d51438acd5bd062265
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/_hot_reload/sse_client.py
@@ -0,0 +1,144 @@
+"""
+Vendored file: Server Side Events (SSE) client for Python.
+
+Source:
+- Author: Maxime Petazzoni
+- Repository: https://github.com/mpetazzoni/sseclient
+- File: https://github.com/mpetazzoni/sseclient/blob/main/sseclient/__init__.py
+
+License:
+- Apache-2.0 (from upstream project)
+
+Provides a generator of SSE received through an existing HTTP response.
+"""
+
+import logging
+
+__author__ = 'Maxime Petazzoni '
+__email__ = 'maxime.petazzoni@bulix.org'
+__all__ = ['SSEClient']
+
+_FIELD_SEPARATOR = ':'
+
+
+class SSEClient:
+ """Implementation of a SSE client.
+
+ See http://www.w3.org/TR/2009/WD-eventsource-20091029/ for the
+ specification.
+ """
+
+ def __init__(self, event_source, char_enc='utf-8'):
+ """Initialize the SSE client over an existing, ready to consume
+ event source.
+
+ The event source is expected to be a binary stream and have a close()
+ method. That would usually be something that implements
+ io.BinaryIOBase, like an httplib or urllib3 HTTPResponse object.
+ """
+ self._logger = logging.getLogger(self.__class__.__module__)
+ self._logger.debug('Initialized SSE client from event source %s',
+ event_source)
+ self._event_source = event_source
+ self._char_enc = char_enc
+
+ def _read(self):
+ """Read the incoming event source stream and yield event chunks.
+
+ Unfortunately it is possible for some servers to decide to break an
+ event into multiple HTTP chunks in the response. It is thus necessary
+ to correctly stitch together consecutive response chunks and find the
+ SSE delimiter (empty new line) to yield full, correct event chunks."""
+ data = b''
+ for chunk in self._event_source:
+ for line in chunk.splitlines(True):
+ data += line
+ if data.endswith((b'\r\r', b'\n\n', b'\r\n\r\n')):
+ yield data
+ data = b''
+ if data:
+ yield data
+
+ def events(self):
+ for chunk in self._read():
+ event = Event()
+ # Split before decoding so splitlines() only uses \r and \n
+ for line in chunk.splitlines():
+ # Decode the line.
+ line = line.decode(self._char_enc)
+
+ # Lines starting with a separator are comments and are to be
+ # ignored.
+ if not line.strip() or line.startswith(_FIELD_SEPARATOR):
+ continue
+
+ data = line.split(_FIELD_SEPARATOR, 1)
+ field = data[0]
+
+ # Ignore unknown fields.
+ if field not in event.__dict__:
+ self._logger.debug('Saw invalid field %s while parsing '
+ 'Server Side Event', field)
+ continue
+
+ if len(data) > 1:
+ # From the spec:
+ # "If value starts with a single U+0020 SPACE character,
+ # remove it from value."
+ if data[1].startswith(' '):
+ value = data[1][1:]
+ else:
+ value = data[1]
+ else:
+ # If no value is present after the separator,
+ # assume an empty value.
+ value = ''
+
+ # The data field may come over multiple lines and their values
+ # are concatenated with each other.
+ if field == 'data':
+ event.__dict__[field] += value + '\n'
+ else:
+ event.__dict__[field] = value
+
+ # Events with no data are not dispatched.
+ if not event.data:
+ continue
+
+ # If the data field ends with a newline, remove it.
+ if event.data.endswith('\n'):
+ event.data = event.data[0:-1]
+
+ # Empty event names default to 'message'
+ event.event = event.event or 'message'
+
+ # Dispatch the event
+ self._logger.debug('Dispatching %s...', event)
+ yield event
+
+ def close(self):
+ """Manually close the event source stream."""
+ self._event_source.close()
+
+
+class Event:
+ """Representation of an event from the event stream."""
+
+ def __init__(self, id=None, event='message', data='', retry=None):
+ self.id = id
+ self.event = event
+ self.data = data
+ self.retry = retry
+
+ def __str__(self):
+ s = f'{self.event} event'
+ if self.id:
+ s += f' #{self.id}'
+ if self.data:
+ s += ', {} byte{}'.format(len(self.data),
+ 's' if len(self.data) else '')
+ else:
+ s += ', no data'
+ if self.retry:
+ s += f', retry in {self.retry}ms'
+ return s
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/_hot_reload/types.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/_hot_reload/types.py
new file mode 100644
index 0000000000000000000000000000000000000000..c5f892d6287f5b581edca8fdf64c1827e114621b
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/_hot_reload/types.py
@@ -0,0 +1,121 @@
+# Copyright 2026 The HuggingFace Team. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+from typing import Literal, TypedDict
+
+from typing_extensions import NotRequired
+
+
+class ReloadRegion(TypedDict):
+ startLine: int
+ startCol: int
+ endLine: int
+ endCol: int
+
+
+class ReloadOperationObject(TypedDict):
+ kind: Literal["add", "update", "delete"]
+ region: ReloadRegion
+ objectType: str
+ objectName: str
+
+
+class ReloadOperationRun(TypedDict):
+ kind: Literal["run"]
+ region: ReloadRegion
+ codeLines: str
+ stdout: NotRequired[str]
+ stderr: NotRequired[str]
+
+
+class ReloadOperationException(TypedDict):
+ kind: Literal["exception"]
+ region: ReloadRegion
+ traceback: str
+
+
+class ReloadOperationError(TypedDict):
+ kind: Literal["error"]
+ traceback: str
+
+
+class ReloadOperationUI(TypedDict):
+ kind: Literal["ui"]
+ updated: bool
+
+
+class ReloadOperationFile(TypedDict):
+ kind: Literal["file"]
+ created: bool
+
+
+class ApiCreateReloadRequest(TypedDict):
+ filepath: str
+ contents: str
+ reloadId: NotRequired[str]
+
+
+class ApiCreateReloadResponseSuccess(TypedDict):
+ status: Literal["created"]
+ reloadId: str
+
+
+class ApiCreateReloadResponseError(TypedDict):
+ status: Literal["alreadyReloading", "fileNotFound"]
+
+
+class ApiCreateReloadResponse(TypedDict):
+ res: ApiCreateReloadResponseError | ApiCreateReloadResponseSuccess
+
+
+class ApiGetReloadRequest(TypedDict):
+ reloadId: str
+
+
+class ApiGetReloadEventSourceData(TypedDict):
+ data: (
+ ReloadOperationError
+ | ReloadOperationException
+ | ReloadOperationObject
+ | ReloadOperationRun
+ | ReloadOperationUI
+ | ReloadOperationFile
+ )
+
+
+class ApiGetStatusRequest(TypedDict):
+ revision: str
+
+
+class ApiGetStatusResponse(TypedDict):
+ reloading: bool
+ uncommited: list[str]
+
+
+class ApiFetchContentsRequest(TypedDict):
+ filepath: str
+
+
+class ApiFetchContentsResponseError(TypedDict):
+ status: Literal["fileNotFound"]
+
+
+class ApiFetchContentsResponseSuccess(TypedDict):
+ status: Literal["ok"]
+ contents: str
+
+
+class ApiFetchContentsResponse(TypedDict):
+ res: ApiFetchContentsResponseError | ApiFetchContentsResponseSuccess
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/__init__.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..8568c82be1c638c0ccd34d460fd8b0f73dcbec4e
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/__init__.py
@@ -0,0 +1,13 @@
+# Copyright 2025 The HuggingFace Team. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_city_game.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_city_game.py
new file mode 100644
index 0000000000000000000000000000000000000000..85c84ddb7c01efe3e11f08c1c499104a72ab262f
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_city_game.py
@@ -0,0 +1,661 @@
+"""Interactive isometric city explorer — easter egg for `hf repos ls --explore`."""
+
+import dataclasses
+import math
+import os
+import random
+import re
+import select
+import shutil
+import sys
+import time
+
+from huggingface_hub.hf_api import RepoStorageInfo
+
+from ._file_listing import format_size
+
+
+Color = tuple[int, int, int]
+
+# (top_face, left_face, right_face) — lighter to darker for 3D effect
+_TYPE_COLORS: dict[str, tuple[Color, Color, Color]] = {
+ "model": ((175, 148, 240), (138, 112, 208), (105, 80, 180)),
+ "dataset": ((245, 128, 128), (222, 92, 92), (190, 60, 60)),
+ "space": ((245, 175, 85), (218, 140, 55), (185, 110, 30)),
+ "bucket": ((112, 185, 242), (70, 150, 220), (40, 118, 192)),
+}
+_EXTRA_COLORS: tuple[Color, Color, Color] = ((168, 176, 188), (128, 136, 148), (90, 98, 110))
+_GRID_COLOR: Color = (178, 182, 190)
+
+_DX = 4 # isometric half-width (pixels)
+_DY = 2 # isometric half-height (pixels)
+_MAX_H = 16 # tallest tile (pixels)
+_MIN_H = 1
+_COLS = 6
+_EXT = 1 # grid extension beyond tiles
+_MAX_TILES = 30
+
+# Cursor sprite — pixel art arrow pointer
+_OUTLINE: Color = (30, 30, 30)
+_FILL: Color = (255, 255, 255)
+
+_CURSOR_GRID = [
+ " X ",
+ " XWX ",
+ "XWWWX",
+ " XWX ",
+ " X ",
+]
+_CURSOR_PALETTE: dict[str, Color] = {
+ "X": _OUTLINE,
+ "W": _FILL,
+}
+_CURSOR_H = len(_CURSOR_GRID)
+
+_MOVE_FRAMES = 8
+_MOVE_DELAY = 0.03
+_CURSOR_PAD = _CURSOR_H + 16
+_GAP = 3
+_MIN_TERM_W = 100
+_MIN_TERM_H = 24
+_SUMMARY_W = 24
+
+
+# ---------------------------------------------------------------------------
+# Data structures
+# ---------------------------------------------------------------------------
+
+
+@dataclasses.dataclass
+class TileInfo:
+ grid_row: int
+ grid_col: int
+ height: int
+ top: Color
+ left: Color
+ right: Color
+ repo: RepoStorageInfo | None
+
+
+@dataclasses.dataclass
+class CityData:
+ tiles: list[TileInfo]
+ rows: int
+ cols: int
+ x_off: int
+ y_off: int
+ buf_w: int
+ buf_h: int
+ total_storage: int
+ extra_count: int
+ extra_storage: int
+ all_repos: list[RepoStorageInfo]
+
+
+# ---------------------------------------------------------------------------
+# City layout
+# ---------------------------------------------------------------------------
+
+
+def _prepare_city_data(repos: list[RepoStorageInfo]) -> CityData:
+ sorted_repos = sorted(repos, key=lambda r: r.storage, reverse=True)
+ display = sorted_repos[:_MAX_TILES]
+ extra_count = max(0, len(sorted_repos) - _MAX_TILES)
+ extra_storage = sum(r.storage for r in sorted_repos[_MAX_TILES:])
+ total_storage = sum(r.storage for r in repos)
+ max_storage = max(1, display[0].storage)
+
+ n = len(display) + (1 if extra_count > 0 else 0)
+ cols = min(n, _COLS)
+ rows = math.ceil(n / cols) if cols > 0 else 1
+
+ tiles: list[TileInfo] = []
+ for i, repo in enumerate(display):
+ r, c = divmod(i, cols)
+ h = max(_MIN_H, round(math.sqrt(repo.storage / max_storage) * _MAX_H))
+ top, left, right = _TYPE_COLORS.get(repo.type, _EXTRA_COLORS)
+ tiles.append(TileInfo(r, c, h, top, left, right, repo))
+ if extra_count > 0:
+ r, c = divmod(len(display), cols)
+ h = max(_MIN_H, round(math.sqrt(extra_storage / max_storage) * _MAX_H))
+ tiles.append(TileInfo(r, c, h, *_EXTRA_COLORS, None))
+
+ r_lo, r_hi = -_EXT, rows - 1 + _EXT
+ c_lo, c_hi = -_EXT, cols - 1 + _EXT
+
+ xs: list[int] = []
+ ys: list[int] = []
+ for rr in range(r_lo, r_hi + 1):
+ for cc in range(c_lo, c_hi + 1):
+ cx, cy = (cc - rr) * _DX, (cc + rr) * _DY
+ xs.extend([cx - _DX, cx + _DX])
+ ys.extend([cy, cy + 2 * _DY])
+ for tile in tiles:
+ ys.append((tile.grid_col + tile.grid_row) * _DY - tile.height)
+
+ x_off = -min(xs)
+ y_off = -min(ys)
+ buf_w = max(xs) - min(xs) + 1
+ buf_h = max(ys) - min(ys) + 1
+ if buf_h % 2:
+ buf_h += 1
+
+ return CityData(
+ tiles=tiles,
+ rows=rows,
+ cols=cols,
+ x_off=x_off,
+ y_off=y_off,
+ buf_w=buf_w,
+ buf_h=buf_h,
+ total_storage=total_storage,
+ extra_count=extra_count,
+ extra_storage=extra_storage,
+ all_repos=repos,
+ )
+
+
+# ---------------------------------------------------------------------------
+# Drawing primitives
+# ---------------------------------------------------------------------------
+
+
+def _draw_diamond_outline(buf: list[list[Color | None]], cx: int, cy: int) -> None:
+ t = (cx, cy)
+ r = (cx + _DX, cy + _DY)
+ b = (cx, cy + 2 * _DY)
+ ll = (cx - _DX, cy + _DY)
+ _draw_line(buf, *t, *r, _GRID_COLOR)
+ _draw_line(buf, *r, *b, _GRID_COLOR)
+ _draw_line(buf, *b, *ll, _GRID_COLOR)
+ _draw_line(buf, *ll, *t, _GRID_COLOR)
+
+
+def _draw_block(
+ buf: list[list[Color | None]],
+ cx: int,
+ cy: int,
+ h: int,
+ top: Color,
+ left: Color,
+ right: Color,
+) -> None:
+ _fill_poly(
+ buf,
+ [(cx - _DX, cy + _DY - h), (cx, cy + 2 * _DY - h), (cx, cy + 2 * _DY), (cx - _DX, cy + _DY)],
+ left,
+ )
+ _fill_poly(
+ buf,
+ [(cx, cy + 2 * _DY - h), (cx + _DX, cy + _DY - h), (cx + _DX, cy + _DY), (cx, cy + 2 * _DY)],
+ right,
+ )
+ _fill_poly(
+ buf,
+ [(cx, cy - h), (cx + _DX, cy + _DY - h), (cx, cy + 2 * _DY - h), (cx - _DX, cy + _DY - h)],
+ top,
+ )
+
+
+def _fill_poly(buf: list[list[Color | None]], verts: list[tuple[int, int]], color: Color) -> None:
+ bh = len(buf)
+ bw = len(buf[0]) if buf else 0
+ all_y = [v[1] for v in verts]
+ y0 = max(0, min(all_y))
+ y1 = min(bh - 1, max(all_y))
+ n = len(verts)
+ for y in range(y0, y1 + 1):
+ xl: float = float("inf")
+ xr: float = float("-inf")
+ for i in range(n):
+ ax, ay = verts[i]
+ bx, by = verts[(i + 1) % n]
+ if ay == by:
+ if y == ay:
+ xl = min(xl, float(min(ax, bx)))
+ xr = max(xr, float(max(ax, bx)))
+ continue
+ if not (min(ay, by) <= y <= max(ay, by)):
+ continue
+ t = (y - ay) / (by - ay)
+ ix = ax + t * (bx - ax)
+ xl = min(xl, ix)
+ xr = max(xr, ix)
+ if xl <= xr:
+ for x in range(max(0, round(xl)), min(bw, round(xr) + 1)):
+ buf[y][x] = color
+
+
+def _draw_line(buf: list[list[Color | None]], x0: int, y0: int, x1: int, y1: int, color: Color) -> None:
+ bh = len(buf)
+ bw = len(buf[0]) if buf else 0
+ dx = abs(x1 - x0)
+ dy = abs(y1 - y0)
+ steps = max(dx, dy)
+ if steps == 0:
+ if 0 <= y0 < bh and 0 <= x0 < bw:
+ buf[y0][x0] = color
+ return
+ xi = (x1 - x0) / steps
+ yi = (y1 - y0) / steps
+ fx, fy = float(x0), float(y0)
+ for _ in range(steps + 1):
+ px, py = round(fx), round(fy)
+ if 0 <= py < bh and 0 <= px < bw:
+ buf[py][px] = color
+ fx += xi
+ fy += yi
+
+
+# ---------------------------------------------------------------------------
+# Pixel buffer → terminal
+# ---------------------------------------------------------------------------
+
+_ANSI_RE = re.compile(r"\033\[[0-9;]*m")
+
+
+def _strip_ansi(s: str) -> str:
+ return _ANSI_RE.sub("", s)
+
+
+def _visible_len(s: str) -> int:
+ return len(_strip_ansi(s))
+
+
+def _pixels_to_lines(buf: list[list[Color | None]]) -> list[str]:
+ height = len(buf)
+ width = len(buf[0]) if buf else 0
+ lines: list[str] = []
+ for row in range(0, height, 2):
+ last = -1
+ for col in range(width - 1, -1, -1):
+ top = buf[row][col]
+ bot = buf[row + 1][col] if row + 1 < height else None
+ if top or bot:
+ last = col
+ break
+ if last < 0:
+ lines.append("")
+ continue
+
+ parts: list[str] = []
+ cfg: Color | None = None
+ cbg: Color | None = None
+
+ for col in range(last + 1):
+ top = buf[row][col]
+ bot = buf[row + 1][col] if row + 1 < height else None
+
+ if not top and not bot:
+ if cfg is not None or cbg is not None:
+ parts.append("\033[0m")
+ cfg = cbg = None
+ parts.append(" ")
+ continue
+
+ if top and bot and top == bot:
+ nfg, nbg, ch = top, None, "█"
+ elif top and bot:
+ nfg, nbg, ch = bot, top, "▄"
+ elif top:
+ nfg, nbg, ch = top, None, "▀"
+ else:
+ nfg, nbg, ch = bot, None, "▄" # type: ignore[assignment]
+
+ esc = ""
+ if nfg != cfg:
+ esc += f"\033[38;2;{nfg[0]};{nfg[1]};{nfg[2]}m"
+ cfg = nfg
+ if nbg != cbg:
+ esc += "\033[49m" if nbg is None else f"\033[48;2;{nbg[0]};{nbg[1]};{nbg[2]}m"
+ cbg = nbg
+ parts.append(esc + ch)
+
+ if cfg is not None or cbg is not None:
+ parts.append("\033[0m")
+ lines.append("".join(parts))
+ return lines
+
+
+# ---------------------------------------------------------------------------
+# Rendering
+# ---------------------------------------------------------------------------
+
+
+def _render_base_buffer(city: CityData) -> list[list[Color | None]]:
+ buf: list[list[Color | None]] = [[None] * city.buf_w for _ in range(city.buf_h)]
+
+ for tile in city.tiles:
+ cx = city.x_off + (tile.grid_col - tile.grid_row) * _DX
+ cy = city.y_off + (tile.grid_col + tile.grid_row) * _DY
+ _draw_diamond_outline(buf, cx, cy)
+
+ sorted_tiles = sorted(city.tiles, key=lambda t: (t.grid_row + t.grid_col, t.grid_col))
+ for tile in sorted_tiles:
+ cx = city.x_off + (tile.grid_col - tile.grid_row) * _DX
+ cy = city.y_off + (tile.grid_col + tile.grid_row) * _DY
+ _draw_block(buf, cx, cy, tile.height, tile.top, tile.left, tile.right)
+
+ return buf
+
+
+# ---------------------------------------------------------------------------
+# Summary panel
+# ---------------------------------------------------------------------------
+
+
+def _colored_square(color: Color) -> str:
+ return f"\033[38;2;{color[0]};{color[1]};{color[2]}m■\033[0m"
+
+
+def _build_summary(
+ repos: list[RepoStorageInfo],
+ total_storage: int,
+ extra_count: int,
+) -> list[str]:
+ lines: list[str] = [""]
+ lines.append(" Storage Overview")
+ lines.append(" " + "─" * 16)
+ lines.append(f" {format_size(total_storage, human_readable=True)} total")
+ lines.append("")
+
+ order = ["model", "dataset", "space", "bucket"]
+ labels = {"model": "Models", "dataset": "Datasets", "space": "Spaces", "bucket": "Buckets"}
+ for rtype in order:
+ group = [r for r in repos if r.type == rtype]
+ if not group:
+ continue
+ storage = sum(r.storage for r in group)
+ sq = _colored_square(_TYPE_COLORS[rtype][0])
+ lines.append(f" {sq} {labels[rtype]}")
+ lines.append(f" {len(group)} repos · {format_size(storage, human_readable=True)}")
+ lines.append("")
+
+ if extra_count > 0:
+ sq = _colored_square(_EXTRA_COLORS[0])
+ lines.append(f" {sq} +{extra_count} more repos")
+
+ return lines
+
+
+# ---------------------------------------------------------------------------
+# Cursor
+# ---------------------------------------------------------------------------
+
+
+def _build_cursor() -> list[tuple[int, int, Color]]:
+ pixels: list[tuple[int, int, Color]] = []
+ for ri, row in enumerate(_CURSOR_GRID):
+ for ci, ch in enumerate(row):
+ if ch in _CURSOR_PALETTE:
+ pixels.append((ci - len(row) // 2, ri - _CURSOR_H + 1, _CURSOR_PALETTE[ch]))
+ return pixels
+
+
+_CURSOR_PIXELS = _build_cursor()
+
+
+# ---------------------------------------------------------------------------
+# Interactive game
+# ---------------------------------------------------------------------------
+
+
+def run_city_game(repos: list[RepoStorageInfo]) -> None:
+ """Launch the interactive city explorer."""
+ if not repos:
+ print("No repositories found.")
+ return
+
+ try:
+ import termios
+ import tty
+ except ImportError:
+ print("Interactive mode requires a Unix-like terminal (Linux/macOS).")
+ return
+
+ if not sys.stdin.isatty() or not sys.stdout.isatty():
+ print("Interactive mode requires a terminal.")
+ return
+
+ term = shutil.get_terminal_size()
+ if term.columns < _MIN_TERM_W or term.lines < _MIN_TERM_H:
+ print(f"Your terminal is {term.columns}×{term.lines} characters.")
+ print(f"Please resize to at least {_MIN_TERM_W}×{_MIN_TERM_H} to explore the city!")
+ return
+
+ city = _prepare_city_data(repos)
+
+ tiles_with_repos = [t for t in city.tiles if t.repo is not None]
+ start_tile = random.choice(tiles_with_repos) if tiles_with_repos else city.tiles[0]
+
+ fd = sys.stdin.fileno()
+ old_settings = termios.tcgetattr(fd)
+ try:
+ tty.setraw(fd)
+ sys.stdout.write("\033[?1049h\033[?25l\033[2J")
+ sys.stdout.flush()
+ _game_loop(city, start_tile.grid_row, start_tile.grid_col)
+ finally:
+ sys.stdout.write("\033[?25h\033[?1049l")
+ sys.stdout.flush()
+ termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)
+
+
+def _game_loop(city: CityData, cur_row: int, cur_col: int) -> None:
+ tile_map: dict[tuple[int, int], TileInfo] = {(t.grid_row, t.grid_col): t for t in city.tiles}
+ city = dataclasses.replace(city, buf_h=city.buf_h + _CURSOR_PAD, y_off=city.y_off + _CURSOR_PAD)
+ base_buf = _render_base_buffer(city)
+
+ summary = _build_summary(city.all_repos, city.total_storage, city.extra_count)
+
+ # Intro: cursor drops onto starting tile
+ tx, ty = _tile_top_center(city, cur_row, cur_col, tile_map)
+ for i in range(1, _MOVE_FRAMES + 1):
+ t = i / _MOVE_FRAMES
+ t = t * t * (3 - 2 * t)
+ drop_y = ty - 16 * (1 - t)
+ frame = _copy_buf(base_buf)
+ _highlight_tile(frame, city, tile_map[(cur_row, cur_col)])
+ _draw_cursor(frame, tx, round(drop_y))
+ _present(city, frame, tile_map.get((cur_row, cur_col)), summary)
+ time.sleep(_MOVE_DELAY)
+
+ while True:
+ cx, cy = _tile_top_center(city, cur_row, cur_col, tile_map)
+ frame = _copy_buf(base_buf)
+ _highlight_tile(frame, city, tile_map[(cur_row, cur_col)])
+ _draw_cursor(frame, cx, cy)
+ _present(city, frame, tile_map.get((cur_row, cur_col)), summary)
+
+ key = _read_key()
+ if key in ("q", "Q", "esc", "\x03"):
+ return
+
+ dr, dc = _key_to_direction(key)
+ if dr == 0 and dc == 0:
+ continue
+
+ nr, nc = cur_row + dr, cur_col + dc
+ if (nr, nc) not in tile_map:
+ continue
+
+ ex, ey = _tile_top_center(city, nr, nc, tile_map)
+ for i in range(1, _MOVE_FRAMES + 1):
+ t = i / _MOVE_FRAMES
+ t = t * t * (3 - 2 * t)
+ bx = cx + (ex - cx) * t
+ by = cy + (ey - cy) * t
+ frame = _copy_buf(base_buf)
+ _highlight_tile(frame, city, tile_map[(nr, nc)])
+ _draw_cursor(frame, round(bx), round(by))
+ _present(city, frame, tile_map.get((nr, nc)), summary)
+ time.sleep(_MOVE_DELAY)
+
+ cur_row, cur_col = nr, nc
+
+
+def _tile_top_center(city: CityData, row: int, col: int, tile_map: dict[tuple[int, int], TileInfo]) -> tuple[int, int]:
+ tile = tile_map.get((row, col))
+ h = tile.height if tile else 1
+ cx = city.x_off + (col - row) * _DX
+ cy = city.y_off + (col + row) * _DY
+ return cx, cy + _DY - h
+
+
+def _key_to_direction(key: str) -> tuple[int, int]:
+ match key:
+ case "w" | "W" | "\x1b[A":
+ return -1, 0
+ case "s" | "S" | "\x1b[B":
+ return 1, 0
+ case "a" | "A" | "\x1b[D":
+ return 0, -1
+ case "d" | "D" | "\x1b[C":
+ return 0, 1
+ case _:
+ return 0, 0
+
+
+def _draw_cursor(buf: list[list[Color | None]], cx: int, cy: int) -> None:
+ bh = len(buf)
+ bw = len(buf[0]) if buf else 0
+ for dx, dy, color in _CURSOR_PIXELS:
+ px, py = cx + dx, cy + dy
+ if 0 <= py < bh and 0 <= px < bw:
+ buf[py][px] = color
+
+
+def _highlight_tile(buf: list[list[Color | None]], city: CityData, tile: TileInfo) -> None:
+ cx = city.x_off + (tile.grid_col - tile.grid_row) * _DX
+ cy = city.y_off + (tile.grid_col + tile.grid_row) * _DY
+ h = tile.height
+ _fill_poly(
+ buf,
+ [(cx, cy - h), (cx + _DX, cy + _DY - h), (cx, cy + 2 * _DY - h), (cx - _DX, cy + _DY - h)],
+ _brighten(tile.top, 35),
+ )
+
+
+def _brighten(color: Color, amount: int) -> Color:
+ return (min(255, color[0] + amount), min(255, color[1] + amount), min(255, color[2] + amount))
+
+
+def _present(
+ city: CityData,
+ buf: list[list[Color | None]],
+ tile: TileInfo | None,
+ summary: list[str],
+) -> None:
+ city_lines = _pixels_to_lines(buf)
+ while city_lines and not _strip_ansi(city_lines[0]).strip():
+ city_lines.pop(0)
+ while city_lines and not _strip_ansi(city_lines[-1]).strip():
+ city_lines.pop()
+
+ city_w = max((_visible_len(line) for line in city_lines), default=0)
+ term = shutil.get_terminal_size()
+ panel_max_w = max(20, term.columns - city_w - _SUMMARY_W - 2 * _GAP)
+
+ info = _build_info_panel(tile, city, panel_max_w)
+
+ n = max(len(summary), len(city_lines), len(info))
+ summary_lo = max(0, (n - len(summary)) // 2)
+ info_lo = max(0, (n - len(info)) // 2)
+
+ lines: list[str] = []
+ for i in range(n):
+ si = i - summary_lo
+ lt = summary[si] if 0 <= si < len(summary) else ""
+ lpad = max(0, _SUMMARY_W - _visible_len(lt))
+
+ ct = city_lines[i] if i < len(city_lines) else ""
+ cpad = max(0, city_w - _visible_len(ct))
+
+ ri = i - info_lo
+ rt = info[ri] if 0 <= ri < len(info) else ""
+
+ lines.append(lt + " " * lpad + " " * _GAP + ct + " " * cpad + " " * _GAP + rt)
+
+ lines.append("")
+ lines.append(" \033[90mWASD/Arrows: move · Q/ESC: quit\033[0m")
+
+ while len(lines) < term.lines - 1:
+ lines.append("")
+
+ output = "\033[H"
+ for line in lines[: term.lines - 1]:
+ output += line + "\033[K\r\n"
+ sys.stdout.write(output)
+ sys.stdout.flush()
+
+
+def _build_info_panel(tile: TileInfo | None, city: CityData, max_w: int) -> list[str]:
+ reset = "\033[0m"
+ gray = "\033[90m"
+ bold = "\033[1m"
+ indent = " "
+ content_w = max_w - len(indent)
+
+ lines: list[str] = [""]
+ lines.append(f"{indent}{bold}City Explorer{reset}")
+ lines.append(indent + "─" * min(22, content_w))
+ lines.append("")
+
+ if tile is None:
+ lines.append(f"{indent}{gray}Move to a tile")
+ lines.append(f"{indent}to see details.{reset}")
+ return lines
+
+ if tile.repo is None:
+ lines.append(f"{indent}{gray}+{city.extra_count} more repos{reset}")
+ lines.append(f"{indent}{gray}{format_size(city.extra_storage, human_readable=True)} combined{reset}")
+ return lines
+
+ repo = tile.repo
+ name = repo.id
+ if len(name) > content_w:
+ name = name[: content_w - 3] + "..."
+ lines.append(f"{indent}{bold}{name}{reset}")
+ lines.append("")
+
+ type_ansi = {
+ "model": "\033[38;2;175;148;240m",
+ "dataset": "\033[38;2;245;128;128m",
+ "space": "\033[38;2;245;175;85m",
+ "bucket": "\033[38;2;112;185;242m",
+ }
+ tc = type_ansi.get(repo.type, "")
+
+ lines.append(f"{indent}Type {tc}{repo.type}{reset}")
+ lines.append(f"{indent}Visibility {repo.visibility}")
+ lines.append(f"{indent}Storage {format_size(repo.storage, human_readable=True)}")
+ lines.append(f"{indent}Usage {repo.storage_percent:.1f}%")
+ lines.append("")
+
+ bar_w = min(18, content_w)
+ filled = max(0, min(bar_w, round(repo.storage_percent / 100 * bar_w)))
+ lines.append(f"{indent}{tc}{'█' * filled}{gray}{'░' * (bar_w - filled)}{reset}")
+
+ return lines
+
+
+def _copy_buf(buf: list[list[Color | None]]) -> list[list[Color | None]]:
+ return [row[:] for row in buf]
+
+
+def _read_key() -> str:
+ fd = sys.stdin.fileno()
+ ch = os.read(fd, 1)
+ if ch == b"\x1b":
+ if _has_input(fd, 0.05):
+ ch2 = os.read(fd, 1)
+ if ch2 == b"[" and _has_input(fd, 0.05):
+ ch3 = os.read(fd, 1)
+ return f"\x1b[{ch3.decode()}"
+ return "esc"
+ return ch.decode("utf-8", errors="replace")
+
+
+def _has_input(fd: int, timeout: float) -> bool:
+ r, _, _ = select.select([fd], [], [], timeout)
+ return bool(r)
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_cli_utils.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_cli_utils.py
new file mode 100644
index 0000000000000000000000000000000000000000..21c9fef5e0ec1dc5b6df11863ae364eb0caa6a42
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_cli_utils.py
@@ -0,0 +1,1068 @@
+# Copyright 2022 The HuggingFace Team. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""Contains CLI utilities (styling, helpers)."""
+
+import difflib
+import importlib.metadata
+import os
+import re
+import subprocess
+import sys
+import time
+from collections.abc import Callable, Sequence
+from enum import Enum
+from pathlib import Path
+from typing import TYPE_CHECKING, Annotated, Any, Literal, TypeVar, cast
+
+import click
+import typer
+from typer.core import TyperCommand, TyperGroup
+
+from huggingface_hub import Volume, __version__, constants
+from huggingface_hub.errors import CLIError
+from huggingface_hub.utils import (
+ get_session,
+ hf_raise_for_status,
+ installation_method,
+ logging,
+ parse_hf_mount,
+)
+from huggingface_hub.utils._dotenv import load_dotenv
+
+from ._help_formatter import StyledContext
+from ._output import OutputFormat, out
+
+
+logger = logging.get_logger()
+
+# Arbitrary default limit for models/datasets/spaces list commands.
+REPO_LIST_DEFAULT_LIMIT = 30
+
+if TYPE_CHECKING:
+ from huggingface_hub.hf_api import HfApi
+
+
+def get_hf_api(token: str | None = None) -> "HfApi":
+ # Import here to avoid circular import
+ from huggingface_hub.hf_api import HfApi
+
+ return HfApi(token=token, library_name="huggingface-cli", library_version=__version__)
+
+
+#### TYPER UTILS
+
+CLI_REFERENCE_URL = "https://huggingface.co/docs/huggingface_hub/en/guides/cli"
+
+
+def generate_epilog(examples: list[str], docs_anchor: str | None = None) -> str:
+ """Generate an epilog with examples and a Learn More section.
+
+ Args:
+ examples: List of example commands (without the `$ ` prefix).
+ docs_anchor: Optional anchor for the docs URL (e.g., "#hf-download").
+
+ Returns:
+ Formatted epilog string.
+ """
+ docs_url = f"{CLI_REFERENCE_URL}{docs_anchor}" if docs_anchor else CLI_REFERENCE_URL
+ examples_str = "\n".join(f" $ {ex}" for ex in examples)
+ return f"""\
+Examples
+{examples_str}
+
+Learn more
+ Use `hf --help` for more information about a command.
+ Read the documentation at {docs_url}
+"""
+
+
+TOPIC_T = Literal["main", "help"] | str
+FallbackHandlerT = Callable[[list[str], set[str]], int | None]
+ExpandPropertyT = TypeVar("ExpandPropertyT", bound=str)
+
+
+def _format_epilog_no_indent(epilog: str | None, ctx: click.Context, formatter: click.HelpFormatter) -> None:
+ """Write the epilog without indentation."""
+ if epilog:
+ formatter.write_paragraph()
+ for line in epilog.split("\n"):
+ formatter.write_text(line)
+
+
+_ALIAS_SPLIT = re.compile(r"\s*\|\s*")
+
+
+class HFCliTyperGroup(TyperGroup):
+ """
+ Typer Group that:
+ - lists commands alphabetically within sections.
+ - separates commands by topic (main, help, etc.).
+ - formats epilog without extra indentation.
+ - supports aliases via pipe-separated names (e.g. ``name="list | ls"``).
+ - consumes the global formatting flags (``--format``, ``--json``, ``-q`` / ``--quiet``, ``--no-truncate``)
+ anywhere in the args of a leaf command and applies them to ``out``, so leaf
+ commands don't need to declare these options themselves.
+ - rewrites ``spaces/user/repo`` to ``user/repo --type space`` for commands that accept ``--type``.
+ - enriches "No such option" / "No such command" errors with available options or commands.
+ """
+
+ context_class = StyledContext
+
+ def invoke(self, ctx: click.Context) -> None:
+ """Enrich unknown-option errors with available options or subcommands.
+
+ Catches `NoSuchOption` raised during subcommand `make_context()`
+ (option parsing). For leaf commands (e.g. `hf repos create --test`)
+ we list the command's options; for groups (e.g. `hf cache --test`)
+ we list subcommands since groups have no user-facing options.
+ """
+ try:
+ return super().invoke(ctx)
+ except click.NoSuchOption as e:
+ if e.ctx is not None and e.ctx.command is not None:
+ cmd = e.ctx.command
+ if isinstance(cmd, click.Group):
+ # Group has no user-facing options -> show subcommands instead
+ items = [
+ (name, sub.get_short_help_str(limit=80))
+ for name in cmd.list_commands(e.ctx)
+ if (sub := cmd.get_command(e.ctx, name)) is not None and not sub.hidden
+ ]
+ _enrich_usage_error(e, "commands", items)
+ else:
+ # Leaf command -> show its options using Click's rich formatting
+ items = [
+ record
+ for p in cmd.get_params(e.ctx)
+ if isinstance(p, click.Option) and not p.hidden and (record := p.get_help_record(e.ctx))
+ ]
+ _enrich_usage_error(e, "options", items)
+ raise
+
+ def resolve_command(self, ctx: click.Context, args: list[str]) -> tuple:
+ cmd_name = args[0] if args and not args[0].startswith("-") else None
+ cmd = self.get_command(ctx, cmd_name) if cmd_name else None
+
+ if cmd is not None:
+ self._rewrite_repo_type_prefix(cmd, args)
+
+ try:
+ name, resolved_cmd, sub_args = super().resolve_command(ctx, args)
+ except click.UsageError as e:
+ # Unknown subcommand -> add fuzzy suggestions and list available commands.
+ if cmd is None and cmd_name is not None:
+ # Expand aliases ("list | ls" → ["list", "ls"]) for accurate fuzzy matching.
+ visible_names = [
+ alias
+ for key, registered in self.commands.items()
+ if not registered.hidden
+ for alias in _ALIAS_SPLIT.split(key)
+ ]
+ matches = difflib.get_close_matches(cmd_name, visible_names)
+ if matches:
+ suggestions = ", ".join(f"'{m}'" for m in matches)
+ e.message = f"{e.message.rstrip('.')}. Did you mean {suggestions}?"
+ items = [
+ (name, sub.get_short_help_str(limit=80))
+ for name in self.list_commands(ctx)
+ if (sub := self.get_command(ctx, name)) is not None and not sub.hidden
+ ]
+ _enrich_usage_error(e, "commands", items)
+ raise
+
+ # If we just resolved a leaf command, eagerly consume any global formatting
+ # flags (--format / --json / -q / --quiet / --no-truncate) from its args before click parses
+ # them. Group resolution is recursive — leaves (and only leaves) need this.
+ if resolved_cmd is not None and not isinstance(resolved_cmd, click.Group):
+ _consume_format_flags_for_leaf(resolved_cmd, sub_args)
+
+ return name, resolved_cmd, sub_args
+
+ @staticmethod
+ def _rewrite_repo_type_prefix(cmd: click.Command, args: list[str]) -> None:
+ """Rewrite prefixed repo IDs (e.g. ``spaces/user/repo``) to ``user/repo --type space``.
+
+ Only applies to commands that have a ``--type`` / ``--repo-type`` option and
+ at least one repo-ID positional argument (any ``click.Argument`` whose name
+ ends with ``_id``, e.g. ``repo_id``, ``from_id``, ``to_id``). When the
+ token that maps to such an argument matches ``{prefix}/org/repo`` (where
+ *prefix* is one of ``spaces``, ``datasets``, or ``models``), the prefix is
+ stripped and an implicit ``--type {type}`` is appended. An error is raised
+ if ``--type`` is also provided explicitly or if multiple prefixed arguments
+ disagree on the repo type.
+
+ Only repo-ID positional slots are inspected so that other positional
+ arguments (filenames, local paths, patterns …) are never misinterpreted as
+ prefixed repo IDs.
+ """
+ has_type_option = any(isinstance(param, click.Option) and "--type" in param.opts for param in cmd.params)
+ if not has_type_option:
+ return
+
+ # Locate all repo-ID positional arguments and their indices among Arguments.
+ repo_id_positions: set[int] = set()
+ arg_idx = 0
+ for param in cmd.params:
+ if isinstance(param, click.Argument):
+ if param.name in ("repo_id", "from_id", "to_id"):
+ repo_id_positions.add(arg_idx)
+ arg_idx += 1
+
+ if not repo_id_positions:
+ return
+
+ # Build a set of option names that consume a following value token.
+ value_options: set[str] = set()
+ for param in cmd.params:
+ if isinstance(param, click.Option) and not param.is_flag:
+ for opt in (*param.opts, *param.secondary_opts):
+ value_options.add(opt)
+
+ # Walk through args (skipping args[0] = command name) to map positional
+ # slots to their indices in `args`.
+ positional_count = 0
+ repo_id_arg_indices: list[int] = []
+ i = 1
+ while i < len(args):
+ arg = args[i]
+ if arg == "--":
+ break # everything after -- is positional literal; stop rewriting
+ if arg.startswith("-"):
+ if "=" in arg or arg not in value_options:
+ i += 1 # flag or --opt=val — single token
+ else:
+ i += 2 # value-taking option — skip the value too
+ else:
+ if positional_count in repo_id_positions:
+ repo_id_arg_indices.append(i)
+ positional_count += 1
+ i += 1
+
+ if not repo_id_arg_indices:
+ return
+
+ # Check each repo-ID arg for a type prefix and collect rewrites.
+ inferred_type: str | None = None
+ first_prefix: str | None = None
+ rewrites: list[tuple[int, str]] = [] # (args index, new value without prefix)
+
+ for arg_index in repo_id_arg_indices:
+ parts = args[arg_index].split("/", 2)
+ if len(parts) != 3 or parts[0] not in constants.REPO_TYPES_MAPPING:
+ continue
+ prefix = parts[0]
+ mapped_type = constants.REPO_TYPES_MAPPING[prefix]
+ if inferred_type is not None and mapped_type != inferred_type:
+ raise click.UsageError(f"Conflicting repo type prefixes: '{first_prefix}/' and '{prefix}/'.")
+ inferred_type = mapped_type
+ first_prefix = prefix
+ rewrites.append((arg_index, f"{parts[1]}/{parts[2]}"))
+
+ if not rewrites:
+ return
+
+ # Error if --type / --repo-type was also provided explicitly.
+ if any(
+ arg == "--type" or arg.startswith("--type=") or arg == "--repo-type" or arg.startswith("--repo-type=")
+ for arg in args
+ ):
+ raise click.UsageError(
+ f"Ambiguous repo type: got prefix '{first_prefix}/' in repo ID and explicit --type. Use one or the other."
+ )
+
+ # Apply all rewrites and append --type once.
+ for arg_index, new_value in rewrites:
+ args[arg_index] = new_value
+ args.extend(["--type", inferred_type]) # type: ignore
+
+ def get_command(self, ctx: click.Context, cmd_name: str) -> click.Command | None:
+ # Try exact match first
+ cmd = super().get_command(ctx, cmd_name)
+ if cmd is not None:
+ return cmd
+ # Fall back to alias lookup: check if cmd_name matches any alias
+ # taken from https://github.com/fastapi/typer/issues/132#issuecomment-2417492805
+ for registered_name, registered_cmd in self.commands.items():
+ aliases = _ALIAS_SPLIT.split(registered_name)
+ if cmd_name in aliases:
+ return registered_cmd
+ return None
+
+ def _alias_map(self) -> dict[str, list[str]]:
+ """Build a mapping from primary command name to its aliases (if any)."""
+ result: dict[str, list[str]] = {}
+ for registered_name in self.commands:
+ parts = _ALIAS_SPLIT.split(registered_name)
+ primary = parts[0]
+ result[primary] = parts[1:]
+ return result
+
+ def format_commands(self, ctx: click.Context, formatter: click.HelpFormatter) -> None:
+ topics: dict[str, list] = {}
+ alias_map = self._alias_map()
+
+ for name in self.list_commands(ctx):
+ cmd = self.get_command(ctx, name)
+ if cmd is None or cmd.hidden:
+ continue
+ help_text = cmd.get_short_help_str(limit=formatter.width)
+ aliases = alias_map.get(name, [])
+ if aliases:
+ help_text = f"{help_text} [alias: {', '.join(aliases)}]"
+ topic = getattr(cmd, "topic", "main")
+ topics.setdefault(topic, []).append((name, help_text))
+
+ with formatter.section("Main commands"):
+ formatter.write_dl(topics["main"])
+ for topic in sorted(topics.keys()):
+ if topic == "main":
+ continue
+ with formatter.section(f"{topic.capitalize()} commands"):
+ formatter.write_dl(topics[topic])
+
+ def format_epilog(self, ctx: click.Context, formatter: click.HelpFormatter) -> None:
+ # Collect only the first example from each command (to keep group help concise)
+ # Full examples are shown in individual subcommand help (e.g. `hf buckets sync --help`)
+ all_examples: list[str] = []
+ for name in self.list_commands(ctx):
+ cmd = self.get_command(ctx, name)
+ if cmd is None or cmd.hidden:
+ continue
+ cmd_examples = getattr(cmd, "examples", [])
+ if cmd_examples:
+ all_examples.append(cmd_examples[0])
+
+ if all_examples:
+ epilog = generate_epilog(all_examples)
+ _format_epilog_no_indent(epilog, ctx, formatter)
+ elif self.epilog:
+ _format_epilog_no_indent(self.epilog, ctx, formatter)
+
+ def list_commands(self, ctx: click.Context) -> list[str]: # type: ignore[name-defined]
+ # For aliased commands ("list | ls"), use the primary name (first entry).
+ primary_names: list[str] = []
+ for name in self.commands:
+ primary = _ALIAS_SPLIT.split(name)[0]
+ primary_names.append(primary)
+ return sorted(primary_names)
+
+
+_FORMATTING_OPTIONS_HELP_RECORDS: list[tuple[str, str]] = [
+ (
+ "--format [auto|human|agent|json|quiet]",
+ "Output format. Defaults to 'auto' which picks 'agent' or 'human' based on the terminal.",
+ ),
+ ("--json", "JSON output. Equivalent to '--format json'."),
+ ("-q, --quiet", "Quiet output (one ID per line). Equivalent to '--format quiet'."),
+ ("--no-truncate", "Do not truncate scalar values in human tables (list/dict columns stay shortened)."),
+]
+
+
+def _format_formatting_options_section(formatter: click.HelpFormatter) -> None:
+ with formatter.section("Formatting options"):
+ formatter.write_dl(_FORMATTING_OPTIONS_HELP_RECORDS)
+
+
+def _has_local_formatting_option(cmd: click.Command) -> bool:
+ """Return True if the command defines its own --format, --json or --quiet / -q.
+
+ Used to skip the global formatting flag pre-processor and the duplicated "Formatting options" help section for
+ legacy commands like 'hf jobs ps' that have their own format/quiet options.
+ """
+ for param in cmd.params:
+ if not isinstance(param, click.Option):
+ continue
+ opts = (*param.opts, *param.secondary_opts)
+ if "--format" in opts or "--json" in opts or "--quiet" in opts or "-q" in opts:
+ return True
+ return False
+
+
+def _consume_format_flags_for_leaf(cmd: click.Command, args: list[str]) -> None:
+ """Apply global formatting flags from 'args' to a leaf command.
+
+ Two modes, depending on the command:
+
+ * **Pass-through commands** (ignore_unknown_options=True, e.g. 'hf extensions exec'):
+ args are forwarded verbatim to an external binary; we don't touch them.
+
+ * **Legacy commands with a local --format option** (e.g. 'hf jobs ps' whose '--format' accepts Go templates):
+ the global flags are rewritten in-place to the legacy form ('--json' → '--format json', '--quiet'/'-q' → '--format quiet'
+ when the cmd has no own '--quiet') so click can parse them locally. This preserves backwards compatibility with the previous shorthand behavior.
+
+ * **Modern commands** (no local format/quiet/json options): the flags '--format ' / '--json' / '--quiet' / '-q' are stripped from 'args' and applied to the singleton 'out'.
+
+ '--no-truncate' is stripped for all non-pass-through commands; when present, human table cells are not truncated.
+
+ Raises click.UsageError if multiple conflicting flags are supplied (e.g. '--json' together with '--format table').
+ """
+ if cmd.context_settings.get("ignore_unknown_options"):
+ return
+
+ no_truncate = _consume_no_truncate_flags(args)
+ out.set_no_truncate(no_truncate)
+
+ has_local_format = False
+ has_local_quiet = False
+ has_local_json = False
+ for param in cmd.params:
+ if not isinstance(param, click.Option):
+ continue
+ opts = (*param.opts, *param.secondary_opts)
+ if "--format" in opts:
+ has_local_format = True
+ if "--quiet" in opts or "-q" in opts:
+ has_local_quiet = True
+ if "--json" in opts:
+ has_local_json = True
+
+ if has_local_format:
+ _rewrite_legacy_shorthands(args, rewrite_json=not has_local_json, rewrite_quiet=not has_local_quiet)
+ return
+
+ # Strip --format/--json/-q/--quiet from 'args' and apply to 'out'
+ chosen_mode: OutputFormat = OutputFormat.auto
+ chosen_flag: str | None = None
+
+ def _check_conflict(new_flag: str) -> None:
+ # Reject any second formatting flag before parsing values, so the user gets
+ # a "mutually exclusive" error rather than e.g. an "invalid value" error
+ # from the second flag's argument.
+ if chosen_flag is not None:
+ raise click.UsageError(f"'{chosen_flag}' and '{new_flag}' are mutually exclusive.")
+
+ i = 0
+ while i < len(args):
+ arg = args[i]
+ if arg == "--":
+ break # everything after '--' is a positional literal
+ if arg == "--format":
+ _check_conflict("--format")
+ if i + 1 >= len(args):
+ raise click.UsageError("Option '--format' requires a value.")
+ chosen_mode = _parse_format_value(args[i + 1])
+ chosen_flag = "--format"
+ del args[i : i + 2] # --format value => 2 args removed
+ continue
+ if arg.startswith("--format="):
+ _check_conflict("--format")
+ chosen_mode = _parse_format_value(arg[len("--format=") :])
+ chosen_flag = "--format"
+ del args[i : i + 1]
+ continue
+ if arg == "--json":
+ _check_conflict("--json")
+ chosen_mode = OutputFormat.json
+ chosen_flag = "--json"
+ del args[i : i + 1]
+ continue
+ if arg in ("-q", "--quiet"):
+ _check_conflict(arg)
+ chosen_mode = OutputFormat.quiet
+ chosen_flag = arg
+ del args[i : i + 1]
+ continue
+ i += 1
+
+ out.set_mode(chosen_mode)
+
+
+def _consume_no_truncate_flags(args: list[str]) -> bool:
+ """Strip all global --no-truncate flags from args and return whether any was provided."""
+ no_truncate = False
+ i = 0
+ while i < len(args):
+ arg = args[i]
+ if arg == "--":
+ break # everything after '--' is a positional literal
+ if arg == "--no-truncate":
+ no_truncate = True
+ del args[i : i + 1]
+ continue
+ if arg.startswith("--no-truncate="):
+ raise click.UsageError("Option '--no-truncate' does not take a value.")
+ i += 1
+ return no_truncate
+
+
+def _rewrite_legacy_shorthands(args: list[str], *, rewrite_json: bool, rewrite_quiet: bool) -> None:
+ """Rewrite --json / -q / --quiet to --format ... for legacy commands.
+
+ Used for commands like 'hf jobs ps' that still own their '--format' option.
+ The rewrite lets users keep using the global shorthand while click parses
+ '--format ' locally.
+ """
+ has_format_in_args = any(arg == "--format" or arg.startswith("--format=") for arg in args)
+
+ if rewrite_json and "--json" in args:
+ if has_format_in_args:
+ raise click.UsageError("'--json' and '--format' are mutually exclusive.")
+ idx = args.index("--json")
+ args[idx : idx + 1] = ["--format", "json"]
+ has_format_in_args = True
+
+ if rewrite_quiet:
+ flag = "-q" if "-q" in args else ("--quiet" if "--quiet" in args else None)
+ if flag is not None:
+ if has_format_in_args:
+ raise click.UsageError(f"'{flag}' and '--format' are mutually exclusive.")
+ idx = args.index(flag)
+ args[idx : idx + 1] = ["--format", "quiet"]
+
+
+def _parse_format_value(value: str) -> "OutputFormat":
+ try:
+ return OutputFormat(value)
+ except ValueError:
+ valid = ", ".join(m.value for m in OutputFormat)
+ raise click.UsageError(f"Invalid value for '--format': '{value}'. Valid values: {valid}.") from None
+
+
+def _enrich_usage_error(error: click.UsageError, label: str, items: list[tuple[str, str]]) -> None:
+ """Append a list of available options or commands to a usage error message."""
+ if not items or error.ctx is None or f"Available {label} for" in error.message:
+ return
+ cmd_path = error.ctx.command_path
+ lines = [f"\n\nAvailable {label} for '{cmd_path}':"]
+ for name, help_text in items:
+ lines.append(f" {name:30s} {help_text}")
+ lines.append(f"\nRun '{cmd_path} --help' for full details.")
+ if isinstance(error, click.NoSuchOption) and error.possibilities:
+ lines.append(f"\nDid you mean: {', '.join(sorted(error.possibilities))}?")
+ error.possibilities = []
+ error.message += "\n".join(lines)
+
+
+def fallback_typer_group_factory(
+ fallback_handler: FallbackHandlerT,
+ extra_commands_provider: Callable[[], list[tuple[str, str]]] | None = None,
+) -> type[HFCliTyperGroup]:
+ """Return a Typer group class that runs a fallback handler before command resolution."""
+
+ class FallbackTyperGroup(HFCliTyperGroup):
+ def resolve_command(self, ctx: click.Context, args: list[str]) -> tuple:
+ fallback_exit_code = fallback_handler(args, set(self.commands.keys()))
+ if fallback_exit_code is not None:
+ raise SystemExit(fallback_exit_code)
+ return super().resolve_command(ctx, args)
+
+ def format_commands(self, ctx: click.Context, formatter: click.HelpFormatter) -> None:
+ super().format_commands(ctx, formatter)
+ if extra_commands_provider is not None:
+ entries = extra_commands_provider()
+ if entries:
+ with formatter.section("Extension commands"):
+ formatter.write_dl(entries)
+
+ return FallbackTyperGroup
+
+
+def HFCliCommand(topic: TOPIC_T, examples: list[str] | None = None) -> type[TyperCommand]:
+ def format_epilog(self: click.Command, ctx: click.Context, formatter: click.HelpFormatter) -> None:
+ _format_epilog_no_indent(self.epilog, ctx, formatter)
+
+ def format_options(self: TyperCommand, ctx: click.Context, formatter: click.HelpFormatter) -> None:
+ TyperCommand.format_options(self, ctx, formatter)
+ # Skip the section for commands that define their own --format / --quiet / --json,
+ # or for pass-through commands that forward args to an external binary.
+ if _has_local_formatting_option(self):
+ return
+ if self.context_settings.get("ignore_unknown_options"):
+ return
+ _format_formatting_options_section(formatter)
+
+ def parse_args(self: click.Command, ctx: click.Context, args: list[str]) -> list[str]:
+ # Show help when a command with required arguments is invoked without any args
+ # (mirrors group behavior: `hf jobs` prints help, so `hf download` should too).
+ if not args and not ctx.resilient_parsing:
+ if any(isinstance(p, click.Argument) and p.required for p in self.params):
+ click.echo(ctx.get_help(), color=ctx.color)
+ ctx.exit()
+ return TyperCommand.parse_args(self, ctx, args)
+
+ return type(
+ f"TyperCommand{topic.capitalize()}",
+ (TyperCommand,),
+ {
+ "context_class": StyledContext,
+ "topic": topic,
+ "examples": examples or [],
+ "format_epilog": format_epilog,
+ "format_options": format_options,
+ "parse_args": parse_args,
+ },
+ )
+
+
+class HFCliApp(typer.Typer):
+ """Custom Typer app for Hugging Face CLI."""
+
+ def command( # type: ignore
+ self,
+ name: str | None = None,
+ *,
+ topic: TOPIC_T = "main",
+ examples: list[str] | None = None,
+ context_settings: dict[str, Any] | None = None,
+ help: str | None = None,
+ epilog: str | None = None,
+ short_help: str | None = None,
+ options_metavar: str = "[OPTIONS]",
+ add_help_option: bool = True,
+ no_args_is_help: bool = False,
+ hidden: bool = False,
+ deprecated: bool = False,
+ rich_help_panel: str | None = None,
+ ) -> Callable[[Callable[..., Any]], Callable[..., Any]]:
+ # Generate epilog from examples if not explicitly provided
+ if epilog is None and examples:
+ epilog = generate_epilog(examples)
+
+ def _inner(func: Callable[..., Any]) -> Callable[..., Any]:
+ return super(HFCliApp, self).command(
+ name,
+ cls=HFCliCommand(topic, examples),
+ context_settings=context_settings,
+ help=help,
+ epilog=epilog,
+ short_help=short_help,
+ options_metavar=options_metavar,
+ add_help_option=add_help_option,
+ no_args_is_help=no_args_is_help,
+ hidden=hidden,
+ deprecated=deprecated,
+ rich_help_panel=rich_help_panel,
+ )(func)
+
+ return _inner
+
+
+def typer_factory(help: str, epilog: str | None = None, cls: type[TyperGroup] | None = None) -> "HFCliApp":
+ """Create a Typer app with consistent settings.
+
+ Args:
+ help: Help text for the app.
+ epilog: Optional epilog text (use `generate_epilog` to create one).
+ cls: Optional Click group class to use (defaults to `HFCliTyperGroup`).
+
+ Returns:
+ A configured Typer app.
+ """
+ if cls is None:
+ cls = HFCliTyperGroup
+ return HFCliApp(
+ help=help,
+ epilog=epilog,
+ add_completion=True,
+ no_args_is_help=True,
+ cls=cls,
+ # Disable rich completely for consistent experience
+ rich_markup_mode=None,
+ rich_help_panel=None,
+ pretty_exceptions_enable=False,
+ # Disable TyperGroup's suggest_commands, it matches against raw aliased
+ # keys ("list | ls") leaking pipe syntax into user-facing messages.
+ # HFCliTyperGroup.resolve_command() handles suggestions with expanded names.
+ suggest_commands=False,
+ # Increase max content width for better readability
+ context_settings={
+ "max_content_width": 120,
+ "help_option_names": ["-h", "--help"],
+ },
+ )
+
+
+class SoftChoice(click.Choice):
+ """A click Choice that suggests choices for autocompletion/docs but accepts any string.
+
+ Unlike `click.Choice`, unknown values are passed through as-is instead of raising an error.
+ This makes CLI options future-compatible when new server-side values are added.
+
+ Accepts either a sequence of strings or an Enum class:
+ ```python
+ SoftChoice(SpaceHardware) # from an enum
+ SoftChoice(["a", "b", "c"]) # from a list
+ ```
+ """
+
+ def __init__(self, choices: Sequence[str] | type[Enum]) -> None:
+ values = (
+ [m.value for m in choices] if isinstance(choices, type) and issubclass(choices, Enum) else list(choices)
+ )
+ super().__init__(values, case_sensitive=True)
+
+ def convert(self, value: Any, param: click.Parameter | None, ctx: click.Context | None) -> str:
+ try:
+ return super().convert(value, param, ctx)
+ except click.exceptions.BadParameter:
+ return str(value)
+
+
+class RepoType(str, Enum):
+ model = "model"
+ dataset = "dataset"
+ space = "space"
+
+
+RepoIdArg = Annotated[
+ str,
+ typer.Argument(
+ help="The ID of the repo (e.g. `username/repo-name` or `spaces/username/repo-name`).",
+ ),
+]
+
+
+RepoTypeOpt = Annotated[
+ RepoType,
+ typer.Option(
+ "--type",
+ "--repo-type",
+ help="The type of repository (model, dataset, or space).",
+ ),
+]
+
+# Same as `RepoTypeOpt` but optional (defaults to `None` rather than `model`). Used by commands that
+# accept an `hf://` URI as repo id: a `None` default lets us tell apart "user did not pass --repo-type"
+# from "user explicitly passed --repo-type model", which is required to detect conflicts with the URI.
+RepoTypeOptionalOpt = Annotated[
+ RepoType | None,
+ typer.Option(
+ "--type",
+ "--repo-type",
+ help="The type of repository (model, dataset, or space).",
+ show_default="model",
+ ),
+]
+
+TokenOpt = Annotated[
+ str | None,
+ typer.Option(
+ help="A User Access Token generated from https://huggingface.co/settings/tokens.",
+ ),
+]
+
+PrivateOpt = Annotated[
+ bool | None,
+ typer.Option(
+ help="Whether to create a private repo if repo doesn't exist on the Hub. Ignored if the repo already exists.",
+ ),
+]
+
+RevisionOpt = Annotated[
+ str | None,
+ typer.Option(
+ help="Git revision id which can be a branch name, a tag, or a commit hash.",
+ ),
+]
+
+
+LimitOpt = Annotated[
+ int,
+ typer.Option(help="Limit the number of results."),
+]
+
+AuthorOpt = Annotated[
+ str | None,
+ typer.Option(help="Filter by author or organization."),
+]
+
+FilterOpt = Annotated[
+ list[str] | None,
+ typer.Option(help="Filter by tags (e.g. 'text-classification'). Can be used multiple times."),
+]
+
+SearchOpt = Annotated[
+ str | None,
+ typer.Option(help="Search query."),
+]
+
+
+# --- Env / Secrets shared options and parsing helpers (used by jobs, repos, etc.) ---
+
+EnvOpt = Annotated[
+ list[str] | None,
+ typer.Option(
+ "-e",
+ "--env",
+ help="Set environment variables. E.g. --env ENV=value",
+ ),
+]
+
+SecretsOpt = Annotated[
+ list[str] | None,
+ typer.Option(
+ "-s",
+ "--secrets",
+ help=(
+ "Set secret environment variables. E.g. --secrets SECRET=value"
+ " or `--secrets HF_TOKEN` to pass your Hugging Face token."
+ ),
+ ),
+]
+
+EnvFileOpt = Annotated[
+ str | None,
+ typer.Option(
+ "--env-file",
+ help="Read in a file of environment variables.",
+ ),
+]
+
+SecretsFileOpt = Annotated[
+ str | None,
+ typer.Option(
+ help="Read in a file of secret environment variables.",
+ ),
+]
+
+
+def _get_extended_environ() -> dict[str, str]:
+ """Return a copy of ``os.environ`` with the user's HF token injected (if available)."""
+ from huggingface_hub import get_token
+
+ extended_environ = os.environ.copy()
+ if (token := get_token()) is not None:
+ extended_environ["HF_TOKEN"] = token
+ return extended_environ
+
+
+def parse_env_map(
+ env: list[str] | None = None,
+ env_file: str | None = None,
+) -> dict[str, str | None]:
+ """Parse ``-e``/``--env``/``-s``/``--secrets`` and ``--env-file``/``--secrets-file`` CLI args into a dict.
+
+ Uses an extended environment that includes the user's HF token so that
+ bare ``--secrets HF_TOKEN`` resolves correctly.
+ """
+ extended_environ = _get_extended_environ()
+ env_map: dict[str, str | None] = {}
+ if env_file:
+ env_map.update(load_dotenv(Path(env_file).read_text(), environ=extended_environ))
+ for env_value in env or []:
+ env_map.update(load_dotenv(env_value, environ=extended_environ))
+ return env_map
+
+
+def env_map_to_key_value_list(env_map: dict[str, str | None]) -> list[dict[str, str]] | None:
+ """Convert an env/secrets dict to the ``[{"key": ..., "value": ...}]`` format used by the Hub API."""
+ if not env_map:
+ return None
+ return [{"key": k, "value": v or ""} for k, v in env_map.items()]
+
+
+VolumesOpt = Annotated[
+ list[str] | None,
+ typer.Option(
+ "-v",
+ "--volume",
+ help="Mount one or more volumes. Format: hf://[TYPE/]SOURCE:/MOUNT_PATH[:ro]. "
+ "TYPE is one of: models, datasets, spaces, buckets. "
+ "TYPE defaults to models if omitted. "
+ "models, datasets and spaces are always mounted read-only. buckets are read+write by default. "
+ "E.g. -v hf://org/m:/data or -v hf://datasets/org/ds:/data or -v hf://buckets/org/b:/mnt:ro",
+ ),
+]
+
+
+def parse_volumes(volumes: list[str] | None) -> "list[Volume] | None":
+ """Parse volume specs from CLI arguments.
+
+ Format: hf://[TYPE/]SOURCE[/PATH]:/MOUNT_PATH[:ro|:rw]
+ Where TYPE is one of: models, datasets, spaces, buckets (defaults to models if omitted).
+ SOURCE is the repo/bucket identifier (e.g. 'username/my-model').
+ PATH is an optional subfolder inside the repo/bucket.
+ MOUNT_PATH starts with '/'.
+ Optional ':ro' or ':rw' suffix for read-only or read-write.
+
+ Examples:
+ hf://my-org/my-model:/data (model, implicit type)
+ hf://models/my-org/my-model:/data (model, explicit type)
+ hf://datasets/my-org/my-dataset:/data:ro
+ hf://buckets/my-org/my-bucket:/mnt
+ hf://spaces/my-org/my-space:/app
+ hf://datasets/org/ds/train:/data (with path inside repo)
+ hf://buckets/org/b/sub/dir:/mnt (with path inside bucket)
+ """
+ if not volumes:
+ return None
+
+ result: list[Volume] = []
+ for raw_spec in volumes:
+ mount = parse_hf_mount(raw_spec)
+ result.append(
+ Volume(
+ type=mount.source.type,
+ source=mount.source.id,
+ mount_path=mount.mount_path,
+ read_only=mount.read_only,
+ path=mount.source.path_in_repo or None,
+ revision=mount.source.revision or None,
+ )
+ )
+ return result
+
+
+def make_expand_properties_parser(valid_properties: Sequence[ExpandPropertyT]):
+ """Create a callback to parse and validate comma-separated expand properties."""
+
+ def _parse_expand_properties(value: str | None) -> list[ExpandPropertyT] | None:
+ if value is None:
+ return None
+ properties = [p.strip() for p in value.split(",")]
+ for prop in properties:
+ if prop not in valid_properties:
+ raise typer.BadParameter(
+ f"Invalid expand property: '{prop}'. Valid values are: {', '.join(valid_properties)}"
+ )
+ return [cast(ExpandPropertyT, prop) for prop in properties]
+
+ return _parse_expand_properties
+
+
+### PyPI VERSION CHECKER
+
+
+def check_cli_update(library: Literal["huggingface_hub", "transformers"]) -> None:
+ """
+ Check whether a newer version of a library is available on PyPI.
+
+ If a newer version is found, print a hint pointing at `hf update`.
+
+ If current version is a pre-release (e.g. `1.0.0.rc1`), or a dev version (e.g. `1.0.0.dev1`), no check is performed.
+ If `HF_HUB_DISABLE_UPDATE_CHECK` is set, the check is skipped entirely.
+
+ This function is called at the entry point of the CLI. It only performs the check once every 24 hours, and any error
+ during the check is caught and logged, to avoid breaking the CLI.
+
+ Args:
+ library: The library to check for updates. Currently supports "huggingface_hub" and "transformers".
+ """
+ try:
+ _check_cli_update(library)
+ except Exception:
+ # We don't want the CLI to fail on version checks, no matter the reason.
+ logger.debug("Error while checking for CLI update.", exc_info=True)
+
+
+def _check_cli_update(library: Literal["huggingface_hub", "transformers"]) -> None:
+ if constants.HF_HUB_DISABLE_UPDATE_CHECK:
+ return
+
+ current_version = importlib.metadata.version(library)
+
+ # Skip if current version is a pre-release or dev version
+ if any(tag in current_version for tag in ["rc", "dev"]):
+ return
+
+ # Skip if already checked in the last 24 hours
+ if os.path.exists(constants.CHECK_FOR_UPDATE_DONE_PATH):
+ mtime = os.path.getmtime(constants.CHECK_FOR_UPDATE_DONE_PATH)
+ if (time.time() - mtime) < 24 * 3600:
+ return
+
+ # Touch the file to mark that we did the check now
+ Path(constants.CHECK_FOR_UPDATE_DONE_PATH).parent.mkdir(parents=True, exist_ok=True)
+ Path(constants.CHECK_FOR_UPDATE_DONE_PATH).touch()
+
+ # Check latest version from the appropriate registry
+ if library == "huggingface_hub" and installation_method() == "brew":
+ latest_version = _fetch_latest_brew_version()
+ else:
+ latest_version = _fetch_latest_pypi_version(library)
+ if latest_version is None or current_version == latest_version:
+ return
+
+ if library == "huggingface_hub":
+ update_command = _get_huggingface_hub_update_command()
+ else:
+ update_command = _get_transformers_update_command()
+
+ message = f"A new version of {library} ({latest_version}) is available! You are using version {current_version}."
+ if update_command is not None:
+ match library:
+ case "huggingface_hub":
+ message += "\nTo update, run: hf update"
+ case _:
+ message += f"\nTo update, run: {' '.join(update_command)}"
+ out.hint(message)
+
+
+def _fetch_latest_pypi_version(library: str) -> str | None:
+ """Fetch the latest version of a library from PyPI. Returns None if the request fails."""
+ try:
+ response = get_session().get(f"https://pypi.org/pypi/{library}/json", timeout=2)
+ hf_raise_for_status(response)
+ return response.json()["info"]["version"]
+ except Exception:
+ logger.debug("Error while fetching latest version from PyPI.", exc_info=True)
+ return None
+
+
+def _fetch_latest_brew_version() -> str | None:
+ """Fetch the latest version of the `hf` formula from the Homebrew registry. Returns None if the request fails."""
+ try:
+ response = get_session().get("https://formulae.brew.sh/api/formula/hf.json", timeout=2)
+ hf_raise_for_status(response)
+ return response.json()["versions"]["stable"]
+ except Exception:
+ logger.debug("Error while fetching latest version from Homebrew.", exc_info=True)
+ return None
+
+
+def run_update() -> int:
+ """Run the install-method-appropriate update command for the `hf` CLI.
+
+ Raises CLIError if the installation method can't be determined.
+ Returns the subprocess exit code on success/failure of the update itself.
+ """
+ cmd = _get_huggingface_hub_update_command()
+ if cmd is None:
+ raise CLIError(
+ "Cannot determine how to update huggingface_hub (unknown installation method). Please update manually."
+ )
+ return subprocess.call(cmd)
+
+
+def _get_huggingface_hub_update_command() -> list[str] | None:
+ """Return the command to update huggingface_hub as an argv list, or None if the installation method is unknown."""
+ match installation_method():
+ case "brew":
+ return ["brew", "upgrade", "hf"]
+ case "hf_installer" if os.name == "nt":
+ return ["powershell", "-NoProfile", "-Command", "iwr -useb https://hf.co/cli/install.ps1 | iex"]
+ case "hf_installer":
+ return ["bash", "-c", "curl -LsSf https://hf.co/cli/install.sh | bash -"]
+ case "pip":
+ return [sys.executable, "-m", "pip", "install", "-U", "huggingface_hub"]
+ case _:
+ return None
+
+
+def _get_transformers_update_command() -> list[str] | None:
+ """Return the command to update transformers as an argv list, or None if the installation method is unknown."""
+ match installation_method():
+ case "hf_installer" if os.name == "nt":
+ return [
+ "powershell",
+ "-NoProfile",
+ "-Command",
+ "iwr -useb https://hf.co/cli/install.ps1 | iex -WithTransformers",
+ ]
+ case "hf_installer":
+ return ["bash", "-c", "curl -LsSf https://hf.co/cli/install.sh | bash -s -- --with-transformers"]
+ case "pip":
+ return [sys.executable, "-m", "pip", "install", "-U", "transformers"]
+ case _:
+ return None
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_cp.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_cp.py
new file mode 100644
index 0000000000000000000000000000000000000000..665cb21d9ebe239882540bab933635ddd7741795
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_cp.py
@@ -0,0 +1,252 @@
+# Copyright 2026-present, the HuggingFace Inc. team.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""Shared ``cp`` command to copy files between local paths, repositories and buckets.
+
+This single command backs three identical CLI entry points: ``hf cp`` (top-level),
+``hf repos cp`` and ``hf buckets cp``. It supports any source/destination combination
+of local file, repo/bucket ``hf://`` URI, and ``-`` (stdin/stdout), with two exceptions:
+- bucket-to-repo copies are not supported (server limitation), and
+- local-to-local copies (use a regular ``cp`` for that).
+"""
+
+import os
+import sys
+from dataclasses import replace
+from typing import Annotated, Literal
+
+import typer
+
+from huggingface_hub import HfApi
+from huggingface_hub.errors import CLIError
+from huggingface_hub.utils import HfUri, SoftTemporaryDirectory, disable_progress_bars, is_hf_uri, parse_hf_uri
+
+from ._cli_utils import TokenOpt, get_hf_api
+from ._output import out
+
+
+CP_EXAMPLES = [
+ # Download (repo or bucket -> local / stdout)
+ "hf cp hf://username/my-model/config.json",
+ "hf cp hf://username/my-model/config.json ./config.json",
+ "hf cp hf://datasets/username/my-dataset/data.csv ./data/",
+ "hf cp hf://buckets/username/my-bucket/config.json -",
+ # Upload (local / stdin -> repo or bucket)
+ "hf cp ./model.safetensors hf://username/my-model/model.safetensors",
+ "hf cp ./config.json hf://buckets/username/my-bucket/logs/",
+ "hf cp - hf://buckets/username/my-bucket/config.json",
+ # Remote to remote (repo/bucket -> repo/bucket, server-side when possible)
+ "hf cp hf://username/source-model/ hf://username/dest-model/",
+ "hf cp hf://datasets/username/my-dataset/processed/ hf://buckets/username/my-bucket/processed/",
+ "hf cp hf://buckets/username/my-bucket/logs/ hf://buckets/username/archive-bucket/ # copies contents only",
+]
+
+
+# Which alias registered the command, used to restrict the remote endpoint type (see `_enforce_context`).
+CpContext = Literal["repos", "buckets"]
+
+
+def make_cp(context: CpContext | None = None):
+ """Build the ``cp`` command function for a given alias.
+
+ The three entry points (`hf cp`, `hf repos cp`, `hf buckets cp`) share the exact same logic;
+ 'context' only adds a guardrail on the remote endpoint type (see `_enforce_context`).
+ """
+
+ def cp(
+ src: Annotated[
+ str,
+ typer.Argument(help="Source: local file, hf:// URI (repo or bucket), or - for stdin."),
+ ],
+ dst: Annotated[
+ str | None,
+ typer.Argument(help="Destination: local path, hf:// URI (repo or bucket), or - for stdout."),
+ ] = None,
+ token: TokenOpt = None,
+ ) -> None:
+ """Copy files between local paths, repositories, and buckets.
+
+ Handles uploads (local/stdin -> repo/bucket), downloads (repo/bucket -> local/stdout) and
+ remote-to-remote copies (repo/bucket -> repo/bucket). Bucket-to-repo and local-to-local
+ copies are not supported. For directories, use `hf upload`/`hf download` (repos) or
+ `hf buckets sync` (buckets). Remote-to-remote copies only work within the same storage
+ region (https://huggingface.co/docs/hub/storage-regions).
+ """
+ _enforce_context(context, src, dst)
+ _run_cp(src, dst, token)
+
+ return cp
+
+
+def _enforce_context(context: CpContext | None, src: str, dst: str | None) -> None:
+ """Guardrail for the `hf repos cp` / `hf buckets cp` aliases.
+
+ These aliases are exact duplicates of `hf cp`, so a bare `hf repos cp` could otherwise touch a
+ bucket (and vice versa). We validate the type of the remote side: the destination for uploads and
+ remote-to-remote copies, or the source when downloading to a local path / stdout. The top-level
+ `hf cp` (i.e. 'context' is None) accepts any combination.
+ """
+ if context is None:
+ return
+ # The remote endpoint is the destination when it is an hf:// URI, otherwise the source (download).
+ remote = dst if (dst is not None and is_hf_uri(dst)) else src
+ if not is_hf_uri(remote):
+ return
+ if context == "repos" and parse_hf_uri(remote).is_bucket:
+ raise CLIError("`hf repos cp` only works with repositories. Use `hf cp` or `hf buckets cp` for buckets.")
+ if context == "buckets" and not parse_hf_uri(remote).is_bucket:
+ raise CLIError("`hf buckets cp` only works with buckets. Use `hf cp` or `hf repos cp` for repositories.")
+
+
+def _run_cp(src: str, dst: str | None, token: str | None) -> None:
+ api = get_hf_api(token=token)
+
+ src_is_stdin = src == "-"
+ dst_is_stdout = dst == "-"
+ src_is_hf = is_hf_uri(src)
+ dst_is_hf = dst is not None and is_hf_uri(dst)
+
+ # --- Remote to remote: delegate to copy_files (repo/bucket -> repo/bucket) ---
+ if src_is_hf and dst_is_hf:
+ assert dst is not None # guaranteed by dst_is_hf
+ api.copy_files(src, dst)
+ out.result("Copied", src=src, dst=dst)
+ return
+
+ # --- At least one side must be a remote hf:// URI (rules out local->local, stdin->local, etc.) ---
+ if not src_is_hf and not dst_is_hf:
+ if dst is None:
+ raise typer.BadParameter("Missing destination. Provide a repo or bucket hf:// URI as DST.")
+ raise typer.BadParameter(
+ "One of SRC or DST must be a repo (hf://username/...) or bucket (hf://buckets/...) URI."
+ )
+
+ # --- Download: repo/bucket -> local file or stdout ---
+ if src_is_hf:
+ if dst_is_stdout:
+ _download_file_to_stdout(api, src)
+ return
+ _download_file_to_local(api, src, dst)
+ return
+
+ # --- Upload: local file or stdin -> repo/bucket ---
+ assert dst is not None # guaranteed: reaching here means dst_is_hf is True
+ _upload_file_to_remote(api, src, dst, src_is_stdin=src_is_stdin)
+
+
+def _download_file_to_stdout(api: HfApi, src: str) -> None:
+ uri = parse_hf_uri(src)
+ filename = _source_filename(uri, src)
+ # Suppress progress bars to avoid polluting the piped output.
+ with disable_progress_bars():
+ with SoftTemporaryDirectory() as tmp_dir:
+ tmp_path = os.path.join(tmp_dir, filename)
+ _download_single(api, uri, tmp_path)
+ with open(tmp_path, "rb") as f:
+ while chunk := f.read(32_000_000): # 32MB chunks
+ sys.stdout.buffer.write(chunk)
+
+
+def _download_file_to_local(api: HfApi, src: str, dst: str | None) -> None:
+ uri = parse_hf_uri(src)
+ filename = _source_filename(uri, src)
+
+ if dst is None:
+ local_path = filename
+ elif os.path.isdir(dst) or dst.endswith(os.sep) or dst.endswith("/"):
+ local_path = os.path.join(dst, filename)
+ else:
+ local_path = dst
+
+ parent_dir = os.path.dirname(local_path)
+ if parent_dir:
+ os.makedirs(parent_dir, exist_ok=True)
+
+ _download_single(api, uri, local_path)
+ out.result("Downloaded", src=src, dst=local_path)
+
+
+def _download_single(api: HfApi, uri: HfUri, local_path: str) -> None:
+ """Download a single file (repo or bucket) to ``local_path``.
+
+ Used by `_download_file_to_local` and `_download_file_to_stdout`.
+ """
+ if uri.is_bucket:
+ api.download_bucket_files(uri.id, [(uri.path_in_repo, local_path)], raise_on_missing_files=True)
+ else:
+ # Download into a temporary folder next to the destination (rather than the shared cache)
+ # so the final move stays on the same filesystem and is instant. The temp folder is
+ # cleaned up automatically once the move is complete.
+ parent_dir = os.path.dirname(local_path) or "."
+ with SoftTemporaryDirectory(prefix=".tmp", dir=parent_dir) as tmp_dir:
+ downloaded_path = api.hf_hub_download(
+ repo_id=uri.id,
+ repo_type=uri.type,
+ filename=uri.path_in_repo,
+ revision=uri.revision,
+ local_dir=tmp_dir,
+ )
+ os.replace(downloaded_path, local_path)
+
+
+def _source_filename(uri: HfUri, src: str) -> str:
+ if uri.path_in_repo == "" or src.endswith("/"):
+ raise typer.BadParameter(
+ "Source path must include a file name, not just a repo/bucket or directory path."
+ " Use `hf download` or `hf buckets sync` to copy directories."
+ )
+ return uri.path_in_repo.rsplit("/", 1)[-1]
+
+
+def _upload_file_to_remote(api: HfApi, src: str, dst: str, *, src_is_stdin: bool) -> None:
+ uri = parse_hf_uri(dst)
+
+ if src_is_stdin:
+ if uri.path_in_repo == "" or dst.endswith("/"):
+ raise typer.BadParameter("Stdin upload requires a full destination path including filename.")
+ data = sys.stdin.buffer.read()
+ _upload_single(api, uri, data, uri.path_in_repo)
+ out.result("Uploaded", src="stdin", dst=uri.to_uri())
+ return
+
+ if os.path.isdir(src):
+ raise typer.BadParameter(
+ "Source must be a file, not a directory. Use `hf upload` or `hf buckets sync` for directories."
+ )
+ if not os.path.isfile(src):
+ raise typer.BadParameter(f"Source file not found: {src}")
+
+ prefix = uri.path_in_repo
+ if prefix == "":
+ remote_path = os.path.basename(src)
+ elif dst.endswith("/"):
+ remote_path = prefix + "/" + os.path.basename(src)
+ else:
+ remote_path = prefix
+
+ _upload_single(api, uri, src, remote_path)
+ out.result("Uploaded", src=src, dst=replace(uri, path_in_repo=remote_path).to_uri())
+
+
+def _upload_single(api: HfApi, uri: HfUri, source: str | bytes, remote_path: str) -> None:
+ """Upload a single file or bytes (to a repo or bucket)."""
+ if uri.is_bucket:
+ api.batch_bucket_files(uri.id, add=[(source, remote_path)])
+ else:
+ api.upload_file(
+ path_or_fileobj=source,
+ path_in_repo=remote_path,
+ repo_id=uri.id,
+ repo_type=uri.type,
+ revision=uri.revision,
+ )
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_errors.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_errors.py
new file mode 100644
index 0000000000000000000000000000000000000000..9c54c1daf3779c8465f8748df14ff645015d110b
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_errors.py
@@ -0,0 +1,130 @@
+# Copyright 2026 The HuggingFace Team. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""CLI error handling utilities."""
+
+import traceback
+from collections.abc import Callable
+
+from huggingface_hub.errors import (
+ BucketNotFoundError,
+ CLIError,
+ CLIExtensionInstallError,
+ EntryNotFoundError,
+ GatedRepoError,
+ HfHubHTTPError,
+ HfUriError,
+ LocalEntryNotFoundError,
+ LocalTokenNotFoundError,
+ OfflineModeIsEnabled,
+ OIDCError,
+ RemoteEntryNotFoundError,
+ RepositoryNotFoundError,
+ RevisionNotFoundError,
+)
+
+
+def _format_repo_not_found(error: RepositoryNotFoundError) -> str:
+ label = error.repo_type.capitalize() if error.repo_type else "Repository"
+ if error.repo_id:
+ msg = f"{label} '{error.repo_id}' not found."
+ else:
+ msg = f"{label} not found."
+ msg += " If the repo is private, make sure you are authenticated and your token has the required permissions."
+ return msg
+
+
+def _format_gated_repo(error: GatedRepoError) -> str:
+ label = error.repo_type if error.repo_type else "repository"
+ if error.repo_id:
+ return f"Access denied. {label.capitalize()} '{error.repo_id}' requires approval."
+ return f"Access denied. This {label} requires approval."
+
+
+def _format_bucket_not_found(error: BucketNotFoundError) -> str:
+ if error.bucket_id:
+ return f"Bucket '{error.bucket_id}' not found. If the bucket is private, make sure you are authenticated and your token has the required permissions."
+ return "Bucket not found. Check the bucket id (namespace/name). If the bucket is private, make sure you are authenticated and your token has the required permissions."
+
+
+def _format_entry_not_found(error: RemoteEntryNotFoundError) -> str:
+ label = error.repo_type if error.repo_type else "repository"
+ url = str(error.response.url) if error.response else None
+ if error.repo_id:
+ msg = f"File not found in {label} '{error.repo_id}'."
+ else:
+ msg = f"File not found in {label}."
+ if url:
+ msg += f"\nURL: {url}"
+ return msg
+
+
+def _format_local_entry_not_found(error: LocalEntryNotFoundError) -> str:
+ cause = error.__cause__
+ if cause is not None:
+ return f"Local entry not found. {cause}"
+ return f"Local entry not found. {error}"
+
+
+def _format_revision_not_found(error: RevisionNotFoundError) -> str:
+ label = error.repo_type if error.repo_type else "repository"
+ if error.repo_id:
+ return f"Revision not found in {label} '{error.repo_id}'."
+ return f"Revision not found in {label}. Check the revision parameter."
+
+
+def _format_cli_error(error: CLIError) -> str:
+ """No traceback, just the error message."""
+ return str(error)
+
+
+def _format_cli_extension_install_error(error: CLIExtensionInstallError) -> str:
+ """Format a CLI extension installation error.
+
+ The error is likely to be a tricky subprocess error to investigate. In this specific case we want to format the
+ traceback of the root cause while keeping the "nicely formatted" error message of the CLIExtensionInstallError
+ as a 1-line message.
+ """
+ cause_tb = (
+ "".join(traceback.format_exception(type(error.__cause__), error.__cause__, error.__cause__.__traceback__))
+ if error.__cause__ is not None
+ else ""
+ )
+ return f"{cause_tb}\n{error}"
+
+
+CLI_ERROR_MAPPINGS: dict[type[Exception], Callable[..., str]] = {
+ OfflineModeIsEnabled: lambda error: str(error),
+ # GatedRepoError must come before RepositoryNotFoundError (it's a subclass).
+ GatedRepoError: _format_gated_repo,
+ BucketNotFoundError: _format_bucket_not_found,
+ RepositoryNotFoundError: _format_repo_not_found,
+ RevisionNotFoundError: _format_revision_not_found,
+ LocalTokenNotFoundError: lambda _: "Not logged in. Run 'hf auth login' first.",
+ OIDCError: lambda error: f"OIDC Exchange failed. {error}",
+ RemoteEntryNotFoundError: _format_entry_not_found,
+ LocalEntryNotFoundError: _format_local_entry_not_found,
+ EntryNotFoundError: lambda error: str(error),
+ HfHubHTTPError: lambda error: str(error),
+ HfUriError: lambda error: f"Invalid HF URI: {error.uri}. {error.msg}",
+ ValueError: lambda error: f"Invalid value. {error}",
+ CLIExtensionInstallError: _format_cli_extension_install_error,
+ CLIError: _format_cli_error,
+}
+
+
+def format_known_exception(error: Exception) -> str | None:
+ for exc_type, formatter in CLI_ERROR_MAPPINGS.items():
+ if isinstance(error, exc_type):
+ return formatter(error)
+ return None
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_file_listing.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_file_listing.py
new file mode 100644
index 0000000000000000000000000000000000000000..8cf6ba0d3cfea40acfea6e25a3a6835054d06abc
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_file_listing.py
@@ -0,0 +1,225 @@
+# Copyright 2026-present, the HuggingFace Inc. team.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""Shared helpers for listing files in buckets and repos (tree view, flat view, formatting)."""
+
+import json
+from datetime import datetime
+from typing import Sequence
+
+import typer
+
+from huggingface_hub._buckets import BucketFile, BucketFolder
+from huggingface_hub.hf_api import RepoFile, RepoFolder
+
+from ._cli_utils import get_hf_api
+from ._output import OutputFormat, _dataclass_to_dict, out
+
+
+BucketItem = BucketFile | BucketFolder
+RepoItem = RepoFile | RepoFolder
+ListingItem = BucketItem | RepoItem
+
+
+def get_item_date(item: ListingItem) -> datetime | None:
+ """Extract date from an item, supporting both repo items (last_commit.date) and bucket items (mtime/uploaded_at)."""
+ match item:
+ case BucketFile(mtime=mtime) if mtime is not None:
+ return mtime
+ case BucketFile(uploaded_at=uploaded_at) | BucketFolder(uploaded_at=uploaded_at) if uploaded_at is not None:
+ return uploaded_at
+ case RepoFile(last_commit=last_commit) | RepoFolder(last_commit=last_commit) if last_commit is not None:
+ return last_commit.date
+ case _:
+ return None
+
+
+def format_size(size: int | float, human_readable: bool = False) -> str:
+ """Format a size in bytes."""
+ if not human_readable:
+ return str(size)
+
+ for unit in ["B", "KB", "MB", "GB", "TB"]:
+ if size < 1000:
+ if unit == "B":
+ return f"{size} {unit}"
+ return f"{size:.1f} {unit}"
+ size /= 1000
+ return f"{size:.1f} PB"
+
+
+def format_date(dt: datetime | None, human_readable: bool = False) -> str:
+ """Format a datetime to a readable date string."""
+ if dt is None:
+ return ""
+ if human_readable:
+ return dt.strftime("%b %d %H:%M")
+ return dt.strftime("%Y-%m-%d %H:%M:%S")
+
+
+def build_tree(
+ items: Sequence[BucketItem] | Sequence[RepoItem],
+ human_readable: bool = False,
+ quiet: bool = False,
+) -> list[str]:
+ """Build a tree representation of files and directories.
+
+ Produces ASCII tree with size and date columns before the tree connector.
+ When quiet=True, only the tree structure is shown (no size/date).
+ """
+ tree: dict = {}
+
+ for item in items:
+ parts = item.path.split("/")
+ current = tree
+ for part in parts[:-1]:
+ if part not in current:
+ current[part] = {"__children__": {}}
+ current = current[part]["__children__"]
+
+ final_part = parts[-1]
+ if isinstance(item, BucketFolder | RepoFolder):
+ if final_part not in current:
+ current[final_part] = {"__children__": {}}
+ else:
+ current[final_part] = {"__item__": item}
+
+ prefix_width = 0
+ max_size_width = 0
+ max_date_width = 0
+ if not quiet:
+ for item in items:
+ if isinstance(item, BucketFile | RepoFile):
+ size_str = format_size(item.size, human_readable)
+ max_size_width = max(max_size_width, len(size_str))
+ date_str = format_date(get_item_date(item), human_readable)
+ max_date_width = max(max_date_width, len(date_str))
+ if max_size_width > 0:
+ prefix_width = max_size_width + 2 + max_date_width
+
+ lines: list[str] = []
+ _render_tree(
+ tree,
+ lines,
+ "",
+ prefix_width=prefix_width,
+ max_size_width=max_size_width,
+ human_readable=human_readable,
+ )
+ return lines
+
+
+def _render_tree(
+ node: dict,
+ lines: list[str],
+ indent: str,
+ prefix_width: int = 0,
+ max_size_width: int = 0,
+ human_readable: bool = False,
+) -> None:
+ """Recursively render a tree structure with size+date prefix."""
+ sorted_items = sorted(node.items())
+ for i, (name, value) in enumerate(sorted_items):
+ is_last = i == len(sorted_items) - 1
+ connector = "└── " if is_last else "├── "
+
+ is_dir = "__children__" in value
+ children = value.get("__children__", {})
+
+ if prefix_width > 0:
+ if is_dir:
+ prefix = " " * prefix_width
+ else:
+ item = value.get("__item__")
+ if item is not None:
+ size_str = format_size(item.size, human_readable)
+ date_str = format_date(get_item_date(item), human_readable)
+ prefix = f"{size_str:>{max_size_width}} {date_str}"
+ else:
+ prefix = " " * prefix_width
+ lines.append(f"{prefix} {indent}{connector}{name}{'/' if is_dir else ''}")
+ else:
+ lines.append(f"{indent}{connector}{name}{'/' if is_dir else ''}")
+
+ if children:
+ child_indent = indent + (" " if is_last else "│ ")
+ _render_tree(
+ children,
+ lines,
+ child_indent,
+ prefix_width=prefix_width,
+ max_size_width=max_size_width,
+ human_readable=human_readable,
+ )
+
+
+def list_repo_files_cmd(
+ repo_id: str,
+ repo_type: str,
+ human_readable: bool,
+ as_tree: bool,
+ recursive: bool,
+ revision: str | None,
+ token: str | None,
+) -> None:
+ """List files in a repo on the Hub. Used by models/datasets/spaces ls commands."""
+ if as_tree and out.mode == OutputFormat.json:
+ raise typer.BadParameter("Cannot use --tree with --format json.")
+
+ api = get_hf_api(token=token)
+ items = list(api.list_repo_tree(repo_id, recursive=recursive, revision=revision, repo_type=repo_type, expand=True))
+ print_file_listing(items, human_readable=human_readable, as_tree=as_tree, recursive=recursive)
+
+
+def print_file_listing(
+ items: Sequence[BucketItem] | Sequence[RepoItem],
+ *,
+ human_readable: bool = False,
+ as_tree: bool = False,
+ recursive: bool = False,
+) -> None:
+ """Print a file listing in the appropriate format based on the current output mode.
+
+ Supports tree, json, quiet, and flat human-readable views. Works with both
+ BucketFile/BucketFolder and RepoFile/RepoFolder items.
+ """
+ if not items:
+ out.text("(empty)")
+ return
+
+ has_directories = any(isinstance(item, BucketFolder | RepoFolder) for item in items)
+
+ if as_tree:
+ quiet = out.mode == OutputFormat.quiet
+ for line in build_tree(items, human_readable=human_readable, quiet=quiet):
+ print(line)
+ elif out.mode == OutputFormat.json:
+ print(json.dumps([_dataclass_to_dict(item) for item in items], indent=2))
+ elif out.mode == OutputFormat.quiet:
+ for item in items:
+ if isinstance(item, BucketFolder | RepoFolder):
+ print(f"{item.path}/")
+ else:
+ print(item.path)
+ else:
+ for item in items:
+ if isinstance(item, BucketFolder | RepoFolder):
+ date_str = format_date(get_item_date(item), human_readable)
+ print(f"{'':>12} {date_str:>19} {item.path}/")
+ else:
+ size_str = format_size(item.size, human_readable)
+ date_str = format_date(get_item_date(item), human_readable)
+ print(f"{size_str:>12} {date_str:>19} {item.path}")
+
+ if not recursive and has_directories:
+ out.hint("Use -R to list files recursively.")
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_help_formatter.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_help_formatter.py
new file mode 100644
index 0000000000000000000000000000000000000000..7b733c4b895149418d53d645d346b575a6a218f7
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_help_formatter.py
@@ -0,0 +1,34 @@
+# Copyright 2026 The HuggingFace Team. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""Pretty ANSI help formatter for the `hf` CLI."""
+
+from collections.abc import Sequence
+
+import click
+
+from huggingface_hub.utils import ANSI
+
+
+class StyledHelpFormatter(click.HelpFormatter):
+ def write_heading(self, heading: str) -> None:
+ styled = ANSI.underline(heading + ":")
+ self.write(f"{'':>{self.current_indent}}{styled}\n")
+
+ def write_dl(self, rows: Sequence[tuple[str, str]], col_max: int = 30, col_spacing: int = 2) -> None:
+ rows = [(ANSI.bold(first), second) for first, second in rows]
+ super().write_dl(rows, col_max=col_max, col_spacing=col_spacing)
+
+
+class StyledContext(click.Context):
+ formatter_class = StyledHelpFormatter
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_output.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_output.py
new file mode 100644
index 0000000000000000000000000000000000000000..32fd56935fcbcdf7fc6e502177aa0196c75ba88c
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_output.py
@@ -0,0 +1,345 @@
+# Copyright 2026 The HuggingFace Team. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""Output framework for the `hf` CLI."""
+
+import dataclasses
+import datetime
+import json
+import re
+import shutil
+import sys
+from collections.abc import Sequence
+from enum import Enum
+from typing import Any, cast
+
+import typer
+
+from huggingface_hub.errors import ConfirmationError
+from huggingface_hub.utils import ANSI, StatusLine, disable_progress_bars, is_agent, tabulate
+
+
+class OutputFormat(str, Enum):
+ """Output format for CLI commands with auto detection of agent/human mode."""
+
+ agent = "agent"
+ auto = "auto"
+ human = "human"
+ json = "json"
+ quiet = "quiet"
+
+
+class Output:
+ """Output sink for the `hf` CLI.
+
+ Mode is resolved once at init time based on `is_agent()` auto-detection
+ and can be overridden per-command via `set_mode()`.
+ """
+
+ mode: OutputFormat
+ no_truncate: bool
+
+ def __init__(self) -> None:
+ self.no_truncate = False
+ self.set_mode()
+
+ def set_mode(self, mode: OutputFormat = OutputFormat.auto) -> None:
+ """Override the output mode (called once at startup and again per '--format' flag)."""
+ if mode == OutputFormat.auto:
+ mode = OutputFormat.agent if is_agent() else OutputFormat.human
+ self.mode = mode
+ if mode != OutputFormat.human:
+ disable_progress_bars()
+
+ def set_no_truncate(self, no_truncate: bool) -> None:
+ """Toggle off cell truncation for human table output."""
+ self.no_truncate = no_truncate
+
+ def is_quiet(self) -> bool:
+ return self.mode == OutputFormat.quiet
+
+ def text(self, msg: str | None = None, *, human: str | None = None, agent: str | None = None) -> None:
+ """Print a free-form text message to stdout."""
+ if msg is not None:
+ if human is not None or agent is not None:
+ raise ValueError("Cannot mix 'msg' with 'human'/'agent'.")
+ human = msg
+ agent = _strip_ansi(msg)
+
+ match self.mode:
+ case OutputFormat.human:
+ if human is not None:
+ print(human)
+ case OutputFormat.agent:
+ if agent is not None:
+ print(agent)
+ # json/quiet: no-op
+
+ def table(
+ self,
+ items: Sequence[dict[str, Any]],
+ *,
+ headers: list[str] | None = None,
+ id_key: str | None = None,
+ alignments: dict[str, str] | None = None,
+ ) -> None:
+ """Print tabular data to stdout.
+
+ Args:
+ items: List of dicts. Headers are auto-detected from keys if not provided.
+ headers: Explicit column names. If None, derived from dict keys (all-None columns filtered).
+ id_key: Key to print in quiet mode. If None, uses the first header.
+ alignments: Optional mapping of header name to "left" or "right". Defaults to "left".
+ """
+ if not items:
+ match self.mode:
+ case OutputFormat.agent | OutputFormat.human:
+ print("No results found.")
+ case OutputFormat.json:
+ print("[]")
+ return
+
+ if headers is None:
+ all_columns = list(items[0].keys())
+ headers = [col for col in all_columns if any(item.get(col) is not None for item in items)]
+ rows = [[item.get(h) for h in headers] for item in items]
+
+ match self.mode:
+ case OutputFormat.human: # padded table, adaptive truncation, SCREAMING_SNAKE headers
+ screaming_headers = [_to_header(h) for h in headers]
+ formatted_rows: list[list[str]] = [[_format_table_value_human(v) for v in row] for row in rows]
+
+ is_truncated = _truncate_columns(screaming_headers, formatted_rows, no_truncate=self.no_truncate)
+
+ inferred = {**_infer_alignments(headers, rows), **(alignments or {})}
+ screaming_alignments = {_to_header(k): v for k, v in inferred.items()}
+ print(
+ tabulate(
+ cast("list[list[str | int]]", formatted_rows),
+ headers=screaming_headers,
+ alignments=screaming_alignments,
+ )
+ )
+ if is_truncated:
+ self.hint("Use `--no-truncate` or `--format json` to display full values.")
+ case OutputFormat.agent: # TSV, no truncation, full timestamps
+ print("\t".join(headers))
+ for row in rows:
+ print("\t".join(_format_table_cell_agent(v) for v in row))
+ case OutputFormat.json: # compact JSON array
+ print(json.dumps(list(items), default=str))
+ case OutputFormat.quiet: # id_key column (or first column), one per line
+ quiet_key = id_key or headers[0]
+ for item in items:
+ print(item.get(quiet_key, ""))
+
+ def dict(self, data: Any, *, id_key: str | None = None) -> None:
+ """Print structured data as JSON in all modes (indented for human, compact otherwise).
+
+ Accepts a dict or a dataclass.
+ """
+ if dataclasses.is_dataclass(data) and not isinstance(data, type):
+ data = _dataclass_to_dict(data)
+ if self.mode == OutputFormat.quiet and id_key is not None:
+ print(data.get(id_key, ""))
+ return
+ indent = 2 if self.mode == OutputFormat.human else None
+ print(json.dumps(data, indent=indent, default=str))
+
+ def result(self, message: str, **data: Any) -> None:
+ """Print a success summary to stdout."""
+ match self.mode:
+ case OutputFormat.human: # ✓ message + key: value lines
+ parts = [ANSI.green(f"✓ {message}")]
+ for k, v in data.items():
+ if v is not None:
+ parts.append(f" {k}: {v}")
+ print("\n".join(parts))
+ case OutputFormat.agent: # key=val pairs, space-separated
+ parts = [f"{k}={v}" for k, v in data.items() if v is not None]
+ print(" ".join(parts) if parts else message)
+ case OutputFormat.json: # json.dumps(data), message ignored
+ print(json.dumps(data, default=str) if data else "")
+ case OutputFormat.quiet: # first value only
+ values = list(data.values())
+ if values:
+ print(values[0])
+
+ def confirm(self, message: str, *, default: bool = False, yes: bool = False, confirm_param: str = "--yes") -> None:
+ """
+ Ask for confirmation. Raises `ConfirmationError` in non-human modes.
+ """
+ if yes:
+ return
+ if self.mode != OutputFormat.human:
+ raise ConfirmationError(f"{message} Use {confirm_param} to skip confirmation.")
+ typer.confirm(message, default=default, abort=True)
+
+ def status(self, message: str | None = None) -> StatusLine:
+ """Return a status line that emits only in human mode (no-op otherwise)."""
+ status = StatusLine(enabled=self.mode == OutputFormat.human)
+ if message is not None:
+ status.update(message)
+ return status
+
+ def warning(self, message: str) -> None:
+ """Print a non-fatal warning to stderr (all modes)."""
+ if self.mode == OutputFormat.human:
+ print(ANSI.yellow(f"Warning: {message}"), file=sys.stderr)
+ else:
+ print(f"Warning: {message}", file=sys.stderr)
+
+ def error(self, message: str) -> None:
+ """Print an error to stderr (all modes)."""
+ if self.mode == OutputFormat.human:
+ print(ANSI.red(f"Error: {message}"), file=sys.stderr)
+ else:
+ print(f"Error: {message}", file=sys.stderr)
+
+ def hint(self, message: str) -> None:
+ """Print a helpful hint to stderr (human: gray, json/agent: plain text).
+
+ Suppressed in quiet mode. Kept in json mode (like agent) since agents
+ commonly run with ``--format json`` and the next-command hints are useful
+ there; hints go to stderr so they never pollute the parsed stdout.
+ """
+ if self.mode == OutputFormat.quiet:
+ return
+ if self.mode == OutputFormat.human:
+ print(ANSI.gray(f"Hint: {message}"), file=sys.stderr)
+ else:
+ print(f"Hint: {message}", file=sys.stderr)
+
+
+# HELPERS
+
+
+def _serialize_value(v: object) -> object:
+ """Recursively serialize a value to be JSON-compatible."""
+ if isinstance(v, datetime.datetime):
+ return v.isoformat()
+ elif isinstance(v, dict):
+ return {key: _serialize_value(val) for key, val in v.items() if val is not None}
+ elif isinstance(v, list):
+ return [_serialize_value(item) for item in v]
+ return v
+
+
+def _dataclass_to_dict(info: Any) -> dict[str, Any]:
+ """Convert a dataclass to a json-serializable dict."""
+ return {k: _serialize_value(v) for k, v in dataclasses.asdict(info).items() if v is not None}
+
+
+_ANSI_RE = re.compile(r"\033\[[0-9;]*m")
+
+
+def _strip_ansi(text: str) -> str:
+ return _ANSI_RE.sub("", text)
+
+
+def _single_line(text: str) -> str:
+ return " ".join(text.split())
+
+
+def _to_header(name: str) -> str:
+ """Convert a camelCase or PascalCase string to SCREAMING_SNAKE_CASE."""
+ s = re.sub(r"([a-z])([A-Z])", r"\1_\2", name)
+ return s.upper()
+
+
+def _infer_alignments(headers: list[str], rows: list[list[Any]]) -> dict[str, str]:
+ """Return ``{"col": "right"}`` for columns where every non-None value is numeric."""
+ result: dict[str, str] = {}
+ for c, h in enumerate(headers):
+ if all(row[c] is None or (isinstance(row[c], (int, float)) and not isinstance(row[c], bool)) for row in rows):
+ result[h] = "right"
+ return result
+
+
+def _format_table_value_human(value: Any) -> str:
+ """Convert a value to string for terminal display."""
+ if value is None:
+ return ""
+ if isinstance(value, bool):
+ return "✔" if value else ""
+ if isinstance(value, datetime.datetime):
+ return value.strftime("%Y-%m-%d")
+ if isinstance(value, str) and re.match(r"^\d{4}-\d{2}-\d{2}T", value):
+ return value[:10]
+ if isinstance(value, str):
+ return _single_line(value)
+ if isinstance(value, list):
+ return ", ".join(_format_table_value_human(v) for v in value)
+ elif isinstance(value, dict):
+ if "name" in value: # Likely to be a user or org => print name
+ return _single_line(str(value["name"]))
+ return _single_line(json.dumps(value))
+ return _single_line(str(value))
+
+
+def _truncate_columns(
+ headers: list[str],
+ rows: list[list[str]],
+ *,
+ no_truncate: bool,
+) -> bool:
+ """Truncate cells in-place to fit the current terminal width.
+
+ Returns `True` if any cell was truncated, so the caller can emit a hint.
+ `shutil.get_terminal_size` is cross-platform: it honors `$COLUMNS`, then
+ queries the OS-native API, then falls back to `(80, 24)`.
+ """
+ if no_truncate or not rows:
+ return False
+
+ n = len(headers)
+ # Per-column natural width: longest of header label and cell values.
+ natural = [max(len(headers[c]), *(len(rows[r][c]) for r in range(len(rows)))) for c in range(n)]
+
+ # `max(0, n - 1)` accounts for the single-space separator between columns.
+ budget = shutil.get_terminal_size().columns - max(0, n - 1)
+ if sum(natural) <= budget:
+ return False
+
+ # Shrink the widest column 1 char at a time. Floors keep the header label
+ # visible; the `4` is the smallest cap that still shows "x..." (one content
+ # char plus the "..." marker).
+ caps = natural.copy()
+ min_widths = [max(len(h), 4) for h in headers]
+ while sum(caps) > budget:
+ widest = max(
+ (i for i, w in enumerate(caps) if w > min_widths[i]),
+ key=lambda i: caps[i],
+ default=-1,
+ )
+ if widest < 0:
+ break # everything at floor — table wraps slightly
+ caps[widest] -= 1
+
+ truncated = False
+ for row in rows:
+ for c, cell in enumerate(row):
+ if len(cell) > caps[c]:
+ truncated = True
+ row[c] = cell[: caps[c] - 3] + "..."
+ return truncated
+
+
+def _format_table_cell_agent(value: Any) -> str:
+ """Format a cell value for agent TSV output (ISO timestamps, tabs escaped)."""
+ if isinstance(value, datetime.datetime):
+ return value.isoformat()
+ return _single_line(str(value))
+
+
+out = Output()
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_skills.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_skills.py
new file mode 100644
index 0000000000000000000000000000000000000000..0fa33dc338c538be7c44900866be58ca7e19716b
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/_skills.py
@@ -0,0 +1,260 @@
+"""Internal helpers for Hugging Face marketplace skill installation and upgrades."""
+
+import json
+import shutil
+import tempfile
+from dataclasses import dataclass, replace
+from pathlib import Path, PurePosixPath
+from typing import Any, Literal
+
+from huggingface_hub._buckets import BucketFile
+from huggingface_hub.errors import CLIError
+
+from ..utils import disable_progress_bars
+from ._cli_utils import get_hf_api
+
+
+DEFAULT_SKILLS_BUCKET_ID = "huggingface/skills"
+MARKETPLACE_PATH = "marketplace.json"
+# Empty marker file dropped into managed skill installs so `hf skills update` knows
+# to touch them and leave user-placed skill dirs alone. Filename is historical (used
+# to be a JSON manifest with a revision); we keep it for backward compat with installs
+# made by previous versions.
+MANAGED_MARKER_FILENAME = ".hf-skill-manifest.json"
+
+SkillUpdateStatus = Literal["up_to_date", "unmanaged", "source_unreachable"]
+
+
+@dataclass(frozen=True)
+class MarketplaceSkill:
+ name: str
+ repo_path: str
+ description: str | None = None
+
+
+@dataclass(frozen=True)
+class SkillUpdateInfo:
+ name: str
+ skill_dir: Path
+ status: SkillUpdateStatus
+ detail: str | None = None
+
+
+def add_skill(skill_name: str, destination_root: Path, force: bool = False) -> Path:
+ """Resolve a marketplace skill by name and install it."""
+ api = get_hf_api()
+ with disable_progress_bars():
+ marketplace_skills = _load_marketplace_skills(api)
+ skill = _select_marketplace_skill(marketplace_skills, skill_name)
+ if skill is None:
+ raise CLIError(
+ f"Skill '{skill_name}' not found in {DEFAULT_SKILLS_BUCKET_ID}. "
+ "Try `hf skills add` to install `hf-cli` or use a known skill name."
+ )
+ return _install_marketplace_skill(api, skill, destination_root, force=force)
+
+
+def update_skills(roots: list[Path], selector: str | None = None) -> list[SkillUpdateInfo]:
+ """Re-sync managed marketplace skill installs from the bucket."""
+ skill_dirs = _iter_unique_skill_dirs(roots)
+ if selector is not None:
+ selector_lower = selector.strip().lower()
+ skill_dirs = [d for d in skill_dirs if d.name.lower() == selector_lower]
+ if not skill_dirs:
+ raise CLIError(f"No installed skill matches '{selector}'. Install it with `hf skills add {selector}`.")
+
+ api = get_hf_api()
+ with disable_progress_bars():
+ marketplace_skills = {skill.name.lower(): skill for skill in _load_marketplace_skills(api)}
+ return [_apply_single_update(api, skill_dir, marketplace_skills) for skill_dir in skill_dirs]
+
+
+def _load_marketplace_skills(api) -> list[MarketplaceSkill]:
+ payload = _load_marketplace_payload(api)
+ plugins = payload.get("plugins")
+ if not isinstance(plugins, list):
+ raise CLIError("Invalid marketplace payload: expected a top-level 'plugins' list.")
+
+ skills: list[MarketplaceSkill] = []
+ for plugin in plugins:
+ if not isinstance(plugin, dict):
+ continue
+ name = plugin.get("name")
+ source = plugin.get("source")
+ if not isinstance(name, str) or not isinstance(source, str):
+ continue
+ description = plugin.get("description")
+ skills.append(
+ MarketplaceSkill(
+ name=name,
+ repo_path=_normalize_repo_path(source),
+ description=description if isinstance(description, str) else None,
+ )
+ )
+ return skills
+
+
+def _install_marketplace_skill(api, skill: MarketplaceSkill, destination_root: Path, force: bool = False) -> Path:
+ """Install a marketplace skill into a local skills directory."""
+ destination_root = destination_root.expanduser().resolve()
+ destination_root.mkdir(parents=True, exist_ok=True)
+ install_dir = destination_root / skill.name
+ already_exists = install_dir.exists()
+
+ if already_exists and not force:
+ raise FileExistsError(f"Skill already exists: {install_dir}")
+
+ if already_exists:
+ # Stage the new content in a sibling tempdir and atomically rename, so the
+ # existing install stays intact if the download fails halfway through.
+ with tempfile.TemporaryDirectory(dir=destination_root, prefix=f".{install_dir.name}.install-") as tmp_dir_str:
+ staged_dir = Path(tmp_dir_str) / install_dir.name
+ _populate_install_dir(api, skill=skill, install_dir=staged_dir)
+ _atomic_replace_directory(existing_dir=install_dir, staged_dir=staged_dir)
+ return install_dir
+
+ try:
+ _populate_install_dir(api, skill=skill, install_dir=install_dir)
+ except Exception:
+ if install_dir.exists():
+ shutil.rmtree(install_dir)
+ raise
+ return install_dir
+
+
+def _load_marketplace_payload(api) -> dict[str, Any]:
+ with tempfile.TemporaryDirectory() as tmp_dir:
+ local_path = Path(tmp_dir) / "marketplace.json"
+ api.download_bucket_files(
+ DEFAULT_SKILLS_BUCKET_ID,
+ [(MARKETPLACE_PATH, local_path)],
+ raise_on_missing_files=True,
+ )
+ parsed = json.loads(local_path.read_text(encoding="utf-8"))
+
+ if not isinstance(parsed, dict):
+ raise CLIError("Invalid marketplace payload: expected a JSON object.")
+ return parsed
+
+
+def _select_marketplace_skill(skills: list[MarketplaceSkill], selector: str) -> MarketplaceSkill | None:
+ selector_lower = selector.strip().lower()
+ for skill in skills:
+ if skill.name.lower() == selector_lower:
+ return skill
+ return None
+
+
+def _normalize_repo_path(path: str) -> str:
+ normalized = path.strip()
+ while normalized.startswith("./"):
+ normalized = normalized[2:]
+ normalized = normalized.strip("/")
+ if not normalized:
+ raise CLIError("Invalid marketplace entry: empty source path.")
+ return normalized
+
+
+def _populate_install_dir(api, skill: MarketplaceSkill, install_dir: Path) -> None:
+ install_dir.mkdir(parents=True, exist_ok=True)
+ bucket_files = _list_skill_files(api, skill)
+ _download_skill_files(api, skill, bucket_files, install_dir)
+ _validate_installed_skill_dir(install_dir)
+ (install_dir / MANAGED_MARKER_FILENAME).touch()
+
+
+def _validate_installed_skill_dir(skill_dir: Path) -> None:
+ skill_file = skill_dir / "SKILL.md"
+ if not skill_file.is_file():
+ raise RuntimeError(f"Installed skill is missing SKILL.md: {skill_file}")
+
+
+def _list_skill_files(api, skill: MarketplaceSkill) -> list[BucketFile]:
+ """List all files under `skill.repo_path` in the marketplace bucket."""
+ prefix = skill.repo_path.rstrip("/")
+ files: list[BucketFile] = [
+ item
+ for item in api.list_bucket_tree(DEFAULT_SKILLS_BUCKET_ID, prefix=prefix, recursive=True)
+ if isinstance(item, BucketFile)
+ ]
+ if not files:
+ raise FileNotFoundError(f"Path '{prefix}' not found in bucket '{DEFAULT_SKILLS_BUCKET_ID}'.")
+ return files
+
+
+def _download_skill_files(api, skill: MarketplaceSkill, files: list[BucketFile], install_dir: Path) -> None:
+ """Download bucket files into `install_dir`."""
+ prefix = skill.repo_path.rstrip("/")
+ prefix_with_slash = f"{prefix}/"
+
+ # `list_bucket_tree(prefix=...)` matches as a raw string prefix, so e.g. asking for
+ # "skills/gradio" can also return "skills/gradio-tools/...". Filter on the trailing
+ # slash to keep only files actually inside the directory, then strip it so files land
+ # directly under `install_dir` preserving any nested structure.
+ download_specs: list[tuple[str | BucketFile, str | Path]] = []
+ for bucket_file in files:
+ if not bucket_file.path.startswith(prefix_with_slash):
+ continue
+ relative = bucket_file.path[len(prefix_with_slash) :]
+ local_file = install_dir.joinpath(*PurePosixPath(relative).parts)
+ local_file.parent.mkdir(parents=True, exist_ok=True)
+ download_specs.append((bucket_file, local_file))
+
+ if not download_specs:
+ raise FileNotFoundError(f"No files found under '{prefix}' in bucket '{DEFAULT_SKILLS_BUCKET_ID}'.")
+
+ api.download_bucket_files(DEFAULT_SKILLS_BUCKET_ID, download_specs)
+
+
+def _atomic_replace_directory(existing_dir: Path, staged_dir: Path) -> None:
+ backup_dir = staged_dir.parent / f"{existing_dir.name}.backup"
+ try:
+ existing_dir.rename(backup_dir)
+ staged_dir.rename(existing_dir)
+ shutil.rmtree(backup_dir)
+ except Exception:
+ if backup_dir.exists() and not existing_dir.exists():
+ backup_dir.rename(existing_dir)
+ raise
+
+
+def _iter_unique_skill_dirs(roots: list[Path]) -> list[Path]:
+ seen: set[Path] = set()
+ discovered: list[Path] = []
+ for root in roots:
+ root = root.expanduser().resolve()
+ if not root.is_dir():
+ continue
+ for child in sorted(root.iterdir()):
+ if child.name.startswith("."):
+ continue
+ if not child.is_dir() and not child.is_symlink():
+ continue
+ resolved = child.resolve()
+ if resolved in seen or not resolved.is_dir():
+ continue
+ seen.add(resolved)
+ discovered.append(resolved)
+ return discovered
+
+
+def _apply_single_update(api, skill_dir: Path, marketplace_skills: dict[str, MarketplaceSkill]) -> SkillUpdateInfo:
+ base = SkillUpdateInfo(name=skill_dir.name, skill_dir=skill_dir, status="unmanaged")
+
+ if not (skill_dir / MANAGED_MARKER_FILENAME).exists():
+ return base
+
+ skill = marketplace_skills.get(skill_dir.name.lower())
+ if skill is None:
+ return replace(
+ base,
+ status="source_unreachable",
+ detail=f"Skill '{skill_dir.name}' is no longer available in {DEFAULT_SKILLS_BUCKET_ID}.",
+ )
+
+ try:
+ _install_marketplace_skill(api, skill, skill_dir.parent, force=True)
+ except Exception as exc:
+ return replace(base, status="source_unreachable", detail=str(exc))
+
+ return replace(base, status="up_to_date")
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/auth.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/auth.py
new file mode 100644
index 0000000000000000000000000000000000000000..4ea277e072961584e1e0801533b4c538c1e34511
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/auth.py
@@ -0,0 +1,174 @@
+# Copyright 2020 The HuggingFace Team. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""Contains commands to authenticate to the Hugging Face Hub and interact with your repositories.
+
+Usage:
+ # login and save token locally.
+ hf auth login --token=hf_*** --add-to-git-credential
+
+ # switch between tokens
+ hf auth switch
+
+ # list all tokens
+ hf auth list
+
+ # logout from all tokens
+ hf auth logout
+
+ # check which account you are logged in as
+ hf auth whoami
+"""
+
+from typing import Annotated
+
+import typer
+
+from huggingface_hub.constants import ENDPOINT
+from huggingface_hub.hf_api import whoami
+
+from .._login import auth_list, auth_switch, login, logout
+from ..utils import get_stored_tokens, get_token, logging
+from ._cli_utils import TokenOpt, typer_factory
+from ._output import out
+
+
+logger = logging.get_logger(__name__)
+
+
+auth_cli = typer_factory(help="Manage authentication (login, logout, etc.).")
+
+
+@auth_cli.command(
+ "login",
+ examples=[
+ "hf auth login",
+ "hf auth login --token $HF_TOKEN",
+ "hf auth login --token $HF_TOKEN --add-to-git-credential",
+ "hf auth login --force",
+ ],
+)
+def auth_login(
+ token: TokenOpt = None,
+ add_to_git_credential: Annotated[
+ bool,
+ typer.Option(
+ help="Save to git credential helper. Useful only if you plan to run git commands directly.",
+ ),
+ ] = False,
+ force: Annotated[
+ bool,
+ typer.Option(
+ help="Force re-login even if already logged in.",
+ ),
+ ] = False,
+) -> None:
+ """Login using a token from huggingface.co/settings/tokens."""
+ login(token=token, add_to_git_credential=add_to_git_credential, skip_if_logged_in=not force)
+
+
+@auth_cli.command(
+ "logout",
+ examples=["hf auth logout", "hf auth logout --token-name my-token"],
+)
+def auth_logout(
+ token_name: Annotated[
+ str | None,
+ typer.Option(help="Name of token to logout"),
+ ] = None,
+) -> None:
+ """Logout from a specific token."""
+ logout(token_name=token_name)
+
+
+def _select_token_name() -> str | None:
+ token_names = list(get_stored_tokens().keys())
+
+ if not token_names:
+ logger.error("No stored tokens found. Please login first.")
+ return None
+
+ print("Available stored tokens:")
+ for i, token_name in enumerate(token_names, 1):
+ print(f"{i}. {token_name}")
+ while True:
+ try:
+ choice = input("Enter the number of the token to switch to (or 'q' to quit): ")
+ if choice.lower() == "q":
+ return None
+ index = int(choice) - 1
+ if 0 <= index < len(token_names):
+ return token_names[index]
+ else:
+ print("Invalid selection. Please try again.")
+ except ValueError:
+ print("Invalid input. Please enter a number or 'q' to quit.")
+
+
+@auth_cli.command(
+ "switch",
+ examples=["hf auth switch", "hf auth switch --token-name my-token"],
+)
+def auth_switch_cmd(
+ token_name: Annotated[
+ str | None,
+ typer.Option(
+ help="Name of the token to switch to",
+ ),
+ ] = None,
+ add_to_git_credential: Annotated[
+ bool,
+ typer.Option(
+ help="Save to git credential helper. Useful only if you plan to run git commands directly.",
+ ),
+ ] = False,
+) -> None:
+ """Switch between access tokens."""
+ if token_name is None:
+ token_name = _select_token_name()
+ if token_name is None:
+ print("No token name provided. Aborting.")
+ raise typer.Exit()
+ auth_switch(token_name, add_to_git_credential=add_to_git_credential)
+
+
+@auth_cli.command("list | ls", examples=["hf auth list"])
+def auth_list_cmd() -> None:
+ """List all stored access tokens."""
+ auth_list()
+
+
+@auth_cli.command("token", examples=["hf auth token", "hf auth token | xargs curl -H 'Authorization: Bearer {}'"])
+def auth_token() -> None:
+ """Print the current access token to stdout."""
+ token = get_token()
+ if token is None:
+ out.error("Not logged in. Run `hf auth login` first.")
+ raise typer.Exit(code=1)
+ print(token)
+ out.hint("Run `hf auth whoami` to see which account this token belongs to.")
+
+
+@auth_cli.command("whoami", examples=["hf auth whoami", "hf auth whoami --format json"])
+def auth_whoami() -> None:
+ """Find out which huggingface.co account you are logged in as."""
+
+ token = get_token()
+ if token is None:
+ out.error("Not logged in")
+ raise typer.Exit(code=1)
+
+ info = whoami(token)
+ orgs = ",".join(org["name"] for org in info["orgs"]) or None
+ endpoint = ENDPOINT if ENDPOINT != "https://huggingface.co" else None
+ out.result("Logged in", user=info["name"], orgs=orgs, endpoint=endpoint)
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/buckets.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/buckets.py
new file mode 100644
index 0000000000000000000000000000000000000000..fa3da183706d53fc25f8a8ec0c01667cb1cdc91a
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/buckets.py
@@ -0,0 +1,678 @@
+# Copyright 2025-present, the HuggingFace Inc. team.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""Contains commands to interact with buckets via the CLI."""
+
+from typing import Annotated
+
+import typer
+
+from huggingface_hub import logging
+from huggingface_hub._buckets import (
+ BUCKET_PREFIX,
+ BucketFile,
+ FilterMatcher,
+ _parse_bucket_uri,
+)
+
+from ..hf_api import REPO_REGIONS
+from ._cli_utils import (
+ SearchOpt,
+ TokenOpt,
+ get_hf_api,
+ typer_factory,
+)
+from ._cp import make_cp
+from ._file_listing import format_size, print_file_listing
+from ._output import OutputFormat, out
+
+
+logger = logging.get_logger(__name__)
+
+
+buckets_cli = typer_factory(help="Commands to interact with buckets.")
+
+
+@buckets_cli.command(
+ name="create",
+ examples=[
+ "hf buckets create my-bucket",
+ "hf buckets create user/my-bucket",
+ "hf buckets create hf://buckets/user/my-bucket",
+ "hf buckets create user/my-bucket --private",
+ "hf buckets create user/my-bucket --exist-ok",
+ "hf buckets create user/my-bucket --region us",
+ ],
+)
+def create(
+ bucket_id: Annotated[
+ str,
+ typer.Argument(
+ help="Bucket ID: bucket_name, namespace/bucket_name, or hf://buckets/namespace/bucket_name",
+ ),
+ ],
+ private: Annotated[
+ bool,
+ typer.Option(
+ "--private",
+ help="Create a private bucket.",
+ ),
+ ] = False,
+ region: Annotated[
+ REPO_REGIONS | None,
+ typer.Option(
+ "--region",
+ help="Cloud region in which to create the bucket. Can be one of 'us' or 'eu'. Requires Team plan or above.",
+ ),
+ ] = None,
+ exist_ok: Annotated[
+ bool,
+ typer.Option(
+ "--exist-ok",
+ help="Do not raise an error if the bucket already exists.",
+ ),
+ ] = False,
+ token: TokenOpt = None,
+) -> None:
+ """Create a new bucket."""
+ api = get_hf_api(token=token)
+
+ if bucket_id.startswith(BUCKET_PREFIX):
+ parsed = _parse_bucket_uri(bucket_id)
+ if parsed.path_in_repo:
+ raise typer.BadParameter(
+ f"Cannot specify a prefix for bucket creation: {bucket_id}."
+ f" Use namespace/bucket_name or {BUCKET_PREFIX}namespace/bucket_name."
+ )
+ bucket_id = parsed.id
+
+ bucket_url = api.create_bucket(
+ bucket_id,
+ private=private if private else None,
+ region=region,
+ exist_ok=exist_ok,
+ )
+ out.result("Bucket created", uri=bucket_url.uri.to_uri(), url=bucket_url.url)
+
+
+def _is_bucket_id(argument: str) -> bool:
+ """Check if argument is a bucket ID (namespace/name) vs just a namespace."""
+ if argument.startswith(BUCKET_PREFIX):
+ path = argument[len(BUCKET_PREFIX) :]
+ else:
+ path = argument
+ return "/" in path
+
+
+@buckets_cli.command(
+ name="list | ls",
+ examples=[
+ "hf buckets list",
+ "hf buckets list huggingface",
+ 'hf buckets list --search "my-prefix"',
+ "hf buckets list user/my-bucket",
+ "hf buckets list user/my-bucket -R",
+ "hf buckets list user/my-bucket -h",
+ "hf buckets list user/my-bucket --tree",
+ "hf buckets list user/my-bucket --tree -h",
+ "hf buckets list hf://buckets/user/my-bucket",
+ "hf buckets list user/my-bucket/sub -R",
+ ],
+)
+def list_cmd(
+ argument: Annotated[
+ str | None,
+ typer.Argument(
+ help=(
+ "Namespace (user or org) to list buckets, or bucket ID"
+ " (namespace/bucket_name(/prefix) or hf://buckets/...) to list files."
+ ),
+ ),
+ ] = None,
+ human_readable: Annotated[
+ bool,
+ typer.Option(
+ "--human-readable",
+ "-h",
+ help="Show sizes in human readable format.",
+ ),
+ ] = False,
+ as_tree: Annotated[
+ bool,
+ typer.Option(
+ "--tree",
+ help="List files in tree format (only for listing files).",
+ ),
+ ] = False,
+ recursive: Annotated[
+ bool,
+ typer.Option(
+ "--recursive",
+ "-R",
+ help="List files recursively (only for listing files).",
+ ),
+ ] = False,
+ search: SearchOpt = None,
+ token: TokenOpt = None,
+) -> None:
+ """List buckets or files in a bucket.
+
+ When called with no argument or a namespace, lists buckets.
+ When called with a bucket ID (namespace/bucket_name), lists files in the bucket.
+ """
+ # Determine mode: listing buckets or listing files
+ is_file_mode = argument is not None and _is_bucket_id(argument)
+
+ if is_file_mode:
+ if search is not None:
+ raise typer.BadParameter("Cannot use --search when listing files.")
+ _list_files(
+ argument=argument, # type: ignore
+ human_readable=human_readable,
+ as_tree=as_tree,
+ recursive=recursive,
+ token=token,
+ )
+ else:
+ _list_buckets(
+ namespace=argument,
+ search=search,
+ human_readable=human_readable,
+ as_tree=as_tree,
+ recursive=recursive,
+ token=token,
+ )
+
+
+def _list_buckets(
+ namespace: str | None,
+ search: str | None,
+ human_readable: bool,
+ as_tree: bool,
+ recursive: bool,
+ token: str | None,
+) -> None:
+ """List buckets in a namespace."""
+ # Validate incompatible flags
+ if as_tree:
+ raise typer.BadParameter("Cannot use --tree when listing buckets.")
+ if recursive:
+ raise typer.BadParameter("Cannot use --recursive when listing buckets.")
+
+ # Handle hf://buckets/namespace format
+ if namespace is not None and namespace.startswith(BUCKET_PREFIX):
+ namespace = namespace[len(BUCKET_PREFIX) :]
+ # Strip trailing slash if any
+ namespace = namespace.rstrip("/")
+
+ api = get_hf_api(token=token)
+ items = [
+ {
+ "id": bucket.id,
+ "private": bucket.private,
+ "size": format_size(bucket.size, human_readable) if human_readable else bucket.size,
+ "total_files": bucket.total_files,
+ "created_at": bucket.created_at,
+ }
+ for bucket in api.list_buckets(namespace=namespace, search=search)
+ ]
+ out.table(items, alignments={"size": "right"})
+
+
+def _list_files(
+ argument: str,
+ human_readable: bool,
+ as_tree: bool,
+ recursive: bool,
+ token: str | None,
+) -> None:
+ """List files in a bucket."""
+ if as_tree and out.mode == OutputFormat.json:
+ raise typer.BadParameter("Cannot use --tree with --format json.")
+
+ api = get_hf_api(token=token)
+ parsed = _parse_bucket_uri(argument)
+ items = list(
+ api.list_bucket_tree(
+ parsed.id,
+ prefix=parsed.path_in_repo or None,
+ recursive=recursive,
+ )
+ )
+
+ print_file_listing(items, human_readable=human_readable, as_tree=as_tree, recursive=recursive)
+
+
+@buckets_cli.command(
+ name="info",
+ examples=[
+ "hf buckets info user/my-bucket",
+ "hf buckets info hf://buckets/user/my-bucket",
+ ],
+)
+def info(
+ bucket_id: Annotated[
+ str,
+ typer.Argument(
+ help="Bucket ID: namespace/bucket_name or hf://buckets/namespace/bucket_name",
+ ),
+ ],
+ token: TokenOpt = None,
+) -> None:
+ """Get info about a bucket."""
+ api = get_hf_api(token=token)
+ parsed = _parse_bucket_uri(bucket_id)
+ bucket = api.bucket_info(parsed.id)
+ out.dict(bucket, id_key="id")
+
+
+@buckets_cli.command(
+ name="delete",
+ examples=[
+ "hf buckets delete user/my-bucket",
+ "hf buckets delete hf://buckets/user/my-bucket",
+ "hf buckets delete user/my-bucket --yes",
+ "hf buckets delete user/my-bucket --missing-ok",
+ ],
+)
+def delete(
+ bucket_id: Annotated[
+ str,
+ typer.Argument(
+ help="Bucket ID: namespace/bucket_name or hf://buckets/namespace/bucket_name",
+ ),
+ ],
+ yes: Annotated[
+ bool,
+ typer.Option(
+ "--yes",
+ "-y",
+ help="Skip confirmation prompt.",
+ ),
+ ] = False,
+ missing_ok: Annotated[
+ bool,
+ typer.Option(
+ "--missing-ok",
+ help="Do not raise an error if the bucket does not exist.",
+ ),
+ ] = False,
+ token: TokenOpt = None,
+) -> None:
+ """Delete a bucket.
+
+ This deletes the entire bucket and all its contents. Use `hf buckets rm` to remove individual files.
+ """
+ if bucket_id.startswith(BUCKET_PREFIX):
+ parsed = _parse_bucket_uri(bucket_id)
+ if parsed.path_in_repo:
+ raise typer.BadParameter(
+ f"Cannot specify a prefix for bucket deletion: {bucket_id}."
+ f" Use namespace/bucket_name or {BUCKET_PREFIX}namespace/bucket_name."
+ )
+ bucket_id = parsed.id
+ elif "/" not in bucket_id:
+ raise typer.BadParameter(
+ f"Invalid bucket ID: {bucket_id}."
+ f" Must be in format namespace/bucket_name or {BUCKET_PREFIX}namespace/bucket_name."
+ )
+
+ out.confirm(f"Are you sure you want to delete bucket '{bucket_id}'?", yes=yes)
+
+ api = get_hf_api(token=token)
+ api.delete_bucket(bucket_id, missing_ok=missing_ok)
+ out.result("Bucket deleted", bucket_id=bucket_id)
+
+
+@buckets_cli.command(
+ name="remove | rm",
+ examples=[
+ "hf buckets remove user/my-bucket/file.txt",
+ "hf buckets rm hf://buckets/user/my-bucket/file.txt",
+ "hf buckets rm user/my-bucket/logs/ --recursive",
+ 'hf buckets rm user/my-bucket --recursive --include "*.tmp"',
+ "hf buckets rm user/my-bucket/data/ --recursive --dry-run",
+ ],
+)
+def remove(
+ argument: Annotated[
+ str,
+ typer.Argument(
+ help=(
+ "Bucket path: namespace/bucket_name/path or hf://buckets/namespace/bucket_name/path."
+ " With --recursive, namespace/bucket_name is also accepted to target all files."
+ ),
+ ),
+ ],
+ recursive: Annotated[
+ bool,
+ typer.Option(
+ "--recursive",
+ "-R",
+ help="Remove files recursively under the given prefix.",
+ ),
+ ] = False,
+ yes: Annotated[
+ bool,
+ typer.Option(
+ "--yes",
+ "-y",
+ help="Skip confirmation prompt.",
+ ),
+ ] = False,
+ dry_run: Annotated[
+ bool,
+ typer.Option(
+ "--dry-run",
+ help="Preview what would be deleted without actually deleting.",
+ ),
+ ] = False,
+ include: Annotated[
+ list[str] | None,
+ typer.Option(
+ help="Include only files matching pattern (can specify multiple). Requires --recursive.",
+ ),
+ ] = None,
+ exclude: Annotated[
+ list[str] | None,
+ typer.Option(
+ help="Exclude files matching pattern (can specify multiple). Requires --recursive.",
+ ),
+ ] = None,
+ token: TokenOpt = None,
+) -> None:
+ """Remove files from a bucket.
+
+ To delete an entire bucket, use `hf buckets delete` instead.
+ """
+ parsed = _parse_bucket_uri(argument)
+ bucket_id = parsed.id
+ prefix = parsed.path_in_repo
+
+ if prefix == "" and not recursive:
+ raise typer.BadParameter(
+ f"No file path specified. To remove files, provide a path"
+ f" (e.g. '{bucket_id}/FILE') or use --recursive to remove all files."
+ f" To delete the entire bucket, use `hf buckets delete {bucket_id}`."
+ )
+
+ if (include or exclude) and not recursive:
+ raise typer.BadParameter("--include and --exclude require --recursive.")
+
+ api = get_hf_api(token=token)
+
+ if recursive:
+ status = out.status("Listing files from remote")
+
+ all_files: list[BucketFile] = []
+ for item in api.list_bucket_tree(
+ bucket_id,
+ prefix=prefix or None,
+ recursive=True,
+ ):
+ if isinstance(item, BucketFile):
+ all_files.append(item)
+ status.update(f"Listing files from remote ({len(all_files)} files)")
+ status.done(f"Listing files from remote ({len(all_files)} files)")
+
+ if include or exclude:
+ matcher = FilterMatcher(include_patterns=include, exclude_patterns=exclude)
+ matched_files = [f for f in all_files if matcher.matches(f.path)]
+ else:
+ matched_files = all_files
+
+ file_paths = [f.path for f in matched_files]
+ total_size = sum(f.size for f in matched_files)
+ size_str = format_size(total_size, human_readable=True)
+
+ if not file_paths:
+ out.text("No files to remove.")
+ return
+
+ count_label = f"{len(file_paths)} file(s) totaling {size_str}"
+
+ if not yes and not dry_run:
+ out.text("\n".join(f" {path}" for path in file_paths))
+ out.confirm(f"Remove {count_label} from '{bucket_id}'?", yes=False)
+
+ if dry_run:
+ out.text("\n".join(f"delete: {BUCKET_PREFIX}{bucket_id}/{path}" for path in file_paths))
+ out.text(f"(dry run) {count_label} would be removed.")
+ return
+
+ api.batch_bucket_files(bucket_id, delete=file_paths)
+ out.result(
+ f"Removed {count_label} from '{bucket_id}'",
+ bucket_id=bucket_id,
+ files_deleted=len(file_paths),
+ size=size_str,
+ )
+
+ else:
+ file_path = prefix
+ if not file_path:
+ raise typer.BadParameter("File path cannot be empty.")
+
+ if dry_run:
+ out.text(f"delete: {BUCKET_PREFIX}{bucket_id}/{file_path}")
+ out.text("(dry run) 1 file would be removed.")
+ return
+
+ out.confirm(f"Remove '{file_path}' from '{bucket_id}'?", yes=yes)
+
+ api.batch_bucket_files(bucket_id, delete=[file_path])
+ out.result("File removed", path=file_path, bucket_id=bucket_id)
+
+
+@buckets_cli.command(
+ name="move",
+ examples=[
+ "hf buckets move user/old-bucket user/new-bucket",
+ "hf buckets move user/my-bucket my-org/my-bucket",
+ "hf buckets move hf://buckets/user/old-bucket hf://buckets/user/new-bucket",
+ ],
+)
+def move(
+ from_id: Annotated[
+ str,
+ typer.Argument(
+ help="Source bucket ID: namespace/bucket_name or hf://buckets/namespace/bucket_name",
+ ),
+ ],
+ to_id: Annotated[
+ str,
+ typer.Argument(
+ help="Destination bucket ID: namespace/bucket_name or hf://buckets/namespace/bucket_name",
+ ),
+ ],
+ token: TokenOpt = None,
+) -> None:
+ """Move (rename) a bucket to a new name or namespace."""
+ # Parse from_id
+ parsed_from = _parse_bucket_uri(from_id)
+ if parsed_from.path_in_repo:
+ raise typer.BadParameter(
+ f"Cannot specify a prefix for bucket move: {from_id}."
+ f" Use namespace/bucket_name or {BUCKET_PREFIX}namespace/bucket_name."
+ )
+
+ # Parse to_id
+ parsed_to = _parse_bucket_uri(to_id)
+ if parsed_to.path_in_repo:
+ raise typer.BadParameter(
+ f"Cannot specify a prefix for bucket move: {to_id}."
+ f" Use namespace/bucket_name or {BUCKET_PREFIX}namespace/bucket_name."
+ )
+
+ api = get_hf_api(token=token)
+ api.move_bucket(from_id=parsed_from.id, to_id=parsed_to.id)
+ out.result("Bucket moved", from_id=parsed_from.id, to_id=parsed_to.id)
+
+
+# =============================================================================
+# Sync command
+# =============================================================================
+
+
+@buckets_cli.command(
+ name="sync",
+ examples=[
+ "hf buckets sync ./data hf://buckets/user/my-bucket",
+ "hf buckets sync hf://buckets/user/my-bucket ./data",
+ "hf buckets sync ./data hf://buckets/user/my-bucket --delete",
+ 'hf buckets sync hf://buckets/user/my-bucket ./data --include "*.safetensors" --exclude "*.tmp"',
+ "hf buckets sync ./data hf://buckets/user/my-bucket --plan sync-plan.jsonl",
+ "hf buckets sync --apply sync-plan.jsonl",
+ "hf buckets sync ./data hf://buckets/user/my-bucket --dry-run",
+ "hf buckets sync ./data hf://buckets/user/my-bucket --dry-run | jq .",
+ ],
+)
+def sync(
+ source: Annotated[
+ str | None,
+ typer.Argument(
+ help="Source path: local directory or hf://buckets/namespace/bucket_name(/prefix)",
+ ),
+ ] = None,
+ dest: Annotated[
+ str | None,
+ typer.Argument(
+ help="Destination path: local directory or hf://buckets/namespace/bucket_name(/prefix)",
+ ),
+ ] = None,
+ delete: Annotated[
+ bool,
+ typer.Option(
+ help="Delete destination files not present in source.",
+ ),
+ ] = False,
+ ignore_times: Annotated[
+ bool,
+ typer.Option(
+ "--ignore-times",
+ help="Skip files only based on size, ignoring modification times.",
+ ),
+ ] = False,
+ ignore_sizes: Annotated[
+ bool,
+ typer.Option(
+ "--ignore-sizes",
+ help="Skip files only based on modification times, ignoring sizes.",
+ ),
+ ] = False,
+ plan: Annotated[
+ str | None,
+ typer.Option(
+ help="Save sync plan to JSONL file for review instead of executing.",
+ ),
+ ] = None,
+ apply: Annotated[
+ str | None,
+ typer.Option(
+ help="Apply a previously saved plan file.",
+ ),
+ ] = None,
+ dry_run: Annotated[
+ bool,
+ typer.Option(
+ "--dry-run",
+ help="Print sync plan to stdout as JSONL without executing.",
+ ),
+ ] = False,
+ include: Annotated[
+ list[str] | None,
+ typer.Option(
+ help="Include files matching pattern (can specify multiple).",
+ ),
+ ] = None,
+ exclude: Annotated[
+ list[str] | None,
+ typer.Option(
+ help="Exclude files matching pattern (can specify multiple).",
+ ),
+ ] = None,
+ filter_from: Annotated[
+ str | None,
+ typer.Option(
+ help="Read include/exclude patterns from file.",
+ ),
+ ] = None,
+ existing: Annotated[
+ bool,
+ typer.Option(
+ "--existing",
+ help="Skip creating new files on receiver (only update existing files).",
+ ),
+ ] = False,
+ ignore_existing: Annotated[
+ bool,
+ typer.Option(
+ "--ignore-existing",
+ help="Skip updating files that exist on receiver (only create new files).",
+ ),
+ ] = False,
+ verbose: Annotated[
+ bool,
+ typer.Option(
+ "--verbose",
+ "-v",
+ help="Show detailed logging with reasoning.",
+ ),
+ ] = False,
+ token: TokenOpt = None,
+) -> None:
+ """Sync files between local directory and a bucket."""
+ api = get_hf_api(token=token)
+ api.sync_bucket(
+ source=source,
+ dest=dest,
+ delete=delete,
+ ignore_times=ignore_times,
+ ignore_sizes=ignore_sizes,
+ existing=existing,
+ ignore_existing=ignore_existing,
+ include=include,
+ exclude=exclude,
+ filter_from=filter_from,
+ plan=plan,
+ apply=apply,
+ dry_run=dry_run,
+ verbose=verbose,
+ quiet=out.is_quiet(),
+ )
+ if plan and not out.is_quiet():
+ out.hint(f"Run `hf buckets sync --apply {plan}` to execute this plan.")
+
+
+# =============================================================================
+# Cp command
+# =============================================================================
+
+
+# `hf buckets cp` is an alias for the top-level `hf cp` command (see `cli/_cp.py`).
+buckets_cli.command(
+ name="cp",
+ examples=[
+ # Download (repo or bucket -> local / stdout)
+ "hf buckets cp hf://buckets/username/my-bucket/config.json config.json",
+ "hf buckets cp hf://buckets/username/my-bucket/data.csv data/",
+ "hf buckets cp hf://buckets/username/my-bucket/config.json -",
+ # Upload (local / stdin -> bucket)
+ "hf buckets cp model.safetensors hf://buckets/username/my-bucket/model.safetensors",
+ "hf buckets cp config.json hf://buckets/username/my-bucket/logs/",
+ "hf buckets cp - hf://buckets/username/my-bucket/config.json",
+ # Remote to remote (repo or bucket -> bucket)
+ "hf buckets cp hf://buckets/username/my-bucket/data.csv hf://buckets/username/dest-bucket/",
+ "hf buckets cp hf://buckets/username/source-bucket/logs/ hf://buckets/username/dest-bucket/logs/",
+ ],
+)(make_cp("buckets"))
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/deprecated_cli.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/deprecated_cli.py
new file mode 100644
index 0000000000000000000000000000000000000000..4fbdd8adaba77accf24fbe0d459b4714d503b781
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/deprecated_cli.py
@@ -0,0 +1,35 @@
+"""Deprecated `huggingface-cli` entry point. Warns and exits."""
+
+import shutil
+import sys
+
+from ._output import out
+
+
+def main() -> None:
+ out.warning("`huggingface-cli` is deprecated and no longer works. Use `hf` instead.\n")
+
+ if shutil.which("hf"):
+ from huggingface_hub.cli._cli_utils import check_cli_update
+
+ check_cli_update("huggingface_hub")
+ out.hint("`hf` is already installed! Use it directly.\n")
+ else:
+ out.hint(
+ "Install `hf`:\n"
+ " Standalone (recommended): curl -LsSf https://hf.co/cli/install.sh | bash\n"
+ " Using Homebrew: brew install hf\n"
+ " Using pip: pip install huggingface_hub\n",
+ )
+
+ out.hint(
+ "Examples:\n"
+ " hf auth login\n"
+ " hf download unsloth/gemma-4-31B-it-GGUF\n"
+ " hf upload my-cool-model . .\n"
+ ' hf models ls --search "gemma"\n'
+ " hf repos ls --format json\n"
+ " hf jobs run python:3.12 python -c 'print(\"Hello!\")'\n"
+ " hf --help\n",
+ )
+ sys.exit(1)
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/discussions.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/discussions.py
new file mode 100644
index 0000000000000000000000000000000000000000..9578c211ea1555eff9a255887dde0f749fc77747
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/discussions.py
@@ -0,0 +1,448 @@
+# Copyright 2026 The HuggingFace Team. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""Contains commands to interact with discussions and pull requests on the Hugging Face Hub."""
+
+import enum
+import sys
+from pathlib import Path
+from typing import Annotated
+
+import typer
+
+from huggingface_hub import constants
+
+from ._cli_utils import (
+ AuthorOpt,
+ LimitOpt,
+ RepoIdArg,
+ RepoType,
+ RepoTypeOpt,
+ TokenOpt,
+ get_hf_api,
+ typer_factory,
+)
+from ._output import _dataclass_to_dict, out
+
+
+class DiscussionStatus(str, enum.Enum):
+ open = "open"
+ closed = "closed"
+ merged = "merged"
+ draft = "draft"
+ all = "all"
+
+
+class DiscussionKind(str, enum.Enum):
+ all = "all"
+ discussion = "discussion"
+ pull_request = "pull_request"
+
+
+# "merged" and "draft" are valid Discussion statuses but the Hub API filter
+# (DiscussionStatusFilter) only accepts "all", "open", "closed". When the user
+# asks for merged/draft we fetch with api_status=None (i.e. all) and filter
+# client-side.
+_CLIENT_SIDE_STATUSES = {"merged", "draft"}
+
+
+DiscussionNumArg = Annotated[
+ int,
+ typer.Argument(
+ help="The discussion or pull request number.",
+ min=1,
+ ),
+]
+
+
+def _read_body(body: str | None, body_file: Path | None) -> str | None:
+ """Resolve body text from --body or --body-file (supports '-' for stdin)."""
+ if body is not None and body_file is not None:
+ raise typer.BadParameter("Cannot use both --body and --body-file.")
+ if body_file is not None:
+ if str(body_file) == "-":
+ return sys.stdin.read()
+ return body_file.read_text(encoding="utf-8")
+ return body
+
+
+discussions_cli = typer_factory(help="Manage discussions and pull requests on the Hub.")
+
+
+@discussions_cli.command(
+ "list | ls",
+ examples=[
+ "hf discussions list username/my-model",
+ "hf discussions list username/my-model --kind pull_request --status merged",
+ "hf discussions list username/my-dataset --type dataset --status closed",
+ "hf discussions list username/my-model --author alice --format json",
+ ],
+)
+def discussion_list(
+ repo_id: RepoIdArg,
+ status: Annotated[
+ DiscussionStatus,
+ typer.Option(
+ "-s",
+ "--status",
+ help="Filter by status (open, closed, merged, draft, all).",
+ ),
+ ] = DiscussionStatus.open,
+ kind: Annotated[
+ DiscussionKind,
+ typer.Option(
+ "-k",
+ "--kind",
+ help="Filter by kind (discussion, pull_request, all).",
+ ),
+ ] = DiscussionKind.all,
+ author: AuthorOpt = None,
+ limit: LimitOpt = 30,
+ repo_type: RepoTypeOpt = RepoType.model,
+ token: TokenOpt = None,
+) -> None:
+ """List discussions and pull requests on a repo."""
+ api = get_hf_api(token=token)
+
+ api_status: constants.DiscussionStatusFilter | None
+ if status == DiscussionStatus.open:
+ api_status = "open"
+ elif status == DiscussionStatus.closed:
+ api_status = "closed"
+ else:
+ api_status = None
+
+ api_discussion_type: constants.DiscussionTypeFilter | None
+ if kind == DiscussionKind.all:
+ api_discussion_type = None
+ else:
+ api_discussion_type = kind.value # type: ignore[assignment]
+
+ discussions = []
+ for d in api.get_repo_discussions(
+ repo_id=repo_id,
+ author=author,
+ discussion_type=api_discussion_type,
+ discussion_status=api_status,
+ repo_type=repo_type.value,
+ ):
+ if status.value in _CLIENT_SIDE_STATUSES and d.status != status.value:
+ continue
+ discussions.append(d)
+ if len(discussions) >= limit:
+ break
+
+ items = [_dataclass_to_dict(d) for d in discussions]
+ out.table(
+ items,
+ headers=["num", "title", "is_pull_request", "status", "author", "created_at"],
+ id_key="num",
+ )
+
+
+@discussions_cli.command(
+ "info",
+ examples=[
+ "hf discussions info username/my-model 5",
+ "hf discussions info username/my-model 5 --format json",
+ ],
+)
+def discussion_info(
+ repo_id: RepoIdArg,
+ num: DiscussionNumArg,
+ repo_type: RepoTypeOpt = RepoType.model,
+ token: TokenOpt = None,
+) -> None:
+ """Get info about a discussion or pull request."""
+ api = get_hf_api(token=token)
+ details = api.get_discussion_details(
+ repo_id=repo_id,
+ discussion_num=num,
+ repo_type=repo_type.value,
+ )
+ out.dict(details)
+
+
+@discussions_cli.command(
+ "create",
+ examples=[
+ 'hf discussions create username/my-model --title "Bug report"',
+ 'hf discussions create username/my-model --title "Feature request" --body "Please add X"',
+ 'hf discussions create username/my-model --title "Fix typo" --pull-request',
+ 'hf discussions create username/my-dataset --type dataset --title "Data quality issue"',
+ ],
+)
+def discussion_create(
+ repo_id: RepoIdArg,
+ title: Annotated[
+ str,
+ typer.Option(
+ "--title",
+ help="The title of the discussion or pull request.",
+ ),
+ ],
+ body: Annotated[
+ str | None,
+ typer.Option(
+ "--body",
+ help="The description (supports Markdown).",
+ ),
+ ] = None,
+ body_file: Annotated[
+ Path | None,
+ typer.Option(
+ "--body-file",
+ help="Read the description from a file. Use '-' for stdin.",
+ ),
+ ] = None,
+ pull_request: Annotated[
+ bool,
+ typer.Option(
+ "--pull-request",
+ "--pr",
+ help="Create a pull request instead of a discussion.",
+ ),
+ ] = False,
+ repo_type: RepoTypeOpt = RepoType.model,
+ token: TokenOpt = None,
+) -> None:
+ """Create a new discussion or pull request on a repo."""
+ description = _read_body(body, body_file)
+ api = get_hf_api(token=token)
+ discussion = api.create_discussion(
+ repo_id=repo_id,
+ title=title,
+ description=description,
+ repo_type=repo_type.value,
+ pull_request=pull_request,
+ )
+ kind = "pull request" if pull_request else "discussion"
+ ref = f"refs/pr/{discussion.num}" if pull_request else None
+ out.result(f"Created {kind} #{discussion.num} on {repo_id}", num=discussion.num, url=discussion.url, ref=ref)
+
+
+@discussions_cli.command(
+ "comment",
+ examples=[
+ 'hf discussions comment username/my-model 5 --body "Thanks for reporting!"',
+ 'hf discussions comment username/my-model 5 --body "LGTM!"',
+ ],
+)
+def discussion_comment(
+ repo_id: RepoIdArg,
+ num: DiscussionNumArg,
+ body: Annotated[
+ str | None,
+ typer.Option(
+ "--body",
+ help="The comment text (supports Markdown).",
+ ),
+ ] = None,
+ body_file: Annotated[
+ Path | None,
+ typer.Option(
+ "--body-file",
+ help="Read the comment from a file. Use '-' for stdin.",
+ ),
+ ] = None,
+ repo_type: RepoTypeOpt = RepoType.model,
+ token: TokenOpt = None,
+) -> None:
+ """Comment on a discussion or pull request."""
+ comment = _read_body(body, body_file)
+ if comment is None:
+ raise typer.BadParameter("Either --body or --body-file is required.")
+ api = get_hf_api(token=token)
+ api.comment_discussion(
+ repo_id=repo_id,
+ discussion_num=num,
+ comment=comment,
+ repo_type=repo_type.value,
+ )
+ out.result(f"Commented on #{num} in {repo_id}", num=num, repo=repo_id)
+
+
+@discussions_cli.command(
+ "close",
+ examples=[
+ "hf discussions close username/my-model 5",
+ 'hf discussions close username/my-model 5 --comment "Closing as resolved."',
+ ],
+)
+def discussion_close(
+ repo_id: RepoIdArg,
+ num: DiscussionNumArg,
+ comment: Annotated[
+ str | None,
+ typer.Option(
+ "--comment",
+ help="An optional comment to post when closing.",
+ ),
+ ] = None,
+ yes: Annotated[
+ bool,
+ typer.Option(
+ "--yes",
+ "-y",
+ help="Skip confirmation prompt.",
+ ),
+ ] = False,
+ repo_type: RepoTypeOpt = RepoType.model,
+ token: TokenOpt = None,
+) -> None:
+ """Close a discussion or pull request."""
+ out.confirm(f"Close #{num} on '{repo_id}'?", yes=yes)
+ api = get_hf_api(token=token)
+ api.change_discussion_status(
+ repo_id=repo_id,
+ discussion_num=num,
+ new_status="closed",
+ comment=comment,
+ repo_type=repo_type.value,
+ )
+ out.result(f"Closed #{num} in {repo_id}", num=num, repo=repo_id)
+
+
+@discussions_cli.command(
+ "reopen",
+ examples=[
+ "hf discussions reopen username/my-model 5",
+ 'hf discussions reopen username/my-model 5 --comment "Reopening for further investigation."',
+ ],
+)
+def discussion_reopen(
+ repo_id: RepoIdArg,
+ num: DiscussionNumArg,
+ comment: Annotated[
+ str | None,
+ typer.Option(
+ "--comment",
+ help="An optional comment to post when reopening.",
+ ),
+ ] = None,
+ yes: Annotated[
+ bool,
+ typer.Option(
+ "--yes",
+ "-y",
+ help="Skip confirmation prompt.",
+ ),
+ ] = False,
+ repo_type: RepoTypeOpt = RepoType.model,
+ token: TokenOpt = None,
+) -> None:
+ """Reopen a closed discussion or pull request."""
+ out.confirm(f"Reopen #{num} on '{repo_id}'?", yes=yes)
+ api = get_hf_api(token=token)
+ api.change_discussion_status(
+ repo_id=repo_id,
+ discussion_num=num,
+ new_status="open",
+ comment=comment,
+ repo_type=repo_type.value,
+ )
+ out.result(f"Reopened #{num} in {repo_id}", num=num, repo=repo_id)
+
+
+@discussions_cli.command(
+ "rename",
+ examples=[
+ 'hf discussions rename username/my-model 5 "Updated title"',
+ ],
+)
+def discussion_rename(
+ repo_id: RepoIdArg,
+ num: DiscussionNumArg,
+ new_title: Annotated[
+ str,
+ typer.Argument(
+ help="The new title.",
+ ),
+ ],
+ repo_type: RepoTypeOpt = RepoType.model,
+ token: TokenOpt = None,
+) -> None:
+ """Rename a discussion or pull request."""
+ api = get_hf_api(token=token)
+ api.rename_discussion(
+ repo_id=repo_id,
+ discussion_num=num,
+ new_title=new_title,
+ repo_type=repo_type.value,
+ )
+ out.result(f"Renamed #{num} in {repo_id}", num=num, repo=repo_id, title=new_title)
+
+
+@discussions_cli.command(
+ "merge",
+ examples=[
+ "hf discussions merge username/my-model 5",
+ 'hf discussions merge username/my-model 5 --comment "Merging, thanks!"',
+ ],
+)
+def discussion_merge(
+ repo_id: RepoIdArg,
+ num: DiscussionNumArg,
+ comment: Annotated[
+ str | None,
+ typer.Option(
+ "--comment",
+ help="An optional comment to post when merging.",
+ ),
+ ] = None,
+ yes: Annotated[
+ bool,
+ typer.Option(
+ "--yes",
+ "-y",
+ help="Skip confirmation prompt.",
+ ),
+ ] = False,
+ repo_type: RepoTypeOpt = RepoType.model,
+ token: TokenOpt = None,
+) -> None:
+ """Merge a pull request."""
+ out.confirm(f"Merge #{num} on '{repo_id}'?", yes=yes)
+ api = get_hf_api(token=token)
+ api.merge_pull_request(
+ repo_id=repo_id,
+ discussion_num=num,
+ comment=comment,
+ repo_type=repo_type.value,
+ )
+ out.result(f"Merged #{num} in {repo_id}", num=num, repo=repo_id)
+
+
+@discussions_cli.command(
+ "diff",
+ examples=[
+ "hf discussions diff username/my-model 5",
+ ],
+)
+def discussion_diff(
+ repo_id: RepoIdArg,
+ num: DiscussionNumArg,
+ repo_type: RepoTypeOpt = RepoType.model,
+ token: TokenOpt = None,
+) -> None:
+ """Show the diff of a pull request."""
+ api = get_hf_api(token=token)
+ details = api.get_discussion_details(
+ repo_id=repo_id,
+ discussion_num=num,
+ repo_type=repo_type.value,
+ )
+ if details.diff:
+ out.text(details.diff)
+ else:
+ out.text("No diff available.")
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/download.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/download.py
new file mode 100644
index 0000000000000000000000000000000000000000..f78edf7cfe213b5d6c3ce9762ff24c8519fa0640
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/download.py
@@ -0,0 +1,254 @@
+# Copyright 202-present, the HuggingFace Inc. team.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""Contains command to download files from the Hub with the CLI.
+
+Usage:
+ hf download --help
+
+ # Download file
+ hf download gpt2 config.json
+
+ # Download entire repo
+ hf download fffiloni/zeroscope --repo-type=space --revision=refs/pr/78
+
+ # Download repo with filters
+ hf download gpt2 --include="*.safetensors"
+
+ # Download with token
+ hf download Wauplin/private-model --token=hf_***
+
+ # Download quietly (no progress bar, no warnings, only the returned path)
+ hf download gpt2 config.json --quiet
+
+ # Download to local dir
+ hf download gpt2 --local-dir=./models/gpt2
+
+ # Download a subfolder
+ hf download HuggingFaceM4/FineVision art/ --repo-type=dataset
+
+ # Download using an hf:// URI (repo type, revision and file path are read from the URI)
+ hf download hf://datasets/HuggingFaceM4/FineVision@refs/pr/1/data/train.parquet
+"""
+
+import warnings
+from typing import Annotated
+
+import typer
+
+from huggingface_hub import constants
+from huggingface_hub._snapshot_download import snapshot_download
+from huggingface_hub.errors import CLIError
+from huggingface_hub.file_download import DryRunFileInfo, hf_hub_download
+from huggingface_hub.utils import _format_size, parse_hf_uri
+
+from ._cli_utils import RepoIdArg, RepoType, RepoTypeOptionalOpt, RevisionOpt, TokenOpt
+from ._output import out
+
+
+DOWNLOAD_EXAMPLES = [
+ "hf download meta-llama/Llama-3.2-1B-Instruct",
+ "hf download meta-llama/Llama-3.2-1B-Instruct config.json tokenizer.json",
+ 'hf download meta-llama/Llama-3.2-1B-Instruct --include "*.safetensors" --exclude "*.bin"',
+ "hf download meta-llama/Llama-3.2-1B-Instruct --local-dir ./models/llama",
+ "hf download HuggingFaceM4/FineVision art/ --repo-type dataset",
+ "hf download hf://datasets/HuggingFaceH4/ultrachat_200k",
+]
+
+
+def download(
+ repo_id: RepoIdArg,
+ filenames: Annotated[
+ list[str] | None,
+ typer.Argument(
+ help="Files to download (e.g. `config.json`, `data/metadata.jsonl`).",
+ ),
+ ] = None,
+ repo_type: RepoTypeOptionalOpt = None,
+ revision: RevisionOpt = None,
+ include: Annotated[
+ list[str] | None,
+ typer.Option(
+ help="Glob patterns to include from files to download. eg: *.json",
+ ),
+ ] = None,
+ exclude: Annotated[
+ list[str] | None,
+ typer.Option(
+ help="Glob patterns to exclude from files to download.",
+ ),
+ ] = None,
+ cache_dir: Annotated[
+ str | None,
+ typer.Option(
+ help="Directory where to save files.",
+ ),
+ ] = None,
+ local_dir: Annotated[
+ str | None,
+ typer.Option(
+ help="If set, the downloaded file will be placed under this directory. Check out https://huggingface.co/docs/huggingface_hub/guides/download#download-files-to-a-local-folder for more details.",
+ ),
+ ] = None,
+ force_download: Annotated[
+ bool,
+ typer.Option(
+ help="If True, the files will be downloaded even if they are already cached.",
+ ),
+ ] = False,
+ dry_run: Annotated[
+ bool,
+ typer.Option(
+ help="If True, perform a dry run without actually downloading the file.",
+ ),
+ ] = False,
+ token: TokenOpt = None,
+ max_workers: Annotated[
+ int,
+ typer.Option(
+ help="Maximum number of workers to use for downloading files. Default is 8.",
+ ),
+ ] = 8,
+) -> None:
+ """Download files from the Hub."""
+ if local_dir is not None and cache_dir is not None:
+ raise CLIError(
+ "Cannot use both `--local-dir` and `--cache-dir` at the same time. "
+ "Use `--cache-dir` (or set the HF_HOME environment variable) for shared caching, "
+ "or `--local-dir` for a one-off download to a specific directory."
+ )
+
+ # `repo_id` may be a plain repo id or an `hf://` URI (e.g. `hf://datasets/my-org/my-dataset@v1.0/data/`).
+ # When a URI is provided, it is authoritative for the repo type, revision and (optionally) file path,
+ # so explicit `--repo-type` / `--revision` options are forbidden alongside it.
+ # We branch on the `hf://` prefix (the user's *intent*) rather than on whether the string parses as a
+ # valid URI: a malformed URI then surfaces a precise `HfUriError` (formatted globally in `cli/_errors.py`)
+ # instead of silently falling through to the plain-repo-id path and failing later with an opaque error.
+ if repo_id.startswith(constants.HF_PROTOCOL):
+ if repo_type is not None:
+ raise CLIError(f"'--repo-type' cannot be used with an 'hf://' URI ('{repo_id}').")
+ if revision is not None:
+ raise CLIError(f"'--revision' cannot be used with an 'hf://' URI ('{repo_id}').")
+ uri = parse_hf_uri(repo_id)
+ if uri.is_bucket:
+ raise CLIError("Buckets are not supported by `hf download`. Use `hf sync` instead.")
+ # The URI parser strips trailing slashes, but `hf download` uses a trailing '/' to denote a subfolder
+ # download (e.g. `data/` -> `data/**`). Re-append it when the URI explicitly ended with '/' so a folder
+ # URI keeps routing through the subfolder code path below.
+ path_in_repo = uri.path_in_repo
+ if path_in_repo and repo_id.endswith("/"):
+ path_in_repo += "/"
+ repo_id, repo_type_str, revision = uri.id, uri.type, uri.revision
+ if path_in_repo:
+ if filenames:
+ raise CLIError(
+ f"Cannot combine a file path in the hf:// URI ('{path_in_repo}') with positional filenames {filenames}."
+ )
+ filenames = [path_in_repo]
+ else:
+ repo_type_str = (repo_type or RepoType.model).value
+
+ def run_download() -> str | DryRunFileInfo | list[DryRunFileInfo]:
+ filenames_list = filenames if filenames is not None else []
+
+ # Separate subfolder patterns (ending with '/') from regular filenames
+ # Subfolders like "art/" are converted to include patterns like "art/**"
+ subfolders = [f for f in filenames_list if f.endswith("/")]
+ subfolder_patterns = [f"{f.rstrip('/')}/**" for f in subfolders]
+ regular_filenames = [f for f in filenames_list if not f.endswith("/")]
+
+ # Error if subfolder patterns are combined with --include/--exclude
+ # Guide user to use --include instead of subfolder argument
+ if len(subfolder_patterns) > 0:
+ if include is not None and len(include) > 0:
+ raise CLIError(
+ f"Cannot combine subfolder argument ('{subfolders[0]}') with `--include`. "
+ f'Please use `--include "{subfolders[0]}*"` instead.'
+ )
+ if exclude is not None and len(exclude) > 0:
+ raise CLIError(
+ f"Cannot combine subfolder argument ('{subfolders[0]}') with `--exclude`. "
+ f'Please use `--include "{subfolders[0]}*"` with `--exclude` instead.'
+ )
+
+ # Warn user if patterns are ignored (only if regular filenames are provided)
+ if len(regular_filenames) > 0:
+ if include is not None and len(include) > 0:
+ warnings.warn("Ignoring `--include` since filenames have been explicitly set.")
+ if exclude is not None and len(exclude) > 0:
+ warnings.warn("Ignoring `--exclude` since filenames have been explicitly set.")
+
+ # Single file to download (not a subfolder): use `hf_hub_download`
+ if len(regular_filenames) == 1 and len(subfolder_patterns) == 0:
+ return hf_hub_download(
+ repo_id=repo_id,
+ repo_type=repo_type_str,
+ revision=revision,
+ filename=regular_filenames[0],
+ cache_dir=cache_dir,
+ force_download=force_download,
+ token=token,
+ local_dir=local_dir,
+ library_name="huggingface-cli",
+ dry_run=dry_run,
+ )
+
+ # Otherwise: use `snapshot_download` to ensure all files comes from same revision
+ if len(regular_filenames) == 0 and len(subfolder_patterns) == 0:
+ # No filenames provided: use include/exclude patterns
+ allow_patterns = include
+ ignore_patterns = exclude
+ else:
+ # Combine regular filenames and subfolder patterns as allow_patterns
+ allow_patterns = regular_filenames + subfolder_patterns
+ ignore_patterns = None
+
+ return snapshot_download(
+ repo_id=repo_id,
+ repo_type=repo_type_str,
+ revision=revision,
+ allow_patterns=allow_patterns,
+ ignore_patterns=ignore_patterns,
+ force_download=force_download,
+ cache_dir=cache_dir,
+ token=token,
+ local_dir=local_dir,
+ library_name="huggingface-cli",
+ max_workers=max_workers,
+ dry_run=dry_run,
+ )
+
+ def _print_result(result: str | DryRunFileInfo | list[DryRunFileInfo]) -> None:
+ if isinstance(result, str):
+ out.result("Downloaded", path=result)
+ return
+
+ # Print dry run info
+ if isinstance(result, DryRunFileInfo):
+ result = [result]
+ will_download = [r for r in result if r.will_download]
+ out.text(
+ f"[dry-run] Will download {len(will_download)} files"
+ f" (out of {len(result)})"
+ f" totalling {_format_size(sum(r.file_size for r in will_download))}."
+ )
+ items = [
+ {
+ "file": info.filename,
+ "size": _format_size(info.file_size) if info.will_download else "-",
+ }
+ for info in sorted(result, key=lambda x: x.filename)
+ ]
+ out.table(items)
+
+ _print_result(run_download())
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/hf.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/hf.py
new file mode 100644
index 0000000000000000000000000000000000000000..342cc82aa94ccb17de7ea3b1455c6c379fd304d1
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/hf.py
@@ -0,0 +1,130 @@
+# Copyright 2020 The HuggingFace Team. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import sys
+import traceback
+from typing import Annotated
+
+import typer
+
+from huggingface_hub import __version__, constants
+from huggingface_hub.cli._cli_utils import check_cli_update, fallback_typer_group_factory, typer_factory
+from huggingface_hub.cli._cp import CP_EXAMPLES, make_cp
+from huggingface_hub.cli._errors import format_known_exception
+from huggingface_hub.cli.auth import auth_cli
+from huggingface_hub.cli.buckets import buckets_cli, sync
+from huggingface_hub.cli.cache import cache_cli
+from huggingface_hub.cli.collections import collections_cli
+from huggingface_hub.cli.datasets import datasets_cli
+from huggingface_hub.cli.discussions import discussions_cli
+from huggingface_hub.cli.download import DOWNLOAD_EXAMPLES, download
+from huggingface_hub.cli.extensions import (
+ dispatch_unknown_top_level_extension,
+ extensions_cli,
+ list_installed_extensions_for_help,
+)
+from huggingface_hub.cli.inference_endpoints import ie_cli
+from huggingface_hub.cli.jobs import jobs_cli
+from huggingface_hub.cli.lfs import lfs_enable_largefiles, lfs_multipart_upload
+from huggingface_hub.cli.models import models_cli
+from huggingface_hub.cli.papers import papers_cli
+from huggingface_hub.cli.repo_files import repo_files_cli
+from huggingface_hub.cli.repos import repos_cli
+from huggingface_hub.cli.skills import skills_cli
+from huggingface_hub.cli.spaces import spaces_cli
+from huggingface_hub.cli.system import env, update, version
+from huggingface_hub.cli.upload import UPLOAD_EXAMPLES, upload
+from huggingface_hub.cli.upload_large_folder import UPLOAD_LARGE_FOLDER_EXAMPLES, upload_large_folder
+from huggingface_hub.cli.webhooks import webhooks_cli
+from huggingface_hub.utils import ANSI, logging
+
+
+app = typer_factory(
+ help="Hugging Face Hub CLI",
+ cls=fallback_typer_group_factory(
+ dispatch_unknown_top_level_extension,
+ extra_commands_provider=list_installed_extensions_for_help,
+ ),
+)
+
+
+def _version_callback(value: bool) -> None:
+ if value:
+ print(__version__)
+ raise typer.Exit()
+
+
+@app.callback(invoke_without_command=True)
+def app_callback(
+ version: Annotated[
+ bool | None, typer.Option("-v", "--version", callback=_version_callback, is_eager=True, hidden=True)
+ ] = None,
+) -> None:
+ pass
+
+
+# top level single commands (defined in their respective files)
+app.command(examples=CP_EXAMPLES)(make_cp())
+app.command()(sync)
+app.command(examples=DOWNLOAD_EXAMPLES)(download)
+app.command(examples=UPLOAD_EXAMPLES)(upload)
+app.command(examples=UPLOAD_LARGE_FOLDER_EXAMPLES)(upload_large_folder)
+
+app.command(topic="help")(env)
+app.command(topic="help")(update)
+app.command(topic="help")(version)
+
+app.command(hidden=True)(lfs_enable_largefiles)
+app.command(hidden=True)(lfs_multipart_upload)
+
+# command groups
+app.add_typer(auth_cli, name="auth")
+app.add_typer(buckets_cli, name="buckets")
+app.add_typer(cache_cli, name="cache")
+app.add_typer(collections_cli, name="collections")
+app.add_typer(datasets_cli, name="datasets")
+app.add_typer(discussions_cli, name="discussions")
+app.add_typer(jobs_cli, name="jobs")
+app.add_typer(models_cli, name="models")
+app.add_typer(papers_cli, name="papers")
+app.add_typer(repos_cli, name="repos | repo")
+app.add_typer(repo_files_cli, name="repo-files", hidden=True)
+app.add_typer(skills_cli, name="skills")
+app.add_typer(spaces_cli, name="spaces")
+app.add_typer(webhooks_cli, name="webhooks")
+app.add_typer(ie_cli, name="endpoints")
+app.add_typer(extensions_cli, name="extensions | ext")
+
+
+def main():
+ if not constants.HF_DEBUG:
+ logging.set_verbosity_info()
+ check_cli_update("huggingface_hub")
+
+ try:
+ app()
+ except Exception as e:
+ message = format_known_exception(e)
+ if message:
+ print(f"Error: {message}", file=sys.stderr)
+ if constants.HF_DEBUG:
+ traceback.print_exc()
+ else:
+ print(ANSI.gray("Set HF_DEBUG=1 as environment variable for full traceback."))
+ sys.exit(1)
+ raise
+
+
+if __name__ == "__main__":
+ main()
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/inference_endpoints.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/inference_endpoints.py
new file mode 100644
index 0000000000000000000000000000000000000000..ee30745d9a8340db77e152b7cd8f970488ffe034
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/inference_endpoints.py
@@ -0,0 +1,438 @@
+"""CLI commands for Hugging Face Inference Endpoints."""
+
+from typing import Annotated
+
+import typer
+
+from huggingface_hub._inference_endpoints import InferenceEndpointScalingMetric
+from huggingface_hub.errors import HfHubHTTPError
+
+from ._cli_utils import TokenOpt, get_hf_api, typer_factory
+from ._output import out
+
+
+ie_cli = typer_factory(help="Manage Hugging Face Inference Endpoints.")
+
+catalog_app = typer_factory(help="Interact with the Inference Endpoints catalog.")
+
+
+NameArg = Annotated[
+ str,
+ typer.Argument(help="Endpoint name."),
+]
+NameOpt = Annotated[
+ str | None,
+ typer.Option(help="Endpoint name."),
+]
+
+NamespaceOpt = Annotated[
+ str | None,
+ typer.Option(
+ help="The namespace associated with the Inference Endpoint. Defaults to the current user's namespace.",
+ ),
+]
+
+
+@ie_cli.command("list | ls", examples=["hf endpoints ls", "hf endpoints ls --namespace my-org"])
+def ls(
+ namespace: NamespaceOpt = None,
+ token: TokenOpt = None,
+) -> None:
+ """Lists all Inference Endpoints for the given namespace."""
+ api = get_hf_api(token=token)
+ try:
+ endpoints = api.list_inference_endpoints(namespace=namespace, token=token)
+ except HfHubHTTPError as error:
+ out.error(f"Listing failed: {error}")
+ raise typer.Exit(code=error.response.status_code) from error
+
+ results = []
+ for endpoint in endpoints:
+ raw = endpoint.raw
+ status = raw.get("status", {})
+ model = raw.get("model", {})
+ compute = raw.get("compute", {})
+ provider = raw.get("provider", {})
+ results.append(
+ {
+ "name": raw.get("name", ""),
+ "model": model.get("repository", "") if isinstance(model, dict) else "",
+ "status": status.get("state", "") if isinstance(status, dict) else "",
+ "task": model.get("task", "") if isinstance(model, dict) else "",
+ "framework": model.get("framework", "") if isinstance(model, dict) else "",
+ "instance": compute.get("instanceType", "") if isinstance(compute, dict) else "",
+ "vendor": provider.get("vendor", "") if isinstance(provider, dict) else "",
+ "region": provider.get("region", "") if isinstance(provider, dict) else "",
+ }
+ )
+ out.table(results, id_key="name")
+
+
+@ie_cli.command(name="deploy", examples=["hf endpoints deploy my-endpoint --repo gpt2 --framework pytorch ..."])
+def deploy(
+ name: NameArg,
+ repo: Annotated[
+ str,
+ typer.Option(
+ help="The name of the model repository associated with the Inference Endpoint (e.g. 'openai/gpt-oss-120b').",
+ ),
+ ],
+ framework: Annotated[
+ str,
+ typer.Option(
+ help="The machine learning framework used for the model (e.g. 'vllm').",
+ ),
+ ],
+ accelerator: Annotated[
+ str,
+ typer.Option(
+ help="The hardware accelerator to be used for inference (e.g. 'cpu').",
+ ),
+ ],
+ instance_size: Annotated[
+ str,
+ typer.Option(
+ help="The size or type of the instance to be used for hosting the model (e.g. 'x4').",
+ ),
+ ],
+ instance_type: Annotated[
+ str,
+ typer.Option(
+ help="The cloud instance type where the Inference Endpoint will be deployed (e.g. 'intel-icl').",
+ ),
+ ],
+ region: Annotated[
+ str,
+ typer.Option(
+ help="The cloud region in which the Inference Endpoint will be created (e.g. 'us-east-1').",
+ ),
+ ],
+ vendor: Annotated[
+ str,
+ typer.Option(
+ help="The cloud provider or vendor where the Inference Endpoint will be hosted (e.g. 'aws').",
+ ),
+ ],
+ *,
+ namespace: NamespaceOpt = None,
+ task: Annotated[
+ str | None,
+ typer.Option(
+ help="The task on which to deploy the model (e.g. 'text-classification').",
+ ),
+ ] = None,
+ token: TokenOpt = None,
+ min_replica: Annotated[
+ int,
+ typer.Option(
+ help="The minimum number of replicas (instances) to keep running for the Inference Endpoint.",
+ ),
+ ] = 1,
+ max_replica: Annotated[
+ int,
+ typer.Option(
+ help="The maximum number of replicas (instances) to scale to for the Inference Endpoint.",
+ ),
+ ] = 1,
+ scale_to_zero_timeout: Annotated[
+ int | None,
+ typer.Option(
+ help="The duration in minutes before an inactive endpoint is scaled to zero.",
+ ),
+ ] = None,
+ scaling_metric: Annotated[
+ InferenceEndpointScalingMetric | None,
+ typer.Option(
+ help="The metric reference for scaling.",
+ ),
+ ] = None,
+ scaling_threshold: Annotated[
+ float | None,
+ typer.Option(
+ help="The scaling metric threshold used to trigger a scale up. Ignored when scaling metric is not provided.",
+ ),
+ ] = None,
+) -> None:
+ """Deploy an Inference Endpoint from a Hub repository."""
+ api = get_hf_api(token=token)
+ endpoint = api.create_inference_endpoint(
+ name=name,
+ repository=repo,
+ framework=framework,
+ accelerator=accelerator,
+ instance_size=instance_size,
+ instance_type=instance_type,
+ region=region,
+ vendor=vendor,
+ namespace=namespace,
+ task=task,
+ token=token,
+ min_replica=min_replica,
+ max_replica=max_replica,
+ scaling_metric=scaling_metric,
+ scaling_threshold=scaling_threshold,
+ scale_to_zero_timeout=scale_to_zero_timeout,
+ )
+ out.dict(endpoint.raw)
+
+
+@catalog_app.command(name="deploy", examples=["hf endpoints catalog deploy --repo meta-llama/Llama-3.2-1B-Instruct"])
+def deploy_from_catalog(
+ repo: Annotated[
+ str,
+ typer.Option(
+ help="The name of the model repository associated with the Inference Endpoint (e.g. 'openai/gpt-oss-120b').",
+ ),
+ ],
+ name: NameOpt = None,
+ accelerator: Annotated[
+ str | None,
+ typer.Option(
+ help="The hardware accelerator to be used for inference (e.g. 'cpu', 'gpu', 'neuron').",
+ ),
+ ] = None,
+ namespace: NamespaceOpt = None,
+ token: TokenOpt = None,
+) -> None:
+ """Deploy an Inference Endpoint from the Model Catalog."""
+ api = get_hf_api(token=token)
+ try:
+ endpoint = api.create_inference_endpoint_from_catalog(
+ repo_id=repo,
+ name=name,
+ accelerator=accelerator,
+ namespace=namespace,
+ token=token,
+ )
+ except HfHubHTTPError as error:
+ out.error(f"Deployment failed: {error}")
+ raise typer.Exit(code=error.response.status_code) from error
+
+ out.dict(endpoint.raw)
+
+
+def list_catalog(
+ token: TokenOpt = None,
+) -> None:
+ """List available Catalog models."""
+ api = get_hf_api(token=token)
+ try:
+ models = api.list_inference_catalog(token=token)
+ except HfHubHTTPError as error:
+ out.error(f"Catalog fetch failed: {error}")
+ raise typer.Exit(code=error.response.status_code) from error
+
+ out.dict({"models": models})
+
+
+catalog_app.command(name="list | ls", examples=["hf endpoints catalog ls"])(list_catalog)
+ie_cli.command(name="list-catalog", hidden=True)(list_catalog)
+
+
+ie_cli.add_typer(catalog_app, name="catalog")
+
+
+@ie_cli.command(examples=["hf endpoints describe my-endpoint"])
+def describe(
+ name: NameArg,
+ namespace: NamespaceOpt = None,
+ token: TokenOpt = None,
+) -> None:
+ """Get information about an existing endpoint."""
+ api = get_hf_api(token=token)
+ try:
+ endpoint = api.get_inference_endpoint(name=name, namespace=namespace, token=token)
+ except HfHubHTTPError as error:
+ out.error(f"Fetch failed: {error}")
+ raise typer.Exit(code=error.response.status_code) from error
+
+ out.dict(endpoint.raw)
+
+
+@ie_cli.command(examples=["hf endpoints update my-endpoint --min-replica 2"])
+def update(
+ name: NameArg,
+ namespace: NamespaceOpt = None,
+ repo: Annotated[
+ str | None,
+ typer.Option(
+ help="The name of the model repository associated with the Inference Endpoint (e.g. 'openai/gpt-oss-120b').",
+ ),
+ ] = None,
+ accelerator: Annotated[
+ str | None,
+ typer.Option(
+ help="The hardware accelerator to be used for inference (e.g. 'cpu').",
+ ),
+ ] = None,
+ instance_size: Annotated[
+ str | None,
+ typer.Option(
+ help="The size or type of the instance to be used for hosting the model (e.g. 'x4').",
+ ),
+ ] = None,
+ instance_type: Annotated[
+ str | None,
+ typer.Option(
+ help="The cloud instance type where the Inference Endpoint will be deployed (e.g. 'intel-icl').",
+ ),
+ ] = None,
+ framework: Annotated[
+ str | None,
+ typer.Option(
+ help="The machine learning framework used for the model (e.g. 'custom').",
+ ),
+ ] = None,
+ revision: Annotated[
+ str | None,
+ typer.Option(
+ help="The specific model revision to deploy on the Inference Endpoint (e.g. '6c0e6080953db56375760c0471a8c5f2929baf11').",
+ ),
+ ] = None,
+ task: Annotated[
+ str | None,
+ typer.Option(
+ help="The task on which to deploy the model (e.g. 'text-classification').",
+ ),
+ ] = None,
+ min_replica: Annotated[
+ int | None,
+ typer.Option(
+ help="The minimum number of replicas (instances) to keep running for the Inference Endpoint.",
+ ),
+ ] = None,
+ max_replica: Annotated[
+ int | None,
+ typer.Option(
+ help="The maximum number of replicas (instances) to scale to for the Inference Endpoint.",
+ ),
+ ] = None,
+ scale_to_zero_timeout: Annotated[
+ int | None,
+ typer.Option(
+ help="The duration in minutes before an inactive endpoint is scaled to zero.",
+ ),
+ ] = None,
+ scaling_metric: Annotated[
+ InferenceEndpointScalingMetric | None,
+ typer.Option(
+ help="The metric reference for scaling.",
+ ),
+ ] = None,
+ scaling_threshold: Annotated[
+ float | None,
+ typer.Option(
+ help="The scaling metric threshold used to trigger a scale up. Ignored when scaling metric is not provided.",
+ ),
+ ] = None,
+ token: TokenOpt = None,
+) -> None:
+ """Update an existing endpoint."""
+ api = get_hf_api(token=token)
+ try:
+ endpoint = api.update_inference_endpoint(
+ name=name,
+ namespace=namespace,
+ repository=repo,
+ framework=framework,
+ revision=revision,
+ task=task,
+ accelerator=accelerator,
+ instance_size=instance_size,
+ instance_type=instance_type,
+ min_replica=min_replica,
+ max_replica=max_replica,
+ scale_to_zero_timeout=scale_to_zero_timeout,
+ scaling_metric=scaling_metric,
+ scaling_threshold=scaling_threshold,
+ token=token,
+ )
+ except HfHubHTTPError as error:
+ out.error(f"Update failed: {error}")
+ raise typer.Exit(code=error.response.status_code) from error
+ out.dict(endpoint.raw)
+
+
+@ie_cli.command(examples=["hf endpoints delete my-endpoint"])
+def delete(
+ name: NameArg,
+ namespace: NamespaceOpt = None,
+ yes: Annotated[
+ bool,
+ typer.Option("--yes", help="Skip confirmation prompts."),
+ ] = False,
+ token: TokenOpt = None,
+) -> None:
+ """Delete an Inference Endpoint permanently."""
+ out.confirm(f"Delete endpoint '{name}'?", yes=yes)
+
+ api = get_hf_api(token=token)
+ try:
+ api.delete_inference_endpoint(name=name, namespace=namespace, token=token)
+ except HfHubHTTPError as error:
+ out.error(f"Delete failed: {error}")
+ raise typer.Exit(code=error.response.status_code) from error
+
+ out.result(f"Deleted '{name}'.", name=name)
+
+
+@ie_cli.command(examples=["hf endpoints pause my-endpoint"])
+def pause(
+ name: NameArg,
+ namespace: NamespaceOpt = None,
+ token: TokenOpt = None,
+) -> None:
+ """Pause an Inference Endpoint."""
+ api = get_hf_api(token=token)
+ try:
+ endpoint = api.pause_inference_endpoint(name=name, namespace=namespace, token=token)
+ except HfHubHTTPError as error:
+ out.error(f"Pause failed: {error}")
+ raise typer.Exit(code=error.response.status_code) from error
+
+ out.dict(endpoint.raw)
+
+
+@ie_cli.command(examples=["hf endpoints resume my-endpoint"])
+def resume(
+ name: NameArg,
+ namespace: NamespaceOpt = None,
+ fail_if_already_running: Annotated[
+ bool,
+ typer.Option(
+ "--fail-if-already-running",
+ help="If `True`, the method will raise an error if the Inference Endpoint is already running.",
+ ),
+ ] = False,
+ token: TokenOpt = None,
+) -> None:
+ """Resume an Inference Endpoint."""
+ api = get_hf_api(token=token)
+ try:
+ endpoint = api.resume_inference_endpoint(
+ name=name,
+ namespace=namespace,
+ token=token,
+ running_ok=not fail_if_already_running,
+ )
+ except HfHubHTTPError as error:
+ out.error(f"Resume failed: {error}")
+ raise typer.Exit(code=error.response.status_code) from error
+ out.dict(endpoint.raw)
+
+
+@ie_cli.command(examples=["hf endpoints scale-to-zero my-endpoint"])
+def scale_to_zero(
+ name: NameArg,
+ namespace: NamespaceOpt = None,
+ token: TokenOpt = None,
+) -> None:
+ """Scale an Inference Endpoint to zero."""
+ api = get_hf_api(token=token)
+ try:
+ endpoint = api.scale_to_zero_inference_endpoint(name=name, namespace=namespace, token=token)
+ except HfHubHTTPError as error:
+ out.error(f"Scale To Zero failed: {error}")
+ raise typer.Exit(code=error.response.status_code) from error
+
+ out.dict(endpoint.raw)
diff --git a/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/jobs.py b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/jobs.py
new file mode 100644
index 0000000000000000000000000000000000000000..218fa1049781fb727f61ea715c7ef1743385fa12
--- /dev/null
+++ b/.cache/uv/archive-v0/vkpMZ7vTbfKjg5zT5rIJh/huggingface_hub/cli/jobs.py
@@ -0,0 +1,1172 @@
+# Copyright 2025 The HuggingFace Team. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""Contains commands to interact with jobs on the Hugging Face Hub.
+
+Usage:
+ # run a job
+ hf jobs run
+
+ # List running or completed jobs
+ hf jobs ps [-a] [-f key=value]
+
+ # Print logs from a job (non-blocking)
+ hf jobs logs
+
+ # Stream logs from a job (blocking, like `docker logs -f`)
+ hf jobs logs -f
+
+ # Stream resources usage stats and metrics from a job
+ hf jobs stats
+
+ # Inspect detailed information about a job
+ hf jobs inspect
+
+ # Cancel a running job
+ hf jobs cancel
+
+ # List available hardware options
+ hf jobs hardware
+
+ # Run a UV script
+ hf jobs uv run |